@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.101Z") @Stability(value=Stable) public abstract class CloudFormationTemplate extends software.amazon.jsii.JsiiObject
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();
| Modifier | Constructor and Description |
|---|---|
protected |
CloudFormationTemplate() |
protected |
CloudFormationTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CloudFormationTemplate(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract CloudFormationTemplateConfig |
bind(software.constructs.Construct scope)
Called when the product is initialized to allow this object to bind to the stack, add resources and have fun.
|
static CloudFormationTemplate |
fromAsset(String path)
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 |
fromUrl(String url)
Template from URL.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CloudFormationTemplate(software.amazon.jsii.JsiiObjectRef objRef)
protected CloudFormationTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected CloudFormationTemplate()
@Stability(value=Stable) @NotNull public static CloudFormationTemplate fromAsset(@NotNull String path, @Nullable AssetOptions options)
path - A file containing the provisioning artifacts. This parameter is required.options - @Stability(value=Stable) @NotNull public static CloudFormationTemplate fromAsset(@NotNull String path)
path - A file containing the provisioning artifacts. This parameter is required.@Stability(value=Stable) @NotNull public static CloudFormationTemplate fromProductStack(@NotNull ProductStack productStack)
productStack - This parameter is required.@Stability(value=Stable) @NotNull public static CloudFormationTemplate fromUrl(@NotNull String url)
url - The url that points to the provisioning artifacts template. This parameter is required.@Stability(value=Stable) @NotNull public abstract CloudFormationTemplateConfig bind(@NotNull software.constructs.Construct scope)
scope - The binding scope. This parameter is required.Copyright © 2022. All rights reserved.