# RepositoryImageProps

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

Extends: RepositoryImageProps
Used as props by: RepositoryImage

- Source: [`aws-ecs/lib/images/repository.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ecs/lib/images/repository.ts#L17)

## Example

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

- `credentials`: [ISecret](/cdk/api/v2/docs/aws-cdk-lib.aws_secretsmanager.ISecret.html) — 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.
