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: UriPathRouteInputTypeDef = ...,  # (3)
) -> CreateRouteResponseTypeDef:  # (4)
    ...
  1. See RouteTypeType
  2. See DefaultRouteInputTypeDef
  3. See UriPathRouteInputTypeDef
  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,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    ServiceIdentifier: str,
) -> DeleteServiceResponseTypeDef:  # (1)
    ...
  1. See DeleteServiceResponseTypeDef
# delete_service method usage example with argument unpacking

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

parent.delete_service(**kwargs)
  1. See DeleteServiceRequestRequestTypeDef

generate_presigned_url#

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

Type annotations and code completion for boto3.client("migration-hub-refactor-spaces").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:
    ...

get_application#

Gets an Amazon Web Services Migration Hub Refactor Spaces application.

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

# get_application method definition

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

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

parent.get_application(**kwargs)
  1. See GetApplicationRequestRequestTypeDef

get_environment#

Gets an Amazon Web Services Migration Hub Refactor Spaces environment.

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

# get_environment method definition

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

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

parent.get_environment(**kwargs)
  1. See GetEnvironmentRequestRequestTypeDef

get_resource_policy#

Gets the resource-based permission policy that is set for the given environment.

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

# get_resource_policy method definition

def get_resource_policy(
    self,
    *,
    Identifier: str,
) -> GetResourcePolicyResponseTypeDef:  # (1)
    ...
  1. See GetResourcePolicyResponseTypeDef
# get_resource_policy method usage example with argument unpacking

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

parent.get_resource_policy(**kwargs)
  1. See GetResourcePolicyRequestRequestTypeDef

get_route#

Gets an Amazon Web Services Migration Hub Refactor Spaces route.

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

# get_route method definition

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

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

parent.get_route(**kwargs)
  1. See GetRouteRequestRequestTypeDef

get_service#

Gets an Amazon Web Services Migration Hub Refactor Spaces service.

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

# get_service method definition

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

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

parent.get_service(**kwargs)
  1. See GetServiceRequestRequestTypeDef

list_applications#

Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment.

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

# list_applications method definition

def list_applications(
    self,
    *,
    EnvironmentIdentifier: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListApplicationsResponseTypeDef:  # (1)
    ...
  1. See ListApplicationsResponseTypeDef
# list_applications method usage example with argument unpacking

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

parent.list_applications(**kwargs)
  1. See ListApplicationsRequestRequestTypeDef

list_environment_vpcs#

Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the environment.

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

# list_environment_vpcs method definition

def list_environment_vpcs(
    self,
    *,
    EnvironmentIdentifier: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListEnvironmentVpcsResponseTypeDef:  # (1)
    ...
  1. See ListEnvironmentVpcsResponseTypeDef
# list_environment_vpcs method usage example with argument unpacking

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

parent.list_environment_vpcs(**kwargs)
  1. See ListEnvironmentVpcsRequestRequestTypeDef

list_environments#

Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the caller account.

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

# list_environments method definition

def list_environments(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListEnvironmentsResponseTypeDef:  # (1)
    ...
  1. See ListEnvironmentsResponseTypeDef
# list_environments method usage example with argument unpacking

kwargs: ListEnvironmentsRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_environments(**kwargs)
  1. See ListEnvironmentsRequestRequestTypeDef

list_routes#

Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application.

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

# list_routes method definition

def list_routes(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListRoutesResponseTypeDef:  # (1)
    ...
  1. See ListRoutesResponseTypeDef
# list_routes method usage example with argument unpacking

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

parent.list_routes(**kwargs)
  1. See ListRoutesRequestRequestTypeDef

list_services#

Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application.

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

# list_services method definition

def list_services(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListServicesResponseTypeDef:  # (1)
    ...
  1. See ListServicesResponseTypeDef
# list_services method usage example with argument unpacking

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

parent.list_services(**kwargs)
  1. See ListServicesRequestRequestTypeDef

list_tags_for_resource#

Lists the tags of a resource.

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

# list_tags_for_resource method definition

def list_tags_for_resource(
    self,
    *,
    ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
# list_tags_for_resource method usage example with argument unpacking

kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

put_resource_policy#

Attaches a resource-based permission policy to the Amazon Web Services Migration Hub Refactor Spaces environment.

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

# put_resource_policy method definition

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

kwargs: PutResourcePolicyRequestRequestTypeDef = {  # (1)
    "Policy": ...,
    "ResourceArn": ...,
}

parent.put_resource_policy(**kwargs)
  1. See PutResourcePolicyRequestRequestTypeDef

tag_resource#

Removes the tags of a given resource.

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

# tag_resource method definition

def tag_resource(
    self,
    *,
    ResourceArn: str,
    Tags: Mapping[str, str],
) -> Dict[str, Any]:
    ...
# tag_resource method usage example with argument unpacking

kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource#

Adds to or modifies the tags of the given resource.

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

# untag_resource method definition

def untag_resource(
    self,
    *,
    ResourceArn: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "TagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_route#

Updates an Amazon Web Services Migration Hub Refactor Spaces route.

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

# update_route method definition

def update_route(
    self,
    *,
    ActivationState: RouteActivationStateType,  # (1)
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    RouteIdentifier: str,
) -> UpdateRouteResponseTypeDef:  # (2)
    ...
  1. See RouteActivationStateType
  2. See UpdateRouteResponseTypeDef
# update_route method usage example with argument unpacking

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

parent.update_route(**kwargs)
  1. See UpdateRouteRequestRequestTypeDef

get_paginator#

Type annotations and code completion for boto3.client("migration-hub-refactor-spaces").get_paginator method with overloads.