@Generated(value="jsii-pacmak/1.34.0 (build 9b72778)", date="2021-09-21T20:05:08.153Z") @Stability(value=Stable) public enum ArnFormat extends Enum<ArnFormat>
| Enum Constant and Description |
|---|
COLON_RESOURCE_NAME
This represents a format where the 'resource' and 'resourceName' parts are separated with a colon.
|
NO_RESOURCE_NAME
This represents a format where there is no 'resourceName' part.
|
SLASH_RESOURCE_NAME
This represents a format where the 'resource' and 'resourceName' parts are separated with a slash.
|
SLASH_RESOURCE_SLASH_RESOURCE_NAME
This represents a format where the 'resource' and 'resourceName' parts are seperated with a slash, but there is also an additional slash after the colon separating 'account' from 'resource'.
|
| Modifier and Type | Method and Description |
|---|---|
static ArnFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArnFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final ArnFormat NO_RESOURCE_NAME
This format is used for S3 resources, like 'arn:aws:s3:::bucket'. Everything after the last colon is considered the 'resource', even if it contains slashes, like in 'arn:aws:s3:::bucket/object.zip'.
@Stability(value=Stable) public static final ArnFormat COLON_RESOURCE_NAME
Like in: 'arn:aws:service:region:account:resource:resourceName'. Everything after the last colon is considered the 'resourceName', even if it contains slashes, like in 'arn:aws:apigateway:region:account:resource:/test/mydemoresource/*'.
@Stability(value=Stable) public static final ArnFormat SLASH_RESOURCE_NAME
Like in: 'arn:aws:service:region:account:resource/resourceName'. Everything after the separating slash is considered the 'resourceName', even if it contains colons, like in 'arn:aws:cognito-sync:region:account:identitypool/us-east-1:1a1a1a1a-ffff-1111-9999-12345678:bla'.
@Stability(value=Stable) public static final ArnFormat SLASH_RESOURCE_SLASH_RESOURCE_NAME
Like in: 'arn:aws:service:region:account:/resource/resourceName'. Note that the leading slash is not included in the parsed 'resource' part.
public static ArnFormat[] values()
for (ArnFormat c : ArnFormat.values()) System.out.println(c);
public static ArnFormat 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 © 2021. All rights reserved.