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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.825Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forExternalDockerCredentialOptionsstatic final classAn implementation forExternalDockerCredentialOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default IRoleAn IAM role to assume prior to accessing the secret.default StringThe name of the JSON field of the secret which contains the secret/password.default StringThe 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
-