@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:37.683Z") public enum DockerCredentialUsage extends java.lang.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(java.lang.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.
|
public static final DockerCredentialUsage SYNTH
public static final DockerCredentialUsage SELF_UPDATE
public static final DockerCredentialUsage ASSET_PUBLISHING
public static DockerCredentialUsage[] values()
for (DockerCredentialUsage c : DockerCredentialUsage.values()) System.out.println(c);
public static DockerCredentialUsage valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null