Skip to content
v2.275.0

DockerCredentialUsage Enum ​

Defines which stages of a pipeline require the specified credentials.

Example ​

ts
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 ​

MemberDescription
SYNTHSynth/Build.
SELF_UPDATESelf-update.
ASSET_PUBLISHINGAsset publishing.

Referenced by ​