Interface Route53RecoveryControlConfigClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
Recovery Control Configuration API Reference for Amazon Route 53 Application Recovery Controller
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value 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 aRoute53RecoveryControlConfigClient
.create()
Create aRoute53RecoveryControlConfigClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CreateClusterResponse
createCluster
(Consumer<CreateClusterRequest.Builder> createClusterRequest) Create a new cluster.default CreateClusterResponse
createCluster
(CreateClusterRequest createClusterRequest) Create a new cluster.default CreateControlPanelResponse
createControlPanel
(Consumer<CreateControlPanelRequest.Builder> createControlPanelRequest) Creates a new control panel.default CreateControlPanelResponse
createControlPanel
(CreateControlPanelRequest createControlPanelRequest) Creates a new control panel.default CreateRoutingControlResponse
createRoutingControl
(Consumer<CreateRoutingControlRequest.Builder> createRoutingControlRequest) Creates a new routing control.default CreateRoutingControlResponse
createRoutingControl
(CreateRoutingControlRequest createRoutingControlRequest) Creates a new routing control.default CreateSafetyRuleResponse
createSafetyRule
(Consumer<CreateSafetyRuleRequest.Builder> createSafetyRuleRequest) Creates a safety rule in a control panel.default CreateSafetyRuleResponse
createSafetyRule
(CreateSafetyRuleRequest createSafetyRuleRequest) Creates a safety rule in a control panel.default DeleteClusterResponse
deleteCluster
(Consumer<DeleteClusterRequest.Builder> deleteClusterRequest) Delete a cluster.default DeleteClusterResponse
deleteCluster
(DeleteClusterRequest deleteClusterRequest) Delete a cluster.default DeleteControlPanelResponse
deleteControlPanel
(Consumer<DeleteControlPanelRequest.Builder> deleteControlPanelRequest) Deletes a control panel.default DeleteControlPanelResponse
deleteControlPanel
(DeleteControlPanelRequest deleteControlPanelRequest) Deletes a control panel.default DeleteRoutingControlResponse
deleteRoutingControl
(Consumer<DeleteRoutingControlRequest.Builder> deleteRoutingControlRequest) Deletes a routing control.default DeleteRoutingControlResponse
deleteRoutingControl
(DeleteRoutingControlRequest deleteRoutingControlRequest) Deletes a routing control.default DeleteSafetyRuleResponse
deleteSafetyRule
(Consumer<DeleteSafetyRuleRequest.Builder> deleteSafetyRuleRequest) Deletes a safety rule.default DeleteSafetyRuleResponse
deleteSafetyRule
(DeleteSafetyRuleRequest deleteSafetyRuleRequest) Deletes a safety rule.default DescribeClusterResponse
describeCluster
(Consumer<DescribeClusterRequest.Builder> describeClusterRequest) Display the details about a cluster.default DescribeClusterResponse
describeCluster
(DescribeClusterRequest describeClusterRequest) Display the details about a cluster.default DescribeControlPanelResponse
describeControlPanel
(Consumer<DescribeControlPanelRequest.Builder> describeControlPanelRequest) Displays details about a control panel.default DescribeControlPanelResponse
describeControlPanel
(DescribeControlPanelRequest describeControlPanelRequest) Displays details about a control panel.default DescribeRoutingControlResponse
describeRoutingControl
(Consumer<DescribeRoutingControlRequest.Builder> describeRoutingControlRequest) Displays details about a routing control.default DescribeRoutingControlResponse
describeRoutingControl
(DescribeRoutingControlRequest describeRoutingControlRequest) Displays details about a routing control.default DescribeSafetyRuleResponse
describeSafetyRule
(Consumer<DescribeSafetyRuleRequest.Builder> describeSafetyRuleRequest) Returns information about a safety rule.default DescribeSafetyRuleResponse
describeSafetyRule
(DescribeSafetyRuleRequest describeSafetyRuleRequest) Returns information about a safety rule.default GetResourcePolicyResponse
getResourcePolicy
(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Get information about the resource policy for a cluster.default GetResourcePolicyResponse
getResourcePolicy
(GetResourcePolicyRequest getResourcePolicyRequest) Get information about the resource policy for a cluster.listAssociatedRoute53HealthChecks
(Consumer<ListAssociatedRoute53HealthChecksRequest.Builder> listAssociatedRoute53HealthChecksRequest) Returns an array of all Amazon Route 53 health checks associated with a specific routing control.listAssociatedRoute53HealthChecks
(ListAssociatedRoute53HealthChecksRequest listAssociatedRoute53HealthChecksRequest) Returns an array of all Amazon Route 53 health checks associated with a specific routing control.listAssociatedRoute53HealthChecksPaginator
(Consumer<ListAssociatedRoute53HealthChecksRequest.Builder> listAssociatedRoute53HealthChecksRequest) listAssociatedRoute53HealthChecksPaginator
(ListAssociatedRoute53HealthChecksRequest listAssociatedRoute53HealthChecksRequest) default ListClustersResponse
listClusters
(Consumer<ListClustersRequest.Builder> listClustersRequest) Returns an array of all the clusters in an account.default ListClustersResponse
listClusters
(ListClustersRequest listClustersRequest) Returns an array of all the clusters in an account.default ListClustersIterable
listClustersPaginator
(Consumer<ListClustersRequest.Builder> listClustersRequest) This is a variant oflistClusters(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListClustersRequest)
operation.default ListClustersIterable
listClustersPaginator
(ListClustersRequest listClustersRequest) This is a variant oflistClusters(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListClustersRequest)
operation.default ListControlPanelsResponse
listControlPanels
(Consumer<ListControlPanelsRequest.Builder> listControlPanelsRequest) Returns an array of control panels in an account or in a cluster.default ListControlPanelsResponse
listControlPanels
(ListControlPanelsRequest listControlPanelsRequest) Returns an array of control panels in an account or in a cluster.default ListControlPanelsIterable
listControlPanelsPaginator
(Consumer<ListControlPanelsRequest.Builder> listControlPanelsRequest) This is a variant oflistControlPanels(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListControlPanelsRequest)
operation.default ListControlPanelsIterable
listControlPanelsPaginator
(ListControlPanelsRequest listControlPanelsRequest) This is a variant oflistControlPanels(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListControlPanelsRequest)
operation.default ListRoutingControlsResponse
listRoutingControls
(Consumer<ListRoutingControlsRequest.Builder> listRoutingControlsRequest) Returns an array of routing controls for a control panel.default ListRoutingControlsResponse
listRoutingControls
(ListRoutingControlsRequest listRoutingControlsRequest) Returns an array of routing controls for a control panel.default ListRoutingControlsIterable
listRoutingControlsPaginator
(Consumer<ListRoutingControlsRequest.Builder> listRoutingControlsRequest) This is a variant oflistRoutingControls(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListRoutingControlsRequest)
operation.default ListRoutingControlsIterable
listRoutingControlsPaginator
(ListRoutingControlsRequest listRoutingControlsRequest) This is a variant oflistRoutingControls(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListRoutingControlsRequest)
operation.default ListSafetyRulesResponse
listSafetyRules
(Consumer<ListSafetyRulesRequest.Builder> listSafetyRulesRequest) List the safety rules (the assertion rules and gating rules) that you've defined for the routing controls in a control panel.default ListSafetyRulesResponse
listSafetyRules
(ListSafetyRulesRequest listSafetyRulesRequest) List the safety rules (the assertion rules and gating rules) that you've defined for the routing controls in a control panel.default ListSafetyRulesIterable
listSafetyRulesPaginator
(Consumer<ListSafetyRulesRequest.Builder> listSafetyRulesRequest) This is a variant oflistSafetyRules(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListSafetyRulesRequest)
operation.default ListSafetyRulesIterable
listSafetyRulesPaginator
(ListSafetyRulesRequest listSafetyRulesRequest) This is a variant oflistSafetyRules(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListSafetyRulesRequest)
operation.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags for a resource.default ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags for a resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds a tag to a resource.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Adds a tag to a resource.default UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes a tag from a resource.default UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Removes a tag from a resource.default UpdateControlPanelResponse
updateControlPanel
(Consumer<UpdateControlPanelRequest.Builder> updateControlPanelRequest) Updates a control panel.default UpdateControlPanelResponse
updateControlPanel
(UpdateControlPanelRequest updateControlPanelRequest) Updates a control panel.default UpdateRoutingControlResponse
updateRoutingControl
(Consumer<UpdateRoutingControlRequest.Builder> updateRoutingControlRequest) Updates a routing control.default UpdateRoutingControlResponse
updateRoutingControl
(UpdateRoutingControlRequest updateRoutingControlRequest) Updates a routing control.default UpdateSafetyRuleResponse
updateSafetyRule
(Consumer<UpdateSafetyRuleRequest.Builder> updateSafetyRuleRequest) Update a safety rule (an assertion rule or gating rule).default UpdateSafetyRuleResponse
updateSafetyRule
(UpdateSafetyRuleRequest updateSafetyRuleRequest) Update a safety rule (an assertion rule or gating rule).waiter()
Create an instance ofRoute53RecoveryControlConfigWaiter
using this client.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods 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
-
createCluster
default CreateClusterResponse createCluster(CreateClusterRequest createClusterRequest) throws ValidationException, InternalServerException, ServiceQuotaExceededException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Create a new cluster. A cluster is a set of redundant Regional endpoints against which you can run API calls to update or get the state of one or more routing controls. Each cluster has a name, status, Amazon Resource Name (ARN), and an array of the five cluster endpoints (one for each supported Amazon Web Services Region) that you can use with API calls to the cluster data plane.
- Parameters:
createClusterRequest
- Creates a cluster.- Returns:
- Result of the CreateCluster operation returned by the service.
- See Also:
-
createCluster
default CreateClusterResponse createCluster(Consumer<CreateClusterRequest.Builder> createClusterRequest) throws ValidationException, InternalServerException, ServiceQuotaExceededException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Create a new cluster. A cluster is a set of redundant Regional endpoints against which you can run API calls to update or get the state of one or more routing controls. Each cluster has a name, status, Amazon Resource Name (ARN), and an array of the five cluster endpoints (one for each supported Amazon Web Services Region) that you can use with API calls to the cluster data plane.
This is a convenience which creates an instance of the
CreateClusterRequest.Builder
avoiding the need to create one manually viaCreateClusterRequest.builder()
- Parameters:
createClusterRequest
- AConsumer
that will call methods onCreateClusterRequest.Builder
to create a request. Creates a cluster.- Returns:
- Result of the CreateCluster operation returned by the service.
- See Also:
-
createControlPanel
default CreateControlPanelResponse createControlPanel(CreateControlPanelRequest createControlPanelRequest) throws ValidationException, InternalServerException, ServiceQuotaExceededException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Creates a new control panel. A control panel represents a group of routing controls that can be changed together in a single transaction. You can use a control panel to centrally view the operational status of applications across your organization, and trigger multi-app failovers in a single transaction, for example, to fail over an Availability Zone or Amazon Web Services Region.
- Parameters:
createControlPanelRequest
- The details of the control panel that you're creating.- Returns:
- Result of the CreateControlPanel operation returned by the service.
- See Also:
-
createControlPanel
default CreateControlPanelResponse createControlPanel(Consumer<CreateControlPanelRequest.Builder> createControlPanelRequest) throws ValidationException, InternalServerException, ServiceQuotaExceededException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Creates a new control panel. A control panel represents a group of routing controls that can be changed together in a single transaction. You can use a control panel to centrally view the operational status of applications across your organization, and trigger multi-app failovers in a single transaction, for example, to fail over an Availability Zone or Amazon Web Services Region.
This is a convenience which creates an instance of the
CreateControlPanelRequest.Builder
avoiding the need to create one manually viaCreateControlPanelRequest.builder()
- Parameters:
createControlPanelRequest
- AConsumer
that will call methods onCreateControlPanelRequest.Builder
to create a request. The details of the control panel that you're creating.- Returns:
- Result of the CreateControlPanel operation returned by the service.
- See Also:
-
createRoutingControl
default CreateRoutingControlResponse createRoutingControl(CreateRoutingControlRequest createRoutingControlRequest) throws ValidationException, InternalServerException, ServiceQuotaExceededException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Creates a new routing control.
A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control traffic routing.
To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.
- Parameters:
createRoutingControlRequest
- The details of the routing control that you're creating.- Returns:
- Result of the CreateRoutingControl operation returned by the service.
- See Also:
-
createRoutingControl
default CreateRoutingControlResponse createRoutingControl(Consumer<CreateRoutingControlRequest.Builder> createRoutingControlRequest) throws ValidationException, InternalServerException, ServiceQuotaExceededException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Creates a new routing control.
A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control traffic routing.
To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.
This is a convenience which creates an instance of the
CreateRoutingControlRequest.Builder
avoiding the need to create one manually viaCreateRoutingControlRequest.builder()
- Parameters:
createRoutingControlRequest
- AConsumer
that will call methods onCreateRoutingControlRequest.Builder
to create a request. The details of the routing control that you're creating.- Returns:
- Result of the CreateRoutingControl operation returned by the service.
- See Also:
-
createSafetyRule
default CreateSafetyRuleResponse createSafetyRule(CreateSafetyRuleRequest createSafetyRuleRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Creates a safety rule in a control panel. Safety rules let you add safeguards around changing routing control states, and for enabling and disabling routing controls, to help prevent unexpected outcomes.
There are two types of safety rules: assertion rules and gating rules.
Assertion rule: An assertion rule enforces that, when you change a routing control state, that a certain criteria is met. For example, the criteria might be that at least one routing control state is On after the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.
Gating rule: A gating rule lets you configure a gating routing control as an overall "on/off" switch for a group of routing controls. Or, you can configure more complex gating scenarios, for example by configuring multiple gating routing controls.
For more information, see Safety rules in the Amazon Route 53 Application Recovery Controller Developer Guide.
- Parameters:
createSafetyRuleRequest
- The request body that you include when you create a safety rule.- Returns:
- Result of the CreateSafetyRule operation returned by the service.
- See Also:
-
createSafetyRule
default CreateSafetyRuleResponse createSafetyRule(Consumer<CreateSafetyRuleRequest.Builder> createSafetyRuleRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Creates a safety rule in a control panel. Safety rules let you add safeguards around changing routing control states, and for enabling and disabling routing controls, to help prevent unexpected outcomes.
There are two types of safety rules: assertion rules and gating rules.
Assertion rule: An assertion rule enforces that, when you change a routing control state, that a certain criteria is met. For example, the criteria might be that at least one routing control state is On after the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.
Gating rule: A gating rule lets you configure a gating routing control as an overall "on/off" switch for a group of routing controls. Or, you can configure more complex gating scenarios, for example by configuring multiple gating routing controls.
For more information, see Safety rules in the Amazon Route 53 Application Recovery Controller Developer Guide.
This is a convenience which creates an instance of the
CreateSafetyRuleRequest.Builder
avoiding the need to create one manually viaCreateSafetyRuleRequest.builder()
- Parameters:
createSafetyRuleRequest
- AConsumer
that will call methods onCreateSafetyRuleRequest.Builder
to create a request. The request body that you include when you create a safety rule.- Returns:
- Result of the CreateSafetyRule operation returned by the service.
- See Also:
-
deleteCluster
default DeleteClusterResponse deleteCluster(DeleteClusterRequest deleteClusterRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Delete a cluster.
- Parameters:
deleteClusterRequest
-- Returns:
- Result of the DeleteCluster operation returned by the service.
- See Also:
-
deleteCluster
default DeleteClusterResponse deleteCluster(Consumer<DeleteClusterRequest.Builder> deleteClusterRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Delete a cluster.
This is a convenience which creates an instance of the
DeleteClusterRequest.Builder
avoiding the need to create one manually viaDeleteClusterRequest.builder()
- Parameters:
deleteClusterRequest
- AConsumer
that will call methods onDeleteClusterRequest.Builder
to create a request.- Returns:
- Result of the DeleteCluster operation returned by the service.
- See Also:
-
deleteControlPanel
default DeleteControlPanelResponse deleteControlPanel(DeleteControlPanelRequest deleteControlPanelRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Deletes a control panel.
- Parameters:
deleteControlPanelRequest
-- Returns:
- Result of the DeleteControlPanel operation returned by the service.
- See Also:
-
deleteControlPanel
default DeleteControlPanelResponse deleteControlPanel(Consumer<DeleteControlPanelRequest.Builder> deleteControlPanelRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Deletes a control panel.
This is a convenience which creates an instance of the
DeleteControlPanelRequest.Builder
avoiding the need to create one manually viaDeleteControlPanelRequest.builder()
- Parameters:
deleteControlPanelRequest
- AConsumer
that will call methods onDeleteControlPanelRequest.Builder
to create a request.- Returns:
- Result of the DeleteControlPanel operation returned by the service.
- See Also:
-
deleteRoutingControl
default DeleteRoutingControlResponse deleteRoutingControl(DeleteRoutingControlRequest deleteRoutingControlRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Deletes a routing control.
- Parameters:
deleteRoutingControlRequest
-- Returns:
- Result of the DeleteRoutingControl operation returned by the service.
- See Also:
-
deleteRoutingControl
default DeleteRoutingControlResponse deleteRoutingControl(Consumer<DeleteRoutingControlRequest.Builder> deleteRoutingControlRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Deletes a routing control.
This is a convenience which creates an instance of the
DeleteRoutingControlRequest.Builder
avoiding the need to create one manually viaDeleteRoutingControlRequest.builder()
- Parameters:
deleteRoutingControlRequest
- AConsumer
that will call methods onDeleteRoutingControlRequest.Builder
to create a request.- Returns:
- Result of the DeleteRoutingControl operation returned by the service.
- See Also:
-
deleteSafetyRule
default DeleteSafetyRuleResponse deleteSafetyRule(DeleteSafetyRuleRequest deleteSafetyRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Deletes a safety rule.
/>- Parameters:
deleteSafetyRuleRequest
-- Returns:
- Result of the DeleteSafetyRule operation returned by the service.
- See Also:
-
deleteSafetyRule
default DeleteSafetyRuleResponse deleteSafetyRule(Consumer<DeleteSafetyRuleRequest.Builder> deleteSafetyRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Deletes a safety rule.
/>
This is a convenience which creates an instance of the
DeleteSafetyRuleRequest.Builder
avoiding the need to create one manually viaDeleteSafetyRuleRequest.builder()
- Parameters:
deleteSafetyRuleRequest
- AConsumer
that will call methods onDeleteSafetyRuleRequest.Builder
to create a request.- Returns:
- Result of the DeleteSafetyRule operation returned by the service.
- See Also:
-
describeCluster
default DescribeClusterResponse describeCluster(DescribeClusterRequest describeClusterRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Display the details about a cluster. The response includes the cluster name, endpoints, status, and Amazon Resource Name (ARN).
- Parameters:
describeClusterRequest
-- Returns:
- Result of the DescribeCluster operation returned by the service.
- See Also:
-
describeCluster
default DescribeClusterResponse describeCluster(Consumer<DescribeClusterRequest.Builder> describeClusterRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Display the details about a cluster. The response includes the cluster name, endpoints, status, and Amazon Resource Name (ARN).
This is a convenience which creates an instance of the
DescribeClusterRequest.Builder
avoiding the need to create one manually viaDescribeClusterRequest.builder()
- Parameters:
describeClusterRequest
- AConsumer
that will call methods onDescribeClusterRequest.Builder
to create a request.- Returns:
- Result of the DescribeCluster operation returned by the service.
- See Also:
-
describeControlPanel
default DescribeControlPanelResponse describeControlPanel(DescribeControlPanelRequest describeControlPanelRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Displays details about a control panel.
- Parameters:
describeControlPanelRequest
-- Returns:
- Result of the DescribeControlPanel operation returned by the service.
- See Also:
-
describeControlPanel
default DescribeControlPanelResponse describeControlPanel(Consumer<DescribeControlPanelRequest.Builder> describeControlPanelRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Displays details about a control panel.
This is a convenience which creates an instance of the
DescribeControlPanelRequest.Builder
avoiding the need to create one manually viaDescribeControlPanelRequest.builder()
- Parameters:
describeControlPanelRequest
- AConsumer
that will call methods onDescribeControlPanelRequest.Builder
to create a request.- Returns:
- Result of the DescribeControlPanel operation returned by the service.
- See Also:
-
describeRoutingControl
default DescribeRoutingControlResponse describeRoutingControl(DescribeRoutingControlRequest describeRoutingControlRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Displays details about a routing control. A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.
To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.
- Parameters:
describeRoutingControlRequest
-- Returns:
- Result of the DescribeRoutingControl operation returned by the service.
- See Also:
-
describeRoutingControl
default DescribeRoutingControlResponse describeRoutingControl(Consumer<DescribeRoutingControlRequest.Builder> describeRoutingControlRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Displays details about a routing control. A routing control has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.
To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.
This is a convenience which creates an instance of the
DescribeRoutingControlRequest.Builder
avoiding the need to create one manually viaDescribeRoutingControlRequest.builder()
- Parameters:
describeRoutingControlRequest
- AConsumer
that will call methods onDescribeRoutingControlRequest.Builder
to create a request.- Returns:
- Result of the DescribeRoutingControl operation returned by the service.
- See Also:
-
describeSafetyRule
default DescribeSafetyRuleResponse describeSafetyRule(DescribeSafetyRuleRequest describeSafetyRuleRequest) throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Returns information about a safety rule.
- Parameters:
describeSafetyRuleRequest
-- Returns:
- Result of the DescribeSafetyRule operation returned by the service.
- See Also:
-
describeSafetyRule
default DescribeSafetyRuleResponse describeSafetyRule(Consumer<DescribeSafetyRuleRequest.Builder> describeSafetyRuleRequest) throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Returns information about a safety rule.
This is a convenience which creates an instance of the
DescribeSafetyRuleRequest.Builder
avoiding the need to create one manually viaDescribeSafetyRuleRequest.builder()
- Parameters:
describeSafetyRuleRequest
- AConsumer
that will call methods onDescribeSafetyRuleRequest.Builder
to create a request.- Returns:
- Result of the DescribeSafetyRule operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) throws ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Get information about the resource policy for a cluster.
- 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, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Get information about the resource policy for a cluster.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builder
avoiding the need to create one manually viaGetResourcePolicyRequest.builder()
- Parameters:
getResourcePolicyRequest
- AConsumer
that will call methods onGetResourcePolicyRequest.Builder
to create a request.- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
listAssociatedRoute53HealthChecks
default ListAssociatedRoute53HealthChecksResponse listAssociatedRoute53HealthChecks(ListAssociatedRoute53HealthChecksRequest listAssociatedRoute53HealthChecksRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Returns an array of all Amazon Route 53 health checks associated with a specific routing control.
- Parameters:
listAssociatedRoute53HealthChecksRequest
-- Returns:
- Result of the ListAssociatedRoute53HealthChecks operation returned by the service.
- See Also:
-
listAssociatedRoute53HealthChecks
default ListAssociatedRoute53HealthChecksResponse listAssociatedRoute53HealthChecks(Consumer<ListAssociatedRoute53HealthChecksRequest.Builder> listAssociatedRoute53HealthChecksRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Returns an array of all Amazon Route 53 health checks associated with a specific routing control.
This is a convenience which creates an instance of the
ListAssociatedRoute53HealthChecksRequest.Builder
avoiding the need to create one manually viaListAssociatedRoute53HealthChecksRequest.builder()
- Parameters:
listAssociatedRoute53HealthChecksRequest
- AConsumer
that will call methods onListAssociatedRoute53HealthChecksRequest.Builder
to create a request.- Returns:
- Result of the ListAssociatedRoute53HealthChecks operation returned by the service.
- See Also:
-
listAssociatedRoute53HealthChecksPaginator
default ListAssociatedRoute53HealthChecksIterable listAssociatedRoute53HealthChecksPaginator(ListAssociatedRoute53HealthChecksRequest listAssociatedRoute53HealthChecksRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException This is a variant of
listAssociatedRoute53HealthChecks(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListAssociatedRoute53HealthChecksRequest)
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 Streamsoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListAssociatedRoute53HealthChecksIterable responses = client.listAssociatedRoute53HealthChecksPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListAssociatedRoute53HealthChecksIterable responses = client .listAssociatedRoute53HealthChecksPaginator(request); for (software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListAssociatedRoute53HealthChecksResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListAssociatedRoute53HealthChecksIterable responses = client.listAssociatedRoute53HealthChecksPaginator(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
listAssociatedRoute53HealthChecks(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListAssociatedRoute53HealthChecksRequest)
operation.- Parameters:
listAssociatedRoute53HealthChecksRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAssociatedRoute53HealthChecksPaginator
default ListAssociatedRoute53HealthChecksIterable listAssociatedRoute53HealthChecksPaginator(Consumer<ListAssociatedRoute53HealthChecksRequest.Builder> listAssociatedRoute53HealthChecksRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException This is a variant of
listAssociatedRoute53HealthChecks(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListAssociatedRoute53HealthChecksRequest)
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 Streamsoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListAssociatedRoute53HealthChecksIterable responses = client.listAssociatedRoute53HealthChecksPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListAssociatedRoute53HealthChecksIterable responses = client .listAssociatedRoute53HealthChecksPaginator(request); for (software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListAssociatedRoute53HealthChecksResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListAssociatedRoute53HealthChecksIterable responses = client.listAssociatedRoute53HealthChecksPaginator(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
listAssociatedRoute53HealthChecks(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListAssociatedRoute53HealthChecksRequest)
operation.
This is a convenience which creates an instance of the
ListAssociatedRoute53HealthChecksRequest.Builder
avoiding the need to create one manually viaListAssociatedRoute53HealthChecksRequest.builder()
- Parameters:
listAssociatedRoute53HealthChecksRequest
- AConsumer
that will call methods onListAssociatedRoute53HealthChecksRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listClusters
default ListClustersResponse listClusters(ListClustersRequest listClustersRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Returns an array of all the clusters in an account.
- Parameters:
listClustersRequest
-- Returns:
- Result of the ListClusters operation returned by the service.
- See Also:
-
listClusters
default ListClustersResponse listClusters(Consumer<ListClustersRequest.Builder> listClustersRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Returns an array of all the clusters in an account.
This is a convenience which creates an instance of the
ListClustersRequest.Builder
avoiding the need to create one manually viaListClustersRequest.builder()
- Parameters:
listClustersRequest
- AConsumer
that will call methods onListClustersRequest.Builder
to create a request.- Returns:
- Result of the ListClusters operation returned by the service.
- See Also:
-
listClustersPaginator
default ListClustersIterable listClustersPaginator(ListClustersRequest listClustersRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException This is a variant of
listClusters(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListClustersRequest)
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 Streamsoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListClustersIterable responses = client.listClustersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListClustersIterable responses = client .listClustersPaginator(request); for (software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListClustersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListClustersIterable responses = client.listClustersPaginator(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
listClusters(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListClustersRequest)
operation.- Parameters:
listClustersRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listClustersPaginator
default ListClustersIterable listClustersPaginator(Consumer<ListClustersRequest.Builder> listClustersRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException This is a variant of
listClusters(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListClustersRequest)
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 Streamsoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListClustersIterable responses = client.listClustersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListClustersIterable responses = client .listClustersPaginator(request); for (software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListClustersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListClustersIterable responses = client.listClustersPaginator(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
listClusters(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListClustersRequest)
operation.
This is a convenience which creates an instance of the
ListClustersRequest.Builder
avoiding the need to create one manually viaListClustersRequest.builder()
- Parameters:
listClustersRequest
- AConsumer
that will call methods onListClustersRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listControlPanels
default ListControlPanelsResponse listControlPanels(ListControlPanelsRequest listControlPanelsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Returns an array of control panels in an account or in a cluster.
- Parameters:
listControlPanelsRequest
-- Returns:
- Result of the ListControlPanels operation returned by the service.
- See Also:
-
listControlPanels
default ListControlPanelsResponse listControlPanels(Consumer<ListControlPanelsRequest.Builder> listControlPanelsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Returns an array of control panels in an account or in a cluster.
This is a convenience which creates an instance of the
ListControlPanelsRequest.Builder
avoiding the need to create one manually viaListControlPanelsRequest.builder()
- Parameters:
listControlPanelsRequest
- AConsumer
that will call methods onListControlPanelsRequest.Builder
to create a request.- Returns:
- Result of the ListControlPanels operation returned by the service.
- See Also:
-
listControlPanelsPaginator
default ListControlPanelsIterable listControlPanelsPaginator(ListControlPanelsRequest listControlPanelsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException This is a variant of
listControlPanels(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListControlPanelsRequest)
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 Streamsoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListControlPanelsIterable responses = client.listControlPanelsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListControlPanelsIterable responses = client .listControlPanelsPaginator(request); for (software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListControlPanelsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListControlPanelsIterable responses = client.listControlPanelsPaginator(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
listControlPanels(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListControlPanelsRequest)
operation.- Parameters:
listControlPanelsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listControlPanelsPaginator
default ListControlPanelsIterable listControlPanelsPaginator(Consumer<ListControlPanelsRequest.Builder> listControlPanelsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException This is a variant of
listControlPanels(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListControlPanelsRequest)
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 Streamsoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListControlPanelsIterable responses = client.listControlPanelsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListControlPanelsIterable responses = client .listControlPanelsPaginator(request); for (software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListControlPanelsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListControlPanelsIterable responses = client.listControlPanelsPaginator(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
listControlPanels(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListControlPanelsRequest)
operation.
This is a convenience which creates an instance of the
ListControlPanelsRequest.Builder
avoiding the need to create one manually viaListControlPanelsRequest.builder()
- Parameters:
listControlPanelsRequest
- AConsumer
that will call methods onListControlPanelsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRoutingControls
default ListRoutingControlsResponse listRoutingControls(ListRoutingControlsRequest listRoutingControlsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Returns an array of routing controls for a control panel. A routing control is an Amazon Route 53 Application Recovery Controller construct that has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.
- Parameters:
listRoutingControlsRequest
-- Returns:
- Result of the ListRoutingControls operation returned by the service.
- See Also:
-
listRoutingControls
default ListRoutingControlsResponse listRoutingControls(Consumer<ListRoutingControlsRequest.Builder> listRoutingControlsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Returns an array of routing controls for a control panel. A routing control is an Amazon Route 53 Application Recovery Controller construct that has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.
This is a convenience which creates an instance of the
ListRoutingControlsRequest.Builder
avoiding the need to create one manually viaListRoutingControlsRequest.builder()
- Parameters:
listRoutingControlsRequest
- AConsumer
that will call methods onListRoutingControlsRequest.Builder
to create a request.- Returns:
- Result of the ListRoutingControls operation returned by the service.
- See Also:
-
listRoutingControlsPaginator
default ListRoutingControlsIterable listRoutingControlsPaginator(ListRoutingControlsRequest listRoutingControlsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException This is a variant of
listRoutingControls(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListRoutingControlsRequest)
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 Streamsoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListRoutingControlsIterable responses = client.listRoutingControlsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListRoutingControlsIterable responses = client .listRoutingControlsPaginator(request); for (software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListRoutingControlsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListRoutingControlsIterable responses = client.listRoutingControlsPaginator(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
listRoutingControls(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListRoutingControlsRequest)
operation.- Parameters:
listRoutingControlsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRoutingControlsPaginator
default ListRoutingControlsIterable listRoutingControlsPaginator(Consumer<ListRoutingControlsRequest.Builder> listRoutingControlsRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException This is a variant of
listRoutingControls(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListRoutingControlsRequest)
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 Streamsoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListRoutingControlsIterable responses = client.listRoutingControlsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListRoutingControlsIterable responses = client .listRoutingControlsPaginator(request); for (software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListRoutingControlsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListRoutingControlsIterable responses = client.listRoutingControlsPaginator(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
listRoutingControls(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListRoutingControlsRequest)
operation.
This is a convenience which creates an instance of the
ListRoutingControlsRequest.Builder
avoiding the need to create one manually viaListRoutingControlsRequest.builder()
- Parameters:
listRoutingControlsRequest
- AConsumer
that will call methods onListRoutingControlsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSafetyRules
default ListSafetyRulesResponse listSafetyRules(ListSafetyRulesRequest listSafetyRulesRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException List the safety rules (the assertion rules and gating rules) that you've defined for the routing controls in a control panel.
- Parameters:
listSafetyRulesRequest
-- Returns:
- Result of the ListSafetyRules operation returned by the service.
- See Also:
-
listSafetyRules
default ListSafetyRulesResponse listSafetyRules(Consumer<ListSafetyRulesRequest.Builder> listSafetyRulesRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException List the safety rules (the assertion rules and gating rules) that you've defined for the routing controls in a control panel.
This is a convenience which creates an instance of the
ListSafetyRulesRequest.Builder
avoiding the need to create one manually viaListSafetyRulesRequest.builder()
- Parameters:
listSafetyRulesRequest
- AConsumer
that will call methods onListSafetyRulesRequest.Builder
to create a request.- Returns:
- Result of the ListSafetyRules operation returned by the service.
- See Also:
-
listSafetyRulesPaginator
default ListSafetyRulesIterable listSafetyRulesPaginator(ListSafetyRulesRequest listSafetyRulesRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException This is a variant of
listSafetyRules(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListSafetyRulesRequest)
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 Streamsoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListSafetyRulesIterable responses = client.listSafetyRulesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListSafetyRulesIterable responses = client .listSafetyRulesPaginator(request); for (software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListSafetyRulesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListSafetyRulesIterable responses = client.listSafetyRulesPaginator(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
listSafetyRules(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListSafetyRulesRequest)
operation.- Parameters:
listSafetyRulesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSafetyRulesPaginator
default ListSafetyRulesIterable listSafetyRulesPaginator(Consumer<ListSafetyRulesRequest.Builder> listSafetyRulesRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException This is a variant of
listSafetyRules(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListSafetyRulesRequest)
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 Streamsoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListSafetyRulesIterable responses = client.listSafetyRulesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListSafetyRulesIterable responses = client .listSafetyRulesPaginator(request); for (software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListSafetyRulesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.route53recoverycontrolconfig.paginators.ListSafetyRulesIterable responses = client.listSafetyRulesPaginator(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
listSafetyRules(software.amazon.awssdk.services.route53recoverycontrolconfig.model.ListSafetyRulesRequest)
operation.
This is a convenience which creates an instance of the
ListSafetyRulesRequest.Builder
avoiding the need to create one manually viaListSafetyRulesRequest.builder()
- Parameters:
listSafetyRulesRequest
- AConsumer
that will call methods onListSafetyRulesRequest.Builder
to 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, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Lists the tags for a resource.
- Parameters:
listTagsForResourceRequest
-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Lists the tags for a resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Adds a tag to a resource.
- Parameters:
tagResourceRequest
- Request of adding tag to the resource- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Adds a tag to a resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request. Request of adding tag to the resource- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Removes a tag from a resource.
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Removes a tag from a resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateControlPanel
default UpdateControlPanelResponse updateControlPanel(UpdateControlPanelRequest updateControlPanelRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Updates a control panel. The only update you can make to a control panel is to change the name of the control panel.
- Parameters:
updateControlPanelRequest
- The details of the control panel that you're updating.- Returns:
- Result of the UpdateControlPanel operation returned by the service.
- See Also:
-
updateControlPanel
default UpdateControlPanelResponse updateControlPanel(Consumer<UpdateControlPanelRequest.Builder> updateControlPanelRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Updates a control panel. The only update you can make to a control panel is to change the name of the control panel.
This is a convenience which creates an instance of the
UpdateControlPanelRequest.Builder
avoiding the need to create one manually viaUpdateControlPanelRequest.builder()
- Parameters:
updateControlPanelRequest
- AConsumer
that will call methods onUpdateControlPanelRequest.Builder
to create a request. The details of the control panel that you're updating.- Returns:
- Result of the UpdateControlPanel operation returned by the service.
- See Also:
-
updateRoutingControl
default UpdateRoutingControlResponse updateRoutingControl(UpdateRoutingControlRequest updateRoutingControlRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Updates a routing control. You can only update the name of the routing control. To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.
- Parameters:
updateRoutingControlRequest
- The details of the routing control that you're updating.- Returns:
- Result of the UpdateRoutingControl operation returned by the service.
- See Also:
-
updateRoutingControl
default UpdateRoutingControlResponse updateRoutingControl(Consumer<UpdateRoutingControlRequest.Builder> updateRoutingControlRequest) throws ValidationException, InternalServerException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Updates a routing control. You can only update the name of the routing control. To get or update the routing control state, see the Recovery Cluster (data plane) API actions for Amazon Route 53 Application Recovery Controller.
This is a convenience which creates an instance of the
UpdateRoutingControlRequest.Builder
avoiding the need to create one manually viaUpdateRoutingControlRequest.builder()
- Parameters:
updateRoutingControlRequest
- AConsumer
that will call methods onUpdateRoutingControlRequest.Builder
to create a request. The details of the routing control that you're updating.- Returns:
- Result of the UpdateRoutingControl operation returned by the service.
- See Also:
-
updateSafetyRule
default UpdateSafetyRuleResponse updateSafetyRule(UpdateSafetyRuleRequest updateSafetyRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Update a safety rule (an assertion rule or gating rule). You can only update the name and the waiting period for a safety rule. To make other updates, delete the safety rule and create a new one.
- Parameters:
updateSafetyRuleRequest
- A rule that you add to Application Recovery Controller to ensure that recovery actions don't accidentally impair your application's availability.- Returns:
- Result of the UpdateSafetyRule operation returned by the service.
- See Also:
-
updateSafetyRule
default UpdateSafetyRuleResponse updateSafetyRule(Consumer<UpdateSafetyRuleRequest.Builder> updateSafetyRuleRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, Route53RecoveryControlConfigException Update a safety rule (an assertion rule or gating rule). You can only update the name and the waiting period for a safety rule. To make other updates, delete the safety rule and create a new one.
This is a convenience which creates an instance of the
UpdateSafetyRuleRequest.Builder
avoiding the need to create one manually viaUpdateSafetyRuleRequest.builder()
- Parameters:
updateSafetyRuleRequest
- AConsumer
that will call methods onUpdateSafetyRuleRequest.Builder
to create a request. A rule that you add to Application Recovery Controller to ensure that recovery actions don't accidentally impair your application's availability.- Returns:
- Result of the UpdateSafetyRule operation returned by the service.
- See Also:
-
waiter
Create an instance ofRoute53RecoveryControlConfigWaiter
using this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
Route53RecoveryControlConfigWaiter
-
create
Create aRoute53RecoveryControlConfigClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aRoute53RecoveryControlConfigClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-