@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSMigrationHubRefactorSpacesAsyncClient extends AWSMigrationHubRefactorSpacesClient implements AWSMigrationHubRefactorSpacesAsync
AsyncHandler
can be used to
receive notification when an asynchronous operation completes.
This API reference provides descriptions, syntax, and other details about each of the actions and data types for Amazon Web Services Migration Hub Refactor Spaces (Refactor Spaces). The topic for each action shows the API request parameters and the response. Alternatively, you can use one of the Amazon Web Services SDKs to access an API that is tailored to the programming language or platform that you're using. For more information, see Amazon Web Services SDKs.
To share Refactor Spaces environments with other Amazon Web Services accounts or with Organizations and their OUs,
use Resource Access Manager's CreateResourceShare
API. See CreateResourceShare in
the Amazon Web Services RAM API Reference.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSMigrationHubRefactorSpacesAsyncClientBuilder |
asyncBuilder() |
Future<CreateApplicationResult> |
createApplicationAsync(CreateApplicationRequest request)
Creates an Amazon Web Services Migration Hub Refactor Spaces application.
|
Future<CreateApplicationResult> |
createApplicationAsync(CreateApplicationRequest request,
AsyncHandler<CreateApplicationRequest,CreateApplicationResult> asyncHandler)
Creates an Amazon Web Services Migration Hub Refactor Spaces application.
|
Future<CreateEnvironmentResult> |
createEnvironmentAsync(CreateEnvironmentRequest request)
Creates an Amazon Web Services Migration Hub Refactor Spaces environment.
|
Future<CreateEnvironmentResult> |
createEnvironmentAsync(CreateEnvironmentRequest request,
AsyncHandler<CreateEnvironmentRequest,CreateEnvironmentResult> asyncHandler)
Creates an Amazon Web Services Migration Hub Refactor Spaces environment.
|
Future<CreateRouteResult> |
createRouteAsync(CreateRouteRequest request)
Creates an Amazon Web Services Migration Hub Refactor Spaces route.
|
Future<CreateRouteResult> |
createRouteAsync(CreateRouteRequest request,
AsyncHandler<CreateRouteRequest,CreateRouteResult> asyncHandler)
Creates an Amazon Web Services Migration Hub Refactor Spaces route.
|
Future<CreateServiceResult> |
createServiceAsync(CreateServiceRequest request)
Creates an Amazon Web Services Migration Hub Refactor Spaces service.
|
Future<CreateServiceResult> |
createServiceAsync(CreateServiceRequest request,
AsyncHandler<CreateServiceRequest,CreateServiceResult> asyncHandler)
Creates an Amazon Web Services Migration Hub Refactor Spaces service.
|
Future<DeleteApplicationResult> |
deleteApplicationAsync(DeleteApplicationRequest request)
Deletes an Amazon Web Services Migration Hub Refactor Spaces application.
|
Future<DeleteApplicationResult> |
deleteApplicationAsync(DeleteApplicationRequest request,
AsyncHandler<DeleteApplicationRequest,DeleteApplicationResult> asyncHandler)
Deletes an Amazon Web Services Migration Hub Refactor Spaces application.
|
Future<DeleteEnvironmentResult> |
deleteEnvironmentAsync(DeleteEnvironmentRequest request)
Deletes an Amazon Web Services Migration Hub Refactor Spaces environment.
|
Future<DeleteEnvironmentResult> |
deleteEnvironmentAsync(DeleteEnvironmentRequest request,
AsyncHandler<DeleteEnvironmentRequest,DeleteEnvironmentResult> asyncHandler)
Deletes an Amazon Web Services Migration Hub Refactor Spaces environment.
|
Future<DeleteResourcePolicyResult> |
deleteResourcePolicyAsync(DeleteResourcePolicyRequest request)
Deletes the resource policy set for the environment.
|
Future<DeleteResourcePolicyResult> |
deleteResourcePolicyAsync(DeleteResourcePolicyRequest request,
AsyncHandler<DeleteResourcePolicyRequest,DeleteResourcePolicyResult> asyncHandler)
Deletes the resource policy set for the environment.
|
Future<DeleteRouteResult> |
deleteRouteAsync(DeleteRouteRequest request)
Deletes an Amazon Web Services Migration Hub Refactor Spaces route.
|
Future<DeleteRouteResult> |
deleteRouteAsync(DeleteRouteRequest request,
AsyncHandler<DeleteRouteRequest,DeleteRouteResult> asyncHandler)
Deletes an Amazon Web Services Migration Hub Refactor Spaces route.
|
Future<DeleteServiceResult> |
deleteServiceAsync(DeleteServiceRequest request)
Deletes an Amazon Web Services Migration Hub Refactor Spaces service.
|
Future<DeleteServiceResult> |
deleteServiceAsync(DeleteServiceRequest request,
AsyncHandler<DeleteServiceRequest,DeleteServiceResult> asyncHandler)
Deletes an Amazon Web Services Migration Hub Refactor Spaces service.
|
Future<GetApplicationResult> |
getApplicationAsync(GetApplicationRequest request)
Gets an Amazon Web Services Migration Hub Refactor Spaces application.
|
Future<GetApplicationResult> |
getApplicationAsync(GetApplicationRequest request,
AsyncHandler<GetApplicationRequest,GetApplicationResult> asyncHandler)
Gets an Amazon Web Services Migration Hub Refactor Spaces application.
|
Future<GetEnvironmentResult> |
getEnvironmentAsync(GetEnvironmentRequest request)
Gets an Amazon Web Services Migration Hub Refactor Spaces environment.
|
Future<GetEnvironmentResult> |
getEnvironmentAsync(GetEnvironmentRequest request,
AsyncHandler<GetEnvironmentRequest,GetEnvironmentResult> asyncHandler)
Gets an Amazon Web Services Migration Hub Refactor Spaces environment.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetResourcePolicyResult> |
getResourcePolicyAsync(GetResourcePolicyRequest request)
Gets the resource-based permission policy that is set for the given environment.
|
Future<GetResourcePolicyResult> |
getResourcePolicyAsync(GetResourcePolicyRequest request,
AsyncHandler<GetResourcePolicyRequest,GetResourcePolicyResult> asyncHandler)
Gets the resource-based permission policy that is set for the given environment.
|
Future<GetRouteResult> |
getRouteAsync(GetRouteRequest request)
Gets an Amazon Web Services Migration Hub Refactor Spaces route.
|
Future<GetRouteResult> |
getRouteAsync(GetRouteRequest request,
AsyncHandler<GetRouteRequest,GetRouteResult> asyncHandler)
Gets an Amazon Web Services Migration Hub Refactor Spaces route.
|
Future<GetServiceResult> |
getServiceAsync(GetServiceRequest request)
Gets an Amazon Web Services Migration Hub Refactor Spaces service.
|
Future<GetServiceResult> |
getServiceAsync(GetServiceRequest request,
AsyncHandler<GetServiceRequest,GetServiceResult> asyncHandler)
Gets an Amazon Web Services Migration Hub Refactor Spaces service.
|
Future<ListApplicationsResult> |
listApplicationsAsync(ListApplicationsRequest request)
Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment.
|
Future<ListApplicationsResult> |
listApplicationsAsync(ListApplicationsRequest request,
AsyncHandler<ListApplicationsRequest,ListApplicationsResult> asyncHandler)
Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment.
|
Future<ListEnvironmentsResult> |
listEnvironmentsAsync(ListEnvironmentsRequest request)
Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the
caller account.
|
Future<ListEnvironmentsResult> |
listEnvironmentsAsync(ListEnvironmentsRequest request,
AsyncHandler<ListEnvironmentsRequest,ListEnvironmentsResult> asyncHandler)
Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the
caller account.
|
Future<ListEnvironmentVpcsResult> |
listEnvironmentVpcsAsync(ListEnvironmentVpcsRequest request)
Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part
of the environment.
|
Future<ListEnvironmentVpcsResult> |
listEnvironmentVpcsAsync(ListEnvironmentVpcsRequest request,
AsyncHandler<ListEnvironmentVpcsRequest,ListEnvironmentVpcsResult> asyncHandler)
Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part
of the environment.
|
Future<ListRoutesResult> |
listRoutesAsync(ListRoutesRequest request)
Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application.
|
Future<ListRoutesResult> |
listRoutesAsync(ListRoutesRequest request,
AsyncHandler<ListRoutesRequest,ListRoutesResult> asyncHandler)
Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application.
|
Future<ListServicesResult> |
listServicesAsync(ListServicesRequest request)
Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application.
|
Future<ListServicesResult> |
listServicesAsync(ListServicesRequest request,
AsyncHandler<ListServicesRequest,ListServicesResult> asyncHandler)
Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request)
Lists the tags of a resource.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request,
AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
Lists the tags of a resource.
|
Future<PutResourcePolicyResult> |
putResourcePolicyAsync(PutResourcePolicyRequest request)
Attaches a resource-based permission policy to the Amazon Web Services Migration Hub Refactor Spaces environment.
|
Future<PutResourcePolicyResult> |
putResourcePolicyAsync(PutResourcePolicyRequest request,
AsyncHandler<PutResourcePolicyRequest,PutResourcePolicyResult> asyncHandler)
Attaches a resource-based permission policy to the Amazon Web Services Migration Hub Refactor Spaces environment.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request)
Removes the tags of a given resource.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request,
AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
Removes the tags of a given resource.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request)
Adds to or modifies the tags of the given resource.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request,
AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
Adds to or modifies the tags of the given resource.
|
Future<UpdateRouteResult> |
updateRouteAsync(UpdateRouteRequest request)
Updates an Amazon Web Services Migration Hub Refactor Spaces route.
|
Future<UpdateRouteResult> |
updateRouteAsync(UpdateRouteRequest request,
AsyncHandler<UpdateRouteRequest,UpdateRouteResult> asyncHandler)
Updates an Amazon Web Services Migration Hub Refactor Spaces route.
|
builder, createApplication, createEnvironment, createRoute, createService, deleteApplication, deleteEnvironment, deleteResourcePolicy, deleteRoute, deleteService, getApplication, getCachedResponseMetadata, getEnvironment, getResourcePolicy, getRoute, getService, listApplications, listEnvironments, listEnvironmentVpcs, listRoutes, listServices, listTagsForResource, putResourcePolicy, tagResource, untagResource, updateRoute
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createApplication, createEnvironment, createRoute, createService, deleteApplication, deleteEnvironment, deleteResourcePolicy, deleteRoute, deleteService, getApplication, getCachedResponseMetadata, getEnvironment, getResourcePolicy, getRoute, getService, listApplications, listEnvironments, listEnvironmentVpcs, listRoutes, listServices, listTagsForResource, putResourcePolicy, tagResource, untagResource, updateRoute
public static AWSMigrationHubRefactorSpacesAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateApplicationResult> createApplicationAsync(CreateApplicationRequest request)
AWSMigrationHubRefactorSpacesAsync
Creates an Amazon Web Services Migration Hub Refactor Spaces application. The account that owns the environment also owns the applications created inside the environment, regardless of the account that creates the application. Refactor Spaces provisions an Amazon API Gateway, API Gateway VPC link, and Network Load Balancer for the application proxy inside your account.
In environments created with a CreateEnvironment:NetworkFabricType of NONE
you need to configure VPC to VPC connectivity between your service VPC and the application proxy VPC to route traffic through the
application proxy to a service with a private URL endpoint. For more information, see Create an application in the Refactor Spaces User Guide.
createApplicationAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<CreateApplicationResult> createApplicationAsync(CreateApplicationRequest request, AsyncHandler<CreateApplicationRequest,CreateApplicationResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Creates an Amazon Web Services Migration Hub Refactor Spaces application. The account that owns the environment also owns the applications created inside the environment, regardless of the account that creates the application. Refactor Spaces provisions an Amazon API Gateway, API Gateway VPC link, and Network Load Balancer for the application proxy inside your account.
In environments created with a CreateEnvironment:NetworkFabricType of NONE
you need to configure VPC to VPC connectivity between your service VPC and the application proxy VPC to route traffic through the
application proxy to a service with a private URL endpoint. For more information, see Create an application in the Refactor Spaces User Guide.
createApplicationAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateEnvironmentResult> createEnvironmentAsync(CreateEnvironmentRequest request)
AWSMigrationHubRefactorSpacesAsync
Creates an Amazon Web Services Migration Hub Refactor Spaces environment. The caller owns the environment resource, and all Refactor Spaces applications, services, and routes created within the environment. They are referred to as the environment owner. The environment owner has cross-account visibility and control of Refactor Spaces resources that are added to the environment by other accounts that the environment is shared with.
When creating an environment with a CreateEnvironment:NetworkFabricType of TRANSIT_GATEWAY
, Refactor Spaces provisions a transit
gateway to enable services in VPCs to communicate directly across accounts. If CreateEnvironment:NetworkFabricType is NONE
, Refactor Spaces does not create a transit gateway
and you must use your network infrastructure to route traffic to services with private URL endpoints.
createEnvironmentAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<CreateEnvironmentResult> createEnvironmentAsync(CreateEnvironmentRequest request, AsyncHandler<CreateEnvironmentRequest,CreateEnvironmentResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Creates an Amazon Web Services Migration Hub Refactor Spaces environment. The caller owns the environment resource, and all Refactor Spaces applications, services, and routes created within the environment. They are referred to as the environment owner. The environment owner has cross-account visibility and control of Refactor Spaces resources that are added to the environment by other accounts that the environment is shared with.
When creating an environment with a CreateEnvironment:NetworkFabricType of TRANSIT_GATEWAY
, Refactor Spaces provisions a transit
gateway to enable services in VPCs to communicate directly across accounts. If CreateEnvironment:NetworkFabricType is NONE
, Refactor Spaces does not create a transit gateway
and you must use your network infrastructure to route traffic to services with private URL endpoints.
createEnvironmentAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateRouteResult> createRouteAsync(CreateRouteRequest request)
AWSMigrationHubRefactorSpacesAsync
Creates an Amazon Web Services Migration Hub Refactor Spaces route. The account owner of the service resource is
always the environment owner, regardless of which account creates the route. Routes target a service in the
application. If an application does not have any routes, then the first route must be created as a
DEFAULT
RouteType
.
When created, the default route defaults to an active state so state is not a required input. However, like all other state values the state of the default route can be updated after creation, but only when all other routes are also inactive. Conversely, no route can be active without the default route also being active.
When you create a route, Refactor Spaces configures the Amazon API Gateway to send traffic to the target service as follows:
URL Endpoints
If the service has a URL endpoint, and the endpoint resolves to a private IP address, Refactor Spaces routes traffic using the API Gateway VPC link. If a service endpoint resolves to a public IP address, Refactor Spaces routes traffic over the public internet. Services can have HTTP or HTTPS URL endpoints. For HTTPS URLs, publicly-signed certificates are supported. Private Certificate Authorities (CAs) are permitted only if the CA's domain is also publicly resolvable.
Refactor Spaces automatically resolves the public Domain Name System (DNS) names that are set in
CreateService:UrlEndpoint
when you create a service. The DNS names resolve when the DNS time-to-live
(TTL) expires, or every 60 seconds for TTLs less than 60 seconds. This periodic DNS resolution ensures that the
route configuration remains up-to-date.
One-time health check
A one-time health check is performed on the service when either the route is updated from inactive to active, or
when it is created with an active state. If the health check fails, the route transitions the route state to
FAILED
, an error code of SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE
is provided, and no
traffic is sent to the service.
For private URLs, a target group is created on the Network Load Balancer and the load balancer target group runs default target health checks. By default, the health check is run against the service endpoint URL. Optionally, the health check can be performed against a different protocol, port, and/or path using the CreateService:UrlEndpoint parameter. All other health check settings for the load balancer use the default values described in the Health checks for your target groups in the Elastic Load Balancing guide. The health check is considered successful if at least one target within the target group transitions to a healthy state.
Lambda function endpoints
If the service has an Lambda function endpoint, then Refactor Spaces configures the Lambda function's resource policy to allow the application's API Gateway to invoke the function.
The Lambda function state is checked. If the function is not active, the function configuration is updated so
that Lambda resources are provisioned. If the Lambda state is Failed
, then the route creation fails.
For more information, see the GetFunctionConfiguration's State response parameter in the Lambda Developer Guide.
A check is performed to determine that a Lambda function with the specified ARN exists. If it does not exist, the health check fails. For public URLs, a connection is opened to the public endpoint. If the URL is not reachable, the health check fails.
Environments without a network bridge
When you create environments without a network bridge (CreateEnvironment:NetworkFabricType is NONE)
and you use your own networking infrastructure,
you need to configure VPC to VPC connectivity between your network and the application proxy VPC. Route creation from the
application proxy to service endpoints will fail if your network is not configured to connect to the application
proxy VPC. For more information, see
Create a route in the Refactor Spaces User Guide.
createRouteAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<CreateRouteResult> createRouteAsync(CreateRouteRequest request, AsyncHandler<CreateRouteRequest,CreateRouteResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Creates an Amazon Web Services Migration Hub Refactor Spaces route. The account owner of the service resource is
always the environment owner, regardless of which account creates the route. Routes target a service in the
application. If an application does not have any routes, then the first route must be created as a
DEFAULT
RouteType
.
When created, the default route defaults to an active state so state is not a required input. However, like all other state values the state of the default route can be updated after creation, but only when all other routes are also inactive. Conversely, no route can be active without the default route also being active.
When you create a route, Refactor Spaces configures the Amazon API Gateway to send traffic to the target service as follows:
URL Endpoints
If the service has a URL endpoint, and the endpoint resolves to a private IP address, Refactor Spaces routes traffic using the API Gateway VPC link. If a service endpoint resolves to a public IP address, Refactor Spaces routes traffic over the public internet. Services can have HTTP or HTTPS URL endpoints. For HTTPS URLs, publicly-signed certificates are supported. Private Certificate Authorities (CAs) are permitted only if the CA's domain is also publicly resolvable.
Refactor Spaces automatically resolves the public Domain Name System (DNS) names that are set in
CreateService:UrlEndpoint
when you create a service. The DNS names resolve when the DNS time-to-live
(TTL) expires, or every 60 seconds for TTLs less than 60 seconds. This periodic DNS resolution ensures that the
route configuration remains up-to-date.
One-time health check
A one-time health check is performed on the service when either the route is updated from inactive to active, or
when it is created with an active state. If the health check fails, the route transitions the route state to
FAILED
, an error code of SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE
is provided, and no
traffic is sent to the service.
For private URLs, a target group is created on the Network Load Balancer and the load balancer target group runs default target health checks. By default, the health check is run against the service endpoint URL. Optionally, the health check can be performed against a different protocol, port, and/or path using the CreateService:UrlEndpoint parameter. All other health check settings for the load balancer use the default values described in the Health checks for your target groups in the Elastic Load Balancing guide. The health check is considered successful if at least one target within the target group transitions to a healthy state.
Lambda function endpoints
If the service has an Lambda function endpoint, then Refactor Spaces configures the Lambda function's resource policy to allow the application's API Gateway to invoke the function.
The Lambda function state is checked. If the function is not active, the function configuration is updated so
that Lambda resources are provisioned. If the Lambda state is Failed
, then the route creation fails.
For more information, see the GetFunctionConfiguration's State response parameter in the Lambda Developer Guide.
A check is performed to determine that a Lambda function with the specified ARN exists. If it does not exist, the health check fails. For public URLs, a connection is opened to the public endpoint. If the URL is not reachable, the health check fails.
Environments without a network bridge
When you create environments without a network bridge (CreateEnvironment:NetworkFabricType is NONE)
and you use your own networking infrastructure,
you need to configure VPC to VPC connectivity between your network and the application proxy VPC. Route creation from the
application proxy to service endpoints will fail if your network is not configured to connect to the application
proxy VPC. For more information, see
Create a route in the Refactor Spaces User Guide.
createRouteAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateServiceResult> createServiceAsync(CreateServiceRequest request)
AWSMigrationHubRefactorSpacesAsync
Creates an Amazon Web Services Migration Hub Refactor Spaces service. The account owner of the service is always the environment owner, regardless of which account in the environment creates the service. Services have either a URL endpoint in a virtual private cloud (VPC), or a Lambda function endpoint.
If an Amazon Web Services resource is launched in a service VPC, and you want it to be accessible to all of an
environment’s services with VPCs and routes, apply the RefactorSpacesSecurityGroup
to the resource.
Alternatively, to add more cross-account constraints, apply your own security group.
createServiceAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<CreateServiceResult> createServiceAsync(CreateServiceRequest request, AsyncHandler<CreateServiceRequest,CreateServiceResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Creates an Amazon Web Services Migration Hub Refactor Spaces service. The account owner of the service is always the environment owner, regardless of which account in the environment creates the service. Services have either a URL endpoint in a virtual private cloud (VPC), or a Lambda function endpoint.
If an Amazon Web Services resource is launched in a service VPC, and you want it to be accessible to all of an
environment’s services with VPCs and routes, apply the RefactorSpacesSecurityGroup
to the resource.
Alternatively, to add more cross-account constraints, apply your own security group.
createServiceAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteApplicationResult> deleteApplicationAsync(DeleteApplicationRequest request)
AWSMigrationHubRefactorSpacesAsync
Deletes an Amazon Web Services Migration Hub Refactor Spaces application. Before you can delete an application, you must first delete any services or routes within the application.
deleteApplicationAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<DeleteApplicationResult> deleteApplicationAsync(DeleteApplicationRequest request, AsyncHandler<DeleteApplicationRequest,DeleteApplicationResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Deletes an Amazon Web Services Migration Hub Refactor Spaces application. Before you can delete an application, you must first delete any services or routes within the application.
deleteApplicationAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteEnvironmentResult> deleteEnvironmentAsync(DeleteEnvironmentRequest request)
AWSMigrationHubRefactorSpacesAsync
Deletes an Amazon Web Services Migration Hub Refactor Spaces environment. Before you can delete an environment, you must first delete any applications and services within the environment.
deleteEnvironmentAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<DeleteEnvironmentResult> deleteEnvironmentAsync(DeleteEnvironmentRequest request, AsyncHandler<DeleteEnvironmentRequest,DeleteEnvironmentResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Deletes an Amazon Web Services Migration Hub Refactor Spaces environment. Before you can delete an environment, you must first delete any applications and services within the environment.
deleteEnvironmentAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteResourcePolicyResult> deleteResourcePolicyAsync(DeleteResourcePolicyRequest request)
AWSMigrationHubRefactorSpacesAsync
Deletes the resource policy set for the environment.
deleteResourcePolicyAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<DeleteResourcePolicyResult> deleteResourcePolicyAsync(DeleteResourcePolicyRequest request, AsyncHandler<DeleteResourcePolicyRequest,DeleteResourcePolicyResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Deletes the resource policy set for the environment.
deleteResourcePolicyAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteRouteResult> deleteRouteAsync(DeleteRouteRequest request)
AWSMigrationHubRefactorSpacesAsync
Deletes an Amazon Web Services Migration Hub Refactor Spaces route.
deleteRouteAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<DeleteRouteResult> deleteRouteAsync(DeleteRouteRequest request, AsyncHandler<DeleteRouteRequest,DeleteRouteResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Deletes an Amazon Web Services Migration Hub Refactor Spaces route.
deleteRouteAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteServiceResult> deleteServiceAsync(DeleteServiceRequest request)
AWSMigrationHubRefactorSpacesAsync
Deletes an Amazon Web Services Migration Hub Refactor Spaces service.
deleteServiceAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<DeleteServiceResult> deleteServiceAsync(DeleteServiceRequest request, AsyncHandler<DeleteServiceRequest,DeleteServiceResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Deletes an Amazon Web Services Migration Hub Refactor Spaces service.
deleteServiceAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetApplicationResult> getApplicationAsync(GetApplicationRequest request)
AWSMigrationHubRefactorSpacesAsync
Gets an Amazon Web Services Migration Hub Refactor Spaces application.
getApplicationAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<GetApplicationResult> getApplicationAsync(GetApplicationRequest request, AsyncHandler<GetApplicationRequest,GetApplicationResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Gets an Amazon Web Services Migration Hub Refactor Spaces application.
getApplicationAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetEnvironmentResult> getEnvironmentAsync(GetEnvironmentRequest request)
AWSMigrationHubRefactorSpacesAsync
Gets an Amazon Web Services Migration Hub Refactor Spaces environment.
getEnvironmentAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<GetEnvironmentResult> getEnvironmentAsync(GetEnvironmentRequest request, AsyncHandler<GetEnvironmentRequest,GetEnvironmentResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Gets an Amazon Web Services Migration Hub Refactor Spaces environment.
getEnvironmentAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetResourcePolicyResult> getResourcePolicyAsync(GetResourcePolicyRequest request)
AWSMigrationHubRefactorSpacesAsync
Gets the resource-based permission policy that is set for the given environment.
getResourcePolicyAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<GetResourcePolicyResult> getResourcePolicyAsync(GetResourcePolicyRequest request, AsyncHandler<GetResourcePolicyRequest,GetResourcePolicyResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Gets the resource-based permission policy that is set for the given environment.
getResourcePolicyAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetRouteResult> getRouteAsync(GetRouteRequest request)
AWSMigrationHubRefactorSpacesAsync
Gets an Amazon Web Services Migration Hub Refactor Spaces route.
getRouteAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<GetRouteResult> getRouteAsync(GetRouteRequest request, AsyncHandler<GetRouteRequest,GetRouteResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Gets an Amazon Web Services Migration Hub Refactor Spaces route.
getRouteAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetServiceResult> getServiceAsync(GetServiceRequest request)
AWSMigrationHubRefactorSpacesAsync
Gets an Amazon Web Services Migration Hub Refactor Spaces service.
getServiceAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<GetServiceResult> getServiceAsync(GetServiceRequest request, AsyncHandler<GetServiceRequest,GetServiceResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Gets an Amazon Web Services Migration Hub Refactor Spaces service.
getServiceAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListApplicationsResult> listApplicationsAsync(ListApplicationsRequest request)
AWSMigrationHubRefactorSpacesAsync
Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment.
listApplicationsAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<ListApplicationsResult> listApplicationsAsync(ListApplicationsRequest request, AsyncHandler<ListApplicationsRequest,ListApplicationsResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment.
listApplicationsAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListEnvironmentVpcsResult> listEnvironmentVpcsAsync(ListEnvironmentVpcsRequest request)
AWSMigrationHubRefactorSpacesAsync
Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the environment.
listEnvironmentVpcsAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<ListEnvironmentVpcsResult> listEnvironmentVpcsAsync(ListEnvironmentVpcsRequest request, AsyncHandler<ListEnvironmentVpcsRequest,ListEnvironmentVpcsResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the environment.
listEnvironmentVpcsAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListEnvironmentsResult> listEnvironmentsAsync(ListEnvironmentsRequest request)
AWSMigrationHubRefactorSpacesAsync
Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the caller account.
listEnvironmentsAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<ListEnvironmentsResult> listEnvironmentsAsync(ListEnvironmentsRequest request, AsyncHandler<ListEnvironmentsRequest,ListEnvironmentsResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the caller account.
listEnvironmentsAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListRoutesResult> listRoutesAsync(ListRoutesRequest request)
AWSMigrationHubRefactorSpacesAsync
Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application.
listRoutesAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<ListRoutesResult> listRoutesAsync(ListRoutesRequest request, AsyncHandler<ListRoutesRequest,ListRoutesResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application.
listRoutesAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListServicesResult> listServicesAsync(ListServicesRequest request)
AWSMigrationHubRefactorSpacesAsync
Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application.
listServicesAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<ListServicesResult> listServicesAsync(ListServicesRequest request, AsyncHandler<ListServicesRequest,ListServicesResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application.
listServicesAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSMigrationHubRefactorSpacesAsync
Lists the tags of a resource. The caller account must be the same as the resource’s OwnerAccountId
.
Listing tags in other accounts is not supported.
listTagsForResourceAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Lists the tags of a resource. The caller account must be the same as the resource’s OwnerAccountId
.
Listing tags in other accounts is not supported.
listTagsForResourceAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutResourcePolicyResult> putResourcePolicyAsync(PutResourcePolicyRequest request)
AWSMigrationHubRefactorSpacesAsync
Attaches a resource-based permission policy to the Amazon Web Services Migration Hub Refactor Spaces environment.
The policy must contain the same actions and condition statements as the
arn:aws:ram::aws:permission/AWSRAMDefaultPermissionRefactorSpacesEnvironment
permission in Resource
Access Manager. The policy must not contain new lines or blank lines.
putResourcePolicyAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<PutResourcePolicyResult> putResourcePolicyAsync(PutResourcePolicyRequest request, AsyncHandler<PutResourcePolicyRequest,PutResourcePolicyResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Attaches a resource-based permission policy to the Amazon Web Services Migration Hub Refactor Spaces environment.
The policy must contain the same actions and condition statements as the
arn:aws:ram::aws:permission/AWSRAMDefaultPermissionRefactorSpacesEnvironment
permission in Resource
Access Manager. The policy must not contain new lines or blank lines.
putResourcePolicyAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSMigrationHubRefactorSpacesAsync
Removes the tags of a given resource. Tags are metadata which can be used to manage a resource. To tag a
resource, the caller account must be the same as the resource’s OwnerAccountId
. Tagging resources in
other accounts is not supported.
Amazon Web Services Migration Hub Refactor Spaces does not propagate tags to orchestrated resources, such as an environment’s transit gateway.
tagResourceAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Removes the tags of a given resource. Tags are metadata which can be used to manage a resource. To tag a
resource, the caller account must be the same as the resource’s OwnerAccountId
. Tagging resources in
other accounts is not supported.
Amazon Web Services Migration Hub Refactor Spaces does not propagate tags to orchestrated resources, such as an environment’s transit gateway.
tagResourceAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSMigrationHubRefactorSpacesAsync
Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource. To
untag a resource, the caller account must be the same as the resource’s OwnerAccountId
. Untagging
resources across accounts is not supported.
untagResourceAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource. To
untag a resource, the caller account must be the same as the resource’s OwnerAccountId
. Untagging
resources across accounts is not supported.
untagResourceAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateRouteResult> updateRouteAsync(UpdateRouteRequest request)
AWSMigrationHubRefactorSpacesAsync
Updates an Amazon Web Services Migration Hub Refactor Spaces route.
updateRouteAsync
in interface AWSMigrationHubRefactorSpacesAsync
public Future<UpdateRouteResult> updateRouteAsync(UpdateRouteRequest request, AsyncHandler<UpdateRouteRequest,UpdateRouteResult> asyncHandler)
AWSMigrationHubRefactorSpacesAsync
Updates an Amazon Web Services Migration Hub Refactor Spaces route.
updateRouteAsync
in interface AWSMigrationHubRefactorSpacesAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSMigrationHubRefactorSpaces
shutdown
in class AWSMigrationHubRefactorSpacesClient