Class DockerCredentialUsage
Defines which stages of a pipeline require the specified credentials.
Inheritance
System.Object
DockerCredentialUsage
Namespace: Amazon.CDK.Pipelines
Assembly: Amazon.CDK.Pipelines.dll
Syntax (csharp)
public sealed class DockerCredentialUsage : Enum
Syntax (vb)
Public NotInheritable Class DockerCredentialUsage
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var dockerHubSecret = Secret.FromSecretCompleteArn(this, "DHSecret", "arn:aws:...");
// Only the image asset publishing actions will be granted read access to the secret.
var creds = DockerCredential.DockerHub(dockerHubSecret, new ExternalDockerCredentialOptions { Usages = new [] { DockerCredentialUsage.ASSET_PUBLISHING } });
Synopsis
Fields
ASSET_PUBLISHING | Asset publishing. |
SELF_UPDATE | Self-update. |
SYNTH | Synth/Build. |
value__ |
Fields
ASSET_PUBLISHING
Asset publishing.
public const DockerCredentialUsage ASSET_PUBLISHING
Field Value
Type | Description |
---|---|
DockerCredentialUsage |
SELF_UPDATE
Self-update.
public const DockerCredentialUsage SELF_UPDATE
Field Value
Type | Description |
---|---|
DockerCredentialUsage |
SYNTH
Synth/Build.
public const DockerCredentialUsage SYNTH
Field Value
Type | Description |
---|---|
DockerCredentialUsage |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |