interface DockerImageAssetLocation
Language | Type name |
---|---|
.NET | Amazon.CDK.DockerImageAssetLocation |
Go | github.com/aws/aws-cdk-go/awscdk/v2#DockerImageAssetLocation |
Java | software.amazon.awscdk.DockerImageAssetLocation |
Python | aws_cdk.DockerImageAssetLocation |
TypeScript (source) | aws-cdk-lib » DockerImageAssetLocation |
Obtainable from
App
.addDockerImageAsset()
, Bootstrapless
.addDockerImageAsset()
, Cli
.addDockerImageAsset()
, Default
.addDockerImageAsset()
, Legacy
.addDockerImageAsset()
, Nested
.addDockerImageAsset()
, Stack
.addDockerImageAsset()
, Stack
.cloudFormationLocationFromDockerImageAsset()
The location of the published docker image.
This is where the image can be consumed at runtime.
Example
// 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',
};
Properties
Name | Type | Description |
---|---|---|
image | string | The URI of the image in Amazon ECR (including a tag). |
repository | string | The name of the ECR repository. |
image | string | The tag of the image in Amazon ECR. |
imageUri
Type:
string
The URI of the image in Amazon ECR (including a tag).
repositoryName
Type:
string
The name of the ECR repository.
imageTag?
Type:
string
(optional, default: the hash of the asset, or the dockerTagPrefix
concatenated with the asset hash if a dockerTagPrefix
is specified in the stack synthesizer)
The tag of the image in Amazon ECR.