aws-cdk-lib.aws_ecs.RepositoryImageProps

interface RepositoryImageProps

LanguageType name
.NETAmazon.CDK.AWS.ECS.RepositoryImageProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#RepositoryImageProps
Javasoftware.amazon.awscdk.services.ecs.RepositoryImageProps
Pythonaws_cdk.aws_ecs.RepositoryImageProps
TypeScript (source)aws-cdk-lib » aws_ecs » RepositoryImageProps

The properties for an image hosted in a public or private repository.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
import { aws_secretsmanager as secretsmanager } from 'aws-cdk-lib';

declare const secret: secretsmanager.Secret;
const repositoryImageProps: ecs.RepositoryImageProps = {
  credentials: secret,
};

Properties

NameTypeDescription
credentials?ISecretThe secret to expose to the container that contains the credentials for the image repository.

credentials?

Type: ISecret (optional)

The secret to expose to the container that contains the credentials for the image repository.

The supported value is the full ARN of an AWS Secrets Manager secret.