{-# 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.Athena.Types.ResultConfigurationUpdates where
import Amazonka.Athena.Types.AclConfiguration
import Amazonka.Athena.Types.EncryptionConfiguration
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data ResultConfigurationUpdates = ResultConfigurationUpdates'
{
ResultConfigurationUpdates -> Maybe AclConfiguration
aclConfiguration :: Prelude.Maybe AclConfiguration,
ResultConfigurationUpdates -> Maybe EncryptionConfiguration
encryptionConfiguration :: Prelude.Maybe EncryptionConfiguration,
ResultConfigurationUpdates -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
ResultConfigurationUpdates -> Maybe Text
outputLocation :: Prelude.Maybe Prelude.Text,
ResultConfigurationUpdates -> Maybe Bool
removeAclConfiguration :: Prelude.Maybe Prelude.Bool,
ResultConfigurationUpdates -> Maybe Bool
removeEncryptionConfiguration :: Prelude.Maybe Prelude.Bool,
ResultConfigurationUpdates -> Maybe Bool
removeExpectedBucketOwner :: Prelude.Maybe Prelude.Bool,
ResultConfigurationUpdates -> Maybe Bool
removeOutputLocation :: Prelude.Maybe Prelude.Bool
}
deriving (ResultConfigurationUpdates -> ResultConfigurationUpdates -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResultConfigurationUpdates -> ResultConfigurationUpdates -> Bool
$c/= :: ResultConfigurationUpdates -> ResultConfigurationUpdates -> Bool
== :: ResultConfigurationUpdates -> ResultConfigurationUpdates -> Bool
$c== :: ResultConfigurationUpdates -> ResultConfigurationUpdates -> Bool
Prelude.Eq, ReadPrec [ResultConfigurationUpdates]
ReadPrec ResultConfigurationUpdates
Int -> ReadS ResultConfigurationUpdates
ReadS [ResultConfigurationUpdates]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResultConfigurationUpdates]
$creadListPrec :: ReadPrec [ResultConfigurationUpdates]
readPrec :: ReadPrec ResultConfigurationUpdates
$creadPrec :: ReadPrec ResultConfigurationUpdates
readList :: ReadS [ResultConfigurationUpdates]
$creadList :: ReadS [ResultConfigurationUpdates]
readsPrec :: Int -> ReadS ResultConfigurationUpdates
$creadsPrec :: Int -> ReadS ResultConfigurationUpdates
Prelude.Read, Int -> ResultConfigurationUpdates -> ShowS
[ResultConfigurationUpdates] -> ShowS
ResultConfigurationUpdates -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResultConfigurationUpdates] -> ShowS
$cshowList :: [ResultConfigurationUpdates] -> ShowS
show :: ResultConfigurationUpdates -> String
$cshow :: ResultConfigurationUpdates -> String
showsPrec :: Int -> ResultConfigurationUpdates -> ShowS
$cshowsPrec :: Int -> ResultConfigurationUpdates -> ShowS
Prelude.Show, forall x.
Rep ResultConfigurationUpdates x -> ResultConfigurationUpdates
forall x.
ResultConfigurationUpdates -> Rep ResultConfigurationUpdates x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ResultConfigurationUpdates x -> ResultConfigurationUpdates
$cfrom :: forall x.
ResultConfigurationUpdates -> Rep ResultConfigurationUpdates x
Prelude.Generic)
newResultConfigurationUpdates ::
ResultConfigurationUpdates
newResultConfigurationUpdates :: ResultConfigurationUpdates
newResultConfigurationUpdates =
ResultConfigurationUpdates'
{ $sel:aclConfiguration:ResultConfigurationUpdates' :: Maybe AclConfiguration
aclConfiguration =
forall a. Maybe a
Prelude.Nothing,
$sel:encryptionConfiguration:ResultConfigurationUpdates' :: Maybe EncryptionConfiguration
encryptionConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:expectedBucketOwner:ResultConfigurationUpdates' :: Maybe Text
expectedBucketOwner = forall a. Maybe a
Prelude.Nothing,
$sel:outputLocation:ResultConfigurationUpdates' :: Maybe Text
outputLocation = forall a. Maybe a
Prelude.Nothing,
$sel:removeAclConfiguration:ResultConfigurationUpdates' :: Maybe Bool
removeAclConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:removeEncryptionConfiguration:ResultConfigurationUpdates' :: Maybe Bool
removeEncryptionConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:removeExpectedBucketOwner:ResultConfigurationUpdates' :: Maybe Bool
removeExpectedBucketOwner = forall a. Maybe a
Prelude.Nothing,
$sel:removeOutputLocation:ResultConfigurationUpdates' :: Maybe Bool
removeOutputLocation = forall a. Maybe a
Prelude.Nothing
}
resultConfigurationUpdates_aclConfiguration :: Lens.Lens' ResultConfigurationUpdates (Prelude.Maybe AclConfiguration)
resultConfigurationUpdates_aclConfiguration :: Lens' ResultConfigurationUpdates (Maybe AclConfiguration)
resultConfigurationUpdates_aclConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResultConfigurationUpdates' {Maybe AclConfiguration
aclConfiguration :: Maybe AclConfiguration
$sel:aclConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe AclConfiguration
aclConfiguration} -> Maybe AclConfiguration
aclConfiguration) (\s :: ResultConfigurationUpdates
s@ResultConfigurationUpdates' {} Maybe AclConfiguration
a -> ResultConfigurationUpdates
s {$sel:aclConfiguration:ResultConfigurationUpdates' :: Maybe AclConfiguration
aclConfiguration = Maybe AclConfiguration
a} :: ResultConfigurationUpdates)
resultConfigurationUpdates_encryptionConfiguration :: Lens.Lens' ResultConfigurationUpdates (Prelude.Maybe EncryptionConfiguration)
resultConfigurationUpdates_encryptionConfiguration :: Lens' ResultConfigurationUpdates (Maybe EncryptionConfiguration)
resultConfigurationUpdates_encryptionConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResultConfigurationUpdates' {Maybe EncryptionConfiguration
encryptionConfiguration :: Maybe EncryptionConfiguration
$sel:encryptionConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe EncryptionConfiguration
encryptionConfiguration} -> Maybe EncryptionConfiguration
encryptionConfiguration) (\s :: ResultConfigurationUpdates
s@ResultConfigurationUpdates' {} Maybe EncryptionConfiguration
a -> ResultConfigurationUpdates
s {$sel:encryptionConfiguration:ResultConfigurationUpdates' :: Maybe EncryptionConfiguration
encryptionConfiguration = Maybe EncryptionConfiguration
a} :: ResultConfigurationUpdates)
resultConfigurationUpdates_expectedBucketOwner :: Lens.Lens' ResultConfigurationUpdates (Prelude.Maybe Prelude.Text)
resultConfigurationUpdates_expectedBucketOwner :: Lens' ResultConfigurationUpdates (Maybe Text)
resultConfigurationUpdates_expectedBucketOwner = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResultConfigurationUpdates' {Maybe Text
expectedBucketOwner :: Maybe Text
$sel:expectedBucketOwner:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Text
expectedBucketOwner} -> Maybe Text
expectedBucketOwner) (\s :: ResultConfigurationUpdates
s@ResultConfigurationUpdates' {} Maybe Text
a -> ResultConfigurationUpdates
s {$sel:expectedBucketOwner:ResultConfigurationUpdates' :: Maybe Text
expectedBucketOwner = Maybe Text
a} :: ResultConfigurationUpdates)
resultConfigurationUpdates_outputLocation :: Lens.Lens' ResultConfigurationUpdates (Prelude.Maybe Prelude.Text)
resultConfigurationUpdates_outputLocation :: Lens' ResultConfigurationUpdates (Maybe Text)
resultConfigurationUpdates_outputLocation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResultConfigurationUpdates' {Maybe Text
outputLocation :: Maybe Text
$sel:outputLocation:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Text
outputLocation} -> Maybe Text
outputLocation) (\s :: ResultConfigurationUpdates
s@ResultConfigurationUpdates' {} Maybe Text
a -> ResultConfigurationUpdates
s {$sel:outputLocation:ResultConfigurationUpdates' :: Maybe Text
outputLocation = Maybe Text
a} :: ResultConfigurationUpdates)
resultConfigurationUpdates_removeAclConfiguration :: Lens.Lens' ResultConfigurationUpdates (Prelude.Maybe Prelude.Bool)
resultConfigurationUpdates_removeAclConfiguration :: Lens' ResultConfigurationUpdates (Maybe Bool)
resultConfigurationUpdates_removeAclConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResultConfigurationUpdates' {Maybe Bool
removeAclConfiguration :: Maybe Bool
$sel:removeAclConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
removeAclConfiguration} -> Maybe Bool
removeAclConfiguration) (\s :: ResultConfigurationUpdates
s@ResultConfigurationUpdates' {} Maybe Bool
a -> ResultConfigurationUpdates
s {$sel:removeAclConfiguration:ResultConfigurationUpdates' :: Maybe Bool
removeAclConfiguration = Maybe Bool
a} :: ResultConfigurationUpdates)
resultConfigurationUpdates_removeEncryptionConfiguration :: Lens.Lens' ResultConfigurationUpdates (Prelude.Maybe Prelude.Bool)
resultConfigurationUpdates_removeEncryptionConfiguration :: Lens' ResultConfigurationUpdates (Maybe Bool)
resultConfigurationUpdates_removeEncryptionConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResultConfigurationUpdates' {Maybe Bool
removeEncryptionConfiguration :: Maybe Bool
$sel:removeEncryptionConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
removeEncryptionConfiguration} -> Maybe Bool
removeEncryptionConfiguration) (\s :: ResultConfigurationUpdates
s@ResultConfigurationUpdates' {} Maybe Bool
a -> ResultConfigurationUpdates
s {$sel:removeEncryptionConfiguration:ResultConfigurationUpdates' :: Maybe Bool
removeEncryptionConfiguration = Maybe Bool
a} :: ResultConfigurationUpdates)
resultConfigurationUpdates_removeExpectedBucketOwner :: Lens.Lens' ResultConfigurationUpdates (Prelude.Maybe Prelude.Bool)
resultConfigurationUpdates_removeExpectedBucketOwner :: Lens' ResultConfigurationUpdates (Maybe Bool)
resultConfigurationUpdates_removeExpectedBucketOwner = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResultConfigurationUpdates' {Maybe Bool
removeExpectedBucketOwner :: Maybe Bool
$sel:removeExpectedBucketOwner:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
removeExpectedBucketOwner} -> Maybe Bool
removeExpectedBucketOwner) (\s :: ResultConfigurationUpdates
s@ResultConfigurationUpdates' {} Maybe Bool
a -> ResultConfigurationUpdates
s {$sel:removeExpectedBucketOwner:ResultConfigurationUpdates' :: Maybe Bool
removeExpectedBucketOwner = Maybe Bool
a} :: ResultConfigurationUpdates)
resultConfigurationUpdates_removeOutputLocation :: Lens.Lens' ResultConfigurationUpdates (Prelude.Maybe Prelude.Bool)
resultConfigurationUpdates_removeOutputLocation :: Lens' ResultConfigurationUpdates (Maybe Bool)
resultConfigurationUpdates_removeOutputLocation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResultConfigurationUpdates' {Maybe Bool
removeOutputLocation :: Maybe Bool
$sel:removeOutputLocation:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
removeOutputLocation} -> Maybe Bool
removeOutputLocation) (\s :: ResultConfigurationUpdates
s@ResultConfigurationUpdates' {} Maybe Bool
a -> ResultConfigurationUpdates
s {$sel:removeOutputLocation:ResultConfigurationUpdates' :: Maybe Bool
removeOutputLocation = Maybe Bool
a} :: ResultConfigurationUpdates)
instance Prelude.Hashable ResultConfigurationUpdates where
hashWithSalt :: Int -> ResultConfigurationUpdates -> Int
hashWithSalt Int
_salt ResultConfigurationUpdates' {Maybe Bool
Maybe Text
Maybe EncryptionConfiguration
Maybe AclConfiguration
removeOutputLocation :: Maybe Bool
removeExpectedBucketOwner :: Maybe Bool
removeEncryptionConfiguration :: Maybe Bool
removeAclConfiguration :: Maybe Bool
outputLocation :: Maybe Text
expectedBucketOwner :: Maybe Text
encryptionConfiguration :: Maybe EncryptionConfiguration
aclConfiguration :: Maybe AclConfiguration
$sel:removeOutputLocation:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
$sel:removeExpectedBucketOwner:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
$sel:removeEncryptionConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
$sel:removeAclConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
$sel:outputLocation:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Text
$sel:expectedBucketOwner:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Text
$sel:encryptionConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe EncryptionConfiguration
$sel:aclConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe AclConfiguration
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AclConfiguration
aclConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EncryptionConfiguration
encryptionConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
expectedBucketOwner
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
outputLocation
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
removeAclConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
removeEncryptionConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
removeExpectedBucketOwner
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
removeOutputLocation
instance Prelude.NFData ResultConfigurationUpdates where
rnf :: ResultConfigurationUpdates -> ()
rnf ResultConfigurationUpdates' {Maybe Bool
Maybe Text
Maybe EncryptionConfiguration
Maybe AclConfiguration
removeOutputLocation :: Maybe Bool
removeExpectedBucketOwner :: Maybe Bool
removeEncryptionConfiguration :: Maybe Bool
removeAclConfiguration :: Maybe Bool
outputLocation :: Maybe Text
expectedBucketOwner :: Maybe Text
encryptionConfiguration :: Maybe EncryptionConfiguration
aclConfiguration :: Maybe AclConfiguration
$sel:removeOutputLocation:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
$sel:removeExpectedBucketOwner:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
$sel:removeEncryptionConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
$sel:removeAclConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
$sel:outputLocation:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Text
$sel:expectedBucketOwner:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Text
$sel:encryptionConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe EncryptionConfiguration
$sel:aclConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe AclConfiguration
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AclConfiguration
aclConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EncryptionConfiguration
encryptionConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
expectedBucketOwner
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
outputLocation
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
removeAclConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
removeEncryptionConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
removeExpectedBucketOwner
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
removeOutputLocation
instance Data.ToJSON ResultConfigurationUpdates where
toJSON :: ResultConfigurationUpdates -> Value
toJSON ResultConfigurationUpdates' {Maybe Bool
Maybe Text
Maybe EncryptionConfiguration
Maybe AclConfiguration
removeOutputLocation :: Maybe Bool
removeExpectedBucketOwner :: Maybe Bool
removeEncryptionConfiguration :: Maybe Bool
removeAclConfiguration :: Maybe Bool
outputLocation :: Maybe Text
expectedBucketOwner :: Maybe Text
encryptionConfiguration :: Maybe EncryptionConfiguration
aclConfiguration :: Maybe AclConfiguration
$sel:removeOutputLocation:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
$sel:removeExpectedBucketOwner:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
$sel:removeEncryptionConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
$sel:removeAclConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Bool
$sel:outputLocation:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Text
$sel:expectedBucketOwner:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe Text
$sel:encryptionConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe EncryptionConfiguration
$sel:aclConfiguration:ResultConfigurationUpdates' :: ResultConfigurationUpdates -> Maybe AclConfiguration
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"AclConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AclConfiguration
aclConfiguration,
(Key
"EncryptionConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EncryptionConfiguration
encryptionConfiguration,
(Key
"ExpectedBucketOwner" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
expectedBucketOwner,
(Key
"OutputLocation" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
outputLocation,
(Key
"RemoveAclConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
removeAclConfiguration,
(Key
"RemoveEncryptionConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
removeEncryptionConfiguration,
(Key
"RemoveExpectedBucketOwner" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
removeExpectedBucketOwner,
(Key
"RemoveOutputLocation" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
removeOutputLocation
]
)