All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.cxapi.TreeCloudArtifact Maven / Gradle / Ivy

There is a newer version: 2.167.1
Show newest version
package software.amazon.awscdk.cxapi;

/**
 * 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.*;
 * Object assumeRoleAdditionalOptions;
 * CloudAssembly cloudAssembly;
 * TreeCloudArtifact treeCloudArtifact = TreeCloudArtifact.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();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-24T10:56:25.807Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.cxapi.$Module.class, fqn = "@aws-cdk/cx-api.TreeCloudArtifact") public class TreeCloudArtifact extends software.amazon.awscdk.cxapi.CloudArtifact { protected TreeCloudArtifact(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected TreeCloudArtifact(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * @param assembly This parameter is required. * @param name This parameter is required. * @param artifact This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public TreeCloudArtifact(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.cxapi.CloudAssembly assembly, final @org.jetbrains.annotations.NotNull java.lang.String name, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.cloudassembly.schema.ArtifactManifest artifact) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(assembly, "assembly is required"), java.util.Objects.requireNonNull(name, "name is required"), java.util.Objects.requireNonNull(artifact, "artifact is required") }); } /** * Checks if art is an instance of this class. *

* Use this method instead of instanceof to properly detect TreeCloudArtifact * 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 TreeCloudArtifact 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. *

* @param art This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull java.lang.Boolean isTreeCloudArtifact(final @org.jetbrains.annotations.NotNull java.lang.Object art) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.cxapi.TreeCloudArtifact.class, "isTreeCloudArtifact", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class), new Object[] { art }); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getFile() { return software.amazon.jsii.Kernel.get(this, "file", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy