Interface MigrationHubRefactorSpacesClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aMigrationHubRefactorSpacesClient.create()Create aMigrationHubRefactorSpacesClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateApplicationResponsecreateApplication(Consumer<CreateApplicationRequest.Builder> createApplicationRequest) Creates an Amazon Web Services Migration Hub Refactor Spaces application.default CreateApplicationResponsecreateApplication(CreateApplicationRequest createApplicationRequest) Creates an Amazon Web Services Migration Hub Refactor Spaces application.default CreateEnvironmentResponsecreateEnvironment(Consumer<CreateEnvironmentRequest.Builder> createEnvironmentRequest) Creates an Amazon Web Services Migration Hub Refactor Spaces environment.default CreateEnvironmentResponsecreateEnvironment(CreateEnvironmentRequest createEnvironmentRequest) Creates an Amazon Web Services Migration Hub Refactor Spaces environment.default CreateRouteResponsecreateRoute(Consumer<CreateRouteRequest.Builder> createRouteRequest) Creates an Amazon Web Services Migration Hub Refactor Spaces route.default CreateRouteResponsecreateRoute(CreateRouteRequest createRouteRequest) Creates an Amazon Web Services Migration Hub Refactor Spaces route.default CreateServiceResponsecreateService(Consumer<CreateServiceRequest.Builder> createServiceRequest) Creates an Amazon Web Services Migration Hub Refactor Spaces service.default CreateServiceResponsecreateService(CreateServiceRequest createServiceRequest) Creates an Amazon Web Services Migration Hub Refactor Spaces service.default DeleteApplicationResponsedeleteApplication(Consumer<DeleteApplicationRequest.Builder> deleteApplicationRequest) Deletes an Amazon Web Services Migration Hub Refactor Spaces application.default DeleteApplicationResponsedeleteApplication(DeleteApplicationRequest deleteApplicationRequest) Deletes an Amazon Web Services Migration Hub Refactor Spaces application.default DeleteEnvironmentResponsedeleteEnvironment(Consumer<DeleteEnvironmentRequest.Builder> deleteEnvironmentRequest) Deletes an Amazon Web Services Migration Hub Refactor Spaces environment.default DeleteEnvironmentResponsedeleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest) Deletes an Amazon Web Services Migration Hub Refactor Spaces environment.default DeleteResourcePolicyResponsedeleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) Deletes the resource policy set for the environment.default DeleteResourcePolicyResponsedeleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) Deletes the resource policy set for the environment.default DeleteRouteResponsedeleteRoute(Consumer<DeleteRouteRequest.Builder> deleteRouteRequest) Deletes an Amazon Web Services Migration Hub Refactor Spaces route.default DeleteRouteResponsedeleteRoute(DeleteRouteRequest deleteRouteRequest) Deletes an Amazon Web Services Migration Hub Refactor Spaces route.default DeleteServiceResponsedeleteService(Consumer<DeleteServiceRequest.Builder> deleteServiceRequest) Deletes an Amazon Web Services Migration Hub Refactor Spaces service.default DeleteServiceResponsedeleteService(DeleteServiceRequest deleteServiceRequest) Deletes an Amazon Web Services Migration Hub Refactor Spaces service.default GetApplicationResponsegetApplication(Consumer<GetApplicationRequest.Builder> getApplicationRequest) Gets an Amazon Web Services Migration Hub Refactor Spaces application.default GetApplicationResponsegetApplication(GetApplicationRequest getApplicationRequest) Gets an Amazon Web Services Migration Hub Refactor Spaces application.default GetEnvironmentResponsegetEnvironment(Consumer<GetEnvironmentRequest.Builder> getEnvironmentRequest) Gets an Amazon Web Services Migration Hub Refactor Spaces environment.default GetEnvironmentResponsegetEnvironment(GetEnvironmentRequest getEnvironmentRequest) Gets an Amazon Web Services Migration Hub Refactor Spaces environment.default GetResourcePolicyResponsegetResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Gets the resource-based permission policy that is set for the given environment.default GetResourcePolicyResponsegetResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Gets the resource-based permission policy that is set for the given environment.default GetRouteResponsegetRoute(Consumer<GetRouteRequest.Builder> getRouteRequest) Gets an Amazon Web Services Migration Hub Refactor Spaces route.default GetRouteResponsegetRoute(GetRouteRequest getRouteRequest) Gets an Amazon Web Services Migration Hub Refactor Spaces route.default GetServiceResponsegetService(Consumer<GetServiceRequest.Builder> getServiceRequest) Gets an Amazon Web Services Migration Hub Refactor Spaces service.default GetServiceResponsegetService(GetServiceRequest getServiceRequest) Gets an Amazon Web Services Migration Hub Refactor Spaces service.default ListApplicationsResponselistApplications(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment.default ListApplicationsResponselistApplications(ListApplicationsRequest listApplicationsRequest) Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment.default ListApplicationsIterablelistApplicationsPaginator(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) This is a variant oflistApplications(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListApplicationsRequest)operation.default ListApplicationsIterablelistApplicationsPaginator(ListApplicationsRequest listApplicationsRequest) This is a variant oflistApplications(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListApplicationsRequest)operation.default ListEnvironmentsResponselistEnvironments(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the caller account.default ListEnvironmentsResponselistEnvironments(ListEnvironmentsRequest listEnvironmentsRequest) Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the caller account.default ListEnvironmentsIterablelistEnvironmentsPaginator(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) This is a variant oflistEnvironments(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentsRequest)operation.default ListEnvironmentsIterablelistEnvironmentsPaginator(ListEnvironmentsRequest listEnvironmentsRequest) This is a variant oflistEnvironments(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentsRequest)operation.default ListEnvironmentVpcsResponselistEnvironmentVpcs(Consumer<ListEnvironmentVpcsRequest.Builder> listEnvironmentVpcsRequest) Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the environment.default ListEnvironmentVpcsResponselistEnvironmentVpcs(ListEnvironmentVpcsRequest listEnvironmentVpcsRequest) Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the environment.default ListEnvironmentVpcsIterablelistEnvironmentVpcsPaginator(Consumer<ListEnvironmentVpcsRequest.Builder> listEnvironmentVpcsRequest) This is a variant oflistEnvironmentVpcs(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentVpcsRequest)operation.default ListEnvironmentVpcsIterablelistEnvironmentVpcsPaginator(ListEnvironmentVpcsRequest listEnvironmentVpcsRequest) This is a variant oflistEnvironmentVpcs(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentVpcsRequest)operation.default ListRoutesResponselistRoutes(Consumer<ListRoutesRequest.Builder> listRoutesRequest) Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application.default ListRoutesResponselistRoutes(ListRoutesRequest listRoutesRequest) Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application.default ListRoutesIterablelistRoutesPaginator(Consumer<ListRoutesRequest.Builder> listRoutesRequest) This is a variant oflistRoutes(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListRoutesRequest)operation.default ListRoutesIterablelistRoutesPaginator(ListRoutesRequest listRoutesRequest) This is a variant oflistRoutes(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListRoutesRequest)operation.default ListServicesResponselistServices(Consumer<ListServicesRequest.Builder> listServicesRequest) Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application.default ListServicesResponselistServices(ListServicesRequest listServicesRequest) Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application.default ListServicesIterablelistServicesPaginator(Consumer<ListServicesRequest.Builder> listServicesRequest) This is a variant oflistServices(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListServicesRequest)operation.default ListServicesIterablelistServicesPaginator(ListServicesRequest listServicesRequest) This is a variant oflistServices(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListServicesRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags of a resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags of a resource.default PutResourcePolicyResponseputResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) Attaches a resource-based permission policy to the Amazon Web Services Migration Hub Refactor Spaces environment.default PutResourcePolicyResponseputResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) Attaches a resource-based permission policy to the Amazon Web Services Migration Hub Refactor Spaces environment.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Removes the tags of a given resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Removes the tags of a given resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Adds to or modifies the tags of the given resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Adds to or modifies the tags of the given resource.default UpdateRouteResponseupdateRoute(Consumer<UpdateRouteRequest.Builder> updateRouteRequest) Updates an Amazon Web Services Migration Hub Refactor Spaces route.default UpdateRouteResponseupdateRoute(UpdateRouteRequest updateRouteRequest) Updates an Amazon Web Services Migration Hub Refactor Spaces route.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createApplication
default CreateApplicationResponse createApplication(CreateApplicationRequest createApplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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
NONEyou 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.- Parameters:
createApplicationRequest-- Returns:
- Result of the CreateApplication operation returned by the service.
- See Also:
-
createApplication
default CreateApplicationResponse createApplication(Consumer<CreateApplicationRequest.Builder> createApplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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
NONEyou 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.
This is a convenience which creates an instance of the
CreateApplicationRequest.Builderavoiding the need to create one manually viaCreateApplicationRequest.builder()- Parameters:
createApplicationRequest- AConsumerthat will call methods onCreateApplicationRequest.Builderto create a request.- Returns:
- Result of the CreateApplication operation returned by the service.
- See Also:
-
createEnvironment
default CreateEnvironmentResponse createEnvironment(CreateEnvironmentRequest createEnvironmentRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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 isNONE, Refactor Spaces does not create a transit gateway and you must use your network infrastructure to route traffic to services with private URL endpoints.- Parameters:
createEnvironmentRequest-- Returns:
- Result of the CreateEnvironment operation returned by the service.
- See Also:
-
createEnvironment
default CreateEnvironmentResponse createEnvironment(Consumer<CreateEnvironmentRequest.Builder> createEnvironmentRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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 isNONE, Refactor Spaces does not create a transit gateway and you must use your network infrastructure to route traffic to services with private URL endpoints.
This is a convenience which creates an instance of the
CreateEnvironmentRequest.Builderavoiding the need to create one manually viaCreateEnvironmentRequest.builder()- Parameters:
createEnvironmentRequest- AConsumerthat will call methods onCreateEnvironmentRequest.Builderto create a request.- Returns:
- Result of the CreateEnvironment operation returned by the service.
- See Also:
-
createRoute
default CreateRouteResponse createRoute(CreateRouteRequest createRouteRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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
DEFAULTRouteType.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:UrlEndpointwhen 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 ofSERVICE_ENDPOINT_HEALTH_CHECK_FAILUREis 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.- Parameters:
createRouteRequest-- Returns:
- Result of the CreateRoute operation returned by the service.
- See Also:
-
-
createRoute
default CreateRouteResponse createRoute(Consumer<CreateRouteRequest.Builder> createRouteRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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
DEFAULTRouteType.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:UrlEndpointwhen 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 ofSERVICE_ENDPOINT_HEALTH_CHECK_FAILUREis 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.
This is a convenience which creates an instance of the
CreateRouteRequest.Builderavoiding the need to create one manually viaCreateRouteRequest.builder()- Parameters:
createRouteRequest- AConsumerthat will call methods onCreateRouteRequest.Builderto create a request.- Returns:
- Result of the CreateRoute operation returned by the service.
- See Also:
-
-
createService
default CreateServiceResponse createService(CreateServiceRequest createServiceRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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
RefactorSpacesSecurityGroupto the resource. Alternatively, to add more cross-account constraints, apply your own security group.- Parameters:
createServiceRequest-- Returns:
- Result of the CreateService operation returned by the service.
- See Also:
-
createService
default CreateServiceResponse createService(Consumer<CreateServiceRequest.Builder> createServiceRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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
RefactorSpacesSecurityGroupto the resource. Alternatively, to add more cross-account constraints, apply your own security group.
This is a convenience which creates an instance of the
CreateServiceRequest.Builderavoiding the need to create one manually viaCreateServiceRequest.builder()- Parameters:
createServiceRequest- AConsumerthat will call methods onCreateServiceRequest.Builderto create a request.- Returns:
- Result of the CreateService operation returned by the service.
- See Also:
-
deleteApplication
default DeleteApplicationResponse deleteApplication(DeleteApplicationRequest deleteApplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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.
- Parameters:
deleteApplicationRequest-- Returns:
- Result of the DeleteApplication operation returned by the service.
- See Also:
-
deleteApplication
default DeleteApplicationResponse deleteApplication(Consumer<DeleteApplicationRequest.Builder> deleteApplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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.
This is a convenience which creates an instance of the
DeleteApplicationRequest.Builderavoiding the need to create one manually viaDeleteApplicationRequest.builder()- Parameters:
deleteApplicationRequest- AConsumerthat will call methods onDeleteApplicationRequest.Builderto create a request.- Returns:
- Result of the DeleteApplication operation returned by the service.
- See Also:
-
deleteEnvironment
default DeleteEnvironmentResponse deleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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.
- Parameters:
deleteEnvironmentRequest-- Returns:
- Result of the DeleteEnvironment operation returned by the service.
- See Also:
-
deleteEnvironment
default DeleteEnvironmentResponse deleteEnvironment(Consumer<DeleteEnvironmentRequest.Builder> deleteEnvironmentRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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.
This is a convenience which creates an instance of the
DeleteEnvironmentRequest.Builderavoiding the need to create one manually viaDeleteEnvironmentRequest.builder()- Parameters:
deleteEnvironmentRequest- AConsumerthat will call methods onDeleteEnvironmentRequest.Builderto create a request.- Returns:
- Result of the DeleteEnvironment operation returned by the service.
- See Also:
-
deleteResourcePolicy
default DeleteResourcePolicyResponse deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Deletes the resource policy set for the environment.
- Parameters:
deleteResourcePolicyRequest-- Returns:
- Result of the DeleteResourcePolicy operation returned by the service.
- See Also:
-
deleteResourcePolicy
default DeleteResourcePolicyResponse deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Deletes the resource policy set for the environment.
This is a convenience which creates an instance of the
DeleteResourcePolicyRequest.Builderavoiding the need to create one manually viaDeleteResourcePolicyRequest.builder()- Parameters:
deleteResourcePolicyRequest- AConsumerthat will call methods onDeleteResourcePolicyRequest.Builderto create a request.- Returns:
- Result of the DeleteResourcePolicy operation returned by the service.
- See Also:
-
deleteRoute
default DeleteRouteResponse deleteRoute(DeleteRouteRequest deleteRouteRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Deletes an Amazon Web Services Migration Hub Refactor Spaces route.
- Parameters:
deleteRouteRequest-- Returns:
- Result of the DeleteRoute operation returned by the service.
- See Also:
-
deleteRoute
default DeleteRouteResponse deleteRoute(Consumer<DeleteRouteRequest.Builder> deleteRouteRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Deletes an Amazon Web Services Migration Hub Refactor Spaces route.
This is a convenience which creates an instance of the
DeleteRouteRequest.Builderavoiding the need to create one manually viaDeleteRouteRequest.builder()- Parameters:
deleteRouteRequest- AConsumerthat will call methods onDeleteRouteRequest.Builderto create a request.- Returns:
- Result of the DeleteRoute operation returned by the service.
- See Also:
-
deleteService
default DeleteServiceResponse deleteService(DeleteServiceRequest deleteServiceRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Deletes an Amazon Web Services Migration Hub Refactor Spaces service.
- Parameters:
deleteServiceRequest-- Returns:
- Result of the DeleteService operation returned by the service.
- See Also:
-
deleteService
default DeleteServiceResponse deleteService(Consumer<DeleteServiceRequest.Builder> deleteServiceRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Deletes an Amazon Web Services Migration Hub Refactor Spaces service.
This is a convenience which creates an instance of the
DeleteServiceRequest.Builderavoiding the need to create one manually viaDeleteServiceRequest.builder()- Parameters:
deleteServiceRequest- AConsumerthat will call methods onDeleteServiceRequest.Builderto create a request.- Returns:
- Result of the DeleteService operation returned by the service.
- See Also:
-
getApplication
default GetApplicationResponse getApplication(GetApplicationRequest getApplicationRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Gets an Amazon Web Services Migration Hub Refactor Spaces application.
- Parameters:
getApplicationRequest-- Returns:
- Result of the GetApplication operation returned by the service.
- See Also:
-
getApplication
default GetApplicationResponse getApplication(Consumer<GetApplicationRequest.Builder> getApplicationRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Gets an Amazon Web Services Migration Hub Refactor Spaces application.
This is a convenience which creates an instance of the
GetApplicationRequest.Builderavoiding the need to create one manually viaGetApplicationRequest.builder()- Parameters:
getApplicationRequest- AConsumerthat will call methods onGetApplicationRequest.Builderto create a request.- Returns:
- Result of the GetApplication operation returned by the service.
- See Also:
-
getEnvironment
default GetEnvironmentResponse getEnvironment(GetEnvironmentRequest getEnvironmentRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Gets an Amazon Web Services Migration Hub Refactor Spaces environment.
- Parameters:
getEnvironmentRequest-- Returns:
- Result of the GetEnvironment operation returned by the service.
- See Also:
-
getEnvironment
default GetEnvironmentResponse getEnvironment(Consumer<GetEnvironmentRequest.Builder> getEnvironmentRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Gets an Amazon Web Services Migration Hub Refactor Spaces environment.
This is a convenience which creates an instance of the
GetEnvironmentRequest.Builderavoiding the need to create one manually viaGetEnvironmentRequest.builder()- Parameters:
getEnvironmentRequest- AConsumerthat will call methods onGetEnvironmentRequest.Builderto create a request.- Returns:
- Result of the GetEnvironment operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Gets the resource-based permission policy that is set for the given environment.
- Parameters:
getResourcePolicyRequest-- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Gets the resource-based permission policy that is set for the given environment.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builderavoiding the need to create one manually viaGetResourcePolicyRequest.builder()- Parameters:
getResourcePolicyRequest- AConsumerthat will call methods onGetResourcePolicyRequest.Builderto create a request.- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
getRoute
default GetRouteResponse getRoute(GetRouteRequest getRouteRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Gets an Amazon Web Services Migration Hub Refactor Spaces route.
- Parameters:
getRouteRequest-- Returns:
- Result of the GetRoute operation returned by the service.
- See Also:
-
getRoute
default GetRouteResponse getRoute(Consumer<GetRouteRequest.Builder> getRouteRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Gets an Amazon Web Services Migration Hub Refactor Spaces route.
This is a convenience which creates an instance of the
GetRouteRequest.Builderavoiding the need to create one manually viaGetRouteRequest.builder()- Parameters:
getRouteRequest- AConsumerthat will call methods onGetRouteRequest.Builderto create a request.- Returns:
- Result of the GetRoute operation returned by the service.
- See Also:
-
getService
default GetServiceResponse getService(GetServiceRequest getServiceRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Gets an Amazon Web Services Migration Hub Refactor Spaces service.
- Parameters:
getServiceRequest-- Returns:
- Result of the GetService operation returned by the service.
- See Also:
-
getService
default GetServiceResponse getService(Consumer<GetServiceRequest.Builder> getServiceRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Gets an Amazon Web Services Migration Hub Refactor Spaces service.
This is a convenience which creates an instance of the
GetServiceRequest.Builderavoiding the need to create one manually viaGetServiceRequest.builder()- Parameters:
getServiceRequest- AConsumerthat will call methods onGetServiceRequest.Builderto create a request.- Returns:
- Result of the GetService operation returned by the service.
- See Also:
-
listApplications
default ListApplicationsResponse listApplications(ListApplicationsRequest listApplicationsRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment.
- Parameters:
listApplicationsRequest-- Returns:
- Result of the ListApplications operation returned by the service.
- See Also:
-
listApplications
default ListApplicationsResponse listApplications(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment.
This is a convenience which creates an instance of the
ListApplicationsRequest.Builderavoiding the need to create one manually viaListApplicationsRequest.builder()- Parameters:
listApplicationsRequest- AConsumerthat will call methods onListApplicationsRequest.Builderto create a request.- Returns:
- Result of the ListApplications operation returned by the service.
- See Also:
-
listApplicationsPaginator
default ListApplicationsIterable listApplicationsPaginator(ListApplicationsRequest listApplicationsRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException This is a variant of
listApplications(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListApplicationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListApplicationsIterable responses = client .listApplicationsPaginator(request); for (software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListApplicationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApplications(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListApplicationsRequest)operation.- Parameters:
listApplicationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listApplicationsPaginator
default ListApplicationsIterable listApplicationsPaginator(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException This is a variant of
listApplications(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListApplicationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListApplicationsIterable responses = client .listApplicationsPaginator(request); for (software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListApplicationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listApplications(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListApplicationsRequest)operation.
This is a convenience which creates an instance of the
ListApplicationsRequest.Builderavoiding the need to create one manually viaListApplicationsRequest.builder()- Parameters:
listApplicationsRequest- AConsumerthat will call methods onListApplicationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEnvironmentVpcs
default ListEnvironmentVpcsResponse listEnvironmentVpcs(ListEnvironmentVpcsRequest listEnvironmentVpcsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the environment.
- Parameters:
listEnvironmentVpcsRequest-- Returns:
- Result of the ListEnvironmentVpcs operation returned by the service.
- See Also:
-
listEnvironmentVpcs
default ListEnvironmentVpcsResponse listEnvironmentVpcs(Consumer<ListEnvironmentVpcsRequest.Builder> listEnvironmentVpcsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the environment.
This is a convenience which creates an instance of the
ListEnvironmentVpcsRequest.Builderavoiding the need to create one manually viaListEnvironmentVpcsRequest.builder()- Parameters:
listEnvironmentVpcsRequest- AConsumerthat will call methods onListEnvironmentVpcsRequest.Builderto create a request.- Returns:
- Result of the ListEnvironmentVpcs operation returned by the service.
- See Also:
-
listEnvironmentVpcsPaginator
default ListEnvironmentVpcsIterable listEnvironmentVpcsPaginator(ListEnvironmentVpcsRequest listEnvironmentVpcsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException This is a variant of
listEnvironmentVpcs(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentVpcsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListEnvironmentVpcsIterable responses = client.listEnvironmentVpcsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListEnvironmentVpcsIterable responses = client .listEnvironmentVpcsPaginator(request); for (software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentVpcsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListEnvironmentVpcsIterable responses = client.listEnvironmentVpcsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEnvironmentVpcs(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentVpcsRequest)operation.- Parameters:
listEnvironmentVpcsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEnvironmentVpcsPaginator
default ListEnvironmentVpcsIterable listEnvironmentVpcsPaginator(Consumer<ListEnvironmentVpcsRequest.Builder> listEnvironmentVpcsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException This is a variant of
listEnvironmentVpcs(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentVpcsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListEnvironmentVpcsIterable responses = client.listEnvironmentVpcsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListEnvironmentVpcsIterable responses = client .listEnvironmentVpcsPaginator(request); for (software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentVpcsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListEnvironmentVpcsIterable responses = client.listEnvironmentVpcsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEnvironmentVpcs(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentVpcsRequest)operation.
This is a convenience which creates an instance of the
ListEnvironmentVpcsRequest.Builderavoiding the need to create one manually viaListEnvironmentVpcsRequest.builder()- Parameters:
listEnvironmentVpcsRequest- AConsumerthat will call methods onListEnvironmentVpcsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEnvironments
default ListEnvironmentsResponse listEnvironments(ListEnvironmentsRequest listEnvironmentsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the caller account.
- Parameters:
listEnvironmentsRequest-- Returns:
- Result of the ListEnvironments operation returned by the service.
- See Also:
-
listEnvironments
default ListEnvironmentsResponse listEnvironments(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the caller account.
This is a convenience which creates an instance of the
ListEnvironmentsRequest.Builderavoiding the need to create one manually viaListEnvironmentsRequest.builder()- Parameters:
listEnvironmentsRequest- AConsumerthat will call methods onListEnvironmentsRequest.Builderto create a request.- Returns:
- Result of the ListEnvironments operation returned by the service.
- See Also:
-
listEnvironmentsPaginator
default ListEnvironmentsIterable listEnvironmentsPaginator(ListEnvironmentsRequest listEnvironmentsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException This is a variant of
listEnvironments(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListEnvironmentsIterable responses = client .listEnvironmentsPaginator(request); for (software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEnvironments(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentsRequest)operation.- Parameters:
listEnvironmentsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEnvironmentsPaginator
default ListEnvironmentsIterable listEnvironmentsPaginator(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException This is a variant of
listEnvironments(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListEnvironmentsIterable responses = client .listEnvironmentsPaginator(request); for (software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEnvironments(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListEnvironmentsRequest)operation.
This is a convenience which creates an instance of the
ListEnvironmentsRequest.Builderavoiding the need to create one manually viaListEnvironmentsRequest.builder()- Parameters:
listEnvironmentsRequest- AConsumerthat will call methods onListEnvironmentsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRoutes
default ListRoutesResponse listRoutes(ListRoutesRequest listRoutesRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application.
- Parameters:
listRoutesRequest-- Returns:
- Result of the ListRoutes operation returned by the service.
- See Also:
-
listRoutes
default ListRoutesResponse listRoutes(Consumer<ListRoutesRequest.Builder> listRoutesRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application.
This is a convenience which creates an instance of the
ListRoutesRequest.Builderavoiding the need to create one manually viaListRoutesRequest.builder()- Parameters:
listRoutesRequest- AConsumerthat will call methods onListRoutesRequest.Builderto create a request.- Returns:
- Result of the ListRoutes operation returned by the service.
- See Also:
-
listRoutesPaginator
default ListRoutesIterable listRoutesPaginator(ListRoutesRequest listRoutesRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException This is a variant of
listRoutes(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListRoutesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListRoutesIterable responses = client.listRoutesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListRoutesIterable responses = client .listRoutesPaginator(request); for (software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListRoutesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListRoutesIterable responses = client.listRoutesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRoutes(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListRoutesRequest)operation.- Parameters:
listRoutesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRoutesPaginator
default ListRoutesIterable listRoutesPaginator(Consumer<ListRoutesRequest.Builder> listRoutesRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException This is a variant of
listRoutes(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListRoutesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListRoutesIterable responses = client.listRoutesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListRoutesIterable responses = client .listRoutesPaginator(request); for (software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListRoutesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListRoutesIterable responses = client.listRoutesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRoutes(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListRoutesRequest)operation.
This is a convenience which creates an instance of the
ListRoutesRequest.Builderavoiding the need to create one manually viaListRoutesRequest.builder()- Parameters:
listRoutesRequest- AConsumerthat will call methods onListRoutesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listServices
default ListServicesResponse listServices(ListServicesRequest listServicesRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application.
- Parameters:
listServicesRequest-- Returns:
- Result of the ListServices operation returned by the service.
- See Also:
-
listServices
default ListServicesResponse listServices(Consumer<ListServicesRequest.Builder> listServicesRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application.
This is a convenience which creates an instance of the
ListServicesRequest.Builderavoiding the need to create one manually viaListServicesRequest.builder()- Parameters:
listServicesRequest- AConsumerthat will call methods onListServicesRequest.Builderto create a request.- Returns:
- Result of the ListServices operation returned by the service.
- See Also:
-
listServicesPaginator
default ListServicesIterable listServicesPaginator(ListServicesRequest listServicesRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException This is a variant of
listServices(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListServicesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListServicesIterable responses = client.listServicesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListServicesIterable responses = client .listServicesPaginator(request); for (software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListServicesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListServicesIterable responses = client.listServicesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listServices(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListServicesRequest)operation.- Parameters:
listServicesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listServicesPaginator
default ListServicesIterable listServicesPaginator(Consumer<ListServicesRequest.Builder> listServicesRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException This is a variant of
listServices(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListServicesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListServicesIterable responses = client.listServicesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListServicesIterable responses = client .listServicesPaginator(request); for (software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListServicesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.migrationhubrefactorspaces.paginators.ListServicesIterable responses = client.listServicesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listServices(software.amazon.awssdk.services.migrationhubrefactorspaces.model.ListServicesRequest)operation.
This is a convenience which creates an instance of the
ListServicesRequest.Builderavoiding the need to create one manually viaListServicesRequest.builder()- Parameters:
listServicesRequest- AConsumerthat will call methods onListServicesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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.- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
putResourcePolicy
default PutResourcePolicyResponse putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) throws ResourceNotFoundException, InternalServerException, InvalidResourcePolicyException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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/AWSRAMDefaultPermissionRefactorSpacesEnvironmentpermission in Resource Access Manager. The policy must not contain new lines or blank lines.- Parameters:
putResourcePolicyRequest-- Returns:
- Result of the PutResourcePolicy operation returned by the service.
- See Also:
-
putResourcePolicy
default PutResourcePolicyResponse putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) throws ResourceNotFoundException, InternalServerException, InvalidResourcePolicyException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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/AWSRAMDefaultPermissionRefactorSpacesEnvironmentpermission in Resource Access Manager. The policy must not contain new lines or blank lines.
This is a convenience which creates an instance of the
PutResourcePolicyRequest.Builderavoiding the need to create one manually viaPutResourcePolicyRequest.builder()- Parameters:
putResourcePolicyRequest- AConsumerthat will call methods onPutResourcePolicyRequest.Builderto create a request.- Returns:
- Result of the PutResourcePolicy operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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.- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException 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.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateRoute
default UpdateRouteResponse updateRoute(UpdateRouteRequest updateRouteRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Updates an Amazon Web Services Migration Hub Refactor Spaces route.
- Parameters:
updateRouteRequest-- Returns:
- Result of the UpdateRoute operation returned by the service.
- See Also:
-
updateRoute
default UpdateRouteResponse updateRoute(Consumer<UpdateRouteRequest.Builder> updateRouteRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, MigrationHubRefactorSpacesException Updates an Amazon Web Services Migration Hub Refactor Spaces route.
This is a convenience which creates an instance of the
UpdateRouteRequest.Builderavoiding the need to create one manually viaUpdateRouteRequest.builder()- Parameters:
updateRouteRequest- AConsumerthat will call methods onUpdateRouteRequest.Builderto create a request.- Returns:
- Result of the UpdateRoute operation returned by the service.
- See Also:
-
create
Create aMigrationHubRefactorSpacesClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aMigrationHubRefactorSpacesClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-