libZSservicesZSamazonka-memorydbZSamazonka-memorydb
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.MemoryDb.Types.Shard

Description

 
Synopsis

Documentation

data Shard Source #

Represents a collection of nodes in a cluster. One node in the node group is the read/write primary node. All the other nodes are read-only Replica nodes.

See: newShard smart constructor.

Constructors

Shard' 

Fields

Instances

Instances details
Eq Shard Source # 
Instance details

Defined in Amazonka.MemoryDb.Types.Shard

Methods

(==) :: Shard -> Shard -> Bool #

(/=) :: Shard -> Shard -> Bool #

Read Shard Source # 
Instance details

Defined in Amazonka.MemoryDb.Types.Shard

Show Shard Source # 
Instance details

Defined in Amazonka.MemoryDb.Types.Shard

Methods

showsPrec :: Int -> Shard -> ShowS #

show :: Shard -> String #

showList :: [Shard] -> ShowS #

Generic Shard Source # 
Instance details

Defined in Amazonka.MemoryDb.Types.Shard

Associated Types

type Rep Shard :: Type -> Type #

Methods

from :: Shard -> Rep Shard x #

to :: Rep Shard x -> Shard #

NFData Shard Source # 
Instance details

Defined in Amazonka.MemoryDb.Types.Shard

Methods

rnf :: Shard -> () #

Hashable Shard Source # 
Instance details

Defined in Amazonka.MemoryDb.Types.Shard

Methods

hashWithSalt :: Int -> Shard -> Int #

hash :: Shard -> Int #

FromJSON Shard Source # 
Instance details

Defined in Amazonka.MemoryDb.Types.Shard

type Rep Shard Source # 
Instance details

Defined in Amazonka.MemoryDb.Types.Shard

type Rep Shard = D1 ('MetaData "Shard" "Amazonka.MemoryDb.Types.Shard" "libZSservicesZSamazonka-memorydbZSamazonka-memorydb" 'False) (C1 ('MetaCons "Shard'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "slots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "numberOfNodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Node]))))))

newShard :: Shard Source #

Create a value of Shard with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:status:Shard', shard_status - The current state of this replication group - creating, available, modifying, deleting.

$sel:slots:Shard', shard_slots - The keyspace for this shard.

$sel:numberOfNodes:Shard', shard_numberOfNodes - The number of nodes in the shard

$sel:name:Shard', shard_name - The name of the shard

$sel:nodes:Shard', shard_nodes - A list containing information about individual nodes within the shard

shard_status :: Lens' Shard (Maybe Text) Source #

The current state of this replication group - creating, available, modifying, deleting.

shard_slots :: Lens' Shard (Maybe Text) Source #

The keyspace for this shard.

shard_numberOfNodes :: Lens' Shard (Maybe Int) Source #

The number of nodes in the shard

shard_name :: Lens' Shard (Maybe Text) Source #

The name of the shard

shard_nodes :: Lens' Shard (Maybe [Node]) Source #

A list containing information about individual nodes within the shard