Class NestedCloudAssemblyArtifact
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cloud_assembly_schema.*;
import software.amazon.awscdk.cxapi.*;
Object assumeRoleAdditionalOptions;
CloudAssembly cloudAssembly;
NestedCloudAssemblyArtifact nestedCloudAssemblyArtifact = NestedCloudAssemblyArtifact.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
.assumeRoleAdditionalOptions(Map.of(
"assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions))
.assumeRoleArn("assumeRoleArn")
.assumeRoleExternalId("assumeRoleExternalId")
.bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter")
.cloudFormationExecutionRoleArn("cloudFormationExecutionRoleArn")
.lookupRole(BootstrapRole.builder()
.arn("arn")
// the properties below are optional
.assumeRoleAdditionalOptions(Map.of(
"assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions))
.assumeRoleExternalId("assumeRoleExternalId")
.bootstrapStackVersionSsmParameter("bootstrapStackVersionSsmParameter")
.requiresBootstrapStackVersion(123)
.build())
.notificationArns(List.of("notificationArns"))
.parameters(Map.of(
"parametersKey", "parameters"))
.requiresBootstrapStackVersion(123)
.stackName("stackName")
.stackTemplateAssetObjectUrl("stackTemplateAssetObjectUrl")
.tags(Map.of(
"tagsKey", "tags"))
.terminationProtection(false)
.validateOnSynth(false)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forNestedCloudAssemblyArtifact.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionNestedCloudAssemblyArtifact(CloudAssembly assembly, String name, ArtifactManifest artifact) protectedNestedCloudAssemblyArtifact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedNestedCloudAssemblyArtifact(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe relative directory name of the asset manifest.Display name.Full path to the nested assembly directory.The nested Assembly.static BooleanChecks ifartis an instance of this class.Methods inherited from class software.amazon.awscdk.cxapi.CloudArtifact
findMetadataByType, fromManifest, getAssembly, getDependencies, getHierarchicalId, getId, getManifest, getMessagesMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
NestedCloudAssemblyArtifact
protected NestedCloudAssemblyArtifact(software.amazon.jsii.JsiiObjectRef objRef) -
NestedCloudAssemblyArtifact
protected NestedCloudAssemblyArtifact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
NestedCloudAssemblyArtifact
@Stability(Stable) public NestedCloudAssemblyArtifact(@NotNull CloudAssembly assembly, @NotNull String name, @NotNull ArtifactManifest artifact) - Parameters:
assembly- This parameter is required.name- This parameter is required.artifact- This parameter is required.
-
-
Method Details
-
isNestedCloudAssemblyArtifact
@Stability(Stable) @NotNull public static Boolean isNestedCloudAssemblyArtifact(@NotNull Object art) Checks ifartis an instance of this class.Use this method instead of
instanceofto properly detectNestedCloudAssemblyArtifactinstances, even when the construct library is symlinked.Explanation: in JavaScript, multiple copies of the
cx-apilibrary on disk are seen as independent, completely different libraries. As a consequence, the classNestedCloudAssemblyArtifactin each copy of thecx-apilibrary is seen as a different class, and an instance of one class will not test asinstanceofthe other class.npm installwill not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of thecx-apilibrary can be accidentally installed, andinstanceofwill behave unpredictably. It is safest to avoid usinginstanceof, and using this type-testing method instead.- Parameters:
art- This parameter is required.
-
getDirectoryName
The relative directory name of the asset manifest. -
getDisplayName
Display name. -
getFullPath
Full path to the nested assembly directory. -
getNestedAssembly
The nested Assembly.
-