MigrationHubConfigClient#
Index > MigrationHubConfig > MigrationHubConfigClient
Auto-generated documentation for MigrationHubConfig type annotations stubs module types-aiobotocore-migrationhub-config.
MigrationHubConfigClient#
Type annotations and code completion for session.create_client("migrationhub-config")
boto3 documentation
MigrationHubConfigClient usage example
from aiobotocore.session import get_session
from types_aiobotocore_migrationhub_config.client import MigrationHubConfigClient
session = get_session()
async with session.create_client("migrationhub-config") as client:
client: MigrationHubConfigClient
Exceptions#
aiobotocore
client exceptions are generated in runtime.
This class provides code completion for session.create_client("migrationhub-config").exceptions
structure.
MigrationHubConfigClient.exceptions usage example
async with session.create_client("migrationhub-config") as client:
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.DryRunOperation,
client.InternalServerError,
client.InvalidInputException,
client.ServiceUnavailableException,
client.ThrottlingException,
) as e:
print(e)
MigrationHubConfigClient usage type checking example
from types_aiobotocore_migrationhub_config.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for session.create_client("migrationhub-config").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for session.create_client("migrationhub-config").close
method.
boto3 documentation
# close method definition
await def close(
self,
) -> None:
...
create_home_region_control#
This API sets up the home region for the calling account only.
Type annotations and code completion for session.create_client("migrationhub-config").create_home_region_control
method.
boto3 documentation
# create_home_region_control method definition
await def create_home_region_control(
self,
*,
HomeRegion: str,
Target: TargetTypeDef, # (1)
DryRun: bool = ...,
) -> CreateHomeRegionControlResultTypeDef: # (2)
...
# create_home_region_control method usage example with argument unpacking
kwargs: CreateHomeRegionControlRequestRequestTypeDef = { # (1)
"HomeRegion": ...,
"Target": ...,
}
parent.create_home_region_control(**kwargs)
describe_home_region_controls#
This API permits filtering on the ControlId
and HomeRegion
fields.
Type annotations and code completion for session.create_client("migrationhub-config").describe_home_region_controls
method.
boto3 documentation
# describe_home_region_controls method definition
await def describe_home_region_controls(
self,
*,
ControlId: str = ...,
HomeRegion: str = ...,
Target: TargetTypeDef = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeHomeRegionControlsResultTypeDef: # (2)
...
# describe_home_region_controls method usage example with argument unpacking
kwargs: DescribeHomeRegionControlsRequestRequestTypeDef = { # (1)
"ControlId": ...,
}
parent.describe_home_region_controls(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.create_client("migrationhub-config").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_home_region#
Returns the calling account’s home region, if configured.
Type annotations and code completion for session.create_client("migrationhub-config").get_home_region
method.
boto3 documentation
# get_home_region method definition
await def get_home_region(
self,
) -> GetHomeRegionResultTypeDef: # (1)
...
__aenter__#
Type annotations and code completion for session.create_client("migrationhub-config").__aenter__
method.
boto3 documentation
# __aenter__ method definition
await def __aenter__(
self,
) -> MigrationHubConfigClient:
...
__aexit__#
Type annotations and code completion for session.create_client("migrationhub-config").__aexit__
method.
boto3 documentation
# __aexit__ method definition
await def __aexit__(
self,
exc_type: Any,
exc_val: Any,
exc_tb: Any,
) -> Any:
...