Interface MemoryDbClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface MemoryDbClient extends AwsClient
Service client for accessing Amazon MemoryDB. This can be created using the staticbuilder()method.MemoryDB is a fully managed, Redis OSS-compatible, in-memory database that delivers ultra-fast performance and Multi-AZ durability for modern applications built using microservices architectures. MemoryDB stores the entire database in-memory, enabling low latency and high throughput data access. It is compatible with Redis OSS, a popular open source data store, enabling you to leverage Redis OSS’ flexible and friendly data structures, APIs, and commands.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
batchUpdateCluster
default BatchUpdateClusterResponse batchUpdateCluster(BatchUpdateClusterRequest batchUpdateClusterRequest) throws ServiceUpdateNotFoundException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Apply the service update to a list of clusters supplied. For more information on service updates and applying them, see Applying the service updates.
- Parameters:
batchUpdateClusterRequest-- Returns:
- Result of the BatchUpdateCluster operation returned by the service.
- Throws:
ServiceUpdateNotFoundExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
batchUpdateCluster
default BatchUpdateClusterResponse batchUpdateCluster(Consumer<BatchUpdateClusterRequest.Builder> batchUpdateClusterRequest) throws ServiceUpdateNotFoundException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Apply the service update to a list of clusters supplied. For more information on service updates and applying them, see Applying the service updates.
This is a convenience which creates an instance of the
BatchUpdateClusterRequest.Builderavoiding the need to create one manually viaBatchUpdateClusterRequest.builder()- Parameters:
batchUpdateClusterRequest- AConsumerthat will call methods onBatchUpdateClusterRequest.Builderto create a request.- Returns:
- Result of the BatchUpdateCluster operation returned by the service.
- Throws:
ServiceUpdateNotFoundExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
copySnapshot
default CopySnapshotResponse copySnapshot(CopySnapshotRequest copySnapshotRequest) throws SnapshotAlreadyExistsException, SnapshotNotFoundException, SnapshotQuotaExceededException, InvalidSnapshotStateException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, TagQuotaPerResourceExceededException, AwsServiceException, SdkClientException, MemoryDbException
Makes a copy of an existing snapshot.
- Parameters:
copySnapshotRequest-- Returns:
- Result of the CopySnapshot operation returned by the service.
- Throws:
SnapshotAlreadyExistsExceptionSnapshotNotFoundExceptionSnapshotQuotaExceededExceptionInvalidSnapshotStateExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionTagQuotaPerResourceExceededExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
copySnapshot
default CopySnapshotResponse copySnapshot(Consumer<CopySnapshotRequest.Builder> copySnapshotRequest) throws SnapshotAlreadyExistsException, SnapshotNotFoundException, SnapshotQuotaExceededException, InvalidSnapshotStateException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, TagQuotaPerResourceExceededException, AwsServiceException, SdkClientException, MemoryDbException
Makes a copy of an existing snapshot.
This is a convenience which creates an instance of the
CopySnapshotRequest.Builderavoiding the need to create one manually viaCopySnapshotRequest.builder()- Parameters:
copySnapshotRequest- AConsumerthat will call methods onCopySnapshotRequest.Builderto create a request.- Returns:
- Result of the CopySnapshot operation returned by the service.
- Throws:
SnapshotAlreadyExistsExceptionSnapshotNotFoundExceptionSnapshotQuotaExceededExceptionInvalidSnapshotStateExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionTagQuotaPerResourceExceededExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createACL
default CreateAclResponse createACL(CreateAclRequest createAclRequest) throws UserNotFoundException, DuplicateUserNameException, AclAlreadyExistsException, DefaultUserRequiredException, AclQuotaExceededException, InvalidParameterValueException, TagQuotaPerResourceExceededException, AwsServiceException, SdkClientException, MemoryDbException
Creates an Access Control List. For more information, see Authenticating users with Access Contol Lists (ACLs).
- Parameters:
createAclRequest-- Returns:
- Result of the CreateACL operation returned by the service.
- Throws:
UserNotFoundExceptionDuplicateUserNameExceptionAclAlreadyExistsExceptionDefaultUserRequiredExceptionAclQuotaExceededExceptionInvalidParameterValueExceptionTagQuotaPerResourceExceededExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createACL
default CreateAclResponse createACL(Consumer<CreateAclRequest.Builder> createAclRequest) throws UserNotFoundException, DuplicateUserNameException, AclAlreadyExistsException, DefaultUserRequiredException, AclQuotaExceededException, InvalidParameterValueException, TagQuotaPerResourceExceededException, AwsServiceException, SdkClientException, MemoryDbException
Creates an Access Control List. For more information, see Authenticating users with Access Contol Lists (ACLs).
This is a convenience which creates an instance of the
CreateAclRequest.Builderavoiding the need to create one manually viaCreateAclRequest.builder()- Parameters:
createAclRequest- AConsumerthat will call methods onCreateAclRequest.Builderto create a request.- Returns:
- Result of the CreateACL operation returned by the service.
- Throws:
UserNotFoundExceptionDuplicateUserNameExceptionAclAlreadyExistsExceptionDefaultUserRequiredExceptionAclQuotaExceededExceptionInvalidParameterValueExceptionTagQuotaPerResourceExceededExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createCluster
default CreateClusterResponse createCluster(CreateClusterRequest createClusterRequest) throws ClusterAlreadyExistsException, SubnetGroupNotFoundException, ClusterQuotaForCustomerExceededException, NodeQuotaForClusterExceededException, NodeQuotaForCustomerExceededException, ParameterGroupNotFoundException, InsufficientClusterCapacityException, InvalidVpcNetworkStateException, ServiceLinkedRoleNotFoundException, ShardsPerClusterQuotaExceededException, InvalidParameterValueException, InvalidParameterCombinationException, InvalidCredentialsException, TagQuotaPerResourceExceededException, AclNotFoundException, InvalidAclStateException, MultiRegionClusterNotFoundException, InvalidMultiRegionClusterStateException, AwsServiceException, SdkClientException, MemoryDbException
Creates a cluster. All nodes in the cluster run the same protocol-compliant engine software.
- Parameters:
createClusterRequest-- Returns:
- Result of the CreateCluster operation returned by the service.
- Throws:
ClusterAlreadyExistsExceptionSubnetGroupNotFoundExceptionClusterQuotaForCustomerExceededExceptionNodeQuotaForClusterExceededExceptionNodeQuotaForCustomerExceededExceptionParameterGroupNotFoundExceptionInsufficientClusterCapacityExceptionInvalidVpcNetworkStateExceptionServiceLinkedRoleNotFoundExceptionShardsPerClusterQuotaExceededExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionInvalidCredentialsExceptionTagQuotaPerResourceExceededExceptionAclNotFoundExceptionInvalidAclStateExceptionMultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.InvalidMultiRegionClusterStateException- The requested operation cannot be performed on the multi-Region cluster in its current state.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createCluster
default CreateClusterResponse createCluster(Consumer<CreateClusterRequest.Builder> createClusterRequest) throws ClusterAlreadyExistsException, SubnetGroupNotFoundException, ClusterQuotaForCustomerExceededException, NodeQuotaForClusterExceededException, NodeQuotaForCustomerExceededException, ParameterGroupNotFoundException, InsufficientClusterCapacityException, InvalidVpcNetworkStateException, ServiceLinkedRoleNotFoundException, ShardsPerClusterQuotaExceededException, InvalidParameterValueException, InvalidParameterCombinationException, InvalidCredentialsException, TagQuotaPerResourceExceededException, AclNotFoundException, InvalidAclStateException, MultiRegionClusterNotFoundException, InvalidMultiRegionClusterStateException, AwsServiceException, SdkClientException, MemoryDbException
Creates a cluster. All nodes in the cluster run the same protocol-compliant engine software.
This is a convenience which creates an instance of the
CreateClusterRequest.Builderavoiding the need to create one manually viaCreateClusterRequest.builder()- Parameters:
createClusterRequest- AConsumerthat will call methods onCreateClusterRequest.Builderto create a request.- Returns:
- Result of the CreateCluster operation returned by the service.
- Throws:
ClusterAlreadyExistsExceptionSubnetGroupNotFoundExceptionClusterQuotaForCustomerExceededExceptionNodeQuotaForClusterExceededExceptionNodeQuotaForCustomerExceededExceptionParameterGroupNotFoundExceptionInsufficientClusterCapacityExceptionInvalidVpcNetworkStateExceptionServiceLinkedRoleNotFoundExceptionShardsPerClusterQuotaExceededExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionInvalidCredentialsExceptionTagQuotaPerResourceExceededExceptionAclNotFoundExceptionInvalidAclStateExceptionMultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.InvalidMultiRegionClusterStateException- The requested operation cannot be performed on the multi-Region cluster in its current state.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createMultiRegionCluster
default CreateMultiRegionClusterResponse createMultiRegionCluster(CreateMultiRegionClusterRequest createMultiRegionClusterRequest) throws MultiRegionClusterAlreadyExistsException, InvalidParameterCombinationException, InvalidParameterValueException, MultiRegionParameterGroupNotFoundException, ClusterQuotaForCustomerExceededException, TagQuotaPerResourceExceededException, AwsServiceException, SdkClientException, MemoryDbException
Creates a new multi-Region cluster.
- Parameters:
createMultiRegionClusterRequest-- Returns:
- Result of the CreateMultiRegionCluster operation returned by the service.
- Throws:
MultiRegionClusterAlreadyExistsException- A multi-Region cluster with the specified name already exists.InvalidParameterCombinationExceptionInvalidParameterValueExceptionMultiRegionParameterGroupNotFoundException- The specified multi-Region parameter group does not exist.ClusterQuotaForCustomerExceededExceptionTagQuotaPerResourceExceededExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createMultiRegionCluster
default CreateMultiRegionClusterResponse createMultiRegionCluster(Consumer<CreateMultiRegionClusterRequest.Builder> createMultiRegionClusterRequest) throws MultiRegionClusterAlreadyExistsException, InvalidParameterCombinationException, InvalidParameterValueException, MultiRegionParameterGroupNotFoundException, ClusterQuotaForCustomerExceededException, TagQuotaPerResourceExceededException, AwsServiceException, SdkClientException, MemoryDbException
Creates a new multi-Region cluster.
This is a convenience which creates an instance of the
CreateMultiRegionClusterRequest.Builderavoiding the need to create one manually viaCreateMultiRegionClusterRequest.builder()- Parameters:
createMultiRegionClusterRequest- AConsumerthat will call methods onCreateMultiRegionClusterRequest.Builderto create a request.- Returns:
- Result of the CreateMultiRegionCluster operation returned by the service.
- Throws:
MultiRegionClusterAlreadyExistsException- A multi-Region cluster with the specified name already exists.InvalidParameterCombinationExceptionInvalidParameterValueExceptionMultiRegionParameterGroupNotFoundException- The specified multi-Region parameter group does not exist.ClusterQuotaForCustomerExceededExceptionTagQuotaPerResourceExceededExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createParameterGroup
default CreateParameterGroupResponse createParameterGroup(CreateParameterGroupRequest createParameterGroupRequest) throws ParameterGroupQuotaExceededException, ParameterGroupAlreadyExistsException, InvalidParameterGroupStateException, ServiceLinkedRoleNotFoundException, TagQuotaPerResourceExceededException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Creates a new MemoryDB parameter group. A parameter group is a collection of parameters and their values that are applied to all of the nodes in any cluster. For more information, see Configuring engine parameters using parameter groups.
- Parameters:
createParameterGroupRequest-- Returns:
- Result of the CreateParameterGroup operation returned by the service.
- Throws:
ParameterGroupQuotaExceededExceptionParameterGroupAlreadyExistsExceptionInvalidParameterGroupStateExceptionServiceLinkedRoleNotFoundExceptionTagQuotaPerResourceExceededExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createParameterGroup
default CreateParameterGroupResponse createParameterGroup(Consumer<CreateParameterGroupRequest.Builder> createParameterGroupRequest) throws ParameterGroupQuotaExceededException, ParameterGroupAlreadyExistsException, InvalidParameterGroupStateException, ServiceLinkedRoleNotFoundException, TagQuotaPerResourceExceededException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Creates a new MemoryDB parameter group. A parameter group is a collection of parameters and their values that are applied to all of the nodes in any cluster. For more information, see Configuring engine parameters using parameter groups.
This is a convenience which creates an instance of the
CreateParameterGroupRequest.Builderavoiding the need to create one manually viaCreateParameterGroupRequest.builder()- Parameters:
createParameterGroupRequest- AConsumerthat will call methods onCreateParameterGroupRequest.Builderto create a request.- Returns:
- Result of the CreateParameterGroup operation returned by the service.
- Throws:
ParameterGroupQuotaExceededExceptionParameterGroupAlreadyExistsExceptionInvalidParameterGroupStateExceptionServiceLinkedRoleNotFoundExceptionTagQuotaPerResourceExceededExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createSnapshot
default CreateSnapshotResponse createSnapshot(CreateSnapshotRequest createSnapshotRequest) throws SnapshotAlreadyExistsException, ClusterNotFoundException, InvalidClusterStateException, SnapshotQuotaExceededException, ServiceLinkedRoleNotFoundException, InvalidParameterCombinationException, InvalidParameterValueException, TagQuotaPerResourceExceededException, AwsServiceException, SdkClientException, MemoryDbException
Creates a copy of an entire cluster at a specific moment in time.
- Parameters:
createSnapshotRequest-- Returns:
- Result of the CreateSnapshot operation returned by the service.
- Throws:
SnapshotAlreadyExistsExceptionClusterNotFoundExceptionInvalidClusterStateExceptionSnapshotQuotaExceededExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterCombinationExceptionInvalidParameterValueExceptionTagQuotaPerResourceExceededExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createSnapshot
default CreateSnapshotResponse createSnapshot(Consumer<CreateSnapshotRequest.Builder> createSnapshotRequest) throws SnapshotAlreadyExistsException, ClusterNotFoundException, InvalidClusterStateException, SnapshotQuotaExceededException, ServiceLinkedRoleNotFoundException, InvalidParameterCombinationException, InvalidParameterValueException, TagQuotaPerResourceExceededException, AwsServiceException, SdkClientException, MemoryDbException
Creates a copy of an entire cluster at a specific moment in time.
This is a convenience which creates an instance of the
CreateSnapshotRequest.Builderavoiding the need to create one manually viaCreateSnapshotRequest.builder()- Parameters:
createSnapshotRequest- AConsumerthat will call methods onCreateSnapshotRequest.Builderto create a request.- Returns:
- Result of the CreateSnapshot operation returned by the service.
- Throws:
SnapshotAlreadyExistsExceptionClusterNotFoundExceptionInvalidClusterStateExceptionSnapshotQuotaExceededExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterCombinationExceptionInvalidParameterValueExceptionTagQuotaPerResourceExceededExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createSubnetGroup
default CreateSubnetGroupResponse createSubnetGroup(CreateSubnetGroupRequest createSubnetGroupRequest) throws SubnetGroupAlreadyExistsException, SubnetGroupQuotaExceededException, SubnetQuotaExceededException, InvalidSubnetException, ServiceLinkedRoleNotFoundException, SubnetNotAllowedException, TagQuotaPerResourceExceededException, AwsServiceException, SdkClientException, MemoryDbException
Creates a subnet group. A subnet group is a collection of subnets (typically private) that you can designate for your clusters running in an Amazon Virtual Private Cloud (VPC) environment. When you create a cluster in an Amazon VPC, you must specify a subnet group. MemoryDB uses that subnet group to choose a subnet and IP addresses within that subnet to associate with your nodes. For more information, see Subnets and subnet groups.
- Parameters:
createSubnetGroupRequest-- Returns:
- Result of the CreateSubnetGroup operation returned by the service.
- Throws:
SubnetGroupAlreadyExistsExceptionSubnetGroupQuotaExceededExceptionSubnetQuotaExceededExceptionInvalidSubnetExceptionServiceLinkedRoleNotFoundExceptionSubnetNotAllowedExceptionTagQuotaPerResourceExceededExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createSubnetGroup
default CreateSubnetGroupResponse createSubnetGroup(Consumer<CreateSubnetGroupRequest.Builder> createSubnetGroupRequest) throws SubnetGroupAlreadyExistsException, SubnetGroupQuotaExceededException, SubnetQuotaExceededException, InvalidSubnetException, ServiceLinkedRoleNotFoundException, SubnetNotAllowedException, TagQuotaPerResourceExceededException, AwsServiceException, SdkClientException, MemoryDbException
Creates a subnet group. A subnet group is a collection of subnets (typically private) that you can designate for your clusters running in an Amazon Virtual Private Cloud (VPC) environment. When you create a cluster in an Amazon VPC, you must specify a subnet group. MemoryDB uses that subnet group to choose a subnet and IP addresses within that subnet to associate with your nodes. For more information, see Subnets and subnet groups.
This is a convenience which creates an instance of the
CreateSubnetGroupRequest.Builderavoiding the need to create one manually viaCreateSubnetGroupRequest.builder()- Parameters:
createSubnetGroupRequest- AConsumerthat will call methods onCreateSubnetGroupRequest.Builderto create a request.- Returns:
- Result of the CreateSubnetGroup operation returned by the service.
- Throws:
SubnetGroupAlreadyExistsExceptionSubnetGroupQuotaExceededExceptionSubnetQuotaExceededExceptionInvalidSubnetExceptionServiceLinkedRoleNotFoundExceptionSubnetNotAllowedExceptionTagQuotaPerResourceExceededExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createUser
default CreateUserResponse createUser(CreateUserRequest createUserRequest) throws UserAlreadyExistsException, UserQuotaExceededException, DuplicateUserNameException, InvalidParameterValueException, InvalidParameterCombinationException, TagQuotaPerResourceExceededException, AwsServiceException, SdkClientException, MemoryDbException
Creates a MemoryDB user. For more information, see Authenticating users with Access Contol Lists (ACLs).
- Parameters:
createUserRequest-- Returns:
- Result of the CreateUser operation returned by the service.
- Throws:
UserAlreadyExistsExceptionUserQuotaExceededExceptionDuplicateUserNameExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionTagQuotaPerResourceExceededExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createUser
default CreateUserResponse createUser(Consumer<CreateUserRequest.Builder> createUserRequest) throws UserAlreadyExistsException, UserQuotaExceededException, DuplicateUserNameException, InvalidParameterValueException, InvalidParameterCombinationException, TagQuotaPerResourceExceededException, AwsServiceException, SdkClientException, MemoryDbException
Creates a MemoryDB user. For more information, see Authenticating users with Access Contol Lists (ACLs).
This is a convenience which creates an instance of the
CreateUserRequest.Builderavoiding the need to create one manually viaCreateUserRequest.builder()- Parameters:
createUserRequest- AConsumerthat will call methods onCreateUserRequest.Builderto create a request.- Returns:
- Result of the CreateUser operation returned by the service.
- Throws:
UserAlreadyExistsExceptionUserQuotaExceededExceptionDuplicateUserNameExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionTagQuotaPerResourceExceededExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteACL
default DeleteAclResponse deleteACL(DeleteAclRequest deleteAclRequest) throws AclNotFoundException, InvalidAclStateException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Deletes an Access Control List. The ACL must first be disassociated from the cluster before it can be deleted. For more information, see Authenticating users with Access Contol Lists (ACLs).
- Parameters:
deleteAclRequest-- Returns:
- Result of the DeleteACL operation returned by the service.
- Throws:
AclNotFoundExceptionInvalidAclStateExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteACL
default DeleteAclResponse deleteACL(Consumer<DeleteAclRequest.Builder> deleteAclRequest) throws AclNotFoundException, InvalidAclStateException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Deletes an Access Control List. The ACL must first be disassociated from the cluster before it can be deleted. For more information, see Authenticating users with Access Contol Lists (ACLs).
This is a convenience which creates an instance of the
DeleteAclRequest.Builderavoiding the need to create one manually viaDeleteAclRequest.builder()- Parameters:
deleteAclRequest- AConsumerthat will call methods onDeleteAclRequest.Builderto create a request.- Returns:
- Result of the DeleteACL operation returned by the service.
- Throws:
AclNotFoundExceptionInvalidAclStateExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteCluster
default DeleteClusterResponse deleteCluster(DeleteClusterRequest deleteClusterRequest) throws ClusterNotFoundException, InvalidClusterStateException, SnapshotAlreadyExistsException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Deletes a cluster. It also deletes all associated nodes and node endpoints.
CreateSnapshotpermission is required to create a final snapshot. Without this permission, the API call will fail with anAccess Deniedexception.- Parameters:
deleteClusterRequest-- Returns:
- Result of the DeleteCluster operation returned by the service.
- Throws:
ClusterNotFoundExceptionInvalidClusterStateExceptionSnapshotAlreadyExistsExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteCluster
default DeleteClusterResponse deleteCluster(Consumer<DeleteClusterRequest.Builder> deleteClusterRequest) throws ClusterNotFoundException, InvalidClusterStateException, SnapshotAlreadyExistsException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Deletes a cluster. It also deletes all associated nodes and node endpoints.
CreateSnapshotpermission is required to create a final snapshot. Without this permission, the API call will fail with anAccess Deniedexception.
This is a convenience which creates an instance of the
DeleteClusterRequest.Builderavoiding the need to create one manually viaDeleteClusterRequest.builder()- Parameters:
deleteClusterRequest- AConsumerthat will call methods onDeleteClusterRequest.Builderto create a request.- Returns:
- Result of the DeleteCluster operation returned by the service.
- Throws:
ClusterNotFoundExceptionInvalidClusterStateExceptionSnapshotAlreadyExistsExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteMultiRegionCluster
default DeleteMultiRegionClusterResponse deleteMultiRegionCluster(DeleteMultiRegionClusterRequest deleteMultiRegionClusterRequest) throws MultiRegionClusterNotFoundException, InvalidMultiRegionClusterStateException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Deletes an existing multi-Region cluster.
- Parameters:
deleteMultiRegionClusterRequest-- Returns:
- Result of the DeleteMultiRegionCluster operation returned by the service.
- Throws:
MultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.InvalidMultiRegionClusterStateException- The requested operation cannot be performed on the multi-Region cluster in its current state.InvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteMultiRegionCluster
default DeleteMultiRegionClusterResponse deleteMultiRegionCluster(Consumer<DeleteMultiRegionClusterRequest.Builder> deleteMultiRegionClusterRequest) throws MultiRegionClusterNotFoundException, InvalidMultiRegionClusterStateException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Deletes an existing multi-Region cluster.
This is a convenience which creates an instance of the
DeleteMultiRegionClusterRequest.Builderavoiding the need to create one manually viaDeleteMultiRegionClusterRequest.builder()- Parameters:
deleteMultiRegionClusterRequest- AConsumerthat will call methods onDeleteMultiRegionClusterRequest.Builderto create a request.- Returns:
- Result of the DeleteMultiRegionCluster operation returned by the service.
- Throws:
MultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.InvalidMultiRegionClusterStateException- The requested operation cannot be performed on the multi-Region cluster in its current state.InvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteParameterGroup
default DeleteParameterGroupResponse deleteParameterGroup(DeleteParameterGroupRequest deleteParameterGroupRequest) throws InvalidParameterGroupStateException, ParameterGroupNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Deletes the specified parameter group. You cannot delete a parameter group if it is associated with any clusters. You cannot delete the default parameter groups in your account.
- Parameters:
deleteParameterGroupRequest-- Returns:
- Result of the DeleteParameterGroup operation returned by the service.
- Throws:
InvalidParameterGroupStateExceptionParameterGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteParameterGroup
default DeleteParameterGroupResponse deleteParameterGroup(Consumer<DeleteParameterGroupRequest.Builder> deleteParameterGroupRequest) throws InvalidParameterGroupStateException, ParameterGroupNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Deletes the specified parameter group. You cannot delete a parameter group if it is associated with any clusters. You cannot delete the default parameter groups in your account.
This is a convenience which creates an instance of the
DeleteParameterGroupRequest.Builderavoiding the need to create one manually viaDeleteParameterGroupRequest.builder()- Parameters:
deleteParameterGroupRequest- AConsumerthat will call methods onDeleteParameterGroupRequest.Builderto create a request.- Returns:
- Result of the DeleteParameterGroup operation returned by the service.
- Throws:
InvalidParameterGroupStateExceptionParameterGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSnapshot
default DeleteSnapshotResponse deleteSnapshot(DeleteSnapshotRequest deleteSnapshotRequest) throws SnapshotNotFoundException, InvalidSnapshotStateException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Deletes an existing snapshot. When you receive a successful response from this operation, MemoryDB immediately begins deleting the snapshot; you cannot cancel or revert this operation.
- Parameters:
deleteSnapshotRequest-- Returns:
- Result of the DeleteSnapshot operation returned by the service.
- Throws:
SnapshotNotFoundExceptionInvalidSnapshotStateExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSnapshot
default DeleteSnapshotResponse deleteSnapshot(Consumer<DeleteSnapshotRequest.Builder> deleteSnapshotRequest) throws SnapshotNotFoundException, InvalidSnapshotStateException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Deletes an existing snapshot. When you receive a successful response from this operation, MemoryDB immediately begins deleting the snapshot; you cannot cancel or revert this operation.
This is a convenience which creates an instance of the
DeleteSnapshotRequest.Builderavoiding the need to create one manually viaDeleteSnapshotRequest.builder()- Parameters:
deleteSnapshotRequest- AConsumerthat will call methods onDeleteSnapshotRequest.Builderto create a request.- Returns:
- Result of the DeleteSnapshot operation returned by the service.
- Throws:
SnapshotNotFoundExceptionInvalidSnapshotStateExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSubnetGroup
default DeleteSubnetGroupResponse deleteSubnetGroup(DeleteSubnetGroupRequest deleteSubnetGroupRequest) throws SubnetGroupInUseException, SubnetGroupNotFoundException, ServiceLinkedRoleNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
Deletes a subnet group. You cannot delete a default subnet group or one that is associated with any clusters.
- Parameters:
deleteSubnetGroupRequest-- Returns:
- Result of the DeleteSubnetGroup operation returned by the service.
- Throws:
SubnetGroupInUseExceptionSubnetGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSubnetGroup
default DeleteSubnetGroupResponse deleteSubnetGroup(Consumer<DeleteSubnetGroupRequest.Builder> deleteSubnetGroupRequest) throws SubnetGroupInUseException, SubnetGroupNotFoundException, ServiceLinkedRoleNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
Deletes a subnet group. You cannot delete a default subnet group or one that is associated with any clusters.
This is a convenience which creates an instance of the
DeleteSubnetGroupRequest.Builderavoiding the need to create one manually viaDeleteSubnetGroupRequest.builder()- Parameters:
deleteSubnetGroupRequest- AConsumerthat will call methods onDeleteSubnetGroupRequest.Builderto create a request.- Returns:
- Result of the DeleteSubnetGroup operation returned by the service.
- Throws:
SubnetGroupInUseExceptionSubnetGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteUser
default DeleteUserResponse deleteUser(DeleteUserRequest deleteUserRequest) throws InvalidUserStateException, UserNotFoundException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Deletes a user. The user will be removed from all ACLs and in turn removed from all clusters.
- Parameters:
deleteUserRequest-- Returns:
- Result of the DeleteUser operation returned by the service.
- Throws:
InvalidUserStateExceptionUserNotFoundExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteUser
default DeleteUserResponse deleteUser(Consumer<DeleteUserRequest.Builder> deleteUserRequest) throws InvalidUserStateException, UserNotFoundException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Deletes a user. The user will be removed from all ACLs and in turn removed from all clusters.
This is a convenience which creates an instance of the
DeleteUserRequest.Builderavoiding the need to create one manually viaDeleteUserRequest.builder()- Parameters:
deleteUserRequest- AConsumerthat will call methods onDeleteUserRequest.Builderto create a request.- Returns:
- Result of the DeleteUser operation returned by the service.
- Throws:
InvalidUserStateExceptionUserNotFoundExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeACLs
default DescribeAcLsResponse describeACLs(DescribeAcLsRequest describeAcLsRequest) throws AclNotFoundException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns a list of ACLs.
- Parameters:
describeAcLsRequest-- Returns:
- Result of the DescribeACLs operation returned by the service.
- Throws:
AclNotFoundExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeACLs
default DescribeAcLsResponse describeACLs(Consumer<DescribeAcLsRequest.Builder> describeAcLsRequest) throws AclNotFoundException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns a list of ACLs.
This is a convenience which creates an instance of the
DescribeAcLsRequest.Builderavoiding the need to create one manually viaDescribeAcLsRequest.builder()- Parameters:
describeAcLsRequest- AConsumerthat will call methods onDescribeAcLsRequest.Builderto create a request.- Returns:
- Result of the DescribeACLs operation returned by the service.
- Throws:
AclNotFoundExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeACLsPaginator
default DescribeACLsIterable describeACLsPaginator(DescribeAcLsRequest describeAcLsRequest) throws AclNotFoundException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeACLs(software.amazon.awssdk.services.memorydb.model.DescribeAcLsRequest)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.memorydb.paginators.DescribeACLsIterable responses = client.describeACLsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeACLsIterable responses = client.describeACLsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeAcLsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeACLsIterable responses = client.describeACLsPaginator(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
describeACLs(software.amazon.awssdk.services.memorydb.model.DescribeAcLsRequest)operation.- Parameters:
describeAcLsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
AclNotFoundExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeACLsPaginator
default DescribeACLsIterable describeACLsPaginator(Consumer<DescribeAcLsRequest.Builder> describeAcLsRequest) throws AclNotFoundException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeACLs(software.amazon.awssdk.services.memorydb.model.DescribeAcLsRequest)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.memorydb.paginators.DescribeACLsIterable responses = client.describeACLsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeACLsIterable responses = client.describeACLsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeAcLsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeACLsIterable responses = client.describeACLsPaginator(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
describeACLs(software.amazon.awssdk.services.memorydb.model.DescribeAcLsRequest)operation.
This is a convenience which creates an instance of the
DescribeAcLsRequest.Builderavoiding the need to create one manually viaDescribeAcLsRequest.builder()- Parameters:
describeAcLsRequest- AConsumerthat will call methods onDescribeAcLsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
AclNotFoundExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeClusters
default DescribeClustersResponse describeClusters(DescribeClustersRequest describeClustersRequest) throws ClusterNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns information about all provisioned clusters if no cluster identifier is specified, or about a specific cluster if a cluster name is supplied.
- Parameters:
describeClustersRequest-- Returns:
- Result of the DescribeClusters operation returned by the service.
- Throws:
ClusterNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeClusters
default DescribeClustersResponse describeClusters(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) throws ClusterNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns information about all provisioned clusters if no cluster identifier is specified, or about a specific cluster if a cluster name is supplied.
This is a convenience which creates an instance of the
DescribeClustersRequest.Builderavoiding the need to create one manually viaDescribeClustersRequest.builder()- Parameters:
describeClustersRequest- AConsumerthat will call methods onDescribeClustersRequest.Builderto create a request.- Returns:
- Result of the DescribeClusters operation returned by the service.
- Throws:
ClusterNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeClustersPaginator
default DescribeClustersIterable describeClustersPaginator(DescribeClustersRequest describeClustersRequest) throws ClusterNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeClusters(software.amazon.awssdk.services.memorydb.model.DescribeClustersRequest)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.memorydb.paginators.DescribeClustersIterable responses = client.describeClustersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeClustersIterable responses = client .describeClustersPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeClustersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeClustersIterable responses = client.describeClustersPaginator(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
describeClusters(software.amazon.awssdk.services.memorydb.model.DescribeClustersRequest)operation.- Parameters:
describeClustersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ClusterNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeClustersPaginator
default DescribeClustersIterable describeClustersPaginator(Consumer<DescribeClustersRequest.Builder> describeClustersRequest) throws ClusterNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeClusters(software.amazon.awssdk.services.memorydb.model.DescribeClustersRequest)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.memorydb.paginators.DescribeClustersIterable responses = client.describeClustersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeClustersIterable responses = client .describeClustersPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeClustersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeClustersIterable responses = client.describeClustersPaginator(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
describeClusters(software.amazon.awssdk.services.memorydb.model.DescribeClustersRequest)operation.
This is a convenience which creates an instance of the
DescribeClustersRequest.Builderavoiding the need to create one manually viaDescribeClustersRequest.builder()- Parameters:
describeClustersRequest- AConsumerthat will call methods onDescribeClustersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ClusterNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeEngineVersions
default DescribeEngineVersionsResponse describeEngineVersions(DescribeEngineVersionsRequest describeEngineVersionsRequest) throws ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns a list of the available Redis OSS engine versions.
- Parameters:
describeEngineVersionsRequest-- Returns:
- Result of the DescribeEngineVersions operation returned by the service.
- Throws:
ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeEngineVersions
default DescribeEngineVersionsResponse describeEngineVersions(Consumer<DescribeEngineVersionsRequest.Builder> describeEngineVersionsRequest) throws ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns a list of the available Redis OSS engine versions.
This is a convenience which creates an instance of the
DescribeEngineVersionsRequest.Builderavoiding the need to create one manually viaDescribeEngineVersionsRequest.builder()- Parameters:
describeEngineVersionsRequest- AConsumerthat will call methods onDescribeEngineVersionsRequest.Builderto create a request.- Returns:
- Result of the DescribeEngineVersions operation returned by the service.
- Throws:
ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeEngineVersionsPaginator
default DescribeEngineVersionsIterable describeEngineVersionsPaginator(DescribeEngineVersionsRequest describeEngineVersionsRequest) throws ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeEngineVersions(software.amazon.awssdk.services.memorydb.model.DescribeEngineVersionsRequest)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.memorydb.paginators.DescribeEngineVersionsIterable responses = client.describeEngineVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeEngineVersionsIterable responses = client .describeEngineVersionsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeEngineVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeEngineVersionsIterable responses = client.describeEngineVersionsPaginator(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
describeEngineVersions(software.amazon.awssdk.services.memorydb.model.DescribeEngineVersionsRequest)operation.- Parameters:
describeEngineVersionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeEngineVersionsPaginator
default DescribeEngineVersionsIterable describeEngineVersionsPaginator(Consumer<DescribeEngineVersionsRequest.Builder> describeEngineVersionsRequest) throws ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeEngineVersions(software.amazon.awssdk.services.memorydb.model.DescribeEngineVersionsRequest)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.memorydb.paginators.DescribeEngineVersionsIterable responses = client.describeEngineVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeEngineVersionsIterable responses = client .describeEngineVersionsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeEngineVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeEngineVersionsIterable responses = client.describeEngineVersionsPaginator(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
describeEngineVersions(software.amazon.awssdk.services.memorydb.model.DescribeEngineVersionsRequest)operation.
This is a convenience which creates an instance of the
DescribeEngineVersionsRequest.Builderavoiding the need to create one manually viaDescribeEngineVersionsRequest.builder()- Parameters:
describeEngineVersionsRequest- AConsumerthat will call methods onDescribeEngineVersionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeEvents
default DescribeEventsResponse describeEvents(DescribeEventsRequest describeEventsRequest) throws ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns events related to clusters, security groups, and parameter groups. You can obtain events specific to a particular cluster, security group, or parameter group by providing the name as a parameter. By default, only the events occurring within the last hour are returned; however, you can retrieve up to 14 days' worth of events if necessary.
- Parameters:
describeEventsRequest-- Returns:
- Result of the DescribeEvents operation returned by the service.
- Throws:
ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeEvents
default DescribeEventsResponse describeEvents(Consumer<DescribeEventsRequest.Builder> describeEventsRequest) throws ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns events related to clusters, security groups, and parameter groups. You can obtain events specific to a particular cluster, security group, or parameter group by providing the name as a parameter. By default, only the events occurring within the last hour are returned; however, you can retrieve up to 14 days' worth of events if necessary.
This is a convenience which creates an instance of the
DescribeEventsRequest.Builderavoiding the need to create one manually viaDescribeEventsRequest.builder()- Parameters:
describeEventsRequest- AConsumerthat will call methods onDescribeEventsRequest.Builderto create a request.- Returns:
- Result of the DescribeEvents operation returned by the service.
- Throws:
ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeEventsPaginator
default DescribeEventsIterable describeEventsPaginator(DescribeEventsRequest describeEventsRequest) throws ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeEvents(software.amazon.awssdk.services.memorydb.model.DescribeEventsRequest)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.memorydb.paginators.DescribeEventsIterable responses = client.describeEventsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeEventsIterable responses = client .describeEventsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeEventsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeEventsIterable responses = client.describeEventsPaginator(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
describeEvents(software.amazon.awssdk.services.memorydb.model.DescribeEventsRequest)operation.- Parameters:
describeEventsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeEventsPaginator
default DescribeEventsIterable describeEventsPaginator(Consumer<DescribeEventsRequest.Builder> describeEventsRequest) throws ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeEvents(software.amazon.awssdk.services.memorydb.model.DescribeEventsRequest)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.memorydb.paginators.DescribeEventsIterable responses = client.describeEventsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeEventsIterable responses = client .describeEventsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeEventsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeEventsIterable responses = client.describeEventsPaginator(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
describeEvents(software.amazon.awssdk.services.memorydb.model.DescribeEventsRequest)operation.
This is a convenience which creates an instance of the
DescribeEventsRequest.Builderavoiding the need to create one manually viaDescribeEventsRequest.builder()- Parameters:
describeEventsRequest- AConsumerthat will call methods onDescribeEventsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeMultiRegionClusters
default DescribeMultiRegionClustersResponse describeMultiRegionClusters(DescribeMultiRegionClustersRequest describeMultiRegionClustersRequest) throws ClusterNotFoundException, InvalidParameterCombinationException, InvalidParameterValueException, MultiRegionClusterNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
Returns details about one or more multi-Region clusters.
- Parameters:
describeMultiRegionClustersRequest-- Returns:
- Result of the DescribeMultiRegionClusters operation returned by the service.
- Throws:
ClusterNotFoundExceptionInvalidParameterCombinationExceptionInvalidParameterValueExceptionMultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeMultiRegionClusters
default DescribeMultiRegionClustersResponse describeMultiRegionClusters(Consumer<DescribeMultiRegionClustersRequest.Builder> describeMultiRegionClustersRequest) throws ClusterNotFoundException, InvalidParameterCombinationException, InvalidParameterValueException, MultiRegionClusterNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
Returns details about one or more multi-Region clusters.
This is a convenience which creates an instance of the
DescribeMultiRegionClustersRequest.Builderavoiding the need to create one manually viaDescribeMultiRegionClustersRequest.builder()- Parameters:
describeMultiRegionClustersRequest- AConsumerthat will call methods onDescribeMultiRegionClustersRequest.Builderto create a request.- Returns:
- Result of the DescribeMultiRegionClusters operation returned by the service.
- Throws:
ClusterNotFoundExceptionInvalidParameterCombinationExceptionInvalidParameterValueExceptionMultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeMultiRegionClustersPaginator
default DescribeMultiRegionClustersIterable describeMultiRegionClustersPaginator(DescribeMultiRegionClustersRequest describeMultiRegionClustersRequest) throws ClusterNotFoundException, InvalidParameterCombinationException, InvalidParameterValueException, MultiRegionClusterNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeMultiRegionClusters(software.amazon.awssdk.services.memorydb.model.DescribeMultiRegionClustersRequest)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.memorydb.paginators.DescribeMultiRegionClustersIterable responses = client.describeMultiRegionClustersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeMultiRegionClustersIterable responses = client .describeMultiRegionClustersPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeMultiRegionClustersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeMultiRegionClustersIterable responses = client.describeMultiRegionClustersPaginator(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
describeMultiRegionClusters(software.amazon.awssdk.services.memorydb.model.DescribeMultiRegionClustersRequest)operation.- Parameters:
describeMultiRegionClustersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ClusterNotFoundExceptionInvalidParameterCombinationExceptionInvalidParameterValueExceptionMultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeMultiRegionClustersPaginator
default DescribeMultiRegionClustersIterable describeMultiRegionClustersPaginator(Consumer<DescribeMultiRegionClustersRequest.Builder> describeMultiRegionClustersRequest) throws ClusterNotFoundException, InvalidParameterCombinationException, InvalidParameterValueException, MultiRegionClusterNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeMultiRegionClusters(software.amazon.awssdk.services.memorydb.model.DescribeMultiRegionClustersRequest)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.memorydb.paginators.DescribeMultiRegionClustersIterable responses = client.describeMultiRegionClustersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeMultiRegionClustersIterable responses = client .describeMultiRegionClustersPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeMultiRegionClustersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeMultiRegionClustersIterable responses = client.describeMultiRegionClustersPaginator(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
describeMultiRegionClusters(software.amazon.awssdk.services.memorydb.model.DescribeMultiRegionClustersRequest)operation.
This is a convenience which creates an instance of the
DescribeMultiRegionClustersRequest.Builderavoiding the need to create one manually viaDescribeMultiRegionClustersRequest.builder()- Parameters:
describeMultiRegionClustersRequest- AConsumerthat will call methods onDescribeMultiRegionClustersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ClusterNotFoundExceptionInvalidParameterCombinationExceptionInvalidParameterValueExceptionMultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeParameterGroups
default DescribeParameterGroupsResponse describeParameterGroups(DescribeParameterGroupsRequest describeParameterGroupsRequest) throws ParameterGroupNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns a list of parameter group descriptions. If a parameter group name is specified, the list contains only the descriptions for that group.
- Parameters:
describeParameterGroupsRequest-- Returns:
- Result of the DescribeParameterGroups operation returned by the service.
- Throws:
ParameterGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeParameterGroups
default DescribeParameterGroupsResponse describeParameterGroups(Consumer<DescribeParameterGroupsRequest.Builder> describeParameterGroupsRequest) throws ParameterGroupNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns a list of parameter group descriptions. If a parameter group name is specified, the list contains only the descriptions for that group.
This is a convenience which creates an instance of the
DescribeParameterGroupsRequest.Builderavoiding the need to create one manually viaDescribeParameterGroupsRequest.builder()- Parameters:
describeParameterGroupsRequest- AConsumerthat will call methods onDescribeParameterGroupsRequest.Builderto create a request.- Returns:
- Result of the DescribeParameterGroups operation returned by the service.
- Throws:
ParameterGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeParameterGroupsPaginator
default DescribeParameterGroupsIterable describeParameterGroupsPaginator(DescribeParameterGroupsRequest describeParameterGroupsRequest) throws ParameterGroupNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeParameterGroups(software.amazon.awssdk.services.memorydb.model.DescribeParameterGroupsRequest)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.memorydb.paginators.DescribeParameterGroupsIterable responses = client.describeParameterGroupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeParameterGroupsIterable responses = client .describeParameterGroupsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeParameterGroupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeParameterGroupsIterable responses = client.describeParameterGroupsPaginator(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
describeParameterGroups(software.amazon.awssdk.services.memorydb.model.DescribeParameterGroupsRequest)operation.- Parameters:
describeParameterGroupsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ParameterGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeParameterGroupsPaginator
default DescribeParameterGroupsIterable describeParameterGroupsPaginator(Consumer<DescribeParameterGroupsRequest.Builder> describeParameterGroupsRequest) throws ParameterGroupNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeParameterGroups(software.amazon.awssdk.services.memorydb.model.DescribeParameterGroupsRequest)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.memorydb.paginators.DescribeParameterGroupsIterable responses = client.describeParameterGroupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeParameterGroupsIterable responses = client .describeParameterGroupsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeParameterGroupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeParameterGroupsIterable responses = client.describeParameterGroupsPaginator(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
describeParameterGroups(software.amazon.awssdk.services.memorydb.model.DescribeParameterGroupsRequest)operation.
This is a convenience which creates an instance of the
DescribeParameterGroupsRequest.Builderavoiding the need to create one manually viaDescribeParameterGroupsRequest.builder()- Parameters:
describeParameterGroupsRequest- AConsumerthat will call methods onDescribeParameterGroupsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ParameterGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeParameters
default DescribeParametersResponse describeParameters(DescribeParametersRequest describeParametersRequest) throws ParameterGroupNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns the detailed parameter list for a particular parameter group.
- Parameters:
describeParametersRequest-- Returns:
- Result of the DescribeParameters operation returned by the service.
- Throws:
ParameterGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeParameters
default DescribeParametersResponse describeParameters(Consumer<DescribeParametersRequest.Builder> describeParametersRequest) throws ParameterGroupNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns the detailed parameter list for a particular parameter group.
This is a convenience which creates an instance of the
DescribeParametersRequest.Builderavoiding the need to create one manually viaDescribeParametersRequest.builder()- Parameters:
describeParametersRequest- AConsumerthat will call methods onDescribeParametersRequest.Builderto create a request.- Returns:
- Result of the DescribeParameters operation returned by the service.
- Throws:
ParameterGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeParametersPaginator
default DescribeParametersIterable describeParametersPaginator(DescribeParametersRequest describeParametersRequest) throws ParameterGroupNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeParameters(software.amazon.awssdk.services.memorydb.model.DescribeParametersRequest)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.memorydb.paginators.DescribeParametersIterable responses = client.describeParametersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeParametersIterable responses = client .describeParametersPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeParametersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeParametersIterable responses = client.describeParametersPaginator(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
describeParameters(software.amazon.awssdk.services.memorydb.model.DescribeParametersRequest)operation.- Parameters:
describeParametersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ParameterGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeParametersPaginator
default DescribeParametersIterable describeParametersPaginator(Consumer<DescribeParametersRequest.Builder> describeParametersRequest) throws ParameterGroupNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeParameters(software.amazon.awssdk.services.memorydb.model.DescribeParametersRequest)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.memorydb.paginators.DescribeParametersIterable responses = client.describeParametersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeParametersIterable responses = client .describeParametersPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeParametersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeParametersIterable responses = client.describeParametersPaginator(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
describeParameters(software.amazon.awssdk.services.memorydb.model.DescribeParametersRequest)operation.
This is a convenience which creates an instance of the
DescribeParametersRequest.Builderavoiding the need to create one manually viaDescribeParametersRequest.builder()- Parameters:
describeParametersRequest- AConsumerthat will call methods onDescribeParametersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ParameterGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeReservedNodes
default DescribeReservedNodesResponse describeReservedNodes(DescribeReservedNodesRequest describeReservedNodesRequest) throws ReservedNodeNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns information about reserved nodes for this account, or about a specified reserved node.
- Parameters:
describeReservedNodesRequest-- Returns:
- Result of the DescribeReservedNodes operation returned by the service.
- Throws:
ReservedNodeNotFoundException- The requested node does not exist.ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeReservedNodes
default DescribeReservedNodesResponse describeReservedNodes(Consumer<DescribeReservedNodesRequest.Builder> describeReservedNodesRequest) throws ReservedNodeNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns information about reserved nodes for this account, or about a specified reserved node.
This is a convenience which creates an instance of the
DescribeReservedNodesRequest.Builderavoiding the need to create one manually viaDescribeReservedNodesRequest.builder()- Parameters:
describeReservedNodesRequest- AConsumerthat will call methods onDescribeReservedNodesRequest.Builderto create a request.- Returns:
- Result of the DescribeReservedNodes operation returned by the service.
- Throws:
ReservedNodeNotFoundException- The requested node does not exist.ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeReservedNodesPaginator
default DescribeReservedNodesIterable describeReservedNodesPaginator(DescribeReservedNodesRequest describeReservedNodesRequest) throws ReservedNodeNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeReservedNodes(software.amazon.awssdk.services.memorydb.model.DescribeReservedNodesRequest)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.memorydb.paginators.DescribeReservedNodesIterable responses = client.describeReservedNodesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeReservedNodesIterable responses = client .describeReservedNodesPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeReservedNodesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeReservedNodesIterable responses = client.describeReservedNodesPaginator(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
describeReservedNodes(software.amazon.awssdk.services.memorydb.model.DescribeReservedNodesRequest)operation.- Parameters:
describeReservedNodesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ReservedNodeNotFoundException- The requested node does not exist.ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeReservedNodesPaginator
default DescribeReservedNodesIterable describeReservedNodesPaginator(Consumer<DescribeReservedNodesRequest.Builder> describeReservedNodesRequest) throws ReservedNodeNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeReservedNodes(software.amazon.awssdk.services.memorydb.model.DescribeReservedNodesRequest)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.memorydb.paginators.DescribeReservedNodesIterable responses = client.describeReservedNodesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeReservedNodesIterable responses = client .describeReservedNodesPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeReservedNodesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeReservedNodesIterable responses = client.describeReservedNodesPaginator(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
describeReservedNodes(software.amazon.awssdk.services.memorydb.model.DescribeReservedNodesRequest)operation.
This is a convenience which creates an instance of the
DescribeReservedNodesRequest.Builderavoiding the need to create one manually viaDescribeReservedNodesRequest.builder()- Parameters:
describeReservedNodesRequest- AConsumerthat will call methods onDescribeReservedNodesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ReservedNodeNotFoundException- The requested node does not exist.ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeReservedNodesOfferings
default DescribeReservedNodesOfferingsResponse describeReservedNodesOfferings(DescribeReservedNodesOfferingsRequest describeReservedNodesOfferingsRequest) throws ReservedNodesOfferingNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Lists available reserved node offerings.
- Parameters:
describeReservedNodesOfferingsRequest-- Returns:
- Result of the DescribeReservedNodesOfferings operation returned by the service.
- Throws:
ReservedNodesOfferingNotFoundException- The requested node offering does not exist.ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeReservedNodesOfferings
default DescribeReservedNodesOfferingsResponse describeReservedNodesOfferings(Consumer<DescribeReservedNodesOfferingsRequest.Builder> describeReservedNodesOfferingsRequest) throws ReservedNodesOfferingNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Lists available reserved node offerings.
This is a convenience which creates an instance of the
DescribeReservedNodesOfferingsRequest.Builderavoiding the need to create one manually viaDescribeReservedNodesOfferingsRequest.builder()- Parameters:
describeReservedNodesOfferingsRequest- AConsumerthat will call methods onDescribeReservedNodesOfferingsRequest.Builderto create a request.- Returns:
- Result of the DescribeReservedNodesOfferings operation returned by the service.
- Throws:
ReservedNodesOfferingNotFoundException- The requested node offering does not exist.ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeReservedNodesOfferingsPaginator
default DescribeReservedNodesOfferingsIterable describeReservedNodesOfferingsPaginator(DescribeReservedNodesOfferingsRequest describeReservedNodesOfferingsRequest) throws ReservedNodesOfferingNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeReservedNodesOfferings(software.amazon.awssdk.services.memorydb.model.DescribeReservedNodesOfferingsRequest)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.memorydb.paginators.DescribeReservedNodesOfferingsIterable responses = client.describeReservedNodesOfferingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeReservedNodesOfferingsIterable responses = client .describeReservedNodesOfferingsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeReservedNodesOfferingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeReservedNodesOfferingsIterable responses = client.describeReservedNodesOfferingsPaginator(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
describeReservedNodesOfferings(software.amazon.awssdk.services.memorydb.model.DescribeReservedNodesOfferingsRequest)operation.- Parameters:
describeReservedNodesOfferingsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ReservedNodesOfferingNotFoundException- The requested node offering does not exist.ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeReservedNodesOfferingsPaginator
default DescribeReservedNodesOfferingsIterable describeReservedNodesOfferingsPaginator(Consumer<DescribeReservedNodesOfferingsRequest.Builder> describeReservedNodesOfferingsRequest) throws ReservedNodesOfferingNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeReservedNodesOfferings(software.amazon.awssdk.services.memorydb.model.DescribeReservedNodesOfferingsRequest)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.memorydb.paginators.DescribeReservedNodesOfferingsIterable responses = client.describeReservedNodesOfferingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeReservedNodesOfferingsIterable responses = client .describeReservedNodesOfferingsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeReservedNodesOfferingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeReservedNodesOfferingsIterable responses = client.describeReservedNodesOfferingsPaginator(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
describeReservedNodesOfferings(software.amazon.awssdk.services.memorydb.model.DescribeReservedNodesOfferingsRequest)operation.
This is a convenience which creates an instance of the
DescribeReservedNodesOfferingsRequest.Builderavoiding the need to create one manually viaDescribeReservedNodesOfferingsRequest.builder()- Parameters:
describeReservedNodesOfferingsRequest- AConsumerthat will call methods onDescribeReservedNodesOfferingsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ReservedNodesOfferingNotFoundException- The requested node offering does not exist.ServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeServiceUpdates
default DescribeServiceUpdatesResponse describeServiceUpdates(DescribeServiceUpdatesRequest describeServiceUpdatesRequest) throws InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns details of the service updates.
- Parameters:
describeServiceUpdatesRequest-- Returns:
- Result of the DescribeServiceUpdates operation returned by the service.
- Throws:
InvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeServiceUpdates
default DescribeServiceUpdatesResponse describeServiceUpdates(Consumer<DescribeServiceUpdatesRequest.Builder> describeServiceUpdatesRequest) throws InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns details of the service updates.
This is a convenience which creates an instance of the
DescribeServiceUpdatesRequest.Builderavoiding the need to create one manually viaDescribeServiceUpdatesRequest.builder()- Parameters:
describeServiceUpdatesRequest- AConsumerthat will call methods onDescribeServiceUpdatesRequest.Builderto create a request.- Returns:
- Result of the DescribeServiceUpdates operation returned by the service.
- Throws:
InvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeServiceUpdatesPaginator
default DescribeServiceUpdatesIterable describeServiceUpdatesPaginator(DescribeServiceUpdatesRequest describeServiceUpdatesRequest) throws InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeServiceUpdates(software.amazon.awssdk.services.memorydb.model.DescribeServiceUpdatesRequest)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.memorydb.paginators.DescribeServiceUpdatesIterable responses = client.describeServiceUpdatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeServiceUpdatesIterable responses = client .describeServiceUpdatesPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeServiceUpdatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeServiceUpdatesIterable responses = client.describeServiceUpdatesPaginator(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
describeServiceUpdates(software.amazon.awssdk.services.memorydb.model.DescribeServiceUpdatesRequest)operation.- Parameters:
describeServiceUpdatesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeServiceUpdatesPaginator
default DescribeServiceUpdatesIterable describeServiceUpdatesPaginator(Consumer<DescribeServiceUpdatesRequest.Builder> describeServiceUpdatesRequest) throws InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeServiceUpdates(software.amazon.awssdk.services.memorydb.model.DescribeServiceUpdatesRequest)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.memorydb.paginators.DescribeServiceUpdatesIterable responses = client.describeServiceUpdatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeServiceUpdatesIterable responses = client .describeServiceUpdatesPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeServiceUpdatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeServiceUpdatesIterable responses = client.describeServiceUpdatesPaginator(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
describeServiceUpdates(software.amazon.awssdk.services.memorydb.model.DescribeServiceUpdatesRequest)operation.
This is a convenience which creates an instance of the
DescribeServiceUpdatesRequest.Builderavoiding the need to create one manually viaDescribeServiceUpdatesRequest.builder()- Parameters:
describeServiceUpdatesRequest- AConsumerthat will call methods onDescribeServiceUpdatesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSnapshots
default DescribeSnapshotsResponse describeSnapshots(DescribeSnapshotsRequest describeSnapshotsRequest) throws SnapshotNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns information about cluster snapshots. By default, DescribeSnapshots lists all of your snapshots; it can optionally describe a single snapshot, or just the snapshots associated with a particular cluster.
- Parameters:
describeSnapshotsRequest-- Returns:
- Result of the DescribeSnapshots operation returned by the service.
- Throws:
SnapshotNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSnapshots
default DescribeSnapshotsResponse describeSnapshots(Consumer<DescribeSnapshotsRequest.Builder> describeSnapshotsRequest) throws SnapshotNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns information about cluster snapshots. By default, DescribeSnapshots lists all of your snapshots; it can optionally describe a single snapshot, or just the snapshots associated with a particular cluster.
This is a convenience which creates an instance of the
DescribeSnapshotsRequest.Builderavoiding the need to create one manually viaDescribeSnapshotsRequest.builder()- Parameters:
describeSnapshotsRequest- AConsumerthat will call methods onDescribeSnapshotsRequest.Builderto create a request.- Returns:
- Result of the DescribeSnapshots operation returned by the service.
- Throws:
SnapshotNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSnapshotsPaginator
default DescribeSnapshotsIterable describeSnapshotsPaginator(DescribeSnapshotsRequest describeSnapshotsRequest) throws SnapshotNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeSnapshots(software.amazon.awssdk.services.memorydb.model.DescribeSnapshotsRequest)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.memorydb.paginators.DescribeSnapshotsIterable responses = client.describeSnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeSnapshotsIterable responses = client .describeSnapshotsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeSnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeSnapshotsIterable responses = client.describeSnapshotsPaginator(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
describeSnapshots(software.amazon.awssdk.services.memorydb.model.DescribeSnapshotsRequest)operation.- Parameters:
describeSnapshotsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SnapshotNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSnapshotsPaginator
default DescribeSnapshotsIterable describeSnapshotsPaginator(Consumer<DescribeSnapshotsRequest.Builder> describeSnapshotsRequest) throws SnapshotNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeSnapshots(software.amazon.awssdk.services.memorydb.model.DescribeSnapshotsRequest)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.memorydb.paginators.DescribeSnapshotsIterable responses = client.describeSnapshotsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeSnapshotsIterable responses = client .describeSnapshotsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeSnapshotsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeSnapshotsIterable responses = client.describeSnapshotsPaginator(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
describeSnapshots(software.amazon.awssdk.services.memorydb.model.DescribeSnapshotsRequest)operation.
This is a convenience which creates an instance of the
DescribeSnapshotsRequest.Builderavoiding the need to create one manually viaDescribeSnapshotsRequest.builder()- Parameters:
describeSnapshotsRequest- AConsumerthat will call methods onDescribeSnapshotsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SnapshotNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSubnetGroups
default DescribeSubnetGroupsResponse describeSubnetGroups(DescribeSubnetGroupsRequest describeSubnetGroupsRequest) throws SubnetGroupNotFoundException, ServiceLinkedRoleNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
Returns a list of subnet group descriptions. If a subnet group name is specified, the list contains only the description of that group.
- Parameters:
describeSubnetGroupsRequest-- Returns:
- Result of the DescribeSubnetGroups operation returned by the service.
- Throws:
SubnetGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSubnetGroups
default DescribeSubnetGroupsResponse describeSubnetGroups(Consumer<DescribeSubnetGroupsRequest.Builder> describeSubnetGroupsRequest) throws SubnetGroupNotFoundException, ServiceLinkedRoleNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
Returns a list of subnet group descriptions. If a subnet group name is specified, the list contains only the description of that group.
This is a convenience which creates an instance of the
DescribeSubnetGroupsRequest.Builderavoiding the need to create one manually viaDescribeSubnetGroupsRequest.builder()- Parameters:
describeSubnetGroupsRequest- AConsumerthat will call methods onDescribeSubnetGroupsRequest.Builderto create a request.- Returns:
- Result of the DescribeSubnetGroups operation returned by the service.
- Throws:
SubnetGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSubnetGroupsPaginator
default DescribeSubnetGroupsIterable describeSubnetGroupsPaginator(DescribeSubnetGroupsRequest describeSubnetGroupsRequest) throws SubnetGroupNotFoundException, ServiceLinkedRoleNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeSubnetGroups(software.amazon.awssdk.services.memorydb.model.DescribeSubnetGroupsRequest)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.memorydb.paginators.DescribeSubnetGroupsIterable responses = client.describeSubnetGroupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeSubnetGroupsIterable responses = client .describeSubnetGroupsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeSubnetGroupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeSubnetGroupsIterable responses = client.describeSubnetGroupsPaginator(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
describeSubnetGroups(software.amazon.awssdk.services.memorydb.model.DescribeSubnetGroupsRequest)operation.- Parameters:
describeSubnetGroupsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SubnetGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSubnetGroupsPaginator
default DescribeSubnetGroupsIterable describeSubnetGroupsPaginator(Consumer<DescribeSubnetGroupsRequest.Builder> describeSubnetGroupsRequest) throws SubnetGroupNotFoundException, ServiceLinkedRoleNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeSubnetGroups(software.amazon.awssdk.services.memorydb.model.DescribeSubnetGroupsRequest)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.memorydb.paginators.DescribeSubnetGroupsIterable responses = client.describeSubnetGroupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeSubnetGroupsIterable responses = client .describeSubnetGroupsPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeSubnetGroupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeSubnetGroupsIterable responses = client.describeSubnetGroupsPaginator(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
describeSubnetGroups(software.amazon.awssdk.services.memorydb.model.DescribeSubnetGroupsRequest)operation.
This is a convenience which creates an instance of the
DescribeSubnetGroupsRequest.Builderavoiding the need to create one manually viaDescribeSubnetGroupsRequest.builder()- Parameters:
describeSubnetGroupsRequest- AConsumerthat will call methods onDescribeSubnetGroupsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
SubnetGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeUsers
default DescribeUsersResponse describeUsers(DescribeUsersRequest describeUsersRequest) throws UserNotFoundException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns a list of users.
- Parameters:
describeUsersRequest-- Returns:
- Result of the DescribeUsers operation returned by the service.
- Throws:
UserNotFoundExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeUsers
default DescribeUsersResponse describeUsers(Consumer<DescribeUsersRequest.Builder> describeUsersRequest) throws UserNotFoundException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Returns a list of users.
This is a convenience which creates an instance of the
DescribeUsersRequest.Builderavoiding the need to create one manually viaDescribeUsersRequest.builder()- Parameters:
describeUsersRequest- AConsumerthat will call methods onDescribeUsersRequest.Builderto create a request.- Returns:
- Result of the DescribeUsers operation returned by the service.
- Throws:
UserNotFoundExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeUsersPaginator
default DescribeUsersIterable describeUsersPaginator(DescribeUsersRequest describeUsersRequest) throws UserNotFoundException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeUsers(software.amazon.awssdk.services.memorydb.model.DescribeUsersRequest)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.memorydb.paginators.DescribeUsersIterable responses = client.describeUsersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeUsersIterable responses = client.describeUsersPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeUsersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeUsersIterable responses = client.describeUsersPaginator(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
describeUsers(software.amazon.awssdk.services.memorydb.model.DescribeUsersRequest)operation.- Parameters:
describeUsersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
UserNotFoundExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeUsersPaginator
default DescribeUsersIterable describeUsersPaginator(Consumer<DescribeUsersRequest.Builder> describeUsersRequest) throws UserNotFoundException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
This is a variant of
describeUsers(software.amazon.awssdk.services.memorydb.model.DescribeUsersRequest)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.memorydb.paginators.DescribeUsersIterable responses = client.describeUsersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.memorydb.paginators.DescribeUsersIterable responses = client.describeUsersPaginator(request); for (software.amazon.awssdk.services.memorydb.model.DescribeUsersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.memorydb.paginators.DescribeUsersIterable responses = client.describeUsersPaginator(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
describeUsers(software.amazon.awssdk.services.memorydb.model.DescribeUsersRequest)operation.
This is a convenience which creates an instance of the
DescribeUsersRequest.Builderavoiding the need to create one manually viaDescribeUsersRequest.builder()- Parameters:
describeUsersRequest- AConsumerthat will call methods onDescribeUsersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
UserNotFoundExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
failoverShard
default FailoverShardResponse failoverShard(FailoverShardRequest failoverShardRequest) throws ApiCallRateForCustomerExceededException, InvalidClusterStateException, ShardNotFoundException, ClusterNotFoundException, TestFailoverNotAvailableException, InvalidKmsKeyException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Used to failover a shard. This API is designed for testing the behavior of your application in case of MemoryDB failover. It is not designed to be used as a production-level tool for initiating a failover to overcome a problem you may have with the cluster. Moreover, in certain conditions such as large scale operational events, Amazon may block this API.
- Parameters:
failoverShardRequest-- Returns:
- Result of the FailoverShard operation returned by the service.
- Throws:
ApiCallRateForCustomerExceededExceptionInvalidClusterStateExceptionShardNotFoundExceptionClusterNotFoundExceptionTestFailoverNotAvailableExceptionInvalidKmsKeyExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
failoverShard
default FailoverShardResponse failoverShard(Consumer<FailoverShardRequest.Builder> failoverShardRequest) throws ApiCallRateForCustomerExceededException, InvalidClusterStateException, ShardNotFoundException, ClusterNotFoundException, TestFailoverNotAvailableException, InvalidKmsKeyException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Used to failover a shard. This API is designed for testing the behavior of your application in case of MemoryDB failover. It is not designed to be used as a production-level tool for initiating a failover to overcome a problem you may have with the cluster. Moreover, in certain conditions such as large scale operational events, Amazon may block this API.
This is a convenience which creates an instance of the
FailoverShardRequest.Builderavoiding the need to create one manually viaFailoverShardRequest.builder()- Parameters:
failoverShardRequest- AConsumerthat will call methods onFailoverShardRequest.Builderto create a request.- Returns:
- Result of the FailoverShard operation returned by the service.
- Throws:
ApiCallRateForCustomerExceededExceptionInvalidClusterStateExceptionShardNotFoundExceptionClusterNotFoundExceptionTestFailoverNotAvailableExceptionInvalidKmsKeyExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAllowedMultiRegionClusterUpdates
default ListAllowedMultiRegionClusterUpdatesResponse listAllowedMultiRegionClusterUpdates(ListAllowedMultiRegionClusterUpdatesRequest listAllowedMultiRegionClusterUpdatesRequest) throws MultiRegionClusterNotFoundException, InvalidParameterCombinationException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Lists the allowed updates for a multi-Region cluster.
- Parameters:
listAllowedMultiRegionClusterUpdatesRequest-- Returns:
- Result of the ListAllowedMultiRegionClusterUpdates operation returned by the service.
- Throws:
MultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.InvalidParameterCombinationExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAllowedMultiRegionClusterUpdates
default ListAllowedMultiRegionClusterUpdatesResponse listAllowedMultiRegionClusterUpdates(Consumer<ListAllowedMultiRegionClusterUpdatesRequest.Builder> listAllowedMultiRegionClusterUpdatesRequest) throws MultiRegionClusterNotFoundException, InvalidParameterCombinationException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Lists the allowed updates for a multi-Region cluster.
This is a convenience which creates an instance of the
ListAllowedMultiRegionClusterUpdatesRequest.Builderavoiding the need to create one manually viaListAllowedMultiRegionClusterUpdatesRequest.builder()- Parameters:
listAllowedMultiRegionClusterUpdatesRequest- AConsumerthat will call methods onListAllowedMultiRegionClusterUpdatesRequest.Builderto create a request.- Returns:
- Result of the ListAllowedMultiRegionClusterUpdates operation returned by the service.
- Throws:
MultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.InvalidParameterCombinationExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAllowedNodeTypeUpdates
default ListAllowedNodeTypeUpdatesResponse listAllowedNodeTypeUpdates(ListAllowedNodeTypeUpdatesRequest listAllowedNodeTypeUpdatesRequest) throws ClusterNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterCombinationException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Lists all available node types that you can scale to from your cluster's current node type. When you use the UpdateCluster operation to scale your cluster, the value of the NodeType parameter must be one of the node types returned by this operation.
- Parameters:
listAllowedNodeTypeUpdatesRequest-- Returns:
- Result of the ListAllowedNodeTypeUpdates operation returned by the service.
- Throws:
ClusterNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterCombinationExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAllowedNodeTypeUpdates
default ListAllowedNodeTypeUpdatesResponse listAllowedNodeTypeUpdates(Consumer<ListAllowedNodeTypeUpdatesRequest.Builder> listAllowedNodeTypeUpdatesRequest) throws ClusterNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterCombinationException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Lists all available node types that you can scale to from your cluster's current node type. When you use the UpdateCluster operation to scale your cluster, the value of the NodeType parameter must be one of the node types returned by this operation.
This is a convenience which creates an instance of the
ListAllowedNodeTypeUpdatesRequest.Builderavoiding the need to create one manually viaListAllowedNodeTypeUpdatesRequest.builder()- Parameters:
listAllowedNodeTypeUpdatesRequest- AConsumerthat will call methods onListAllowedNodeTypeUpdatesRequest.Builderto create a request.- Returns:
- Result of the ListAllowedNodeTypeUpdates operation returned by the service.
- Throws:
ClusterNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterCombinationExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTags
default ListTagsResponse listTags(ListTagsRequest listTagsRequest) throws ClusterNotFoundException, InvalidClusterStateException, ParameterGroupNotFoundException, SubnetGroupNotFoundException, SnapshotNotFoundException, InvalidArnException, ServiceLinkedRoleNotFoundException, UserNotFoundException, AclNotFoundException, MultiRegionClusterNotFoundException, MultiRegionParameterGroupNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
Lists all tags currently on a named resource. A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track your MemoryDB resources. For more information, see Tagging your MemoryDB resources.
- Parameters:
listTagsRequest-- Returns:
- Result of the ListTags operation returned by the service.
- Throws:
ClusterNotFoundExceptionInvalidClusterStateExceptionParameterGroupNotFoundExceptionSubnetGroupNotFoundExceptionSnapshotNotFoundExceptionInvalidArnExceptionServiceLinkedRoleNotFoundExceptionUserNotFoundExceptionAclNotFoundExceptionMultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.MultiRegionParameterGroupNotFoundException- The specified multi-Region parameter group does not exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTags
default ListTagsResponse listTags(Consumer<ListTagsRequest.Builder> listTagsRequest) throws ClusterNotFoundException, InvalidClusterStateException, ParameterGroupNotFoundException, SubnetGroupNotFoundException, SnapshotNotFoundException, InvalidArnException, ServiceLinkedRoleNotFoundException, UserNotFoundException, AclNotFoundException, MultiRegionClusterNotFoundException, MultiRegionParameterGroupNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
Lists all tags currently on a named resource. A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track your MemoryDB resources. For more information, see Tagging your MemoryDB resources.
This is a convenience which creates an instance of the
ListTagsRequest.Builderavoiding the need to create one manually viaListTagsRequest.builder()- Parameters:
listTagsRequest- AConsumerthat will call methods onListTagsRequest.Builderto create a request.- Returns:
- Result of the ListTags operation returned by the service.
- Throws:
ClusterNotFoundExceptionInvalidClusterStateExceptionParameterGroupNotFoundExceptionSubnetGroupNotFoundExceptionSnapshotNotFoundExceptionInvalidArnExceptionServiceLinkedRoleNotFoundExceptionUserNotFoundExceptionAclNotFoundExceptionMultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.MultiRegionParameterGroupNotFoundException- The specified multi-Region parameter group does not exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
purchaseReservedNodesOffering
default PurchaseReservedNodesOfferingResponse purchaseReservedNodesOffering(PurchaseReservedNodesOfferingRequest purchaseReservedNodesOfferingRequest) throws ReservedNodesOfferingNotFoundException, ReservedNodeAlreadyExistsException, ReservedNodeQuotaExceededException, ServiceLinkedRoleNotFoundException, TagQuotaPerResourceExceededException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Allows you to purchase a reserved node offering. Reserved nodes are not eligible for cancellation and are non-refundable.
- Parameters:
purchaseReservedNodesOfferingRequest-- Returns:
- Result of the PurchaseReservedNodesOffering operation returned by the service.
- Throws:
ReservedNodesOfferingNotFoundException- The requested node offering does not exist.ReservedNodeAlreadyExistsException- You already have a reservation with the given identifier.ReservedNodeQuotaExceededException- The request cannot be processed because it would exceed the user's node quota.ServiceLinkedRoleNotFoundExceptionTagQuotaPerResourceExceededExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
purchaseReservedNodesOffering
default PurchaseReservedNodesOfferingResponse purchaseReservedNodesOffering(Consumer<PurchaseReservedNodesOfferingRequest.Builder> purchaseReservedNodesOfferingRequest) throws ReservedNodesOfferingNotFoundException, ReservedNodeAlreadyExistsException, ReservedNodeQuotaExceededException, ServiceLinkedRoleNotFoundException, TagQuotaPerResourceExceededException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Allows you to purchase a reserved node offering. Reserved nodes are not eligible for cancellation and are non-refundable.
This is a convenience which creates an instance of the
PurchaseReservedNodesOfferingRequest.Builderavoiding the need to create one manually viaPurchaseReservedNodesOfferingRequest.builder()- Parameters:
purchaseReservedNodesOfferingRequest- AConsumerthat will call methods onPurchaseReservedNodesOfferingRequest.Builderto create a request.- Returns:
- Result of the PurchaseReservedNodesOffering operation returned by the service.
- Throws:
ReservedNodesOfferingNotFoundException- The requested node offering does not exist.ReservedNodeAlreadyExistsException- You already have a reservation with the given identifier.ReservedNodeQuotaExceededException- The request cannot be processed because it would exceed the user's node quota.ServiceLinkedRoleNotFoundExceptionTagQuotaPerResourceExceededExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
resetParameterGroup
default ResetParameterGroupResponse resetParameterGroup(ResetParameterGroupRequest resetParameterGroupRequest) throws InvalidParameterGroupStateException, ParameterGroupNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Modifies the parameters of a parameter group to the engine or system default value. You can reset specific parameters by submitting a list of parameter names. To reset the entire parameter group, specify the AllParameters and ParameterGroupName parameters.
- Parameters:
resetParameterGroupRequest-- Returns:
- Result of the ResetParameterGroup operation returned by the service.
- Throws:
InvalidParameterGroupStateExceptionParameterGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
resetParameterGroup
default ResetParameterGroupResponse resetParameterGroup(Consumer<ResetParameterGroupRequest.Builder> resetParameterGroupRequest) throws InvalidParameterGroupStateException, ParameterGroupNotFoundException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Modifies the parameters of a parameter group to the engine or system default value. You can reset specific parameters by submitting a list of parameter names. To reset the entire parameter group, specify the AllParameters and ParameterGroupName parameters.
This is a convenience which creates an instance of the
ResetParameterGroupRequest.Builderavoiding the need to create one manually viaResetParameterGroupRequest.builder()- Parameters:
resetParameterGroupRequest- AConsumerthat will call methods onResetParameterGroupRequest.Builderto create a request.- Returns:
- Result of the ResetParameterGroup operation returned by the service.
- Throws:
InvalidParameterGroupStateExceptionParameterGroupNotFoundExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ClusterNotFoundException, ParameterGroupNotFoundException, SubnetGroupNotFoundException, InvalidClusterStateException, SnapshotNotFoundException, UserNotFoundException, AclNotFoundException, MultiRegionClusterNotFoundException, MultiRegionParameterGroupNotFoundException, TagQuotaPerResourceExceededException, InvalidArnException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track all your MemoryDB resources. When you add or remove tags on clusters, those actions will be replicated to all nodes in the cluster. For more information, see Resource-level permissions.
For example, you can use cost-allocation tags to your MemoryDB resources, Amazon generates a cost allocation report as a comma-separated value (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories (such as cost centers, application names, or owners) to organize your costs across multiple services. For more information, see Using Cost Allocation Tags.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ClusterNotFoundExceptionParameterGroupNotFoundExceptionSubnetGroupNotFoundExceptionInvalidClusterStateExceptionSnapshotNotFoundExceptionUserNotFoundExceptionAclNotFoundExceptionMultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.MultiRegionParameterGroupNotFoundException- The specified multi-Region parameter group does not exist.TagQuotaPerResourceExceededExceptionInvalidArnExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ClusterNotFoundException, ParameterGroupNotFoundException, SubnetGroupNotFoundException, InvalidClusterStateException, SnapshotNotFoundException, UserNotFoundException, AclNotFoundException, MultiRegionClusterNotFoundException, MultiRegionParameterGroupNotFoundException, TagQuotaPerResourceExceededException, InvalidArnException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track all your MemoryDB resources. When you add or remove tags on clusters, those actions will be replicated to all nodes in the cluster. For more information, see Resource-level permissions.
For example, you can use cost-allocation tags to your MemoryDB resources, Amazon generates a cost allocation report as a comma-separated value (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories (such as cost centers, application names, or owners) to organize your costs across multiple services. For more information, see Using Cost Allocation Tags.
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.
- Throws:
ClusterNotFoundExceptionParameterGroupNotFoundExceptionSubnetGroupNotFoundExceptionInvalidClusterStateExceptionSnapshotNotFoundExceptionUserNotFoundExceptionAclNotFoundExceptionMultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.MultiRegionParameterGroupNotFoundException- The specified multi-Region parameter group does not exist.TagQuotaPerResourceExceededExceptionInvalidArnExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ClusterNotFoundException, InvalidClusterStateException, ParameterGroupNotFoundException, SubnetGroupNotFoundException, SnapshotNotFoundException, InvalidArnException, TagNotFoundException, ServiceLinkedRoleNotFoundException, UserNotFoundException, AclNotFoundException, InvalidParameterValueException, MultiRegionClusterNotFoundException, MultiRegionParameterGroupNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
Use this operation to remove tags on a resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ClusterNotFoundExceptionInvalidClusterStateExceptionParameterGroupNotFoundExceptionSubnetGroupNotFoundExceptionSnapshotNotFoundExceptionInvalidArnExceptionTagNotFoundExceptionServiceLinkedRoleNotFoundExceptionUserNotFoundExceptionAclNotFoundExceptionInvalidParameterValueExceptionMultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.MultiRegionParameterGroupNotFoundException- The specified multi-Region parameter group does not exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ClusterNotFoundException, InvalidClusterStateException, ParameterGroupNotFoundException, SubnetGroupNotFoundException, SnapshotNotFoundException, InvalidArnException, TagNotFoundException, ServiceLinkedRoleNotFoundException, UserNotFoundException, AclNotFoundException, InvalidParameterValueException, MultiRegionClusterNotFoundException, MultiRegionParameterGroupNotFoundException, AwsServiceException, SdkClientException, MemoryDbException
Use this operation to remove tags on a resource.
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.
- Throws:
ClusterNotFoundExceptionInvalidClusterStateExceptionParameterGroupNotFoundExceptionSubnetGroupNotFoundExceptionSnapshotNotFoundExceptionInvalidArnExceptionTagNotFoundExceptionServiceLinkedRoleNotFoundExceptionUserNotFoundExceptionAclNotFoundExceptionInvalidParameterValueExceptionMultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.MultiRegionParameterGroupNotFoundException- The specified multi-Region parameter group does not exist.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateACL
default UpdateAclResponse updateACL(UpdateAclRequest updateAclRequest) throws AclNotFoundException, UserNotFoundException, DuplicateUserNameException, DefaultUserRequiredException, InvalidAclStateException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Changes the list of users that belong to the Access Control List.
- Parameters:
updateAclRequest-- Returns:
- Result of the UpdateACL operation returned by the service.
- Throws:
AclNotFoundExceptionUserNotFoundExceptionDuplicateUserNameExceptionDefaultUserRequiredExceptionInvalidAclStateExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateACL
default UpdateAclResponse updateACL(Consumer<UpdateAclRequest.Builder> updateAclRequest) throws AclNotFoundException, UserNotFoundException, DuplicateUserNameException, DefaultUserRequiredException, InvalidAclStateException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Changes the list of users that belong to the Access Control List.
This is a convenience which creates an instance of the
UpdateAclRequest.Builderavoiding the need to create one manually viaUpdateAclRequest.builder()- Parameters:
updateAclRequest- AConsumerthat will call methods onUpdateAclRequest.Builderto create a request.- Returns:
- Result of the UpdateACL operation returned by the service.
- Throws:
AclNotFoundExceptionUserNotFoundExceptionDuplicateUserNameExceptionDefaultUserRequiredExceptionInvalidAclStateExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateCluster
default UpdateClusterResponse updateCluster(UpdateClusterRequest updateClusterRequest) throws ClusterNotFoundException, InvalidClusterStateException, InvalidNodeStateException, ParameterGroupNotFoundException, InvalidVpcNetworkStateException, ServiceLinkedRoleNotFoundException, InvalidKmsKeyException, NodeQuotaForClusterExceededException, ClusterQuotaForCustomerExceededException, ShardsPerClusterQuotaExceededException, NodeQuotaForCustomerExceededException, NoOperationException, InvalidAclStateException, AclNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Modifies the settings for a cluster. You can use this operation to change one or more cluster configuration settings by specifying the settings and the new values.
- Parameters:
updateClusterRequest-- Returns:
- Result of the UpdateCluster operation returned by the service.
- Throws:
ClusterNotFoundExceptionInvalidClusterStateExceptionInvalidNodeStateExceptionParameterGroupNotFoundExceptionInvalidVpcNetworkStateExceptionServiceLinkedRoleNotFoundExceptionInvalidKmsKeyExceptionNodeQuotaForClusterExceededExceptionClusterQuotaForCustomerExceededExceptionShardsPerClusterQuotaExceededExceptionNodeQuotaForCustomerExceededExceptionNoOperationExceptionInvalidAclStateExceptionAclNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateCluster
default UpdateClusterResponse updateCluster(Consumer<UpdateClusterRequest.Builder> updateClusterRequest) throws ClusterNotFoundException, InvalidClusterStateException, InvalidNodeStateException, ParameterGroupNotFoundException, InvalidVpcNetworkStateException, ServiceLinkedRoleNotFoundException, InvalidKmsKeyException, NodeQuotaForClusterExceededException, ClusterQuotaForCustomerExceededException, ShardsPerClusterQuotaExceededException, NodeQuotaForCustomerExceededException, NoOperationException, InvalidAclStateException, AclNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Modifies the settings for a cluster. You can use this operation to change one or more cluster configuration settings by specifying the settings and the new values.
This is a convenience which creates an instance of the
UpdateClusterRequest.Builderavoiding the need to create one manually viaUpdateClusterRequest.builder()- Parameters:
updateClusterRequest- AConsumerthat will call methods onUpdateClusterRequest.Builderto create a request.- Returns:
- Result of the UpdateCluster operation returned by the service.
- Throws:
ClusterNotFoundExceptionInvalidClusterStateExceptionInvalidNodeStateExceptionParameterGroupNotFoundExceptionInvalidVpcNetworkStateExceptionServiceLinkedRoleNotFoundExceptionInvalidKmsKeyExceptionNodeQuotaForClusterExceededExceptionClusterQuotaForCustomerExceededExceptionShardsPerClusterQuotaExceededExceptionNodeQuotaForCustomerExceededExceptionNoOperationExceptionInvalidAclStateExceptionAclNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateMultiRegionCluster
default UpdateMultiRegionClusterResponse updateMultiRegionCluster(UpdateMultiRegionClusterRequest updateMultiRegionClusterRequest) throws MultiRegionClusterNotFoundException, MultiRegionParameterGroupNotFoundException, InvalidMultiRegionClusterStateException, InvalidParameterCombinationException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Updates the configuration of an existing multi-Region cluster.
- Parameters:
updateMultiRegionClusterRequest-- Returns:
- Result of the UpdateMultiRegionCluster operation returned by the service.
- Throws:
MultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.MultiRegionParameterGroupNotFoundException- The specified multi-Region parameter group does not exist.InvalidMultiRegionClusterStateException- The requested operation cannot be performed on the multi-Region cluster in its current state.InvalidParameterCombinationExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateMultiRegionCluster
default UpdateMultiRegionClusterResponse updateMultiRegionCluster(Consumer<UpdateMultiRegionClusterRequest.Builder> updateMultiRegionClusterRequest) throws MultiRegionClusterNotFoundException, MultiRegionParameterGroupNotFoundException, InvalidMultiRegionClusterStateException, InvalidParameterCombinationException, InvalidParameterValueException, AwsServiceException, SdkClientException, MemoryDbException
Updates the configuration of an existing multi-Region cluster.
This is a convenience which creates an instance of the
UpdateMultiRegionClusterRequest.Builderavoiding the need to create one manually viaUpdateMultiRegionClusterRequest.builder()- Parameters:
updateMultiRegionClusterRequest- AConsumerthat will call methods onUpdateMultiRegionClusterRequest.Builderto create a request.- Returns:
- Result of the UpdateMultiRegionCluster operation returned by the service.
- Throws:
MultiRegionClusterNotFoundException- The specified multi-Region cluster does not exist.MultiRegionParameterGroupNotFoundException- The specified multi-Region parameter group does not exist.InvalidMultiRegionClusterStateException- The requested operation cannot be performed on the multi-Region cluster in its current state.InvalidParameterCombinationExceptionInvalidParameterValueExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateParameterGroup
default UpdateParameterGroupResponse updateParameterGroup(UpdateParameterGroupRequest updateParameterGroupRequest) throws ParameterGroupNotFoundException, InvalidParameterGroupStateException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Updates the parameters of a parameter group. You can modify up to 20 parameters in a single request by submitting a list parameter name and value pairs.
- Parameters:
updateParameterGroupRequest-- Returns:
- Result of the UpdateParameterGroup operation returned by the service.
- Throws:
ParameterGroupNotFoundExceptionInvalidParameterGroupStateExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateParameterGroup
default UpdateParameterGroupResponse updateParameterGroup(Consumer<UpdateParameterGroupRequest.Builder> updateParameterGroupRequest) throws ParameterGroupNotFoundException, InvalidParameterGroupStateException, ServiceLinkedRoleNotFoundException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Updates the parameters of a parameter group. You can modify up to 20 parameters in a single request by submitting a list parameter name and value pairs.
This is a convenience which creates an instance of the
UpdateParameterGroupRequest.Builderavoiding the need to create one manually viaUpdateParameterGroupRequest.builder()- Parameters:
updateParameterGroupRequest- AConsumerthat will call methods onUpdateParameterGroupRequest.Builderto create a request.- Returns:
- Result of the UpdateParameterGroup operation returned by the service.
- Throws:
ParameterGroupNotFoundExceptionInvalidParameterGroupStateExceptionServiceLinkedRoleNotFoundExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateSubnetGroup
default UpdateSubnetGroupResponse updateSubnetGroup(UpdateSubnetGroupRequest updateSubnetGroupRequest) throws SubnetGroupNotFoundException, SubnetQuotaExceededException, SubnetInUseException, InvalidSubnetException, ServiceLinkedRoleNotFoundException, SubnetNotAllowedException, AwsServiceException, SdkClientException, MemoryDbException
Updates a subnet group. For more information, see Updating a subnet group
- Parameters:
updateSubnetGroupRequest-- Returns:
- Result of the UpdateSubnetGroup operation returned by the service.
- Throws:
SubnetGroupNotFoundExceptionSubnetQuotaExceededExceptionSubnetInUseExceptionInvalidSubnetExceptionServiceLinkedRoleNotFoundExceptionSubnetNotAllowedExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateSubnetGroup
default UpdateSubnetGroupResponse updateSubnetGroup(Consumer<UpdateSubnetGroupRequest.Builder> updateSubnetGroupRequest) throws SubnetGroupNotFoundException, SubnetQuotaExceededException, SubnetInUseException, InvalidSubnetException, ServiceLinkedRoleNotFoundException, SubnetNotAllowedException, AwsServiceException, SdkClientException, MemoryDbException
Updates a subnet group. For more information, see Updating a subnet group
This is a convenience which creates an instance of the
UpdateSubnetGroupRequest.Builderavoiding the need to create one manually viaUpdateSubnetGroupRequest.builder()- Parameters:
updateSubnetGroupRequest- AConsumerthat will call methods onUpdateSubnetGroupRequest.Builderto create a request.- Returns:
- Result of the UpdateSubnetGroup operation returned by the service.
- Throws:
SubnetGroupNotFoundExceptionSubnetQuotaExceededExceptionSubnetInUseExceptionInvalidSubnetExceptionServiceLinkedRoleNotFoundExceptionSubnetNotAllowedExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateUser
default UpdateUserResponse updateUser(UpdateUserRequest updateUserRequest) throws UserNotFoundException, InvalidUserStateException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Changes user password(s) and/or access string.
- Parameters:
updateUserRequest-- Returns:
- Result of the UpdateUser operation returned by the service.
- Throws:
UserNotFoundExceptionInvalidUserStateExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateUser
default UpdateUserResponse updateUser(Consumer<UpdateUserRequest.Builder> updateUserRequest) throws UserNotFoundException, InvalidUserStateException, InvalidParameterValueException, InvalidParameterCombinationException, AwsServiceException, SdkClientException, MemoryDbException
Changes user password(s) and/or access string.
This is a convenience which creates an instance of the
UpdateUserRequest.Builderavoiding the need to create one manually viaUpdateUserRequest.builder()- Parameters:
updateUserRequest- AConsumerthat will call methods onUpdateUserRequest.Builderto create a request.- Returns:
- Result of the UpdateUser operation returned by the service.
- Throws:
UserNotFoundExceptionInvalidUserStateExceptionInvalidParameterValueExceptionInvalidParameterCombinationExceptionSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.MemoryDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static MemoryDbClient create()
Create aMemoryDbClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static MemoryDbClientBuilder builder()
Create a builder that can be used to configure and create aMemoryDbClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default MemoryDbServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-