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.

ModifyReplicationGroupShardConfigurationInput

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

type ModifyReplicationGroupShardConfigurationInput struct { ApplyImmediately *bool `type:"boolean" required:"true"` NodeGroupCount *int64 `type:"integer" required:"true"` NodeGroupsToRemove []*string `locationNameList:"NodeGroupToRemove" type:"list"` NodeGroupsToRetain []*string `locationNameList:"NodeGroupToRetain" type:"list"` ReplicationGroupId *string `type:"string" required:"true"` ReshardingConfiguration []*ReshardingConfiguration `locationNameList:"ReshardingConfiguration" type:"list"` }

Represents the input for a ModifyReplicationGroupShardConfiguration operation.

ApplyImmediately

Type: *bool

Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for this parameter is true.

Value: true

ApplyImmediately is a required field

NodeGroupCount

Type: *int64

The number of node groups (shards) that results from the modification of the shard configuration.

NodeGroupCount is a required field

NodeGroupsToRemove

Type: []*string

If the value of NodeGroupCount is less than the current number of node groups (shards), the NodeGroupsToRemove or NodeGroupsToRetain is a required list of node group ids to remove from or retain in the cluster.

ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove from the cluster.

NodeGroupsToRetain

Type: []*string

If the value of NodeGroupCount is less than the current number of node groups (shards), the NodeGroupsToRemove or NodeGroupsToRetain is a required list of node group ids to remove from or retain in the cluster.

ElastiCache for Redis will attempt to remove all node groups except those listed by NodeGroupsToRetain from the cluster.

ReplicationGroupId

Type: *string

The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be configured.

ReplicationGroupId is a required field

ReshardingConfiguration

A list of PreferredAvailabilityZones objects that specifies the configuration of a node group in the resharded cluster.

Method

GoString

func (s ModifyReplicationGroupShardConfigurationInput) GoString() string

GoString returns the string representation

SetApplyImmediately

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

SetApplyImmediately sets the ApplyImmediately field's value.

SetNodeGroupCount

func (s *ModifyReplicationGroupShardConfigurationInput) SetNodeGroupCount(v int64) *ModifyReplicationGroupShardConfigurationInput

SetNodeGroupCount sets the NodeGroupCount field's value.

SetNodeGroupsToRemove

func (s *ModifyReplicationGroupShardConfigurationInput) SetNodeGroupsToRemove(v []*string) *ModifyReplicationGroupShardConfigurationInput

SetNodeGroupsToRemove sets the NodeGroupsToRemove field's value.

SetNodeGroupsToRetain

func (s *ModifyReplicationGroupShardConfigurationInput) SetNodeGroupsToRetain(v []*string) *ModifyReplicationGroupShardConfigurationInput

SetNodeGroupsToRetain sets the NodeGroupsToRetain field's value.

SetReplicationGroupId

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

SetReplicationGroupId sets the ReplicationGroupId field's value.

SetReshardingConfiguration

func (s *ModifyReplicationGroupShardConfigurationInput) SetReshardingConfiguration(v []*ReshardingConfiguration) *ModifyReplicationGroupShardConfigurationInput

SetReshardingConfiguration sets the ReshardingConfiguration field's value.

String

func (s ModifyReplicationGroupShardConfigurationInput) String() string

String returns the string representation

Validate

func (s *ModifyReplicationGroupShardConfigurationInput) Validate() error

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

On this page: