enum DockerCredentialUsage
Language | Type name |
---|---|
.NET | Amazon.CDK.Pipelines.DockerCredentialUsage |
Java | software.amazon.awscdk.pipelines.DockerCredentialUsage |
Python | aws_cdk.pipelines.DockerCredentialUsage |
TypeScript (source) | @aws-cdk/pipelines » DockerCredentialUsage |
Defines which stages of a pipeline require the specified credentials.
Example
const dockerHubSecret = secretsmanager.Secret.fromSecretCompleteArn(this, 'DHSecret', 'arn:aws:...');
// Only the image asset publishing actions will be granted read access to the secret.
const creds = pipelines.DockerCredential.dockerHub(dockerHubSecret, { usages: [pipelines.DockerCredentialUsage.ASSET_PUBLISHING] });
Members
Name | Description |
---|---|
SYNTH | Synth/Build. |
SELF_UPDATE | Self-update. |
ASSET_PUBLISHING | Asset publishing. |
SYNTH
Synth/Build.
SELF_UPDATE
Self-update.
ASSET_PUBLISHING
Asset publishing.