@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.937Z") @Stability(value=Stable) public enum DockerCredentialUsage extends Enum<DockerCredentialUsage>
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());
| Enum Constant and Description |
|---|
ASSET_PUBLISHING
Asset publishing.
|
SELF_UPDATE
Self-update.
|
SYNTH
Synth/Build.
|
| Modifier and Type | Method and Description |
|---|---|
static DockerCredentialUsage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DockerCredentialUsage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final DockerCredentialUsage SYNTH
@Stability(value=Stable) public static final DockerCredentialUsage SELF_UPDATE
@Stability(value=Stable) public static final DockerCredentialUsage ASSET_PUBLISHING
public static DockerCredentialUsage[] values()
for (DockerCredentialUsage c : DockerCredentialUsage.values()) System.out.println(c);
public static DockerCredentialUsage valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.