Class BaseEc2MetadataClient
- java.lang.Object
-
- software.amazon.awssdk.imds.internal.BaseEc2MetadataClient
-
- Direct Known Subclasses:
DefaultEc2MetadataAsyncClient,DefaultEc2MetadataClient
public abstract class BaseEc2MetadataClient extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static DurationDEFAULT_TOKEN_TTLprotected URIendpointprotected RequestMarshallerrequestMarshallerprotected Ec2MetadataRetryPolicyretryPolicyprotected DurationtokenTtl
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseEc2MetadataClient(DefaultEc2MetadataAsyncClient.Ec2MetadataAsyncBuilder builder)protectedBaseEc2MetadataClient(DefaultEc2MetadataClient.Ec2MetadataBuilder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AttributeMapimdsHttpDefaults()protected booleanshouldRetry(RetryPolicyContext retryPolicyContext, Throwable error)protected static StringuncheckedInputStreamToUtf8(AbortableInputStream inputStream)
-
-
-
Field Detail
-
DEFAULT_TOKEN_TTL
protected static final Duration DEFAULT_TOKEN_TTL
-
retryPolicy
protected final Ec2MetadataRetryPolicy retryPolicy
-
endpoint
protected final URI endpoint
-
requestMarshaller
protected final RequestMarshaller requestMarshaller
-
tokenTtl
protected final Duration tokenTtl
-
-
Constructor Detail
-
BaseEc2MetadataClient
protected BaseEc2MetadataClient(DefaultEc2MetadataClient.Ec2MetadataBuilder builder)
-
BaseEc2MetadataClient
protected BaseEc2MetadataClient(DefaultEc2MetadataAsyncClient.Ec2MetadataAsyncBuilder builder)
-
-
Method Detail
-
uncheckedInputStreamToUtf8
protected static String uncheckedInputStreamToUtf8(AbortableInputStream inputStream)
-
shouldRetry
protected boolean shouldRetry(RetryPolicyContext retryPolicyContext, Throwable error)
-
imdsHttpDefaults
protected AttributeMap imdsHttpDefaults()
-
-