module Stratosphere.Shield.DRTAccess (
DRTAccess(..), mkDRTAccess
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DRTAccess
=
DRTAccess {DRTAccess -> ()
haddock_workaround_ :: (),
DRTAccess -> Maybe (ValueList Text)
logBucketList :: (Prelude.Maybe (ValueList Prelude.Text)),
DRTAccess -> Value Text
roleArn :: (Value Prelude.Text)}
deriving stock (DRTAccess -> DRTAccess -> Bool
(DRTAccess -> DRTAccess -> Bool)
-> (DRTAccess -> DRTAccess -> Bool) -> Eq DRTAccess
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DRTAccess -> DRTAccess -> Bool
== :: DRTAccess -> DRTAccess -> Bool
$c/= :: DRTAccess -> DRTAccess -> Bool
/= :: DRTAccess -> DRTAccess -> Bool
Prelude.Eq, Int -> DRTAccess -> ShowS
[DRTAccess] -> ShowS
DRTAccess -> String
(Int -> DRTAccess -> ShowS)
-> (DRTAccess -> String)
-> ([DRTAccess] -> ShowS)
-> Show DRTAccess
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DRTAccess -> ShowS
showsPrec :: Int -> DRTAccess -> ShowS
$cshow :: DRTAccess -> String
show :: DRTAccess -> String
$cshowList :: [DRTAccess] -> ShowS
showList :: [DRTAccess] -> ShowS
Prelude.Show)
mkDRTAccess :: Value Prelude.Text -> DRTAccess
mkDRTAccess :: Value Text -> DRTAccess
mkDRTAccess Value Text
roleArn
= DRTAccess
{haddock_workaround_ :: ()
haddock_workaround_ = (), roleArn :: Value Text
roleArn = Value Text
roleArn,
logBucketList :: Maybe (ValueList Text)
logBucketList = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DRTAccess where
toResourceProperties :: DRTAccess -> ResourceProperties
toResourceProperties DRTAccess {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DRTAccess -> ()
logBucketList :: DRTAccess -> Maybe (ValueList Text)
roleArn :: DRTAccess -> Value Text
haddock_workaround_ :: ()
logBucketList :: Maybe (ValueList Text)
roleArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Shield::DRTAccess", 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
"RoleArn" 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
roleArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"LogBucketList" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
logBucketList]))}
instance JSON.ToJSON DRTAccess where
toJSON :: DRTAccess -> Value
toJSON DRTAccess {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DRTAccess -> ()
logBucketList :: DRTAccess -> Maybe (ValueList Text)
roleArn :: DRTAccess -> Value Text
haddock_workaround_ :: ()
logBucketList :: Maybe (ValueList Text)
roleArn :: 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
"RoleArn" 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
roleArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"LogBucketList" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
logBucketList])))
instance Property "LogBucketList" DRTAccess where
type PropertyType "LogBucketList" DRTAccess = ValueList Prelude.Text
set :: PropertyType "LogBucketList" DRTAccess -> DRTAccess -> DRTAccess
set PropertyType "LogBucketList" DRTAccess
newValue DRTAccess {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DRTAccess -> ()
logBucketList :: DRTAccess -> Maybe (ValueList Text)
roleArn :: DRTAccess -> Value Text
haddock_workaround_ :: ()
logBucketList :: Maybe (ValueList Text)
roleArn :: Value Text
..}
= DRTAccess {logBucketList :: Maybe (ValueList Text)
logBucketList = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LogBucketList" DRTAccess
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
..}
instance Property "RoleArn" DRTAccess where
type PropertyType "RoleArn" DRTAccess = Value Prelude.Text
set :: PropertyType "RoleArn" DRTAccess -> DRTAccess -> DRTAccess
set PropertyType "RoleArn" DRTAccess
newValue DRTAccess {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DRTAccess -> ()
logBucketList :: DRTAccess -> Maybe (ValueList Text)
roleArn :: DRTAccess -> Value Text
haddock_workaround_ :: ()
logBucketList :: Maybe (ValueList Text)
roleArn :: Value Text
..} = DRTAccess {roleArn :: Value Text
roleArn = PropertyType "RoleArn" DRTAccess
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
logBucketList :: Maybe (ValueList Text)
haddock_workaround_ :: ()
logBucketList :: Maybe (ValueList Text)
..}