Class ElastiCacheClient
Client to interact with Amazon ElastiCache
- Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
- Guzzle\Http\Client implements Guzzle\Http\ClientInterface
- Guzzle\Service\Client implements Guzzle\Service\ClientInterface
- Aws\Common\Client\AbstractClient implements Aws\Common\Client\AwsClientInterface
- Aws\ElastiCache\ElastiCacheClient
Link: User guide
Link: API docs
Located at Aws/ElastiCache/ElastiCacheClient.php
Methods summary
-
public static
factory ( array|Collection $config = array() )
Factory method to create a new Amazon ElastiCache client using an array of configuration options.
-
public
addTagsToResource ( array $args = array() )
Executes the AddTagsToResource operation.
-
public
authorizeCacheSecurityGroupIngress ( array $args = array() )
Executes the AuthorizeCacheSecurityGroupIngress operation.
-
public
copySnapshot ( array $args = array() )
Executes the CopySnapshot operation.
-
public
createCacheCluster ( array $args = array() )
Executes the CreateCacheCluster operation.
-
public
createCacheParameterGroup ( array $args = array() )
Executes the CreateCacheParameterGroup operation.
-
public
createCacheSecurityGroup ( array $args = array() )
Executes the CreateCacheSecurityGroup operation.
-
public
createCacheSubnetGroup ( array $args = array() )
Executes the CreateCacheSubnetGroup operation.
-
public
createReplicationGroup ( array $args = array() )
Executes the CreateReplicationGroup operation.
-
public
createSnapshot ( array $args = array() )
Executes the CreateSnapshot operation.
-
public
deleteCacheCluster ( array $args = array() )
Executes the DeleteCacheCluster operation.
-
public
deleteCacheParameterGroup ( array $args = array() )
Executes the DeleteCacheParameterGroup operation.
-
public
deleteCacheSecurityGroup ( array $args = array() )
Executes the DeleteCacheSecurityGroup operation.
-
public
deleteCacheSubnetGroup ( array $args = array() )
Executes the DeleteCacheSubnetGroup operation.
-
public
deleteReplicationGroup ( array $args = array() )
Executes the DeleteReplicationGroup operation.
-
public
deleteSnapshot ( array $args = array() )
Executes the DeleteSnapshot operation.
-
public
describeCacheClusters ( array $args = array() )
Executes the DescribeCacheClusters operation.
-
public
describeCacheEngineVersions ( array $args = array() )
Executes the DescribeCacheEngineVersions operation.
-
public
describeCacheParameterGroups ( array $args = array() )
Executes the DescribeCacheParameterGroups operation.
-
public
describeCacheParameters ( array $args = array() )
Executes the DescribeCacheParameters operation.
-
public
describeCacheSecurityGroups ( array $args = array() )
Executes the DescribeCacheSecurityGroups operation.
-
public
describeCacheSubnetGroups ( array $args = array() )
Executes the DescribeCacheSubnetGroups operation.
-
public
describeEngineDefaultParameters ( array $args = array() )
Executes the DescribeEngineDefaultParameters operation.
-
public
describeEvents ( array $args = array() )
Executes the DescribeEvents operation.
-
public
describeReplicationGroups ( array $args = array() )
Executes the DescribeReplicationGroups operation.
-
public
describeReservedCacheNodes ( array $args = array() )
Executes the DescribeReservedCacheNodes operation.
-
public
describeReservedCacheNodesOfferings ( array $args = array() )
Executes the DescribeReservedCacheNodesOfferings operation.
-
public
describeSnapshots ( array $args = array() )
Executes the DescribeSnapshots operation.
-
public
listTagsForResource ( array $args = array() )
Executes the ListTagsForResource operation.
-
public
modifyCacheCluster ( array $args = array() )
Executes the ModifyCacheCluster operation.
-
public
modifyCacheParameterGroup ( array $args = array() )
Executes the ModifyCacheParameterGroup operation.
-
public
modifyCacheSubnetGroup ( array $args = array() )
Executes the ModifyCacheSubnetGroup operation.
-
public
modifyReplicationGroup ( array $args = array() )
Executes the ModifyReplicationGroup operation.
-
public
purchaseReservedCacheNodesOffering ( array $args = array() )
Executes the PurchaseReservedCacheNodesOffering operation.
-
public
rebootCacheCluster ( array $args = array() )
Executes the RebootCacheCluster operation.
-
public
removeTagsFromResource ( array $args = array() )
Executes the RemoveTagsFromResource operation.
-
public
resetCacheParameterGroup ( array $args = array() )
Executes the ResetCacheParameterGroup operation.
-
public
revokeCacheSecurityGroupIngress ( array $args = array() )
Executes the RevokeCacheSecurityGroupIngress operation.
-
public
getDescribeCacheClustersIterator ( array $args = array() )
The input array uses the parameters of the DescribeCacheClusters operation
-
public
getDescribeCacheEngineVersionsIterator ( array $args = array() )
The input array uses the parameters of the DescribeCacheEngineVersions operation
-
public
getDescribeCacheParameterGroupsIterator ( array $args = array() )
The input array uses the parameters of the DescribeCacheParameterGroups operation
-
public
getDescribeCacheParametersIterator ( array $args = array() )
The input array uses the parameters of the DescribeCacheParameters operation
-
public
getDescribeCacheSecurityGroupsIterator ( array $args = array() )
The input array uses the parameters of the DescribeCacheSecurityGroups operation
-
public
getDescribeCacheSubnetGroupsIterator ( array $args = array() )
The input array uses the parameters of the DescribeCacheSubnetGroups operation
-
public
getDescribeEngineDefaultParametersIterator ( array $args = array() )
The input array uses the parameters of the DescribeEngineDefaultParameters operation
-
public
getDescribeEventsIterator ( array $args = array() )
The input array uses the parameters of the DescribeEvents operation
-
public
getDescribeReservedCacheNodesIterator ( array $args = array() )
The input array uses the parameters of the DescribeReservedCacheNodes operation
-
public
getDescribeReservedCacheNodesOfferingsIterator ( array $args = array() )
The input array uses the parameters of the DescribeReservedCacheNodesOfferings operation
-
public
getDescribeReplicationGroupsIterator ( array $args = array() )
The input array uses the parameters of the DescribeReplicationGroups operation
-
public
getDescribeSnapshotsIterator ( array $args = array() )
The input array uses the parameters of the DescribeSnapshots operation
Methods detail
public static
Aws\ElastiCache\ElastiCacheClient
factory( array|Guzzle\Common\Collection
$config = array() )
Factory method to create a new Amazon ElastiCache client using an array of configuration options.
Parameters
- $config
array|
Guzzle\Common\Collection
$config Client configuration data
Returns
Link
Overrides
Executes the AddTagsToResource operation.
The AddTagsToResource action adds up to 10 cost allocation tags to the named resource. A cost allocation tag is a key-value pair where the key and value are case-sensitive. Cost allocation tags can be used to categorize and track your AWS costs.
When you apply tags to your ElastiCache resources, AWS 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 in Amazon ElastiCache.
Examples
- Basic formatting example
$result = $client->addTagsToResource(array( // ResourceName is required 'ResourceName' => 'string', // Tags is required 'Tags' => array( array( 'Key' => 'string', 'Value' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ResourceName => (string)The name of the resource to which the tags are to be added, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster.
-
Tags => (array<associative-array>)A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value.
- (associative-array)
A cost allocation Tag that can be added to an ElastiCache cluster or replication group. Tags are composed of a Key/Value pair. A tag with a null Value is permitted.
-
Key => (string)The key for the tag.
-
Value => (string)The tag's value. May not be null.
-
- (associative-array)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
TagList => (array<associative-array>)A list of cost allocation tags as key-value pairs.
- (associative-array)
A cost allocation Tag that can be added to an ElastiCache cluster or replication group. Tags are composed of a Key/Value pair. A tag with a null Value is permitted.
-
Key => (string)The key for the tag.
-
Value => (string)The tag's value. May not be null.
-
- (associative-array)
Executes the CopySnapshot operation.
The CopySnapshot action makes a copy of an existing snapshot.
Examples
- Basic formatting example
$result = $client->copySnapshot(array( // SourceSnapshotName is required 'SourceSnapshotName' => 'string', // TargetSnapshotName is required 'TargetSnapshotName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
SourceSnapshotName => (string)The name of an existing snapshot from which to copy.
-
TargetSnapshotName => (string)A name for the copied snapshot.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Snapshot => (associative-array)Represents a copy of an entire cache cluster as of the time when the snapshot was taken.
-
SnapshotName => (string)The name of a snapshot. For an automatic snapshot, the name is system-generated; for a manual snapshot, this is the user-provided name.
-
CacheClusterId => (string)The user-supplied identifier of the source cache cluster.
-
SnapshotStatus => (string)The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.
-
SnapshotSource => (string)Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
-
CacheNodeType => (string)The name of the compute and memory capacity node type for the source cache cluster.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Engine => (string)The name of the cache engine (memcached or redis) used by the source cache cluster.
-
EngineVersion => (string)The version of the cache engine version that is used by the source cache cluster.
-
NumCacheNodes => (int)The number of cache nodes in the source cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the source cache cluster is located.
-
CacheClusterCreateTime => (string)The date and time when the source cache cluster was created.
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
TopicArn => (string)The Amazon Resource Name (ARN) for the topic used by the source cache cluster for publishing notifications.
-
Port => (int)The port number used by each cache nodes in the source cache cluster.
-
CacheParameterGroupName => (string)The cache parameter group that is associated with the source cache cluster.
-
CacheSubnetGroupName => (string)The name of the cache subnet group associated with the source cache cluster.
-
VpcId => (string)The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group for the source cache cluster.
-
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SnapshotRetentionLimit => (int)For an automatic snapshot, the number of days for which ElastiCache will retain the snapshot before deleting it.
For manual snapshots, this field reflects the SnapshotRetentionLimit for the source cache cluster when the snapshot was created. This field is otherwise ignored: Manual snapshots do not expire, and can only be deleted using the DeleteSnapshot action.
Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. -
SnapshotWindow => (string)The daily time range during which ElastiCache takes daily snapshots of the source cache cluster.
-
NodeSnapshots => (array<associative-array>)A list of the cache nodes in the source cache cluster.
- (associative-array)
Represents an individual cache node in a snapshot of a cache cluster.
-
CacheNodeId => (string)The cache node identifier for the node in the source cache cluster.
-
CacheSize => (string)The size of the cache on the source cache node.
-
CacheNodeCreateTime => (string)The date and time when the cache node was created in the source cache cluster.
-
SnapshotCreateTime => (string)The date and time when the source node's metadata and cache data set was obtained for the snapshot.
-
- (associative-array)
-
Executes the CreateCacheCluster operation.
The CreateCacheCluster action creates a cache cluster. All nodes in the cache cluster run the same protocol-compliant cache engine software, either Memcached or Redis.
Examples
- Basic formatting example
$result = $client->createCacheCluster(array( // CacheClusterId is required 'CacheClusterId' => 'string', 'ReplicationGroupId' => 'string', 'AZMode' => 'string', 'PreferredAvailabilityZone' => 'string', 'PreferredAvailabilityZones' => array('string', ... ), 'NumCacheNodes' => integer, 'CacheNodeType' => 'string', 'Engine' => 'string', 'EngineVersion' => 'string', 'CacheParameterGroupName' => 'string', 'CacheSubnetGroupName' => 'string', 'CacheSecurityGroupNames' => array('string', ... ), 'SecurityGroupIds' => array('string', ... ), 'Tags' => array( array( 'Key' => 'string', 'Value' => 'string', ), // ... repeated ), 'SnapshotArns' => array('string', ... ), 'SnapshotName' => 'string', 'PreferredMaintenanceWindow' => 'string', 'Port' => integer, 'NotificationTopicArn' => 'string', 'AutoMinorVersionUpgrade' => true || false, 'SnapshotRetentionLimit' => integer, 'SnapshotWindow' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheClusterId => (string)The node group identifier. This parameter is stored as a lowercase string.
Constraints:
- A name must contain from 1 to 20 alphanumeric characters or hyphens.
- The first character must be a letter.
- A name cannot end with a hyphen or contain two consecutive hyphens.
-
ReplicationGroupId => (string)The ID of the replication group to which this cache cluster should belong. If this parameter is specified, the cache cluster will be added to the specified replication group as a read replica; otherwise, the cache cluster will be a standalone primary that is not part of any replication group.
If the specified replication group is Multi-AZ enabled and the availability zone is not specified, the cache cluster will be created in availability zones that provide the best spread of read replicas across availability zones.
Note: This parameter is only valid if the Engine parameter is redis.
-
AZMode => (string:single-az |cross-az )Specifies whether the nodes in this Memcached node group are created in a single Availability Zone or created across multiple Availability Zones in the cluster's region.
This parameter is only supported for Memcached cache clusters.
If the AZMode and PreferredAvailabilityZones are not specified, ElastiCache assumes single-az mode.
-
PreferredAvailabilityZone => (string)The EC2 Availability Zone in which the cache cluster will be created.
All nodes belonging to this Memcached cache cluster are placed in the preferred Availability Zone. If you want to create your nodes across multiple Availability Zones, use PreferredAvailabilityZones.
Default: System chosen Availability Zone.
-
PreferredAvailabilityZones => (array<string>)A list of the Availability Zones in which cache nodes will be created. The order of the zones in the list is not important.
This option is only supported on Memcached.
If you are creating your cache cluster in an Amazon VPC (recommended) you can only locate nodes in Availability Zones that are associated with the subnets in the selected subnet group.
The number of Availability Zones listed must equal the value of NumCacheNodes.
If you want all the nodes in the same Availability Zone, use PreferredAvailabilityZone instead, or repeat the Availability Zone multiple times in the list.
Default: System chosen Availability Zones.
Example: One Memcached node in each of three different Availability Zones: PreferredAvailabilityZones.member.1=us-west-2a&PreferredAvailabilityZones.member.2=us-west-2b&PreferredAvailabilityZones.member.3=us-west-2c
Example: All three Memcached nodes in one Availability Zone: PreferredAvailabilityZones.member.1=us-west-2a&PreferredAvailabilityZones.member.2=us-west-2a&PreferredAvailabilityZones.member.3=us-west-2a
-
NumCacheNodes => (int)The initial number of cache nodes that the cache cluster will have.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
If you need more than 20 nodes for your Memcached cluster, please fill out the ElastiCache Limit Increase Request form at http://aws.amazon.com/contact-us/elasticache-node-limit-request/.
-
CacheNodeType => (string)The compute and memory capacity of the nodes in the node group.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Engine => (string)The name of the cache engine to be used for this cache cluster.
Valid values for this parameter are:
memcached | redis
-
EngineVersion => (string)The version number of the cache engine to be used for this cache cluster. To view the supported cache engine versions, use the DescribeCacheEngineVersions action.
-
CacheParameterGroupName => (string)The name of the parameter group to associate with this cache cluster. If this argument is omitted, the default parameter group for the specified engine is used.
-
CacheSubnetGroupName => (string)The name of the subnet group to be used for the cache cluster.
Use this parameter only when you are creating a cache cluster in an Amazon Virtual Private Cloud (VPC).
-
CacheSecurityGroupNames => (array<string>)A list of security group names to associate with this cache cluster.
Use this parameter only when you are creating a cache cluster outside of an Amazon Virtual Private Cloud (VPC).
-
SecurityGroupIds => (array<string>)One or more VPC security groups associated with the cache cluster.
Use this parameter only when you are creating a cache cluster in an Amazon Virtual Private Cloud (VPC).
-
Tags => (array<associative-array>)A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value.
- (associative-array)
A cost allocation Tag that can be added to an ElastiCache cluster or replication group. Tags are composed of a Key/Value pair. A tag with a null Value is permitted.
-
Key => (string)The key for the tag.
-
Value => (string)The tag's value. May not be null.
-
- (associative-array)
-
SnapshotArns => (array<string>)A single-element string list containing an Amazon Resource Name (ARN) that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. The snapshot file will be used to populate the node group. The Amazon S3 object name in the ARN cannot contain any commas.
Note: This parameter is only valid if the Engine parameter is redis.
Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
-
SnapshotName => (string)The name of a snapshot from which to restore data into the new node group. The snapshot status changes to restoring while the new node group is being created.
Note: This parameter is only valid if the Engine parameter is redis.
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
Port => (int)The port number on which each of the cache nodes will accept connections.
-
NotificationTopicArn => (string)The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications will be sent.
The Amazon SNS topic owner must be the same as the cache cluster owner. -
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SnapshotRetentionLimit => (int)The number of days for which ElastiCache will retain automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.
Note: This parameter is only valid if the Engine parameter is redis.
Default: 0 (i.e., automatic backups are disabled for this cache cluster).
-
SnapshotWindow => (string)The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your node group.
Example: 05:00-09:00
If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.
Note: This parameter is only valid if the Engine parameter is redis.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CacheCluster => (associative-array)Contains all of the attributes of a specific cache cluster.
-
CacheClusterId => (string)The user-supplied identifier of the cache cluster. This identifier is a unique key that identifies a cache cluster.
-
ConfigurationEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
ClientDownloadLandingPage => (string)The URL of the web page where you can download the latest ElastiCache client library.
-
CacheNodeType => (string)The name of the compute and memory capacity node type for the cache cluster.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Engine => (string)The name of the cache engine (memcached or redis) to be used for this cache cluster.
-
EngineVersion => (string)The version of the cache engine version that is used in this cache cluster.
-
CacheClusterStatus => (string)The current state of this cache cluster, one of the following values: available, creating, deleted, deleting, incompatible-network, modifying, rebooting cache cluster nodes, restore-failed, or snapshotting.
-
NumCacheNodes => (int)The number of cache nodes in the cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the cache cluster is located or "Multiple" if the cache nodes are located in different Availability Zones.
-
CacheClusterCreateTime => (string)The date and time when the cache cluster was created.
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
PendingModifiedValues => (associative-array)A group of settings that will be applied to the cache cluster in the future, or that are currently being applied.
-
NumCacheNodes => (int)The new number of cache nodes for the cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
CacheNodeIdsToRemove => (array<string>)A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
-
EngineVersion => (string)The new cache engine version that the cache cluster will run.
-
-
NotificationConfiguration => (associative-array)Describes a notification topic and its status. Notification topics are used for publishing ElastiCache events to subscribers using Amazon Simple Notification Service (SNS).
-
TopicArn => (string)The Amazon Resource Name (ARN) that identifies the topic.
-
TopicStatus => (string)The current state of the topic.
-
-
CacheSecurityGroups => (array<associative-array>)A list of cache security group elements, composed of name and status sub-elements.
- (associative-array)
Represents a cache cluster's status within a particular cache security group.
-
CacheSecurityGroupName => (string)The name of the cache security group.
-
Status => (string)The membership status in the cache security group. The status changes when a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
-
- (associative-array)
-
CacheParameterGroup => (associative-array)The status of the cache parameter group.
-
CacheParameterGroupName => (string)The name of the cache parameter group.
-
ParameterApplyStatus => (string)The status of parameter updates.
-
CacheNodeIdsToReboot => (array<string>)A list of the cache node IDs which need to be rebooted for parameter changes to be applied. A node ID is a numeric identifier (0001, 0002, etc.).
-
-
CacheSubnetGroupName => (string)The name of the cache subnet group associated with the cache cluster.
-
CacheNodes => (array<associative-array>)A list of cache nodes that are members of the cache cluster.
- (associative-array)
Represents an individual cache node within a cache cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
-
CacheNodeId => (string)The cache node identifier. A node ID is a numeric identifier (0001, 0002, etc.). The combination of cluster ID and node ID uniquely identifies every cache node used in a customer's AWS account.
-
CacheNodeStatus => (string)The current state of this cache node.
-
CacheNodeCreateTime => (string)The date and time when the cache node was created.
-
Endpoint => (associative-array)The hostname for connecting to this cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
ParameterGroupStatus => (string)The status of the parameter group applied to this cache node.
-
SourceCacheNodeId => (string)The ID of the primary node to which this read replica node is synchronized. If this field is empty, then this node is not associated with a primary cache cluster.
-
CustomerAvailabilityZone => (string)The Availability Zone where this node was created and now resides.
- General purpose:
- (associative-array)
-
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SecurityGroups => (array<associative-array>)A list of VPC Security Groups associated with the cache cluster.
- (associative-array)
Represents a single cache security group and its status.
-
SecurityGroupId => (string)The identifier of the cache security group.
-
Status => (string)The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
-
- (associative-array)
-
ReplicationGroupId => (string)The replication group to which this cache cluster belongs. If this field is empty, the cache cluster is not associated with any replication group.
-
SnapshotRetentionLimit => (int)The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.
Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. -
SnapshotWindow => (string)The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster.
Example: 05:00-09:00
-
Executes the CreateCacheParameterGroup operation.
The CreateCacheParameterGroup action creates a new cache parameter group. A cache parameter group is a collection of parameters that you apply to all of the nodes in a cache cluster.
Examples
- Basic formatting example
$result = $client->createCacheParameterGroup(array( // CacheParameterGroupName is required 'CacheParameterGroupName' => 'string', // CacheParameterGroupFamily is required 'CacheParameterGroupFamily' => 'string', // Description is required 'Description' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheParameterGroupName => (string)A user-specified name for the cache parameter group.
-
CacheParameterGroupFamily => (string)The name of the cache parameter group family the cache parameter group can be used with.
Valid values are: memcached1.4 | redis2.6 | redis2.8
-
Description => (string)A user-specified description for the cache parameter group.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CacheParameterGroup => (associative-array)Represents the output of a CreateCacheParameterGroup action.
-
CacheParameterGroupName => (string)The name of the cache parameter group.
-
CacheParameterGroupFamily => (string)The name of the cache parameter group family that this cache parameter group is compatible with.
-
Description => (string)The description for this cache parameter group.
-
Executes the CreateCacheSecurityGroup operation.
The CreateCacheSecurityGroup action creates a new cache security group. Use a cache security group to control access to one or more cache clusters.
Cache security groups are only used when you are creating a cache cluster outside of an Amazon Virtual Private Cloud (VPC). If you are creating a cache cluster inside of a VPC, use a cache subnet group instead. For more information, see CreateCacheSubnetGroup.
Examples
- Basic formatting example
$result = $client->createCacheSecurityGroup(array( // CacheSecurityGroupName is required 'CacheSecurityGroupName' => 'string', // Description is required 'Description' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheSecurityGroupName => (string)A name for the cache security group. This value is stored as a lowercase string.
Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word "Default".
Example: mysecuritygroup
-
Description => (string)A description for the cache security group.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CacheSecurityGroup => (associative-array)Represents the output of one of the following actions:
- AuthorizeCacheSecurityGroupIngress
- CreateCacheSecurityGroup
- RevokeCacheSecurityGroupIngress
-
OwnerId => (string)The AWS account ID of the cache security group owner.
-
CacheSecurityGroupName => (string)The name of the cache security group.
-
Description => (string)The description of the cache security group.
-
EC2SecurityGroups => (array<associative-array>)A list of Amazon EC2 security groups that are associated with this cache security group.
- (associative-array)
Provides ownership and status information for an Amazon EC2 security group.
-
Status => (string)The status of the Amazon EC2 security group.
-
EC2SecurityGroupName => (string)The name of the Amazon EC2 security group.
-
EC2SecurityGroupOwnerId => (string)The AWS account ID of the Amazon EC2 security group owner.
-
- (associative-array)
Executes the CreateCacheSubnetGroup operation.
The CreateCacheSubnetGroup action creates a new cache subnet group.
Use this parameter only when you are creating a cluster in an Amazon Virtual Private Cloud (VPC).
Examples
- Basic formatting example
$result = $client->createCacheSubnetGroup(array( // CacheSubnetGroupName is required 'CacheSubnetGroupName' => 'string', // CacheSubnetGroupDescription is required 'CacheSubnetGroupDescription' => 'string', // SubnetIds is required 'SubnetIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheSubnetGroupName => (string)A name for the cache subnet group. This value is stored as a lowercase string.
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example: mysubnetgroup
-
CacheSubnetGroupDescription => (string)A description for the cache subnet group.
-
SubnetIds => (array<string>)A list of VPC subnet IDs for the cache subnet group.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CacheSubnetGroup => (associative-array)Represents the output of one of the following actions:
- CreateCacheSubnetGroup
- ModifyCacheSubnetGroup
-
CacheSubnetGroupName => (string)The name of the cache subnet group.
-
CacheSubnetGroupDescription => (string)The description of the cache subnet group.
-
VpcId => (string)The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
-
Subnets => (array<associative-array>)A list of subnets associated with the cache subnet group.
- (associative-array)
Represents the subnet associated with a cache cluster. This parameter refers to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used with ElastiCache.
-
SubnetIdentifier => (string)The unique identifier for the subnet.
-
SubnetAvailabilityZone => (associative-array)The Availability Zone associated with the subnet.
-
Name => (string)The name of the Availability Zone.
-
-
- (associative-array)
Executes the CreateReplicationGroup operation.
The CreateReplicationGroup action creates a replication group. A replication group is a collection of cache clusters, where one of the cache clusters is a read/write primary and the others are read-only replicas. Writes to the primary are automatically propagated to the replicas.
When you create a replication group, you must specify an existing cache cluster that is in the primary role. When the replication group has been successfully created, you can add one or more read replica replicas to it, up to a total of five read replicas.
Note: This action is valid only for Redis.
Examples
- Basic formatting example
$result = $client->createReplicationGroup(array( // ReplicationGroupId is required 'ReplicationGroupId' => 'string', // ReplicationGroupDescription is required 'ReplicationGroupDescription' => 'string', 'PrimaryClusterId' => 'string', 'AutomaticFailoverEnabled' => true || false, 'NumCacheClusters' => integer, 'PreferredCacheClusterAZs' => array('string', ... ), 'CacheNodeType' => 'string', 'Engine' => 'string', 'EngineVersion' => 'string', 'CacheParameterGroupName' => 'string', 'CacheSubnetGroupName' => 'string', 'CacheSecurityGroupNames' => array('string', ... ), 'SecurityGroupIds' => array('string', ... ), 'Tags' => array( array( 'Key' => 'string', 'Value' => 'string', ), // ... repeated ), 'SnapshotArns' => array('string', ... ), 'SnapshotName' => 'string', 'PreferredMaintenanceWindow' => 'string', 'Port' => integer, 'NotificationTopicArn' => 'string', 'AutoMinorVersionUpgrade' => true || false, 'SnapshotRetentionLimit' => integer, 'SnapshotWindow' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ReplicationGroupId => (string)The replication group identifier. This parameter is stored as a lowercase string.
Constraints:
- A name must contain from 1 to 20 alphanumeric characters or hyphens.
- The first character must be a letter.
- A name cannot end with a hyphen or contain two consecutive hyphens.
-
ReplicationGroupDescription => (string)A user-created description for the replication group.
-
PrimaryClusterId => (string)The identifier of the cache cluster that will serve as the primary for this replication group. This cache cluster must already exist and have a status of available.
This parameter is not required if NumCacheClusters is specified.
-
AutomaticFailoverEnabled => (bool)Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
If true, Multi-AZ is enabled for this replication group. If false, Multi-AZ is disabled for this replication group.
Default: false
ElastiCache Multi-AZ replication groups is not supported on:
- Redis versions earlier than 2.8.6.
- T1 and T2 cache node types.
-
NumCacheClusters => (int)The number of cache clusters this replication group will initially have.
If Multi-AZ is enabled, the value of this parameter must be at least 2.
The maximum permitted value for NumCacheClusters is 6 (primary plus 5 replicas). If you need to exceed this limit, please fill out the ElastiCache Limit Increase Request form at http://aws.amazon.com/contact-us/elasticache-node-limit-request.
-
PreferredCacheClusterAZs => (array<string>)A list of EC2 availability zones in which the replication group's cache clusters will be created. The order of the availability zones in the list is not important.
If you are creating your replication group in an Amazon VPC (recommended), you can only locate cache clusters in availability zones associated with the subnets in the selected subnet group.The number of availability zones listed must equal the value of NumCacheClusters.
Default: system chosen availability zones.
Example: One Redis cache cluster in each of three availability zones. PreferredAvailabilityZones.member.1=us-west-2a PreferredAvailabilityZones.member.2=us-west-2c PreferredAvailabilityZones.member.3=us-west-2c
-
CacheNodeType => (string)The compute and memory capacity of the nodes in the node group.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Engine => (string)The name of the cache engine to be used for the cache clusters in this replication group.
Default: redis
-
EngineVersion => (string)The version number of the cache engine to be used for the cache clusters in this replication group. To view the supported cache engine versions, use the DescribeCacheEngineVersions action.
-
CacheParameterGroupName => (string)The name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used.
-
CacheSubnetGroupName => (string)The name of the cache subnet group to be used for the replication group.
-
CacheSecurityGroupNames => (array<string>)A list of cache security group names to associate with this replication group.
-
SecurityGroupIds => (array<string>)One or more Amazon VPC security groups associated with this replication group.
Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud (VPC).
-
Tags => (array<associative-array>)A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value.
- (associative-array)
A cost allocation Tag that can be added to an ElastiCache cluster or replication group. Tags are composed of a Key/Value pair. A tag with a null Value is permitted.
-
Key => (string)The key for the tag.
-
Value => (string)The tag's value. May not be null.
-
- (associative-array)
-
SnapshotArns => (array<string>)A single-element string list containing an Amazon Resource Name (ARN) that uniquely identifies a Redis RDB snapshot file stored in Amazon S3. The snapshot file will be used to populate the node group. The Amazon S3 object name in the ARN cannot contain any commas.
Note: This parameter is only valid if the Engine parameter is redis.
Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
-
SnapshotName => (string)The name of a snapshot from which to restore data into the new node group. The snapshot status changes to restoring while the new node group is being created.
Note: This parameter is only valid if the Engine parameter is redis.
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
Port => (int)The port number on which each member of the replication group will accept connections.
-
NotificationTopicArn => (string)The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications will be sent.
The Amazon SNS topic owner must be the same as the cache cluster owner. -
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SnapshotRetentionLimit => (int)The number of days for which ElastiCache will retain automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.
Note: This parameter is only valid if the Engine parameter is redis.
Default: 0 (i.e., automatic backups are disabled for this cache cluster).
-
SnapshotWindow => (string)The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your node group.
Example: 05:00-09:00
If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.
Note: This parameter is only valid if the Engine parameter is redis.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReplicationGroup => (associative-array)Contains all of the attributes of a specific replication group.
-
ReplicationGroupId => (string)The identifier for the replication group.
-
Description => (string)The description of the replication group.
-
Status => (string)The current state of this replication group - creating, available, etc.
-
PendingModifiedValues => (associative-array)A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
-
PrimaryClusterId => (string)The primary cluster ID which will be applied immediately (if --apply-immediately was specified), or during the next maintenance window.
-
AutomaticFailoverStatus => (string)Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
- Redis versions earlier than 2.8.6.
- T1 and T2 cache node types.
-
-
MemberClusters => (array<string>)The names of all the cache clusters that are part of this replication group.
-
NodeGroups => (array<associative-array>)A single element list with information about the nodes in the replication group.
- (associative-array)
Represents a collection of cache nodes in a replication group.
-
NodeGroupId => (string)The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
-
Status => (string)The current state of this replication group - creating, available, etc.
-
PrimaryEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
NodeGroupMembers => (array<associative-array>)A list containing information about individual nodes within the node group.
- (associative-array)
Represents a single node within a node group.
-
CacheClusterId => (string)The ID of the cache cluster to which the node belongs.
-
CacheNodeId => (string)The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
-
ReadEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the node is located.
-
CurrentRole => (string)The role that is currently assigned to the node - primary or replica.
-
- (associative-array)
-
- (associative-array)
-
SnapshottingClusterId => (string)The cache cluster ID that is used as the daily snapshot source for the replication group.
-
AutomaticFailover => (string)Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
- Redis versions earlier than 2.8.6.
- T1 and T2 cache node types.
-
Executes the CreateSnapshot operation.
The CreateSnapshot action creates a copy of an entire cache cluster at a specific moment in time.
Examples
- Basic formatting example
$result = $client->createSnapshot(array( // CacheClusterId is required 'CacheClusterId' => 'string', // SnapshotName is required 'SnapshotName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheClusterId => (string)The identifier of an existing cache cluster. The snapshot will be created from this cache cluster.
-
SnapshotName => (string)A name for the snapshot being created.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Snapshot => (associative-array)Represents a copy of an entire cache cluster as of the time when the snapshot was taken.
-
SnapshotName => (string)The name of a snapshot. For an automatic snapshot, the name is system-generated; for a manual snapshot, this is the user-provided name.
-
CacheClusterId => (string)The user-supplied identifier of the source cache cluster.
-
SnapshotStatus => (string)The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.
-
SnapshotSource => (string)Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
-
CacheNodeType => (string)The name of the compute and memory capacity node type for the source cache cluster.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Engine => (string)The name of the cache engine (memcached or redis) used by the source cache cluster.
-
EngineVersion => (string)The version of the cache engine version that is used by the source cache cluster.
-
NumCacheNodes => (int)The number of cache nodes in the source cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the source cache cluster is located.
-
CacheClusterCreateTime => (string)The date and time when the source cache cluster was created.
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
TopicArn => (string)The Amazon Resource Name (ARN) for the topic used by the source cache cluster for publishing notifications.
-
Port => (int)The port number used by each cache nodes in the source cache cluster.
-
CacheParameterGroupName => (string)The cache parameter group that is associated with the source cache cluster.
-
CacheSubnetGroupName => (string)The name of the cache subnet group associated with the source cache cluster.
-
VpcId => (string)The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group for the source cache cluster.
-
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SnapshotRetentionLimit => (int)For an automatic snapshot, the number of days for which ElastiCache will retain the snapshot before deleting it.
For manual snapshots, this field reflects the SnapshotRetentionLimit for the source cache cluster when the snapshot was created. This field is otherwise ignored: Manual snapshots do not expire, and can only be deleted using the DeleteSnapshot action.
Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. -
SnapshotWindow => (string)The daily time range during which ElastiCache takes daily snapshots of the source cache cluster.
-
NodeSnapshots => (array<associative-array>)A list of the cache nodes in the source cache cluster.
- (associative-array)
Represents an individual cache node in a snapshot of a cache cluster.
-
CacheNodeId => (string)The cache node identifier for the node in the source cache cluster.
-
CacheSize => (string)The size of the cache on the source cache node.
-
CacheNodeCreateTime => (string)The date and time when the cache node was created in the source cache cluster.
-
SnapshotCreateTime => (string)The date and time when the source node's metadata and cache data set was obtained for the snapshot.
-
- (associative-array)
-
Executes the DeleteCacheCluster operation.
The DeleteCacheCluster action deletes a previously provisioned cache cluster. DeleteCacheCluster deletes all associated cache nodes, node endpoints and the cache cluster itself. When you receive a successful response from this action, Amazon ElastiCache immediately begins deleting the cache cluster; you cannot cancel or revert this action.
This API cannot be used to delete a cache cluster that is the last read replica of a replication group that has Multi-AZ mode enabled.
Examples
- Basic formatting example
$result = $client->deleteCacheCluster(array( // CacheClusterId is required 'CacheClusterId' => 'string', 'FinalSnapshotIdentifier' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheClusterId => (string)The cache cluster identifier for the cluster to be deleted. This parameter is not case sensitive.
-
FinalSnapshotIdentifier => (string)The user-supplied name of a final cache cluster snapshot. This is the unique name that identifies the snapshot. ElastiCache creates the snapshot, and then deletes the cache cluster immediately afterward.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CacheCluster => (associative-array)Contains all of the attributes of a specific cache cluster.
-
CacheClusterId => (string)The user-supplied identifier of the cache cluster. This identifier is a unique key that identifies a cache cluster.
-
ConfigurationEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
ClientDownloadLandingPage => (string)The URL of the web page where you can download the latest ElastiCache client library.
-
CacheNodeType => (string)The name of the compute and memory capacity node type for the cache cluster.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Engine => (string)The name of the cache engine (memcached or redis) to be used for this cache cluster.
-
EngineVersion => (string)The version of the cache engine version that is used in this cache cluster.
-
CacheClusterStatus => (string)The current state of this cache cluster, one of the following values: available, creating, deleted, deleting, incompatible-network, modifying, rebooting cache cluster nodes, restore-failed, or snapshotting.
-
NumCacheNodes => (int)The number of cache nodes in the cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the cache cluster is located or "Multiple" if the cache nodes are located in different Availability Zones.
-
CacheClusterCreateTime => (string)The date and time when the cache cluster was created.
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
PendingModifiedValues => (associative-array)A group of settings that will be applied to the cache cluster in the future, or that are currently being applied.
-
NumCacheNodes => (int)The new number of cache nodes for the cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
CacheNodeIdsToRemove => (array<string>)A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
-
EngineVersion => (string)The new cache engine version that the cache cluster will run.
-
-
NotificationConfiguration => (associative-array)Describes a notification topic and its status. Notification topics are used for publishing ElastiCache events to subscribers using Amazon Simple Notification Service (SNS).
-
TopicArn => (string)The Amazon Resource Name (ARN) that identifies the topic.
-
TopicStatus => (string)The current state of the topic.
-
-
CacheSecurityGroups => (array<associative-array>)A list of cache security group elements, composed of name and status sub-elements.
- (associative-array)
Represents a cache cluster's status within a particular cache security group.
-
CacheSecurityGroupName => (string)The name of the cache security group.
-
Status => (string)The membership status in the cache security group. The status changes when a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
-
- (associative-array)
-
CacheParameterGroup => (associative-array)The status of the cache parameter group.
-
CacheParameterGroupName => (string)The name of the cache parameter group.
-
ParameterApplyStatus => (string)The status of parameter updates.
-
CacheNodeIdsToReboot => (array<string>)A list of the cache node IDs which need to be rebooted for parameter changes to be applied. A node ID is a numeric identifier (0001, 0002, etc.).
-
-
CacheSubnetGroupName => (string)The name of the cache subnet group associated with the cache cluster.
-
CacheNodes => (array<associative-array>)A list of cache nodes that are members of the cache cluster.
- (associative-array)
Represents an individual cache node within a cache cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
-
CacheNodeId => (string)The cache node identifier. A node ID is a numeric identifier (0001, 0002, etc.). The combination of cluster ID and node ID uniquely identifies every cache node used in a customer's AWS account.
-
CacheNodeStatus => (string)The current state of this cache node.
-
CacheNodeCreateTime => (string)The date and time when the cache node was created.
-
Endpoint => (associative-array)The hostname for connecting to this cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
ParameterGroupStatus => (string)The status of the parameter group applied to this cache node.
-
SourceCacheNodeId => (string)The ID of the primary node to which this read replica node is synchronized. If this field is empty, then this node is not associated with a primary cache cluster.
-
CustomerAvailabilityZone => (string)The Availability Zone where this node was created and now resides.
- General purpose:
- (associative-array)
-
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SecurityGroups => (array<associative-array>)A list of VPC Security Groups associated with the cache cluster.
- (associative-array)
Represents a single cache security group and its status.
-
SecurityGroupId => (string)The identifier of the cache security group.
-
Status => (string)The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
-
- (associative-array)
-
ReplicationGroupId => (string)The replication group to which this cache cluster belongs. If this field is empty, the cache cluster is not associated with any replication group.
-
SnapshotRetentionLimit => (int)The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.
Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. -
SnapshotWindow => (string)The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster.
Example: 05:00-09:00
-
Executes the DeleteCacheParameterGroup operation.
The DeleteCacheParameterGroup action deletes the specified cache parameter group. You cannot delete a cache parameter group if it is associated with any cache clusters.
Examples
- Basic formatting example
$result = $client->deleteCacheParameterGroup(array( // CacheParameterGroupName is required 'CacheParameterGroupName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheParameterGroupName => (string)The name of the cache parameter group to delete.
The specified cache security group must not be associated with any cache clusters.
-
Returns
Executes the DeleteCacheSecurityGroup operation.
The DeleteCacheSecurityGroup action deletes a cache security group.
You cannot delete a cache security group if it is associated with any cache clusters.Examples
- Basic formatting example
$result = $client->deleteCacheSecurityGroup(array( // CacheSecurityGroupName is required 'CacheSecurityGroupName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheSecurityGroupName => (string)The name of the cache security group to delete.
You cannot delete the default security group.
-
Returns
Executes the DeleteCacheSubnetGroup operation.
The DeleteCacheSubnetGroup action deletes a cache subnet group.
You cannot delete a cache subnet group if it is associated with any cache clusters.Examples
- Basic formatting example
$result = $client->deleteCacheSubnetGroup(array( // CacheSubnetGroupName is required 'CacheSubnetGroupName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheSubnetGroupName => (string)The name of the cache subnet group to delete.
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
-
Returns
Executes the DeleteReplicationGroup operation.
The DeleteReplicationGroup action deletes an existing replication group. By default, this action deletes the entire replication group, including the primary cluster and all of the read replicas. You can optionally delete only the read replicas, while retaining the primary cluster.
When you receive a successful response from this action, Amazon ElastiCache immediately begins deleting the selected resources; you cannot cancel or revert this action.
Examples
- Basic formatting example
$result = $client->deleteReplicationGroup(array( // ReplicationGroupId is required 'ReplicationGroupId' => 'string', 'RetainPrimaryCluster' => true || false, 'FinalSnapshotIdentifier' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ReplicationGroupId => (string)The identifier for the cluster to be deleted. This parameter is not case sensitive.
-
RetainPrimaryCluster => (bool)If set to true, all of the read replicas will be deleted, but the primary node will be retained.
-
FinalSnapshotIdentifier => (string)The name of a final node group snapshot. ElastiCache creates the snapshot from the primary node in the cluster, rather than one of the replicas; this is to ensure that it captures the freshest data. After the final snapshot is taken, the cluster is immediately deleted.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReplicationGroup => (associative-array)Contains all of the attributes of a specific replication group.
-
ReplicationGroupId => (string)The identifier for the replication group.
-
Description => (string)The description of the replication group.
-
Status => (string)The current state of this replication group - creating, available, etc.
-
PendingModifiedValues => (associative-array)A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
-
PrimaryClusterId => (string)The primary cluster ID which will be applied immediately (if --apply-immediately was specified), or during the next maintenance window.
-
AutomaticFailoverStatus => (string)Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
- Redis versions earlier than 2.8.6.
- T1 and T2 cache node types.
-
-
MemberClusters => (array<string>)The names of all the cache clusters that are part of this replication group.
-
NodeGroups => (array<associative-array>)A single element list with information about the nodes in the replication group.
- (associative-array)
Represents a collection of cache nodes in a replication group.
-
NodeGroupId => (string)The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
-
Status => (string)The current state of this replication group - creating, available, etc.
-
PrimaryEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
NodeGroupMembers => (array<associative-array>)A list containing information about individual nodes within the node group.
- (associative-array)
Represents a single node within a node group.
-
CacheClusterId => (string)The ID of the cache cluster to which the node belongs.
-
CacheNodeId => (string)The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
-
ReadEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the node is located.
-
CurrentRole => (string)The role that is currently assigned to the node - primary or replica.
-
- (associative-array)
-
- (associative-array)
-
SnapshottingClusterId => (string)The cache cluster ID that is used as the daily snapshot source for the replication group.
-
AutomaticFailover => (string)Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
- Redis versions earlier than 2.8.6.
- T1 and T2 cache node types.
-
Executes the DeleteSnapshot operation.
The DeleteSnapshot action deletes an existing snapshot. When you receive a successful response from this action, ElastiCache immediately begins deleting the snapshot; you cannot cancel or revert this action.
Examples
- Basic formatting example
$result = $client->deleteSnapshot(array( // SnapshotName is required 'SnapshotName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
SnapshotName => (string)The name of the snapshot to be deleted.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Snapshot => (associative-array)Represents a copy of an entire cache cluster as of the time when the snapshot was taken.
-
SnapshotName => (string)The name of a snapshot. For an automatic snapshot, the name is system-generated; for a manual snapshot, this is the user-provided name.
-
CacheClusterId => (string)The user-supplied identifier of the source cache cluster.
-
SnapshotStatus => (string)The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.
-
SnapshotSource => (string)Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
-
CacheNodeType => (string)The name of the compute and memory capacity node type for the source cache cluster.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Engine => (string)The name of the cache engine (memcached or redis) used by the source cache cluster.
-
EngineVersion => (string)The version of the cache engine version that is used by the source cache cluster.
-
NumCacheNodes => (int)The number of cache nodes in the source cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the source cache cluster is located.
-
CacheClusterCreateTime => (string)The date and time when the source cache cluster was created.
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
TopicArn => (string)The Amazon Resource Name (ARN) for the topic used by the source cache cluster for publishing notifications.
-
Port => (int)The port number used by each cache nodes in the source cache cluster.
-
CacheParameterGroupName => (string)The cache parameter group that is associated with the source cache cluster.
-
CacheSubnetGroupName => (string)The name of the cache subnet group associated with the source cache cluster.
-
VpcId => (string)The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group for the source cache cluster.
-
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SnapshotRetentionLimit => (int)For an automatic snapshot, the number of days for which ElastiCache will retain the snapshot before deleting it.
For manual snapshots, this field reflects the SnapshotRetentionLimit for the source cache cluster when the snapshot was created. This field is otherwise ignored: Manual snapshots do not expire, and can only be deleted using the DeleteSnapshot action.
Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. -
SnapshotWindow => (string)The daily time range during which ElastiCache takes daily snapshots of the source cache cluster.
-
NodeSnapshots => (array<associative-array>)A list of the cache nodes in the source cache cluster.
- (associative-array)
Represents an individual cache node in a snapshot of a cache cluster.
-
CacheNodeId => (string)The cache node identifier for the node in the source cache cluster.
-
CacheSize => (string)The size of the cache on the source cache node.
-
CacheNodeCreateTime => (string)The date and time when the cache node was created in the source cache cluster.
-
SnapshotCreateTime => (string)The date and time when the source node's metadata and cache data set was obtained for the snapshot.
-
- (associative-array)
-
Executes the DescribeCacheClusters operation.
The DescribeCacheClusters action returns information about all provisioned cache clusters if no cache cluster identifier is specified, or about a specific cache cluster if a cache cluster identifier is supplied.
By default, abbreviated information about the cache clusters(s) will be returned. You can use the optional ShowDetails flag to retrieve detailed information about the cache nodes associated with the cache clusters. These details include the DNS address and port for the cache node endpoint.
If the cluster is in the CREATING state, only cluster level information will be displayed until all of the nodes are successfully provisioned.
If the cluster is in the DELETING state, only cluster level information will be displayed.
If cache nodes are currently being added to the cache cluster, node endpoint information and creation time for the additional nodes will not be displayed until they are completely provisioned. When the cache cluster state is available, the cluster is ready for use.
If cache nodes are currently being removed from the cache cluster, no endpoint information for the removed nodes is displayed.
Examples
- Basic formatting example
$result = $client->describeCacheClusters(array( 'CacheClusterId' => 'string', 'MaxRecords' => integer, 'Marker' => 'string', 'ShowCacheNodeInfo' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheClusterId => (string)The user-supplied cluster identifier. If this parameter is specified, only information about that specific cache cluster is returned. This parameter isn't case sensitive.
-
MaxRecords => (int)The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
ShowCacheNodeInfo => (bool)An optional flag that can be included in the DescribeCacheCluster request to retrieve information about the individual cache nodes.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Marker => (string)Provides an identifier to allow retrieval of paginated results.
-
CacheClusters => (array<associative-array>)A list of cache clusters. Each item in the list contains detailed information about one cache cluster.
- (associative-array)
Contains all of the attributes of a specific cache cluster.
-
CacheClusterId => (string)The user-supplied identifier of the cache cluster. This identifier is a unique key that identifies a cache cluster.
-
ConfigurationEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
ClientDownloadLandingPage => (string)The URL of the web page where you can download the latest ElastiCache client library.
-
CacheNodeType => (string)The name of the compute and memory capacity node type for the cache cluster.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Engine => (string)The name of the cache engine (memcached or redis) to be used for this cache cluster.
-
EngineVersion => (string)The version of the cache engine version that is used in this cache cluster.
-
CacheClusterStatus => (string)The current state of this cache cluster, one of the following values: available, creating, deleted, deleting, incompatible-network, modifying, rebooting cache cluster nodes, restore-failed, or snapshotting.
-
NumCacheNodes => (int)The number of cache nodes in the cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the cache cluster is located or "Multiple" if the cache nodes are located in different Availability Zones.
-
CacheClusterCreateTime => (string)The date and time when the cache cluster was created.
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
PendingModifiedValues => (associative-array)A group of settings that will be applied to the cache cluster in the future, or that are currently being applied.
-
NumCacheNodes => (int)The new number of cache nodes for the cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
CacheNodeIdsToRemove => (array<string>)A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
-
EngineVersion => (string)The new cache engine version that the cache cluster will run.
-
-
NotificationConfiguration => (associative-array)Describes a notification topic and its status. Notification topics are used for publishing ElastiCache events to subscribers using Amazon Simple Notification Service (SNS).
-
TopicArn => (string)The Amazon Resource Name (ARN) that identifies the topic.
-
TopicStatus => (string)The current state of the topic.
-
-
CacheSecurityGroups => (array<associative-array>)A list of cache security group elements, composed of name and status sub-elements.
- (associative-array)
Represents a cache cluster's status within a particular cache security group.
-
CacheSecurityGroupName => (string)The name of the cache security group.
-
Status => (string)The membership status in the cache security group. The status changes when a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
-
- (associative-array)
-
CacheParameterGroup => (associative-array)The status of the cache parameter group.
-
CacheParameterGroupName => (string)The name of the cache parameter group.
-
ParameterApplyStatus => (string)The status of parameter updates.
-
CacheNodeIdsToReboot => (array<string>)A list of the cache node IDs which need to be rebooted for parameter changes to be applied. A node ID is a numeric identifier (0001, 0002, etc.).
-
-
CacheSubnetGroupName => (string)The name of the cache subnet group associated with the cache cluster.
-
CacheNodes => (array<associative-array>)A list of cache nodes that are members of the cache cluster.
- (associative-array)
Represents an individual cache node within a cache cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
-
CacheNodeId => (string)The cache node identifier. A node ID is a numeric identifier (0001, 0002, etc.). The combination of cluster ID and node ID uniquely identifies every cache node used in a customer's AWS account.
-
CacheNodeStatus => (string)The current state of this cache node.
-
CacheNodeCreateTime => (string)The date and time when the cache node was created.
-
Endpoint => (associative-array)The hostname for connecting to this cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
ParameterGroupStatus => (string)The status of the parameter group applied to this cache node.
-
SourceCacheNodeId => (string)The ID of the primary node to which this read replica node is synchronized. If this field is empty, then this node is not associated with a primary cache cluster.
-
CustomerAvailabilityZone => (string)The Availability Zone where this node was created and now resides.
- General purpose:
- (associative-array)
-
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SecurityGroups => (array<associative-array>)A list of VPC Security Groups associated with the cache cluster.
- (associative-array)
Represents a single cache security group and its status.
-
SecurityGroupId => (string)The identifier of the cache security group.
-
Status => (string)The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
-
- (associative-array)
-
ReplicationGroupId => (string)The replication group to which this cache cluster belongs. If this field is empty, the cache cluster is not associated with any replication group.
-
SnapshotRetentionLimit => (int)The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.
Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. -
SnapshotWindow => (string)The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster.
Example: 05:00-09:00
-
- (associative-array)
Executes the DescribeCacheEngineVersions operation.
The DescribeCacheEngineVersions action returns a list of the available cache engines and their versions.
Examples
- Basic formatting example
$result = $client->describeCacheEngineVersions(array( 'Engine' => 'string', 'EngineVersion' => 'string', 'CacheParameterGroupFamily' => 'string', 'MaxRecords' => integer, 'Marker' => 'string', 'DefaultOnly' => true || false, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
Engine => (string)The cache engine to return. Valid values: memcached | redis
-
EngineVersion => (string)The cache engine version to return.
Example: 1.4.14
-
CacheParameterGroupFamily => (string)The name of a specific cache parameter group family to return details for.
Constraints:
- Must be 1 to 255 alphanumeric characters
- First character must be a letter
- Cannot end with a hyphen or contain two consecutive hyphens
-
MaxRecords => (int)The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
DefaultOnly => (bool)If true, specifies that only the default version of the specified engine or engine and major version combination is to be returned.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Marker => (string)Provides an identifier to allow retrieval of paginated results.
-
CacheEngineVersions => (array<associative-array>)A list of cache engine version details. Each element in the list contains detailed information about one cache engine version.
- (associative-array)
Provides all of the details about a particular cache engine version.
-
Engine => (string)The name of the cache engine.
-
EngineVersion => (string)The version number of the cache engine.
-
CacheParameterGroupFamily => (string)The name of the cache parameter group family associated with this cache engine.
-
CacheEngineDescription => (string)The description of the cache engine.
-
CacheEngineVersionDescription => (string)The description of the cache engine version.
-
- (associative-array)
Executes the DescribeCacheParameterGroups operation.
The DescribeCacheParameterGroups action returns a list of cache parameter group descriptions. If a cache parameter group name is specified, the list will contain only the descriptions for that group.
Examples
- Basic formatting example
$result = $client->describeCacheParameterGroups(array( 'CacheParameterGroupName' => 'string', 'MaxRecords' => integer, 'Marker' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheParameterGroupName => (string)The name of a specific cache parameter group to return details for.
-
MaxRecords => (int)The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Marker => (string)Provides an identifier to allow retrieval of paginated results.
-
CacheParameterGroups => (array<associative-array>)A list of cache parameter groups. Each element in the list contains detailed information about one cache parameter group.
- (associative-array)
Represents the output of a CreateCacheParameterGroup action.
-
CacheParameterGroupName => (string)The name of the cache parameter group.
-
CacheParameterGroupFamily => (string)The name of the cache parameter group family that this cache parameter group is compatible with.
-
Description => (string)The description for this cache parameter group.
-
- (associative-array)
Executes the DescribeCacheParameters operation.
The DescribeCacheParameters action returns the detailed parameter list for a particular cache parameter group.
Examples
- Basic formatting example
$result = $client->describeCacheParameters(array( // CacheParameterGroupName is required 'CacheParameterGroupName' => 'string', 'Source' => 'string', 'MaxRecords' => integer, 'Marker' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheParameterGroupName => (string)The name of a specific cache parameter group to return details for.
-
Source => (string)The parameter types to return.
Valid values: user | system | engine-default
-
MaxRecords => (int)The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Marker => (string)Provides an identifier to allow retrieval of paginated results.
-
Parameters => (array<associative-array>)A list of Parameter instances.
- (associative-array)
Describes an individual setting that controls some aspect of ElastiCache behavior.
-
ParameterName => (string)The name of the parameter.
-
ParameterValue => (string)The value of the parameter.
-
Description => (string)A description of the parameter.
-
Source => (string)The source of the parameter.
-
DataType => (string)The valid data type for the parameter.
-
AllowedValues => (string)The valid range of values for the parameter.
-
IsModifiable => (bool)Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
-
MinimumEngineVersion => (string)The earliest cache engine version to which the parameter can apply.
-
- (associative-array)
-
CacheNodeTypeSpecificParameters => (array<associative-array>)A list of parameters specific to a particular cache node type. Each element in the list contains detailed information about one parameter.
- (associative-array)
A parameter that has a different value for each cache node type it is applied to. For example, in a Redis cache cluster, a cache.m1.large cache node type would have a larger maxmemory value than a cache.m1.small type.
-
ParameterName => (string)The name of the parameter.
-
Description => (string)A description of the parameter.
-
Source => (string)The source of the parameter value.
-
DataType => (string)The valid data type for the parameter.
-
AllowedValues => (string)The valid range of values for the parameter.
-
IsModifiable => (bool)Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
-
MinimumEngineVersion => (string)The earliest cache engine version to which the parameter can apply.
-
CacheNodeTypeSpecificValues => (array<associative-array>)A list of cache node types and their corresponding values for this parameter.
- (associative-array)
A value that applies only to a certain cache node type.
-
CacheNodeType => (string)The cache node type for which this value applies.
-
Value => (string)The value for the cache node type.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeCacheSecurityGroups operation.
The DescribeCacheSecurityGroups action returns a list of cache security group descriptions. If a cache security group name is specified, the list will contain only the description of that group.
Examples
- Basic formatting example
$result = $client->describeCacheSecurityGroups(array( 'CacheSecurityGroupName' => 'string', 'MaxRecords' => integer, 'Marker' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheSecurityGroupName => (string)The name of the cache security group to return details for.
-
MaxRecords => (int)The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Marker => (string)Provides an identifier to allow retrieval of paginated results.
-
CacheSecurityGroups => (array<associative-array>)A list of cache security groups. Each element in the list contains detailed information about one group.
- (associative-array)
Represents the output of one of the following actions:
- AuthorizeCacheSecurityGroupIngress
- CreateCacheSecurityGroup
- RevokeCacheSecurityGroupIngress
-
OwnerId => (string)The AWS account ID of the cache security group owner.
-
CacheSecurityGroupName => (string)The name of the cache security group.
-
Description => (string)The description of the cache security group.
-
EC2SecurityGroups => (array<associative-array>)A list of Amazon EC2 security groups that are associated with this cache security group.
- (associative-array)
Provides ownership and status information for an Amazon EC2 security group.
-
Status => (string)The status of the Amazon EC2 security group.
-
EC2SecurityGroupName => (string)The name of the Amazon EC2 security group.
-
EC2SecurityGroupOwnerId => (string)The AWS account ID of the Amazon EC2 security group owner.
-
- (associative-array)
- (associative-array)
Executes the DescribeCacheSubnetGroups operation.
The DescribeCacheSubnetGroups action returns a list of cache subnet group descriptions. If a subnet group name is specified, the list will contain only the description of that group.
Examples
- Basic formatting example
$result = $client->describeCacheSubnetGroups(array( 'CacheSubnetGroupName' => 'string', 'MaxRecords' => integer, 'Marker' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheSubnetGroupName => (string)The name of the cache subnet group to return details for.
-
MaxRecords => (int)The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Marker => (string)Provides an identifier to allow retrieval of paginated results.
-
CacheSubnetGroups => (array<associative-array>)A list of cache subnet groups. Each element in the list contains detailed information about one group.
- (associative-array)
Represents the output of one of the following actions:
- CreateCacheSubnetGroup
- ModifyCacheSubnetGroup
-
CacheSubnetGroupName => (string)The name of the cache subnet group.
-
CacheSubnetGroupDescription => (string)The description of the cache subnet group.
-
VpcId => (string)The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
-
Subnets => (array<associative-array>)A list of subnets associated with the cache subnet group.
- (associative-array)
Represents the subnet associated with a cache cluster. This parameter refers to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used with ElastiCache.
-
SubnetIdentifier => (string)The unique identifier for the subnet.
-
SubnetAvailabilityZone => (associative-array)The Availability Zone associated with the subnet.
-
Name => (string)The name of the Availability Zone.
-
-
- (associative-array)
- (associative-array)
Executes the DescribeEngineDefaultParameters operation.
The DescribeEngineDefaultParameters action returns the default engine and system parameter information for the specified cache engine.
Examples
- Basic formatting example
$result = $client->describeEngineDefaultParameters(array( // CacheParameterGroupFamily is required 'CacheParameterGroupFamily' => 'string', 'MaxRecords' => integer, 'Marker' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheParameterGroupFamily => (string)The name of the cache parameter group family. Valid values are: memcached1.4 | redis2.6 | redis2.8
-
MaxRecords => (int)The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
EngineDefaults => (associative-array)Represents the output of a DescribeEngineDefaultParameters action.
-
CacheParameterGroupFamily => (string)Specifies the name of the cache parameter group family to which the engine default parameters apply.
-
Marker => (string)Provides an identifier to allow retrieval of paginated results.
-
Parameters => (array<associative-array>)Contains a list of engine default parameters.
- (associative-array)
Describes an individual setting that controls some aspect of ElastiCache behavior.
-
ParameterName => (string)The name of the parameter.
-
ParameterValue => (string)The value of the parameter.
-
Description => (string)A description of the parameter.
-
Source => (string)The source of the parameter.
-
DataType => (string)The valid data type for the parameter.
-
AllowedValues => (string)The valid range of values for the parameter.
-
IsModifiable => (bool)Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
-
MinimumEngineVersion => (string)The earliest cache engine version to which the parameter can apply.
-
- (associative-array)
-
CacheNodeTypeSpecificParameters => (array<associative-array>)A list of parameters specific to a particular cache node type. Each element in the list contains detailed information about one parameter.
- (associative-array)
A parameter that has a different value for each cache node type it is applied to. For example, in a Redis cache cluster, a cache.m1.large cache node type would have a larger maxmemory value than a cache.m1.small type.
-
ParameterName => (string)The name of the parameter.
-
Description => (string)A description of the parameter.
-
Source => (string)The source of the parameter value.
-
DataType => (string)The valid data type for the parameter.
-
AllowedValues => (string)The valid range of values for the parameter.
-
IsModifiable => (bool)Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
-
MinimumEngineVersion => (string)The earliest cache engine version to which the parameter can apply.
-
CacheNodeTypeSpecificValues => (array<associative-array>)A list of cache node types and their corresponding values for this parameter.
- (associative-array)
A value that applies only to a certain cache node type.
-
CacheNodeType => (string)The cache node type for which this value applies.
-
Value => (string)The value for the cache node type.
-
- (associative-array)
-
- (associative-array)
-
Executes the DescribeEvents operation.
The DescribeEvents action returns events related to cache clusters, cache security groups, and cache parameter groups. You can obtain events specific to a particular cache cluster, cache security group, or cache 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.
Examples
- Basic formatting example
$result = $client->describeEvents(array( 'SourceIdentifier' => 'string', 'SourceType' => 'string', 'StartTime' => 'mixed type: string (date format)|int (unix timestamp)|\DateTime', 'EndTime' => 'mixed type: string (date format)|int (unix timestamp)|\DateTime', 'Duration' => integer, 'MaxRecords' => integer, 'Marker' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
SourceIdentifier => (string)The identifier of the event source for which events will be returned. If not specified, then all sources are included in the response.
-
SourceType => (string:cache-cluster |cache-parameter-group |cache-security-group |cache-subnet-group )The event source to retrieve events for. If no value is specified, all events are returned.
Valid values are: cache-cluster | cache-parameter-group | cache-security-group | cache-subnet-group
-
StartTime => (string [date format]|int [unix timestamp]|\DateTime)The beginning of the time interval to retrieve events for, specified in ISO 8601 format.
-
EndTime => (string [date format]|int [unix timestamp]|\DateTime)The end of the time interval for which to retrieve events, specified in ISO 8601 format.
-
Duration => (int)The number of minutes' worth of events to retrieve.
-
MaxRecords => (int)The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Marker => (string)Provides an identifier to allow retrieval of paginated results.
-
Events => (array<associative-array>)A list of events. Each element in the list contains detailed information about one event.
- (associative-array)
Represents a single occurrence of something interesting within the system. Some examples of events are creating a cache cluster, adding or removing a cache node, or rebooting a node.
-
SourceIdentifier => (string)The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.
-
SourceType => (string)Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
-
Message => (string)The text of the event.
-
Date => (string)The date and time when the event occurred.
-
- (associative-array)
Executes the DescribeReplicationGroups operation.
The DescribeReplicationGroups action returns information about a particular replication group. If no identifier is specified, DescribeReplicationGroups returns information about all replication groups.
Examples
- Basic formatting example
$result = $client->describeReplicationGroups(array( 'ReplicationGroupId' => 'string', 'MaxRecords' => integer, 'Marker' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ReplicationGroupId => (string)The identifier for the replication group to be described. This parameter is not case sensitive.
If you do not specify this parameter, information about all replication groups is returned.
-
MaxRecords => (int)The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Marker => (string)Provides an identifier to allow retrieval of paginated results.
-
ReplicationGroups => (array<associative-array>)A list of replication groups. Each item in the list contains detailed information about one replication group.
- (associative-array)
Contains all of the attributes of a specific replication group.
-
ReplicationGroupId => (string)The identifier for the replication group.
-
Description => (string)The description of the replication group.
-
Status => (string)The current state of this replication group - creating, available, etc.
-
PendingModifiedValues => (associative-array)A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
-
PrimaryClusterId => (string)The primary cluster ID which will be applied immediately (if --apply-immediately was specified), or during the next maintenance window.
-
AutomaticFailoverStatus => (string)Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
- Redis versions earlier than 2.8.6.
- T1 and T2 cache node types.
-
-
MemberClusters => (array<string>)The names of all the cache clusters that are part of this replication group.
-
NodeGroups => (array<associative-array>)A single element list with information about the nodes in the replication group.
- (associative-array)
Represents a collection of cache nodes in a replication group.
-
NodeGroupId => (string)The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
-
Status => (string)The current state of this replication group - creating, available, etc.
-
PrimaryEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
NodeGroupMembers => (array<associative-array>)A list containing information about individual nodes within the node group.
- (associative-array)
Represents a single node within a node group.
-
CacheClusterId => (string)The ID of the cache cluster to which the node belongs.
-
CacheNodeId => (string)The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
-
ReadEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the node is located.
-
CurrentRole => (string)The role that is currently assigned to the node - primary or replica.
-
- (associative-array)
-
- (associative-array)
-
SnapshottingClusterId => (string)The cache cluster ID that is used as the daily snapshot source for the replication group.
-
AutomaticFailover => (string)Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
- Redis versions earlier than 2.8.6.
- T1 and T2 cache node types.
-
- (associative-array)
Executes the DescribeReservedCacheNodes operation.
The DescribeReservedCacheNodes action returns information about reserved cache nodes for this account, or about a specified reserved cache node.
Examples
- Basic formatting example
$result = $client->describeReservedCacheNodes(array( 'ReservedCacheNodeId' => 'string', 'ReservedCacheNodesOfferingId' => 'string', 'CacheNodeType' => 'string', 'Duration' => 'string', 'ProductDescription' => 'string', 'OfferingType' => 'string', 'MaxRecords' => integer, 'Marker' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ReservedCacheNodeId => (string)The reserved cache node identifier filter value. Use this parameter to show only the reservation that matches the specified reservation ID.
-
ReservedCacheNodesOfferingId => (string)The offering identifier filter value. Use this parameter to show only purchased reservations matching the specified offering identifier.
-
CacheNodeType => (string)The cache node type filter value. Use this parameter to show only those reservations matching the specified cache node type.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Duration => (string)The duration filter value, specified in years or seconds. Use this parameter to show only reservations for this duration.
Valid Values: 1 | 3 | 31536000 | 94608000
-
ProductDescription => (string)The product description filter value. Use this parameter to show only those reservations matching the specified product description.
-
OfferingType => (string)The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.
Valid values: "Light Utilization"|"Medium Utilization"|"Heavy Utilization"
-
MaxRecords => (int)The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Marker => (string)Provides an identifier to allow retrieval of paginated results.
-
ReservedCacheNodes => (array<associative-array>)A list of reserved cache nodes. Each element in the list contains detailed information about one node.
- (associative-array)
Represents the output of a PurchaseReservedCacheNodesOffering action.
-
ReservedCacheNodeId => (string)The unique identifier for the reservation.
-
ReservedCacheNodesOfferingId => (string)The offering identifier.
-
CacheNodeType => (string)The cache node type for the reserved cache nodes.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
StartTime => (string)The time the reservation started.
-
Duration => (int)The duration of the reservation in seconds.
-
FixedPrice => (int)The fixed price charged for this reserved cache node.
-
UsagePrice => (int)The hourly price charged for this reserved cache node.
-
CacheNodeCount => (int)The number of cache nodes that have been reserved.
-
ProductDescription => (string)The description of the reserved cache node.
-
OfferingType => (string)The offering type of this reserved cache node.
-
State => (string)The state of the reserved cache node.
-
RecurringCharges => (array<associative-array>)The recurring price charged to run this reserved cache node.
- (associative-array)
Contains the specific price and frequency of a recurring charges for a reserved cache node, or for a reserved cache node offering.
-
RecurringChargeAmount => (int)The monetary amount of the recurring charge.
-
RecurringChargeFrequency => (string)The frequency of the recurring charge.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeReservedCacheNodesOfferings operation.
The DescribeReservedCacheNodesOfferings action lists available reserved cache node offerings.
Examples
- Basic formatting example
$result = $client->describeReservedCacheNodesOfferings(array( 'ReservedCacheNodesOfferingId' => 'string', 'CacheNodeType' => 'string', 'Duration' => 'string', 'ProductDescription' => 'string', 'OfferingType' => 'string', 'MaxRecords' => integer, 'Marker' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ReservedCacheNodesOfferingId => (string)The offering identifier filter value. Use this parameter to show only the available offering that matches the specified reservation identifier.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
-
CacheNodeType => (string)The cache node type filter value. Use this parameter to show only the available offerings matching the specified cache node type.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Duration => (string)Duration filter value, specified in years or seconds. Use this parameter to show only reservations for a given duration.
Valid Values: 1 | 3 | 31536000 | 94608000
-
ProductDescription => (string)The product description filter value. Use this parameter to show only the available offerings matching the specified product description.
-
OfferingType => (string)The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.
Valid Values: "Light Utilization"|"Medium Utilization"|"Heavy Utilization"
-
MaxRecords => (int)The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Marker => (string)Provides an identifier to allow retrieval of paginated results.
-
ReservedCacheNodesOfferings => (array<associative-array>)A list of reserved cache node offerings. Each element in the list contains detailed information about one offering.
- (associative-array)
Describes all of the attributes of a reserved cache node offering.
-
ReservedCacheNodesOfferingId => (string)A unique identifier for the reserved cache node offering.
-
CacheNodeType => (string)The cache node type for the reserved cache node.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Duration => (int)The duration of the offering. in seconds.
-
FixedPrice => (int)The fixed price charged for this offering.
-
UsagePrice => (int)The hourly price charged for this offering.
-
ProductDescription => (string)The cache engine used by the offering.
-
OfferingType => (string)The offering type.
-
RecurringCharges => (array<associative-array>)The recurring price charged to run this reserved cache node.
- (associative-array)
Contains the specific price and frequency of a recurring charges for a reserved cache node, or for a reserved cache node offering.
-
RecurringChargeAmount => (int)The monetary amount of the recurring charge.
-
RecurringChargeFrequency => (string)The frequency of the recurring charge.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeSnapshots operation.
The DescribeSnapshots action returns information about cache 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 cache cluster.
Examples
- Basic formatting example
$result = $client->describeSnapshots(array( 'CacheClusterId' => 'string', 'SnapshotName' => 'string', 'SnapshotSource' => 'string', 'Marker' => 'string', 'MaxRecords' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheClusterId => (string)A user-supplied cluster identifier. If this parameter is specified, only snapshots associated with that specific cache cluster will be described.
-
SnapshotName => (string)A user-supplied name of the snapshot. If this parameter is specified, only this snapshot will be described.
-
SnapshotSource => (string)If set to system, the output shows snapshots that were automatically created by ElastiCache. If set to user the output shows snapshots that were manually created. If omitted, the output shows both automatically and manually created snapshots.
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
MaxRecords => (int)The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
Default: 50
Constraints: minimum 20; maximum 50.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Marker => (string)An optional marker returned from a prior request. Use this marker for pagination of results from this action. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
-
Snapshots => (array<associative-array>)A list of snapshots. Each item in the list contains detailed information about one snapshot.
- (associative-array)
Represents a copy of an entire cache cluster as of the time when the snapshot was taken.
-
SnapshotName => (string)The name of a snapshot. For an automatic snapshot, the name is system-generated; for a manual snapshot, this is the user-provided name.
-
CacheClusterId => (string)The user-supplied identifier of the source cache cluster.
-
SnapshotStatus => (string)The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.
-
SnapshotSource => (string)Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
-
CacheNodeType => (string)The name of the compute and memory capacity node type for the source cache cluster.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Engine => (string)The name of the cache engine (memcached or redis) used by the source cache cluster.
-
EngineVersion => (string)The version of the cache engine version that is used by the source cache cluster.
-
NumCacheNodes => (int)The number of cache nodes in the source cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the source cache cluster is located.
-
CacheClusterCreateTime => (string)The date and time when the source cache cluster was created.
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
TopicArn => (string)The Amazon Resource Name (ARN) for the topic used by the source cache cluster for publishing notifications.
-
Port => (int)The port number used by each cache nodes in the source cache cluster.
-
CacheParameterGroupName => (string)The cache parameter group that is associated with the source cache cluster.
-
CacheSubnetGroupName => (string)The name of the cache subnet group associated with the source cache cluster.
-
VpcId => (string)The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group for the source cache cluster.
-
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SnapshotRetentionLimit => (int)For an automatic snapshot, the number of days for which ElastiCache will retain the snapshot before deleting it.
For manual snapshots, this field reflects the SnapshotRetentionLimit for the source cache cluster when the snapshot was created. This field is otherwise ignored: Manual snapshots do not expire, and can only be deleted using the DeleteSnapshot action.
Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. -
SnapshotWindow => (string)The daily time range during which ElastiCache takes daily snapshots of the source cache cluster.
-
NodeSnapshots => (array<associative-array>)A list of the cache nodes in the source cache cluster.
- (associative-array)
Represents an individual cache node in a snapshot of a cache cluster.
-
CacheNodeId => (string)The cache node identifier for the node in the source cache cluster.
-
CacheSize => (string)The size of the cache on the source cache node.
-
CacheNodeCreateTime => (string)The date and time when the cache node was created in the source cache cluster.
-
SnapshotCreateTime => (string)The date and time when the source node's metadata and cache data set was obtained for the snapshot.
-
- (associative-array)
-
- (associative-array)
Executes the ListTagsForResource operation.
The ListTagsForResource action lists all cost allocation tags currently on the named resource. A cost allocation tag is a key-value pair where the key is case-sensitive and the value is optional. Cost allocation tags can be used to categorize and track your AWS costs.
You can have a maximum of 10 cost allocation tags on an ElastiCache resource. For more information, see Using Cost Allocation Tags in Amazon ElastiCache.
Examples
- Basic formatting example
$result = $client->listTagsForResource(array( // ResourceName is required 'ResourceName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ResourceName => (string)The name of the resource for which you want the list of tags, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
TagList => (array<associative-array>)A list of cost allocation tags as key-value pairs.
- (associative-array)
A cost allocation Tag that can be added to an ElastiCache cluster or replication group. Tags are composed of a Key/Value pair. A tag with a null Value is permitted.
-
Key => (string)The key for the tag.
-
Value => (string)The tag's value. May not be null.
-
- (associative-array)
Executes the ModifyCacheCluster operation.
The ModifyCacheCluster action modifies the settings for a cache cluster. You can use this action to change one or more cluster configuration parameters by specifying the parameters and the new values.
Examples
- Basic formatting example
$result = $client->modifyCacheCluster(array( // CacheClusterId is required 'CacheClusterId' => 'string', 'NumCacheNodes' => integer, 'CacheNodeIdsToRemove' => array('string', ... ), 'AZMode' => 'string', 'NewAvailabilityZones' => array('string', ... ), 'CacheSecurityGroupNames' => array('string', ... ), 'SecurityGroupIds' => array('string', ... ), 'PreferredMaintenanceWindow' => 'string', 'NotificationTopicArn' => 'string', 'CacheParameterGroupName' => 'string', 'NotificationTopicStatus' => 'string', 'ApplyImmediately' => true || false, 'EngineVersion' => 'string', 'AutoMinorVersionUpgrade' => true || false, 'SnapshotRetentionLimit' => integer, 'SnapshotWindow' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheClusterId => (string)The cache cluster identifier. This value is stored as a lowercase string.
-
NumCacheNodes => (int)The number of cache nodes that the cache cluster should have. If the value for NumCacheNodes is greater than the sum of the number of current cache nodes and the number of cache nodes pending creation (which may be zero), then more nodes will be added. If the value is less than the number of existing cache nodes, then nodes will be removed. If the value is equal to the number of current cache nodes, then any pending add or remove requests are canceled.
If you are removing cache nodes, you must use the CacheNodeIdsToRemove parameter to provide the IDs of the specific cache nodes to remove.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
Note:
Adding or removing Memcached cache nodes can be applied immediately or as a pending action. See ApplyImmediately.
A pending action to modify the number of cache nodes in a cluster during its maintenance window, whether by adding or removing nodes in accordance with the scale out architecture, is not queued. The customer's latest request to add or remove nodes to the cluster overrides any previous pending actions to modify the number of cache nodes in the cluster. For example, a request to remove 2 nodes would override a previous pending action to remove 3 nodes. Similarly, a request to add 2 nodes would override a previous pending action to remove 3 nodes and vice versa. As Memcached cache nodes may now be provisioned in different Availability Zones with flexible cache node placement, a request to add nodes does not automatically override a previous pending action to add nodes. The customer can modify the previous pending action to add more nodes or explicitly cancel the pending request and retry the new request. To cancel pending actions to modify the number of cache nodes in a cluster, use the ModifyCacheCluster request and set NumCacheNodes equal to the number of cache nodes currently in the cache cluster. -
CacheNodeIdsToRemove => (array<string>)A list of cache node IDs to be removed. A node ID is a numeric identifier (0001, 0002, etc.). This parameter is only valid when NumCacheNodes is less than the existing number of cache nodes. The number of cache node IDs supplied in this parameter must match the difference between the existing number of cache nodes in the cluster or pending cache nodes, whichever is greater, and the value of NumCacheNodes in the request.
For example: If you have 3 active cache nodes, 7 pending cache nodes, and the number of cache nodes in this ModifyCacheCluser call is 5, you must list 2 (7 - 5) cache node IDs to remove.
-
AZMode => (string:single-az |cross-az )Specifies whether the new nodes in this Memcached cache cluster are all created in a single Availability Zone or created across multiple Availability Zones.
Valid values: single-az | cross-az.
This option is only supported for Memcached cache clusters.
You cannot specify single-az if the Memcached cache cluster already has cache nodes in different Availability Zones. If cross-az is specified, existing Memcached nodes remain in their current Availability Zone.
Only newly created nodes will be located in different Availability Zones. For instructions on how to move existing Memcached nodes to different Availability Zones, see the Availability Zone Considerations section of Cache Node Considerations for Memcached.
-
NewAvailabilityZones => (array<string>)The list of Availability Zones where the new Memcached cache nodes will be created.
This parameter is only valid when NumCacheNodes in the request is greater than the sum of the number of active cache nodes and the number of cache nodes pending creation (which may be zero). The number of Availability Zones supplied in this list must match the cache nodes being added in this request.
This option is only supported on Memcached clusters.
Scenarios:
- Scenario 1: You have 3 active nodes and wish to add 2
nodes.
Specify NumCacheNodes=5 (3 + 2) and optionally specify two Availability Zones for the two new nodes. - Scenario 2: You have 3 active nodes and 2 nodes pending
creation (from the scenario 1 call) and want to add 1 more node.
Specify NumCacheNodes=6 ((3 + 2) + 1) - and optionally specify an Availability Zone for the new node.
- Scenario 3: You want to cancel all pending actions.
Specify NumCacheNodes=3 to cancel all pending actions.
The Availability Zone placement of nodes pending creation cannot be modified. If you wish to cancel any nodes pending creation, add 0 nodes by setting NumCacheNodes to the number of current nodes.
If cross-az is specified, existing Memcached nodes remain in their current Availability Zone. Only newly created nodes can be located in different Availability Zones. For guidance on how to move existing Memcached nodes to different Availability Zones, see the Availability Zone Considerations section of Cache Node Considerations for Memcached.
Impact of new add/remove requests upon pending requests
<table> <tr> <th> Scenarios </th> <th> Pending action </th> <th> New Request </th> <th> Results </th> </tr> <tr> <td> Scenario-1 </td> <td> Delete </td> <td> Delete </td> <td> The new delete, pending or immediate, replaces the pending delete. </td> </tr> <tr> <td> Scenario-2 </td> <td> Delete </td> <td> Create </td> <td> The new create, pending or immediate, replaces the pending delete. </td> </tr> <tr> <td> Scenario-3 </td> <td> Create </td> <td> Delete </td> <td> The new delete, pending or immediate, replaces the pending create. </td> </tr> <tr> <td> Scenario-4 </td> <td> Create </td> <td> Create </td> <td> The new create is added to the pending create.
Important:
If the new create request is Apply Immediately - Yes, all creates are performed immediately. If the new create request is Apply Immediately - No, all creates are pending. </td> </tr> </table> - Scenario 1: You have 3 active nodes and wish to add 2
nodes.
-
CacheSecurityGroupNames => (array<string>)A list of cache security group names to authorize on this cache cluster. This change is asynchronously applied as soon as possible.
This parameter can be used only with clusters that are created outside of an Amazon Virtual Private Cloud (VPC).
Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".
-
SecurityGroupIds => (array<string>)Specifies the VPC Security Groups associated with the cache cluster.
This parameter can be used only with clusters that are created in an Amazon Virtual Private Cloud (VPC).
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
NotificationTopicArn => (string)The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.
The Amazon SNS topic owner must be same as the cache cluster owner. -
CacheParameterGroupName => (string)The name of the cache parameter group to apply to this cache cluster. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.
-
NotificationTopicStatus => (string)The status of the Amazon SNS notification topic. Notifications are sent only if the status is active.
Valid values: active | inactive
-
ApplyImmediately => (bool)If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the cache cluster.
If false, then changes to the cache cluster are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.
If you perform a ModifyCacheCluster before a pending modification is applied, the pending modification is replaced by the newer modification.Valid values: true | false
Default: false
-
EngineVersion => (string)The upgraded version of the cache engine to be run on the cache nodes.
-
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SnapshotRetentionLimit => (int)The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.
Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. -
SnapshotWindow => (string)The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CacheCluster => (associative-array)Contains all of the attributes of a specific cache cluster.
-
CacheClusterId => (string)The user-supplied identifier of the cache cluster. This identifier is a unique key that identifies a cache cluster.
-
ConfigurationEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
ClientDownloadLandingPage => (string)The URL of the web page where you can download the latest ElastiCache client library.
-
CacheNodeType => (string)The name of the compute and memory capacity node type for the cache cluster.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Engine => (string)The name of the cache engine (memcached or redis) to be used for this cache cluster.
-
EngineVersion => (string)The version of the cache engine version that is used in this cache cluster.
-
CacheClusterStatus => (string)The current state of this cache cluster, one of the following values: available, creating, deleted, deleting, incompatible-network, modifying, rebooting cache cluster nodes, restore-failed, or snapshotting.
-
NumCacheNodes => (int)The number of cache nodes in the cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the cache cluster is located or "Multiple" if the cache nodes are located in different Availability Zones.
-
CacheClusterCreateTime => (string)The date and time when the cache cluster was created.
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
PendingModifiedValues => (associative-array)A group of settings that will be applied to the cache cluster in the future, or that are currently being applied.
-
NumCacheNodes => (int)The new number of cache nodes for the cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
CacheNodeIdsToRemove => (array<string>)A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
-
EngineVersion => (string)The new cache engine version that the cache cluster will run.
-
-
NotificationConfiguration => (associative-array)Describes a notification topic and its status. Notification topics are used for publishing ElastiCache events to subscribers using Amazon Simple Notification Service (SNS).
-
TopicArn => (string)The Amazon Resource Name (ARN) that identifies the topic.
-
TopicStatus => (string)The current state of the topic.
-
-
CacheSecurityGroups => (array<associative-array>)A list of cache security group elements, composed of name and status sub-elements.
- (associative-array)
Represents a cache cluster's status within a particular cache security group.
-
CacheSecurityGroupName => (string)The name of the cache security group.
-
Status => (string)The membership status in the cache security group. The status changes when a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
-
- (associative-array)
-
CacheParameterGroup => (associative-array)The status of the cache parameter group.
-
CacheParameterGroupName => (string)The name of the cache parameter group.
-
ParameterApplyStatus => (string)The status of parameter updates.
-
CacheNodeIdsToReboot => (array<string>)A list of the cache node IDs which need to be rebooted for parameter changes to be applied. A node ID is a numeric identifier (0001, 0002, etc.).
-
-
CacheSubnetGroupName => (string)The name of the cache subnet group associated with the cache cluster.
-
CacheNodes => (array<associative-array>)A list of cache nodes that are members of the cache cluster.
- (associative-array)
Represents an individual cache node within a cache cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
-
CacheNodeId => (string)The cache node identifier. A node ID is a numeric identifier (0001, 0002, etc.). The combination of cluster ID and node ID uniquely identifies every cache node used in a customer's AWS account.
-
CacheNodeStatus => (string)The current state of this cache node.
-
CacheNodeCreateTime => (string)The date and time when the cache node was created.
-
Endpoint => (associative-array)The hostname for connecting to this cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
ParameterGroupStatus => (string)The status of the parameter group applied to this cache node.
-
SourceCacheNodeId => (string)The ID of the primary node to which this read replica node is synchronized. If this field is empty, then this node is not associated with a primary cache cluster.
-
CustomerAvailabilityZone => (string)The Availability Zone where this node was created and now resides.
- General purpose:
- (associative-array)
-
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SecurityGroups => (array<associative-array>)A list of VPC Security Groups associated with the cache cluster.
- (associative-array)
Represents a single cache security group and its status.
-
SecurityGroupId => (string)The identifier of the cache security group.
-
Status => (string)The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
-
- (associative-array)
-
ReplicationGroupId => (string)The replication group to which this cache cluster belongs. If this field is empty, the cache cluster is not associated with any replication group.
-
SnapshotRetentionLimit => (int)The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.
Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. -
SnapshotWindow => (string)The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster.
Example: 05:00-09:00
-
Executes the ModifyCacheParameterGroup operation.
The ModifyCacheParameterGroup action modifies the parameters of a cache parameter group. You can modify up to 20 parameters in a single request by submitting a list parameter name and value pairs.
Examples
- Basic formatting example
$result = $client->modifyCacheParameterGroup(array( // CacheParameterGroupName is required 'CacheParameterGroupName' => 'string', // ParameterNameValues is required 'ParameterNameValues' => array( array( 'ParameterName' => 'string', 'ParameterValue' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheParameterGroupName => (string)The name of the cache parameter group to modify.
-
ParameterNameValues => (array<associative-array>)An array of parameter names and values for the parameter update. You must supply at least one parameter name and value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request.
- (associative-array)
Describes a name-value pair that is used to update the value of a parameter.
-
ParameterName => (string)The name of the parameter.
-
ParameterValue => (string)The value of the parameter.
-
- (associative-array)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CacheParameterGroupName => (string)The name of the cache parameter group.
Executes the ModifyCacheSubnetGroup operation.
The ModifyCacheSubnetGroup action modifies an existing cache subnet group.
Examples
- Basic formatting example
$result = $client->modifyCacheSubnetGroup(array( // CacheSubnetGroupName is required 'CacheSubnetGroupName' => 'string', 'CacheSubnetGroupDescription' => 'string', 'SubnetIds' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheSubnetGroupName => (string)The name for the cache subnet group. This value is stored as a lowercase string.
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example: mysubnetgroup
-
CacheSubnetGroupDescription => (string)A description for the cache subnet group.
-
SubnetIds => (array<string>)The EC2 subnet IDs for the cache subnet group.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CacheSubnetGroup => (associative-array)Represents the output of one of the following actions:
- CreateCacheSubnetGroup
- ModifyCacheSubnetGroup
-
CacheSubnetGroupName => (string)The name of the cache subnet group.
-
CacheSubnetGroupDescription => (string)The description of the cache subnet group.
-
VpcId => (string)The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
-
Subnets => (array<associative-array>)A list of subnets associated with the cache subnet group.
- (associative-array)
Represents the subnet associated with a cache cluster. This parameter refers to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used with ElastiCache.
-
SubnetIdentifier => (string)The unique identifier for the subnet.
-
SubnetAvailabilityZone => (associative-array)The Availability Zone associated with the subnet.
-
Name => (string)The name of the Availability Zone.
-
-
- (associative-array)
Executes the ModifyReplicationGroup operation.
The ModifyReplicationGroup action modifies the settings for a replication group.
Examples
- Basic formatting example
$result = $client->modifyReplicationGroup(array( // ReplicationGroupId is required 'ReplicationGroupId' => 'string', 'ReplicationGroupDescription' => 'string', 'PrimaryClusterId' => 'string', 'SnapshottingClusterId' => 'string', 'AutomaticFailoverEnabled' => true || false, 'CacheSecurityGroupNames' => array('string', ... ), 'SecurityGroupIds' => array('string', ... ), 'PreferredMaintenanceWindow' => 'string', 'NotificationTopicArn' => 'string', 'CacheParameterGroupName' => 'string', 'NotificationTopicStatus' => 'string', 'ApplyImmediately' => true || false, 'EngineVersion' => 'string', 'AutoMinorVersionUpgrade' => true || false, 'SnapshotRetentionLimit' => integer, 'SnapshotWindow' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ReplicationGroupId => (string)The identifier of the replication group to modify.
-
ReplicationGroupDescription => (string)A description for the replication group. Maximum length is 255 characters.
-
PrimaryClusterId => (string)If this parameter is specified, ElastiCache will promote each of the cache clusters in the specified replication group to the primary role. The nodes of all other cache clusters in the replication group will be read replicas.
-
SnapshottingClusterId => (string)The cache cluster ID that will be used as the daily snapshot source for the replication group.
-
AutomaticFailoverEnabled => (bool)Whether a read replica will be automatically promoted to read/write primary if the existing primary encounters a failure.
Valid values: true | false
ElastiCache Multi-AZ replication groups are not supported on:
- Redis versions earlier than 2.8.6.
- T1 and T2 cache node types.
-
CacheSecurityGroupNames => (array<string>)A list of cache security group names to authorize for the clusters in this replication group. This change is asynchronously applied as soon as possible.
This parameter can be used only with replication group containing cache clusters running outside of an Amazon Virtual Private Cloud (VPC).
Constraints: Must contain no more than 255 alphanumeric characters. Must not be "Default".
-
SecurityGroupIds => (array<string>)Specifies the VPC Security Groups associated with the cache clusters in the replication group.
This parameter can be used only with replication group containing cache clusters running in an Amazon Virtual Private Cloud (VPC).
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
NotificationTopicArn => (string)The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.
The Amazon SNS topic owner must be same as the replication group owner. -
CacheParameterGroupName => (string)The name of the cache parameter group to apply to all of the clusters in this replication group. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.
-
NotificationTopicStatus => (string)The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active.
Valid values: active | inactive
-
ApplyImmediately => (bool)If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.
If false, then changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.
Valid values: true | false
Default: false
-
EngineVersion => (string)The upgraded version of the cache engine to be run on the cache clusters in the replication group.
-
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SnapshotRetentionLimit => (int)The number of days for which ElastiCache will retain automatic node group snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.
Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. -
SnapshotWindow => (string)The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the node group specified by SnapshottingClusterId.
Example: 05:00-09:00
If you do not specify this parameter, then ElastiCache will automatically choose an appropriate time range.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReplicationGroup => (associative-array)Contains all of the attributes of a specific replication group.
-
ReplicationGroupId => (string)The identifier for the replication group.
-
Description => (string)The description of the replication group.
-
Status => (string)The current state of this replication group - creating, available, etc.
-
PendingModifiedValues => (associative-array)A group of settings to be applied to the replication group, either immediately or during the next maintenance window.
-
PrimaryClusterId => (string)The primary cluster ID which will be applied immediately (if --apply-immediately was specified), or during the next maintenance window.
-
AutomaticFailoverStatus => (string)Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
- Redis versions earlier than 2.8.6.
- T1 and T2 cache node types.
-
-
MemberClusters => (array<string>)The names of all the cache clusters that are part of this replication group.
-
NodeGroups => (array<associative-array>)A single element list with information about the nodes in the replication group.
- (associative-array)
Represents a collection of cache nodes in a replication group.
-
NodeGroupId => (string)The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
-
Status => (string)The current state of this replication group - creating, available, etc.
-
PrimaryEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
NodeGroupMembers => (array<associative-array>)A list containing information about individual nodes within the node group.
- (associative-array)
Represents a single node within a node group.
-
CacheClusterId => (string)The ID of the cache cluster to which the node belongs.
-
CacheNodeId => (string)The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
-
ReadEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the node is located.
-
CurrentRole => (string)The role that is currently assigned to the node - primary or replica.
-
- (associative-array)
-
- (associative-array)
-
SnapshottingClusterId => (string)The cache cluster ID that is used as the daily snapshot source for the replication group.
-
AutomaticFailover => (string)Indicates the status of Multi-AZ for this replication group.
ElastiCache Multi-AZ replication groups are not supported on:
- Redis versions earlier than 2.8.6.
- T1 and T2 cache node types.
-
Executes the PurchaseReservedCacheNodesOffering operation.
The PurchaseReservedCacheNodesOffering action allows you to purchase a reserved cache node offering.
Examples
- Basic formatting example
$result = $client->purchaseReservedCacheNodesOffering(array( // ReservedCacheNodesOfferingId is required 'ReservedCacheNodesOfferingId' => 'string', 'ReservedCacheNodeId' => 'string', 'CacheNodeCount' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ReservedCacheNodesOfferingId => (string)The ID of the reserved cache node offering to purchase.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
-
ReservedCacheNodeId => (string)A customer-specified identifier to track this reservation.
Example: myreservationID
-
CacheNodeCount => (int)The number of cache node instances to reserve.
Default: 1
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
ReservedCacheNode => (associative-array)Represents the output of a PurchaseReservedCacheNodesOffering action.
-
ReservedCacheNodeId => (string)The unique identifier for the reservation.
-
ReservedCacheNodesOfferingId => (string)The offering identifier.
-
CacheNodeType => (string)The cache node type for the reserved cache nodes.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
StartTime => (string)The time the reservation started.
-
Duration => (int)The duration of the reservation in seconds.
-
FixedPrice => (int)The fixed price charged for this reserved cache node.
-
UsagePrice => (int)The hourly price charged for this reserved cache node.
-
CacheNodeCount => (int)The number of cache nodes that have been reserved.
-
ProductDescription => (string)The description of the reserved cache node.
-
OfferingType => (string)The offering type of this reserved cache node.
-
State => (string)The state of the reserved cache node.
-
RecurringCharges => (array<associative-array>)The recurring price charged to run this reserved cache node.
- (associative-array)
Contains the specific price and frequency of a recurring charges for a reserved cache node, or for a reserved cache node offering.
-
RecurringChargeAmount => (int)The monetary amount of the recurring charge.
-
RecurringChargeFrequency => (string)The frequency of the recurring charge.
-
- (associative-array)
-
Executes the RebootCacheCluster operation.
The RebootCacheCluster action reboots some, or all, of the cache nodes within a provisioned cache cluster. This API will apply any modified cache parameter groups to the cache cluster. The reboot action takes place as soon as possible, and results in a momentary outage to the cache cluster. During the reboot, the cache cluster status is set to REBOOTING.
The reboot causes the contents of the cache (for each cache node being rebooted) to be lost.
When the reboot is complete, a cache cluster event is created.
Examples
- Basic formatting example
$result = $client->rebootCacheCluster(array( // CacheClusterId is required 'CacheClusterId' => 'string', // CacheNodeIdsToReboot is required 'CacheNodeIdsToReboot' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheClusterId => (string)The cache cluster identifier. This parameter is stored as a lowercase string.
-
CacheNodeIdsToReboot => (array<string>)A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, 0002, etc.). To reboot an entire cache cluster, specify all of the cache node IDs.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CacheCluster => (associative-array)Contains all of the attributes of a specific cache cluster.
-
CacheClusterId => (string)The user-supplied identifier of the cache cluster. This identifier is a unique key that identifies a cache cluster.
-
ConfigurationEndpoint => (associative-array)Represents the information required for client programs to connect to a cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
ClientDownloadLandingPage => (string)The URL of the web page where you can download the latest ElastiCache client library.
-
CacheNodeType => (string)The name of the compute and memory capacity node type for the cache cluster.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
- General purpose:
-
Engine => (string)The name of the cache engine (memcached or redis) to be used for this cache cluster.
-
EngineVersion => (string)The version of the cache engine version that is used in this cache cluster.
-
CacheClusterStatus => (string)The current state of this cache cluster, one of the following values: available, creating, deleted, deleting, incompatible-network, modifying, rebooting cache cluster nodes, restore-failed, or snapshotting.
-
NumCacheNodes => (int)The number of cache nodes in the cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
PreferredAvailabilityZone => (string)The name of the Availability Zone in which the cache cluster is located or "Multiple" if the cache nodes are located in different Availability Zones.
-
CacheClusterCreateTime => (string)The date and time when the cache cluster was created.
-
PreferredMaintenanceWindow => (string)Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
Example: sun:05:00-sun:09:00
-
PendingModifiedValues => (associative-array)A group of settings that will be applied to the cache cluster in the future, or that are currently being applied.
-
NumCacheNodes => (int)The new number of cache nodes for the cache cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 20.
-
CacheNodeIdsToRemove => (array<string>)A list of cache node IDs that are being removed (or will be removed) from the cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
-
EngineVersion => (string)The new cache engine version that the cache cluster will run.
-
-
NotificationConfiguration => (associative-array)Describes a notification topic and its status. Notification topics are used for publishing ElastiCache events to subscribers using Amazon Simple Notification Service (SNS).
-
TopicArn => (string)The Amazon Resource Name (ARN) that identifies the topic.
-
TopicStatus => (string)The current state of the topic.
-
-
CacheSecurityGroups => (array<associative-array>)A list of cache security group elements, composed of name and status sub-elements.
- (associative-array)
Represents a cache cluster's status within a particular cache security group.
-
CacheSecurityGroupName => (string)The name of the cache security group.
-
Status => (string)The membership status in the cache security group. The status changes when a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
-
- (associative-array)
-
CacheParameterGroup => (associative-array)The status of the cache parameter group.
-
CacheParameterGroupName => (string)The name of the cache parameter group.
-
ParameterApplyStatus => (string)The status of parameter updates.
-
CacheNodeIdsToReboot => (array<string>)A list of the cache node IDs which need to be rebooted for parameter changes to be applied. A node ID is a numeric identifier (0001, 0002, etc.).
-
-
CacheSubnetGroupName => (string)The name of the cache subnet group associated with the cache cluster.
-
CacheNodes => (array<associative-array>)A list of cache nodes that are members of the cache cluster.
- (associative-array)
Represents an individual cache node within a cache cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.
Valid node types are as follows:
- General purpose:
- Current generation: cache.t2.micro, cache.t2.small, cache.t2.medium, cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge
- Previous generation: cache.t1.micro, cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge
- Compute optimized: cache.c1.xlarge
- Memory optimized
- Current generation: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge
- Previous generation: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge
Notes:
- All t2 instances are created in an Amazon Virtual Private Cloud (VPC).
- Redis backup/restore is not supported for t2 instances.
- Redis Append-only files (AOF) functionality is not supported for t1 or t2 instances.
For a complete listing of cache node types and specifications, see Amazon ElastiCache Product Features and Details and Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
-
CacheNodeId => (string)The cache node identifier. A node ID is a numeric identifier (0001, 0002, etc.). The combination of cluster ID and node ID uniquely identifies every cache node used in a customer's AWS account.
-
CacheNodeStatus => (string)The current state of this cache node.
-
CacheNodeCreateTime => (string)The date and time when the cache node was created.
-
Endpoint => (associative-array)The hostname for connecting to this cache node.
-
Address => (string)The DNS hostname of the cache node.
-
Port => (int)The port number that the cache engine is listening on.
-
-
ParameterGroupStatus => (string)The status of the parameter group applied to this cache node.
-
SourceCacheNodeId => (string)The ID of the primary node to which this read replica node is synchronized. If this field is empty, then this node is not associated with a primary cache cluster.
-
CustomerAvailabilityZone => (string)The Availability Zone where this node was created and now resides.
- General purpose:
- (associative-array)
-
AutoMinorVersionUpgrade => (bool)This parameter is currently disabled.
-
SecurityGroups => (array<associative-array>)A list of VPC Security Groups associated with the cache cluster.
- (associative-array)
Represents a single cache security group and its status.
-
SecurityGroupId => (string)The identifier of the cache security group.
-
Status => (string)The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cache cluster are modified.
-
- (associative-array)
-
ReplicationGroupId => (string)The replication group to which this cache cluster belongs. If this field is empty, the cache cluster is not associated with any replication group.
-
SnapshotRetentionLimit => (int)The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted.
Important
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. -
SnapshotWindow => (string)The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster.
Example: 05:00-09:00
-
Executes the RemoveTagsFromResource operation.
The RemoveTagsFromResource action removes the tags identified by the
Examples
- Basic formatting example
$result = $client->removeTagsFromResource(array( // ResourceName is required 'ResourceName' => 'string', // TagKeys is required 'TagKeys' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
ResourceName => (string)The name of the ElastiCache resource from which you want the listed tags removed, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster.
-
TagKeys => (array<string>)A list of TagKeys identifying the tags you want removed from the named resource. For example, TagKeys.member.1=Region removes the cost allocation tag with the key name Region from the resource named by the ResourceName parameter.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
TagList => (array<associative-array>)A list of cost allocation tags as key-value pairs.
- (associative-array)
A cost allocation Tag that can be added to an ElastiCache cluster or replication group. Tags are composed of a Key/Value pair. A tag with a null Value is permitted.
-
Key => (string)The key for the tag.
-
Value => (string)The tag's value. May not be null.
-
- (associative-array)
Executes the ResetCacheParameterGroup operation.
The ResetCacheParameterGroup action modifies the parameters of a cache 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 cache parameter group, specify the ResetAllParameters and CacheParameterGroupName parameters.
Examples
- Basic formatting example
$result = $client->resetCacheParameterGroup(array( // CacheParameterGroupName is required 'CacheParameterGroupName' => 'string', 'ResetAllParameters' => true || false, // ParameterNameValues is required 'ParameterNameValues' => array( array( 'ParameterName' => 'string', 'ParameterValue' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheParameterGroupName => (string)The name of the cache parameter group to reset.
-
ResetAllParameters => (bool)If true, all parameters in the cache parameter group will be reset to default values. If false, no such action occurs.
Valid values: true | false
-
ParameterNameValues => (array<associative-array>)An array of parameter names to be reset. If you are not resetting the entire cache parameter group, you must specify at least one parameter name.
- (associative-array)
Describes a name-value pair that is used to update the value of a parameter.
-
ParameterName => (string)The name of the parameter.
-
ParameterValue => (string)The value of the parameter.
-
- (associative-array)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CacheParameterGroupName => (string)The name of the cache parameter group.
Executes the RevokeCacheSecurityGroupIngress operation.
The RevokeCacheSecurityGroupIngress action revokes ingress from a cache security group. Use this action to disallow access from an Amazon EC2 security group that had been previously authorized.
Examples
- Basic formatting example
$result = $client->revokeCacheSecurityGroupIngress(array( // CacheSecurityGroupName is required 'CacheSecurityGroupName' => 'string', // EC2SecurityGroupName is required 'EC2SecurityGroupName' => 'string', // EC2SecurityGroupOwnerId is required 'EC2SecurityGroupOwnerId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
CacheSecurityGroupName => (string)The name of the cache security group to revoke ingress from.
-
EC2SecurityGroupName => (string)The name of the Amazon EC2 security group to revoke access from.
-
EC2SecurityGroupOwnerId => (string)The AWS account number of the Amazon EC2 security group owner. Note that this is not the same thing as an AWS access key ID - you must provide a valid AWS account number for this parameter.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
CacheSecurityGroup => (associative-array)Represents the output of one of the following actions:
- AuthorizeCacheSecurityGroupIngress
- CreateCacheSecurityGroup
- RevokeCacheSecurityGroupIngress
-
OwnerId => (string)The AWS account ID of the cache security group owner.
-
CacheSecurityGroupName => (string)The name of the cache security group.
-
Description => (string)The description of the cache security group.
-
EC2SecurityGroups => (array<associative-array>)A list of Amazon EC2 security groups that are associated with this cache security group.
- (associative-array)
Provides ownership and status information for an Amazon EC2 security group.
-
Status => (string)The status of the Amazon EC2 security group.
-
EC2SecurityGroupName => (string)The name of the Amazon EC2 security group.
-
EC2SecurityGroupOwnerId => (string)The AWS account ID of the Amazon EC2 security group owner.
-
- (associative-array)
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeCacheClustersIterator( array $args = array() )
The input array uses the parameters of the DescribeCacheClusters operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeCacheEngineVersionsIterator( array $args = array() )
The input array uses the parameters of the DescribeCacheEngineVersions operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeCacheParameterGroupsIterator( array $args = array() )
The input array uses the parameters of the DescribeCacheParameterGroups operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeCacheParametersIterator( array $args = array() )
The input array uses the parameters of the DescribeCacheParameters operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeCacheSecurityGroupsIterator( array $args = array() )
The input array uses the parameters of the DescribeCacheSecurityGroups operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeCacheSubnetGroupsIterator( array $args = array() )
The input array uses the parameters of the DescribeCacheSubnetGroups operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeEngineDefaultParametersIterator( array $args = array() )
The input array uses the parameters of the DescribeEngineDefaultParameters operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeEventsIterator( array $args = array() )
The input array uses the parameters of the DescribeEvents operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeReservedCacheNodesIterator( array $args = array() )
The input array uses the parameters of the DescribeReservedCacheNodes operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeReservedCacheNodesOfferingsIterator( array $args = array() )
The input array uses the parameters of the DescribeReservedCacheNodesOfferings operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeReplicationGroupsIterator( array $args = array() )
The input array uses the parameters of the DescribeReplicationGroups operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeSnapshotsIterator( array $args = array() )
The input array uses the parameters of the DescribeSnapshots operation
Parameters
- $args
array
$args
Returns
Methods inherited from Aws\Common\Client\AbstractClient
__call()
,
__construct()
,
createRequest()
,
getAllEvents()
,
getApiVersion()
,
getCredentials()
,
getRegion()
,
getRegions()
,
getSignature()
,
getWaiter()
,
getWaiterFactory()
,
send()
,
setCredentials()
,
setRegion()
,
setWaiterFactory()
,
waitUntil()
Methods inherited from Guzzle\Service\Client
execute()
,
executeMultiple()
,
getCommand()
,
getCommandFactory()
,
getDescription()
,
getInflector()
,
getIterator()
,
getResourceIteratorFactory()
,
prepareCommand()
,
setCommandFactory()
,
setDescription()
,
setInflector()
,
setResourceIteratorFactory()
Methods inherited from Guzzle\Http\Client
delete()
,
expandTemplate()
,
extractPharCacert()
,
get()
,
getBaseUrl()
,
getConfig()
,
getCurlMulti()
,
getDefaultOption()
,
getDefaultUserAgent()
,
getUriTemplate()
,
head()
,
initSsl()
,
options()
,
patch()
,
post()
,
prepareRequest()
,
put()
,
sendMultiple()
,
setBaseUrl()
,
setConfig()
,
setCurlMulti()
,
setDefaultOption()
,
setRequestFactory()
,
setSslVerification()
,
setUriTemplate()
,
setUserAgent()
Methods inherited from Guzzle\Common\AbstractHasDispatcher
addSubscriber()
,
dispatch()
,
getEventDispatcher()
,
setEventDispatcher()
Magic methods summary
Constants summary
string |
LATEST_API_VERSION |
'2015-02-02' |
Constants inherited from Guzzle\Service\Client
Constants inherited from Guzzle\Http\Client
CURL_OPTIONS
,
DEFAULT_SELECT_TIMEOUT
,
DISABLE_REDIRECTS
,
MAX_HANDLES
,
REQUEST_OPTIONS
,
SSL_CERT_AUTHORITY
Constants inherited from Guzzle\Http\ClientInterface
Properties summary
Properties inherited from Aws\Common\Client\AbstractClient
$aggregator
,
$credentials
,
$signature
,
$waiterFactory
Properties inherited from Guzzle\Service\Client
$commandFactory
,
$inflector
,
$resourceIteratorFactory
,
$serviceDescription
Properties inherited from Guzzle\Http\Client
$defaultHeaders
,
$requestFactory
,
$userAgent