# DockerImageAssetLocation

The location of the published docker image.

This is where the image can be
consumed at runtime.

Returned by: [IStackSynthesizer.addDockerImageAsset](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IStackSynthesizer.html#adddockerimageasset)

- Source: [`core/lib/assets.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/assets.ts#L449)
- Type last changed: v2.39.0 · 25 Aug 2022

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `imageTag`: 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

- `imageUri`: string (required) — The URI of the image in Amazon ECR (including a tag).

- `repositoryName`: string (required) — The name of the ECR repository.
