MigrationHubConfigClient#
Index > MigrationHubConfig > MigrationHubConfigClient
Auto-generated documentation for MigrationHubConfig type annotations stubs module types-boto3-migrationhub-config.
MigrationHubConfigClient#
Type annotations and code completion for boto3.client("migrationhub-config").
 boto3 documentation
# MigrationHubConfigClient usage example
from boto3.session import Session
from types_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.
# Exceptions.exceptions usage example
client = boto3.client("migrationhub-config")
try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.DryRunOperation,
    client.exceptions.InternalServerError,
    client.exceptions.InvalidInputException,
    client.exceptions.ServiceUnavailableException,
    client.exceptions.ThrottlingException,
) as e:
    print(e)# Exceptions.exceptions type checking example
from types_boto3_migrationhub_config.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...Methods#
can_paginate#
Type annotations and code completion for boto3.client("migrationhub-config").can_paginate method.
 boto3 documentation
# can_paginate method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...generate_presigned_url#
Type annotations and code completion for boto3.client("migrationhub-config").generate_presigned_url method.
 boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...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
# create_home_region_control method definition
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: CreateHomeRegionControlRequestTypeDef = {  # (1)
    "HomeRegion": ...,
    "Target": ...,
}
parent.create_home_region_control(**kwargs)delete_home_region_control#
This operation deletes the home region configuration for the calling account.
Type annotations and code completion for boto3.client("migrationhub-config").delete_home_region_control method.
 boto3 documentation
# delete_home_region_control method definition
def delete_home_region_control(
    self,
    *,
    ControlId: str,
) -> Dict[str, Any]:
    ...# delete_home_region_control method usage example with argument unpacking
kwargs: DeleteHomeRegionControlRequestTypeDef = {  # (1)
    "ControlId": ...,
}
parent.delete_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
# describe_home_region_controls method definition
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: DescribeHomeRegionControlsRequestTypeDef = {  # (1)
    "ControlId": ...,
}
parent.describe_home_region_controls(**kwargs)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
# get_home_region method definition
def get_home_region(
    self,
) -> GetHomeRegionResultTypeDef:  # (1)
    ...