Skip to content

DAXClient

Index > DAX > DAXClient

Auto-generated documentation for DAX type annotations stubs module mypy-boto3-dax.

DAXClient

Type annotations and code completion for boto3.client("dax"). boto3 documentation

Usage example
from boto3.session import Session
from mypy_boto3_dax.client import DAXClient

def get_dax_client() -> DAXClient:
    return Session().client("dax")

Exceptions

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("dax").exceptions structure.

Usage example
client = boto3.client("dax")

try:
    do_something(client)
except (
    client.ClientError,
    client.ClusterAlreadyExistsFault,
    client.ClusterNotFoundFault,
    client.ClusterQuotaForCustomerExceededFault,
    client.InsufficientClusterCapacityFault,
    client.InvalidARNFault,
    client.InvalidClusterStateFault,
    client.InvalidParameterCombinationException,
    client.InvalidParameterGroupStateFault,
    client.InvalidParameterValueException,
    client.InvalidSubnet,
    client.InvalidVPCNetworkStateFault,
    client.NodeNotFoundFault,
    client.NodeQuotaForClusterExceededFault,
    client.NodeQuotaForCustomerExceededFault,
    client.ParameterGroupAlreadyExistsFault,
    client.ParameterGroupNotFoundFault,
    client.ParameterGroupQuotaExceededFault,
    client.ServiceLinkedRoleNotFoundFault,
    client.ServiceQuotaExceededException,
    client.SubnetGroupAlreadyExistsFault,
    client.SubnetGroupInUseFault,
    client.SubnetGroupNotFoundFault,
    client.SubnetGroupQuotaExceededFault,
    client.SubnetInUse,
    client.SubnetQuotaExceededFault,
    client.TagNotFoundFault,
    client.TagQuotaPerResourceExceeded,
) as e:
    print(e)
Type checking example
from mypy_boto3_dax.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("dax").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("dax").close method. boto3 documentation

Method definition
def close(
    self,
) -> None:
    ...

create_cluster

Creates a DAX cluster.

Type annotations and code completion for boto3.client("dax").create_cluster method. boto3 documentation

Method definition
def create_cluster(
    self,
    *,
    ClusterName: str,
    NodeType: str,
    ReplicationFactor: int,
    IamRoleArn: str,
    Description: str = ...,
    AvailabilityZones: Sequence[str] = ...,
    SubnetGroupName: str = ...,
    SecurityGroupIds: Sequence[str] = ...,
    PreferredMaintenanceWindow: str = ...,
    NotificationTopicArn: str = ...,
    ParameterGroupName: str = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (1)
    SSESpecification: SSESpecificationTypeDef = ...,  # (2)
    ClusterEndpointEncryptionType: ClusterEndpointEncryptionTypeType = ...,  # (3)
) -> CreateClusterResponseTypeDef:  # (4)
    ...
  1. See TagTypeDef
  2. See SSESpecificationTypeDef
  3. See ClusterEndpointEncryptionTypeType
  4. See CreateClusterResponseTypeDef
Usage example with kwargs
kwargs: CreateClusterRequestRequestTypeDef = {  # (1)
    "ClusterName": ...,
    "NodeType": ...,
    "ReplicationFactor": ...,
    "IamRoleArn": ...,
}

parent.create_cluster(**kwargs)
  1. See CreateClusterRequestRequestTypeDef

create_parameter_group

Creates a new parameter group.

Type annotations and code completion for boto3.client("dax").create_parameter_group method. boto3 documentation

Method definition
def create_parameter_group(
    self,
    *,
    ParameterGroupName: str,
    Description: str = ...,
) -> CreateParameterGroupResponseTypeDef:  # (1)
    ...
  1. See CreateParameterGroupResponseTypeDef
Usage example with kwargs
kwargs: CreateParameterGroupRequestRequestTypeDef = {  # (1)
    "ParameterGroupName": ...,
}

parent.create_parameter_group(**kwargs)
  1. See CreateParameterGroupRequestRequestTypeDef

create_subnet_group

Creates a new subnet group.

Type annotations and code completion for boto3.client("dax").create_subnet_group method. boto3 documentation

