#include <ImdsClient.h>
|
| | ImdsClient (const ImdsClientConfig &config, Allocator *allocator=ApiAllocator()) noexcept |
| |
| | ~ImdsClient () |
| |
| | ImdsClient (const ImdsClient &)=delete |
| |
| | ImdsClient (ImdsClient &&)=delete |
| |
| ImdsClient & | operator= (const ImdsClient &)=delete |
| |
| ImdsClient & | operator= (ImdsClient &&)=delete |
| |
| aws_imds_client * | GetUnderlyingHandle () |
| |
| int | GetResource (const StringView &resourcePath, OnResourceAcquired callback, void *userData) |
| |
| int | GetAmiId (OnResourceAcquired callback, void *userData) |
| |
| int | GetAmiLaunchIndex (OnResourceAcquired callback, void *userData) |
| |
| int | GetAmiManifestPath (OnResourceAcquired callback, void *userData) |
| |
| int | GetAncestorAmiIds (OnVectorResourceAcquired callback, void *userData) |
| |
| int | GetInstanceAction (OnResourceAcquired callback, void *userData) |
| |
| int | GetInstanceId (OnResourceAcquired callback, void *userData) |
| |
| int | GetInstanceType (OnResourceAcquired callback, void *userData) |
| |
| int | GetMacAddress (OnResourceAcquired callback, void *userData) |
| |
| int | GetPrivateIpAddress (OnResourceAcquired callback, void *userData) |
| |
| int | GetAvailabilityZone (OnResourceAcquired callback, void *userData) |
| |
| int | GetProductCodes (OnResourceAcquired callback, void *userData) |
| |
| int | GetPublicKey (OnResourceAcquired callback, void *userData) |
| |
| int | GetRamDiskId (OnResourceAcquired callback, void *userData) |
| |
| int | GetReservationId (OnResourceAcquired callback, void *userData) |
| |
| int | GetSecurityGroups (OnVectorResourceAcquired callback, void *userData) |
| |
| int | GetBlockDeviceMapping (OnVectorResourceAcquired callback, void *userData) |
| |
| int | GetAttachedIamRole (OnResourceAcquired callback, void *userData) |
| |
| int | GetCredentials (const StringView &iamRoleName, OnCredentialsAcquired callback, void *userData) |
| |
| int | GetIamProfile (OnIamProfileAcquired callback, void *userData) |
| |
| int | GetUserData (OnResourceAcquired callback, void *userData) |
| |
| int | GetInstanceSignature (OnResourceAcquired callback, void *userData) |
| |
| int | GetInstanceInfo (OnInstanceInfoAcquired callback, void *userData) |
| |
◆ ImdsClient() [1/3]
◆ ~ImdsClient()
| Aws::Crt::Imds::ImdsClient::~ImdsClient |
( |
| ) |
|
◆ ImdsClient() [2/3]
◆ ImdsClient() [3/3]
| Aws::Crt::Imds::ImdsClient::ImdsClient |
( |
ImdsClient && |
| ) |
|
|
delete |
◆ GetAmiId()
Gets the ami id of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetAmiLaunchIndex()
Gets the ami launch index of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetAmiManifestPath()
Gets the ami manifest path of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetAncestorAmiIds()
Gets the list of ancestor ami ids of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetAttachedIamRole()
Gets the attached iam role of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetAvailabilityZone()
Gets the availability zone of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetBlockDeviceMapping()
Gets the list of block device mappings of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetCredentials()
Gets temporary credentials based on the attached iam role of the ec2 instance
- Parameters
-
| iamRoleName | iam role name to get temporary credentials through |
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetIamProfile()
Gets the iam profile information of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetInstanceAction()
Gets the instance-action of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetInstanceId()
Gets the instance id of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetInstanceInfo()
Gets the instance information data block of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetInstanceSignature()
Gets the signature of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetInstanceType()
Gets the instance type of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetMacAddress()
Gets the mac address of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetPrivateIpAddress()
Gets the private ip address of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetProductCodes()
Gets the product codes of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetPublicKey()
Gets the public key of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetRamDiskId()
Gets the ramdisk id of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetReservationId()
Gets the reservation id of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetResource()
Queries a generic resource (string) from the ec2 instance metadata document
- Parameters
-
| resourcePath | path of the resource to query |
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetSecurityGroups()
Gets the list of the security groups of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ GetUnderlyingHandle()
◆ GetUserData()
Gets the user data of the ec2 instance from the instance metadata document
- Parameters
-
| callback | callback function to invoke on query success or failure |
| userData | opaque data to invoke the completion callback with |
- Returns
- AWS_OP_SUCCESS if the query was successfully started, AWS_OP_ERR otherwise
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following files: