@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:49.120Z") public class AssetManifestArtifact extends CloudArtifact
Example:
// 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; AssetManifestArtifact assetManifestArtifact = AssetManifestArtifact.Builder.create(cloudAssembly, "name") .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") .lookupRole(BootstrapRole.builder() .arn("arn") // the properties below are optional .assumeRoleExternalId("assumeRoleExternalId") .bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter") .requiresBootstrapStackVersion(123) .build()) .parameters(Map.of( "parametersKey", "parameters")) .requiresBootstrapStackVersion(123) .stackName("stackName") .stackTemplateAssetObjectUrl("stackTemplateAssetObjectUrl") .tags(Map.of( "tagsKey", "tags")) .terminationProtection(false) .validateOnSynth(false) .build()) .build();
Modifier | Constructor and Description |
---|---|
|
AssetManifestArtifact(CloudAssembly assembly,
java.lang.String name,
ArtifactManifest artifact) |
protected |
AssetManifestArtifact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AssetManifestArtifact(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBootstrapStackVersionSsmParameter()
Name of SSM parameter with bootstrap stack version.
|
java.lang.String |
getFile()
The file name of the asset manifest.
|
java.lang.Number |
getRequiresBootstrapStackVersion()
Version of bootstrap stack required to deploy this stack.
|
static java.lang.Boolean |
isAssetManifestArtifact(java.lang.Object art)
Checks if `art` is an instance of this class.
|
findMetadataByType, fromManifest, getAssembly, getDependencies, getHierarchicalId, getId, getManifest, getMessages
protected AssetManifestArtifact(software.amazon.jsii.JsiiObjectRef objRef)
protected AssetManifestArtifact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public AssetManifestArtifact(CloudAssembly assembly, java.lang.String name, ArtifactManifest artifact)
assembly
- This parameter is required.name
- This parameter is required.artifact
- This parameter is required.public static java.lang.Boolean isAssetManifestArtifact(java.lang.Object art)
Use this method instead of instanceof
to properly detect AssetManifestArtifact
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the cx-api
library on
disk are seen as independent, completely different libraries. As a
consequence, the class AssetManifestArtifact
in each copy of the cx-api
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the cx-api
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
art
- This parameter is required.public java.lang.String getFile()
public java.lang.Number getRequiresBootstrapStackVersion()
public java.lang.String getBootstrapStackVersionSsmParameter()
Default: - Discover SSM parameter by reading stack