public class ArnResource extends Object
Arn
that provides the Resource Type, Resource, and
Resource Qualifier of an AWS ARN when those values are present and correctly formatted
within an ARN.
If ArnResource.resourceType
is not present, ArnResource.resource
will return the entire resource
as a string the same as Arn.getResource()
.
Modifier and Type | Class and Description |
---|---|
static class |
ArnResource.Builder |
Modifier and Type | Method and Description |
---|---|
static ArnResource.Builder |
builder() |
boolean |
equals(Object o) |
static ArnResource |
fromString(String resource)
Parses a string containing either a resource, resource type and resource or
resource type, resource and qualifier into an
ArnResource . |
String |
getQualifier() |
String |
getResource() |
String |
getResourceType() |
int |
hashCode() |
String |
toString() |
public String getResourceType()
public String getResource()
public String getQualifier()
public static ArnResource.Builder builder()
public static ArnResource fromString(String resource)
ArnResource
.
Matches:
resource-id resource-type:resource-id resource-type/resource-id resource-type:resource-id:qualifier resource-type/resource-id:qualifier
resource-id can be a resource name or a resource path.
resource
- - The resource string to parse.ArnResource
Copyright © 2024. All rights reserved.