AssetManifest Struct
Definitions for the asset manifest.
| Source | lib/assets/schema.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';
declare const assumeRoleAdditionalOptions: any;
const assetManifest: cloud_assembly_schema.AssetManifest = {
version: 'version',
// the properties below are optional
dockerImages: {
dockerImagesKey: {
destinations: {
destinationsKey: {
imageTag: 'imageTag',
repositoryName: 'repositoryName',
// the properties below are optional
assumeRoleAdditionalOptions: {
assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
},
assumeRoleArn: 'assumeRoleArn',
assumeRoleExternalId: 'assumeRoleExternalId',
region: 'region',
},
},
source: {
cacheDisabled: false,
cacheFrom: [{
type: 'type',
// the properties below are optional
params: {
paramsKey: 'params',
},
}],
cacheTo: {
type: 'type',
// the properties below are optional
params: {
paramsKey: 'params',
},
},
directory: 'directory',
dockerBuildArgs: {
dockerBuildArgsKey: 'dockerBuildArgs',
},
dockerBuildContexts: {
dockerBuildContextsKey: 'dockerBuildContexts',
},
dockerBuildSecrets: {
dockerBuildSecretsKey: 'dockerBuildSecrets',
},
dockerBuildSsh: 'dockerBuildSsh',
dockerBuildTarget: 'dockerBuildTarget',
dockerFile: 'dockerFile',
dockerOutputs: ['dockerOutputs'],
executable: ['executable'],
networkMode: 'networkMode',
platform: 'platform',
},
// the properties below are optional
displayName: 'displayName',
},
},
files: {
filesKey: {
destinations: {
destinationsKey: {
bucketName: 'bucketName',
objectKey: 'objectKey',
// the properties below are optional
assumeRoleAdditionalOptions: {
assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
},
assumeRoleArn: 'assumeRoleArn',
assumeRoleExternalId: 'assumeRoleExternalId',
region: 'region',
},
},
source: {
executable: ['executable'],
packaging: cloud_assembly_schema.FileAssetPackaging.FILE,
path: 'path',
},
// the properties below are optional
displayName: 'displayName',
},
},
};
python
from aws_cdk.cloud_assembly_schema import AssetManifest, DockerImageAsset, DockerImageDestination, DockerImageSource, DockerCacheOption, DockerCacheOption, FileAsset, FileDestination, FileSource
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import cloud_assembly_schema
# assume_role_additional_options: Any
asset_manifest = AssetManifest(
version="version",
# the properties below are optional
docker_images={
"docker_images_key": DockerImageAsset(
destinations={
"destinations_key": DockerImageDestination(
image_tag="imageTag",
repository_name="repositoryName",
# the properties below are optional
assume_role_additional_options={
"assume_role_additional_options_key": assume_role_additional_options
},
assume_role_arn="assumeRoleArn",
assume_role_external_id="assumeRoleExternalId",
region="region"
)
},
source=DockerImageSource(
cache_disabled=False,
cache_from=[DockerCacheOption(
type="type",
# the properties below are optional
params={
"params_key": "params"
}
)],
cache_to=DockerCacheOption(
type="type",
# the properties below are optional
params={
"params_key": "params"
}
),
directory="directory",
docker_build_args={
"docker_build_args_key": "dockerBuildArgs"
},
docker_build_contexts={
"docker_build_contexts_key": "dockerBuildContexts"
},
docker_build_secrets={
"docker_build_secrets_key": "dockerBuildSecrets"
},
docker_build_ssh="dockerBuildSsh",
docker_build_target="dockerBuildTarget",
docker_file="dockerFile",
docker_outputs=["dockerOutputs"],
executable=["executable"],
network_mode="networkMode",
platform="platform"
),
# the properties below are optional
display_name="displayName"
)
},
files={
"files_key": FileAsset(
destinations={
"destinations_key": FileDestination(
bucket_name="bucketName",
object_key="objectKey",
# the properties below are optional
assume_role_additional_options={
"assume_role_additional_options_key": assume_role_additional_options
},
assume_role_arn="assumeRoleArn",
assume_role_external_id="assumeRoleExternalId",
region="region"
)
},
source=FileSource(
executable=["executable"],
packaging=cloud_assembly_schema.FileAssetPackaging.FILE,
path="path"
),
# the properties below are optional
display_name="displayName"
)
}
)
java
// 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.*;
Object assumeRoleAdditionalOptions;
AssetManifest assetManifest = AssetManifest.builder()
.version("version")
// the properties below are optional
.dockerImages(Map.of(
"dockerImagesKey", DockerImageAsset.builder()
.destinations(Map.of(
"destinationsKey", DockerImageDestination.builder()
.imageTag("imageTag")
.repositoryName("repositoryName")
// the properties below are optional
.assumeRoleAdditionalOptions(Map.of(
"assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions))
.assumeRoleArn("assumeRoleArn")
.assumeRoleExternalId("assumeRoleExternalId")
.region("region")
.build()))
.source(DockerImageSource.builder()
.cacheDisabled(false)
.cacheFrom(List.of(DockerCacheOption.builder()
.type("type")
// the properties below are optional
.params(Map.of(
"paramsKey", "params"))
.build()))
.cacheTo(DockerCacheOption.builder()
.type("type")
// the properties below are optional
.params(Map.of(
"paramsKey", "params"))
.build())
.directory("directory")
.dockerBuildArgs(Map.of(
"dockerBuildArgsKey", "dockerBuildArgs"))
.dockerBuildContexts(Map.of(
"dockerBuildContextsKey", "dockerBuildContexts"))
.dockerBuildSecrets(Map.of(
"dockerBuildSecretsKey", "dockerBuildSecrets"))
.dockerBuildSsh("dockerBuildSsh")
.dockerBuildTarget("dockerBuildTarget")
.dockerFile("dockerFile")
.dockerOutputs(List.of("dockerOutputs"))
.executable(List.of("executable"))
.networkMode("networkMode")
.platform("platform")
.build())
// the properties below are optional
.displayName("displayName")
.build()))
.files(Map.of(
"filesKey", FileAsset.builder()
.destinations(Map.of(
"destinationsKey", FileDestination.builder()
.bucketName("bucketName")
.objectKey("objectKey")
// the properties below are optional
.assumeRoleAdditionalOptions(Map.of(
"assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions))
.assumeRoleArn("assumeRoleArn")
.assumeRoleExternalId("assumeRoleExternalId")
.region("region")
.build()))
.source(FileSource.builder()
.executable(List.of("executable"))
.packaging(FileAssetPackaging.FILE)
.path("path")
.build())
// the properties below are optional
.displayName("displayName")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Cloud_assembly_schema;
var assumeRoleAdditionalOptions;
var assetManifest = new AssetManifest {
Version = "version",
// the properties below are optional
DockerImages = new Dictionary<string, DockerImageAsset> {
{ "dockerImagesKey", new DockerImageAsset {
Destinations = new Dictionary<string, DockerImageDestination> {
{ "destinationsKey", new DockerImageDestination {
ImageTag = "imageTag",
RepositoryName = "repositoryName",
// the properties below are optional
AssumeRoleAdditionalOptions = new Dictionary<string, object> {
{ "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions }
},
AssumeRoleArn = "assumeRoleArn",
AssumeRoleExternalId = "assumeRoleExternalId",
Region = "region"
} }
},
Source = new DockerImageSource {
CacheDisabled = false,
CacheFrom = new [] { new DockerCacheOption {
Type = "type",
// the properties below are optional
Params = new Dictionary<string, string> {
{ "paramsKey", "params" }
}
} },
CacheTo = new DockerCacheOption {
Type = "type",
// the properties below are optional
Params = new Dictionary<string, string> {
{ "paramsKey", "params" }
}
},
Directory = "directory",
DockerBuildArgs = new Dictionary<string, string> {
{ "dockerBuildArgsKey", "dockerBuildArgs" }
},
DockerBuildContexts = new Dictionary<string, string> {
{ "dockerBuildContextsKey", "dockerBuildContexts" }
},
DockerBuildSecrets = new Dictionary<string, string> {
{ "dockerBuildSecretsKey", "dockerBuildSecrets" }
},
DockerBuildSsh = "dockerBuildSsh",
DockerBuildTarget = "dockerBuildTarget",
DockerFile = "dockerFile",
DockerOutputs = new [] { "dockerOutputs" },
Executable = new [] { "executable" },
NetworkMode = "networkMode",
Platform = "platform"
},
// the properties below are optional
DisplayName = "displayName"
} }
},
Files = new Dictionary<string, FileAsset> {
{ "filesKey", new FileAsset {
Destinations = new Dictionary<string, FileDestination> {
{ "destinationsKey", new FileDestination {
BucketName = "bucketName",
ObjectKey = "objectKey",
// the properties below are optional
AssumeRoleAdditionalOptions = new Dictionary<string, object> {
{ "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions }
},
AssumeRoleArn = "assumeRoleArn",
AssumeRoleExternalId = "assumeRoleExternalId",
Region = "region"
} }
},
Source = new FileSource {
Executable = new [] { "executable" },
Packaging = FileAssetPackaging.FILE,
Path = "path"
},
// the properties below are optional
DisplayName = "displayName"
} }
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var assumeRoleAdditionalOptions interface{}
assetManifest := &AssetManifest{
Version: jsii.String("version"),
// the properties below are optional
DockerImages: map[string]DockerImageAsset{
"dockerImagesKey": &DockerImageAsset{
"destinations": map[string]DockerImageDestination{
"destinationsKey": &DockerImageDestination{
"imageTag": jsii.String("imageTag"),
"repositoryName": jsii.String("repositoryName"),
// the properties below are optional
"assumeRoleAdditionalOptions": map[string]interface{}{
"assumeRoleAdditionalOptionsKey": assumeRoleAdditionalOptions,
},
"assumeRoleArn": jsii.String("assumeRoleArn"),
"assumeRoleExternalId": jsii.String("assumeRoleExternalId"),
"region": jsii.String("region"),
},
},
"source": &DockerImageSource{
"cacheDisabled": jsii.Boolean(false),
"cacheFrom": []DockerCacheOption{
&DockerCacheOption{
"type": jsii.String("type"),
// the properties below are optional
"params": map[string]*string{
"paramsKey": jsii.String("params"),
},
},
},
"cacheTo": &DockerCacheOption{
"type": jsii.String("type"),
// the properties below are optional
"params": map[string]*string{
"paramsKey": jsii.String("params"),
},
},
"directory": jsii.String("directory"),
"dockerBuildArgs": map[string]*string{
"dockerBuildArgsKey": jsii.String("dockerBuildArgs"),
},
"dockerBuildContexts": map[string]*string{
"dockerBuildContextsKey": jsii.String("dockerBuildContexts"),
},
"dockerBuildSecrets": map[string]*string{
"dockerBuildSecretsKey": jsii.String("dockerBuildSecrets"),
},
"dockerBuildSsh": jsii.String("dockerBuildSsh"),
"dockerBuildTarget": jsii.String("dockerBuildTarget"),
"dockerFile": jsii.String("dockerFile"),
"dockerOutputs": []*string{
jsii.String("dockerOutputs"),
},
"executable": []*string{
jsii.String("executable"),
},
"networkMode": jsii.String("networkMode"),
"platform": jsii.String("platform"),
},
// the properties below are optional
"displayName": jsii.String("displayName"),
},
},
Files: map[string]FileAsset{
"filesKey": &FileAsset{
"destinations": map[string]FileDestination{
"destinationsKey": &FileDestination{
"bucketName": jsii.String("bucketName"),
"objectKey": jsii.String("objectKey"),
// the properties below are optional
"assumeRoleAdditionalOptions": map[string]interface{}{
"assumeRoleAdditionalOptionsKey": assumeRoleAdditionalOptions,
},
"assumeRoleArn": jsii.String("assumeRoleArn"),
"assumeRoleExternalId": jsii.String("assumeRoleExternalId"),
"region": jsii.String("region"),
},
},
"source": &FileSource{
"executable": []*string{
jsii.String("executable"),
},
"packaging": awscdk.cloud_assembly_schema.FileAssetPackaging_FILE,
"path": jsii.String("path"),
},
// the properties below are optional
"displayName": jsii.String("displayName"),
},
},
}
Properties
dockerImagesoptional{ [key: string]: DockerImageAsset }docker_imagesoptionaltyping.Mapping[str, DockerImageAsset]dockerImagesoptionalMap<String, DockerImageAsset>DockerImagesoptionalIDictionary<string, DockerImageAsset>DockerImagesoptional*map[string]DockerImageAsset #The Docker image assets in this manifest.
Default: No Docker images
filesoptional{ [key: string]: FileAsset }filesoptionaltyping.Mapping[str, FileAsset]filesoptionalMap<String, FileAsset>FilesoptionalIDictionary<string, FileAsset>Filesoptional*map[string]FileAsset #The file assets in this manifest.
Default: No files
Version of the manifest.