public interface PartitionMetadata
This is useful for building meta-functionality around AWS services. Partition metadata helps to provide data about regions which may not yet be in the endpoints.json file but have a specific prefix.
Modifier and Type | Method and Description |
---|---|
String |
dnsSuffix()
Returns the DNS suffix, such as amazonaws.com for this partition.
|
String |
hostname()
Returns the hostname pattern, such as {service}.{region}.{dnsSuffix} for this partition.
|
String |
id()
Returns the identifier for this partition, such as aws.
|
String |
name()
Returns the partition name for this partition, such as AWS Standard
|
static PartitionMetadata |
of(Region region)
Retrieves the partition metadata for a given region.
|
static PartitionMetadata |
of(String partition)
Retrieves the partition metadata for a given partition.
|
String |
regionRegex()
Returns the region regex used for pattern matching for this partition.
|
String dnsSuffix()
String hostname()
String id()
String name()
String regionRegex()
static PartitionMetadata of(String partition)
partition
- The partition to get metadata for.PartitionMetadata
for the given partition.static PartitionMetadata of(Region region)
region
- The region to get the partition metadata for.PartitionMetadata
for the given region.Copyright © 2021. All rights reserved.