@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:16.507Z") @Stability(value=Experimental) public class CloudFormationStackArtifact extends CloudArtifact
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cloudassembly.schema.*;
import software.amazon.awscdk.cxapi.*;
CloudAssembly cloudAssembly;
CloudFormationStackArtifact cloudFormationStackArtifact = CloudFormationStackArtifact.Builder.create(cloudAssembly, "artifactId")
.type(ArtifactType.NONE)
// the properties below are optional
.dependencies(List.of("dependencies"))
.displayName("displayName")
.environment("environment")
.metadata(Map.of(
"metadataKey", List.of(MetadataEntry.builder()
.type("type")
// the properties below are optional
.data("data")
.trace(List.of("trace"))
.build())))
.properties(AwsCloudFormationStackProperties.builder()
.templateFile("templateFile")
// the properties below are optional
.assumeRoleArn("assumeRoleArn")
.assumeRoleExternalId("assumeRoleExternalId")
.bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter")
.cloudFormationExecutionRoleArn("cloudFormationExecutionRoleArn")
.parameters(Map.of(
"parametersKey", "parameters"))
.requiresBootstrapStackVersion(123)
.stackName("stackName")
.stackTemplateAssetObjectUrl("stackTemplateAssetObjectUrl")
.tags(Map.of(
"tagsKey", "tags"))
.terminationProtection(false)
.validateOnSynth(false)
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CloudFormationStackArtifact.Builder
(experimental) A fluent builder for
CloudFormationStackArtifact. |
| Modifier | Constructor and Description |
|---|---|
|
CloudFormationStackArtifact(CloudAssembly assembly,
String artifactId,
ArtifactManifest artifact) |
protected |
CloudFormationStackArtifact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CloudFormationStackArtifact(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
getAssets()
(experimental) Any assets associated with this stack.
|
String |
getAssumeRoleArn()
(experimental) The role that needs to be assumed to deploy the stack.
|
String |
getAssumeRoleExternalId()
(experimental) External ID to use when assuming role for cloudformation deployments.
|
String |
getBootstrapStackVersionSsmParameter()
(experimental) Name of SSM parameter with bootstrap stack version.
|
String |
getCloudFormationExecutionRoleArn()
(experimental) The role that is passed to CloudFormation to execute the change set.
|
String |
getDisplayName()
(experimental) A string that represents this stack.
|
Environment |
getEnvironment()
(experimental) The environment into which to deploy this artifact.
|
String |
getName()
Deprecated.
renamed to `stackName`
|
String |
getOriginalName()
(experimental) The original name as defined in the CDK app.
|
Map<String,String> |
getParameters()
(experimental) CloudFormation parameters to pass to the stack.
|
Number |
getRequiresBootstrapStackVersion()
(experimental) Version of bootstrap stack required to deploy this stack.
|
String |
getStackName()
(experimental) The physical name of this stack.
|
String |
getStackTemplateAssetObjectUrl()
(experimental) If the stack template has already been included in the asset manifest, its asset URL.
|
Map<String,String> |
getTags()
(experimental) CloudFormation tags to pass to the stack.
|
Object |
getTemplate()
(experimental) The CloudFormation template for this stack.
|
String |
getTemplateFile()
(experimental) The file name of the template.
|
String |
getTemplateFullPath()
(experimental) Full path to the template file.
|
Boolean |
getTerminationProtection()
(experimental) Whether termination protection is enabled for this stack.
|
Boolean |
getValidateOnSynth()
(experimental) Whether this stack should be validated by the CLI after synthesis.
|
findMetadataByType, fromManifest, getAssembly, getDependencies, getHierarchicalId, getId, getManifest, getMessagesjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CloudFormationStackArtifact(software.amazon.jsii.JsiiObjectRef objRef)
protected CloudFormationStackArtifact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public CloudFormationStackArtifact(@NotNull
CloudAssembly assembly,
@NotNull
String artifactId,
@NotNull
ArtifactManifest artifact)
assembly - This parameter is required.artifactId - This parameter is required.artifact - This parameter is required.@Stability(value=Experimental) @NotNull public List<Object> getAssets()
@Stability(value=Experimental) @NotNull public String getDisplayName()
Should only be used in user interfaces.
If the stackName and artifactId are the same, it will just return that. Otherwise,
it will return something like "
@Stability(value=Experimental) @NotNull public Environment getEnvironment()
@Stability(value=Deprecated) @Deprecated @NotNull public String getName()
@Stability(value=Experimental) @NotNull public String getOriginalName()
@Stability(value=Experimental) @NotNull public Map<String,String> getParameters()
@Stability(value=Experimental) @NotNull public String getStackName()
@Stability(value=Experimental) @NotNull public Map<String,String> getTags()
@Stability(value=Experimental) @NotNull public Object getTemplate()
@Stability(value=Experimental) @NotNull public String getTemplateFile()
@Stability(value=Experimental) @NotNull public String getTemplateFullPath()
@Stability(value=Experimental) @Nullable public String getAssumeRoleArn()
Default: - No role is assumed (current credentials are used)
@Stability(value=Experimental) @Nullable public String getAssumeRoleExternalId()
Default: - No external ID
@Stability(value=Experimental) @Nullable public String getBootstrapStackVersionSsmParameter()
Default: - Discover SSM parameter by reading stack
@Stability(value=Experimental) @Nullable public String getCloudFormationExecutionRoleArn()
Default: - No role is passed (currently assumed role/credentials are used)
@Stability(value=Experimental) @Nullable public Number getRequiresBootstrapStackVersion()
Default: - No bootstrap stack required
@Stability(value=Experimental) @Nullable public String getStackTemplateAssetObjectUrl()
Default: - Not uploaded yet, upload just before deploying
@Stability(value=Experimental) @Nullable public Boolean getTerminationProtection()
@Stability(value=Experimental) @Nullable public Boolean getValidateOnSynth()
Default: - false
Copyright © 2022. All rights reserved.