{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ElastiCache.Types.CacheCluster where
import qualified Amazonka.Core as Core
import Amazonka.ElastiCache.Types.CacheNode
import Amazonka.ElastiCache.Types.CacheParameterGroupStatus
import Amazonka.ElastiCache.Types.CacheSecurityGroupMembership
import Amazonka.ElastiCache.Types.Endpoint
import Amazonka.ElastiCache.Types.LogDeliveryConfiguration
import Amazonka.ElastiCache.Types.NotificationConfiguration
import Amazonka.ElastiCache.Types.PendingModifiedValues
import Amazonka.ElastiCache.Types.SecurityGroupMembership
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data CacheCluster = CacheCluster'
{
CacheCluster -> Maybe ISO8601
authTokenLastModifiedDate :: Prelude.Maybe Core.ISO8601,
CacheCluster -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe Text
cacheNodeType :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe [CacheNode]
cacheNodes :: Prelude.Maybe [CacheNode],
CacheCluster -> Maybe ISO8601
cacheClusterCreateTime :: Prelude.Maybe Core.ISO8601,
CacheCluster -> Maybe Bool
atRestEncryptionEnabled :: Prelude.Maybe Prelude.Bool,
CacheCluster -> Maybe Bool
autoMinorVersionUpgrade :: Prelude.Maybe Prelude.Bool,
CacheCluster -> Maybe [SecurityGroupMembership]
securityGroups :: Prelude.Maybe [SecurityGroupMembership],
CacheCluster -> Maybe NotificationConfiguration
notificationConfiguration :: Prelude.Maybe NotificationConfiguration,
CacheCluster -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe Bool
transitEncryptionEnabled :: Prelude.Maybe Prelude.Bool,
CacheCluster -> Maybe Text
snapshotWindow :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe Text
cacheClusterId :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe [LogDeliveryConfiguration]
logDeliveryConfigurations :: Prelude.Maybe [LogDeliveryConfiguration],
CacheCluster -> Maybe Endpoint
configurationEndpoint :: Prelude.Maybe Endpoint,
CacheCluster -> Maybe Text
engine :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe [CacheSecurityGroupMembership]
cacheSecurityGroups :: Prelude.Maybe [CacheSecurityGroupMembership],
CacheCluster -> Maybe Bool
replicationGroupLogDeliveryEnabled :: Prelude.Maybe Prelude.Bool,
CacheCluster -> Maybe Bool
authTokenEnabled :: Prelude.Maybe Prelude.Bool,
CacheCluster -> Maybe Text
clientDownloadLandingPage :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe Text
preferredMaintenanceWindow :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe Text
cacheSubnetGroupName :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe Text
preferredAvailabilityZone :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe CacheParameterGroupStatus
cacheParameterGroup :: Prelude.Maybe CacheParameterGroupStatus,
CacheCluster -> Maybe Text
cacheClusterStatus :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe Int
snapshotRetentionLimit :: Prelude.Maybe Prelude.Int,
CacheCluster -> Maybe Text
preferredOutpostArn :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe Text
replicationGroupId :: Prelude.Maybe Prelude.Text,
CacheCluster -> Maybe PendingModifiedValues
pendingModifiedValues :: Prelude.Maybe PendingModifiedValues,
CacheCluster -> Maybe Int
numCacheNodes :: Prelude.Maybe Prelude.Int
}
deriving (CacheCluster -> CacheCluster -> Bool
(CacheCluster -> CacheCluster -> Bool)
-> (CacheCluster -> CacheCluster -> Bool) -> Eq CacheCluster
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CacheCluster -> CacheCluster -> Bool
$c/= :: CacheCluster -> CacheCluster -> Bool
== :: CacheCluster -> CacheCluster -> Bool
$c== :: CacheCluster -> CacheCluster -> Bool
Prelude.Eq, ReadPrec [CacheCluster]
ReadPrec CacheCluster
Int -> ReadS CacheCluster
ReadS [CacheCluster]
(Int -> ReadS CacheCluster)
-> ReadS [CacheCluster]
-> ReadPrec CacheCluster
-> ReadPrec [CacheCluster]
-> Read CacheCluster
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CacheCluster]
$creadListPrec :: ReadPrec [CacheCluster]
readPrec :: ReadPrec CacheCluster
$creadPrec :: ReadPrec CacheCluster
readList :: ReadS [CacheCluster]
$creadList :: ReadS [CacheCluster]
readsPrec :: Int -> ReadS CacheCluster
$creadsPrec :: Int -> ReadS CacheCluster
Prelude.Read, Int -> CacheCluster -> ShowS
[CacheCluster] -> ShowS
CacheCluster -> String
(Int -> CacheCluster -> ShowS)
-> (CacheCluster -> String)
-> ([CacheCluster] -> ShowS)
-> Show CacheCluster
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CacheCluster] -> ShowS
$cshowList :: [CacheCluster] -> ShowS
show :: CacheCluster -> String
$cshow :: CacheCluster -> String
showsPrec :: Int -> CacheCluster -> ShowS
$cshowsPrec :: Int -> CacheCluster -> ShowS
Prelude.Show, (forall x. CacheCluster -> Rep CacheCluster x)
-> (forall x. Rep CacheCluster x -> CacheCluster)
-> Generic CacheCluster
forall x. Rep CacheCluster x -> CacheCluster
forall x. CacheCluster -> Rep CacheCluster x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CacheCluster x -> CacheCluster
$cfrom :: forall x. CacheCluster -> Rep CacheCluster x
Prelude.Generic)
newCacheCluster ::
CacheCluster
newCacheCluster :: CacheCluster
newCacheCluster =
CacheCluster' :: Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe [CacheNode]
-> Maybe ISO8601
-> Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster
CacheCluster'
{ $sel:authTokenLastModifiedDate:CacheCluster' :: Maybe ISO8601
authTokenLastModifiedDate =
Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:engineVersion:CacheCluster' :: Maybe Text
engineVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cacheNodeType:CacheCluster' :: Maybe Text
cacheNodeType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cacheNodes:CacheCluster' :: Maybe [CacheNode]
cacheNodes = Maybe [CacheNode]
forall a. Maybe a
Prelude.Nothing,
$sel:cacheClusterCreateTime:CacheCluster' :: Maybe ISO8601
cacheClusterCreateTime = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:atRestEncryptionEnabled:CacheCluster' :: Maybe Bool
atRestEncryptionEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:autoMinorVersionUpgrade:CacheCluster' :: Maybe Bool
autoMinorVersionUpgrade = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:securityGroups:CacheCluster' :: Maybe [SecurityGroupMembership]
securityGroups = Maybe [SecurityGroupMembership]
forall a. Maybe a
Prelude.Nothing,
$sel:notificationConfiguration:CacheCluster' :: Maybe NotificationConfiguration
notificationConfiguration = Maybe NotificationConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:arn:CacheCluster' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:transitEncryptionEnabled:CacheCluster' :: Maybe Bool
transitEncryptionEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:snapshotWindow:CacheCluster' :: Maybe Text
snapshotWindow = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cacheClusterId:CacheCluster' :: Maybe Text
cacheClusterId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:logDeliveryConfigurations:CacheCluster' :: Maybe [LogDeliveryConfiguration]
logDeliveryConfigurations = Maybe [LogDeliveryConfiguration]
forall a. Maybe a
Prelude.Nothing,
$sel:configurationEndpoint:CacheCluster' :: Maybe Endpoint
configurationEndpoint = Maybe Endpoint
forall a. Maybe a
Prelude.Nothing,
$sel:engine:CacheCluster' :: Maybe Text
engine = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cacheSecurityGroups:CacheCluster' :: Maybe [CacheSecurityGroupMembership]
cacheSecurityGroups = Maybe [CacheSecurityGroupMembership]
forall a. Maybe a
Prelude.Nothing,
$sel:replicationGroupLogDeliveryEnabled:CacheCluster' :: Maybe Bool
replicationGroupLogDeliveryEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:authTokenEnabled:CacheCluster' :: Maybe Bool
authTokenEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:clientDownloadLandingPage:CacheCluster' :: Maybe Text
clientDownloadLandingPage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:preferredMaintenanceWindow:CacheCluster' :: Maybe Text
preferredMaintenanceWindow = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cacheSubnetGroupName:CacheCluster' :: Maybe Text
cacheSubnetGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:preferredAvailabilityZone:CacheCluster' :: Maybe Text
preferredAvailabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cacheParameterGroup:CacheCluster' :: Maybe CacheParameterGroupStatus
cacheParameterGroup = Maybe CacheParameterGroupStatus
forall a. Maybe a
Prelude.Nothing,
$sel:cacheClusterStatus:CacheCluster' :: Maybe Text
cacheClusterStatus = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:snapshotRetentionLimit:CacheCluster' :: Maybe Int
snapshotRetentionLimit = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:preferredOutpostArn:CacheCluster' :: Maybe Text
preferredOutpostArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationGroupId:CacheCluster' :: Maybe Text
replicationGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pendingModifiedValues:CacheCluster' :: Maybe PendingModifiedValues
pendingModifiedValues = Maybe PendingModifiedValues
forall a. Maybe a
Prelude.Nothing,
$sel:numCacheNodes:CacheCluster' :: Maybe Int
numCacheNodes = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
cacheCluster_authTokenLastModifiedDate :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.UTCTime)
cacheCluster_authTokenLastModifiedDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CacheCluster -> f CacheCluster
cacheCluster_authTokenLastModifiedDate = (CacheCluster -> Maybe ISO8601)
-> (CacheCluster -> Maybe ISO8601 -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe ISO8601
authTokenLastModifiedDate :: Maybe ISO8601
$sel:authTokenLastModifiedDate:CacheCluster' :: CacheCluster -> Maybe ISO8601
authTokenLastModifiedDate} -> Maybe ISO8601
authTokenLastModifiedDate) (\s :: CacheCluster
s@CacheCluster' {} Maybe ISO8601
a -> CacheCluster
s {$sel:authTokenLastModifiedDate:CacheCluster' :: Maybe ISO8601
authTokenLastModifiedDate = Maybe ISO8601
a} :: CacheCluster) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> CacheCluster -> f CacheCluster)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CacheCluster
-> f CacheCluster
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
(Maybe ISO8601) (Maybe ISO8601) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
cacheCluster_engineVersion :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_engineVersion :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_engineVersion = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:CacheCluster' :: CacheCluster -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:engineVersion:CacheCluster' :: Maybe Text
engineVersion = Maybe Text
a} :: CacheCluster)
cacheCluster_cacheNodeType :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_cacheNodeType :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_cacheNodeType = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
cacheNodeType :: Maybe Text
$sel:cacheNodeType:CacheCluster' :: CacheCluster -> Maybe Text
cacheNodeType} -> Maybe Text
cacheNodeType) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:cacheNodeType:CacheCluster' :: Maybe Text
cacheNodeType = Maybe Text
a} :: CacheCluster)
cacheCluster_cacheNodes :: Lens.Lens' CacheCluster (Prelude.Maybe [CacheNode])
cacheCluster_cacheNodes :: (Maybe [CacheNode] -> f (Maybe [CacheNode]))
-> CacheCluster -> f CacheCluster
cacheCluster_cacheNodes = (CacheCluster -> Maybe [CacheNode])
-> (CacheCluster -> Maybe [CacheNode] -> CacheCluster)
-> Lens
CacheCluster CacheCluster (Maybe [CacheNode]) (Maybe [CacheNode])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe [CacheNode]
cacheNodes :: Maybe [CacheNode]
$sel:cacheNodes:CacheCluster' :: CacheCluster -> Maybe [CacheNode]
cacheNodes} -> Maybe [CacheNode]
cacheNodes) (\s :: CacheCluster
s@CacheCluster' {} Maybe [CacheNode]
a -> CacheCluster
s {$sel:cacheNodes:CacheCluster' :: Maybe [CacheNode]
cacheNodes = Maybe [CacheNode]
a} :: CacheCluster) ((Maybe [CacheNode] -> f (Maybe [CacheNode]))
-> CacheCluster -> f CacheCluster)
-> ((Maybe [CacheNode] -> f (Maybe [CacheNode]))
-> Maybe [CacheNode] -> f (Maybe [CacheNode]))
-> (Maybe [CacheNode] -> f (Maybe [CacheNode]))
-> CacheCluster
-> f CacheCluster
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [CacheNode] [CacheNode] [CacheNode] [CacheNode]
-> Iso
(Maybe [CacheNode])
(Maybe [CacheNode])
(Maybe [CacheNode])
(Maybe [CacheNode])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [CacheNode] [CacheNode] [CacheNode] [CacheNode]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
cacheCluster_cacheClusterCreateTime :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.UTCTime)
cacheCluster_cacheClusterCreateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CacheCluster -> f CacheCluster
cacheCluster_cacheClusterCreateTime = (CacheCluster -> Maybe ISO8601)
-> (CacheCluster -> Maybe ISO8601 -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe ISO8601
cacheClusterCreateTime :: Maybe ISO8601
$sel:cacheClusterCreateTime:CacheCluster' :: CacheCluster -> Maybe ISO8601
cacheClusterCreateTime} -> Maybe ISO8601
cacheClusterCreateTime) (\s :: CacheCluster
s@CacheCluster' {} Maybe ISO8601
a -> CacheCluster
s {$sel:cacheClusterCreateTime:CacheCluster' :: Maybe ISO8601
cacheClusterCreateTime = Maybe ISO8601
a} :: CacheCluster) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> CacheCluster -> f CacheCluster)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CacheCluster
-> f CacheCluster
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
(Maybe ISO8601) (Maybe ISO8601) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
cacheCluster_atRestEncryptionEnabled :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Bool)
cacheCluster_atRestEncryptionEnabled :: (Maybe Bool -> f (Maybe Bool)) -> CacheCluster -> f CacheCluster
cacheCluster_atRestEncryptionEnabled = (CacheCluster -> Maybe Bool)
-> (CacheCluster -> Maybe Bool -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Bool
atRestEncryptionEnabled :: Maybe Bool
$sel:atRestEncryptionEnabled:CacheCluster' :: CacheCluster -> Maybe Bool
atRestEncryptionEnabled} -> Maybe Bool
atRestEncryptionEnabled) (\s :: CacheCluster
s@CacheCluster' {} Maybe Bool
a -> CacheCluster
s {$sel:atRestEncryptionEnabled:CacheCluster' :: Maybe Bool
atRestEncryptionEnabled = Maybe Bool
a} :: CacheCluster)
cacheCluster_autoMinorVersionUpgrade :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Bool)
cacheCluster_autoMinorVersionUpgrade :: (Maybe Bool -> f (Maybe Bool)) -> CacheCluster -> f CacheCluster
cacheCluster_autoMinorVersionUpgrade = (CacheCluster -> Maybe Bool)
-> (CacheCluster -> Maybe Bool -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Bool
autoMinorVersionUpgrade :: Maybe Bool
$sel:autoMinorVersionUpgrade:CacheCluster' :: CacheCluster -> Maybe Bool
autoMinorVersionUpgrade} -> Maybe Bool
autoMinorVersionUpgrade) (\s :: CacheCluster
s@CacheCluster' {} Maybe Bool
a -> CacheCluster
s {$sel:autoMinorVersionUpgrade:CacheCluster' :: Maybe Bool
autoMinorVersionUpgrade = Maybe Bool
a} :: CacheCluster)
cacheCluster_securityGroups :: Lens.Lens' CacheCluster (Prelude.Maybe [SecurityGroupMembership])
cacheCluster_securityGroups :: (Maybe [SecurityGroupMembership]
-> f (Maybe [SecurityGroupMembership]))
-> CacheCluster -> f CacheCluster
cacheCluster_securityGroups = (CacheCluster -> Maybe [SecurityGroupMembership])
-> (CacheCluster
-> Maybe [SecurityGroupMembership] -> CacheCluster)
-> Lens
CacheCluster
CacheCluster
(Maybe [SecurityGroupMembership])
(Maybe [SecurityGroupMembership])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe [SecurityGroupMembership]
securityGroups :: Maybe [SecurityGroupMembership]
$sel:securityGroups:CacheCluster' :: CacheCluster -> Maybe [SecurityGroupMembership]
securityGroups} -> Maybe [SecurityGroupMembership]
securityGroups) (\s :: CacheCluster
s@CacheCluster' {} Maybe [SecurityGroupMembership]
a -> CacheCluster
s {$sel:securityGroups:CacheCluster' :: Maybe [SecurityGroupMembership]
securityGroups = Maybe [SecurityGroupMembership]
a} :: CacheCluster) ((Maybe [SecurityGroupMembership]
-> f (Maybe [SecurityGroupMembership]))
-> CacheCluster -> f CacheCluster)
-> ((Maybe [SecurityGroupMembership]
-> f (Maybe [SecurityGroupMembership]))
-> Maybe [SecurityGroupMembership]
-> f (Maybe [SecurityGroupMembership]))
-> (Maybe [SecurityGroupMembership]
-> f (Maybe [SecurityGroupMembership]))
-> CacheCluster
-> f CacheCluster
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SecurityGroupMembership]
[SecurityGroupMembership]
[SecurityGroupMembership]
[SecurityGroupMembership]
-> Iso
(Maybe [SecurityGroupMembership])
(Maybe [SecurityGroupMembership])
(Maybe [SecurityGroupMembership])
(Maybe [SecurityGroupMembership])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[SecurityGroupMembership]
[SecurityGroupMembership]
[SecurityGroupMembership]
[SecurityGroupMembership]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
cacheCluster_notificationConfiguration :: Lens.Lens' CacheCluster (Prelude.Maybe NotificationConfiguration)
cacheCluster_notificationConfiguration :: (Maybe NotificationConfiguration
-> f (Maybe NotificationConfiguration))
-> CacheCluster -> f CacheCluster
cacheCluster_notificationConfiguration = (CacheCluster -> Maybe NotificationConfiguration)
-> (CacheCluster
-> Maybe NotificationConfiguration -> CacheCluster)
-> Lens
CacheCluster
CacheCluster
(Maybe NotificationConfiguration)
(Maybe NotificationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe NotificationConfiguration
notificationConfiguration :: Maybe NotificationConfiguration
$sel:notificationConfiguration:CacheCluster' :: CacheCluster -> Maybe NotificationConfiguration
notificationConfiguration} -> Maybe NotificationConfiguration
notificationConfiguration) (\s :: CacheCluster
s@CacheCluster' {} Maybe NotificationConfiguration
a -> CacheCluster
s {$sel:notificationConfiguration:CacheCluster' :: Maybe NotificationConfiguration
notificationConfiguration = Maybe NotificationConfiguration
a} :: CacheCluster)
cacheCluster_arn :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_arn :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_arn = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
arn :: Maybe Text
$sel:arn:CacheCluster' :: CacheCluster -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:arn:CacheCluster' :: Maybe Text
arn = Maybe Text
a} :: CacheCluster)
cacheCluster_transitEncryptionEnabled :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Bool)
cacheCluster_transitEncryptionEnabled :: (Maybe Bool -> f (Maybe Bool)) -> CacheCluster -> f CacheCluster
cacheCluster_transitEncryptionEnabled = (CacheCluster -> Maybe Bool)
-> (CacheCluster -> Maybe Bool -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Bool
transitEncryptionEnabled :: Maybe Bool
$sel:transitEncryptionEnabled:CacheCluster' :: CacheCluster -> Maybe Bool
transitEncryptionEnabled} -> Maybe Bool
transitEncryptionEnabled) (\s :: CacheCluster
s@CacheCluster' {} Maybe Bool
a -> CacheCluster
s {$sel:transitEncryptionEnabled:CacheCluster' :: Maybe Bool
transitEncryptionEnabled = Maybe Bool
a} :: CacheCluster)
cacheCluster_snapshotWindow :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_snapshotWindow :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_snapshotWindow = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
snapshotWindow :: Maybe Text
$sel:snapshotWindow:CacheCluster' :: CacheCluster -> Maybe Text
snapshotWindow} -> Maybe Text
snapshotWindow) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:snapshotWindow:CacheCluster' :: Maybe Text
snapshotWindow = Maybe Text
a} :: CacheCluster)
cacheCluster_cacheClusterId :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_cacheClusterId :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_cacheClusterId = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
cacheClusterId :: Maybe Text
$sel:cacheClusterId:CacheCluster' :: CacheCluster -> Maybe Text
cacheClusterId} -> Maybe Text
cacheClusterId) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:cacheClusterId:CacheCluster' :: Maybe Text
cacheClusterId = Maybe Text
a} :: CacheCluster)
cacheCluster_logDeliveryConfigurations :: Lens.Lens' CacheCluster (Prelude.Maybe [LogDeliveryConfiguration])
cacheCluster_logDeliveryConfigurations :: (Maybe [LogDeliveryConfiguration]
-> f (Maybe [LogDeliveryConfiguration]))
-> CacheCluster -> f CacheCluster
cacheCluster_logDeliveryConfigurations = (CacheCluster -> Maybe [LogDeliveryConfiguration])
-> (CacheCluster
-> Maybe [LogDeliveryConfiguration] -> CacheCluster)
-> Lens
CacheCluster
CacheCluster
(Maybe [LogDeliveryConfiguration])
(Maybe [LogDeliveryConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe [LogDeliveryConfiguration]
logDeliveryConfigurations :: Maybe [LogDeliveryConfiguration]
$sel:logDeliveryConfigurations:CacheCluster' :: CacheCluster -> Maybe [LogDeliveryConfiguration]
logDeliveryConfigurations} -> Maybe [LogDeliveryConfiguration]
logDeliveryConfigurations) (\s :: CacheCluster
s@CacheCluster' {} Maybe [LogDeliveryConfiguration]
a -> CacheCluster
s {$sel:logDeliveryConfigurations:CacheCluster' :: Maybe [LogDeliveryConfiguration]
logDeliveryConfigurations = Maybe [LogDeliveryConfiguration]
a} :: CacheCluster) ((Maybe [LogDeliveryConfiguration]
-> f (Maybe [LogDeliveryConfiguration]))
-> CacheCluster -> f CacheCluster)
-> ((Maybe [LogDeliveryConfiguration]
-> f (Maybe [LogDeliveryConfiguration]))
-> Maybe [LogDeliveryConfiguration]
-> f (Maybe [LogDeliveryConfiguration]))
-> (Maybe [LogDeliveryConfiguration]
-> f (Maybe [LogDeliveryConfiguration]))
-> CacheCluster
-> f CacheCluster
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[LogDeliveryConfiguration]
[LogDeliveryConfiguration]
[LogDeliveryConfiguration]
[LogDeliveryConfiguration]
-> Iso
(Maybe [LogDeliveryConfiguration])
(Maybe [LogDeliveryConfiguration])
(Maybe [LogDeliveryConfiguration])
(Maybe [LogDeliveryConfiguration])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[LogDeliveryConfiguration]
[LogDeliveryConfiguration]
[LogDeliveryConfiguration]
[LogDeliveryConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
cacheCluster_configurationEndpoint :: Lens.Lens' CacheCluster (Prelude.Maybe Endpoint)
cacheCluster_configurationEndpoint :: (Maybe Endpoint -> f (Maybe Endpoint))
-> CacheCluster -> f CacheCluster
cacheCluster_configurationEndpoint = (CacheCluster -> Maybe Endpoint)
-> (CacheCluster -> Maybe Endpoint -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Endpoint) (Maybe Endpoint)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Endpoint
configurationEndpoint :: Maybe Endpoint
$sel:configurationEndpoint:CacheCluster' :: CacheCluster -> Maybe Endpoint
configurationEndpoint} -> Maybe Endpoint
configurationEndpoint) (\s :: CacheCluster
s@CacheCluster' {} Maybe Endpoint
a -> CacheCluster
s {$sel:configurationEndpoint:CacheCluster' :: Maybe Endpoint
configurationEndpoint = Maybe Endpoint
a} :: CacheCluster)
cacheCluster_engine :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_engine :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_engine = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
engine :: Maybe Text
$sel:engine:CacheCluster' :: CacheCluster -> Maybe Text
engine} -> Maybe Text
engine) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:engine:CacheCluster' :: Maybe Text
engine = Maybe Text
a} :: CacheCluster)
cacheCluster_cacheSecurityGroups :: Lens.Lens' CacheCluster (Prelude.Maybe [CacheSecurityGroupMembership])
cacheCluster_cacheSecurityGroups :: (Maybe [CacheSecurityGroupMembership]
-> f (Maybe [CacheSecurityGroupMembership]))
-> CacheCluster -> f CacheCluster
cacheCluster_cacheSecurityGroups = (CacheCluster -> Maybe [CacheSecurityGroupMembership])
-> (CacheCluster
-> Maybe [CacheSecurityGroupMembership] -> CacheCluster)
-> Lens
CacheCluster
CacheCluster
(Maybe [CacheSecurityGroupMembership])
(Maybe [CacheSecurityGroupMembership])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe [CacheSecurityGroupMembership]
cacheSecurityGroups :: Maybe [CacheSecurityGroupMembership]
$sel:cacheSecurityGroups:CacheCluster' :: CacheCluster -> Maybe [CacheSecurityGroupMembership]
cacheSecurityGroups} -> Maybe [CacheSecurityGroupMembership]
cacheSecurityGroups) (\s :: CacheCluster
s@CacheCluster' {} Maybe [CacheSecurityGroupMembership]
a -> CacheCluster
s {$sel:cacheSecurityGroups:CacheCluster' :: Maybe [CacheSecurityGroupMembership]
cacheSecurityGroups = Maybe [CacheSecurityGroupMembership]
a} :: CacheCluster) ((Maybe [CacheSecurityGroupMembership]
-> f (Maybe [CacheSecurityGroupMembership]))
-> CacheCluster -> f CacheCluster)
-> ((Maybe [CacheSecurityGroupMembership]
-> f (Maybe [CacheSecurityGroupMembership]))
-> Maybe [CacheSecurityGroupMembership]
-> f (Maybe [CacheSecurityGroupMembership]))
-> (Maybe [CacheSecurityGroupMembership]
-> f (Maybe [CacheSecurityGroupMembership]))
-> CacheCluster
-> f CacheCluster
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[CacheSecurityGroupMembership]
[CacheSecurityGroupMembership]
[CacheSecurityGroupMembership]
[CacheSecurityGroupMembership]
-> Iso
(Maybe [CacheSecurityGroupMembership])
(Maybe [CacheSecurityGroupMembership])
(Maybe [CacheSecurityGroupMembership])
(Maybe [CacheSecurityGroupMembership])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[CacheSecurityGroupMembership]
[CacheSecurityGroupMembership]
[CacheSecurityGroupMembership]
[CacheSecurityGroupMembership]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
cacheCluster_replicationGroupLogDeliveryEnabled :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Bool)
cacheCluster_replicationGroupLogDeliveryEnabled :: (Maybe Bool -> f (Maybe Bool)) -> CacheCluster -> f CacheCluster
cacheCluster_replicationGroupLogDeliveryEnabled = (CacheCluster -> Maybe Bool)
-> (CacheCluster -> Maybe Bool -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Bool
replicationGroupLogDeliveryEnabled :: Maybe Bool
$sel:replicationGroupLogDeliveryEnabled:CacheCluster' :: CacheCluster -> Maybe Bool
replicationGroupLogDeliveryEnabled} -> Maybe Bool
replicationGroupLogDeliveryEnabled) (\s :: CacheCluster
s@CacheCluster' {} Maybe Bool
a -> CacheCluster
s {$sel:replicationGroupLogDeliveryEnabled:CacheCluster' :: Maybe Bool
replicationGroupLogDeliveryEnabled = Maybe Bool
a} :: CacheCluster)
cacheCluster_authTokenEnabled :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Bool)
cacheCluster_authTokenEnabled :: (Maybe Bool -> f (Maybe Bool)) -> CacheCluster -> f CacheCluster
cacheCluster_authTokenEnabled = (CacheCluster -> Maybe Bool)
-> (CacheCluster -> Maybe Bool -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Bool
authTokenEnabled :: Maybe Bool
$sel:authTokenEnabled:CacheCluster' :: CacheCluster -> Maybe Bool
authTokenEnabled} -> Maybe Bool
authTokenEnabled) (\s :: CacheCluster
s@CacheCluster' {} Maybe Bool
a -> CacheCluster
s {$sel:authTokenEnabled:CacheCluster' :: Maybe Bool
authTokenEnabled = Maybe Bool
a} :: CacheCluster)
cacheCluster_clientDownloadLandingPage :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_clientDownloadLandingPage :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_clientDownloadLandingPage = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
clientDownloadLandingPage :: Maybe Text
$sel:clientDownloadLandingPage:CacheCluster' :: CacheCluster -> Maybe Text
clientDownloadLandingPage} -> Maybe Text
clientDownloadLandingPage) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:clientDownloadLandingPage:CacheCluster' :: Maybe Text
clientDownloadLandingPage = Maybe Text
a} :: CacheCluster)
cacheCluster_preferredMaintenanceWindow :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_preferredMaintenanceWindow :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_preferredMaintenanceWindow = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
preferredMaintenanceWindow :: Maybe Text
$sel:preferredMaintenanceWindow:CacheCluster' :: CacheCluster -> Maybe Text
preferredMaintenanceWindow} -> Maybe Text
preferredMaintenanceWindow) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:preferredMaintenanceWindow:CacheCluster' :: Maybe Text
preferredMaintenanceWindow = Maybe Text
a} :: CacheCluster)
cacheCluster_cacheSubnetGroupName :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_cacheSubnetGroupName :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_cacheSubnetGroupName = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
cacheSubnetGroupName :: Maybe Text
$sel:cacheSubnetGroupName:CacheCluster' :: CacheCluster -> Maybe Text
cacheSubnetGroupName} -> Maybe Text
cacheSubnetGroupName) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:cacheSubnetGroupName:CacheCluster' :: Maybe Text
cacheSubnetGroupName = Maybe Text
a} :: CacheCluster)
cacheCluster_preferredAvailabilityZone :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_preferredAvailabilityZone :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_preferredAvailabilityZone = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
preferredAvailabilityZone :: Maybe Text
$sel:preferredAvailabilityZone:CacheCluster' :: CacheCluster -> Maybe Text
preferredAvailabilityZone} -> Maybe Text
preferredAvailabilityZone) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:preferredAvailabilityZone:CacheCluster' :: Maybe Text
preferredAvailabilityZone = Maybe Text
a} :: CacheCluster)
cacheCluster_cacheParameterGroup :: Lens.Lens' CacheCluster (Prelude.Maybe CacheParameterGroupStatus)
cacheCluster_cacheParameterGroup :: (Maybe CacheParameterGroupStatus
-> f (Maybe CacheParameterGroupStatus))
-> CacheCluster -> f CacheCluster
cacheCluster_cacheParameterGroup = (CacheCluster -> Maybe CacheParameterGroupStatus)
-> (CacheCluster
-> Maybe CacheParameterGroupStatus -> CacheCluster)
-> Lens
CacheCluster
CacheCluster
(Maybe CacheParameterGroupStatus)
(Maybe CacheParameterGroupStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe CacheParameterGroupStatus
cacheParameterGroup :: Maybe CacheParameterGroupStatus
$sel:cacheParameterGroup:CacheCluster' :: CacheCluster -> Maybe CacheParameterGroupStatus
cacheParameterGroup} -> Maybe CacheParameterGroupStatus
cacheParameterGroup) (\s :: CacheCluster
s@CacheCluster' {} Maybe CacheParameterGroupStatus
a -> CacheCluster
s {$sel:cacheParameterGroup:CacheCluster' :: Maybe CacheParameterGroupStatus
cacheParameterGroup = Maybe CacheParameterGroupStatus
a} :: CacheCluster)
cacheCluster_cacheClusterStatus :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_cacheClusterStatus :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_cacheClusterStatus = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
cacheClusterStatus :: Maybe Text
$sel:cacheClusterStatus:CacheCluster' :: CacheCluster -> Maybe Text
cacheClusterStatus} -> Maybe Text
cacheClusterStatus) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:cacheClusterStatus:CacheCluster' :: Maybe Text
cacheClusterStatus = Maybe Text
a} :: CacheCluster)
cacheCluster_snapshotRetentionLimit :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Int)
cacheCluster_snapshotRetentionLimit :: (Maybe Int -> f (Maybe Int)) -> CacheCluster -> f CacheCluster
cacheCluster_snapshotRetentionLimit = (CacheCluster -> Maybe Int)
-> (CacheCluster -> Maybe Int -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Int
snapshotRetentionLimit :: Maybe Int
$sel:snapshotRetentionLimit:CacheCluster' :: CacheCluster -> Maybe Int
snapshotRetentionLimit} -> Maybe Int
snapshotRetentionLimit) (\s :: CacheCluster
s@CacheCluster' {} Maybe Int
a -> CacheCluster
s {$sel:snapshotRetentionLimit:CacheCluster' :: Maybe Int
snapshotRetentionLimit = Maybe Int
a} :: CacheCluster)
cacheCluster_preferredOutpostArn :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_preferredOutpostArn :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_preferredOutpostArn = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
preferredOutpostArn :: Maybe Text
$sel:preferredOutpostArn:CacheCluster' :: CacheCluster -> Maybe Text
preferredOutpostArn} -> Maybe Text
preferredOutpostArn) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:preferredOutpostArn:CacheCluster' :: Maybe Text
preferredOutpostArn = Maybe Text
a} :: CacheCluster)
cacheCluster_replicationGroupId :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Text)
cacheCluster_replicationGroupId :: (Maybe Text -> f (Maybe Text)) -> CacheCluster -> f CacheCluster
cacheCluster_replicationGroupId = (CacheCluster -> Maybe Text)
-> (CacheCluster -> Maybe Text -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Text
replicationGroupId :: Maybe Text
$sel:replicationGroupId:CacheCluster' :: CacheCluster -> Maybe Text
replicationGroupId} -> Maybe Text
replicationGroupId) (\s :: CacheCluster
s@CacheCluster' {} Maybe Text
a -> CacheCluster
s {$sel:replicationGroupId:CacheCluster' :: Maybe Text
replicationGroupId = Maybe Text
a} :: CacheCluster)
cacheCluster_pendingModifiedValues :: Lens.Lens' CacheCluster (Prelude.Maybe PendingModifiedValues)
cacheCluster_pendingModifiedValues :: (Maybe PendingModifiedValues -> f (Maybe PendingModifiedValues))
-> CacheCluster -> f CacheCluster
cacheCluster_pendingModifiedValues = (CacheCluster -> Maybe PendingModifiedValues)
-> (CacheCluster -> Maybe PendingModifiedValues -> CacheCluster)
-> Lens
CacheCluster
CacheCluster
(Maybe PendingModifiedValues)
(Maybe PendingModifiedValues)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe PendingModifiedValues
pendingModifiedValues :: Maybe PendingModifiedValues
$sel:pendingModifiedValues:CacheCluster' :: CacheCluster -> Maybe PendingModifiedValues
pendingModifiedValues} -> Maybe PendingModifiedValues
pendingModifiedValues) (\s :: CacheCluster
s@CacheCluster' {} Maybe PendingModifiedValues
a -> CacheCluster
s {$sel:pendingModifiedValues:CacheCluster' :: Maybe PendingModifiedValues
pendingModifiedValues = Maybe PendingModifiedValues
a} :: CacheCluster)
cacheCluster_numCacheNodes :: Lens.Lens' CacheCluster (Prelude.Maybe Prelude.Int)
cacheCluster_numCacheNodes :: (Maybe Int -> f (Maybe Int)) -> CacheCluster -> f CacheCluster
cacheCluster_numCacheNodes = (CacheCluster -> Maybe Int)
-> (CacheCluster -> Maybe Int -> CacheCluster)
-> Lens CacheCluster CacheCluster (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CacheCluster' {Maybe Int
numCacheNodes :: Maybe Int
$sel:numCacheNodes:CacheCluster' :: CacheCluster -> Maybe Int
numCacheNodes} -> Maybe Int
numCacheNodes) (\s :: CacheCluster
s@CacheCluster' {} Maybe Int
a -> CacheCluster
s {$sel:numCacheNodes:CacheCluster' :: Maybe Int
numCacheNodes = Maybe Int
a} :: CacheCluster)
instance Core.FromXML CacheCluster where
parseXML :: [Node] -> Either String CacheCluster
parseXML [Node]
x =
Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe [CacheNode]
-> Maybe ISO8601
-> Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster
CacheCluster'
(Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe [CacheNode]
-> Maybe ISO8601
-> Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe ISO8601)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe [CacheNode]
-> Maybe ISO8601
-> Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AuthTokenLastModifiedDate")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe [CacheNode]
-> Maybe ISO8601
-> Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [CacheNode]
-> Maybe ISO8601
-> Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"EngineVersion")
Either
String
(Maybe Text
-> Maybe [CacheNode]
-> Maybe ISO8601
-> Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Text)
-> Either
String
(Maybe [CacheNode]
-> Maybe ISO8601
-> Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CacheNodeType")
Either
String
(Maybe [CacheNode]
-> Maybe ISO8601
-> Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe [CacheNode])
-> Either
String
(Maybe ISO8601
-> Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CacheNodes" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [CacheNode]))
-> Either String (Maybe [CacheNode])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [CacheNode])
-> [Node] -> Either String (Maybe [CacheNode])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [CacheNode]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"CacheNode")
)
Either
String
(Maybe ISO8601
-> Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe ISO8601)
-> Either
String
(Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CacheClusterCreateTime")
Either
String
(Maybe Bool
-> Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AtRestEncryptionEnabled")
Either
String
(Maybe Bool
-> Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Bool)
-> Either
String
(Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AutoMinorVersionUpgrade")
Either
String
(Maybe [SecurityGroupMembership]
-> Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe [SecurityGroupMembership])
-> Either
String
(Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SecurityGroups" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [SecurityGroupMembership]))
-> Either String (Maybe [SecurityGroupMembership])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [SecurityGroupMembership])
-> [Node] -> Either String (Maybe [SecurityGroupMembership])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [SecurityGroupMembership]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either
String
(Maybe NotificationConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe NotificationConfiguration)
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe NotificationConfiguration)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NotificationConfiguration")
Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ARN")
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TransitEncryptionEnabled")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SnapshotWindow")
Either
String
(Maybe Text
-> Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Text)
-> Either
String
(Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CacheClusterId")
Either
String
(Maybe [LogDeliveryConfiguration]
-> Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe [LogDeliveryConfiguration])
-> Either
String
(Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"LogDeliveryConfigurations"
Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [LogDeliveryConfiguration]))
-> Either String (Maybe [LogDeliveryConfiguration])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [LogDeliveryConfiguration])
-> [Node] -> Either String (Maybe [LogDeliveryConfiguration])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may
(Text -> [Node] -> Either String [LogDeliveryConfiguration]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"LogDeliveryConfiguration")
)
Either
String
(Maybe Endpoint
-> Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Endpoint)
-> Either
String
(Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Endpoint)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ConfigurationEndpoint")
Either
String
(Maybe Text
-> Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Text)
-> Either
String
(Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Engine")
Either
String
(Maybe [CacheSecurityGroupMembership]
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe [CacheSecurityGroupMembership])
-> Either
String
(Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CacheSecurityGroups"
Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [CacheSecurityGroupMembership]))
-> Either String (Maybe [CacheSecurityGroupMembership])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [CacheSecurityGroupMembership])
-> [Node] -> Either String (Maybe [CacheSecurityGroupMembership])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [CacheSecurityGroupMembership]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"CacheSecurityGroup")
)
Either
String
(Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ReplicationGroupLogDeliveryEnabled")
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AuthTokenEnabled")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ClientDownloadLandingPage")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PreferredMaintenanceWindow")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CacheSubnetGroupName")
Either
String
(Maybe Text
-> Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Text)
-> Either
String
(Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PreferredAvailabilityZone")
Either
String
(Maybe CacheParameterGroupStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe CacheParameterGroupStatus)
-> Either
String
(Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe CacheParameterGroupStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CacheParameterGroup")
Either
String
(Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Text)
-> Either
String
(Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CacheClusterStatus")
Either
String
(Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Int)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SnapshotRetentionLimit")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe PendingModifiedValues
-> Maybe Int
-> CacheCluster)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe PendingModifiedValues -> Maybe Int -> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PreferredOutpostArn")
Either
String
(Maybe Text
-> Maybe PendingModifiedValues -> Maybe Int -> CacheCluster)
-> Either String (Maybe Text)
-> Either
String (Maybe PendingModifiedValues -> Maybe Int -> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ReplicationGroupId")
Either
String (Maybe PendingModifiedValues -> Maybe Int -> CacheCluster)
-> Either String (Maybe PendingModifiedValues)
-> Either String (Maybe Int -> CacheCluster)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe PendingModifiedValues)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PendingModifiedValues")
Either String (Maybe Int -> CacheCluster)
-> Either String (Maybe Int) -> Either String CacheCluster
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NumCacheNodes")
instance Prelude.Hashable CacheCluster
instance Prelude.NFData CacheCluster