public interface InfoFacade
Unlike the service-level facades, these operations are "best effort": if unable to perform the operation, the implementation is permitted to return a default value (typically null).
Also unlike service-level facades, implemtations are expected to retry if throttled.
Finally, these operations use the default client for whatever service they invoke. They do not attempt to assume a role or connect to an alternate region.
| Modifier and Type | Method and Description |
|---|---|
String |
retrieveAccountId()
Retrieves the current AWS account ID, "unknown" if unable to determine
the account ID for any reason.
|
String |
retrieveDefaultRegion()
Retrieves the current configured region, using the default region provider.
|
String |
retrieveEC2InstanceId()
Returns the current instance ID, using the EC2 metadata service.
|
String |
retrieveEC2Region()
Returns the instance where the logger is running, using the EC2 metadata service.
|
Map<String,String> |
retrieveEC2Tags(String instanceId)
Returns all tags for the specified EC2 instance.
|
String |
retrieveParameter(String parameterName)
Retrieves a named Systems Manager parameter, null if it doesnt' exist or is a
secure string.
|
String retrieveAccountId()
Requires the STS SDK.
String retrieveDefaultRegion()
String retrieveEC2InstanceId()
String retrieveEC2Region()
See also retrieveDefaultRegion(), which uses the default region provider.
Map<String,String> retrieveEC2Tags(String instanceId)
String retrieveParameter(String parameterName)
If throttled, this method will retry up to 4 times before returning null. Other exceptions are silently caught, and return null.
Requires the Systems Manager SDK.
Copyright © 2023. All rights reserved.