Class: AWSCDK::ServiceCatalog::CloudFormationTemplate
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::ServiceCatalog::CloudFormationTemplate
- Defined in:
- service_catalog/cloud_formation_template.rb
Overview
Represents the Product Provisioning Artifact Template.
Class Method Summary collapse
-
.from_asset(path, options = nil) ⇒ AWSCDK::ServiceCatalog::CloudFormationTemplate
Loads the provisioning artifacts template from a local disk path.
-
.from_product_stack(product_stack) ⇒ AWSCDK::ServiceCatalog::CloudFormationTemplate
Creates a product with the resources defined in the given product stack.
-
.from_url(url) ⇒ AWSCDK::ServiceCatalog::CloudFormationTemplate
Template from URL.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#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.
-
#initialize ⇒ CloudFormationTemplate
constructor
A new instance of CloudFormationTemplate.
Constructor Details
#initialize ⇒ CloudFormationTemplate
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.
23 24 25 26 27 28 |
# File 'service_catalog/cloud_formation_template.rb', line 23 def self.from_asset(path, = nil) Jsii::Type.check_type(path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") = .is_a?(Hash) ? ::AWSCDK::S3Assets::AssetOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczNfYXNzZXRzLkFzc2V0T3B0aW9ucyJ9")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_servicecatalog.CloudFormationTemplate", "fromAsset", [path, ]) end |
.from_product_stack(product_stack) ⇒ AWSCDK::ServiceCatalog::CloudFormationTemplate
Creates a product with the resources defined in the given product stack.
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.
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_methods ⇒ Object
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.
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 |