Class EcrDockerCredentialOptions
Options for defining access for a Docker Credential composed of ECR repos.
Inheritance
System.Object
EcrDockerCredentialOptions
Implements
Namespace: Amazon.CDK.Pipelines
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EcrDockerCredentialOptions : Object, IEcrDockerCredentialOptions
Syntax (vb)
Public Class EcrDockerCredentialOptions
Inherits Object
Implements IEcrDockerCredentialOptions
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.IAM;
using Amazon.CDK.Pipelines;
Role role;
var ecrDockerCredentialOptions = new EcrDockerCredentialOptions {
AssumeRole = role,
Usages = new [] { DockerCredentialUsage.SYNTH }
};
Synopsis
Constructors
EcrDockerCredentialOptions() |
Properties
AssumeRole | An IAM role to assume prior to accessing the secret. |
Usages | Defines which stages of the pipeline should be granted access to these credentials. |
Constructors
EcrDockerCredentialOptions()
public EcrDockerCredentialOptions()
Properties
AssumeRole
An IAM role to assume prior to accessing the secret.
public IRole AssumeRole { get; set; }
Property Value
Remarks
Default: - none. The current execution role will be used.
Usages
Defines which stages of the pipeline should be granted access to these credentials.
public DockerCredentialUsage[] Usages { get; set; }
Property Value
Remarks
Default: - all relevant stages (synth, self-update, asset publishing) are granted access.