interface RepositoryCredentialsProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.CfnTaskDefinition.RepositoryCredentialsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnTaskDefinition_RepositoryCredentialsProperty |
Java | software.amazon.awscdk.services.ecs.CfnTaskDefinition.RepositoryCredentialsProperty |
Python | aws_cdk.aws_ecs.CfnTaskDefinition.RepositoryCredentialsProperty |
TypeScript | aws-cdk-lib » aws_ecs » CfnTaskDefinition » RepositoryCredentialsProperty |
The repository credentials for private registry authentication.
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';
const repositoryCredentialsProperty: ecs.CfnTaskDefinition.RepositoryCredentialsProperty = {
credentialsParameter: 'credentialsParameter',
};
Properties
Name | Type | Description |
---|---|---|
credentials | string | The Amazon Resource Name (ARN) of the secret containing the private repository credentials. |
credentialsParameter?
Type:
string
(optional)
The Amazon Resource Name (ARN) of the secret containing the private repository credentials.
When you use the Amazon ECS API, AWS CLI , or AWS SDK, if the secret exists in the same Region as the task that you're launching then you can use either the full ARN or the name of the secret. When you use the AWS Management Console, you must specify the full ARN of the secret.