ElastiCacheClient#
Index > ElastiCache > ElastiCacheClient
Auto-generated documentation for ElastiCache type annotations stubs module mypy-boto3-elasticache.
ElastiCacheClient#
Type annotations and code completion for boto3.client("elasticache")
.
boto3 documentation
# ElastiCacheClient usage example
from boto3.session import Session
from mypy_boto3_elasticache.client import ElastiCacheClient
def get_elasticache_client() -> ElastiCacheClient:
return Session().client("elasticache")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("elasticache").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("elasticache")
try:
do_something(client)
except (
client.exceptions.APICallRateForCustomerExceededFault,
client.exceptions.AuthorizationAlreadyExistsFault,
client.exceptions.AuthorizationNotFoundFault,
client.exceptions.CacheClusterAlreadyExistsFault,
client.exceptions.CacheClusterNotFoundFault,
client.exceptions.CacheParameterGroupAlreadyExistsFault,
client.exceptions.CacheParameterGroupNotFoundFault,
client.exceptions.CacheParameterGroupQuotaExceededFault,
client.exceptions.CacheSecurityGroupAlreadyExistsFault,
client.exceptions.CacheSecurityGroupNotFoundFault,
client.exceptions.CacheSecurityGroupQuotaExceededFault,
client.exceptions.CacheSubnetGroupAlreadyExistsFault,
client.exceptions.CacheSubnetGroupInUse,
client.exceptions.CacheSubnetGroupNotFoundFault,
client.exceptions.CacheSubnetGroupQuotaExceededFault,
client.exceptions.CacheSubnetQuotaExceededFault,
client.exceptions.ClientError,
client.exceptions.ClusterQuotaForCustomerExceededFault,
client.exceptions.DefaultUserAssociatedToUserGroupFault,
client.exceptions.DefaultUserRequired,
client.exceptions.DuplicateUserNameFault,
client.exceptions.GlobalReplicationGroupAlreadyExistsFault,
client.exceptions.GlobalReplicationGroupNotFoundFault,
client.exceptions.InsufficientCacheClusterCapacityFault,
client.exceptions.InvalidARNFault,
client.exceptions.InvalidCacheClusterStateFault,
client.exceptions.InvalidCacheParameterGroupStateFault,
client.exceptions.InvalidCacheSecurityGroupStateFault,
client.exceptions.InvalidCredentialsException,
client.exceptions.InvalidGlobalReplicationGroupStateFault,
client.exceptions.InvalidKMSKeyFault,
client.exceptions.InvalidParameterCombinationException,
client.exceptions.InvalidParameterValueException,
client.exceptions.InvalidReplicationGroupStateFault,
client.exceptions.InvalidServerlessCacheSnapshotStateFault,
client.exceptions.InvalidServerlessCacheStateFault,
client.exceptions.InvalidSnapshotStateFault,
client.exceptions.InvalidSubnet,
client.exceptions.InvalidUserGroupStateFault,
client.exceptions.InvalidUserStateFault,
client.exceptions.InvalidVPCNetworkStateFault,
client.exceptions.NoOperationFault,
client.exceptions.NodeGroupNotFoundFault,
client.exceptions.NodeGroupsPerReplicationGroupQuotaExceededFault,
client.exceptions.NodeQuotaForClusterExceededFault,
client.exceptions.NodeQuotaForCustomerExceededFault,
client.exceptions.ReplicationGroupAlreadyExistsFault,
client.exceptions.ReplicationGroupAlreadyUnderMigrationFault,
client.exceptions.ReplicationGroupNotFoundFault,
client.exceptions.ReplicationGroupNotUnderMigrationFault,
client.exceptions.ReservedCacheNodeAlreadyExistsFault,
client.exceptions.ReservedCacheNodeNotFoundFault,
client.exceptions.ReservedCacheNodeQuotaExceededFault,
client.exceptions.ReservedCacheNodesOfferingNotFoundFault,
client.exceptions.ServerlessCacheAlreadyExistsFault,
client.exceptions.ServerlessCacheNotFoundFault,
client.exceptions.ServerlessCacheQuotaForCustomerExceededFault,
client.exceptions.ServerlessCacheSnapshotAlreadyExistsFault,
client.exceptions.ServerlessCacheSnapshotNotFoundFault,
client.exceptions.ServerlessCacheSnapshotQuotaExceededFault,
client.exceptions.ServiceLinkedRoleNotFoundFault,
client.exceptions.ServiceUpdateNotFoundFault,
client.exceptions.SnapshotAlreadyExistsFault,
client.exceptions.SnapshotFeatureNotSupportedFault,
client.exceptions.SnapshotNotFoundFault,
client.exceptions.SnapshotQuotaExceededFault,
client.exceptions.SubnetInUse,
client.exceptions.SubnetNotAllowedFault,
client.exceptions.TagNotFoundFault,
client.exceptions.TagQuotaPerResourceExceeded,
client.exceptions.TestFailoverNotAvailableFault,
client.exceptions.UserAlreadyExistsFault,
client.exceptions.UserGroupAlreadyExistsFault,
client.exceptions.UserGroupNotFoundFault,
client.exceptions.UserGroupQuotaExceededFault,
client.exceptions.UserNotFoundFault,
client.exceptions.UserQuotaExceededFault,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_elasticache.client import Exceptions
def handle_error(exc: Exceptions.APICallRateForCustomerExceededFault) -> None:
...
Methods#
add_tags_to_resource#
A tag is a key-value pair where the key and value are case-sensitive.
Type annotations and code completion for boto3.client("elasticache").add_tags_to_resource
method.
boto3 documentation
# add_tags_to_resource method definition
def add_tags_to_resource(
self,
*,
ResourceName: str,
Tags: Sequence[TagTypeDef], # (1)
) -> TagListMessageTypeDef: # (2)
...
- See TagTypeDef
- See TagListMessageTypeDef
# add_tags_to_resource method usage example with argument unpacking
kwargs: AddTagsToResourceMessageRequestTypeDef = { # (1)
"ResourceName": ...,
"Tags": ...,
}
parent.add_tags_to_resource(**kwargs)
authorize_cache_security_group_ingress#
Allows network ingress to a cache security group.
Type annotations and code completion for boto3.client("elasticache").authorize_cache_security_group_ingress
method.
boto3 documentation
# authorize_cache_security_group_ingress method definition
def authorize_cache_security_group_ingress(
self,
*,
CacheSecurityGroupName: str,
EC2SecurityGroupName: str,
EC2SecurityGroupOwnerId: str,
) -> AuthorizeCacheSecurityGroupIngressResultTypeDef: # (1)
...
# authorize_cache_security_group_ingress method usage example with argument unpacking
kwargs: AuthorizeCacheSecurityGroupIngressMessageRequestTypeDef = { # (1)
"CacheSecurityGroupName": ...,
"EC2SecurityGroupName": ...,
"EC2SecurityGroupOwnerId": ...,
}
parent.authorize_cache_security_group_ingress(**kwargs)
batch_apply_update_action#
Apply the service update.
Type annotations and code completion for boto3.client("elasticache").batch_apply_update_action
method.
boto3 documentation
# batch_apply_update_action method definition
def batch_apply_update_action(
self,
*,
ServiceUpdateName: str,
ReplicationGroupIds: Sequence[str] = ...,
CacheClusterIds: Sequence[str] = ...,
) -> UpdateActionResultsMessageTypeDef: # (1)
...
# batch_apply_update_action method usage example with argument unpacking
kwargs: BatchApplyUpdateActionMessageRequestTypeDef = { # (1)
"ServiceUpdateName": ...,
}
parent.batch_apply_update_action(**kwargs)
batch_stop_update_action#
Stop the service update.
Type annotations and code completion for boto3.client("elasticache").batch_stop_update_action
method.
boto3 documentation
# batch_stop_update_action method definition
def batch_stop_update_action(
self,
*,
ServiceUpdateName: str,
ReplicationGroupIds: Sequence[str] = ...,
CacheClusterIds: Sequence[str] = ...,
) -> UpdateActionResultsMessageTypeDef: # (1)
...
# batch_stop_update_action method usage example with argument unpacking
kwargs: BatchStopUpdateActionMessageRequestTypeDef = { # (1)
"ServiceUpdateName": ...,
}
parent.batch_stop_update_action(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("elasticache").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("elasticache").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
complete_migration#
Complete the migration of data.
Type annotations and code completion for boto3.client("elasticache").complete_migration
method.
boto3 documentation
# complete_migration method definition
def complete_migration(
self,
*,
ReplicationGroupId: str,
Force: bool = ...,
) -> CompleteMigrationResponseTypeDef: # (1)
...
# complete_migration method usage example with argument unpacking
kwargs: CompleteMigrationMessageRequestTypeDef = { # (1)
"ReplicationGroupId": ...,
}
parent.complete_migration(**kwargs)
copy_serverless_cache_snapshot#
Creates a copy of an existing serverless cache's snapshot.
Type annotations and code completion for boto3.client("elasticache").copy_serverless_cache_snapshot
method.
boto3 documentation
# copy_serverless_cache_snapshot method definition
def copy_serverless_cache_snapshot(
self,
*,
SourceServerlessCacheSnapshotName: str,
TargetServerlessCacheSnapshotName: str,
KmsKeyId: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CopyServerlessCacheSnapshotResponseTypeDef: # (2)
...
# copy_serverless_cache_snapshot method usage example with argument unpacking
kwargs: CopyServerlessCacheSnapshotRequestRequestTypeDef = { # (1)
"SourceServerlessCacheSnapshotName": ...,
"TargetServerlessCacheSnapshotName": ...,
}
parent.copy_serverless_cache_snapshot(**kwargs)
copy_snapshot#
Makes a copy of an existing snapshot.
Type annotations and code completion for boto3.client("elasticache").copy_snapshot
method.
boto3 documentation
# copy_snapshot method definition
def copy_snapshot(
self,
*,
SourceSnapshotName: str,
TargetSnapshotName: str,
TargetBucket: str = ...,
KmsKeyId: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CopySnapshotResultTypeDef: # (2)
...
- See TagTypeDef
- See CopySnapshotResultTypeDef
# copy_snapshot method usage example with argument unpacking
kwargs: CopySnapshotMessageRequestTypeDef = { # (1)
"SourceSnapshotName": ...,
"TargetSnapshotName": ...,
}
parent.copy_snapshot(**kwargs)
create_cache_cluster#
Creates a cluster.
Type annotations and code completion for boto3.client("elasticache").create_cache_cluster
method.
boto3 documentation
# create_cache_cluster method definition
def create_cache_cluster(
self,
*,
CacheClusterId: str,
ReplicationGroupId: str = ...,
AZMode: AZModeType = ..., # (1)
PreferredAvailabilityZone: str = ...,
PreferredAvailabilityZones: Sequence[str] = ...,
NumCacheNodes: int = ...,
CacheNodeType: str = ...,
Engine: str = ...,
EngineVersion: str = ...,
CacheParameterGroupName: str = ...,
CacheSubnetGroupName: str = ...,
CacheSecurityGroupNames: Sequence[str] = ...,
SecurityGroupIds: Sequence[str] = ...,
Tags: Sequence[TagTypeDef] = ..., # (2)
SnapshotArns: Sequence[str] = ...,
SnapshotName: str = ...,
PreferredMaintenanceWindow: str = ...,
Port: int = ...,
NotificationTopicArn: str = ...,
AutoMinorVersionUpgrade: bool = ...,
SnapshotRetentionLimit: int = ...,
SnapshotWindow: str = ...,
AuthToken: str = ...,
OutpostMode: OutpostModeType = ..., # (3)
PreferredOutpostArn: str = ...,
PreferredOutpostArns: Sequence[str] = ...,
LogDeliveryConfigurations: Sequence[LogDeliveryConfigurationRequestTypeDef] = ..., # (4)
TransitEncryptionEnabled: bool = ...,
NetworkType: NetworkTypeType = ..., # (5)
IpDiscovery: IpDiscoveryType = ..., # (6)
) -> CreateCacheClusterResultTypeDef: # (7)
...
- See AZModeType
- See TagTypeDef
- See OutpostModeType
- See LogDeliveryConfigurationRequestTypeDef
- See NetworkTypeType
- See IpDiscoveryType
- See CreateCacheClusterResultTypeDef
# create_cache_cluster method usage example with argument unpacking
kwargs: CreateCacheClusterMessageRequestTypeDef = { # (1)
"CacheClusterId": ...,
}
parent.create_cache_cluster(**kwargs)
create_cache_parameter_group#
Creates a new Amazon ElastiCache cache parameter group.
Type annotations and code completion for boto3.client("elasticache").create_cache_parameter_group
method.
boto3 documentation
# create_cache_parameter_group method definition
def create_cache_parameter_group(
self,
*,
CacheParameterGroupName: str,
CacheParameterGroupFamily: str,
Description: str,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreateCacheParameterGroupResultTypeDef: # (2)
...
# create_cache_parameter_group method usage example with argument unpacking
kwargs: CreateCacheParameterGroupMessageRequestTypeDef = { # (1)
"CacheParameterGroupName": ...,
"CacheParameterGroupFamily": ...,
"Description": ...,
}
parent.create_cache_parameter_group(**kwargs)
create_cache_security_group#
Creates a new cache security group.
Type annotations and code completion for boto3.client("elasticache").create_cache_security_group
method.
boto3 documentation
# create_cache_security_group method definition
def create_cache_security_group(
self,
*,
CacheSecurityGroupName: str,
Description: str,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreateCacheSecurityGroupResultTypeDef: # (2)
...
# create_cache_security_group method usage example with argument unpacking
kwargs: CreateCacheSecurityGroupMessageRequestTypeDef = { # (1)
"CacheSecurityGroupName": ...,
"Description": ...,
}
parent.create_cache_security_group(**kwargs)
create_cache_subnet_group#
Creates a new cache subnet group.
Type annotations and code completion for boto3.client("elasticache").create_cache_subnet_group
method.
boto3 documentation
# create_cache_subnet_group method definition
def create_cache_subnet_group(
self,
*,
CacheSubnetGroupName: str,
CacheSubnetGroupDescription: str,
SubnetIds: Sequence[str],
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreateCacheSubnetGroupResultTypeDef: # (2)
...
# create_cache_subnet_group method usage example with argument unpacking
kwargs: CreateCacheSubnetGroupMessageRequestTypeDef = { # (1)
"CacheSubnetGroupName": ...,
"CacheSubnetGroupDescription": ...,
"SubnetIds": ...,
}
parent.create_cache_subnet_group(**kwargs)
create_global_replication_group#
Global Datastore offers fully managed, fast, reliable and secure cross-region replication.
Type annotations and code completion for boto3.client("elasticache").create_global_replication_group
method.
boto3 documentation
# create_global_replication_group method definition
def create_global_replication_group(
self,
*,
GlobalReplicationGroupIdSuffix: str,
PrimaryReplicationGroupId: str,
GlobalReplicationGroupDescription: str = ...,
) -> CreateGlobalReplicationGroupResultTypeDef: # (1)
...
# create_global_replication_group method usage example with argument unpacking
kwargs: CreateGlobalReplicationGroupMessageRequestTypeDef = { # (1)
"GlobalReplicationGroupIdSuffix": ...,
"PrimaryReplicationGroupId": ...,
}
parent.create_global_replication_group(**kwargs)
create_replication_group#
Creates a Valkey or Redis OSS (cluster mode disabled) or a Valkey or Redis OSS (cluster mode enabled) replication group.
Type annotations and code completion for boto3.client("elasticache").create_replication_group
method.
boto3 documentation
# create_replication_group method definition
def create_replication_group(
self,
*,
ReplicationGroupId: str,
ReplicationGroupDescription: str,
GlobalReplicationGroupId: str = ...,
PrimaryClusterId: str = ...,
AutomaticFailoverEnabled: bool = ...,
MultiAZEnabled: bool = ...,
NumCacheClusters: int = ...,
PreferredCacheClusterAZs: Sequence[str] = ...,
NumNodeGroups: int = ...,
ReplicasPerNodeGroup: int = ...,
NodeGroupConfiguration: Sequence[NodeGroupConfigurationUnionTypeDef] = ..., # (1)
CacheNodeType: str = ...,
Engine: str = ...,
EngineVersion: str = ...,
CacheParameterGroupName: str = ...,
CacheSubnetGroupName: str = ...,
CacheSecurityGroupNames: Sequence[str] = ...,
SecurityGroupIds: Sequence[str] = ...,
Tags: Sequence[TagTypeDef] = ..., # (2)
SnapshotArns: Sequence[str] = ...,
SnapshotName: str = ...,
PreferredMaintenanceWindow: str = ...,
Port: int = ...,
NotificationTopicArn: str = ...,
AutoMinorVersionUpgrade: bool = ...,
SnapshotRetentionLimit: int = ...,
SnapshotWindow: str = ...,
AuthToken: str = ...,
TransitEncryptionEnabled: bool = ...,
AtRestEncryptionEnabled: bool = ...,
KmsKeyId: str = ...,
UserGroupIds: Sequence[str] = ...,
LogDeliveryConfigurations: Sequence[LogDeliveryConfigurationRequestTypeDef] = ..., # (3)
DataTieringEnabled: bool = ...,
NetworkType: NetworkTypeType = ..., # (4)
IpDiscovery: IpDiscoveryType = ..., # (5)
TransitEncryptionMode: TransitEncryptionModeType = ..., # (6)
ClusterMode: ClusterModeType = ..., # (7)
ServerlessCacheSnapshotName: str = ...,
) -> CreateReplicationGroupResultTypeDef: # (8)
...
- See NodeGroupConfigurationTypeDef NodeGroupConfigurationOutputTypeDef
- See TagTypeDef
- See LogDeliveryConfigurationRequestTypeDef
- See NetworkTypeType
- See IpDiscoveryType
- See TransitEncryptionModeType
- See ClusterModeType
- See CreateReplicationGroupResultTypeDef
# create_replication_group method usage example with argument unpacking
kwargs: CreateReplicationGroupMessageRequestTypeDef = { # (1)
"ReplicationGroupId": ...,
"ReplicationGroupDescription": ...,
}
parent.create_replication_group(**kwargs)
create_serverless_cache#
Creates a serverless cache.
Type annotations and code completion for boto3.client("elasticache").create_serverless_cache
method.
boto3 documentation
# create_serverless_cache method definition
def create_serverless_cache(
self,
*,
ServerlessCacheName: str,
Engine: str,
Description: str = ...,
MajorEngineVersion: str = ...,
CacheUsageLimits: CacheUsageLimitsTypeDef = ..., # (1)
KmsKeyId: str = ...,
SecurityGroupIds: Sequence[str] = ...,
SnapshotArnsToRestore: Sequence[str] = ...,
Tags: Sequence[TagTypeDef] = ..., # (2)
UserGroupId: str = ...,
SubnetIds: Sequence[str] = ...,
SnapshotRetentionLimit: int = ...,
DailySnapshotTime: str = ...,
) -> CreateServerlessCacheResponseTypeDef: # (3)
...
# create_serverless_cache method usage example with argument unpacking
kwargs: CreateServerlessCacheRequestRequestTypeDef = { # (1)
"ServerlessCacheName": ...,
"Engine": ...,
}
parent.create_serverless_cache(**kwargs)
create_serverless_cache_snapshot#
This API creates a copy of an entire ServerlessCache at a specific moment in time.
Type annotations and code completion for boto3.client("elasticache").create_serverless_cache_snapshot
method.
boto3 documentation
# create_serverless_cache_snapshot method definition
def create_serverless_cache_snapshot(
self,
*,
ServerlessCacheSnapshotName: str,
ServerlessCacheName: str,
KmsKeyId: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreateServerlessCacheSnapshotResponseTypeDef: # (2)
...
# create_serverless_cache_snapshot method usage example with argument unpacking
kwargs: CreateServerlessCacheSnapshotRequestRequestTypeDef = { # (1)
"ServerlessCacheSnapshotName": ...,
"ServerlessCacheName": ...,
}
parent.create_serverless_cache_snapshot(**kwargs)
create_snapshot#
Creates a copy of an entire cluster or replication group at a specific moment in time.
Type annotations and code completion for boto3.client("elasticache").create_snapshot
method.
boto3 documentation
# create_snapshot method definition
def create_snapshot(
self,
*,
SnapshotName: str,
ReplicationGroupId: str = ...,
CacheClusterId: str = ...,
KmsKeyId: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreateSnapshotResultTypeDef: # (2)
...
# create_snapshot method usage example with argument unpacking
kwargs: CreateSnapshotMessageRequestTypeDef = { # (1)
"SnapshotName": ...,
}
parent.create_snapshot(**kwargs)
create_user#
For Valkey engine version 7.2 onwards and Redis OSS 6.0 and onwards: Creates a user.
Type annotations and code completion for boto3.client("elasticache").create_user
method.
boto3 documentation
# create_user method definition
def create_user(
self,
*,
UserId: str,
UserName: str,
Engine: str,
AccessString: str,
Passwords: Sequence[str] = ...,
NoPasswordRequired: bool = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
AuthenticationMode: AuthenticationModeTypeDef = ..., # (2)
) -> UserResponseTypeDef: # (3)
...
- See TagTypeDef
- See AuthenticationModeTypeDef
- See UserResponseTypeDef
# create_user method usage example with argument unpacking
kwargs: CreateUserMessageRequestTypeDef = { # (1)
"UserId": ...,
"UserName": ...,
"Engine": ...,
"AccessString": ...,
}
parent.create_user(**kwargs)
create_user_group#
For Valkey engine version 7.2 onwards and Redis OSS 6.0 onwards: Creates a user group.
Type annotations and code completion for boto3.client("elasticache").create_user_group
method.
boto3 documentation
# create_user_group method definition
def create_user_group(
self,
*,
UserGroupId: str,
Engine: str,
UserIds: Sequence[str] = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> UserGroupResponseTypeDef: # (2)
...
- See TagTypeDef
- See UserGroupResponseTypeDef
# create_user_group method usage example with argument unpacking
kwargs: CreateUserGroupMessageRequestTypeDef = { # (1)
"UserGroupId": ...,
"Engine": ...,
}
parent.create_user_group(**kwargs)
decrease_node_groups_in_global_replication_group#
Decreases the number of node groups in a Global datastore See also: AWS API Documentation.
Type annotations and code completion for boto3.client("elasticache").decrease_node_groups_in_global_replication_group
method.
boto3 documentation
# decrease_node_groups_in_global_replication_group method definition
def decrease_node_groups_in_global_replication_group(
self,
*,
GlobalReplicationGroupId: str,
NodeGroupCount: int,
ApplyImmediately: bool,
GlobalNodeGroupsToRemove: Sequence[str] = ...,
GlobalNodeGroupsToRetain: Sequence[str] = ...,
) -> DecreaseNodeGroupsInGlobalReplicationGroupResultTypeDef: # (1)
...
# decrease_node_groups_in_global_replication_group method usage example with argument unpacking
kwargs: DecreaseNodeGroupsInGlobalReplicationGroupMessageRequestTypeDef = { # (1)
"GlobalReplicationGroupId": ...,
"NodeGroupCount": ...,
"ApplyImmediately": ...,
}
parent.decrease_node_groups_in_global_replication_group(**kwargs)
decrease_replica_count#
Dynamically decreases the number of replicas in a Valkey or Redis OSS (cluster mode disabled) replication group or the number of replica nodes in one or more node groups (shards) of a Valkey or Redis OSS (cluster mode enabled) replication group.
Type annotations and code completion for boto3.client("elasticache").decrease_replica_count
method.
boto3 documentation
# decrease_replica_count method definition
def decrease_replica_count(
self,
*,
ReplicationGroupId: str,
ApplyImmediately: bool,
NewReplicaCount: int = ...,
ReplicaConfiguration: Sequence[ConfigureShardTypeDef] = ..., # (1)
ReplicasToRemove: Sequence[str] = ...,
) -> DecreaseReplicaCountResultTypeDef: # (2)
...
# decrease_replica_count method usage example with argument unpacking
kwargs: DecreaseReplicaCountMessageRequestTypeDef = { # (1)
"ReplicationGroupId": ...,
"ApplyImmediately": ...,
}
parent.decrease_replica_count(**kwargs)
delete_cache_cluster#
Deletes a previously provisioned cluster.
Type annotations and code completion for boto3.client("elasticache").delete_cache_cluster
method.
boto3 documentation
# delete_cache_cluster method definition
def delete_cache_cluster(
self,
*,
CacheClusterId: str,
FinalSnapshotIdentifier: str = ...,
) -> DeleteCacheClusterResultTypeDef: # (1)
...
# delete_cache_cluster method usage example with argument unpacking
kwargs: DeleteCacheClusterMessageRequestTypeDef = { # (1)
"CacheClusterId": ...,
}
parent.delete_cache_cluster(**kwargs)
delete_cache_parameter_group#
Deletes the specified cache parameter group.
Type annotations and code completion for boto3.client("elasticache").delete_cache_parameter_group
method.
boto3 documentation
# delete_cache_parameter_group method definition
def delete_cache_parameter_group(
self,
*,
CacheParameterGroupName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_cache_parameter_group method usage example with argument unpacking
kwargs: DeleteCacheParameterGroupMessageRequestTypeDef = { # (1)
"CacheParameterGroupName": ...,
}
parent.delete_cache_parameter_group(**kwargs)
delete_cache_security_group#
Deletes a cache security group.
Type annotations and code completion for boto3.client("elasticache").delete_cache_security_group
method.
boto3 documentation
# delete_cache_security_group method definition
def delete_cache_security_group(
self,
*,
CacheSecurityGroupName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_cache_security_group method usage example with argument unpacking
kwargs: DeleteCacheSecurityGroupMessageRequestTypeDef = { # (1)
"CacheSecurityGroupName": ...,
}
parent.delete_cache_security_group(**kwargs)
delete_cache_subnet_group#
Deletes a cache subnet group.
Type annotations and code completion for boto3.client("elasticache").delete_cache_subnet_group
method.
boto3 documentation
# delete_cache_subnet_group method definition
def delete_cache_subnet_group(
self,
*,
CacheSubnetGroupName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_cache_subnet_group method usage example with argument unpacking
kwargs: DeleteCacheSubnetGroupMessageRequestTypeDef = { # (1)
"CacheSubnetGroupName": ...,
}
parent.delete_cache_subnet_group(**kwargs)
delete_global_replication_group#
Deleting a Global datastore is a two-step process: * First, you must DisassociateGlobalReplicationGroup to remove the secondary clusters in the Global datastore.
Type annotations and code completion for boto3.client("elasticache").delete_global_replication_group
method.
boto3 documentation
# delete_global_replication_group method definition
def delete_global_replication_group(
self,
*,
GlobalReplicationGroupId: str,
RetainPrimaryReplicationGroup: bool,
) -> DeleteGlobalReplicationGroupResultTypeDef: # (1)
...
# delete_global_replication_group method usage example with argument unpacking
kwargs: DeleteGlobalReplicationGroupMessageRequestTypeDef = { # (1)
"GlobalReplicationGroupId": ...,
"RetainPrimaryReplicationGroup": ...,
}
parent.delete_global_replication_group(**kwargs)
delete_replication_group#
Deletes an existing replication group.
Type annotations and code completion for boto3.client("elasticache").delete_replication_group
method.
boto3 documentation
# delete_replication_group method definition
def delete_replication_group(
self,
*,
ReplicationGroupId: str,
RetainPrimaryCluster: bool = ...,
FinalSnapshotIdentifier: str = ...,
) -> DeleteReplicationGroupResultTypeDef: # (1)
...
# delete_replication_group method usage example with argument unpacking
kwargs: DeleteReplicationGroupMessageRequestTypeDef = { # (1)
"ReplicationGroupId": ...,
}
parent.delete_replication_group(**kwargs)
delete_serverless_cache#
Deletes a specified existing serverless cache.
Type annotations and code completion for boto3.client("elasticache").delete_serverless_cache
method.
boto3 documentation
# delete_serverless_cache method definition
def delete_serverless_cache(
self,
*,
ServerlessCacheName: str,
FinalSnapshotName: str = ...,
) -> DeleteServerlessCacheResponseTypeDef: # (1)
...
# delete_serverless_cache method usage example with argument unpacking
kwargs: DeleteServerlessCacheRequestRequestTypeDef = { # (1)
"ServerlessCacheName": ...,
}
parent.delete_serverless_cache(**kwargs)
delete_serverless_cache_snapshot#
Deletes an existing serverless cache snapshot.
Type annotations and code completion for boto3.client("elasticache").delete_serverless_cache_snapshot
method.
boto3 documentation
# delete_serverless_cache_snapshot method definition
def delete_serverless_cache_snapshot(
self,
*,
ServerlessCacheSnapshotName: str,
) -> DeleteServerlessCacheSnapshotResponseTypeDef: # (1)
...
# delete_serverless_cache_snapshot method usage example with argument unpacking
kwargs: DeleteServerlessCacheSnapshotRequestRequestTypeDef = { # (1)
"ServerlessCacheSnapshotName": ...,
}
parent.delete_serverless_cache_snapshot(**kwargs)
delete_snapshot#
Deletes an existing snapshot.
Type annotations and code completion for boto3.client("elasticache").delete_snapshot
method.
boto3 documentation
# delete_snapshot method definition
def delete_snapshot(
self,
*,
SnapshotName: str,
) -> DeleteSnapshotResultTypeDef: # (1)
...
# delete_snapshot method usage example with argument unpacking
kwargs: DeleteSnapshotMessageRequestTypeDef = { # (1)
"SnapshotName": ...,
}
parent.delete_snapshot(**kwargs)
delete_user#
For Valkey engine version 7.2 onwards and Redis OSS 6.0 onwards: Deletes a user.
Type annotations and code completion for boto3.client("elasticache").delete_user
method.
boto3 documentation
# delete_user method definition
def delete_user(
self,
*,
UserId: str,
) -> UserResponseTypeDef: # (1)
...
# delete_user method usage example with argument unpacking
kwargs: DeleteUserMessageRequestTypeDef = { # (1)
"UserId": ...,
}
parent.delete_user(**kwargs)
delete_user_group#
For Valkey engine version 7.2 onwards and Redis OSS 6.0 onwards: Deletes a user group.
Type annotations and code completion for boto3.client("elasticache").delete_user_group
method.
boto3 documentation
# delete_user_group method definition
def delete_user_group(
self,
*,
UserGroupId: str,
) -> UserGroupResponseTypeDef: # (1)
...
# delete_user_group method usage example with argument unpacking
kwargs: DeleteUserGroupMessageRequestTypeDef = { # (1)
"UserGroupId": ...,
}
parent.delete_user_group(**kwargs)
describe_cache_clusters#
Returns information about all provisioned clusters if no cluster identifier is specified, or about a specific cache cluster if a cluster identifier is supplied.
Type annotations and code completion for boto3.client("elasticache").describe_cache_clusters
method.
boto3 documentation
# describe_cache_clusters method definition
def describe_cache_clusters(
self,
*,
CacheClusterId: str = ...,
MaxRecords: int = ...,
Marker: str = ...,
ShowCacheNodeInfo: bool = ...,
ShowCacheClustersNotInReplicationGroups: bool = ...,
) -> CacheClusterMessageTypeDef: # (1)
...
# describe_cache_clusters method usage example with argument unpacking
kwargs: DescribeCacheClustersMessageRequestTypeDef = { # (1)
"CacheClusterId": ...,
}
parent.describe_cache_clusters(**kwargs)
describe_cache_engine_versions#
Returns a list of the available cache engines and their versions.
Type annotations and code completion for boto3.client("elasticache").describe_cache_engine_versions
method.
boto3 documentation
# describe_cache_engine_versions method definition
def describe_cache_engine_versions(
self,
*,
Engine: str = ...,
EngineVersion: str = ...,
CacheParameterGroupFamily: str = ...,
MaxRecords: int = ...,
Marker: str = ...,
DefaultOnly: bool = ...,
) -> CacheEngineVersionMessageTypeDef: # (1)
...
# describe_cache_engine_versions method usage example with argument unpacking
kwargs: DescribeCacheEngineVersionsMessageRequestTypeDef = { # (1)
"Engine": ...,
}
parent.describe_cache_engine_versions(**kwargs)
describe_cache_parameter_groups#
Returns a list of cache parameter group descriptions.
Type annotations and code completion for boto3.client("elasticache").describe_cache_parameter_groups
method.
boto3 documentation
# describe_cache_parameter_groups method definition
def describe_cache_parameter_groups(
self,
*,
CacheParameterGroupName: str = ...,
MaxRecords: int = ...,
Marker: str = ...,
) -> CacheParameterGroupsMessageTypeDef: # (1)
...
# describe_cache_parameter_groups method usage example with argument unpacking
kwargs: DescribeCacheParameterGroupsMessageRequestTypeDef = { # (1)
"CacheParameterGroupName": ...,
}
parent.describe_cache_parameter_groups(**kwargs)
describe_cache_parameters#
Returns the detailed parameter list for a particular cache parameter group.
Type annotations and code completion for boto3.client("elasticache").describe_cache_parameters
method.
boto3 documentation
# describe_cache_parameters method definition
def describe_cache_parameters(
self,
*,
CacheParameterGroupName: str,
Source: str = ...,
MaxRecords: int = ...,
Marker: str = ...,
) -> CacheParameterGroupDetailsTypeDef: # (1)
...
# describe_cache_parameters method usage example with argument unpacking
kwargs: DescribeCacheParametersMessageRequestTypeDef = { # (1)
"CacheParameterGroupName": ...,
}
parent.describe_cache_parameters(**kwargs)
describe_cache_security_groups#
Returns a list of cache security group descriptions.
Type annotations and code completion for boto3.client("elasticache").describe_cache_security_groups
method.
boto3 documentation
# describe_cache_security_groups method definition
def describe_cache_security_groups(
self,
*,
CacheSecurityGroupName: str = ...,
MaxRecords: int = ...,
Marker: str = ...,
) -> CacheSecurityGroupMessageTypeDef: # (1)
...
# describe_cache_security_groups method usage example with argument unpacking
kwargs: DescribeCacheSecurityGroupsMessageRequestTypeDef = { # (1)
"CacheSecurityGroupName": ...,
}
parent.describe_cache_security_groups(**kwargs)
describe_cache_subnet_groups#
Returns a list of cache subnet group descriptions.
Type annotations and code completion for boto3.client("elasticache").describe_cache_subnet_groups
method.
boto3 documentation
# describe_cache_subnet_groups method definition
def describe_cache_subnet_groups(
self,
*,
CacheSubnetGroupName: str = ...,
MaxRecords: int = ...,
Marker: str = ...,
) -> CacheSubnetGroupMessageTypeDef: # (1)
...
# describe_cache_subnet_groups method usage example with argument unpacking
kwargs: DescribeCacheSubnetGroupsMessageRequestTypeDef = { # (1)
"CacheSubnetGroupName": ...,
}
parent.describe_cache_subnet_groups(**kwargs)
describe_engine_default_parameters#
Returns the default engine and system parameter information for the specified cache engine.
Type annotations and code completion for boto3.client("elasticache").describe_engine_default_parameters
method.
boto3 documentation
# describe_engine_default_parameters method definition
def describe_engine_default_parameters(
self,
*,
CacheParameterGroupFamily: str,
MaxRecords: int = ...,
Marker: str = ...,
) -> DescribeEngineDefaultParametersResultTypeDef: # (1)
...
# describe_engine_default_parameters method usage example with argument unpacking
kwargs: DescribeEngineDefaultParametersMessageRequestTypeDef = { # (1)
"CacheParameterGroupFamily": ...,
}
parent.describe_engine_default_parameters(**kwargs)
describe_events#
Returns events related to clusters, cache security groups, and cache parameter groups.
Type annotations and code completion for boto3.client("elasticache").describe_events
method.
boto3 documentation
# describe_events method definition
def describe_events(
self,
*,
SourceIdentifier: str = ...,
SourceType: SourceTypeType = ..., # (1)
StartTime: TimestampTypeDef = ...,
EndTime: TimestampTypeDef = ...,
Duration: int = ...,
MaxRecords: int = ...,
Marker: str = ...,
) -> EventsMessageTypeDef: # (2)
...
- See SourceTypeType
- See EventsMessageTypeDef
# describe_events method usage example with argument unpacking
kwargs: DescribeEventsMessageRequestTypeDef = { # (1)
"SourceIdentifier": ...,
}
parent.describe_events(**kwargs)
describe_global_replication_groups#
Returns information about a particular global replication group.
Type annotations and code completion for boto3.client("elasticache").describe_global_replication_groups
method.
boto3 documentation
# describe_global_replication_groups method definition
def describe_global_replication_groups(
self,
*,
GlobalReplicationGroupId: str = ...,
MaxRecords: int = ...,
Marker: str = ...,
ShowMemberInfo: bool = ...,
) -> DescribeGlobalReplicationGroupsResultTypeDef: # (1)
...
# describe_global_replication_groups method usage example with argument unpacking
kwargs: DescribeGlobalReplicationGroupsMessageRequestTypeDef = { # (1)
"GlobalReplicationGroupId": ...,
}
parent.describe_global_replication_groups(**kwargs)
describe_replication_groups#
Returns information about a particular replication group.
Type annotations and code completion for boto3.client("elasticache").describe_replication_groups
method.
boto3 documentation
# describe_replication_groups method definition
def describe_replication_groups(
self,
*,
ReplicationGroupId: str = ...,
MaxRecords: int = ...,
Marker: str = ...,
) -> ReplicationGroupMessageTypeDef: # (1)
...
# describe_replication_groups method usage example with argument unpacking
kwargs: DescribeReplicationGroupsMessageRequestTypeDef = { # (1)
"ReplicationGroupId": ...,
}
parent.describe_replication_groups(**kwargs)
describe_reserved_cache_nodes#
Returns information about reserved cache nodes for this account, or about a specified reserved cache node.
Type annotations and code completion for boto3.client("elasticache").describe_reserved_cache_nodes
method.
boto3 documentation
# describe_reserved_cache_nodes method definition
def describe_reserved_cache_nodes(
self,
*,
ReservedCacheNodeId: str = ...,
ReservedCacheNodesOfferingId: str = ...,
CacheNodeType: str = ...,
Duration: str = ...,
ProductDescription: str = ...,
OfferingType: str = ...,
MaxRecords: int = ...,
Marker: str = ...,
) -> ReservedCacheNodeMessageTypeDef: # (1)
...
# describe_reserved_cache_nodes method usage example with argument unpacking
kwargs: DescribeReservedCacheNodesMessageRequestTypeDef = { # (1)
"ReservedCacheNodeId": ...,
}
parent.describe_reserved_cache_nodes(**kwargs)
describe_reserved_cache_nodes_offerings#
Lists available reserved cache node offerings.
Type annotations and code completion for boto3.client("elasticache").describe_reserved_cache_nodes_offerings
method.
boto3 documentation
# describe_reserved_cache_nodes_offerings method definition
def describe_reserved_cache_nodes_offerings(
self,
*,
ReservedCacheNodesOfferingId: str = ...,
CacheNodeType: str = ...,
Duration: str = ...,
ProductDescription: str = ...,
OfferingType: str = ...,
MaxRecords: int = ...,
Marker: str = ...,
) -> ReservedCacheNodesOfferingMessageTypeDef: # (1)
...
# describe_reserved_cache_nodes_offerings method usage example with argument unpacking
kwargs: DescribeReservedCacheNodesOfferingsMessageRequestTypeDef = { # (1)
"ReservedCacheNodesOfferingId": ...,
}
parent.describe_reserved_cache_nodes_offerings(**kwargs)
describe_serverless_cache_snapshots#
Returns information about serverless cache snapshots.
Type annotations and code completion for boto3.client("elasticache").describe_serverless_cache_snapshots
method.
boto3 documentation
# describe_serverless_cache_snapshots method definition
def describe_serverless_cache_snapshots(
self,
*,
ServerlessCacheName: str = ...,
ServerlessCacheSnapshotName: str = ...,
SnapshotType: str = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeServerlessCacheSnapshotsResponseTypeDef: # (1)
...
# describe_serverless_cache_snapshots method usage example with argument unpacking
kwargs: DescribeServerlessCacheSnapshotsRequestRequestTypeDef = { # (1)
"ServerlessCacheName": ...,
}
parent.describe_serverless_cache_snapshots(**kwargs)
describe_serverless_caches#
Returns information about a specific serverless cache.
Type annotations and code completion for boto3.client("elasticache").describe_serverless_caches
method.
boto3 documentation
# describe_serverless_caches method definition
def describe_serverless_caches(
self,
*,
ServerlessCacheName: str = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeServerlessCachesResponseTypeDef: # (1)
...
# describe_serverless_caches method usage example with argument unpacking
kwargs: DescribeServerlessCachesRequestRequestTypeDef = { # (1)
"ServerlessCacheName": ...,
}
parent.describe_serverless_caches(**kwargs)
describe_service_updates#
Returns details of the service updates See also: AWS API Documentation.
Type annotations and code completion for boto3.client("elasticache").describe_service_updates
method.
boto3 documentation
# describe_service_updates method definition
def describe_service_updates(
self,
*,
ServiceUpdateName: str = ...,
ServiceUpdateStatus: Sequence[ServiceUpdateStatusType] = ..., # (1)
MaxRecords: int = ...,
Marker: str = ...,
) -> ServiceUpdatesMessageTypeDef: # (2)
...
# describe_service_updates method usage example with argument unpacking
kwargs: DescribeServiceUpdatesMessageRequestTypeDef = { # (1)
"ServiceUpdateName": ...,
}
parent.describe_service_updates(**kwargs)
describe_snapshots#
Returns information about cluster or replication group snapshots.
Type annotations and code completion for boto3.client("elasticache").describe_snapshots
method.
boto3 documentation
# describe_snapshots method definition
def describe_snapshots(
self,
*,
ReplicationGroupId: str = ...,
CacheClusterId: str = ...,
SnapshotName: str = ...,
SnapshotSource: str = ...,
Marker: str = ...,
MaxRecords: int = ...,
ShowNodeGroupConfig: bool = ...,
) -> DescribeSnapshotsListMessageTypeDef: # (1)
...
# describe_snapshots method usage example with argument unpacking
kwargs: DescribeSnapshotsMessageRequestTypeDef = { # (1)
"ReplicationGroupId": ...,
}
parent.describe_snapshots(**kwargs)
describe_update_actions#
Returns details of the update actions See also: AWS API Documentation.
Type annotations and code completion for boto3.client("elasticache").describe_update_actions
method.
boto3 documentation
# describe_update_actions method definition
def describe_update_actions(
self,
*,
ServiceUpdateName: str = ...,
ReplicationGroupIds: Sequence[str] = ...,
CacheClusterIds: Sequence[str] = ...,
Engine: str = ...,
ServiceUpdateStatus: Sequence[ServiceUpdateStatusType] = ..., # (1)
ServiceUpdateTimeRange: TimeRangeFilterTypeDef = ..., # (2)
UpdateActionStatus: Sequence[UpdateActionStatusType] = ..., # (3)
ShowNodeLevelUpdateStatus: bool = ...,
MaxRecords: int = ...,
Marker: str = ...,
) -> UpdateActionsMessageTypeDef: # (4)
...
- See ServiceUpdateStatusType
- See TimeRangeFilterTypeDef
- See UpdateActionStatusType
- See UpdateActionsMessageTypeDef
# describe_update_actions method usage example with argument unpacking
kwargs: DescribeUpdateActionsMessageRequestTypeDef = { # (1)
"ServiceUpdateName": ...,
}
parent.describe_update_actions(**kwargs)
describe_user_groups#
Returns a list of user groups.
Type annotations and code completion for boto3.client("elasticache").describe_user_groups
method.
boto3 documentation
# describe_user_groups method definition
def describe_user_groups(
self,
*,
UserGroupId: str = ...,
MaxRecords: int = ...,
Marker: str = ...,
) -> DescribeUserGroupsResultTypeDef: # (1)
...
# describe_user_groups method usage example with argument unpacking
kwargs: DescribeUserGroupsMessageRequestTypeDef = { # (1)
"UserGroupId": ...,
}
parent.describe_user_groups(**kwargs)
describe_users#
Returns a list of users.
Type annotations and code completion for boto3.client("elasticache").describe_users
method.
boto3 documentation
# describe_users method definition
def describe_users(
self,
*,
Engine: str = ...,
UserId: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxRecords: int = ...,
Marker: str = ...,
) -> DescribeUsersResultTypeDef: # (2)
...
# describe_users method usage example with argument unpacking
kwargs: DescribeUsersMessageRequestTypeDef = { # (1)
"Engine": ...,
}
parent.describe_users(**kwargs)
disassociate_global_replication_group#
Remove a secondary cluster from the Global datastore using the Global datastore name.
Type annotations and code completion for boto3.client("elasticache").disassociate_global_replication_group
method.
boto3 documentation
# disassociate_global_replication_group method definition
def disassociate_global_replication_group(
self,
*,
GlobalReplicationGroupId: str,
ReplicationGroupId: str,
ReplicationGroupRegion: str,
) -> DisassociateGlobalReplicationGroupResultTypeDef: # (1)
...
# disassociate_global_replication_group method usage example with argument unpacking
kwargs: DisassociateGlobalReplicationGroupMessageRequestTypeDef = { # (1)
"GlobalReplicationGroupId": ...,
"ReplicationGroupId": ...,
"ReplicationGroupRegion": ...,
}
parent.disassociate_global_replication_group(**kwargs)
export_serverless_cache_snapshot#
Provides the functionality to export the serverless cache snapshot data to Amazon S3.
Type annotations and code completion for boto3.client("elasticache").export_serverless_cache_snapshot
method.
boto3 documentation
# export_serverless_cache_snapshot method definition
def export_serverless_cache_snapshot(
self,
*,
ServerlessCacheSnapshotName: str,
S3BucketName: str,
) -> ExportServerlessCacheSnapshotResponseTypeDef: # (1)
...
# export_serverless_cache_snapshot method usage example with argument unpacking
kwargs: ExportServerlessCacheSnapshotRequestRequestTypeDef = { # (1)
"ServerlessCacheSnapshotName": ...,
"S3BucketName": ...,
}
parent.export_serverless_cache_snapshot(**kwargs)
failover_global_replication_group#
Used to failover the primary region to a secondary region.
Type annotations and code completion for boto3.client("elasticache").failover_global_replication_group
method.
boto3 documentation
# failover_global_replication_group method definition
def failover_global_replication_group(
self,
*,
GlobalReplicationGroupId: str,
PrimaryRegion: str,
PrimaryReplicationGroupId: str,
) -> FailoverGlobalReplicationGroupResultTypeDef: # (1)
...
# failover_global_replication_group method usage example with argument unpacking
kwargs: FailoverGlobalReplicationGroupMessageRequestTypeDef = { # (1)
"GlobalReplicationGroupId": ...,
"PrimaryRegion": ...,
"PrimaryReplicationGroupId": ...,
}
parent.failover_global_replication_group(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("elasticache").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
increase_node_groups_in_global_replication_group#
Increase the number of node groups in the Global datastore See also: AWS API Documentation.
Type annotations and code completion for boto3.client("elasticache").increase_node_groups_in_global_replication_group
method.
boto3 documentation
# increase_node_groups_in_global_replication_group method definition
def increase_node_groups_in_global_replication_group(
self,
*,
GlobalReplicationGroupId: str,
NodeGroupCount: int,
ApplyImmediately: bool,
RegionalConfigurations: Sequence[RegionalConfigurationTypeDef] = ..., # (1)
) -> IncreaseNodeGroupsInGlobalReplicationGroupResultTypeDef: # (2)
...
# increase_node_groups_in_global_replication_group method usage example with argument unpacking
kwargs: IncreaseNodeGroupsInGlobalReplicationGroupMessageRequestTypeDef = { # (1)
"GlobalReplicationGroupId": ...,
"NodeGroupCount": ...,
"ApplyImmediately": ...,
}
parent.increase_node_groups_in_global_replication_group(**kwargs)
increase_replica_count#
Dynamically increases the number of replicas in a Valkey or Redis OSS (cluster mode disabled) replication group or the number of replica nodes in one or more node groups (shards) of a Valkey or Redis OSS (cluster mode enabled) replication group.
Type annotations and code completion for boto3.client("elasticache").increase_replica_count
method.
boto3 documentation
# increase_replica_count method definition
def increase_replica_count(
self,
*,
ReplicationGroupId: str,
ApplyImmediately: bool,
NewReplicaCount: int = ...,
ReplicaConfiguration: Sequence[ConfigureShardTypeDef] = ..., # (1)
) -> IncreaseReplicaCountResultTypeDef: # (2)
...
# increase_replica_count method usage example with argument unpacking
kwargs: IncreaseReplicaCountMessageRequestTypeDef = { # (1)
"ReplicationGroupId": ...,
"ApplyImmediately": ...,
}
parent.increase_replica_count(**kwargs)
list_allowed_node_type_modifications#
Lists all available node types that you can scale with your cluster's replication group's current node type.
Type annotations and code completion for boto3.client("elasticache").list_allowed_node_type_modifications
method.
boto3 documentation
# list_allowed_node_type_modifications method definition
def list_allowed_node_type_modifications(
self,
*,
CacheClusterId: str = ...,
ReplicationGroupId: str = ...,
) -> AllowedNodeTypeModificationsMessageTypeDef: # (1)
...
# list_allowed_node_type_modifications method usage example with argument unpacking
kwargs: ListAllowedNodeTypeModificationsMessageRequestTypeDef = { # (1)
"CacheClusterId": ...,
}
parent.list_allowed_node_type_modifications(**kwargs)
list_tags_for_resource#
Lists all tags currently on a named resource.
Type annotations and code completion for boto3.client("elasticache").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
ResourceName: str,
) -> TagListMessageTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceMessageRequestTypeDef = { # (1)
"ResourceName": ...,
}
parent.list_tags_for_resource(**kwargs)
modify_cache_cluster#
Modifies the settings for a cluster.
Type annotations and code completion for boto3.client("elasticache").modify_cache_cluster
method.
boto3 documentation
# modify_cache_cluster method definition
def modify_cache_cluster(
self,
*,
CacheClusterId: str,
NumCacheNodes: int = ...,
CacheNodeIdsToRemove: Sequence[str] = ...,
AZMode: AZModeType = ..., # (1)
NewAvailabilityZones: Sequence[str] = ...,
CacheSecurityGroupNames: Sequence[str] = ...,
SecurityGroupIds: Sequence[str] = ...,
PreferredMaintenanceWindow: str = ...,
NotificationTopicArn: str = ...,
CacheParameterGroupName: str = ...,
NotificationTopicStatus: str = ...,
ApplyImmediately: bool = ...,
Engine: str = ...,
EngineVersion: str = ...,
AutoMinorVersionUpgrade: bool = ...,
SnapshotRetentionLimit: int = ...,
SnapshotWindow: str = ...,
CacheNodeType: str = ...,
AuthToken: str = ...,
AuthTokenUpdateStrategy: AuthTokenUpdateStrategyTypeType = ..., # (2)
LogDeliveryConfigurations: Sequence[LogDeliveryConfigurationRequestTypeDef] = ..., # (3)
IpDiscovery: IpDiscoveryType = ..., # (4)
) -> ModifyCacheClusterResultTypeDef: # (5)
...
- See AZModeType
- See AuthTokenUpdateStrategyTypeType
- See LogDeliveryConfigurationRequestTypeDef
- See IpDiscoveryType
- See ModifyCacheClusterResultTypeDef
# modify_cache_cluster method usage example with argument unpacking
kwargs: ModifyCacheClusterMessageRequestTypeDef = { # (1)
"CacheClusterId": ...,
}
parent.modify_cache_cluster(**kwargs)
modify_cache_parameter_group#
Modifies the parameters of a cache parameter group.
Type annotations and code completion for boto3.client("elasticache").modify_cache_parameter_group
method.
boto3 documentation
# modify_cache_parameter_group method definition
def modify_cache_parameter_group(
self,
*,
CacheParameterGroupName: str,
ParameterNameValues: Sequence[ParameterNameValueTypeDef], # (1)
) -> CacheParameterGroupNameMessageTypeDef: # (2)
...
# modify_cache_parameter_group method usage example with argument unpacking
kwargs: ModifyCacheParameterGroupMessageRequestTypeDef = { # (1)
"CacheParameterGroupName": ...,
"ParameterNameValues": ...,
}
parent.modify_cache_parameter_group(**kwargs)
modify_cache_subnet_group#
Modifies an existing cache subnet group.
Type annotations and code completion for boto3.client("elasticache").modify_cache_subnet_group
method.
boto3 documentation
# modify_cache_subnet_group method definition
def modify_cache_subnet_group(
self,
*,
CacheSubnetGroupName: str,
CacheSubnetGroupDescription: str = ...,
SubnetIds: Sequence[str] = ...,
) -> ModifyCacheSubnetGroupResultTypeDef: # (1)
...
# modify_cache_subnet_group method usage example with argument unpacking
kwargs: ModifyCacheSubnetGroupMessageRequestTypeDef = { # (1)
"CacheSubnetGroupName": ...,
}
parent.modify_cache_subnet_group(**kwargs)
modify_global_replication_group#
Modifies the settings for a Global datastore.
Type annotations and code completion for boto3.client("elasticache").modify_global_replication_group
method.
boto3 documentation
# modify_global_replication_group method definition
def modify_global_replication_group(
self,
*,
GlobalReplicationGroupId: str,
ApplyImmediately: bool,
CacheNodeType: str = ...,
Engine: str = ...,
EngineVersion: str = ...,
CacheParameterGroupName: str = ...,
GlobalReplicationGroupDescription: str = ...,
AutomaticFailoverEnabled: bool = ...,
) -> ModifyGlobalReplicationGroupResultTypeDef: # (1)
...
# modify_global_replication_group method usage example with argument unpacking
kwargs: ModifyGlobalReplicationGroupMessageRequestTypeDef = { # (1)
"GlobalReplicationGroupId": ...,
"ApplyImmediately": ...,
}
parent.modify_global_replication_group(**kwargs)
modify_replication_group#
Modifies the settings for a replication group.
Type annotations and code completion for boto3.client("elasticache").modify_replication_group
method.
boto3 documentation
# modify_replication_group method definition
def modify_replication_group(
self,
*,
ReplicationGroupId: str,
ReplicationGroupDescription: str = ...,
PrimaryClusterId: str = ...,
SnapshottingClusterId: str = ...,
AutomaticFailoverEnabled: bool = ...,
MultiAZEnabled: bool = ...,
NodeGroupId: str = ...,
CacheSecurityGroupNames: Sequence[str] = ...,
SecurityGroupIds: Sequence[str] = ...,
PreferredMaintenanceWindow: str = ...,
NotificationTopicArn: str = ...,
CacheParameterGroupName: str = ...,
NotificationTopicStatus: str = ...,
ApplyImmediately: bool = ...,
Engine: str = ...,
EngineVersion: str = ...,
AutoMinorVersionUpgrade: bool = ...,
SnapshotRetentionLimit: int = ...,
SnapshotWindow: str = ...,
CacheNodeType: str = ...,
AuthToken: str = ...,
AuthTokenUpdateStrategy: AuthTokenUpdateStrategyTypeType = ..., # (1)
UserGroupIdsToAdd: Sequence[str] = ...,
UserGroupIdsToRemove: Sequence[str] = ...,
RemoveUserGroups: bool = ...,
LogDeliveryConfigurations: Sequence[LogDeliveryConfigurationRequestTypeDef] = ..., # (2)
IpDiscovery: IpDiscoveryType = ..., # (3)
TransitEncryptionEnabled: bool = ...,
TransitEncryptionMode: TransitEncryptionModeType = ..., # (4)
ClusterMode: ClusterModeType = ..., # (5)
) -> ModifyReplicationGroupResultTypeDef: # (6)
...
- See AuthTokenUpdateStrategyTypeType
- See LogDeliveryConfigurationRequestTypeDef
- See IpDiscoveryType
- See TransitEncryptionModeType
- See ClusterModeType
- See ModifyReplicationGroupResultTypeDef
# modify_replication_group method usage example with argument unpacking
kwargs: ModifyReplicationGroupMessageRequestTypeDef = { # (1)
"ReplicationGroupId": ...,
}
parent.modify_replication_group(**kwargs)
modify_replication_group_shard_configuration#
Modifies a replication group's shards (node groups) by allowing you to add shards, remove shards, or rebalance the keyspaces among existing shards.
Type annotations and code completion for boto3.client("elasticache").modify_replication_group_shard_configuration
method.
boto3 documentation
# modify_replication_group_shard_configuration method definition
def modify_replication_group_shard_configuration(
self,
*,
ReplicationGroupId: str,
NodeGroupCount: int,
ApplyImmediately: bool,
ReshardingConfiguration: Sequence[ReshardingConfigurationTypeDef] = ..., # (1)
NodeGroupsToRemove: Sequence[str] = ...,
NodeGroupsToRetain: Sequence[str] = ...,
) -> ModifyReplicationGroupShardConfigurationResultTypeDef: # (2)
...
# modify_replication_group_shard_configuration method usage example with argument unpacking
kwargs: ModifyReplicationGroupShardConfigurationMessageRequestTypeDef = { # (1)
"ReplicationGroupId": ...,
"NodeGroupCount": ...,
"ApplyImmediately": ...,
}
parent.modify_replication_group_shard_configuration(**kwargs)
modify_serverless_cache#
This API modifies the attributes of a serverless cache.
Type annotations and code completion for boto3.client("elasticache").modify_serverless_cache
method.
boto3 documentation
# modify_serverless_cache method definition
def modify_serverless_cache(
self,
*,
ServerlessCacheName: str,
Description: str = ...,
CacheUsageLimits: CacheUsageLimitsTypeDef = ..., # (1)
RemoveUserGroup: bool = ...,
UserGroupId: str = ...,
SecurityGroupIds: Sequence[str] = ...,
SnapshotRetentionLimit: int = ...,
DailySnapshotTime: str = ...,
Engine: str = ...,
MajorEngineVersion: str = ...,
) -> ModifyServerlessCacheResponseTypeDef: # (2)
...
# modify_serverless_cache method usage example with argument unpacking
kwargs: ModifyServerlessCacheRequestRequestTypeDef = { # (1)
"ServerlessCacheName": ...,
}
parent.modify_serverless_cache(**kwargs)
modify_user#
Changes user password(s) and/or access string.
Type annotations and code completion for boto3.client("elasticache").modify_user
method.
boto3 documentation
# modify_user method definition
def modify_user(
self,
*,
UserId: str,
AccessString: str = ...,
AppendAccessString: str = ...,
Passwords: Sequence[str] = ...,
NoPasswordRequired: bool = ...,
AuthenticationMode: AuthenticationModeTypeDef = ..., # (1)
) -> UserResponseTypeDef: # (2)
...
# modify_user method usage example with argument unpacking
kwargs: ModifyUserMessageRequestTypeDef = { # (1)
"UserId": ...,
}
parent.modify_user(**kwargs)
modify_user_group#
Changes the list of users that belong to the user group.
Type annotations and code completion for boto3.client("elasticache").modify_user_group
method.
boto3 documentation
# modify_user_group method definition
def modify_user_group(
self,
*,
UserGroupId: str,
UserIdsToAdd: Sequence[str] = ...,
UserIdsToRemove: Sequence[str] = ...,
) -> UserGroupResponseTypeDef: # (1)
...
# modify_user_group method usage example with argument unpacking
kwargs: ModifyUserGroupMessageRequestTypeDef = { # (1)
"UserGroupId": ...,
}
parent.modify_user_group(**kwargs)
purchase_reserved_cache_nodes_offering#
Allows you to purchase a reserved cache node offering.
Type annotations and code completion for boto3.client("elasticache").purchase_reserved_cache_nodes_offering
method.
boto3 documentation
# purchase_reserved_cache_nodes_offering method definition
def purchase_reserved_cache_nodes_offering(
self,
*,
ReservedCacheNodesOfferingId: str,
ReservedCacheNodeId: str = ...,
CacheNodeCount: int = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> PurchaseReservedCacheNodesOfferingResultTypeDef: # (2)
...
# purchase_reserved_cache_nodes_offering method usage example with argument unpacking
kwargs: PurchaseReservedCacheNodesOfferingMessageRequestTypeDef = { # (1)
"ReservedCacheNodesOfferingId": ...,
}
parent.purchase_reserved_cache_nodes_offering(**kwargs)
rebalance_slots_in_global_replication_group#
Redistribute slots to ensure uniform distribution across existing shards in the cluster.
Type annotations and code completion for boto3.client("elasticache").rebalance_slots_in_global_replication_group
method.
boto3 documentation
# rebalance_slots_in_global_replication_group method definition
def rebalance_slots_in_global_replication_group(
self,
*,
GlobalReplicationGroupId: str,
ApplyImmediately: bool,
) -> RebalanceSlotsInGlobalReplicationGroupResultTypeDef: # (1)
...
# rebalance_slots_in_global_replication_group method usage example with argument unpacking
kwargs: RebalanceSlotsInGlobalReplicationGroupMessageRequestTypeDef = { # (1)
"GlobalReplicationGroupId": ...,
"ApplyImmediately": ...,
}
parent.rebalance_slots_in_global_replication_group(**kwargs)
reboot_cache_cluster#
Reboots some, or all, of the cache nodes within a provisioned cluster.
Type annotations and code completion for boto3.client("elasticache").reboot_cache_cluster
method.
boto3 documentation
# reboot_cache_cluster method definition
def reboot_cache_cluster(
self,
*,
CacheClusterId: str,
CacheNodeIdsToReboot: Sequence[str],
) -> RebootCacheClusterResultTypeDef: # (1)
...
# reboot_cache_cluster method usage example with argument unpacking
kwargs: RebootCacheClusterMessageRequestTypeDef = { # (1)
"CacheClusterId": ...,
"CacheNodeIdsToReboot": ...,
}
parent.reboot_cache_cluster(**kwargs)
remove_tags_from_resource#
Removes the tags identified by the TagKeys
list from the named resource.
Type annotations and code completion for boto3.client("elasticache").remove_tags_from_resource
method.
boto3 documentation
# remove_tags_from_resource method definition
def remove_tags_from_resource(
self,
*,
ResourceName: str,
TagKeys: Sequence[str],
) -> TagListMessageTypeDef: # (1)
...
# remove_tags_from_resource method usage example with argument unpacking
kwargs: RemoveTagsFromResourceMessageRequestTypeDef = { # (1)
"ResourceName": ...,
"TagKeys": ...,
}
parent.remove_tags_from_resource(**kwargs)
reset_cache_parameter_group#
Modifies the parameters of a cache parameter group to the engine or system default value.
Type annotations and code completion for boto3.client("elasticache").reset_cache_parameter_group
method.
boto3 documentation
# reset_cache_parameter_group method definition
def reset_cache_parameter_group(
self,
*,
CacheParameterGroupName: str,
ResetAllParameters: bool = ...,
ParameterNameValues: Sequence[ParameterNameValueTypeDef] = ..., # (1)
) -> CacheParameterGroupNameMessageTypeDef: # (2)
...
# reset_cache_parameter_group method usage example with argument unpacking
kwargs: ResetCacheParameterGroupMessageRequestTypeDef = { # (1)
"CacheParameterGroupName": ...,
}
parent.reset_cache_parameter_group(**kwargs)
revoke_cache_security_group_ingress#
Revokes ingress from a cache security group.
Type annotations and code completion for boto3.client("elasticache").revoke_cache_security_group_ingress
method.
boto3 documentation
# revoke_cache_security_group_ingress method definition
def revoke_cache_security_group_ingress(
self,
*,
CacheSecurityGroupName: str,
EC2SecurityGroupName: str,
EC2SecurityGroupOwnerId: str,
) -> RevokeCacheSecurityGroupIngressResultTypeDef: # (1)
...
# revoke_cache_security_group_ingress method usage example with argument unpacking
kwargs: RevokeCacheSecurityGroupIngressMessageRequestTypeDef = { # (1)
"CacheSecurityGroupName": ...,
"EC2SecurityGroupName": ...,
"EC2SecurityGroupOwnerId": ...,
}
parent.revoke_cache_security_group_ingress(**kwargs)
start_migration#
Start the migration of data.
Type annotations and code completion for boto3.client("elasticache").start_migration
method.
boto3 documentation
# start_migration method definition
def start_migration(
self,
*,
ReplicationGroupId: str,
CustomerNodeEndpointList: Sequence[CustomerNodeEndpointTypeDef], # (1)
) -> StartMigrationResponseTypeDef: # (2)
...
# start_migration method usage example with argument unpacking
kwargs: StartMigrationMessageRequestTypeDef = { # (1)
"ReplicationGroupId": ...,
"CustomerNodeEndpointList": ...,
}
parent.start_migration(**kwargs)
test_failover#
Represents the input of a TestFailover
operation which tests automatic
failover on a specified node group (called shard in the console) in a
replication group (called cluster in the console).
Type annotations and code completion for boto3.client("elasticache").test_failover
method.
boto3 documentation
# test_failover method definition
def test_failover(
self,
*,
ReplicationGroupId: str,
NodeGroupId: str,
) -> TestFailoverResultTypeDef: # (1)
...
# test_failover method usage example with argument unpacking
kwargs: TestFailoverMessageRequestTypeDef = { # (1)
"ReplicationGroupId": ...,
"NodeGroupId": ...,
}
parent.test_failover(**kwargs)
test_migration#
Async API to test connection between source and target replication group.
Type annotations and code completion for boto3.client("elasticache").test_migration
method.
boto3 documentation
# test_migration method definition
def test_migration(
self,
*,
ReplicationGroupId: str,
CustomerNodeEndpointList: Sequence[CustomerNodeEndpointTypeDef], # (1)
) -> TestMigrationResponseTypeDef: # (2)
...
# test_migration method usage example with argument unpacking
kwargs: TestMigrationMessageRequestTypeDef = { # (1)
"ReplicationGroupId": ...,
"CustomerNodeEndpointList": ...,
}
parent.test_migration(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("elasticache").get_paginator
method with overloads.
client.get_paginator("describe_cache_clusters")
-> DescribeCacheClustersPaginatorclient.get_paginator("describe_cache_engine_versions")
-> DescribeCacheEngineVersionsPaginatorclient.get_paginator("describe_cache_parameter_groups")
-> DescribeCacheParameterGroupsPaginatorclient.get_paginator("describe_cache_parameters")
-> DescribeCacheParametersPaginatorclient.get_paginator("describe_cache_security_groups")
-> DescribeCacheSecurityGroupsPaginatorclient.get_paginator("describe_cache_subnet_groups")
-> DescribeCacheSubnetGroupsPaginatorclient.get_paginator("describe_engine_default_parameters")
-> DescribeEngineDefaultParametersPaginatorclient.get_paginator("describe_events")
-> DescribeEventsPaginatorclient.get_paginator("describe_global_replication_groups")
-> DescribeGlobalReplicationGroupsPaginatorclient.get_paginator("describe_replication_groups")
-> DescribeReplicationGroupsPaginatorclient.get_paginator("describe_reserved_cache_nodes_offerings")
-> DescribeReservedCacheNodesOfferingsPaginatorclient.get_paginator("describe_reserved_cache_nodes")
-> DescribeReservedCacheNodesPaginatorclient.get_paginator("describe_serverless_cache_snapshots")
-> DescribeServerlessCacheSnapshotsPaginatorclient.get_paginator("describe_serverless_caches")
-> DescribeServerlessCachesPaginatorclient.get_paginator("describe_service_updates")
-> DescribeServiceUpdatesPaginatorclient.get_paginator("describe_snapshots")
-> DescribeSnapshotsPaginatorclient.get_paginator("describe_update_actions")
-> DescribeUpdateActionsPaginatorclient.get_paginator("describe_user_groups")
-> DescribeUserGroupsPaginatorclient.get_paginator("describe_users")
-> DescribeUsersPaginator
get_waiter#
Type annotations and code completion for boto3.client("elasticache").get_waiter
method with overloads.
client.get_waiter("cache_cluster_available")
-> CacheClusterAvailableWaiterclient.get_waiter("cache_cluster_deleted")
-> CacheClusterDeletedWaiterclient.get_waiter("replication_group_available")
-> ReplicationGroupAvailableWaiterclient.get_waiter("replication_group_deleted")
-> ReplicationGroupDeletedWaiter