Class: AWSCDK::ServiceCatalog::CloudFormationTemplate

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

Overview

Represents the Product Provisioning Artifact Template.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCloudFormationTemplate

Returns a new instance of CloudFormationTemplate.



8
9
10
# File 'service_catalog/cloud_formation_template.rb', line 8

def initialize
  Jsii::Object.instance_method(:initialize).bind(self).call
end

Class Method Details

.from_asset(path, options = nil) ⇒ AWSCDK::ServiceCatalog::CloudFormationTemplate

Loads the provisioning artifacts template from a local disk path.

Parameters:

Returns:

  • (AWSCDK::ServiceCatalog::CloudFormationTemplate)


23
24
25
26
27
28
# File 'service_catalog/cloud_formation_template.rb', line 23

def self.from_asset(path, options = nil)
  Jsii::Type.check_type(path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path")
  options = options.is_a?(Hash) ? ::AWSCDK::S3Assets::AssetOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczNfYXNzZXRzLkFzc2V0T3B0aW9ucyJ9")), "options") unless options.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_servicecatalog.CloudFormationTemplate", "fromAsset", [path, options])
end

.from_product_stack(product_stack) ⇒ AWSCDK::ServiceCatalog::CloudFormationTemplate

Creates a product with the resources defined in the given product stack.

Parameters:

Returns:

  • (AWSCDK::ServiceCatalog::CloudFormationTemplate)


34
35
36
37
# File 'service_catalog/cloud_formation_template.rb', line 34

def self.from_product_stack(product_stack)
  Jsii::Type.check_type(product_stack, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VydmljZWNhdGFsb2cuUHJvZHVjdFN0YWNrIn0=")), "productStack")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_servicecatalog.CloudFormationTemplate", "fromProductStack", [product_stack])
end

.from_url(url) ⇒ AWSCDK::ServiceCatalog::CloudFormationTemplate

Template from URL.

Parameters:

  • url (String)

    The url that points to the provisioning artifacts template.

Returns:

  • (AWSCDK::ServiceCatalog::CloudFormationTemplate)


43
44
45
46
# File 'service_catalog/cloud_formation_template.rb', line 43

def self.from_url(url)
  Jsii::Type.check_type(url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "url")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_servicecatalog.CloudFormationTemplate", "fromUrl", [url])
end

.jsii_overridable_methodsObject



12
13
14
15
16
# File 'service_catalog/cloud_formation_template.rb', line 12

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bind(scope) ⇒ AWSCDK::ServiceCatalog::CloudFormationTemplateConfig

Called when the product is initialized to allow this object to bind to the stack, add resources and have fun.

Parameters:

  • scope (Constructs::Construct)

    The binding scope.

Returns:



52
53
54
55
# File 'service_catalog/cloud_formation_template.rb', line 52

def bind(scope)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  jsii_call_method("bind", [scope])
end