DockerCredentialUsage

class aws_cdk.pipelines.DockerCredentialUsage(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Defines which stages of a pipeline require the specified credentials.

ExampleMetadata:

infused

Example:

docker_hub_secret = secretsmanager.Secret.from_secret_complete_arn(self, "DHSecret", "arn:aws:...")
# Only the image asset publishing actions will be granted read access to the secret.
creds = pipelines.DockerCredential.docker_hub(docker_hub_secret,
    usages=[pipelines.DockerCredentialUsage.ASSET_PUBLISHING]
)

Attributes

ASSET_PUBLISHING

Asset publishing.

SELF_UPDATE

Self-update.

SYNTH

Synth/Build.