Method definition
def create_subnet_group(
    self,
    *,
    SubnetGroupName: str,
    SubnetIds: Sequence[str],
    Description: str = ...,
) -> CreateSubnetGroupResponseTypeDef:  # (1)
    ...
  1. See CreateSubnetGroupResponseTypeDef
Usage example with kwargs
kwargs: CreateSubnetGroupRequestRequestTypeDef = {  # (1)
    "SubnetGroupName": ...,
    "SubnetIds": ...,
}

parent.create_subnet_group(**kwargs)
  1. See CreateSubnetGroupRequestRequestTypeDef

decrease_replication_factor

Removes one or more nodes from a DAX cluster.

Type annotations and code completion for boto3.client("dax").decrease_replication_factor method. boto3 documentation

Method definition
def decrease_replication_factor(
    self,
    *,
    ClusterName: str,
    NewReplicationFactor: int,
    AvailabilityZones: Sequence[str] = ...,
    NodeIdsToRemove: Sequence[str] = ...,
) -> DecreaseReplicationFactorResponseTypeDef:  # (1)
    ...
  1. See DecreaseReplicationFactorResponseTypeDef
Usage example with kwargs
kwargs: DecreaseReplicationFactorRequestRequestTypeDef = {  # (1)
    "ClusterName": ...,
    "NewReplicationFactor": ...,
}

parent.decrease_replication_factor(**kwargs)
  1. See DecreaseReplicationFactorRequestRequestTypeDef

delete_cluster

Deletes a previously provisioned DAX cluster.

Type annotations and code completion for boto3.client("dax").delete_cluster method. boto3 documentation

Method definition
def delete_cluster(
    self,
    *,
    ClusterName: str,
) -> DeleteClusterResponseTypeDef:  # (1)
    ...
  1. See DeleteClusterResponseTypeDef
Usage example with kwargs
kwargs: DeleteClusterRequestRequestTypeDef = {  # (1)
    "ClusterName": ...,
}

parent.delete_cluster(**kwargs)
  1. See DeleteClusterRequestRequestTypeDef

delete_parameter_group

Deletes the specified parameter group.

Type annotations and code completion for boto3.client("dax").delete_parameter_group method. boto3 documentation

Method definition
def delete_parameter_group(
    self,
    *,
    ParameterGroupName: str,
) -> DeleteParameterGroupResponseTypeDef:  # (1)
    ...
  1. See DeleteParameterGroupResponseTypeDef
Usage example with kwargs
kwargs: DeleteParameterGroupRequestRequestTypeDef = {  # (1)
    "ParameterGroupName": ...,
}

parent.delete_parameter_group(**kwargs)
  1. See DeleteParameterGroupRequestRequestTypeDef

delete_subnet_group

Deletes a subnet group.

Type annotations and code completion for boto3.client("dax").delete_subnet_group method. boto3 documentation

Method definition
def delete_subnet_group(
    self,
    *,
    SubnetGroupName: str,
) -> DeleteSubnetGroupResponseTypeDef:  # (1)
    ...
  1. See DeleteSubnetGroupResponseTypeDef
Usage example with kwargs
kwargs: DeleteSubnetGroupRequestRequestTypeDef = {  # (1)
    "SubnetGroupName": ...,
}

parent.delete_subnet_group(**kwargs)
  1. See DeleteSubnetGroupRequestRequestTypeDef

describe_clusters

Returns information about all provisioned DAX clusters if no cluster identifier is specified, or about a specific DAX cluster if a cluster identifier is supplied.

Type annotations and code completion for boto3.client("dax").describe_clusters method. boto3 documentation

