module Stratosphere.WorkSpacesWeb.SessionLogger.S3LogConfigurationProperty (
S3LogConfigurationProperty(..), mkS3LogConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3LogConfigurationProperty
=
S3LogConfigurationProperty {S3LogConfigurationProperty -> ()
haddock_workaround_ :: (),
S3LogConfigurationProperty -> Value Text
bucket :: (Value Prelude.Text),
S3LogConfigurationProperty -> Maybe (Value Text)
bucketOwner :: (Prelude.Maybe (Value Prelude.Text)),
S3LogConfigurationProperty -> Value Text
folderStructure :: (Value Prelude.Text),
S3LogConfigurationProperty -> Maybe (Value Text)
keyPrefix :: (Prelude.Maybe (Value Prelude.Text)),
S3LogConfigurationProperty -> Value Text
logFileFormat :: (Value Prelude.Text)}
deriving stock (S3LogConfigurationProperty -> S3LogConfigurationProperty -> Bool
(S3LogConfigurationProperty -> S3LogConfigurationProperty -> Bool)
-> (S3LogConfigurationProperty
-> S3LogConfigurationProperty -> Bool)
-> Eq S3LogConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3LogConfigurationProperty -> S3LogConfigurationProperty -> Bool
== :: S3LogConfigurationProperty -> S3LogConfigurationProperty -> Bool
$c/= :: S3LogConfigurationProperty -> S3LogConfigurationProperty -> Bool
/= :: S3LogConfigurationProperty -> S3LogConfigurationProperty -> Bool
Prelude.Eq, Int -> S3LogConfigurationProperty -> ShowS
[S3LogConfigurationProperty] -> ShowS
S3LogConfigurationProperty -> String
(Int -> S3LogConfigurationProperty -> ShowS)
-> (S3LogConfigurationProperty -> String)
-> ([S3LogConfigurationProperty] -> ShowS)
-> Show S3LogConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3LogConfigurationProperty -> ShowS
showsPrec :: Int -> S3LogConfigurationProperty -> ShowS
$cshow :: S3LogConfigurationProperty -> String
show :: S3LogConfigurationProperty -> String
$cshowList :: [S3LogConfigurationProperty] -> ShowS
showList :: [S3LogConfigurationProperty] -> ShowS
Prelude.Show)
mkS3LogConfigurationProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> S3LogConfigurationProperty
mkS3LogConfigurationProperty :: Value Text
-> Value Text -> Value Text -> S3LogConfigurationProperty
mkS3LogConfigurationProperty Value Text
bucket Value Text
folderStructure Value Text
logFileFormat
= S3LogConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), bucket :: Value Text
bucket = Value Text
bucket,
folderStructure :: Value Text
folderStructure = Value Text
folderStructure, logFileFormat :: Value Text
logFileFormat = Value Text
logFileFormat,
bucketOwner :: Maybe (Value Text)
bucketOwner = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, keyPrefix :: Maybe (Value Text)
keyPrefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3LogConfigurationProperty where
toResourceProperties :: S3LogConfigurationProperty -> ResourceProperties
toResourceProperties S3LogConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3LogConfigurationProperty -> ()
bucket :: S3LogConfigurationProperty -> Value Text
bucketOwner :: S3LogConfigurationProperty -> Maybe (Value Text)
folderStructure :: S3LogConfigurationProperty -> Value Text
keyPrefix :: S3LogConfigurationProperty -> Maybe (Value Text)
logFileFormat :: S3LogConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WorkSpacesWeb::SessionLogger.S3LogConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Bucket" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
bucket,
Key
"FolderStructure" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
folderStructure,
Key
"LogFileFormat" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
logFileFormat]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BucketOwner" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
bucketOwner,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KeyPrefix" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
keyPrefix]))}
instance JSON.ToJSON S3LogConfigurationProperty where
toJSON :: S3LogConfigurationProperty -> Value
toJSON S3LogConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3LogConfigurationProperty -> ()
bucket :: S3LogConfigurationProperty -> Value Text
bucketOwner :: S3LogConfigurationProperty -> Maybe (Value Text)
folderStructure :: S3LogConfigurationProperty -> Value Text
keyPrefix :: S3LogConfigurationProperty -> Maybe (Value Text)
logFileFormat :: S3LogConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Bucket" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
bucket,
Key
"FolderStructure" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
folderStructure,
Key
"LogFileFormat" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
logFileFormat]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BucketOwner" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
bucketOwner,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KeyPrefix" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
keyPrefix])))
instance Property "Bucket" S3LogConfigurationProperty where
type PropertyType "Bucket" S3LogConfigurationProperty = Value Prelude.Text
set :: PropertyType "Bucket" S3LogConfigurationProperty
-> S3LogConfigurationProperty -> S3LogConfigurationProperty
set PropertyType "Bucket" S3LogConfigurationProperty
newValue S3LogConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3LogConfigurationProperty -> ()
bucket :: S3LogConfigurationProperty -> Value Text
bucketOwner :: S3LogConfigurationProperty -> Maybe (Value Text)
folderStructure :: S3LogConfigurationProperty -> Value Text
keyPrefix :: S3LogConfigurationProperty -> Maybe (Value Text)
logFileFormat :: S3LogConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
..}
= S3LogConfigurationProperty {bucket :: Value Text
bucket = PropertyType "Bucket" S3LogConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
haddock_workaround_ :: ()
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
..}
instance Property "BucketOwner" S3LogConfigurationProperty where
type PropertyType "BucketOwner" S3LogConfigurationProperty = Value Prelude.Text
set :: PropertyType "BucketOwner" S3LogConfigurationProperty
-> S3LogConfigurationProperty -> S3LogConfigurationProperty
set PropertyType "BucketOwner" S3LogConfigurationProperty
newValue S3LogConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3LogConfigurationProperty -> ()
bucket :: S3LogConfigurationProperty -> Value Text
bucketOwner :: S3LogConfigurationProperty -> Maybe (Value Text)
folderStructure :: S3LogConfigurationProperty -> Value Text
keyPrefix :: S3LogConfigurationProperty -> Maybe (Value Text)
logFileFormat :: S3LogConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
..}
= S3LogConfigurationProperty
{bucketOwner :: Maybe (Value Text)
bucketOwner = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BucketOwner" S3LogConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
haddock_workaround_ :: ()
bucket :: Value Text
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
..}
instance Property "FolderStructure" S3LogConfigurationProperty where
type PropertyType "FolderStructure" S3LogConfigurationProperty = Value Prelude.Text
set :: PropertyType "FolderStructure" S3LogConfigurationProperty
-> S3LogConfigurationProperty -> S3LogConfigurationProperty
set PropertyType "FolderStructure" S3LogConfigurationProperty
newValue S3LogConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3LogConfigurationProperty -> ()
bucket :: S3LogConfigurationProperty -> Value Text
bucketOwner :: S3LogConfigurationProperty -> Maybe (Value Text)
folderStructure :: S3LogConfigurationProperty -> Value Text
keyPrefix :: S3LogConfigurationProperty -> Maybe (Value Text)
logFileFormat :: S3LogConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
..}
= S3LogConfigurationProperty {folderStructure :: Value Text
folderStructure = PropertyType "FolderStructure" S3LogConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
..}
instance Property "KeyPrefix" S3LogConfigurationProperty where
type PropertyType "KeyPrefix" S3LogConfigurationProperty = Value Prelude.Text
set :: PropertyType "KeyPrefix" S3LogConfigurationProperty
-> S3LogConfigurationProperty -> S3LogConfigurationProperty
set PropertyType "KeyPrefix" S3LogConfigurationProperty
newValue S3LogConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3LogConfigurationProperty -> ()
bucket :: S3LogConfigurationProperty -> Value Text
bucketOwner :: S3LogConfigurationProperty -> Maybe (Value Text)
folderStructure :: S3LogConfigurationProperty -> Value Text
keyPrefix :: S3LogConfigurationProperty -> Maybe (Value Text)
logFileFormat :: S3LogConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
..}
= S3LogConfigurationProperty
{keyPrefix :: Maybe (Value Text)
keyPrefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KeyPrefix" S3LogConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
logFileFormat :: Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
logFileFormat :: Value Text
..}
instance Property "LogFileFormat" S3LogConfigurationProperty where
type PropertyType "LogFileFormat" S3LogConfigurationProperty = Value Prelude.Text
set :: PropertyType "LogFileFormat" S3LogConfigurationProperty
-> S3LogConfigurationProperty -> S3LogConfigurationProperty
set PropertyType "LogFileFormat" S3LogConfigurationProperty
newValue S3LogConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3LogConfigurationProperty -> ()
bucket :: S3LogConfigurationProperty -> Value Text
bucketOwner :: S3LogConfigurationProperty -> Maybe (Value Text)
folderStructure :: S3LogConfigurationProperty -> Value Text
keyPrefix :: S3LogConfigurationProperty -> Maybe (Value Text)
logFileFormat :: S3LogConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
logFileFormat :: Value Text
..}
= S3LogConfigurationProperty {logFileFormat :: Value Text
logFileFormat = PropertyType "LogFileFormat" S3LogConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
folderStructure :: Value Text
keyPrefix :: Maybe (Value Text)
..}