Class: AWSCDK::CloudAssemblySchema::AssetManifestOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_assembly_schema/asset_manifest_options.rb

Overview

Configuration options for the Asset Manifest.

Direct Known Subclasses

AssetManifestProperties

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) ⇒ AssetManifestOptions

Returns a new instance of AssetManifestOptions.

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.



9
10
11
12
13
14
# File 'cloud_assembly_schema/asset_manifest_options.rb', line 9

def initialize(bootstrap_stack_version_ssm_parameter: nil, requires_bootstrap_stack_version: nil)
  @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?
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)


26
27
28
# File 'cloud_assembly_schema/asset_manifest_options.rb', line 26

def bootstrap_stack_version_ssm_parameter
  @bootstrap_stack_version_ssm_parameter
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)


31
32
33
# File 'cloud_assembly_schema/asset_manifest_options.rb', line 31

def requires_bootstrap_stack_version
  @requires_bootstrap_stack_version
end

Class Method Details

.jsii_propertiesObject



33
34
35
36
37
38
# File 'cloud_assembly_schema/asset_manifest_options.rb', line 33

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

Instance Method Details

#to_jsiiObject



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

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