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.
|
addDefaultHeaders, defaultResourceFetcher, readResource, readResource
public static InstanceMetadataServiceResourceFetcher getInstance()
public String readResource(URI endpoint, CredentialsEndpointRetryPolicy retryPolicy, Map<String,String> headers)
readResource
in class EC2ResourceFetcher
Copyright © 2023. All rights reserved.