DockerImageAssetLocation Struct
The location of the published docker image.
This is where the image can be consumed at runtime.
| Source | core/lib/assets.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';
const dockerImageAssetLocation: cdk.DockerImageAssetLocation = {
imageUri: 'imageUri',
repositoryName: 'repositoryName',
// the properties below are optional
imageTag: 'imageTag',
};
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
docker_image_asset_location = cdk.DockerImageAssetLocation(
image_uri="imageUri",
repository_name="repositoryName",
# the properties below are optional
image_tag="imageTag"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
DockerImageAssetLocation dockerImageAssetLocation = DockerImageAssetLocation.builder()
.imageUri("imageUri")
.repositoryName("repositoryName")
// the properties below are optional
.imageTag("imageTag")
.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 dockerImageAssetLocation = new DockerImageAssetLocation {
ImageUri = "imageUri",
RepositoryName = "repositoryName",
// the properties below are optional
ImageTag = "imageTag"
};
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"
dockerImageAssetLocation := &DockerImageAssetLocation{
ImageUri: jsii.String("imageUri"),
RepositoryName: jsii.String("repositoryName"),
// the properties below are optional
ImageTag: jsii.String("imageTag"),
}
Properties
imageTagoptionalstringimage_tagoptionalstrimageTagoptionalStringImageTagoptionalstringImageTagoptional*string #The tag of the image in Amazon ECR.
Default: the hash of the asset, or the dockerTagPrefix concatenated with the asset hash if a dockerTagPrefix is specified in the stack synthesizer
The URI of the image in Amazon ECR (including a tag).
repositoryNamestringrepository_namestrrepositoryNameStringRepositoryNamestringRepositoryName*string required #The name of the ECR repository.