AssetManifestDockerImageDestination Struct
The destination for a docker image asset, when it is given to the AssetManifestBuilder.
| Source | core/lib/stack-synthesizers/asset-manifest-builder.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
declare const assumeRoleAdditionalOptions: any;
const assetManifestDockerImageDestination: cdk.AssetManifestDockerImageDestination = {
repositoryName: 'repositoryName',
// the properties below are optional
dockerTagPrefix: 'dockerTagPrefix',
role: {
assumeRoleArn: 'assumeRoleArn',
// the properties below are optional
assumeRoleAdditionalOptions: {
assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
},
assumeRoleExternalId: 'assumeRoleExternalId',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
# assume_role_additional_options: Any
asset_manifest_docker_image_destination = cdk.AssetManifestDockerImageDestination(
repository_name="repositoryName",
# the properties below are optional
docker_tag_prefix="dockerTagPrefix",
role=cdk.RoleOptions(
assume_role_arn="assumeRoleArn",
# the properties below are optional
assume_role_additional_options={
"assume_role_additional_options_key": assume_role_additional_options
},
assume_role_external_id="assumeRoleExternalId"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
Object assumeRoleAdditionalOptions;
AssetManifestDockerImageDestination assetManifestDockerImageDestination = AssetManifestDockerImageDestination.builder()
.repositoryName("repositoryName")
// the properties below are optional
.dockerTagPrefix("dockerTagPrefix")
.role(RoleOptions.builder()
.assumeRoleArn("assumeRoleArn")
// the properties below are optional
.assumeRoleAdditionalOptions(Map.of(
"assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions))
.assumeRoleExternalId("assumeRoleExternalId")
.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;
var assumeRoleAdditionalOptions;
var assetManifestDockerImageDestination = new AssetManifestDockerImageDestination {
RepositoryName = "repositoryName",
// the properties below are optional
DockerTagPrefix = "dockerTagPrefix",
Role = new RoleOptions {
AssumeRoleArn = "assumeRoleArn",
// the properties below are optional
AssumeRoleAdditionalOptions = new Dictionary<string, object> {
{ "assumeRoleAdditionalOptionsKey", assumeRoleAdditionalOptions }
},
AssumeRoleExternalId = "assumeRoleExternalId"
}
};
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 cdk "github.com/aws/aws-cdk-go/awscdk"
var assumeRoleAdditionalOptions interface{}
assetManifestDockerImageDestination := &AssetManifestDockerImageDestination{
RepositoryName: jsii.String("repositoryName"),
// the properties below are optional
DockerTagPrefix: jsii.String("dockerTagPrefix"),
Role: &RoleOptions{
AssumeRoleArn: jsii.String("assumeRoleArn"),
// the properties below are optional
AssumeRoleAdditionalOptions: map[string]interface{}{
"assumeRoleAdditionalOptionsKey": assumeRoleAdditionalOptions,
},
AssumeRoleExternalId: jsii.String("assumeRoleExternalId"),
},
}
Properties
dockerTagPrefixoptionalstringdocker_tag_prefixoptionalstrdockerTagPrefixoptionalStringDockerTagPrefixoptionalstringDockerTagPrefixoptional*string = '' #Prefix to add to the asset hash to make the Docker image tag.
repositoryNamestringrepository_namestrrepositoryNameStringRepositoryNamestringRepositoryName*string required #Repository name where the docker image asset should be written.
roleoptionalRoleOptionsroleoptionalRoleOptionsroleoptionalRoleOptionsRoleoptionalRoleOptionsRoleoptionalRoleOptions #Role to use to perform the upload.
Default: No role