NAME
Paws::ElastiCache::DecreaseReplicaCount - Arguments for method DecreaseReplicaCount on Paws::ElastiCache
DESCRIPTION
This class represents the parameters used for calling the method DecreaseReplicaCount on the Amazon ElastiCache service. Use the attributes of this class as arguments to method DecreaseReplicaCount.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DecreaseReplicaCount.
SYNOPSIS
my $elasticache = Paws->service('ElastiCache');
my $DecreaseReplicaCountResult = $elasticache->DecreaseReplicaCount(
ApplyImmediately => 1,
ReplicationGroupId => 'MyString',
NewReplicaCount => 1, # OPTIONAL
ReplicaConfiguration => [
{
NewReplicaCount => 1,
NodeGroupId => 'MyAllowedNodeGroupId', # min: 1, max: 4
PreferredAvailabilityZones => [ 'MyString', ... ], # OPTIONAL
PreferredOutpostArns => [ 'MyString', ... ], # OPTIONAL
},
...
], # OPTIONAL
ReplicasToRemove => [ 'MyString', ... ], # OPTIONAL
);
# Results:
my $ReplicationGroup = $DecreaseReplicaCountResult->ReplicationGroup;
# Returns a L<Paws::ElastiCache::DecreaseReplicaCountResult> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/elasticache/DecreaseReplicaCount
ATTRIBUTES
REQUIRED ApplyImmediately => Bool
If True
, the number of replica nodes is decreased immediately. ApplyImmediately=False
is not currently supported.
NewReplicaCount => Int
The number of read replica nodes you want at the completion of this operation. For Redis (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Redis (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.
The minimum number of replicas in a shard or replication group is:
Redis (cluster mode disabled)
If Multi-AZ is enabled: 1
If Multi-AZ is not enabled: 0
Redis (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)
ReplicaConfiguration => ArrayRef[Paws::ElastiCache::ConfigureShard]
A list of ConfigureShard
objects that can be used to configure each shard in a Redis (cluster mode enabled) replication group. The ConfigureShard
has three members: NewReplicaCount
, NodeGroupId
, and PreferredAvailabilityZones
.
ReplicasToRemove => ArrayRef[Str|Undef]
A list of the node ids to remove from the replication group or node group (shard).
REQUIRED ReplicationGroupId => Str
The id of the replication group from which you want to remove replica nodes.
SEE ALSO
This class forms part of Paws, documenting arguments for method DecreaseReplicaCount in Paws::ElastiCache
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues