Class: AWSCDK::ServiceCatalog::CloudFormationTemplateConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_catalog/cloud_formation_template_config.rb

Overview

Result of binding Template into a Product.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_url:, asset_bucket: nil) ⇒ CloudFormationTemplateConfig

Returns a new instance of CloudFormationTemplateConfig.

Parameters:

  • http_url (String)

    The http url of the template in S3.

  • asset_bucket (AWSCDK::S3::IBucket, nil) (defaults to: nil)

    The S3 bucket containing product stack assets.



9
10
11
12
13
14
# File 'service_catalog/cloud_formation_template_config.rb', line 9

def initialize(http_url:, asset_bucket: nil)
  @http_url = http_url
  Jsii::Type.check_type(@http_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "httpUrl")
  @asset_bucket = asset_bucket
  Jsii::Type.check_type(@asset_bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuSUJ1Y2tldCJ9")), "assetBucket") unless @asset_bucket.nil?
end

Instance Attribute Details

#asset_bucketAWSCDK::S3::IBucket? (readonly)

Note:

Default: - None - no assets are used in this product

The S3 bucket containing product stack assets.

Returns:



24
25
26
# File 'service_catalog/cloud_formation_template_config.rb', line 24

def asset_bucket
  @asset_bucket
end

#http_urlString (readonly)

The http url of the template in S3.

Returns:

  • (String)


19
20
21
# File 'service_catalog/cloud_formation_template_config.rb', line 19

def http_url
  @http_url
end

Class Method Details

.jsii_propertiesObject



26
27
28
29
30
31
# File 'service_catalog/cloud_formation_template_config.rb', line 26

def self.jsii_properties
  {
    :http_url => "httpUrl",
    :asset_bucket => "assetBucket",
  }
end

Instance Method Details

#to_jsiiObject



33
34
35
36
37
38
39
40
# File 'service_catalog/cloud_formation_template_config.rb', line 33

def to_jsii
  result = {}
  result.merge!({
    "httpUrl" => @http_url,
    "assetBucket" => @asset_bucket,
  })
  result.compact
end