Class CloudFormationTemplate
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.servicecatalog.CloudFormationTemplate
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.788Z")
@Stability(Stable)
public abstract class CloudFormationTemplate
extends software.amazon.jsii.JsiiObject
Represents the Product Provisioning Artifact Template.
Example:
import path.*; CloudFormationProduct product = CloudFormationProduct.Builder.create(this, "Product") .productName("My Product") .owner("Product Owner") .productVersions(List.of(CloudFormationProductVersion.builder() .productVersionName("v1") .cloudFormationTemplate(CloudFormationTemplate.fromUrl("https://raw.githubusercontent.com/awslabs/aws-cloudformation-templates/master/aws/services/ServiceCatalog/Product.yaml")) .build(), CloudFormationProductVersion.builder() .productVersionName("v2") .cloudFormationTemplate(CloudFormationTemplate.fromAsset(join(__dirname, "development-environment.template.json"))) .build())) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
CloudFormationTemplate
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CloudFormationTemplate
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionabstract CloudFormationTemplateConfig
Called when the product is initialized to allow this object to bind to the stack, add resources and have fun.static CloudFormationTemplate
Loads the provisioning artifacts template from a local disk path.static CloudFormationTemplate
fromAsset
(String path, AssetOptions options) Loads the provisioning artifacts template from a local disk path.static CloudFormationTemplate
fromProductStack
(ProductStack productStack) Creates a product with the resources defined in the given product stack.static CloudFormationTemplate
Template from URL.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
CloudFormationTemplate
protected CloudFormationTemplate(software.amazon.jsii.JsiiObjectRef objRef) -
CloudFormationTemplate
protected CloudFormationTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CloudFormationTemplate
@Stability(Stable) protected CloudFormationTemplate()
-
-
Method Details
-
fromAsset
@Stability(Stable) @NotNull public static CloudFormationTemplate fromAsset(@NotNull String path, @Nullable AssetOptions options) Loads the provisioning artifacts template from a local disk path.- Parameters:
path
- A file containing the provisioning artifacts. This parameter is required.options
-
-
fromAsset
Loads the provisioning artifacts template from a local disk path.- Parameters:
path
- A file containing the provisioning artifacts. This parameter is required.
-
fromProductStack
@Stability(Stable) @NotNull public static CloudFormationTemplate fromProductStack(@NotNull ProductStack productStack) Creates a product with the resources defined in the given product stack.- Parameters:
productStack
- This parameter is required.
-
fromUrl
Template from URL.- Parameters:
url
- The url that points to the provisioning artifacts template. This parameter is required.
-
bind
@Stability(Stable) @NotNull public abstract CloudFormationTemplateConfig bind(@NotNull Construct scope) Called when the product is initialized to allow this object to bind to the stack, add resources and have fun.- Parameters:
scope
- The binding scope. This parameter is required.
-