Class CfnTaskDefinition.RepositoryCredentialsProperty
The repository credentials for private registry authentication.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTaskDefinition.RepositoryCredentialsProperty : CfnTaskDefinition.IRepositoryCredentialsProperty
Syntax (vb)
Public Class CfnTaskDefinition.RepositoryCredentialsProperty Implements CfnTaskDefinition.IRepositoryCredentialsProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var repositoryCredentialsProperty = new RepositoryCredentialsProperty {
CredentialsParameter = "credentialsParameter"
};
Synopsis
Constructors
| RepositoryCredentialsProperty() | The repository credentials for private registry authentication. |
Properties
| CredentialsParameter | The Amazon Resource Name (ARN) of the secret containing the private repository credentials. |
Constructors
RepositoryCredentialsProperty()
The repository credentials for private registry authentication.
public RepositoryCredentialsProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var repositoryCredentialsProperty = new RepositoryCredentialsProperty {
CredentialsParameter = "credentialsParameter"
};
Properties
CredentialsParameter
The Amazon Resource Name (ARN) of the secret containing the private repository credentials.
public string? CredentialsParameter { get; set; }
Property Value
Remarks
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.