Skip to content

MigrationHubRefactorSpacesClient

Index > MigrationHubRefactorSpaces > MigrationHubRefactorSpacesClient

Auto-generated documentation for MigrationHubRefactorSpaces type annotations stubs module types-aiobotocore-migration-hub-refactor-spaces.

MigrationHubRefactorSpacesClient

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

Usage example
from aioboto3.session import Session
from types_aiobotocore_migration_hub_refactor_spaces.client import MigrationHubRefactorSpacesClient

session = Session()
async with session.client("migration-hub-refactor-spaces") as client:
    client: MigrationHubRefactorSpacesClient

Exceptions

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

Usage example
async with session.client("migration-hub-refactor-spaces") as client:
    try:
        do_something(client)
    except (
            client.AccessDeniedException,
        client.ClientError,
        client.ConflictException,
        client.InternalServerException,
        client.InvalidResourcePolicyException,
        client.ResourceNotFoundException,
        client.ServiceQuotaExceededException,
        client.ThrottlingException,
        client.ValidationException,
    ) as e:
        print(e)
Type checking example
from types_aiobotocore_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 session.client("migration-hub-refactor-spaces").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("migration-hub-refactor-spaces").close method. boto3 documentation

Method definition
await def close(
    self,
) -> None:
    ...

create_application

Creates an Amazon Web Services Migration Hub Refactor Spaces application.

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

Method definition
await 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
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").create_environment method. boto3 documentation

Method definition
await 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
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").create_route method. boto3 documentation

Method definition
await 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
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").create_service method. boto3 documentation

Method definition
await 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
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").delete_application method. boto3 documentation

Method definition
await def delete_application(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
) -> DeleteApplicationResponseTypeDef:  # (1)
    ...
  1. See DeleteApplicationResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").delete_environment method. boto3 documentation

Method definition
await def delete_environment(
    self,
    *,
    EnvironmentIdentifier: str,
) -> DeleteEnvironmentResponseTypeDef:  # (1)
    ...
  1. See DeleteEnvironmentResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").delete_resource_policy method. boto3 documentation

Method definition
await def delete_resource_policy(
    self,
    *,
    Identifier: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").delete_route method. boto3 documentation

Method definition
await def delete_route(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    RouteIdentifier: str,
) -> DeleteRouteResponseTypeDef:  # (1)
    ...
  1. See DeleteRouteResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").delete_service method. boto3 documentation

Method definition
await def delete_service(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    ServiceIdentifier: str,
) -> DeleteServiceResponseTypeDef:  # (1)
    ...
  1. See DeleteServiceResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").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_application

Gets an Amazon Web Services Migration Hub Refactor Spaces application.

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

Method definition
await def get_application(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
) -> GetApplicationResponseTypeDef:  # (1)
    ...
  1. See GetApplicationResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").get_environment method. boto3 documentation

Method definition
await def get_environment(
    self,
    *,
    EnvironmentIdentifier: str,
) -> GetEnvironmentResponseTypeDef:  # (1)
    ...
  1. See GetEnvironmentResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").get_resource_policy method. boto3 documentation

Method definition
await def get_resource_policy(
    self,
    *,
    Identifier: str,
) -> GetResourcePolicyResponseTypeDef:  # (1)
    ...
  1. See GetResourcePolicyResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").get_route method. boto3 documentation

Method definition
await def get_route(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    RouteIdentifier: str,
) -> GetRouteResponseTypeDef:  # (1)
    ...
  1. See GetRouteResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").get_service method. boto3 documentation

Method definition
await def get_service(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    ServiceIdentifier: str,
) -> GetServiceResponseTypeDef:  # (1)
    ...
  1. See GetServiceResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").list_applications method. boto3 documentation

Method definition
await def list_applications(
    self,
    *,
    EnvironmentIdentifier: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListApplicationsResponseTypeDef:  # (1)
    ...
  1. See ListApplicationsResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").list_environment_vpcs method. boto3 documentation

Method definition
await def list_environment_vpcs(
    self,
    *,
    EnvironmentIdentifier: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListEnvironmentVpcsResponseTypeDef:  # (1)
    ...
  1. See ListEnvironmentVpcsResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").list_environments method. boto3 documentation

Method definition
await def list_environments(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListEnvironmentsResponseTypeDef:  # (1)
    ...
  1. See ListEnvironmentsResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").list_routes method. boto3 documentation

Method definition
await def list_routes(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListRoutesResponseTypeDef:  # (1)
    ...
  1. See ListRoutesResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").list_services method. boto3 documentation

Method definition
await def list_services(
    self,
    *,
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListServicesResponseTypeDef:  # (1)
    ...
  1. See ListServicesResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").list_tags_for_resource method. boto3 documentation

Method definition
await def list_tags_for_resource(
    self,
    *,
    ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").put_resource_policy method. boto3 documentation

Method definition
await def put_resource_policy(
    self,
    *,
    Policy: str,
    ResourceArn: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").tag_resource method. boto3 documentation

Method definition
await def tag_resource(
    self,
    *,
    ResourceArn: str,
    Tags: Mapping[str, str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").untag_resource method. boto3 documentation

Method definition
await def untag_resource(
    self,
    *,
    ResourceArn: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
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 session.client("migration-hub-refactor-spaces").update_route method. boto3 documentation

Method definition
await def update_route(
    self,
    *,
    ActivationState: RouteActivationStateType,  # (1)
    ApplicationIdentifier: str,
    EnvironmentIdentifier: str,
    RouteIdentifier: str,
) -> UpdateRouteResponseTypeDef:  # (2)
    ...
  1. See RouteActivationStateType
  2. See UpdateRouteResponseTypeDef
Usage example with kwargs
kwargs: UpdateRouteRequestRequestTypeDef = {  # (1)
    "ActivationState": ...,
    "ApplicationIdentifier": ...,
    "EnvironmentIdentifier": ...,
    "RouteIdentifier": ...,
}

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

__aenter__

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

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

__aexit__

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

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

get_paginator

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