Method definition
def describe_clusters(
    self,
    *,
    ClusterNames: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeClustersResponseTypeDef:  # (1)
    ...
  1. See DescribeClustersResponseTypeDef
Usage example with kwargs
kwargs: DescribeClustersRequestRequestTypeDef = {  # (1)
    "ClusterNames": ...,
}

parent.describe_clusters(**kwargs)
  1. See DescribeClustersRequestRequestTypeDef

describe_default_parameters

Returns the default system parameter information for the DAX caching software.

Type annotations and code completion for boto3.client("dax").describe_default_parameters method. boto3 documentation

Method definition
def describe_default_parameters(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeDefaultParametersResponseTypeDef:  # (1)
    ...
  1. See DescribeDefaultParametersResponseTypeDef
Usage example with kwargs
kwargs: DescribeDefaultParametersRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.describe_default_parameters(**kwargs)
  1. See DescribeDefaultParametersRequestRequestTypeDef

describe_events

Returns events related to DAX clusters and parameter groups.

Type annotations and code completion for boto3.client("dax").describe_events method. boto3 documentation

Method definition
def describe_events(
    self,
    *,
    SourceName: str = ...,
    SourceType: SourceTypeType = ...,  # (1)
    StartTime: Union[datetime, str] = ...,
    EndTime: Union[datetime, str] = ...,
    Duration: int = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeEventsResponseTypeDef:  # (2)
    ...
  1. See SourceTypeType
  2. See DescribeEventsResponseTypeDef
Usage example with kwargs
kwargs: DescribeEventsRequestRequestTypeDef = {  # (1)
    "SourceName": ...,
}

parent.describe_events(**kwargs)
  1. See DescribeEventsRequestRequestTypeDef

describe_parameter_groups

Returns a list of parameter group descriptions.

Type annotations and code completion for boto3.client("dax").describe_parameter_groups method. boto3 documentation

Method definition
def describe_parameter_groups(
    self,
    *,
    ParameterGroupNames: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeParameterGroupsResponseTypeDef:  # (1)
    ...
  1. See DescribeParameterGroupsResponseTypeDef
Usage example with kwargs
kwargs: DescribeParameterGroupsRequestRequestTypeDef = {  # (1)
    "ParameterGroupNames": ...,
}

parent.describe_parameter_groups(**kwargs)
  1. See DescribeParameterGroupsRequestRequestTypeDef

describe_parameters

Returns the detailed parameter list for a particular parameter group.

Type annotations and code completion for boto3.client("dax").describe_parameters method. boto3 documentation

Method definition
def describe_parameters(
    self,
    *,
    ParameterGroupName: str,
    Source: str = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeParametersResponseTypeDef:  # (1)
    ...
  1. See DescribeParametersResponseTypeDef
Usage example with kwargs
kwargs: DescribeParametersRequestRequestTypeDef = {  # (1)
    "ParameterGroupName": ...,
}

parent.describe_parameters(**kwargs)
  1. See DescribeParametersRequestRequestTypeDef

describe_subnet_groups

Returns a list of subnet group descriptions.

Type annotations and code completion for boto3.client("dax").describe_subnet_groups method. boto3 documentation

Method definition
def describe_subnet_groups(
    self,
    *,
    SubnetGroupNames: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeSubnetGroupsResponseTypeDef:  # (1)
    ...
  1. See DescribeSubnetGroupsResponseTypeDef
Usage example with kwargs
kwargs: DescribeSubnetGroupsRequestRequestTypeDef = {  # (1)
    "SubnetGroupNames": ...,
}

parent.describe_subnet_groups(**kwargs)
  1. See DescribeSubnetGroupsRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("dax").generate_presigned_url method. boto3 documentation

Method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

increase_replication_factor

Adds one or more nodes to a DAX cluster.

Type annotations and code completion for boto3.client("dax").increase_replication_factor method. boto3 documentation

Method definition
def increase_replication_factor(
    self,
    *,
    ClusterName: str,
    NewReplicationFactor: int,
    AvailabilityZones: Sequence[str] = ...,
) -> IncreaseReplicationFactorResponseTypeDef:  # (1)
    ...
  1. See IncreaseReplicationFactorResponseTypeDef
Usage example with kwargs
kwargs: IncreaseReplicationFactorRequestRequestTypeDef = {  # (1)
    "ClusterName": ...,
    "NewReplicationFactor": ...,
}

parent.increase_replication_factor(**kwargs)
  1. See IncreaseReplicationFactorRequestRequestTypeDef

list_tags

List all of the tags for a DAX cluster.

Type annotations and code completion for boto3.client("dax").list_tags method. boto3 documentation

Method definition
def list_tags(
    self,
    *,
    ResourceName: str,
    NextToken: str = ...,
) -> ListTagsResponseTypeDef:  # (1)
    ...
  1. See ListTagsResponseTypeDef
Usage example with kwargs
kwargs: ListTagsRequestRequestTypeDef = {  # (1)
    "ResourceName": ...,
}

parent.list_tags(**kwargs)
  1. See ListTagsRequestRequestTypeDef

reboot_node

Reboots a single node of a DAX cluster.

Type annotations and code completion for boto3.client("dax").reboot_node method. boto3 documentation

Method definition
def reboot_node(
    self,
    *,
    ClusterName: str,
    NodeId: str,
) -> RebootNodeResponseTypeDef:  # (1)
    ...
  1. See RebootNodeResponseTypeDef
Usage example with kwargs
kwargs: RebootNodeRequestRequestTypeDef = {  # (1)
    "ClusterName": ...,
    "NodeId": ...,
}

parent.reboot_node(**kwargs)
  1. See RebootNodeRequestRequestTypeDef

tag_resource

Associates a set of tags with a DAX resource.

Type annotations and code completion for boto3.client("dax").tag_resource method. boto3 documentation

Method definition
def tag_resource(
    self,
    *,
    ResourceName: str,
    Tags: Sequence[TagTypeDef],  # (1)
) -> TagResourceResponseTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See TagResourceResponseTypeDef
Usage example with kwargs
kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceName": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource

Removes the association of tags from a DAX resource.

Type annotations and code completion for boto3.client("dax").untag_resource method. boto3 documentation

Method definition
def untag_resource(
    self,
    *,
    ResourceName: str,
    TagKeys: Sequence[str],
) -> UntagResourceResponseTypeDef:  # (1)
    ...
  1. See UntagResourceResponseTypeDef
Usage example with kwargs
kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceName": ...,
    "TagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_cluster

Modifies the settings for a DAX cluster.

Type annotations and code completion for boto3.client("dax").update_cluster method. boto3 documentation

Method definition
def update_cluster(
    self,
    *,
    ClusterName: str,
    Description: str = ...,
    PreferredMaintenanceWindow: str = ...,
    NotificationTopicArn: str = ...,
    NotificationTopicStatus: str = ...,
    ParameterGroupName: str = ...,
    SecurityGroupIds: Sequence[str] = ...,
) -> UpdateClusterResponseTypeDef:  # (1)
    ...
  1. See UpdateClusterResponseTypeDef
Usage example with kwargs
kwargs: UpdateClusterRequestRequestTypeDef = {  # (1)
    "ClusterName": ...,
}

parent.update_cluster(**kwargs)
  1. See UpdateClusterRequestRequestTypeDef

update_parameter_group

Modifies the parameters of a parameter group.

Type annotations and code completion for boto3.client("dax").update_parameter_group method. boto3 documentation

Method definition
def update_parameter_group(
    self,
    *,
    ParameterGroupName: str,
    ParameterNameValues: Sequence[ParameterNameValueTypeDef],  # (1)
) -> UpdateParameterGroupResponseTypeDef:  # (2)
    ...
  1. See ParameterNameValueTypeDef
  2. See UpdateParameterGroupResponseTypeDef
Usage example with kwargs
kwargs: UpdateParameterGroupRequestRequestTypeDef = {  # (1)
    "ParameterGroupName": ...,
    "ParameterNameValues": ...,
}

parent.update_parameter_group(**kwargs)
  1. See UpdateParameterGroupRequestRequestTypeDef

update_subnet_group

Modifies an existing subnet group.

Type annotations and code completion for boto3.client("dax").update_subnet_group method. boto3 documentation

Method definition
def update_subnet_group(
    self,
    *,
    SubnetGroupName: str,
    Description: str = ...,
    SubnetIds: Sequence[str] = ...,
) -> UpdateSubnetGroupResponseTypeDef:  # (1)
    ...
  1. See UpdateSubnetGroupResponseTypeDef
Usage example with kwargs
kwargs: UpdateSubnetGroupRequestRequestTypeDef = {  # (1)
    "SubnetGroupName": ...,
}

parent.update_subnet_group(**kwargs)
  1. See UpdateSubnetGroupRequestRequestTypeDef

get_paginator

Type annotations and code completion for boto3.client("dax").get_paginator method with overloads.