public interface Ec2MetadataClient extends SdkAutoCloseable
get method on the client with a path to an instance metadata:
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Ec2MetadataClient.Builder
The builder definition for a
Ec2MetadataClient. |
| Modifier and Type | Method and Description |
|---|---|
static Ec2MetadataClient.Builder |
builder()
Creates a default builder for
Ec2MetadataClient. |
static Ec2MetadataClient |
create()
Create an
Ec2MetadataClient instance using the default values. |
Ec2MetadataResponse |
get(String path)
Gets the specified instance metadata value by the given path.
|
closeEc2MetadataResponse get(String path)
path - Input pathstatic Ec2MetadataClient create()
Ec2MetadataClient instance using the default values.static Ec2MetadataClient.Builder builder()
Ec2MetadataClient.Copyright © 2023. All rights reserved.