{-# 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.FSx.Types.FileCacheCreating where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FSx.Types.FileCacheFailureDetails
import Amazonka.FSx.Types.FileCacheLifecycle
import Amazonka.FSx.Types.FileCacheLustreConfiguration
import Amazonka.FSx.Types.FileCacheType
import Amazonka.FSx.Types.Tag
import qualified Amazonka.Prelude as Prelude
data FileCacheCreating = FileCacheCreating'
{
FileCacheCreating -> Maybe Bool
copyTagsToDataRepositoryAssociations :: Prelude.Maybe Prelude.Bool,
FileCacheCreating -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
FileCacheCreating -> Maybe Text
dNSName :: Prelude.Maybe Prelude.Text,
FileCacheCreating -> Maybe [Text]
dataRepositoryAssociationIds :: Prelude.Maybe [Prelude.Text],
FileCacheCreating -> Maybe FileCacheFailureDetails
failureDetails :: Prelude.Maybe FileCacheFailureDetails,
FileCacheCreating -> Maybe Text
fileCacheId :: Prelude.Maybe Prelude.Text,
FileCacheCreating -> Maybe FileCacheType
fileCacheType :: Prelude.Maybe FileCacheType,
FileCacheCreating -> Maybe Text
fileCacheTypeVersion :: Prelude.Maybe Prelude.Text,
FileCacheCreating -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
FileCacheCreating -> Maybe FileCacheLifecycle
lifecycle :: Prelude.Maybe FileCacheLifecycle,
FileCacheCreating -> Maybe FileCacheLustreConfiguration
lustreConfiguration :: Prelude.Maybe FileCacheLustreConfiguration,
FileCacheCreating -> Maybe [Text]
networkInterfaceIds :: Prelude.Maybe [Prelude.Text],
FileCacheCreating -> Maybe Text
ownerId :: Prelude.Maybe Prelude.Text,
FileCacheCreating -> Maybe Text
resourceARN :: Prelude.Maybe Prelude.Text,
FileCacheCreating -> Maybe Natural
storageCapacity :: Prelude.Maybe Prelude.Natural,
FileCacheCreating -> Maybe [Text]
subnetIds :: Prelude.Maybe [Prelude.Text],
FileCacheCreating -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
FileCacheCreating -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text
}
deriving (FileCacheCreating -> FileCacheCreating -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FileCacheCreating -> FileCacheCreating -> Bool
$c/= :: FileCacheCreating -> FileCacheCreating -> Bool
== :: FileCacheCreating -> FileCacheCreating -> Bool
$c== :: FileCacheCreating -> FileCacheCreating -> Bool
Prelude.Eq, ReadPrec [FileCacheCreating]
ReadPrec FileCacheCreating
Int -> ReadS FileCacheCreating
ReadS [FileCacheCreating]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FileCacheCreating]
$creadListPrec :: ReadPrec [FileCacheCreating]
readPrec :: ReadPrec FileCacheCreating
$creadPrec :: ReadPrec FileCacheCreating
readList :: ReadS [FileCacheCreating]
$creadList :: ReadS [FileCacheCreating]
readsPrec :: Int -> ReadS FileCacheCreating
$creadsPrec :: Int -> ReadS FileCacheCreating
Prelude.Read, Int -> FileCacheCreating -> ShowS
[FileCacheCreating] -> ShowS
FileCacheCreating -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FileCacheCreating] -> ShowS
$cshowList :: [FileCacheCreating] -> ShowS
show :: FileCacheCreating -> String
$cshow :: FileCacheCreating -> String
showsPrec :: Int -> FileCacheCreating -> ShowS
$cshowsPrec :: Int -> FileCacheCreating -> ShowS
Prelude.Show, forall x. Rep FileCacheCreating x -> FileCacheCreating
forall x. FileCacheCreating -> Rep FileCacheCreating x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FileCacheCreating x -> FileCacheCreating
$cfrom :: forall x. FileCacheCreating -> Rep FileCacheCreating x
Prelude.Generic)
newFileCacheCreating ::
FileCacheCreating
newFileCacheCreating :: FileCacheCreating
newFileCacheCreating =
FileCacheCreating'
{ $sel:copyTagsToDataRepositoryAssociations:FileCacheCreating' :: Maybe Bool
copyTagsToDataRepositoryAssociations =
forall a. Maybe a
Prelude.Nothing,
$sel:creationTime:FileCacheCreating' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
$sel:dNSName:FileCacheCreating' :: Maybe Text
dNSName = forall a. Maybe a
Prelude.Nothing,
$sel:dataRepositoryAssociationIds:FileCacheCreating' :: Maybe [Text]
dataRepositoryAssociationIds = forall a. Maybe a
Prelude.Nothing,
$sel:failureDetails:FileCacheCreating' :: Maybe FileCacheFailureDetails
failureDetails = forall a. Maybe a
Prelude.Nothing,
$sel:fileCacheId:FileCacheCreating' :: Maybe Text
fileCacheId = forall a. Maybe a
Prelude.Nothing,
$sel:fileCacheType:FileCacheCreating' :: Maybe FileCacheType
fileCacheType = forall a. Maybe a
Prelude.Nothing,
$sel:fileCacheTypeVersion:FileCacheCreating' :: Maybe Text
fileCacheTypeVersion = forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:FileCacheCreating' :: Maybe Text
kmsKeyId = forall a. Maybe a
Prelude.Nothing,
$sel:lifecycle:FileCacheCreating' :: Maybe FileCacheLifecycle
lifecycle = forall a. Maybe a
Prelude.Nothing,
$sel:lustreConfiguration:FileCacheCreating' :: Maybe FileCacheLustreConfiguration
lustreConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:networkInterfaceIds:FileCacheCreating' :: Maybe [Text]
networkInterfaceIds = forall a. Maybe a
Prelude.Nothing,
$sel:ownerId:FileCacheCreating' :: Maybe Text
ownerId = forall a. Maybe a
Prelude.Nothing,
$sel:resourceARN:FileCacheCreating' :: Maybe Text
resourceARN = forall a. Maybe a
Prelude.Nothing,
$sel:storageCapacity:FileCacheCreating' :: Maybe Natural
storageCapacity = forall a. Maybe a
Prelude.Nothing,
$sel:subnetIds:FileCacheCreating' :: Maybe [Text]
subnetIds = forall a. Maybe a
Prelude.Nothing,
$sel:tags:FileCacheCreating' :: Maybe (NonEmpty Tag)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:vpcId:FileCacheCreating' :: Maybe Text
vpcId = forall a. Maybe a
Prelude.Nothing
}
fileCacheCreating_copyTagsToDataRepositoryAssociations :: Lens.Lens' FileCacheCreating (Prelude.Maybe Prelude.Bool)
fileCacheCreating_copyTagsToDataRepositoryAssociations :: Lens' FileCacheCreating (Maybe Bool)
fileCacheCreating_copyTagsToDataRepositoryAssociations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe Bool
copyTagsToDataRepositoryAssociations :: Maybe Bool
$sel:copyTagsToDataRepositoryAssociations:FileCacheCreating' :: FileCacheCreating -> Maybe Bool
copyTagsToDataRepositoryAssociations} -> Maybe Bool
copyTagsToDataRepositoryAssociations) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe Bool
a -> FileCacheCreating
s {$sel:copyTagsToDataRepositoryAssociations:FileCacheCreating' :: Maybe Bool
copyTagsToDataRepositoryAssociations = Maybe Bool
a} :: FileCacheCreating)
fileCacheCreating_creationTime :: Lens.Lens' FileCacheCreating (Prelude.Maybe Prelude.UTCTime)
fileCacheCreating_creationTime :: Lens' FileCacheCreating (Maybe UTCTime)
fileCacheCreating_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:FileCacheCreating' :: FileCacheCreating -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe POSIX
a -> FileCacheCreating
s {$sel:creationTime:FileCacheCreating' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: FileCacheCreating) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
fileCacheCreating_dNSName :: Lens.Lens' FileCacheCreating (Prelude.Maybe Prelude.Text)
fileCacheCreating_dNSName :: Lens' FileCacheCreating (Maybe Text)
fileCacheCreating_dNSName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe Text
dNSName :: Maybe Text
$sel:dNSName:FileCacheCreating' :: FileCacheCreating -> Maybe Text
dNSName} -> Maybe Text
dNSName) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe Text
a -> FileCacheCreating
s {$sel:dNSName:FileCacheCreating' :: Maybe Text
dNSName = Maybe Text
a} :: FileCacheCreating)
fileCacheCreating_dataRepositoryAssociationIds :: Lens.Lens' FileCacheCreating (Prelude.Maybe [Prelude.Text])
fileCacheCreating_dataRepositoryAssociationIds :: Lens' FileCacheCreating (Maybe [Text])
fileCacheCreating_dataRepositoryAssociationIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe [Text]
dataRepositoryAssociationIds :: Maybe [Text]
$sel:dataRepositoryAssociationIds:FileCacheCreating' :: FileCacheCreating -> Maybe [Text]
dataRepositoryAssociationIds} -> Maybe [Text]
dataRepositoryAssociationIds) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe [Text]
a -> FileCacheCreating
s {$sel:dataRepositoryAssociationIds:FileCacheCreating' :: Maybe [Text]
dataRepositoryAssociationIds = Maybe [Text]
a} :: FileCacheCreating) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
fileCacheCreating_failureDetails :: Lens.Lens' FileCacheCreating (Prelude.Maybe FileCacheFailureDetails)
fileCacheCreating_failureDetails :: Lens' FileCacheCreating (Maybe FileCacheFailureDetails)
fileCacheCreating_failureDetails = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe FileCacheFailureDetails
failureDetails :: Maybe FileCacheFailureDetails
$sel:failureDetails:FileCacheCreating' :: FileCacheCreating -> Maybe FileCacheFailureDetails
failureDetails} -> Maybe FileCacheFailureDetails
failureDetails) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe FileCacheFailureDetails
a -> FileCacheCreating
s {$sel:failureDetails:FileCacheCreating' :: Maybe FileCacheFailureDetails
failureDetails = Maybe FileCacheFailureDetails
a} :: FileCacheCreating)
fileCacheCreating_fileCacheId :: Lens.Lens' FileCacheCreating (Prelude.Maybe Prelude.Text)
fileCacheCreating_fileCacheId :: Lens' FileCacheCreating (Maybe Text)
fileCacheCreating_fileCacheId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe Text
fileCacheId :: Maybe Text
$sel:fileCacheId:FileCacheCreating' :: FileCacheCreating -> Maybe Text
fileCacheId} -> Maybe Text
fileCacheId) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe Text
a -> FileCacheCreating
s {$sel:fileCacheId:FileCacheCreating' :: Maybe Text
fileCacheId = Maybe Text
a} :: FileCacheCreating)
fileCacheCreating_fileCacheType :: Lens.Lens' FileCacheCreating (Prelude.Maybe FileCacheType)
fileCacheCreating_fileCacheType :: Lens' FileCacheCreating (Maybe FileCacheType)
fileCacheCreating_fileCacheType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe FileCacheType
fileCacheType :: Maybe FileCacheType
$sel:fileCacheType:FileCacheCreating' :: FileCacheCreating -> Maybe FileCacheType
fileCacheType} -> Maybe FileCacheType
fileCacheType) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe FileCacheType
a -> FileCacheCreating
s {$sel:fileCacheType:FileCacheCreating' :: Maybe FileCacheType
fileCacheType = Maybe FileCacheType
a} :: FileCacheCreating)
fileCacheCreating_fileCacheTypeVersion :: Lens.Lens' FileCacheCreating (Prelude.Maybe Prelude.Text)
fileCacheCreating_fileCacheTypeVersion :: Lens' FileCacheCreating (Maybe Text)
fileCacheCreating_fileCacheTypeVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe Text
fileCacheTypeVersion :: Maybe Text
$sel:fileCacheTypeVersion:FileCacheCreating' :: FileCacheCreating -> Maybe Text
fileCacheTypeVersion} -> Maybe Text
fileCacheTypeVersion) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe Text
a -> FileCacheCreating
s {$sel:fileCacheTypeVersion:FileCacheCreating' :: Maybe Text
fileCacheTypeVersion = Maybe Text
a} :: FileCacheCreating)
fileCacheCreating_kmsKeyId :: Lens.Lens' FileCacheCreating (Prelude.Maybe Prelude.Text)
fileCacheCreating_kmsKeyId :: Lens' FileCacheCreating (Maybe Text)
fileCacheCreating_kmsKeyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:FileCacheCreating' :: FileCacheCreating -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe Text
a -> FileCacheCreating
s {$sel:kmsKeyId:FileCacheCreating' :: Maybe Text
kmsKeyId = Maybe Text
a} :: FileCacheCreating)
fileCacheCreating_lifecycle :: Lens.Lens' FileCacheCreating (Prelude.Maybe FileCacheLifecycle)
fileCacheCreating_lifecycle :: Lens' FileCacheCreating (Maybe FileCacheLifecycle)
fileCacheCreating_lifecycle = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe FileCacheLifecycle
lifecycle :: Maybe FileCacheLifecycle
$sel:lifecycle:FileCacheCreating' :: FileCacheCreating -> Maybe FileCacheLifecycle
lifecycle} -> Maybe FileCacheLifecycle
lifecycle) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe FileCacheLifecycle
a -> FileCacheCreating
s {$sel:lifecycle:FileCacheCreating' :: Maybe FileCacheLifecycle
lifecycle = Maybe FileCacheLifecycle
a} :: FileCacheCreating)
fileCacheCreating_lustreConfiguration :: Lens.Lens' FileCacheCreating (Prelude.Maybe FileCacheLustreConfiguration)
fileCacheCreating_lustreConfiguration :: Lens' FileCacheCreating (Maybe FileCacheLustreConfiguration)
fileCacheCreating_lustreConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe FileCacheLustreConfiguration
lustreConfiguration :: Maybe FileCacheLustreConfiguration
$sel:lustreConfiguration:FileCacheCreating' :: FileCacheCreating -> Maybe FileCacheLustreConfiguration
lustreConfiguration} -> Maybe FileCacheLustreConfiguration
lustreConfiguration) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe FileCacheLustreConfiguration
a -> FileCacheCreating
s {$sel:lustreConfiguration:FileCacheCreating' :: Maybe FileCacheLustreConfiguration
lustreConfiguration = Maybe FileCacheLustreConfiguration
a} :: FileCacheCreating)
fileCacheCreating_networkInterfaceIds :: Lens.Lens' FileCacheCreating (Prelude.Maybe [Prelude.Text])
fileCacheCreating_networkInterfaceIds :: Lens' FileCacheCreating (Maybe [Text])
fileCacheCreating_networkInterfaceIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe [Text]
networkInterfaceIds :: Maybe [Text]
$sel:networkInterfaceIds:FileCacheCreating' :: FileCacheCreating -> Maybe [Text]
networkInterfaceIds} -> Maybe [Text]
networkInterfaceIds) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe [Text]
a -> FileCacheCreating
s {$sel:networkInterfaceIds:FileCacheCreating' :: Maybe [Text]
networkInterfaceIds = Maybe [Text]
a} :: FileCacheCreating) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
fileCacheCreating_ownerId :: Lens.Lens' FileCacheCreating (Prelude.Maybe Prelude.Text)
fileCacheCreating_ownerId :: Lens' FileCacheCreating (Maybe Text)
fileCacheCreating_ownerId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe Text
ownerId :: Maybe Text
$sel:ownerId:FileCacheCreating' :: FileCacheCreating -> Maybe Text
ownerId} -> Maybe Text
ownerId) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe Text
a -> FileCacheCreating
s {$sel:ownerId:FileCacheCreating' :: Maybe Text
ownerId = Maybe Text
a} :: FileCacheCreating)
fileCacheCreating_resourceARN :: Lens.Lens' FileCacheCreating (Prelude.Maybe Prelude.Text)
fileCacheCreating_resourceARN :: Lens' FileCacheCreating (Maybe Text)
fileCacheCreating_resourceARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe Text
resourceARN :: Maybe Text
$sel:resourceARN:FileCacheCreating' :: FileCacheCreating -> Maybe Text
resourceARN} -> Maybe Text
resourceARN) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe Text
a -> FileCacheCreating
s {$sel:resourceARN:FileCacheCreating' :: Maybe Text
resourceARN = Maybe Text
a} :: FileCacheCreating)
fileCacheCreating_storageCapacity :: Lens.Lens' FileCacheCreating (Prelude.Maybe Prelude.Natural)
fileCacheCreating_storageCapacity :: Lens' FileCacheCreating (Maybe Natural)
fileCacheCreating_storageCapacity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe Natural
storageCapacity :: Maybe Natural
$sel:storageCapacity:FileCacheCreating' :: FileCacheCreating -> Maybe Natural
storageCapacity} -> Maybe Natural
storageCapacity) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe Natural
a -> FileCacheCreating
s {$sel:storageCapacity:FileCacheCreating' :: Maybe Natural
storageCapacity = Maybe Natural
a} :: FileCacheCreating)
fileCacheCreating_subnetIds :: Lens.Lens' FileCacheCreating (Prelude.Maybe [Prelude.Text])
fileCacheCreating_subnetIds :: Lens' FileCacheCreating (Maybe [Text])
fileCacheCreating_subnetIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe [Text]
subnetIds :: Maybe [Text]
$sel:subnetIds:FileCacheCreating' :: FileCacheCreating -> Maybe [Text]
subnetIds} -> Maybe [Text]
subnetIds) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe [Text]
a -> FileCacheCreating
s {$sel:subnetIds:FileCacheCreating' :: Maybe [Text]
subnetIds = Maybe [Text]
a} :: FileCacheCreating) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
fileCacheCreating_tags :: Lens.Lens' FileCacheCreating (Prelude.Maybe (Prelude.NonEmpty Tag))
fileCacheCreating_tags :: Lens' FileCacheCreating (Maybe (NonEmpty Tag))
fileCacheCreating_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:FileCacheCreating' :: FileCacheCreating -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe (NonEmpty Tag)
a -> FileCacheCreating
s {$sel:tags:FileCacheCreating' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: FileCacheCreating) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
fileCacheCreating_vpcId :: Lens.Lens' FileCacheCreating (Prelude.Maybe Prelude.Text)
fileCacheCreating_vpcId :: Lens' FileCacheCreating (Maybe Text)
fileCacheCreating_vpcId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileCacheCreating' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:FileCacheCreating' :: FileCacheCreating -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: FileCacheCreating
s@FileCacheCreating' {} Maybe Text
a -> FileCacheCreating
s {$sel:vpcId:FileCacheCreating' :: Maybe Text
vpcId = Maybe Text
a} :: FileCacheCreating)
instance Data.FromJSON FileCacheCreating where
parseJSON :: Value -> Parser FileCacheCreating
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"FileCacheCreating"
( \Object
x ->
Maybe Bool
-> Maybe POSIX
-> Maybe Text
-> Maybe [Text]
-> Maybe FileCacheFailureDetails
-> Maybe Text
-> Maybe FileCacheType
-> Maybe Text
-> Maybe Text
-> Maybe FileCacheLifecycle
-> Maybe FileCacheLustreConfiguration
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> Maybe (NonEmpty Tag)
-> Maybe Text
-> FileCacheCreating
FileCacheCreating'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CopyTagsToDataRepositoryAssociations")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreationTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DNSName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DataRepositoryAssociationIds"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FailureDetails")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FileCacheId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FileCacheType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FileCacheTypeVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"KmsKeyId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Lifecycle")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LustreConfiguration")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"NetworkInterfaceIds"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"OwnerId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ResourceARN")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StorageCapacity")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SubnetIds" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Tags")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"VpcId")
)
instance Prelude.Hashable FileCacheCreating where
hashWithSalt :: Int -> FileCacheCreating -> Int
hashWithSalt Int
_salt FileCacheCreating' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe (NonEmpty Tag)
Maybe Text
Maybe POSIX
Maybe FileCacheFailureDetails
Maybe FileCacheLifecycle
Maybe FileCacheType
Maybe FileCacheLustreConfiguration
vpcId :: Maybe Text
tags :: Maybe (NonEmpty Tag)
subnetIds :: Maybe [Text]
storageCapacity :: Maybe Natural
resourceARN :: Maybe Text
ownerId :: Maybe Text
networkInterfaceIds :: Maybe [Text]
lustreConfiguration :: Maybe FileCacheLustreConfiguration
lifecycle :: Maybe FileCacheLifecycle
kmsKeyId :: Maybe Text
fileCacheTypeVersion :: Maybe Text
fileCacheType :: Maybe FileCacheType
fileCacheId :: Maybe Text
failureDetails :: Maybe FileCacheFailureDetails
dataRepositoryAssociationIds :: Maybe [Text]
dNSName :: Maybe Text
creationTime :: Maybe POSIX
copyTagsToDataRepositoryAssociations :: Maybe Bool
$sel:vpcId:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:tags:FileCacheCreating' :: FileCacheCreating -> Maybe (NonEmpty Tag)
$sel:subnetIds:FileCacheCreating' :: FileCacheCreating -> Maybe [Text]
$sel:storageCapacity:FileCacheCreating' :: FileCacheCreating -> Maybe Natural
$sel:resourceARN:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:ownerId:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:networkInterfaceIds:FileCacheCreating' :: FileCacheCreating -> Maybe [Text]
$sel:lustreConfiguration:FileCacheCreating' :: FileCacheCreating -> Maybe FileCacheLustreConfiguration
$sel:lifecycle:FileCacheCreating' :: FileCacheCreating -> Maybe FileCacheLifecycle
$sel:kmsKeyId:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:fileCacheTypeVersion:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:fileCacheType:FileCacheCreating' :: FileCacheCreating -> Maybe FileCacheType
$sel:fileCacheId:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:failureDetails:FileCacheCreating' :: FileCacheCreating -> Maybe FileCacheFailureDetails
$sel:dataRepositoryAssociationIds:FileCacheCreating' :: FileCacheCreating -> Maybe [Text]
$sel:dNSName:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:creationTime:FileCacheCreating' :: FileCacheCreating -> Maybe POSIX
$sel:copyTagsToDataRepositoryAssociations:FileCacheCreating' :: FileCacheCreating -> Maybe Bool
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
copyTagsToDataRepositoryAssociations
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dNSName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
dataRepositoryAssociationIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FileCacheFailureDetails
failureDetails
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
fileCacheId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FileCacheType
fileCacheType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
fileCacheTypeVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
kmsKeyId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FileCacheLifecycle
lifecycle
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FileCacheLustreConfiguration
lustreConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
networkInterfaceIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ownerId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceARN
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
storageCapacity
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
subnetIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Tag)
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpcId
instance Prelude.NFData FileCacheCreating where
rnf :: FileCacheCreating -> ()
rnf FileCacheCreating' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe (NonEmpty Tag)
Maybe Text
Maybe POSIX
Maybe FileCacheFailureDetails
Maybe FileCacheLifecycle
Maybe FileCacheType
Maybe FileCacheLustreConfiguration
vpcId :: Maybe Text
tags :: Maybe (NonEmpty Tag)
subnetIds :: Maybe [Text]
storageCapacity :: Maybe Natural
resourceARN :: Maybe Text
ownerId :: Maybe Text
networkInterfaceIds :: Maybe [Text]
lustreConfiguration :: Maybe FileCacheLustreConfiguration
lifecycle :: Maybe FileCacheLifecycle
kmsKeyId :: Maybe Text
fileCacheTypeVersion :: Maybe Text
fileCacheType :: Maybe FileCacheType
fileCacheId :: Maybe Text
failureDetails :: Maybe FileCacheFailureDetails
dataRepositoryAssociationIds :: Maybe [Text]
dNSName :: Maybe Text
creationTime :: Maybe POSIX
copyTagsToDataRepositoryAssociations :: Maybe Bool
$sel:vpcId:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:tags:FileCacheCreating' :: FileCacheCreating -> Maybe (NonEmpty Tag)
$sel:subnetIds:FileCacheCreating' :: FileCacheCreating -> Maybe [Text]
$sel:storageCapacity:FileCacheCreating' :: FileCacheCreating -> Maybe Natural
$sel:resourceARN:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:ownerId:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:networkInterfaceIds:FileCacheCreating' :: FileCacheCreating -> Maybe [Text]
$sel:lustreConfiguration:FileCacheCreating' :: FileCacheCreating -> Maybe FileCacheLustreConfiguration
$sel:lifecycle:FileCacheCreating' :: FileCacheCreating -> Maybe FileCacheLifecycle
$sel:kmsKeyId:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:fileCacheTypeVersion:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:fileCacheType:FileCacheCreating' :: FileCacheCreating -> Maybe FileCacheType
$sel:fileCacheId:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:failureDetails:FileCacheCreating' :: FileCacheCreating -> Maybe FileCacheFailureDetails
$sel:dataRepositoryAssociationIds:FileCacheCreating' :: FileCacheCreating -> Maybe [Text]
$sel:dNSName:FileCacheCreating' :: FileCacheCreating -> Maybe Text
$sel:creationTime:FileCacheCreating' :: FileCacheCreating -> Maybe POSIX
$sel:copyTagsToDataRepositoryAssociations:FileCacheCreating' :: FileCacheCreating -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
copyTagsToDataRepositoryAssociations
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dNSName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
dataRepositoryAssociationIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe FileCacheFailureDetails
failureDetails
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fileCacheId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe FileCacheType
fileCacheType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fileCacheTypeVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
kmsKeyId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe FileCacheLifecycle
lifecycle
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe FileCacheLustreConfiguration
lustreConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
networkInterfaceIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ownerId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceARN
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
storageCapacity
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
subnetIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Tag)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcId