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)
...
# create_application method usage example with argument unpacking
kwargs: CreateApplicationRequestRequestTypeDef = { # (1)
"EnvironmentIdentifier": ...,
"Name": ...,
"ProxyType": ...,
"VpcId": ...,
}
parent.create_application(**kwargs)
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)
...
# create_environment method usage example with argument unpacking
kwargs: CreateEnvironmentRequestRequestTypeDef = { # (1)
"Name": ...,
"NetworkFabricType": ...,
}
parent.create_environment(**kwargs)
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)
...
- See RouteTypeType
- See DefaultRouteInputTypeDef
- See UriPathRouteInputTypeDef
- See CreateRouteResponseTypeDef
# create_route method usage example with argument unpacking
kwargs: CreateRouteRequestRequestTypeDef = { # (1)
"ApplicationIdentifier": ...,
"EnvironmentIdentifier": ...,
"RouteType": ...,
"ServiceIdentifier": ...,
}
parent.create_route(**kwargs)
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)
...
- See ServiceEndpointTypeType
- See LambdaEndpointInputTypeDef
- See UrlEndpointInputTypeDef
- See CreateServiceResponseTypeDef
# create_service method usage example with argument unpacking
kwargs: CreateServiceRequestRequestTypeDef = { # (1)
"ApplicationIdentifier": ...,
"EndpointType": ...,
"EnvironmentIdentifier": ...,
"Name": ...,
}
parent.create_service(**kwargs)
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)
...
# delete_application method usage example with argument unpacking
kwargs: DeleteApplicationRequestRequestTypeDef = { # (1)
"ApplicationIdentifier": ...,
"EnvironmentIdentifier": ...,
}
parent.delete_application(**kwargs)
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)
...
# delete_environment method usage example with argument unpacking
kwargs: DeleteEnvironmentRequestRequestTypeDef = { # (1)
"EnvironmentIdentifier": ...,
}
parent.delete_environment(**kwargs)
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)
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)
...
# delete_route method usage example with argument unpacking
kwargs: DeleteRouteRequestRequestTypeDef = { # (1)
"ApplicationIdentifier": ...,
"EnvironmentIdentifier": ...,
"RouteIdentifier": ...,
}
parent.delete_route(**kwargs)
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)
...
# delete_service method usage example with argument unpacking
kwargs: DeleteServiceRequestRequestTypeDef = { # (1)
"ApplicationIdentifier": ...,
"EnvironmentIdentifier": ...,
"ServiceIdentifier": ...,
}
parent.delete_service(**kwargs)
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)
...
# get_application method usage example with argument unpacking
kwargs: GetApplicationRequestRequestTypeDef = { # (1)
"ApplicationIdentifier": ...,
"EnvironmentIdentifier": ...,
}
parent.get_application(**kwargs)
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)
...
# get_environment method usage example with argument unpacking
kwargs: GetEnvironmentRequestRequestTypeDef = { # (1)
"EnvironmentIdentifier": ...,
}
parent.get_environment(**kwargs)
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)
...
# get_resource_policy method usage example with argument unpacking
kwargs: GetResourcePolicyRequestRequestTypeDef = { # (1)
"Identifier": ...,
}
parent.get_resource_policy(**kwargs)
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)
...
# get_route method usage example with argument unpacking
kwargs: GetRouteRequestRequestTypeDef = { # (1)
"ApplicationIdentifier": ...,
"EnvironmentIdentifier": ...,
"RouteIdentifier": ...,
}
parent.get_route(**kwargs)
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)
...
# get_service method usage example with argument unpacking
kwargs: GetServiceRequestRequestTypeDef = { # (1)
"ApplicationIdentifier": ...,
"EnvironmentIdentifier": ...,
"ServiceIdentifier": ...,
}
parent.get_service(**kwargs)
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)
...
# list_applications method usage example with argument unpacking
kwargs: ListApplicationsRequestRequestTypeDef = { # (1)
"EnvironmentIdentifier": ...,
}
parent.list_applications(**kwargs)
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)
...
# list_environment_vpcs method usage example with argument unpacking
kwargs: ListEnvironmentVpcsRequestRequestTypeDef = { # (1)
"EnvironmentIdentifier": ...,
}
parent.list_environment_vpcs(**kwargs)
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)
...
# list_environments method usage example with argument unpacking
kwargs: ListEnvironmentsRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.list_environments(**kwargs)
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)
...
# list_routes method usage example with argument unpacking
kwargs: ListRoutesRequestRequestTypeDef = { # (1)
"ApplicationIdentifier": ...,
"EnvironmentIdentifier": ...,
}
parent.list_routes(**kwargs)
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)
...
# list_services method usage example with argument unpacking
kwargs: ListServicesRequestRequestTypeDef = { # (1)
"ApplicationIdentifier": ...,
"EnvironmentIdentifier": ...,
}
parent.list_services(**kwargs)
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)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
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)
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)
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)
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)
...
# update_route method usage example with argument unpacking
kwargs: UpdateRouteRequestRequestTypeDef = { # (1)
"ActivationState": ...,
"ApplicationIdentifier": ...,
"EnvironmentIdentifier": ...,
"RouteIdentifier": ...,
}
parent.update_route(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("migration-hub-refactor-spaces").get_paginator
method with overloads.
client.get_paginator("list_applications")
-> ListApplicationsPaginatorclient.get_paginator("list_environment_vpcs")
-> ListEnvironmentVpcsPaginatorclient.get_paginator("list_environments")
-> ListEnvironmentsPaginatorclient.get_paginator("list_routes")
-> ListRoutesPaginatorclient.get_paginator("list_services")
-> ListServicesPaginator