@Immutable @ThreadSafe public final class DefaultEc2MetadataAsyncClient extends BaseEc2MetadataClient implements Ec2MetadataAsyncClient
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultEc2MetadataAsyncClient.Ec2MetadataAsyncBuilder |
Ec2MetadataAsyncClient.BuilderDEFAULT_TOKEN_TTL, endpoint, IMDS_HTTP_DEFAULTS, requestMarshaller, retryPolicy, tokenTtl| Modifier and Type | Method and Description |
|---|---|
static Ec2MetadataAsyncClient.Builder |
builder()
Creates a builder for an async client instance.
|
void |
close() |
CompletableFuture<Ec2MetadataResponse> |
get(String path)
Gets the specified instance metadata value by the given path.
|
shouldRetry, uncheckedInputStreamToUtf8clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic static Ec2MetadataAsyncClient.Builder builder()
Ec2MetadataAsyncClientbuilder in interface Ec2MetadataAsyncClientpublic CompletableFuture<Ec2MetadataResponse> get(String path)
Ec2MetadataAsyncClientget in interface Ec2MetadataAsyncClientpath - Input pathpublic void close()
close in interface AutoCloseableclose in interface SdkAutoCloseableCopyright © 2023. All rights reserved.