Skip to main content

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

TypeDescription
*session.SessionThe 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

TypeDescription
*aws.ConfigThe 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

TypeDescription
*ConfigThe 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

TypeDescription
stringThe hostname as a string.