public final class ArnResource extends Object
Modifier and Type | Method and Description |
---|---|
static ArnResource |
accessPointFromArn(String arn)
Parses the passed `arn` string into a full ArnResource.
|
String |
getEndpoint()
Formatted endpoint for the resource.
|
String |
getFullArn()
Full arn for resource.
|
String |
getName()
Resource name.
|
String |
getOwnerAccountId()
Return owner's account id.
|
String |
getRegion()
Resource region.
|
public String getName()
public String getOwnerAccountId()
public String getRegion()
public String getFullArn()
public String getEndpoint()
@Nonnull public static ArnResource accessPointFromArn(String arn) throws IllegalArgumentException
arn
- - string representing an Arn resource.IllegalArgumentException
- - if the Arn is malformed or any of the region, accountId and
resource name properties are empty.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.