class CloudArtifact
Language | Type name |
---|---|
.NET | Amazon.CDK.CXAPI.CloudArtifact |
Java | software.amazon.awscdk.cxapi.CloudArtifact |
Python | aws_cdk.cx_api.CloudArtifact |
TypeScript (source) | @aws-cdk/cx-api » CloudArtifact |
Represents an artifact within a cloud assembly.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cloud_assembly_schema from '@aws-cdk/cloud-assembly-schema';
import * as cx_api from '@aws-cdk/cx-api';
declare const assumeRoleAdditionalOptions: any;
declare const cloudAssembly: cx_api.CloudAssembly;
const cloudArtifact = cx_api.CloudArtifact.fromManifest(cloudAssembly, 'MyCloudArtifact', {
type: cloud_assembly_schema.ArtifactType.NONE,
// the properties below are optional
dependencies: ['dependencies'],
displayName: 'displayName',
environment: 'environment',
metadata: {
metadataKey: [{
type: 'type',
// the properties below are optional
data: 'data',
trace: ['trace'],
}],
},
properties: {
templateFile: 'templateFile',
// the properties below are optional
assumeRoleAdditionalOptions: {
assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
},
assumeRoleArn: 'assumeRoleArn',
assumeRoleExternalId: 'assumeRoleExternalId',
bootstrapStackVersionSsmParameter: 'bootstrapStackVersionSsmParameter',
cloudFormationExecutionRoleArn: 'cloudFormationExecutionRoleArn',
lookupRole: {
arn: 'arn',
// the properties below are optional
assumeRoleAdditionalOptions: {
assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
},
assumeRoleExternalId: 'assumeRoleExternalId',
bootstrapStackVersionSsmParameter: 'bootstrapStackVersionSsmParameter',
requiresBootstrapStackVersion: 123,
},
notificationArns: ['notificationArns'],
parameters: {
parametersKey: 'parameters',
},
requiresBootstrapStackVersion: 123,
stackName: 'stackName',
stackTemplateAssetObjectUrl: 'stackTemplateAssetObjectUrl',
tags: {
tagsKey: 'tags',
},
terminationProtection: false,
validateOnSynth: false,
},
});
Initializer (protected)
super(assembly: CloudAssembly, id: string, manifest: ArtifactManifest)
Parameters
- assembly
Cloud
Assembly - id
string
- manifest
Artifact
Manifest
Properties
Name | Type | Description |
---|---|---|
assembly | Cloud | |
dependencies | Cloud [] | Returns all the artifacts that this artifact depends on. |
hierarchical | string | An identifier that shows where this artifact is located in the tree of nested assemblies, based on their manifests. |
id | string | |
manifest | Artifact | The artifact's manifest. |
messages | Synthesis [] | The set of messages extracted from the artifact's metadata. |
assembly
Type:
Cloud
dependencies
Type:
Cloud
[]
Returns all the artifacts that this artifact depends on.
hierarchicalId
Type:
string
An identifier that shows where this artifact is located in the tree of nested assemblies, based on their manifests.
Defaults to the normal id. Should only be used in user interfaces.
id
Type:
string
manifest
Type:
Artifact
The artifact's manifest.
messages
Type:
Synthesis
[]
The set of messages extracted from the artifact's metadata.
Methods
Name | Description |
---|---|
find | |
static from | Returns a subclass of CloudArtifact based on the artifact type defined in the artifact manifest. |
MetadataByType(type)
findpublic findMetadataByType(type: string): MetadataEntryResult[]
Parameters
- type
string
Returns
Manifest(assembly, id, artifact)
static frompublic static fromManifest(assembly: CloudAssembly, id: string, artifact: ArtifactManifest): CloudArtifact
Parameters
- assembly
Cloud
— The cloud assembly from which to load the artifact.Assembly - id
string
— The artifact ID. - artifact
Artifact
— The artifact manifest.Manifest
Returns
Returns a subclass of CloudArtifact
based on the artifact type defined in the artifact manifest.