Interface DrsClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
AWS Elastic Disaster Recovery Service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionassociateSourceNetworkStack(Consumer<AssociateSourceNetworkStackRequest.Builder> associateSourceNetworkStackRequest) Associate a Source Network to an existing CloudFormation Stack and modify launch templates to use this network.associateSourceNetworkStack(AssociateSourceNetworkStackRequest associateSourceNetworkStackRequest) Associate a Source Network to an existing CloudFormation Stack and modify launch templates to use this network.static DrsClientBuilderbuilder()Create a builder that can be used to configure and create aDrsClient.static DrsClientcreate()Create aDrsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.createExtendedSourceServer(Consumer<CreateExtendedSourceServerRequest.Builder> createExtendedSourceServerRequest) Create an extended source server in the target Account based on the source server in staging account.createExtendedSourceServer(CreateExtendedSourceServerRequest createExtendedSourceServerRequest) Create an extended source server in the target Account based on the source server in staging account.createLaunchConfigurationTemplate(Consumer<CreateLaunchConfigurationTemplateRequest.Builder> createLaunchConfigurationTemplateRequest) Creates a new Launch Configuration Template.createLaunchConfigurationTemplate(CreateLaunchConfigurationTemplateRequest createLaunchConfigurationTemplateRequest) Creates a new Launch Configuration Template.createReplicationConfigurationTemplate(Consumer<CreateReplicationConfigurationTemplateRequest.Builder> createReplicationConfigurationTemplateRequest) Creates a new ReplicationConfigurationTemplate.createReplicationConfigurationTemplate(CreateReplicationConfigurationTemplateRequest createReplicationConfigurationTemplateRequest) Creates a new ReplicationConfigurationTemplate.default CreateSourceNetworkResponsecreateSourceNetwork(Consumer<CreateSourceNetworkRequest.Builder> createSourceNetworkRequest) Create a new Source Network resource for a provided VPC ID.default CreateSourceNetworkResponsecreateSourceNetwork(CreateSourceNetworkRequest createSourceNetworkRequest) Create a new Source Network resource for a provided VPC ID.default DeleteJobResponsedeleteJob(Consumer<DeleteJobRequest.Builder> deleteJobRequest) Deletes a single Job by ID.default DeleteJobResponsedeleteJob(DeleteJobRequest deleteJobRequest) Deletes a single Job by ID.default DeleteLaunchActionResponsedeleteLaunchAction(Consumer<DeleteLaunchActionRequest.Builder> deleteLaunchActionRequest) Deletes a resource launch action.default DeleteLaunchActionResponsedeleteLaunchAction(DeleteLaunchActionRequest deleteLaunchActionRequest) Deletes a resource launch action.deleteLaunchConfigurationTemplate(Consumer<DeleteLaunchConfigurationTemplateRequest.Builder> deleteLaunchConfigurationTemplateRequest) Deletes a single Launch Configuration Template by ID.deleteLaunchConfigurationTemplate(DeleteLaunchConfigurationTemplateRequest deleteLaunchConfigurationTemplateRequest) Deletes a single Launch Configuration Template by ID.default DeleteRecoveryInstanceResponsedeleteRecoveryInstance(Consumer<DeleteRecoveryInstanceRequest.Builder> deleteRecoveryInstanceRequest) Deletes a single Recovery Instance by ID.default DeleteRecoveryInstanceResponsedeleteRecoveryInstance(DeleteRecoveryInstanceRequest deleteRecoveryInstanceRequest) Deletes a single Recovery Instance by ID.deleteReplicationConfigurationTemplate(Consumer<DeleteReplicationConfigurationTemplateRequest.Builder> deleteReplicationConfigurationTemplateRequest) Deletes a single Replication Configuration Template by IDdeleteReplicationConfigurationTemplate(DeleteReplicationConfigurationTemplateRequest deleteReplicationConfigurationTemplateRequest) Deletes a single Replication Configuration Template by IDdefault DeleteSourceNetworkResponsedeleteSourceNetwork(Consumer<DeleteSourceNetworkRequest.Builder> deleteSourceNetworkRequest) Delete Source Network resource.default DeleteSourceNetworkResponsedeleteSourceNetwork(DeleteSourceNetworkRequest deleteSourceNetworkRequest) Delete Source Network resource.default DeleteSourceServerResponsedeleteSourceServer(Consumer<DeleteSourceServerRequest.Builder> deleteSourceServerRequest) Deletes a single Source Server by ID.default DeleteSourceServerResponsedeleteSourceServer(DeleteSourceServerRequest deleteSourceServerRequest) Deletes a single Source Server by ID.default DescribeJobLogItemsResponsedescribeJobLogItems(Consumer<DescribeJobLogItemsRequest.Builder> describeJobLogItemsRequest) Retrieves a detailed Job log with pagination.default DescribeJobLogItemsResponsedescribeJobLogItems(DescribeJobLogItemsRequest describeJobLogItemsRequest) Retrieves a detailed Job log with pagination.default DescribeJobLogItemsIterabledescribeJobLogItemsPaginator(Consumer<DescribeJobLogItemsRequest.Builder> describeJobLogItemsRequest) This is a variant ofdescribeJobLogItems(software.amazon.awssdk.services.drs.model.DescribeJobLogItemsRequest)operation.default DescribeJobLogItemsIterabledescribeJobLogItemsPaginator(DescribeJobLogItemsRequest describeJobLogItemsRequest) This is a variant ofdescribeJobLogItems(software.amazon.awssdk.services.drs.model.DescribeJobLogItemsRequest)operation.default DescribeJobsResponsedescribeJobs(Consumer<DescribeJobsRequest.Builder> describeJobsRequest) Returns a list of Jobs.default DescribeJobsResponsedescribeJobs(DescribeJobsRequest describeJobsRequest) Returns a list of Jobs.default DescribeJobsIterabledescribeJobsPaginator(Consumer<DescribeJobsRequest.Builder> describeJobsRequest) This is a variant ofdescribeJobs(software.amazon.awssdk.services.drs.model.DescribeJobsRequest)operation.default DescribeJobsIterabledescribeJobsPaginator(DescribeJobsRequest describeJobsRequest) This is a variant ofdescribeJobs(software.amazon.awssdk.services.drs.model.DescribeJobsRequest)operation.describeLaunchConfigurationTemplates(Consumer<DescribeLaunchConfigurationTemplatesRequest.Builder> describeLaunchConfigurationTemplatesRequest) Lists all Launch Configuration Templates, filtered by Launch Configuration Template IDsdescribeLaunchConfigurationTemplates(DescribeLaunchConfigurationTemplatesRequest describeLaunchConfigurationTemplatesRequest) Lists all Launch Configuration Templates, filtered by Launch Configuration Template IDsdescribeLaunchConfigurationTemplatesPaginator(Consumer<DescribeLaunchConfigurationTemplatesRequest.Builder> describeLaunchConfigurationTemplatesRequest) This is a variant ofdescribeLaunchConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesRequest)operation.describeLaunchConfigurationTemplatesPaginator(DescribeLaunchConfigurationTemplatesRequest describeLaunchConfigurationTemplatesRequest) This is a variant ofdescribeLaunchConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesRequest)operation.describeRecoveryInstances(Consumer<DescribeRecoveryInstancesRequest.Builder> describeRecoveryInstancesRequest) Lists all Recovery Instances or multiple Recovery Instances by ID.describeRecoveryInstances(DescribeRecoveryInstancesRequest describeRecoveryInstancesRequest) Lists all Recovery Instances or multiple Recovery Instances by ID.describeRecoveryInstancesPaginator(Consumer<DescribeRecoveryInstancesRequest.Builder> describeRecoveryInstancesRequest) This is a variant ofdescribeRecoveryInstances(software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesRequest)operation.describeRecoveryInstancesPaginator(DescribeRecoveryInstancesRequest describeRecoveryInstancesRequest) This is a variant ofdescribeRecoveryInstances(software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesRequest)operation.describeRecoverySnapshots(Consumer<DescribeRecoverySnapshotsRequest.Builder> describeRecoverySnapshotsRequest) Lists all Recovery Snapshots for a single Source Server.describeRecoverySnapshots(DescribeRecoverySnapshotsRequest describeRecoverySnapshotsRequest) Lists all Recovery Snapshots for a single Source Server.describeRecoverySnapshotsPaginator(Consumer<DescribeRecoverySnapshotsRequest.Builder> describeRecoverySnapshotsRequest) This is a variant ofdescribeRecoverySnapshots(software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsRequest)operation.describeRecoverySnapshotsPaginator(DescribeRecoverySnapshotsRequest describeRecoverySnapshotsRequest) This is a variant ofdescribeRecoverySnapshots(software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsRequest)operation.describeReplicationConfigurationTemplates(Consumer<DescribeReplicationConfigurationTemplatesRequest.Builder> describeReplicationConfigurationTemplatesRequest) Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.describeReplicationConfigurationTemplates(DescribeReplicationConfigurationTemplatesRequest describeReplicationConfigurationTemplatesRequest) Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.describeReplicationConfigurationTemplatesPaginator(Consumer<DescribeReplicationConfigurationTemplatesRequest.Builder> describeReplicationConfigurationTemplatesRequest) describeReplicationConfigurationTemplatesPaginator(DescribeReplicationConfigurationTemplatesRequest describeReplicationConfigurationTemplatesRequest) default DescribeSourceNetworksResponsedescribeSourceNetworks(Consumer<DescribeSourceNetworksRequest.Builder> describeSourceNetworksRequest) Lists all Source Networks or multiple Source Networks filtered by ID.default DescribeSourceNetworksResponsedescribeSourceNetworks(DescribeSourceNetworksRequest describeSourceNetworksRequest) Lists all Source Networks or multiple Source Networks filtered by ID.default DescribeSourceNetworksIterabledescribeSourceNetworksPaginator(Consumer<DescribeSourceNetworksRequest.Builder> describeSourceNetworksRequest) This is a variant ofdescribeSourceNetworks(software.amazon.awssdk.services.drs.model.DescribeSourceNetworksRequest)operation.default DescribeSourceNetworksIterabledescribeSourceNetworksPaginator(DescribeSourceNetworksRequest describeSourceNetworksRequest) This is a variant ofdescribeSourceNetworks(software.amazon.awssdk.services.drs.model.DescribeSourceNetworksRequest)operation.default DescribeSourceServersResponsedescribeSourceServers(Consumer<DescribeSourceServersRequest.Builder> describeSourceServersRequest) Lists all Source Servers or multiple Source Servers filtered by ID.default DescribeSourceServersResponsedescribeSourceServers(DescribeSourceServersRequest describeSourceServersRequest) Lists all Source Servers or multiple Source Servers filtered by ID.default DescribeSourceServersIterabledescribeSourceServersPaginator(Consumer<DescribeSourceServersRequest.Builder> describeSourceServersRequest) This is a variant ofdescribeSourceServers(software.amazon.awssdk.services.drs.model.DescribeSourceServersRequest)operation.default DescribeSourceServersIterabledescribeSourceServersPaginator(DescribeSourceServersRequest describeSourceServersRequest) This is a variant ofdescribeSourceServers(software.amazon.awssdk.services.drs.model.DescribeSourceServersRequest)operation.disconnectRecoveryInstance(Consumer<DisconnectRecoveryInstanceRequest.Builder> disconnectRecoveryInstanceRequest) Disconnect a Recovery Instance from Elastic Disaster Recovery.disconnectRecoveryInstance(DisconnectRecoveryInstanceRequest disconnectRecoveryInstanceRequest) Disconnect a Recovery Instance from Elastic Disaster Recovery.default DisconnectSourceServerResponsedisconnectSourceServer(Consumer<DisconnectSourceServerRequest.Builder> disconnectSourceServerRequest) Disconnects a specific Source Server from Elastic Disaster Recovery.default DisconnectSourceServerResponsedisconnectSourceServer(DisconnectSourceServerRequest disconnectSourceServerRequest) Disconnects a specific Source Server from Elastic Disaster Recovery.exportSourceNetworkCfnTemplate(Consumer<ExportSourceNetworkCfnTemplateRequest.Builder> exportSourceNetworkCfnTemplateRequest) Export the Source Network CloudFormation template to an S3 bucket.exportSourceNetworkCfnTemplate(ExportSourceNetworkCfnTemplateRequest exportSourceNetworkCfnTemplateRequest) Export the Source Network CloudFormation template to an S3 bucket.getFailbackReplicationConfiguration(Consumer<GetFailbackReplicationConfigurationRequest.Builder> getFailbackReplicationConfigurationRequest) Lists all Failback ReplicationConfigurations, filtered by Recovery Instance ID.getFailbackReplicationConfiguration(GetFailbackReplicationConfigurationRequest getFailbackReplicationConfigurationRequest) Lists all Failback ReplicationConfigurations, filtered by Recovery Instance ID.default GetLaunchConfigurationResponsegetLaunchConfiguration(Consumer<GetLaunchConfigurationRequest.Builder> getLaunchConfigurationRequest) Gets a LaunchConfiguration, filtered by Source Server IDs.default GetLaunchConfigurationResponsegetLaunchConfiguration(GetLaunchConfigurationRequest getLaunchConfigurationRequest) Gets a LaunchConfiguration, filtered by Source Server IDs.getReplicationConfiguration(Consumer<GetReplicationConfigurationRequest.Builder> getReplicationConfigurationRequest) Gets a ReplicationConfiguration, filtered by Source Server ID.getReplicationConfiguration(GetReplicationConfigurationRequest getReplicationConfigurationRequest) Gets a ReplicationConfiguration, filtered by Source Server ID.default InitializeServiceResponseinitializeService(Consumer<InitializeServiceRequest.Builder> initializeServiceRequest) Initialize Elastic Disaster Recovery.default InitializeServiceResponseinitializeService(InitializeServiceRequest initializeServiceRequest) Initialize Elastic Disaster Recovery.listExtensibleSourceServers(Consumer<ListExtensibleSourceServersRequest.Builder> listExtensibleSourceServersRequest) Returns a list of source servers on a staging account that are extensible, which means that: a.listExtensibleSourceServers(ListExtensibleSourceServersRequest listExtensibleSourceServersRequest) Returns a list of source servers on a staging account that are extensible, which means that: a.listExtensibleSourceServersPaginator(Consumer<ListExtensibleSourceServersRequest.Builder> listExtensibleSourceServersRequest) This is a variant oflistExtensibleSourceServers(software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersRequest)operation.listExtensibleSourceServersPaginator(ListExtensibleSourceServersRequest listExtensibleSourceServersRequest) This is a variant oflistExtensibleSourceServers(software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersRequest)operation.default ListLaunchActionsResponselistLaunchActions(Consumer<ListLaunchActionsRequest.Builder> listLaunchActionsRequest) Lists resource launch actions.default ListLaunchActionsResponselistLaunchActions(ListLaunchActionsRequest listLaunchActionsRequest) Lists resource launch actions.default ListLaunchActionsIterablelistLaunchActionsPaginator(Consumer<ListLaunchActionsRequest.Builder> listLaunchActionsRequest) This is a variant oflistLaunchActions(software.amazon.awssdk.services.drs.model.ListLaunchActionsRequest)operation.default ListLaunchActionsIterablelistLaunchActionsPaginator(ListLaunchActionsRequest listLaunchActionsRequest) This is a variant oflistLaunchActions(software.amazon.awssdk.services.drs.model.ListLaunchActionsRequest)operation.default ListStagingAccountsResponselistStagingAccounts(Consumer<ListStagingAccountsRequest.Builder> listStagingAccountsRequest) Returns an array of staging accounts for existing extended source servers.default ListStagingAccountsResponselistStagingAccounts(ListStagingAccountsRequest listStagingAccountsRequest) Returns an array of staging accounts for existing extended source servers.default ListStagingAccountsIterablelistStagingAccountsPaginator(Consumer<ListStagingAccountsRequest.Builder> listStagingAccountsRequest) This is a variant oflistStagingAccounts(software.amazon.awssdk.services.drs.model.ListStagingAccountsRequest)operation.default ListStagingAccountsIterablelistStagingAccountsPaginator(ListStagingAccountsRequest listStagingAccountsRequest) This is a variant oflistStagingAccounts(software.amazon.awssdk.services.drs.model.ListStagingAccountsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) List all tags for your Elastic Disaster Recovery resources.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) List all tags for your Elastic Disaster Recovery resources.default PutLaunchActionResponseputLaunchAction(Consumer<PutLaunchActionRequest.Builder> putLaunchActionRequest) Puts a resource launch action.default PutLaunchActionResponseputLaunchAction(PutLaunchActionRequest putLaunchActionRequest) Puts a resource launch action.default RetryDataReplicationResponseretryDataReplication(Consumer<RetryDataReplicationRequest.Builder> retryDataReplicationRequest) Deprecated.WARNING: RetryDataReplication is deprecateddefault RetryDataReplicationResponseretryDataReplication(RetryDataReplicationRequest retryDataReplicationRequest) Deprecated.WARNING: RetryDataReplication is deprecateddefault ReverseReplicationResponsereverseReplication(Consumer<ReverseReplicationRequest.Builder> reverseReplicationRequest) Start replication to origin / target region - applies only to protected instances that originated in EC2.default ReverseReplicationResponsereverseReplication(ReverseReplicationRequest reverseReplicationRequest) Start replication to origin / target region - applies only to protected instances that originated in EC2.default DrsServiceClientConfigurationThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault StartFailbackLaunchResponsestartFailbackLaunch(Consumer<StartFailbackLaunchRequest.Builder> startFailbackLaunchRequest) Initiates a Job for launching the machine that is being failed back to from the specified Recovery Instance.default StartFailbackLaunchResponsestartFailbackLaunch(StartFailbackLaunchRequest startFailbackLaunchRequest) Initiates a Job for launching the machine that is being failed back to from the specified Recovery Instance.default StartRecoveryResponsestartRecovery(Consumer<StartRecoveryRequest.Builder> startRecoveryRequest) Launches Recovery Instances for the specified Source Servers.default StartRecoveryResponsestartRecovery(StartRecoveryRequest startRecoveryRequest) Launches Recovery Instances for the specified Source Servers.default StartReplicationResponsestartReplication(Consumer<StartReplicationRequest.Builder> startReplicationRequest) Starts replication for a stopped Source Server.default StartReplicationResponsestartReplication(StartReplicationRequest startReplicationRequest) Starts replication for a stopped Source Server.startSourceNetworkRecovery(Consumer<StartSourceNetworkRecoveryRequest.Builder> startSourceNetworkRecoveryRequest) Deploy VPC for the specified Source Network and modify launch templates to use this network.startSourceNetworkRecovery(StartSourceNetworkRecoveryRequest startSourceNetworkRecoveryRequest) Deploy VPC for the specified Source Network and modify launch templates to use this network.startSourceNetworkReplication(Consumer<StartSourceNetworkReplicationRequest.Builder> startSourceNetworkReplicationRequest) Starts replication for a Source Network.startSourceNetworkReplication(StartSourceNetworkReplicationRequest startSourceNetworkReplicationRequest) Starts replication for a Source Network.default StopFailbackResponsestopFailback(Consumer<StopFailbackRequest.Builder> stopFailbackRequest) Stops the failback process for a specified Recovery Instance.default StopFailbackResponsestopFailback(StopFailbackRequest stopFailbackRequest) Stops the failback process for a specified Recovery Instance.default StopReplicationResponsestopReplication(Consumer<StopReplicationRequest.Builder> stopReplicationRequest) Stops replication for a Source Server.default StopReplicationResponsestopReplication(StopReplicationRequest stopReplicationRequest) Stops replication for a Source Server.stopSourceNetworkReplication(Consumer<StopSourceNetworkReplicationRequest.Builder> stopSourceNetworkReplicationRequest) Stops replication for a Source Network.stopSourceNetworkReplication(StopSourceNetworkReplicationRequest stopSourceNetworkReplicationRequest) Stops replication for a Source Network.default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or overwrites only the specified tags for the specified Elastic Disaster Recovery resource or resources.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds or overwrites only the specified tags for the specified Elastic Disaster Recovery resource or resources.terminateRecoveryInstances(Consumer<TerminateRecoveryInstancesRequest.Builder> terminateRecoveryInstancesRequest) Initiates a Job for terminating the EC2 resources associated with the specified Recovery Instances, and then will delete the Recovery Instances from the Elastic Disaster Recovery service.terminateRecoveryInstances(TerminateRecoveryInstancesRequest terminateRecoveryInstancesRequest) Initiates a Job for terminating the EC2 resources associated with the specified Recovery Instances, and then will delete the Recovery Instances from the Elastic Disaster Recovery service.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Deletes the specified set of tags from the specified set of Elastic Disaster Recovery resources.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Deletes the specified set of tags from the specified set of Elastic Disaster Recovery resources.updateFailbackReplicationConfiguration(Consumer<UpdateFailbackReplicationConfigurationRequest.Builder> updateFailbackReplicationConfigurationRequest) Allows you to update the failback replication configuration of a Recovery Instance by ID.updateFailbackReplicationConfiguration(UpdateFailbackReplicationConfigurationRequest updateFailbackReplicationConfigurationRequest) Allows you to update the failback replication configuration of a Recovery Instance by ID.updateLaunchConfiguration(Consumer<UpdateLaunchConfigurationRequest.Builder> updateLaunchConfigurationRequest) Updates a LaunchConfiguration by Source Server ID.updateLaunchConfiguration(UpdateLaunchConfigurationRequest updateLaunchConfigurationRequest) Updates a LaunchConfiguration by Source Server ID.updateLaunchConfigurationTemplate(Consumer<UpdateLaunchConfigurationTemplateRequest.Builder> updateLaunchConfigurationTemplateRequest) Updates an existing Launch Configuration Template by ID.updateLaunchConfigurationTemplate(UpdateLaunchConfigurationTemplateRequest updateLaunchConfigurationTemplateRequest) Updates an existing Launch Configuration Template by ID.updateReplicationConfiguration(Consumer<UpdateReplicationConfigurationRequest.Builder> updateReplicationConfigurationRequest) Allows you to update a ReplicationConfiguration by Source Server ID.updateReplicationConfiguration(UpdateReplicationConfigurationRequest updateReplicationConfigurationRequest) Allows you to update a ReplicationConfiguration by Source Server ID.updateReplicationConfigurationTemplate(Consumer<UpdateReplicationConfigurationTemplateRequest.Builder> updateReplicationConfigurationTemplateRequest) Updates a ReplicationConfigurationTemplate by ID.updateReplicationConfigurationTemplate(UpdateReplicationConfigurationTemplateRequest updateReplicationConfigurationTemplateRequest) Updates a ReplicationConfigurationTemplate by ID.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
-
associateSourceNetworkStack
default AssociateSourceNetworkStackResponse associateSourceNetworkStack(AssociateSourceNetworkStackRequest associateSourceNetworkStackRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Associate a Source Network to an existing CloudFormation Stack and modify launch templates to use this network. Can be used for reverting to previously deployed CloudFormation stacks.
- Parameters:
associateSourceNetworkStackRequest-- Returns:
- Result of the AssociateSourceNetworkStack operation returned by the service.
- See Also:
-
associateSourceNetworkStack
default AssociateSourceNetworkStackResponse associateSourceNetworkStack(Consumer<AssociateSourceNetworkStackRequest.Builder> associateSourceNetworkStackRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Associate a Source Network to an existing CloudFormation Stack and modify launch templates to use this network. Can be used for reverting to previously deployed CloudFormation stacks.
This is a convenience which creates an instance of the
AssociateSourceNetworkStackRequest.Builderavoiding the need to create one manually viaAssociateSourceNetworkStackRequest.builder()- Parameters:
associateSourceNetworkStackRequest- AConsumerthat will call methods onAssociateSourceNetworkStackRequest.Builderto create a request.- Returns:
- Result of the AssociateSourceNetworkStack operation returned by the service.
- See Also:
-
createExtendedSourceServer
default CreateExtendedSourceServerResponse createExtendedSourceServer(CreateExtendedSourceServerRequest createExtendedSourceServerRequest) throws ResourceNotFoundException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Create an extended source server in the target Account based on the source server in staging account.
- Parameters:
createExtendedSourceServerRequest-- Returns:
- Result of the CreateExtendedSourceServer operation returned by the service.
- See Also:
-
createExtendedSourceServer
default CreateExtendedSourceServerResponse createExtendedSourceServer(Consumer<CreateExtendedSourceServerRequest.Builder> createExtendedSourceServerRequest) throws ResourceNotFoundException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Create an extended source server in the target Account based on the source server in staging account.
This is a convenience which creates an instance of the
CreateExtendedSourceServerRequest.Builderavoiding the need to create one manually viaCreateExtendedSourceServerRequest.builder()- Parameters:
createExtendedSourceServerRequest- AConsumerthat will call methods onCreateExtendedSourceServerRequest.Builderto create a request.- Returns:
- Result of the CreateExtendedSourceServer operation returned by the service.
- See Also:
-
createLaunchConfigurationTemplate
default CreateLaunchConfigurationTemplateResponse createLaunchConfigurationTemplate(CreateLaunchConfigurationTemplateRequest createLaunchConfigurationTemplateRequest) throws InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Creates a new Launch Configuration Template.
- Parameters:
createLaunchConfigurationTemplateRequest-- Returns:
- Result of the CreateLaunchConfigurationTemplate operation returned by the service.
- See Also:
-
createLaunchConfigurationTemplate
default CreateLaunchConfigurationTemplateResponse createLaunchConfigurationTemplate(Consumer<CreateLaunchConfigurationTemplateRequest.Builder> createLaunchConfigurationTemplateRequest) throws InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Creates a new Launch Configuration Template.
This is a convenience which creates an instance of the
CreateLaunchConfigurationTemplateRequest.Builderavoiding the need to create one manually viaCreateLaunchConfigurationTemplateRequest.builder()- Parameters:
createLaunchConfigurationTemplateRequest- AConsumerthat will call methods onCreateLaunchConfigurationTemplateRequest.Builderto create a request.- Returns:
- Result of the CreateLaunchConfigurationTemplate operation returned by the service.
- See Also:
-
createReplicationConfigurationTemplate
default CreateReplicationConfigurationTemplateResponse createReplicationConfigurationTemplate(CreateReplicationConfigurationTemplateRequest createReplicationConfigurationTemplateRequest) throws InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Creates a new ReplicationConfigurationTemplate.
- Parameters:
createReplicationConfigurationTemplateRequest-- Returns:
- Result of the CreateReplicationConfigurationTemplate operation returned by the service.
- See Also:
-
createReplicationConfigurationTemplate
default CreateReplicationConfigurationTemplateResponse createReplicationConfigurationTemplate(Consumer<CreateReplicationConfigurationTemplateRequest.Builder> createReplicationConfigurationTemplateRequest) throws InternalServerException, ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Creates a new ReplicationConfigurationTemplate.
This is a convenience which creates an instance of the
CreateReplicationConfigurationTemplateRequest.Builderavoiding the need to create one manually viaCreateReplicationConfigurationTemplateRequest.builder()- Parameters:
createReplicationConfigurationTemplateRequest- AConsumerthat will call methods onCreateReplicationConfigurationTemplateRequest.Builderto create a request.- Returns:
- Result of the CreateReplicationConfigurationTemplate operation returned by the service.
- See Also:
-
createSourceNetwork
default CreateSourceNetworkResponse createSourceNetwork(CreateSourceNetworkRequest createSourceNetworkRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Create a new Source Network resource for a provided VPC ID.
- Parameters:
createSourceNetworkRequest-- Returns:
- Result of the CreateSourceNetwork operation returned by the service.
- See Also:
-
createSourceNetwork
default CreateSourceNetworkResponse createSourceNetwork(Consumer<CreateSourceNetworkRequest.Builder> createSourceNetworkRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ServiceQuotaExceededException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Create a new Source Network resource for a provided VPC ID.
This is a convenience which creates an instance of the
CreateSourceNetworkRequest.Builderavoiding the need to create one manually viaCreateSourceNetworkRequest.builder()- Parameters:
createSourceNetworkRequest- AConsumerthat will call methods onCreateSourceNetworkRequest.Builderto create a request.- Returns:
- Result of the CreateSourceNetwork operation returned by the service.
- See Also:
-
deleteJob
default DeleteJobResponse deleteJob(DeleteJobRequest deleteJobRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deletes a single Job by ID.
- Parameters:
deleteJobRequest-- Returns:
- Result of the DeleteJob operation returned by the service.
- See Also:
-
deleteJob
default DeleteJobResponse deleteJob(Consumer<DeleteJobRequest.Builder> deleteJobRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deletes a single Job by ID.
This is a convenience which creates an instance of the
DeleteJobRequest.Builderavoiding the need to create one manually viaDeleteJobRequest.builder()- Parameters:
deleteJobRequest- AConsumerthat will call methods onDeleteJobRequest.Builderto create a request.- Returns:
- Result of the DeleteJob operation returned by the service.
- See Also:
-
deleteLaunchAction
default DeleteLaunchActionResponse deleteLaunchAction(DeleteLaunchActionRequest deleteLaunchActionRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deletes a resource launch action.
- Parameters:
deleteLaunchActionRequest-- Returns:
- Result of the DeleteLaunchAction operation returned by the service.
- See Also:
-
deleteLaunchAction
default DeleteLaunchActionResponse deleteLaunchAction(Consumer<DeleteLaunchActionRequest.Builder> deleteLaunchActionRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deletes a resource launch action.
This is a convenience which creates an instance of the
DeleteLaunchActionRequest.Builderavoiding the need to create one manually viaDeleteLaunchActionRequest.builder()- Parameters:
deleteLaunchActionRequest- AConsumerthat will call methods onDeleteLaunchActionRequest.Builderto create a request.- Returns:
- Result of the DeleteLaunchAction operation returned by the service.
- See Also:
-
deleteLaunchConfigurationTemplate
default DeleteLaunchConfigurationTemplateResponse deleteLaunchConfigurationTemplate(DeleteLaunchConfigurationTemplateRequest deleteLaunchConfigurationTemplateRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deletes a single Launch Configuration Template by ID.
- Parameters:
deleteLaunchConfigurationTemplateRequest-- Returns:
- Result of the DeleteLaunchConfigurationTemplate operation returned by the service.
- See Also:
-
deleteLaunchConfigurationTemplate
default DeleteLaunchConfigurationTemplateResponse deleteLaunchConfigurationTemplate(Consumer<DeleteLaunchConfigurationTemplateRequest.Builder> deleteLaunchConfigurationTemplateRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deletes a single Launch Configuration Template by ID.
This is a convenience which creates an instance of the
DeleteLaunchConfigurationTemplateRequest.Builderavoiding the need to create one manually viaDeleteLaunchConfigurationTemplateRequest.builder()- Parameters:
deleteLaunchConfigurationTemplateRequest- AConsumerthat will call methods onDeleteLaunchConfigurationTemplateRequest.Builderto create a request.- Returns:
- Result of the DeleteLaunchConfigurationTemplate operation returned by the service.
- See Also:
-
deleteRecoveryInstance
default DeleteRecoveryInstanceResponse deleteRecoveryInstance(DeleteRecoveryInstanceRequest deleteRecoveryInstanceRequest) throws InternalServerException, ConflictException, ThrottlingException, AccessDeniedException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deletes a single Recovery Instance by ID. This deletes the Recovery Instance resource from Elastic Disaster Recovery. The Recovery Instance must be disconnected first in order to delete it.
- Parameters:
deleteRecoveryInstanceRequest-- Returns:
- Result of the DeleteRecoveryInstance operation returned by the service.
- See Also:
-
deleteRecoveryInstance
default DeleteRecoveryInstanceResponse deleteRecoveryInstance(Consumer<DeleteRecoveryInstanceRequest.Builder> deleteRecoveryInstanceRequest) throws InternalServerException, ConflictException, ThrottlingException, AccessDeniedException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deletes a single Recovery Instance by ID. This deletes the Recovery Instance resource from Elastic Disaster Recovery. The Recovery Instance must be disconnected first in order to delete it.
This is a convenience which creates an instance of the
DeleteRecoveryInstanceRequest.Builderavoiding the need to create one manually viaDeleteRecoveryInstanceRequest.builder()- Parameters:
deleteRecoveryInstanceRequest- AConsumerthat will call methods onDeleteRecoveryInstanceRequest.Builderto create a request.- Returns:
- Result of the DeleteRecoveryInstance operation returned by the service.
- See Also:
-
deleteReplicationConfigurationTemplate
default DeleteReplicationConfigurationTemplateResponse deleteReplicationConfigurationTemplate(DeleteReplicationConfigurationTemplateRequest deleteReplicationConfigurationTemplateRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deletes a single Replication Configuration Template by ID
- Parameters:
deleteReplicationConfigurationTemplateRequest-- Returns:
- Result of the DeleteReplicationConfigurationTemplate operation returned by the service.
- See Also:
-
deleteReplicationConfigurationTemplate
default DeleteReplicationConfigurationTemplateResponse deleteReplicationConfigurationTemplate(Consumer<DeleteReplicationConfigurationTemplateRequest.Builder> deleteReplicationConfigurationTemplateRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deletes a single Replication Configuration Template by ID
This is a convenience which creates an instance of the
DeleteReplicationConfigurationTemplateRequest.Builderavoiding the need to create one manually viaDeleteReplicationConfigurationTemplateRequest.builder()- Parameters:
deleteReplicationConfigurationTemplateRequest- AConsumerthat will call methods onDeleteReplicationConfigurationTemplateRequest.Builderto create a request.- Returns:
- Result of the DeleteReplicationConfigurationTemplate operation returned by the service.
- See Also:
-
deleteSourceNetwork
default DeleteSourceNetworkResponse deleteSourceNetwork(DeleteSourceNetworkRequest deleteSourceNetworkRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Delete Source Network resource.
- Parameters:
deleteSourceNetworkRequest-- Returns:
- Result of the DeleteSourceNetwork operation returned by the service.
- See Also:
-
deleteSourceNetwork
default DeleteSourceNetworkResponse deleteSourceNetwork(Consumer<DeleteSourceNetworkRequest.Builder> deleteSourceNetworkRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Delete Source Network resource.
This is a convenience which creates an instance of the
DeleteSourceNetworkRequest.Builderavoiding the need to create one manually viaDeleteSourceNetworkRequest.builder()- Parameters:
deleteSourceNetworkRequest- AConsumerthat will call methods onDeleteSourceNetworkRequest.Builderto create a request.- Returns:
- Result of the DeleteSourceNetwork operation returned by the service.
- See Also:
-
deleteSourceServer
default DeleteSourceServerResponse deleteSourceServer(DeleteSourceServerRequest deleteSourceServerRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deletes a single Source Server by ID. The Source Server must be disconnected first.
- Parameters:
deleteSourceServerRequest-- Returns:
- Result of the DeleteSourceServer operation returned by the service.
- See Also:
-
deleteSourceServer
default DeleteSourceServerResponse deleteSourceServer(Consumer<DeleteSourceServerRequest.Builder> deleteSourceServerRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deletes a single Source Server by ID. The Source Server must be disconnected first.
This is a convenience which creates an instance of the
DeleteSourceServerRequest.Builderavoiding the need to create one manually viaDeleteSourceServerRequest.builder()- Parameters:
deleteSourceServerRequest- AConsumerthat will call methods onDeleteSourceServerRequest.Builderto create a request.- Returns:
- Result of the DeleteSourceServer operation returned by the service.
- See Also:
-
describeJobLogItems
default DescribeJobLogItemsResponse describeJobLogItems(DescribeJobLogItemsRequest describeJobLogItemsRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Retrieves a detailed Job log with pagination.
- Parameters:
describeJobLogItemsRequest-- Returns:
- Result of the DescribeJobLogItems operation returned by the service.
- See Also:
-
describeJobLogItems
default DescribeJobLogItemsResponse describeJobLogItems(Consumer<DescribeJobLogItemsRequest.Builder> describeJobLogItemsRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Retrieves a detailed Job log with pagination.
This is a convenience which creates an instance of the
DescribeJobLogItemsRequest.Builderavoiding the need to create one manually viaDescribeJobLogItemsRequest.builder()- Parameters:
describeJobLogItemsRequest- AConsumerthat will call methods onDescribeJobLogItemsRequest.Builderto create a request.- Returns:
- Result of the DescribeJobLogItems operation returned by the service.
- See Also:
-
describeJobLogItemsPaginator
default DescribeJobLogItemsIterable describeJobLogItemsPaginator(DescribeJobLogItemsRequest describeJobLogItemsRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeJobLogItems(software.amazon.awssdk.services.drs.model.DescribeJobLogItemsRequest)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.drs.paginators.DescribeJobLogItemsIterable responses = client.describeJobLogItemsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeJobLogItemsIterable responses = client .describeJobLogItemsPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeJobLogItemsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeJobLogItemsIterable responses = client.describeJobLogItemsPaginator(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
describeJobLogItems(software.amazon.awssdk.services.drs.model.DescribeJobLogItemsRequest)operation.- Parameters:
describeJobLogItemsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeJobLogItemsPaginator
default DescribeJobLogItemsIterable describeJobLogItemsPaginator(Consumer<DescribeJobLogItemsRequest.Builder> describeJobLogItemsRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeJobLogItems(software.amazon.awssdk.services.drs.model.DescribeJobLogItemsRequest)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.drs.paginators.DescribeJobLogItemsIterable responses = client.describeJobLogItemsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeJobLogItemsIterable responses = client .describeJobLogItemsPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeJobLogItemsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeJobLogItemsIterable responses = client.describeJobLogItemsPaginator(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
describeJobLogItems(software.amazon.awssdk.services.drs.model.DescribeJobLogItemsRequest)operation.
This is a convenience which creates an instance of the
DescribeJobLogItemsRequest.Builderavoiding the need to create one manually viaDescribeJobLogItemsRequest.builder()- Parameters:
describeJobLogItemsRequest- AConsumerthat will call methods onDescribeJobLogItemsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeJobs
default DescribeJobsResponse describeJobs(DescribeJobsRequest describeJobsRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Returns a list of Jobs. Use the JobsID and fromDate and toDate filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are created by the StartRecovery, TerminateRecoveryInstances and StartFailbackLaunch APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to *Support* and only used in response to relevant support tickets.
- Parameters:
describeJobsRequest-- Returns:
- Result of the DescribeJobs operation returned by the service.
- See Also:
-
describeJobs
default DescribeJobsResponse describeJobs(Consumer<DescribeJobsRequest.Builder> describeJobsRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Returns a list of Jobs. Use the JobsID and fromDate and toDate filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are created by the StartRecovery, TerminateRecoveryInstances and StartFailbackLaunch APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to *Support* and only used in response to relevant support tickets.
This is a convenience which creates an instance of the
DescribeJobsRequest.Builderavoiding the need to create one manually viaDescribeJobsRequest.builder()- Parameters:
describeJobsRequest- AConsumerthat will call methods onDescribeJobsRequest.Builderto create a request.- Returns:
- Result of the DescribeJobs operation returned by the service.
- See Also:
-
describeJobsPaginator
default DescribeJobsIterable describeJobsPaginator(DescribeJobsRequest describeJobsRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeJobs(software.amazon.awssdk.services.drs.model.DescribeJobsRequest)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.drs.paginators.DescribeJobsIterable responses = client.describeJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeJobsIterable responses = client.describeJobsPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeJobsIterable responses = client.describeJobsPaginator(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
describeJobs(software.amazon.awssdk.services.drs.model.DescribeJobsRequest)operation.- Parameters:
describeJobsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeJobsPaginator
default DescribeJobsIterable describeJobsPaginator(Consumer<DescribeJobsRequest.Builder> describeJobsRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeJobs(software.amazon.awssdk.services.drs.model.DescribeJobsRequest)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.drs.paginators.DescribeJobsIterable responses = client.describeJobsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeJobsIterable responses = client.describeJobsPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeJobsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeJobsIterable responses = client.describeJobsPaginator(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
describeJobs(software.amazon.awssdk.services.drs.model.DescribeJobsRequest)operation.
This is a convenience which creates an instance of the
DescribeJobsRequest.Builderavoiding the need to create one manually viaDescribeJobsRequest.builder()- Parameters:
describeJobsRequest- AConsumerthat will call methods onDescribeJobsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeLaunchConfigurationTemplates
default DescribeLaunchConfigurationTemplatesResponse describeLaunchConfigurationTemplates(DescribeLaunchConfigurationTemplatesRequest describeLaunchConfigurationTemplatesRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all Launch Configuration Templates, filtered by Launch Configuration Template IDs
- Parameters:
describeLaunchConfigurationTemplatesRequest-- Returns:
- Result of the DescribeLaunchConfigurationTemplates operation returned by the service.
- See Also:
-
describeLaunchConfigurationTemplates
default DescribeLaunchConfigurationTemplatesResponse describeLaunchConfigurationTemplates(Consumer<DescribeLaunchConfigurationTemplatesRequest.Builder> describeLaunchConfigurationTemplatesRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all Launch Configuration Templates, filtered by Launch Configuration Template IDs
This is a convenience which creates an instance of the
DescribeLaunchConfigurationTemplatesRequest.Builderavoiding the need to create one manually viaDescribeLaunchConfigurationTemplatesRequest.builder()- Parameters:
describeLaunchConfigurationTemplatesRequest- AConsumerthat will call methods onDescribeLaunchConfigurationTemplatesRequest.Builderto create a request.- Returns:
- Result of the DescribeLaunchConfigurationTemplates operation returned by the service.
- See Also:
-
describeLaunchConfigurationTemplatesPaginator
default DescribeLaunchConfigurationTemplatesIterable describeLaunchConfigurationTemplatesPaginator(DescribeLaunchConfigurationTemplatesRequest describeLaunchConfigurationTemplatesRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeLaunchConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesRequest)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.drs.paginators.DescribeLaunchConfigurationTemplatesIterable responses = client.describeLaunchConfigurationTemplatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeLaunchConfigurationTemplatesIterable responses = client .describeLaunchConfigurationTemplatesPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeLaunchConfigurationTemplatesIterable responses = client.describeLaunchConfigurationTemplatesPaginator(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
describeLaunchConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesRequest)operation.- Parameters:
describeLaunchConfigurationTemplatesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeLaunchConfigurationTemplatesPaginator
default DescribeLaunchConfigurationTemplatesIterable describeLaunchConfigurationTemplatesPaginator(Consumer<DescribeLaunchConfigurationTemplatesRequest.Builder> describeLaunchConfigurationTemplatesRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeLaunchConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesRequest)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.drs.paginators.DescribeLaunchConfigurationTemplatesIterable responses = client.describeLaunchConfigurationTemplatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeLaunchConfigurationTemplatesIterable responses = client .describeLaunchConfigurationTemplatesPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeLaunchConfigurationTemplatesIterable responses = client.describeLaunchConfigurationTemplatesPaginator(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
describeLaunchConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeLaunchConfigurationTemplatesRequest)operation.
This is a convenience which creates an instance of the
DescribeLaunchConfigurationTemplatesRequest.Builderavoiding the need to create one manually viaDescribeLaunchConfigurationTemplatesRequest.builder()- Parameters:
describeLaunchConfigurationTemplatesRequest- AConsumerthat will call methods onDescribeLaunchConfigurationTemplatesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeRecoveryInstances
default DescribeRecoveryInstancesResponse describeRecoveryInstances(DescribeRecoveryInstancesRequest describeRecoveryInstancesRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all Recovery Instances or multiple Recovery Instances by ID.
- Parameters:
describeRecoveryInstancesRequest-- Returns:
- Result of the DescribeRecoveryInstances operation returned by the service.
- See Also:
-
describeRecoveryInstances
default DescribeRecoveryInstancesResponse describeRecoveryInstances(Consumer<DescribeRecoveryInstancesRequest.Builder> describeRecoveryInstancesRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all Recovery Instances or multiple Recovery Instances by ID.
This is a convenience which creates an instance of the
DescribeRecoveryInstancesRequest.Builderavoiding the need to create one manually viaDescribeRecoveryInstancesRequest.builder()- Parameters:
describeRecoveryInstancesRequest- AConsumerthat will call methods onDescribeRecoveryInstancesRequest.Builderto create a request.- Returns:
- Result of the DescribeRecoveryInstances operation returned by the service.
- See Also:
-
describeRecoveryInstancesPaginator
default DescribeRecoveryInstancesIterable describeRecoveryInstancesPaginator(DescribeRecoveryInstancesRequest describeRecoveryInstancesRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeRecoveryInstances(software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesRequest)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.drs.paginators.DescribeRecoveryInstancesIterable responses = client.describeRecoveryInstancesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeRecoveryInstancesIterable responses = client .describeRecoveryInstancesPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeRecoveryInstancesIterable responses = client.describeRecoveryInstancesPaginator(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
describeRecoveryInstances(software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesRequest)operation.- Parameters:
describeRecoveryInstancesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeRecoveryInstancesPaginator
default DescribeRecoveryInstancesIterable describeRecoveryInstancesPaginator(Consumer<DescribeRecoveryInstancesRequest.Builder> describeRecoveryInstancesRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeRecoveryInstances(software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesRequest)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.drs.paginators.DescribeRecoveryInstancesIterable responses = client.describeRecoveryInstancesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeRecoveryInstancesIterable responses = client .describeRecoveryInstancesPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeRecoveryInstancesIterable responses = client.describeRecoveryInstancesPaginator(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
describeRecoveryInstances(software.amazon.awssdk.services.drs.model.DescribeRecoveryInstancesRequest)operation.
This is a convenience which creates an instance of the
DescribeRecoveryInstancesRequest.Builderavoiding the need to create one manually viaDescribeRecoveryInstancesRequest.builder()- Parameters:
describeRecoveryInstancesRequest- AConsumerthat will call methods onDescribeRecoveryInstancesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeRecoverySnapshots
default DescribeRecoverySnapshotsResponse describeRecoverySnapshots(DescribeRecoverySnapshotsRequest describeRecoverySnapshotsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all Recovery Snapshots for a single Source Server.
- Parameters:
describeRecoverySnapshotsRequest-- Returns:
- Result of the DescribeRecoverySnapshots operation returned by the service.
- See Also:
-
describeRecoverySnapshots
default DescribeRecoverySnapshotsResponse describeRecoverySnapshots(Consumer<DescribeRecoverySnapshotsRequest.Builder> describeRecoverySnapshotsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all Recovery Snapshots for a single Source Server.
This is a convenience which creates an instance of the
DescribeRecoverySnapshotsRequest.Builderavoiding the need to create one manually viaDescribeRecoverySnapshotsRequest.builder()- Parameters:
describeRecoverySnapshotsRequest- AConsumerthat will call methods onDescribeRecoverySnapshotsRequest.Builderto create a request.- Returns:
- Result of the DescribeRecoverySnapshots operation returned by the service.
- See Also:
-
describeRecoverySnapshotsPaginator
default DescribeRecoverySnapshotsIterable describeRecoverySnapshotsPaginator(DescribeRecoverySnapshotsRequest describeRecoverySnapshotsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeRecoverySnapshots(software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsRequest)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.drs.paginators.DescribeRecoverySnapshotsIterable responses = client.describeRecoverySnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeRecoverySnapshotsIterable responses = client .describeRecoverySnapshotsPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeRecoverySnapshotsIterable responses = client.describeRecoverySnapshotsPaginator(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
describeRecoverySnapshots(software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsRequest)operation.- Parameters:
describeRecoverySnapshotsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeRecoverySnapshotsPaginator
default DescribeRecoverySnapshotsIterable describeRecoverySnapshotsPaginator(Consumer<DescribeRecoverySnapshotsRequest.Builder> describeRecoverySnapshotsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeRecoverySnapshots(software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsRequest)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.drs.paginators.DescribeRecoverySnapshotsIterable responses = client.describeRecoverySnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeRecoverySnapshotsIterable responses = client .describeRecoverySnapshotsPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeRecoverySnapshotsIterable responses = client.describeRecoverySnapshotsPaginator(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
describeRecoverySnapshots(software.amazon.awssdk.services.drs.model.DescribeRecoverySnapshotsRequest)operation.
This is a convenience which creates an instance of the
DescribeRecoverySnapshotsRequest.Builderavoiding the need to create one manually viaDescribeRecoverySnapshotsRequest.builder()- Parameters:
describeRecoverySnapshotsRequest- AConsumerthat will call methods onDescribeRecoverySnapshotsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeReplicationConfigurationTemplates
default DescribeReplicationConfigurationTemplatesResponse describeReplicationConfigurationTemplates(DescribeReplicationConfigurationTemplatesRequest describeReplicationConfigurationTemplatesRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.
- Parameters:
describeReplicationConfigurationTemplatesRequest-- Returns:
- Result of the DescribeReplicationConfigurationTemplates operation returned by the service.
- See Also:
-
describeReplicationConfigurationTemplates
default DescribeReplicationConfigurationTemplatesResponse describeReplicationConfigurationTemplates(Consumer<DescribeReplicationConfigurationTemplatesRequest.Builder> describeReplicationConfigurationTemplatesRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.
This is a convenience which creates an instance of the
DescribeReplicationConfigurationTemplatesRequest.Builderavoiding the need to create one manually viaDescribeReplicationConfigurationTemplatesRequest.builder()- Parameters:
describeReplicationConfigurationTemplatesRequest- AConsumerthat will call methods onDescribeReplicationConfigurationTemplatesRequest.Builderto create a request.- Returns:
- Result of the DescribeReplicationConfigurationTemplates operation returned by the service.
- See Also:
-
describeReplicationConfigurationTemplatesPaginator
default DescribeReplicationConfigurationTemplatesIterable describeReplicationConfigurationTemplatesPaginator(DescribeReplicationConfigurationTemplatesRequest describeReplicationConfigurationTemplatesRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeReplicationConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesRequest)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.drs.paginators.DescribeReplicationConfigurationTemplatesIterable responses = client.describeReplicationConfigurationTemplatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeReplicationConfigurationTemplatesIterable responses = client .describeReplicationConfigurationTemplatesPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeReplicationConfigurationTemplatesIterable responses = client.describeReplicationConfigurationTemplatesPaginator(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
describeReplicationConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesRequest)operation.- Parameters:
describeReplicationConfigurationTemplatesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeReplicationConfigurationTemplatesPaginator
default DescribeReplicationConfigurationTemplatesIterable describeReplicationConfigurationTemplatesPaginator(Consumer<DescribeReplicationConfigurationTemplatesRequest.Builder> describeReplicationConfigurationTemplatesRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeReplicationConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesRequest)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.drs.paginators.DescribeReplicationConfigurationTemplatesIterable responses = client.describeReplicationConfigurationTemplatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeReplicationConfigurationTemplatesIterable responses = client .describeReplicationConfigurationTemplatesPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeReplicationConfigurationTemplatesIterable responses = client.describeReplicationConfigurationTemplatesPaginator(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
describeReplicationConfigurationTemplates(software.amazon.awssdk.services.drs.model.DescribeReplicationConfigurationTemplatesRequest)operation.
This is a convenience which creates an instance of the
DescribeReplicationConfigurationTemplatesRequest.Builderavoiding the need to create one manually viaDescribeReplicationConfigurationTemplatesRequest.builder()- Parameters:
describeReplicationConfigurationTemplatesRequest- AConsumerthat will call methods onDescribeReplicationConfigurationTemplatesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeSourceNetworks
default DescribeSourceNetworksResponse describeSourceNetworks(DescribeSourceNetworksRequest describeSourceNetworksRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all Source Networks or multiple Source Networks filtered by ID.
- Parameters:
describeSourceNetworksRequest-- Returns:
- Result of the DescribeSourceNetworks operation returned by the service.
- See Also:
-
describeSourceNetworks
default DescribeSourceNetworksResponse describeSourceNetworks(Consumer<DescribeSourceNetworksRequest.Builder> describeSourceNetworksRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all Source Networks or multiple Source Networks filtered by ID.
This is a convenience which creates an instance of the
DescribeSourceNetworksRequest.Builderavoiding the need to create one manually viaDescribeSourceNetworksRequest.builder()- Parameters:
describeSourceNetworksRequest- AConsumerthat will call methods onDescribeSourceNetworksRequest.Builderto create a request.- Returns:
- Result of the DescribeSourceNetworks operation returned by the service.
- See Also:
-
describeSourceNetworksPaginator
default DescribeSourceNetworksIterable describeSourceNetworksPaginator(DescribeSourceNetworksRequest describeSourceNetworksRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeSourceNetworks(software.amazon.awssdk.services.drs.model.DescribeSourceNetworksRequest)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.drs.paginators.DescribeSourceNetworksIterable responses = client.describeSourceNetworksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeSourceNetworksIterable responses = client .describeSourceNetworksPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeSourceNetworksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeSourceNetworksIterable responses = client.describeSourceNetworksPaginator(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
describeSourceNetworks(software.amazon.awssdk.services.drs.model.DescribeSourceNetworksRequest)operation.- Parameters:
describeSourceNetworksRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeSourceNetworksPaginator
default DescribeSourceNetworksIterable describeSourceNetworksPaginator(Consumer<DescribeSourceNetworksRequest.Builder> describeSourceNetworksRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeSourceNetworks(software.amazon.awssdk.services.drs.model.DescribeSourceNetworksRequest)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.drs.paginators.DescribeSourceNetworksIterable responses = client.describeSourceNetworksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeSourceNetworksIterable responses = client .describeSourceNetworksPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeSourceNetworksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeSourceNetworksIterable responses = client.describeSourceNetworksPaginator(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
describeSourceNetworks(software.amazon.awssdk.services.drs.model.DescribeSourceNetworksRequest)operation.
This is a convenience which creates an instance of the
DescribeSourceNetworksRequest.Builderavoiding the need to create one manually viaDescribeSourceNetworksRequest.builder()- Parameters:
describeSourceNetworksRequest- AConsumerthat will call methods onDescribeSourceNetworksRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeSourceServers
default DescribeSourceServersResponse describeSourceServers(DescribeSourceServersRequest describeSourceServersRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all Source Servers or multiple Source Servers filtered by ID.
- Parameters:
describeSourceServersRequest-- Returns:
- Result of the DescribeSourceServers operation returned by the service.
- See Also:
-
describeSourceServers
default DescribeSourceServersResponse describeSourceServers(Consumer<DescribeSourceServersRequest.Builder> describeSourceServersRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all Source Servers or multiple Source Servers filtered by ID.
This is a convenience which creates an instance of the
DescribeSourceServersRequest.Builderavoiding the need to create one manually viaDescribeSourceServersRequest.builder()- Parameters:
describeSourceServersRequest- AConsumerthat will call methods onDescribeSourceServersRequest.Builderto create a request.- Returns:
- Result of the DescribeSourceServers operation returned by the service.
- See Also:
-
describeSourceServersPaginator
default DescribeSourceServersIterable describeSourceServersPaginator(DescribeSourceServersRequest describeSourceServersRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeSourceServers(software.amazon.awssdk.services.drs.model.DescribeSourceServersRequest)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.drs.paginators.DescribeSourceServersIterable responses = client.describeSourceServersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeSourceServersIterable responses = client .describeSourceServersPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeSourceServersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeSourceServersIterable responses = client.describeSourceServersPaginator(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
describeSourceServers(software.amazon.awssdk.services.drs.model.DescribeSourceServersRequest)operation.- Parameters:
describeSourceServersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeSourceServersPaginator
default DescribeSourceServersIterable describeSourceServersPaginator(Consumer<DescribeSourceServersRequest.Builder> describeSourceServersRequest) throws InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
describeSourceServers(software.amazon.awssdk.services.drs.model.DescribeSourceServersRequest)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.drs.paginators.DescribeSourceServersIterable responses = client.describeSourceServersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.DescribeSourceServersIterable responses = client .describeSourceServersPaginator(request); for (software.amazon.awssdk.services.drs.model.DescribeSourceServersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.DescribeSourceServersIterable responses = client.describeSourceServersPaginator(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
describeSourceServers(software.amazon.awssdk.services.drs.model.DescribeSourceServersRequest)operation.
This is a convenience which creates an instance of the
DescribeSourceServersRequest.Builderavoiding the need to create one manually viaDescribeSourceServersRequest.builder()- Parameters:
describeSourceServersRequest- AConsumerthat will call methods onDescribeSourceServersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
disconnectRecoveryInstance
default DisconnectRecoveryInstanceResponse disconnectRecoveryInstance(DisconnectRecoveryInstanceRequest disconnectRecoveryInstanceRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, AccessDeniedException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Disconnect a Recovery Instance from Elastic Disaster Recovery. Data replication is stopped immediately. All AWS resources created by Elastic Disaster Recovery for enabling the replication of the Recovery Instance will be terminated / deleted within 90 minutes. If the agent on the Recovery Instance has not been prevented from communicating with the Elastic Disaster Recovery service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the Recovery Instance will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.
- Parameters:
disconnectRecoveryInstanceRequest-- Returns:
- Result of the DisconnectRecoveryInstance operation returned by the service.
- See Also:
-
disconnectRecoveryInstance
default DisconnectRecoveryInstanceResponse disconnectRecoveryInstance(Consumer<DisconnectRecoveryInstanceRequest.Builder> disconnectRecoveryInstanceRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, AccessDeniedException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Disconnect a Recovery Instance from Elastic Disaster Recovery. Data replication is stopped immediately. All AWS resources created by Elastic Disaster Recovery for enabling the replication of the Recovery Instance will be terminated / deleted within 90 minutes. If the agent on the Recovery Instance has not been prevented from communicating with the Elastic Disaster Recovery service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the Recovery Instance will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.
This is a convenience which creates an instance of the
DisconnectRecoveryInstanceRequest.Builderavoiding the need to create one manually viaDisconnectRecoveryInstanceRequest.builder()- Parameters:
disconnectRecoveryInstanceRequest- AConsumerthat will call methods onDisconnectRecoveryInstanceRequest.Builderto create a request.- Returns:
- Result of the DisconnectRecoveryInstance operation returned by the service.
- See Also:
-
disconnectSourceServer
default DisconnectSourceServerResponse disconnectSourceServer(DisconnectSourceServerRequest disconnectSourceServerRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Disconnects a specific Source Server from Elastic Disaster Recovery. Data replication is stopped immediately. All AWS resources created by Elastic Disaster Recovery for enabling the replication of the Source Server will be terminated / deleted within 90 minutes. You cannot disconnect a Source Server if it has a Recovery Instance. If the agent on the Source Server has not been prevented from communicating with the Elastic Disaster Recovery service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.
- Parameters:
disconnectSourceServerRequest-- Returns:
- Result of the DisconnectSourceServer operation returned by the service.
- See Also:
-
disconnectSourceServer
default DisconnectSourceServerResponse disconnectSourceServer(Consumer<DisconnectSourceServerRequest.Builder> disconnectSourceServerRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Disconnects a specific Source Server from Elastic Disaster Recovery. Data replication is stopped immediately. All AWS resources created by Elastic Disaster Recovery for enabling the replication of the Source Server will be terminated / deleted within 90 minutes. You cannot disconnect a Source Server if it has a Recovery Instance. If the agent on the Source Server has not been prevented from communicating with the Elastic Disaster Recovery service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.
This is a convenience which creates an instance of the
DisconnectSourceServerRequest.Builderavoiding the need to create one manually viaDisconnectSourceServerRequest.builder()- Parameters:
disconnectSourceServerRequest- AConsumerthat will call methods onDisconnectSourceServerRequest.Builderto create a request.- Returns:
- Result of the DisconnectSourceServer operation returned by the service.
- See Also:
-
exportSourceNetworkCfnTemplate
default ExportSourceNetworkCfnTemplateResponse exportSourceNetworkCfnTemplate(ExportSourceNetworkCfnTemplateRequest exportSourceNetworkCfnTemplateRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Export the Source Network CloudFormation template to an S3 bucket.
- Parameters:
exportSourceNetworkCfnTemplateRequest-- Returns:
- Result of the ExportSourceNetworkCfnTemplate operation returned by the service.
- See Also:
-
exportSourceNetworkCfnTemplate
default ExportSourceNetworkCfnTemplateResponse exportSourceNetworkCfnTemplate(Consumer<ExportSourceNetworkCfnTemplateRequest.Builder> exportSourceNetworkCfnTemplateRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Export the Source Network CloudFormation template to an S3 bucket.
This is a convenience which creates an instance of the
ExportSourceNetworkCfnTemplateRequest.Builderavoiding the need to create one manually viaExportSourceNetworkCfnTemplateRequest.builder()- Parameters:
exportSourceNetworkCfnTemplateRequest- AConsumerthat will call methods onExportSourceNetworkCfnTemplateRequest.Builderto create a request.- Returns:
- Result of the ExportSourceNetworkCfnTemplate operation returned by the service.
- See Also:
-
getFailbackReplicationConfiguration
default GetFailbackReplicationConfigurationResponse getFailbackReplicationConfiguration(GetFailbackReplicationConfigurationRequest getFailbackReplicationConfigurationRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all Failback ReplicationConfigurations, filtered by Recovery Instance ID.
- Parameters:
getFailbackReplicationConfigurationRequest-- Returns:
- Result of the GetFailbackReplicationConfiguration operation returned by the service.
- See Also:
-
getFailbackReplicationConfiguration
default GetFailbackReplicationConfigurationResponse getFailbackReplicationConfiguration(Consumer<GetFailbackReplicationConfigurationRequest.Builder> getFailbackReplicationConfigurationRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists all Failback ReplicationConfigurations, filtered by Recovery Instance ID.
This is a convenience which creates an instance of the
GetFailbackReplicationConfigurationRequest.Builderavoiding the need to create one manually viaGetFailbackReplicationConfigurationRequest.builder()- Parameters:
getFailbackReplicationConfigurationRequest- AConsumerthat will call methods onGetFailbackReplicationConfigurationRequest.Builderto create a request.- Returns:
- Result of the GetFailbackReplicationConfiguration operation returned by the service.
- See Also:
-
getLaunchConfiguration
default GetLaunchConfigurationResponse getLaunchConfiguration(GetLaunchConfigurationRequest getLaunchConfigurationRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Gets a LaunchConfiguration, filtered by Source Server IDs.
- Parameters:
getLaunchConfigurationRequest-- Returns:
- Result of the GetLaunchConfiguration operation returned by the service.
- See Also:
-
getLaunchConfiguration
default GetLaunchConfigurationResponse getLaunchConfiguration(Consumer<GetLaunchConfigurationRequest.Builder> getLaunchConfigurationRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Gets a LaunchConfiguration, filtered by Source Server IDs.
This is a convenience which creates an instance of the
GetLaunchConfigurationRequest.Builderavoiding the need to create one manually viaGetLaunchConfigurationRequest.builder()- Parameters:
getLaunchConfigurationRequest- AConsumerthat will call methods onGetLaunchConfigurationRequest.Builderto create a request.- Returns:
- Result of the GetLaunchConfiguration operation returned by the service.
- See Also:
-
getReplicationConfiguration
default GetReplicationConfigurationResponse getReplicationConfiguration(GetReplicationConfigurationRequest getReplicationConfigurationRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, AccessDeniedException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Gets a ReplicationConfiguration, filtered by Source Server ID.
- Parameters:
getReplicationConfigurationRequest-- Returns:
- Result of the GetReplicationConfiguration operation returned by the service.
- See Also:
-
getReplicationConfiguration
default GetReplicationConfigurationResponse getReplicationConfiguration(Consumer<GetReplicationConfigurationRequest.Builder> getReplicationConfigurationRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, AccessDeniedException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Gets a ReplicationConfiguration, filtered by Source Server ID.
This is a convenience which creates an instance of the
GetReplicationConfigurationRequest.Builderavoiding the need to create one manually viaGetReplicationConfigurationRequest.builder()- Parameters:
getReplicationConfigurationRequest- AConsumerthat will call methods onGetReplicationConfigurationRequest.Builderto create a request.- Returns:
- Result of the GetReplicationConfiguration operation returned by the service.
- See Also:
-
initializeService
default InitializeServiceResponse initializeService(InitializeServiceRequest initializeServiceRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, DrsException Initialize Elastic Disaster Recovery.
- Parameters:
initializeServiceRequest-- Returns:
- Result of the InitializeService operation returned by the service.
- See Also:
-
initializeService
default InitializeServiceResponse initializeService(Consumer<InitializeServiceRequest.Builder> initializeServiceRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, DrsException Initialize Elastic Disaster Recovery.
This is a convenience which creates an instance of the
InitializeServiceRequest.Builderavoiding the need to create one manually viaInitializeServiceRequest.builder()- Parameters:
initializeServiceRequest- AConsumerthat will call methods onInitializeServiceRequest.Builderto create a request.- Returns:
- Result of the InitializeService operation returned by the service.
- See Also:
-
listExtensibleSourceServers
default ListExtensibleSourceServersResponse listExtensibleSourceServers(ListExtensibleSourceServersRequest listExtensibleSourceServersRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Returns a list of source servers on a staging account that are extensible, which means that: a. The source server is not already extended into this Account. b. The source server on the Account we’re reading from is not an extension of another source server.
- Parameters:
listExtensibleSourceServersRequest-- Returns:
- Result of the ListExtensibleSourceServers operation returned by the service.
- See Also:
-
listExtensibleSourceServers
default ListExtensibleSourceServersResponse listExtensibleSourceServers(Consumer<ListExtensibleSourceServersRequest.Builder> listExtensibleSourceServersRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Returns a list of source servers on a staging account that are extensible, which means that: a. The source server is not already extended into this Account. b. The source server on the Account we’re reading from is not an extension of another source server.
This is a convenience which creates an instance of the
ListExtensibleSourceServersRequest.Builderavoiding the need to create one manually viaListExtensibleSourceServersRequest.builder()- Parameters:
listExtensibleSourceServersRequest- AConsumerthat will call methods onListExtensibleSourceServersRequest.Builderto create a request.- Returns:
- Result of the ListExtensibleSourceServers operation returned by the service.
- See Also:
-
listExtensibleSourceServersPaginator
default ListExtensibleSourceServersIterable listExtensibleSourceServersPaginator(ListExtensibleSourceServersRequest listExtensibleSourceServersRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
listExtensibleSourceServers(software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersRequest)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.drs.paginators.ListExtensibleSourceServersIterable responses = client.listExtensibleSourceServersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.ListExtensibleSourceServersIterable responses = client .listExtensibleSourceServersPaginator(request); for (software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.ListExtensibleSourceServersIterable responses = client.listExtensibleSourceServersPaginator(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
listExtensibleSourceServers(software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersRequest)operation.- Parameters:
listExtensibleSourceServersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listExtensibleSourceServersPaginator
default ListExtensibleSourceServersIterable listExtensibleSourceServersPaginator(Consumer<ListExtensibleSourceServersRequest.Builder> listExtensibleSourceServersRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
listExtensibleSourceServers(software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersRequest)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.drs.paginators.ListExtensibleSourceServersIterable responses = client.listExtensibleSourceServersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.ListExtensibleSourceServersIterable responses = client .listExtensibleSourceServersPaginator(request); for (software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.ListExtensibleSourceServersIterable responses = client.listExtensibleSourceServersPaginator(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
listExtensibleSourceServers(software.amazon.awssdk.services.drs.model.ListExtensibleSourceServersRequest)operation.
This is a convenience which creates an instance of the
ListExtensibleSourceServersRequest.Builderavoiding the need to create one manually viaListExtensibleSourceServersRequest.builder()- Parameters:
listExtensibleSourceServersRequest- AConsumerthat will call methods onListExtensibleSourceServersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listLaunchActions
default ListLaunchActionsResponse listLaunchActions(ListLaunchActionsRequest listLaunchActionsRequest) throws ResourceNotFoundException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists resource launch actions.
- Parameters:
listLaunchActionsRequest-- Returns:
- Result of the ListLaunchActions operation returned by the service.
- See Also:
-
listLaunchActions
default ListLaunchActionsResponse listLaunchActions(Consumer<ListLaunchActionsRequest.Builder> listLaunchActionsRequest) throws ResourceNotFoundException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Lists resource launch actions.
This is a convenience which creates an instance of the
ListLaunchActionsRequest.Builderavoiding the need to create one manually viaListLaunchActionsRequest.builder()- Parameters:
listLaunchActionsRequest- AConsumerthat will call methods onListLaunchActionsRequest.Builderto create a request.- Returns:
- Result of the ListLaunchActions operation returned by the service.
- See Also:
-
listLaunchActionsPaginator
default ListLaunchActionsIterable listLaunchActionsPaginator(ListLaunchActionsRequest listLaunchActionsRequest) throws ResourceNotFoundException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
listLaunchActions(software.amazon.awssdk.services.drs.model.ListLaunchActionsRequest)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.drs.paginators.ListLaunchActionsIterable responses = client.listLaunchActionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.ListLaunchActionsIterable responses = client .listLaunchActionsPaginator(request); for (software.amazon.awssdk.services.drs.model.ListLaunchActionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.ListLaunchActionsIterable responses = client.listLaunchActionsPaginator(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
listLaunchActions(software.amazon.awssdk.services.drs.model.ListLaunchActionsRequest)operation.- Parameters:
listLaunchActionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listLaunchActionsPaginator
default ListLaunchActionsIterable listLaunchActionsPaginator(Consumer<ListLaunchActionsRequest.Builder> listLaunchActionsRequest) throws ResourceNotFoundException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
listLaunchActions(software.amazon.awssdk.services.drs.model.ListLaunchActionsRequest)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.drs.paginators.ListLaunchActionsIterable responses = client.listLaunchActionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.ListLaunchActionsIterable responses = client .listLaunchActionsPaginator(request); for (software.amazon.awssdk.services.drs.model.ListLaunchActionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.ListLaunchActionsIterable responses = client.listLaunchActionsPaginator(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
listLaunchActions(software.amazon.awssdk.services.drs.model.ListLaunchActionsRequest)operation.
This is a convenience which creates an instance of the
ListLaunchActionsRequest.Builderavoiding the need to create one manually viaListLaunchActionsRequest.builder()- Parameters:
listLaunchActionsRequest- AConsumerthat will call methods onListLaunchActionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listStagingAccounts
default ListStagingAccountsResponse listStagingAccounts(ListStagingAccountsRequest listStagingAccountsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Returns an array of staging accounts for existing extended source servers.
- Parameters:
listStagingAccountsRequest-- Returns:
- Result of the ListStagingAccounts operation returned by the service.
- See Also:
-
listStagingAccounts
default ListStagingAccountsResponse listStagingAccounts(Consumer<ListStagingAccountsRequest.Builder> listStagingAccountsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Returns an array of staging accounts for existing extended source servers.
This is a convenience which creates an instance of the
ListStagingAccountsRequest.Builderavoiding the need to create one manually viaListStagingAccountsRequest.builder()- Parameters:
listStagingAccountsRequest- AConsumerthat will call methods onListStagingAccountsRequest.Builderto create a request.- Returns:
- Result of the ListStagingAccounts operation returned by the service.
- See Also:
-
listStagingAccountsPaginator
default ListStagingAccountsIterable listStagingAccountsPaginator(ListStagingAccountsRequest listStagingAccountsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
listStagingAccounts(software.amazon.awssdk.services.drs.model.ListStagingAccountsRequest)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.drs.paginators.ListStagingAccountsIterable responses = client.listStagingAccountsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.ListStagingAccountsIterable responses = client .listStagingAccountsPaginator(request); for (software.amazon.awssdk.services.drs.model.ListStagingAccountsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.ListStagingAccountsIterable responses = client.listStagingAccountsPaginator(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
listStagingAccounts(software.amazon.awssdk.services.drs.model.ListStagingAccountsRequest)operation.- Parameters:
listStagingAccountsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listStagingAccountsPaginator
default ListStagingAccountsIterable listStagingAccountsPaginator(Consumer<ListStagingAccountsRequest.Builder> listStagingAccountsRequest) throws InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException This is a variant of
listStagingAccounts(software.amazon.awssdk.services.drs.model.ListStagingAccountsRequest)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.drs.paginators.ListStagingAccountsIterable responses = client.listStagingAccountsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.drs.paginators.ListStagingAccountsIterable responses = client .listStagingAccountsPaginator(request); for (software.amazon.awssdk.services.drs.model.ListStagingAccountsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.drs.paginators.ListStagingAccountsIterable responses = client.listStagingAccountsPaginator(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
listStagingAccounts(software.amazon.awssdk.services.drs.model.ListStagingAccountsRequest)operation.
This is a convenience which creates an instance of the
ListStagingAccountsRequest.Builderavoiding the need to create one manually viaListStagingAccountsRequest.builder()- Parameters:
listStagingAccountsRequest- AConsumerthat will call methods onListStagingAccountsRequest.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, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, DrsException List all tags for your Elastic Disaster Recovery resources.
- 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, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, DrsException List all tags for your Elastic Disaster Recovery resources.
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:
-
putLaunchAction
default PutLaunchActionResponse putLaunchAction(PutLaunchActionRequest putLaunchActionRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Puts a resource launch action.
- Parameters:
putLaunchActionRequest-- Returns:
- Result of the PutLaunchAction operation returned by the service.
- See Also:
-
putLaunchAction
default PutLaunchActionResponse putLaunchAction(Consumer<PutLaunchActionRequest.Builder> putLaunchActionRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Puts a resource launch action.
This is a convenience which creates an instance of the
PutLaunchActionRequest.Builderavoiding the need to create one manually viaPutLaunchActionRequest.builder()- Parameters:
putLaunchActionRequest- AConsumerthat will call methods onPutLaunchActionRequest.Builderto create a request.- Returns:
- Result of the PutLaunchAction operation returned by the service.
- See Also:
-
retryDataReplication
@Deprecated default RetryDataReplicationResponse retryDataReplication(RetryDataReplicationRequest retryDataReplicationRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deprecated.WARNING: RetryDataReplication is deprecatedWARNING: RetryDataReplication is deprecated. Causes the data replication initiation sequence to begin immediately upon next Handshake for the specified Source Server ID, regardless of when the previous initiation started. This command will work only if the Source Server is stalled or is in a DISCONNECTED or STOPPED state.
- Parameters:
retryDataReplicationRequest-- Returns:
- Result of the RetryDataReplication operation returned by the service.
- See Also:
-
retryDataReplication
@Deprecated default RetryDataReplicationResponse retryDataReplication(Consumer<RetryDataReplicationRequest.Builder> retryDataReplicationRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deprecated.WARNING: RetryDataReplication is deprecatedWARNING: RetryDataReplication is deprecated. Causes the data replication initiation sequence to begin immediately upon next Handshake for the specified Source Server ID, regardless of when the previous initiation started. This command will work only if the Source Server is stalled or is in a DISCONNECTED or STOPPED state.
This is a convenience which creates an instance of the
RetryDataReplicationRequest.Builderavoiding the need to create one manually viaRetryDataReplicationRequest.builder()- Parameters:
retryDataReplicationRequest- AConsumerthat will call methods onRetryDataReplicationRequest.Builderto create a request.- Returns:
- Result of the RetryDataReplication operation returned by the service.
- See Also:
-
reverseReplication
default ReverseReplicationResponse reverseReplication(ReverseReplicationRequest reverseReplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Start replication to origin / target region - applies only to protected instances that originated in EC2. For recovery instances on target region - starts replication back to origin region. For failback instances on origin region - starts replication to target region to re-protect them.
- Parameters:
reverseReplicationRequest-- Returns:
- Result of the ReverseReplication operation returned by the service.
- See Also:
-
reverseReplication
default ReverseReplicationResponse reverseReplication(Consumer<ReverseReplicationRequest.Builder> reverseReplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Start replication to origin / target region - applies only to protected instances that originated in EC2. For recovery instances on target region - starts replication back to origin region. For failback instances on origin region - starts replication to target region to re-protect them.
This is a convenience which creates an instance of the
ReverseReplicationRequest.Builderavoiding the need to create one manually viaReverseReplicationRequest.builder()- Parameters:
reverseReplicationRequest- AConsumerthat will call methods onReverseReplicationRequest.Builderto create a request.- Returns:
- Result of the ReverseReplication operation returned by the service.
- See Also:
-
startFailbackLaunch
default StartFailbackLaunchResponse startFailbackLaunch(StartFailbackLaunchRequest startFailbackLaunchRequest) throws InternalServerException, ConflictException, ServiceQuotaExceededException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Initiates a Job for launching the machine that is being failed back to from the specified Recovery Instance. This will run conversion on the failback client and will reboot your machine, thus completing the failback process.
- Parameters:
startFailbackLaunchRequest-- Returns:
- Result of the StartFailbackLaunch operation returned by the service.
- See Also:
-
startFailbackLaunch
default StartFailbackLaunchResponse startFailbackLaunch(Consumer<StartFailbackLaunchRequest.Builder> startFailbackLaunchRequest) throws InternalServerException, ConflictException, ServiceQuotaExceededException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Initiates a Job for launching the machine that is being failed back to from the specified Recovery Instance. This will run conversion on the failback client and will reboot your machine, thus completing the failback process.
This is a convenience which creates an instance of the
StartFailbackLaunchRequest.Builderavoiding the need to create one manually viaStartFailbackLaunchRequest.builder()- Parameters:
startFailbackLaunchRequest- AConsumerthat will call methods onStartFailbackLaunchRequest.Builderto create a request.- Returns:
- Result of the StartFailbackLaunch operation returned by the service.
- See Also:
-
startRecovery
default StartRecoveryResponse startRecovery(StartRecoveryRequest startRecoveryRequest) throws InternalServerException, ConflictException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Launches Recovery Instances for the specified Source Servers. For each Source Server you may choose a point in time snapshot to launch from, or use an on demand snapshot.
- Parameters:
startRecoveryRequest-- Returns:
- Result of the StartRecovery operation returned by the service.
- See Also:
-
startRecovery
default StartRecoveryResponse startRecovery(Consumer<StartRecoveryRequest.Builder> startRecoveryRequest) throws InternalServerException, ConflictException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Launches Recovery Instances for the specified Source Servers. For each Source Server you may choose a point in time snapshot to launch from, or use an on demand snapshot.
This is a convenience which creates an instance of the
StartRecoveryRequest.Builderavoiding the need to create one manually viaStartRecoveryRequest.builder()- Parameters:
startRecoveryRequest- AConsumerthat will call methods onStartRecoveryRequest.Builderto create a request.- Returns:
- Result of the StartRecovery operation returned by the service.
- See Also:
-
startReplication
default StartReplicationResponse startReplication(StartReplicationRequest startReplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Starts replication for a stopped Source Server. This action would make the Source Server protected again and restart billing for it.
- Parameters:
startReplicationRequest-- Returns:
- Result of the StartReplication operation returned by the service.
- See Also:
-
startReplication
default StartReplicationResponse startReplication(Consumer<StartReplicationRequest.Builder> startReplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Starts replication for a stopped Source Server. This action would make the Source Server protected again and restart billing for it.
This is a convenience which creates an instance of the
StartReplicationRequest.Builderavoiding the need to create one manually viaStartReplicationRequest.builder()- Parameters:
startReplicationRequest- AConsumerthat will call methods onStartReplicationRequest.Builderto create a request.- Returns:
- Result of the StartReplication operation returned by the service.
- See Also:
-
startSourceNetworkRecovery
default StartSourceNetworkRecoveryResponse startSourceNetworkRecovery(StartSourceNetworkRecoveryRequest startSourceNetworkRecoveryRequest) throws InternalServerException, ConflictException, ServiceQuotaExceededException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deploy VPC for the specified Source Network and modify launch templates to use this network. The VPC will be deployed using a dedicated CloudFormation stack.
- Parameters:
startSourceNetworkRecoveryRequest-- Returns:
- Result of the StartSourceNetworkRecovery operation returned by the service.
- See Also:
-
startSourceNetworkRecovery
default StartSourceNetworkRecoveryResponse startSourceNetworkRecovery(Consumer<StartSourceNetworkRecoveryRequest.Builder> startSourceNetworkRecoveryRequest) throws InternalServerException, ConflictException, ServiceQuotaExceededException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Deploy VPC for the specified Source Network and modify launch templates to use this network. The VPC will be deployed using a dedicated CloudFormation stack.
This is a convenience which creates an instance of the
StartSourceNetworkRecoveryRequest.Builderavoiding the need to create one manually viaStartSourceNetworkRecoveryRequest.builder()- Parameters:
startSourceNetworkRecoveryRequest- AConsumerthat will call methods onStartSourceNetworkRecoveryRequest.Builderto create a request.- Returns:
- Result of the StartSourceNetworkRecovery operation returned by the service.
- See Also:
-
startSourceNetworkReplication
default StartSourceNetworkReplicationResponse startSourceNetworkReplication(StartSourceNetworkReplicationRequest startSourceNetworkReplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Starts replication for a Source Network. This action would make the Source Network protected.
- Parameters:
startSourceNetworkReplicationRequest-- Returns:
- Result of the StartSourceNetworkReplication operation returned by the service.
- See Also:
-
startSourceNetworkReplication
default StartSourceNetworkReplicationResponse startSourceNetworkReplication(Consumer<StartSourceNetworkReplicationRequest.Builder> startSourceNetworkReplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Starts replication for a Source Network. This action would make the Source Network protected.
This is a convenience which creates an instance of the
StartSourceNetworkReplicationRequest.Builderavoiding the need to create one manually viaStartSourceNetworkReplicationRequest.builder()- Parameters:
startSourceNetworkReplicationRequest- AConsumerthat will call methods onStartSourceNetworkReplicationRequest.Builderto create a request.- Returns:
- Result of the StartSourceNetworkReplication operation returned by the service.
- See Also:
-
stopFailback
default StopFailbackResponse stopFailback(StopFailbackRequest stopFailbackRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Stops the failback process for a specified Recovery Instance. This changes the Failback State of the Recovery Instance back to FAILBACK_NOT_STARTED.
- Parameters:
stopFailbackRequest-- Returns:
- Result of the StopFailback operation returned by the service.
- See Also:
-
stopFailback
default StopFailbackResponse stopFailback(Consumer<StopFailbackRequest.Builder> stopFailbackRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Stops the failback process for a specified Recovery Instance. This changes the Failback State of the Recovery Instance back to FAILBACK_NOT_STARTED.
This is a convenience which creates an instance of the
StopFailbackRequest.Builderavoiding the need to create one manually viaStopFailbackRequest.builder()- Parameters:
stopFailbackRequest- AConsumerthat will call methods onStopFailbackRequest.Builderto create a request.- Returns:
- Result of the StopFailback operation returned by the service.
- See Also:
-
stopReplication
default StopReplicationResponse stopReplication(StopReplicationRequest stopReplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Stops replication for a Source Server. This action would make the Source Server unprotected, delete its existing snapshots and stop billing for it.
- Parameters:
stopReplicationRequest-- Returns:
- Result of the StopReplication operation returned by the service.
- See Also:
-
stopReplication
default StopReplicationResponse stopReplication(Consumer<StopReplicationRequest.Builder> stopReplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Stops replication for a Source Server. This action would make the Source Server unprotected, delete its existing snapshots and stop billing for it.
This is a convenience which creates an instance of the
StopReplicationRequest.Builderavoiding the need to create one manually viaStopReplicationRequest.builder()- Parameters:
stopReplicationRequest- AConsumerthat will call methods onStopReplicationRequest.Builderto create a request.- Returns:
- Result of the StopReplication operation returned by the service.
- See Also:
-
stopSourceNetworkReplication
default StopSourceNetworkReplicationResponse stopSourceNetworkReplication(StopSourceNetworkReplicationRequest stopSourceNetworkReplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Stops replication for a Source Network. This action would make the Source Network unprotected.
- Parameters:
stopSourceNetworkReplicationRequest-- Returns:
- Result of the StopSourceNetworkReplication operation returned by the service.
- See Also:
-
stopSourceNetworkReplication
default StopSourceNetworkReplicationResponse stopSourceNetworkReplication(Consumer<StopSourceNetworkReplicationRequest.Builder> stopSourceNetworkReplicationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Stops replication for a Source Network. This action would make the Source Network unprotected.
This is a convenience which creates an instance of the
StopSourceNetworkReplicationRequest.Builderavoiding the need to create one manually viaStopSourceNetworkReplicationRequest.builder()- Parameters:
stopSourceNetworkReplicationRequest- AConsumerthat will call methods onStopSourceNetworkReplicationRequest.Builderto create a request.- Returns:
- Result of the StopSourceNetworkReplication operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, DrsException Adds or overwrites only the specified tags for the specified Elastic Disaster Recovery resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value.
- 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, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, DrsException Adds or overwrites only the specified tags for the specified Elastic Disaster Recovery resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value.
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:
-
terminateRecoveryInstances
default TerminateRecoveryInstancesResponse terminateRecoveryInstances(TerminateRecoveryInstancesRequest terminateRecoveryInstancesRequest) throws InternalServerException, ConflictException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Initiates a Job for terminating the EC2 resources associated with the specified Recovery Instances, and then will delete the Recovery Instances from the Elastic Disaster Recovery service.
- Parameters:
terminateRecoveryInstancesRequest-- Returns:
- Result of the TerminateRecoveryInstances operation returned by the service.
- See Also:
-
terminateRecoveryInstances
default TerminateRecoveryInstancesResponse terminateRecoveryInstances(Consumer<TerminateRecoveryInstancesRequest.Builder> terminateRecoveryInstancesRequest) throws InternalServerException, ConflictException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Initiates a Job for terminating the EC2 resources associated with the specified Recovery Instances, and then will delete the Recovery Instances from the Elastic Disaster Recovery service.
This is a convenience which creates an instance of the
TerminateRecoveryInstancesRequest.Builderavoiding the need to create one manually viaTerminateRecoveryInstancesRequest.builder()- Parameters:
terminateRecoveryInstancesRequest- AConsumerthat will call methods onTerminateRecoveryInstancesRequest.Builderto create a request.- Returns:
- Result of the TerminateRecoveryInstances operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, DrsException Deletes the specified set of tags from the specified set of Elastic Disaster Recovery resources.
- 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, ThrottlingException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, DrsException Deletes the specified set of tags from the specified set of Elastic Disaster Recovery resources.
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:
-
updateFailbackReplicationConfiguration
default UpdateFailbackReplicationConfigurationResponse updateFailbackReplicationConfiguration(UpdateFailbackReplicationConfigurationRequest updateFailbackReplicationConfigurationRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, AccessDeniedException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Allows you to update the failback replication configuration of a Recovery Instance by ID.
- Parameters:
updateFailbackReplicationConfigurationRequest-- Returns:
- Result of the UpdateFailbackReplicationConfiguration operation returned by the service.
- See Also:
-
updateFailbackReplicationConfiguration
default UpdateFailbackReplicationConfigurationResponse updateFailbackReplicationConfiguration(Consumer<UpdateFailbackReplicationConfigurationRequest.Builder> updateFailbackReplicationConfigurationRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, AccessDeniedException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Allows you to update the failback replication configuration of a Recovery Instance by ID.
This is a convenience which creates an instance of the
UpdateFailbackReplicationConfigurationRequest.Builderavoiding the need to create one manually viaUpdateFailbackReplicationConfigurationRequest.builder()- Parameters:
updateFailbackReplicationConfigurationRequest- AConsumerthat will call methods onUpdateFailbackReplicationConfigurationRequest.Builderto create a request.- Returns:
- Result of the UpdateFailbackReplicationConfiguration operation returned by the service.
- See Also:
-
updateLaunchConfiguration
default UpdateLaunchConfigurationResponse updateLaunchConfiguration(UpdateLaunchConfigurationRequest updateLaunchConfigurationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Updates a LaunchConfiguration by Source Server ID.
- Parameters:
updateLaunchConfigurationRequest-- Returns:
- Result of the UpdateLaunchConfiguration operation returned by the service.
- See Also:
-
updateLaunchConfiguration
default UpdateLaunchConfigurationResponse updateLaunchConfiguration(Consumer<UpdateLaunchConfigurationRequest.Builder> updateLaunchConfigurationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Updates a LaunchConfiguration by Source Server ID.
This is a convenience which creates an instance of the
UpdateLaunchConfigurationRequest.Builderavoiding the need to create one manually viaUpdateLaunchConfigurationRequest.builder()- Parameters:
updateLaunchConfigurationRequest- AConsumerthat will call methods onUpdateLaunchConfigurationRequest.Builderto create a request.- Returns:
- Result of the UpdateLaunchConfiguration operation returned by the service.
- See Also:
-
updateLaunchConfigurationTemplate
default UpdateLaunchConfigurationTemplateResponse updateLaunchConfigurationTemplate(UpdateLaunchConfigurationTemplateRequest updateLaunchConfigurationTemplateRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Updates an existing Launch Configuration Template by ID.
- Parameters:
updateLaunchConfigurationTemplateRequest-- Returns:
- Result of the UpdateLaunchConfigurationTemplate operation returned by the service.
- See Also:
-
updateLaunchConfigurationTemplate
default UpdateLaunchConfigurationTemplateResponse updateLaunchConfigurationTemplate(Consumer<UpdateLaunchConfigurationTemplateRequest.Builder> updateLaunchConfigurationTemplateRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Updates an existing Launch Configuration Template by ID.
This is a convenience which creates an instance of the
UpdateLaunchConfigurationTemplateRequest.Builderavoiding the need to create one manually viaUpdateLaunchConfigurationTemplateRequest.builder()- Parameters:
updateLaunchConfigurationTemplateRequest- AConsumerthat will call methods onUpdateLaunchConfigurationTemplateRequest.Builderto create a request.- Returns:
- Result of the UpdateLaunchConfigurationTemplate operation returned by the service.
- See Also:
-
updateReplicationConfiguration
default UpdateReplicationConfigurationResponse updateReplicationConfiguration(UpdateReplicationConfigurationRequest updateReplicationConfigurationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Allows you to update a ReplicationConfiguration by Source Server ID.
- Parameters:
updateReplicationConfigurationRequest-- Returns:
- Result of the UpdateReplicationConfiguration operation returned by the service.
- See Also:
-
updateReplicationConfiguration
default UpdateReplicationConfigurationResponse updateReplicationConfiguration(Consumer<UpdateReplicationConfigurationRequest.Builder> updateReplicationConfigurationRequest) throws ResourceNotFoundException, InternalServerException, ConflictException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Allows you to update a ReplicationConfiguration by Source Server ID.
This is a convenience which creates an instance of the
UpdateReplicationConfigurationRequest.Builderavoiding the need to create one manually viaUpdateReplicationConfigurationRequest.builder()- Parameters:
updateReplicationConfigurationRequest- AConsumerthat will call methods onUpdateReplicationConfigurationRequest.Builderto create a request.- Returns:
- Result of the UpdateReplicationConfiguration operation returned by the service.
- See Also:
-
updateReplicationConfigurationTemplate
default UpdateReplicationConfigurationTemplateResponse updateReplicationConfigurationTemplate(UpdateReplicationConfigurationTemplateRequest updateReplicationConfigurationTemplateRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Updates a ReplicationConfigurationTemplate by ID.
- Parameters:
updateReplicationConfigurationTemplateRequest-- Returns:
- Result of the UpdateReplicationConfigurationTemplate operation returned by the service.
- See Also:
-
updateReplicationConfigurationTemplate
default UpdateReplicationConfigurationTemplateResponse updateReplicationConfigurationTemplate(Consumer<UpdateReplicationConfigurationTemplateRequest.Builder> updateReplicationConfigurationTemplateRequest) throws ResourceNotFoundException, InternalServerException, ThrottlingException, AccessDeniedException, ValidationException, UninitializedAccountException, AwsServiceException, SdkClientException, DrsException Updates a ReplicationConfigurationTemplate by ID.
This is a convenience which creates an instance of the
UpdateReplicationConfigurationTemplateRequest.Builderavoiding the need to create one manually viaUpdateReplicationConfigurationTemplateRequest.builder()- Parameters:
updateReplicationConfigurationTemplateRequest- AConsumerthat will call methods onUpdateReplicationConfigurationTemplateRequest.Builderto create a request.- Returns:
- Result of the UpdateReplicationConfigurationTemplate operation returned by the service.
- See Also:
-
create
Create aDrsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aDrsClient. -
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
-