Client
Client is a generic AWS Client that can be used for all AWS Client libraries.
Methods
GetSession()
@classmethod
def GetSession() - > *session.Session
Retrieves the AWS session associated with the client. Callers use this to access session-specific configurations or credentials.
Returns
| Type | Description |
|---|---|
*session.Session | The AWS session object. |
GetSdkConfig()
@classmethod
def GetSdkConfig() - > *aws.Config
Fetches the AWS SDK configuration used by the client. This allows callers to inspect or modify SDK-level settings.
Returns
| Type | Description |
|---|---|
*aws.Config | The AWS SDK configuration object. |
GetConfig()
@classmethod
def GetConfig() - > *Config
Retrieves the client's specific configuration. This is used to access custom configuration settings for the client.
Returns
| Type | Description |
|---|---|
*Config | The client's configuration object. |
GetHostName()
@classmethod
def GetHostName() - > string
Returns the hostname associated with the client. Callers use this to identify the host being used for AWS operations.
Returns
| Type | Description |
|---|---|
string | The hostname as a string. |