Examples#
Index > SSMGUIConnect > Examples
Auto-generated documentation for SSMGUIConnect type annotations stubs module mypy-boto3-ssm-guiconnect.
Client#
Implicit type annotations#
Can be used with boto3-stubs[ssm-guiconnect]
package installed.
Write your SSMGUIConnect
code as usual,
type checking and code completion should work out of the box.
Client method usage example#
# SSMGUIConnectClient usage example
from boto3.session import Session
session = Session()
client = session.client("ssm-guiconnect") # (1)
result = client.delete_connection_recording_preferences() # (2)
Explicit type annotations#
With boto3-stubs-lite[ssm-guiconnect]
or a standalone mypy_boto3_ssm_guiconnect
package, you have to explicitly specify client: SSMGUIConnectClient
type annotation.
All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your functions and methods.
Client method usage example#
# SSMGUIConnectClient usage example with type annotations
from boto3.session import Session
from mypy_boto3_ssm_guiconnect.client import SSMGUIConnectClient
from mypy_boto3_ssm_guiconnect.type_defs import DeleteConnectionRecordingPreferencesResponseTypeDef
from mypy_boto3_ssm_guiconnect.type_defs import DeleteConnectionRecordingPreferencesRequestTypeDef
session = Session()
client: SSMGUIConnectClient = session.client("ssm-guiconnect")
kwargs: DeleteConnectionRecordingPreferencesRequestTypeDef = {...}
result: DeleteConnectionRecordingPreferencesResponseTypeDef = client.delete_connection_recording_preferences(**kwargs)