@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-15T10:03:45.293Z") @Stability(value=Experimental) public class ProductStack extends Stack
You can add the resources to this stack that you want to define for your service catalog product.
This stack will not be treated as an independent deployment artifact (won't be listed in "cdk list" or deployable through "cdk deploy"), but rather only synthesized as a template and uploaded as an asset to S3.
Example:
import software.amazon.awscdk.services.s3.*;
import software.amazon.awscdk.core.*;
public class S3BucketProduct extends ProductStack {
public S3BucketProduct(Construct scope, String id) {
super(scope, id);
new Bucket(this, "BucketProduct");
}
}
CloudFormationProduct product = CloudFormationProduct.Builder.create(this, "MyFirstProduct")
.productName("My Product")
.owner("Product Owner")
.productVersions(List.of(CloudFormationProductVersion.builder()
.productVersionName("v1")
.cloudFormationTemplate(CloudFormationTemplate.fromProductStack(new S3BucketProduct(this, "S3BucketProduct")))
.build()))
.build();
Stack.Buildersoftware.amazon.jsii.JsiiObject.InitializationModeITaggable.Jsii$Default, ITaggable.Jsii$ProxyIConstruct.Jsii$Default, IConstruct.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ProductStack(software.constructs.Construct scope,
String id) |
protected |
ProductStack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ProductStack(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getTemplateFile()
(experimental) The name of the CloudFormation template file emitted to the output directory during synthesis.
|
addDependency, addDependency, addDockerImageAsset, addFileAsset, addTransform, allocateLogicalId, exportValue, exportValue, formatArn, getAccount, getArtifactId, getAvailabilityZones, getDependencies, getEnvironment, getLogicalId, getNested, getNestedStackParent, getNestedStackResource, getNotificationArns, getParentStack, getPartition, getRegion, getStackId, getStackName, getSynthesizer, getTags, getTemplateOptions, getTerminationProtection, getUrlSuffix, isStack, of, parseArn, parseArn, parseArn, prepareCrossReference, renameLogicalId, reportMissingContext, reportMissingContextKey, resolve, splitArn, toJsonString, toJsonStringgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ProductStack(software.amazon.jsii.JsiiObjectRef objRef)
protected ProductStack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public ProductStack(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public String getTemplateFile()
Example value: MyStack.template.json
getTemplateFile in class StackCopyright © 2021. All rights reserved.