MigrationHubConfigClient
Index > MigrationHubConfig > MigrationHubConfigClient
Auto-generated documentation for MigrationHubConfig type annotations stubs module mypy-boto3-migrationhub-config.
MigrationHubConfigClient
Type annotations and code completion for boto3.client("migrationhub-config")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_migrationhub_config.client import MigrationHubConfigClient
def get_migrationhub-config_client() -> MigrationHubConfigClient:
return Session().client("migrationhub-config")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("migrationhub-config").exceptions
structure.
client = boto3.client("migrationhub-config")
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.DryRunOperation,
client.InternalServerError,
client.InvalidInputException,
client.ServiceUnavailableException,
client.ThrottlingException,
) as e:
print(e)
from mypy_boto3_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 boto3.client("migrationhub-config").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("migrationhub-config").close
method.
boto3 documentation
create_home_region_control
This API sets up the home region for the calling account only.
Type annotations and code completion for boto3.client("migrationhub-config").create_home_region_control
method.
boto3 documentation
def create_home_region_control(
self,
*,
HomeRegion: str,
Target: TargetTypeDef, # (1)
DryRun: bool = ...,
) -> CreateHomeRegionControlResultTypeDef: # (2)
...
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 boto3.client("migrationhub-config").describe_home_region_controls
method.
boto3 documentation
def describe_home_region_controls(
self,
*,
ControlId: str = ...,
HomeRegion: str = ...,
Target: TargetTypeDef = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeHomeRegionControlsResultTypeDef: # (2)
...
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 boto3.client("migrationhub-config").generate_presigned_url
method.
boto3 documentation
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 boto3.client("migrationhub-config").get_home_region
method.
boto3 documentation