- class aws_cdk.pipelines.EcrDockerCredentialOptions(*, assume_role=None, usages=None)
Options for defining access for a Docker Credential composed of ECR repos.
IRole]) – An IAM role to assume prior to accessing the secret. Default: - none. The current execution role will be used.
DockerCredentialUsage]]) – Defines which stages of the pipeline should be granted access to these credentials. Default: - all relevant stages (synth, self-update, asset publishing) are granted access.
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iam as iam import aws_cdk.pipelines as pipelines # role: iam.Role ecr_docker_credential_options = pipelines.EcrDockerCredentialOptions( assume_role=role, usages=[pipelines.DockerCredentialUsage.SYNTH] )
An IAM role to assume prior to accessing the secret.
none. The current execution role will be used.
- Return type