module Stratosphere.BedrockAgentCore.BrowserCustom.RecordingConfigProperty (
module Exports, RecordingConfigProperty(..),
mkRecordingConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.BedrockAgentCore.BrowserCustom.S3LocationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RecordingConfigProperty
=
RecordingConfigProperty {RecordingConfigProperty -> ()
haddock_workaround_ :: (),
RecordingConfigProperty -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool)),
RecordingConfigProperty -> Maybe S3LocationProperty
s3Location :: (Prelude.Maybe S3LocationProperty)}
deriving stock (RecordingConfigProperty -> RecordingConfigProperty -> Bool
(RecordingConfigProperty -> RecordingConfigProperty -> Bool)
-> (RecordingConfigProperty -> RecordingConfigProperty -> Bool)
-> Eq RecordingConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RecordingConfigProperty -> RecordingConfigProperty -> Bool
== :: RecordingConfigProperty -> RecordingConfigProperty -> Bool
$c/= :: RecordingConfigProperty -> RecordingConfigProperty -> Bool
/= :: RecordingConfigProperty -> RecordingConfigProperty -> Bool
Prelude.Eq, Int -> RecordingConfigProperty -> ShowS
[RecordingConfigProperty] -> ShowS
RecordingConfigProperty -> String
(Int -> RecordingConfigProperty -> ShowS)
-> (RecordingConfigProperty -> String)
-> ([RecordingConfigProperty] -> ShowS)
-> Show RecordingConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RecordingConfigProperty -> ShowS
showsPrec :: Int -> RecordingConfigProperty -> ShowS
$cshow :: RecordingConfigProperty -> String
show :: RecordingConfigProperty -> String
$cshowList :: [RecordingConfigProperty] -> ShowS
showList :: [RecordingConfigProperty] -> ShowS
Prelude.Show)
mkRecordingConfigProperty :: RecordingConfigProperty
mkRecordingConfigProperty :: RecordingConfigProperty
mkRecordingConfigProperty
= RecordingConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
s3Location :: Maybe S3LocationProperty
s3Location = Maybe S3LocationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RecordingConfigProperty where
toResourceProperties :: RecordingConfigProperty -> ResourceProperties
toResourceProperties RecordingConfigProperty {Maybe (Value Bool)
Maybe S3LocationProperty
()
haddock_workaround_ :: RecordingConfigProperty -> ()
enabled :: RecordingConfigProperty -> Maybe (Value Bool)
s3Location :: RecordingConfigProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
s3Location :: Maybe S3LocationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::BedrockAgentCore::BrowserCustom.RecordingConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled,
Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3Location" (S3LocationProperty -> (Key, Value))
-> Maybe S3LocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3LocationProperty
s3Location])}
instance JSON.ToJSON RecordingConfigProperty where
toJSON :: RecordingConfigProperty -> Value
toJSON RecordingConfigProperty {Maybe (Value Bool)
Maybe S3LocationProperty
()
haddock_workaround_ :: RecordingConfigProperty -> ()
enabled :: RecordingConfigProperty -> Maybe (Value Bool)
s3Location :: RecordingConfigProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
s3Location :: Maybe S3LocationProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled,
Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3Location" (S3LocationProperty -> (Key, Value))
-> Maybe S3LocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3LocationProperty
s3Location]))
instance Property "Enabled" RecordingConfigProperty where
type PropertyType "Enabled" RecordingConfigProperty = Value Prelude.Bool
set :: PropertyType "Enabled" RecordingConfigProperty
-> RecordingConfigProperty -> RecordingConfigProperty
set PropertyType "Enabled" RecordingConfigProperty
newValue RecordingConfigProperty {Maybe (Value Bool)
Maybe S3LocationProperty
()
haddock_workaround_ :: RecordingConfigProperty -> ()
enabled :: RecordingConfigProperty -> Maybe (Value Bool)
s3Location :: RecordingConfigProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
s3Location :: Maybe S3LocationProperty
..}
= RecordingConfigProperty {enabled :: Maybe (Value Bool)
enabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Enabled" RecordingConfigProperty
Value Bool
newValue, Maybe S3LocationProperty
()
haddock_workaround_ :: ()
s3Location :: Maybe S3LocationProperty
haddock_workaround_ :: ()
s3Location :: Maybe S3LocationProperty
..}
instance Property "S3Location" RecordingConfigProperty where
type PropertyType "S3Location" RecordingConfigProperty = S3LocationProperty
set :: PropertyType "S3Location" RecordingConfigProperty
-> RecordingConfigProperty -> RecordingConfigProperty
set PropertyType "S3Location" RecordingConfigProperty
newValue RecordingConfigProperty {Maybe (Value Bool)
Maybe S3LocationProperty
()
haddock_workaround_ :: RecordingConfigProperty -> ()
enabled :: RecordingConfigProperty -> Maybe (Value Bool)
s3Location :: RecordingConfigProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
s3Location :: Maybe S3LocationProperty
..}
= RecordingConfigProperty {s3Location :: Maybe S3LocationProperty
s3Location = S3LocationProperty -> Maybe S3LocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3Location" RecordingConfigProperty
S3LocationProperty
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}