Skip to content

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.client("migrationhub-config") boto3 documentation

Usage example
from aioboto3.session import Session
from types_aiobotocore_migrationhub_config.client import MigrationHubConfigClient

session = Session()
async with session.client("migrationhub-config") as client:
    client: MigrationHubConfigClient

Exceptions

aioboto3 client exceptions are generated in runtime. This class provides code completion for session.client("migrationhub-config").exceptions structure.

Usage example
async with session.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)
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.client("migrationhub-config").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close

Closes underlying endpoint connections.

Type annotations and code completion for session.client("migrationhub-config").close method. boto3 documentation

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.client("migrationhub-config").create_home_region_control method. boto3 documentation

Method definition
await def create_home_region_control(
    self,
    *,
    HomeRegion: str,
    Target: TargetTypeDef,  # (1)
    DryRun: bool = ...,
) -> CreateHomeRegionControlResultTypeDef:  # (2)
    ...
  1. See TargetTypeDef
  2. See CreateHomeRegionControlResultTypeDef
Usage example with kwargs
kwargs: CreateHomeRegionControlRequestRequestTypeDef = {  # (1)
    "HomeRegion": ...,
    "Target": ...,
}

parent.create_home_region_control(**kwargs)
  1. See CreateHomeRegionControlRequestRequestTypeDef

describe_home_region_controls

This API permits filtering on the ControlId and HomeRegion fields.

Type annotations and code completion for session.client("migrationhub-config").describe_home_region_controls method. boto3 documentation

Method definition
await def describe_home_region_controls(
    self,
    *,
    ControlId: str = ...,
    HomeRegion: str = ...,
    Target: TargetTypeDef = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeHomeRegionControlsResultTypeDef:  # (2)
    ...
  1. See TargetTypeDef
  2. See DescribeHomeRegionControlsResultTypeDef
Usage example with kwargs
kwargs: DescribeHomeRegionControlsRequestRequestTypeDef = {  # (1)
    "ControlId": ...,
}

parent.describe_home_region_controls(**kwargs)
  1. See DescribeHomeRegionControlsRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.client("migrationhub-config").generate_presigned_url method. boto3 documentation

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.client("migrationhub-config").get_home_region method. boto3 documentation

Method definition
await def get_home_region(
    self,
) -> GetHomeRegionResultTypeDef:  # (1)
    ...
  1. See GetHomeRegionResultTypeDef

__aenter__

Type annotations and code completion for session.client("migrationhub-config").__aenter__ method. boto3 documentation

Method definition
await def __aenter__(
    self,
) -> MigrationHubConfigClient:
    ...

__aexit__

Type annotations and code completion for session.client("migrationhub-config").__aexit__ method. boto3 documentation

Method definition
await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...