AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

DecreaseReplicaCountInput

import "github.com/aws/aws-sdk-go/service/elasticache"

type DecreaseReplicaCountInput struct { ApplyImmediately *bool `type:"boolean" required:"true"` NewReplicaCount *int64 `type:"integer"` ReplicaConfiguration []*ConfigureShard `locationNameList:"ConfigureShard" type:"list"` ReplicasToRemove []*string `type:"list"` ReplicationGroupId *string `type:"string" required:"true"` }

ApplyImmediately

Type: *bool

If True, the number of replica nodes is decreased immediately. If False, the number of replica nodes is decreased during the next maintenance window.

ApplyImmediately is a required field

NewReplicaCount

Type: *int64

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 with Automatic Failover is enabled: 1

If Multi-AZ with Automatic Failover 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

Node group (shard) configuration options when adding or removing replicas. Each node group (shard) configuration has the following members: NodeGroupId, NewReplicaCount, and PreferredAvailabilityZones.

ReplicasToRemove

Type: []*string

A list of the node ids to remove from the replication group or node group (shard).

ReplicationGroupId

Type: *string

The id of the replication group from which you want to remove replica nodes.

ReplicationGroupId is a required field

Method

GoString

func (s DecreaseReplicaCountInput) GoString() string

GoString returns the string representation

SetApplyImmediately

func (s *DecreaseReplicaCountInput) SetApplyImmediately(v bool) *DecreaseReplicaCountInput

SetApplyImmediately sets the ApplyImmediately field's value.

SetNewReplicaCount

func (s *DecreaseReplicaCountInput) SetNewReplicaCount(v int64) *DecreaseReplicaCountInput

SetNewReplicaCount sets the NewReplicaCount field's value.

SetReplicaConfiguration

func (s *DecreaseReplicaCountInput) SetReplicaConfiguration(v []*ConfigureShard) *DecreaseReplicaCountInput

SetReplicaConfiguration sets the ReplicaConfiguration field's value.

SetReplicasToRemove

func (s *DecreaseReplicaCountInput) SetReplicasToRemove(v []*string) *DecreaseReplicaCountInput

SetReplicasToRemove sets the ReplicasToRemove field's value.

SetReplicationGroupId

func (s *DecreaseReplicaCountInput) SetReplicationGroupId(v string) *DecreaseReplicaCountInput

SetReplicationGroupId sets the ReplicationGroupId field's value.

String

func (s DecreaseReplicaCountInput) String() string

String returns the string representation

Validate

func (s *DecreaseReplicaCountInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: