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.

NodeGroupConfiguration

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

type NodeGroupConfiguration struct { NodeGroupId *string `min:"1" type:"string"` PrimaryAvailabilityZone *string `type:"string"` ReplicaAvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"` ReplicaCount *int64 `type:"integer"` Slots *string `type:"string"` }

Node group (shard) configuration options. Each node group (shard) configuration has the following: Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount.

NodeGroupId

Type: *string

The 4-digit id for the node group these configuration values apply to.

PrimaryAvailabilityZone

Type: *string

The Availability Zone where the primary node of this node group (shard) is launched.

ReplicaAvailabilityZones

Type: []*string

A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this list must match the value of ReplicaCount or ReplicasPerNodeGroup if not specified.

ReplicaCount

Type: *int64

The number of read replica nodes in this node group (shard).

Slots

Type: *string

A string that specifies the keyspace for a particular node group. Keyspaces range from 0 to 16,383. The string is in the format startkey-endkey.

Example: "0-3999"

Method

GoString

func (s NodeGroupConfiguration) GoString() string

GoString returns the string representation

SetNodeGroupId

func (s *NodeGroupConfiguration) SetNodeGroupId(v string) *NodeGroupConfiguration

SetNodeGroupId sets the NodeGroupId field's value.

SetPrimaryAvailabilityZone

func (s *NodeGroupConfiguration) SetPrimaryAvailabilityZone(v string) *NodeGroupConfiguration

SetPrimaryAvailabilityZone sets the PrimaryAvailabilityZone field's value.

SetReplicaAvailabilityZones

func (s *NodeGroupConfiguration) SetReplicaAvailabilityZones(v []*string) *NodeGroupConfiguration

SetReplicaAvailabilityZones sets the ReplicaAvailabilityZones field's value.

SetReplicaCount

func (s *NodeGroupConfiguration) SetReplicaCount(v int64) *NodeGroupConfiguration

SetReplicaCount sets the ReplicaCount field's value.

SetSlots

func (s *NodeGroupConfiguration) SetSlots(v string) *NodeGroupConfiguration

SetSlots sets the Slots field's value.

String

func (s NodeGroupConfiguration) String() string

String returns the string representation

Validate

func (s *NodeGroupConfiguration) Validate() error

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

On this page: