# AssetManifestDockerImageDestination

The destination for a docker image asset, when it is given to the AssetManifestBuilder.

Used as argument in: [AssetManifestBuilder.defaultAddDockerImageAsset](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.AssetManifestBuilder.html#defaultadddockerimageasset)

- Source: [`core/lib/stack-synthesizers/asset-manifest-builder.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/stack-synthesizers/asset-manifest-builder.ts#L253)
- Type last changed: v2.45.0 · 6 Oct 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';

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:

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

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

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

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"

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

- `dockerTagPrefix`: string = '' — Prefix to add to the asset hash to make the Docker image tag.

- `repositoryName`: string (required) — Repository name where the docker image asset should be written.

- `role`: [RoleOptions](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.RoleOptions.html) — Role to use to perform the upload.

  **Default:** No role
