Class: AWSCDK::CloudAssemblySchema::AssetManifestProperties

Inherits:
AssetManifestOptions
  • Object
show all
Defined in:
cloud_assembly_schema/asset_manifest_properties.rb

Overview

Artifact properties for the Asset Manifest.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bootstrap_stack_version_ssm_parameter: nil, requires_bootstrap_stack_version: nil, file:) ⇒ AssetManifestProperties

Returns a new instance of AssetManifestProperties.

Parameters:

  • bootstrap_stack_version_ssm_parameter (String, nil) (defaults to: nil)

    SSM parameter where the bootstrap stack version number can be found.

  • requires_bootstrap_stack_version (Numeric, nil) (defaults to: nil)

    Version of bootstrap stack required to deploy this stack.

  • file (String)

    Filename of the asset manifest.



10
11
12
13
14
15
16
17
# File 'cloud_assembly_schema/asset_manifest_properties.rb', line 10

def initialize(bootstrap_stack_version_ssm_parameter: nil, requires_bootstrap_stack_version: nil, file:)
  @bootstrap_stack_version_ssm_parameter = bootstrap_stack_version_ssm_parameter
  Jsii::Type.check_type(@bootstrap_stack_version_ssm_parameter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bootstrapStackVersionSsmParameter") unless @bootstrap_stack_version_ssm_parameter.nil?
  @requires_bootstrap_stack_version = requires_bootstrap_stack_version
  Jsii::Type.check_type(@requires_bootstrap_stack_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "requiresBootstrapStackVersion") unless @requires_bootstrap_stack_version.nil?
  @file = file
  Jsii::Type.check_type(@file, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "file")
end

Instance Attribute Details

#bootstrap_stack_version_ssm_parameterString? (readonly)

Note:

Default: - Bootstrap stack version number looked up

SSM parameter where the bootstrap stack version number can be found.

  • If this value is not set, the bootstrap stack name must be known at deployment time so the stack version can be looked up from the stack outputs.
  • If this value is set, the bootstrap stack can have any name because we won't need to look it up.

Returns:

  • (String, nil)


29
30
31
# File 'cloud_assembly_schema/asset_manifest_properties.rb', line 29

def bootstrap_stack_version_ssm_parameter
  @bootstrap_stack_version_ssm_parameter
end

#fileString (readonly)

Filename of the asset manifest.

Returns:

  • (String)


38
39
40
# File 'cloud_assembly_schema/asset_manifest_properties.rb', line 38

def file
  @file
end

#requires_bootstrap_stack_versionNumeric? (readonly)

Note:

Default: - Version 1 (basic modern bootstrap stack)

Version of bootstrap stack required to deploy this stack.

Returns:

  • (Numeric, nil)


34
35
36
# File 'cloud_assembly_schema/asset_manifest_properties.rb', line 34

def requires_bootstrap_stack_version
  @requires_bootstrap_stack_version
end

Class Method Details

.jsii_propertiesObject



40
41
42
43
44
45
46
# File 'cloud_assembly_schema/asset_manifest_properties.rb', line 40

def self.jsii_properties
  {
    :bootstrap_stack_version_ssm_parameter => "bootstrapStackVersionSsmParameter",
    :requires_bootstrap_stack_version => "requiresBootstrapStackVersion",
    :file => "file",
  }
end

Instance Method Details

#to_jsiiObject



48
49
50
51
52
53
54
55
56
57
# File 'cloud_assembly_schema/asset_manifest_properties.rb', line 48

def to_jsii
  result = {}
  result.merge!(super)
  result.merge!({
    "bootstrapStackVersionSsmParameter" => @bootstrap_stack_version_ssm_parameter,
    "requiresBootstrapStackVersion" => @requires_bootstrap_stack_version,
    "file" => @file,
  })
  result.compact
end