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
Retrieves the AWS SDK configuration. This allows callers to inspect or modify the SDK's behavior, such as region, credentials, or retry settings.
Returns
| Type | Description |
|---|---|
*aws.Config | The AWS SDK configuration object. |
GetConfig()
@classmethod
def GetConfig() - > *Config
Retrieves the client's specific configuration. This provides access to custom settings or parameters defined for this particular client instance.
Returns
| Type | Description |
|---|---|
*Config | The client's configuration object. |
GetHostName()
@classmethod
def GetHostName() - > string
Retrieves the hostname associated with the client. This is useful for identifying the service endpoint or the host where the client is operating.
Returns
| Type | Description |
|---|---|
string | The hostname as a string. |