Skip to content

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

# MigrationHubConfigClient usage example

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.

# 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 mypy_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)
    ...
  1. See TargetTypeDef
  2. See CreateHomeRegionControlResultTypeDef
# create_home_region_control method usage example with argument unpacking

kwargs: CreateHomeRegionControlRequestRequestTypeDef = {  # (1)
    "HomeRegion": ...,
    "Target": ...,
}

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

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: DeleteHomeRegionControlRequestRequestTypeDef = {  # (1)
    "ControlId": ...,
}

parent.delete_home_region_control(**kwargs)
  1. See DeleteHomeRegionControlRequestRequestTypeDef

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)
    ...
  1. See TargetTypeDef
  2. See DescribeHomeRegionControlsResultTypeDef
# describe_home_region_controls method usage example with argument unpacking

kwargs: DescribeHomeRegionControlsRequestRequestTypeDef = {  # (1)
    "ControlId": ...,
}

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

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)
    ...
  1. See GetHomeRegionResultTypeDef