Skip to content

MigrationHubRefactorSpacesClient#

Index > MigrationHubRefactorSpaces > MigrationHubRefactorSpacesClient

Auto-generated documentation for MigrationHubRefactorSpaces type annotations stubs module mypy-boto3-migration-hub-refactor-spaces.

MigrationHubRefactorSpacesClient#

Type annotations and code completion for boto3.client("migration-hub-refactor-spaces"). boto3 documentation

# MigrationHubRefactorSpacesClient usage example

from boto3.session import Session
from mypy_boto3_migration_hub_refactor_spaces.client import MigrationHubRefactorSpacesClient

def get_migration-hub-refactor-spaces_client() -> MigrationHubRefactorSpacesClient:
    return Session().client("migration-hub-refactor-spaces")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("migration-hub-refactor-spaces").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("migration-hub-refactor-spaces")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.InternalServerException,
    client.exceptions.InvalidResourcePolicyException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceQuotaExceededException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_migration_hub_refactor_spaces.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("migration-hub-refactor-spaces").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 boto3.client("migration-hub-refactor-spaces").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_application#

Creates an Amazon Web Services Migration Hub Refactor Spaces application.

Type annotations and code completion for boto3.client("migration-hub-refactor-spaces").create_application method. boto3 documentation

# create_application method definition

