Package software.amazon.awscdk.pipelines
Interface ExternalDockerCredentialOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ExternalDockerCredentialOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-10-31T19:13:07.450Z")
@Stability(Stable)
public interface ExternalDockerCredentialOptions
extends software.amazon.jsii.JsiiSerializable
Options for defining credentials for a Docker Credential.
Example:
ISecret dockerHubSecret = Secret.fromSecretCompleteArn(this, "DHSecret", "arn:aws:..."); // Only the image asset publishing actions will be granted read access to the secret. DockerCredential creds = DockerCredential.dockerHub(dockerHubSecret, ExternalDockerCredentialOptions.builder() .usages(List.of(DockerCredentialUsage.ASSET_PUBLISHING)) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forExternalDockerCredentialOptions
static final class
An implementation forExternalDockerCredentialOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default IRole
An IAM role to assume prior to accessing the secret.default String
The name of the JSON field of the secret which contains the secret/password.default String
The name of the JSON field of the secret which contains the user/login name.default List<DockerCredentialUsage>
Defines which stages of the pipeline should be granted access to these credentials.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAssumeRole
An IAM role to assume prior to accessing the secret.Default: - none. The current execution role will be used.
-
getSecretPasswordField
The name of the JSON field of the secret which contains the secret/password.Default: 'secret'
-
getSecretUsernameField
The name of the JSON field of the secret which contains the user/login name.Default: 'username'
-
getUsages
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.
-
builder
-