public final class InstanceMetadataServiceResourceFetcher extends EC2ResourceFetcher
| Modifier and Type | Method and Description |
|---|---|
static InstanceMetadataServiceResourceFetcher |
getInstance() |
String |
readResource(URI endpoint,
CredentialsEndpointRetryPolicy retryPolicy,
Map<String,String> headers)
Connects to the given endpoint to read the resource
and returns the text contents.
|
defaultResourceFetcher, readResource, readResourcepublic static InstanceMetadataServiceResourceFetcher getInstance()
public String readResource(URI endpoint, CredentialsEndpointRetryPolicy retryPolicy, Map<String,String> headers)
readResource in class EC2ResourceFetcher
off sitewide
June sale — 45% off at checkout, applied automatically. Valid for 60 minutes. One per customer.
Offer ends in