def create_application(
    self,
    *,
    EnvironmentIdentifier: str,
    Name: str,
    ProxyType: ProxyTypeType,  # (1)
    VpcId: str,
    ApiGatewayProxy: ApiGatewayProxyInputTypeDef = ...,  # (2)
    ClientToken: str = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateApplicationResponseTypeDef:  # (3)
    ...
  1. See ProxyTypeType
  2. See ApiGatewayProxyInputTypeDef
  3. See CreateApplicationResponseTypeDef
# create_application method usage example with argument unpacking

kwargs: CreateApplicationRequestRequestTypeDef = {  # (1)
    "EnvironmentIdentifier": ...,
    "Name": ...,
    "ProxyType": ...,
    "VpcId": ...,
}

parent.create_application(**kwargs)
  1. See CreateApplicationRequestRequestTypeDef

create_environment#

Creates an Amazon Web Services Migration Hub Refactor Spaces environment.

Type annotations and code completion for boto3.client("migration-hub-refactor-spaces").create_environment method. boto3 documentation

# create_environment method definition

def create_environment(
    self,
    *,
    Name: str,
    NetworkFabricType: NetworkFabricTypeType,  # (1)
    ClientToken: str = ...,
    Description: str = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateEnvironmentResponseTypeDef:  # (2)
    ...
  1. See NetworkFabricTypeType
  2. See CreateEnvironmentResponseTypeDef
# create_environment method usage example with argument unpacking

kwargs: CreateEnvironmentRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "NetworkFabricType": ...,
}

parent.create_environment(**kwargs)
  1. See CreateEnvironmentRequestRequestTypeDef

create_route#

Creates an Amazon Web Services Migration Hub Refactor Spaces route.

Type annotations and code completion for boto3.client("migration-hub-refactor-spaces").create_route method. boto3 documentation

# create_route method definition

def create_route(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    RouteType: RouteTypeType,  # (1)
    ServiceIdentifier: str,
    ClientToken: str = ...,
    DefaultRoute: DefaultRouteInputTypeDef = ...,  # (2)
    Tags: Mapping[str, str] = ...,
    UriPathRoute: Union[UriPathRouteInputTypeDef, UriPathRouteInputOutputTypeDef] = ...,  # (3)
) -> CreateRouteResponseTypeDef:  # (4)
    ...
  1. See RouteTypeType
  2. See DefaultRouteInputTypeDef
  3. See UriPathRouteInputTypeDef UriPathRouteInputOutputTypeDef
  4. See CreateRouteResponseTypeDef
# create_route method usage example with argument unpacking

kwargs: CreateRouteRequestRequestTypeDef = {  # (1)
    "ApplicationIdentifier": ...,
    "EnvironmentIdentifier": ...,
    "RouteType": ...,
    "ServiceIdentifier": ...,
}

parent.create_route(**kwargs)
  1. See CreateRouteRequestRequestTypeDef

create_service#

Creates an Amazon Web Services Migration Hub Refactor Spaces service.

Type annotations and code completion for boto3.client("migration-hub-refactor-spaces").create_service method. boto3 documentation

# create_service method definition

def create_service(
    self,
    *,
    ApplicationIdentifier: str,
    EndpointType: ServiceEndpointTypeType,  # (1)
    EnvironmentIdentifier: str,
    Name: str,
    ClientToken: str = ...,
    Description: str = ...,
    LambdaEndpoint: LambdaEndpointInputTypeDef = ...,  # (2)
    Tags: Mapping[str, str] = ...,
    UrlEndpoint: UrlEndpointInputTypeDef = ...,  # (3)
    VpcId: str = ...,
) -> CreateServiceResponseTypeDef:  # (4)
    ...
  1. See ServiceEndpointTypeType
  2. See LambdaEndpointInputTypeDef
  3. See UrlEndpointInputTypeDef
  4. See CreateServiceResponseTypeDef
# create_service method usage example with argument unpacking

kwargs: CreateServiceRequestRequestTypeDef = {  # (1)
    "ApplicationIdentifier": ...,
    "EndpointType": ...,
    "EnvironmentIdentifier": ...,
    "Name": ...,
}

parent.create_service(**kwargs)
  1. See CreateServiceRequestRequestTypeDef

delete_application#

Deletes an Amazon Web Services Migration Hub Refactor Spaces application.

Type annotations and code completion for boto3.client("migration-hub-refactor-spaces").delete_application method. boto3 documentation

# delete_application method definition

def delete_application(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
) -> DeleteApplicationResponseTypeDef:  # (1)
    ...
  1. See DeleteApplicationResponseTypeDef
# delete_application method usage example with argument unpacking

kwargs: DeleteApplicationRequestRequestTypeDef = {  # (1)
    "ApplicationIdentifier": ...,
    "EnvironmentIdentifier": ...,
}

parent.delete_application(**kwargs)
  1. See DeleteApplicationRequestRequestTypeDef

delete_environment#

Deletes an Amazon Web Services Migration Hub Refactor Spaces environment.

Type annotations and code completion for boto3.client("migration-hub-refactor-spaces").delete_environment method. boto3 documentation

# delete_environment method definition

def delete_environment(
    self,
    *,
    EnvironmentIdentifier: str,
) -> DeleteEnvironmentResponseTypeDef:  # (1)
    ...
  1. See DeleteEnvironmentResponseTypeDef
# delete_environment method usage example with argument unpacking

kwargs: DeleteEnvironmentRequestRequestTypeDef = {  # (1)
    "EnvironmentIdentifier": ...,
}

parent.delete_environment(**kwargs)
  1. See DeleteEnvironmentRequestRequestTypeDef

delete_resource_policy#

Deletes the resource policy set for the environment.

Type annotations and code completion for boto3.client("migration-hub-refactor-spaces").delete_resource_policy method. boto3 documentation

# delete_resource_policy method definition

def delete_resource_policy(
    self,
    *,
    Identifier: str,
) -> Dict[str, Any]:
    ...
# delete_resource_policy method usage example with argument unpacking

kwargs: DeleteResourcePolicyRequestRequestTypeDef = {  # (1)
    "Identifier": ...,
}

parent.delete_resource_policy(**kwargs)
  1. See DeleteResourcePolicyRequestRequestTypeDef

delete_route#

Deletes an Amazon Web Services Migration Hub Refactor Spaces route.

Type annotations and code completion for boto3.client("migration-hub-refactor-spaces").delete_route method. boto3 documentation

# delete_route method definition

def delete_route(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    RouteIdentifier: str,
) -> DeleteRouteResponseTypeDef:  # (1)
    ...
  1. See DeleteRouteResponseTypeDef
# delete_route method usage example with argument unpacking

kwargs: DeleteRouteRequestRequestTypeDef = {  # (1)
    "ApplicationIdentifier": ...,
    "EnvironmentIdentifier": ...,
    "RouteIdentifier": ...,
}

parent.delete_route(**kwargs)
  1. See DeleteRouteRequestRequestTypeDef

delete_service#

Deletes an Amazon Web Services Migration Hub Refactor Spaces service.

Type annotations and code completion for boto3.client("migration-hub-refactor-spaces").delete_service method. boto3 documentation

# delete_service method definition

def delete_service(
    self,
    *,
    Applic