module Stratosphere.FMS.Policy.SecurityServicePolicyDataProperty (
module Exports, SecurityServicePolicyDataProperty(..),
mkSecurityServicePolicyDataProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.FMS.Policy.PolicyOptionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SecurityServicePolicyDataProperty
=
SecurityServicePolicyDataProperty {SecurityServicePolicyDataProperty -> ()
haddock_workaround_ :: (),
SecurityServicePolicyDataProperty -> Maybe (Value Text)
managedServiceData :: (Prelude.Maybe (Value Prelude.Text)),
SecurityServicePolicyDataProperty -> Maybe PolicyOptionProperty
policyOption :: (Prelude.Maybe PolicyOptionProperty),
SecurityServicePolicyDataProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty -> Bool
(SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty -> Bool)
-> (SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty -> Bool)
-> Eq SecurityServicePolicyDataProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty -> Bool
== :: SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty -> Bool
$c/= :: SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty -> Bool
/= :: SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty -> Bool
Prelude.Eq, Int -> SecurityServicePolicyDataProperty -> ShowS
[SecurityServicePolicyDataProperty] -> ShowS
SecurityServicePolicyDataProperty -> String
(Int -> SecurityServicePolicyDataProperty -> ShowS)
-> (SecurityServicePolicyDataProperty -> String)
-> ([SecurityServicePolicyDataProperty] -> ShowS)
-> Show SecurityServicePolicyDataProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SecurityServicePolicyDataProperty -> ShowS
showsPrec :: Int -> SecurityServicePolicyDataProperty -> ShowS
$cshow :: SecurityServicePolicyDataProperty -> String
show :: SecurityServicePolicyDataProperty -> String
$cshowList :: [SecurityServicePolicyDataProperty] -> ShowS
showList :: [SecurityServicePolicyDataProperty] -> ShowS
Prelude.Show)
mkSecurityServicePolicyDataProperty ::
Value Prelude.Text -> SecurityServicePolicyDataProperty
mkSecurityServicePolicyDataProperty :: Value Text -> SecurityServicePolicyDataProperty
mkSecurityServicePolicyDataProperty Value Text
type'
= SecurityServicePolicyDataProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
managedServiceData :: Maybe (Value Text)
managedServiceData = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
policyOption :: Maybe PolicyOptionProperty
policyOption = Maybe PolicyOptionProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SecurityServicePolicyDataProperty where
toResourceProperties :: SecurityServicePolicyDataProperty -> ResourceProperties
toResourceProperties SecurityServicePolicyDataProperty {Maybe (Value Text)
Maybe PolicyOptionProperty
()
Value Text
haddock_workaround_ :: SecurityServicePolicyDataProperty -> ()
managedServiceData :: SecurityServicePolicyDataProperty -> Maybe (Value Text)
policyOption :: SecurityServicePolicyDataProperty -> Maybe PolicyOptionProperty
type' :: SecurityServicePolicyDataProperty -> Value Text
haddock_workaround_ :: ()
managedServiceData :: Maybe (Value Text)
policyOption :: Maybe PolicyOptionProperty
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FMS::Policy.SecurityServicePolicyData",
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
"Type" 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
type']
([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
"ManagedServiceData" (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)
managedServiceData,
Key -> PolicyOptionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PolicyOption" (PolicyOptionProperty -> (Key, Value))
-> Maybe PolicyOptionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PolicyOptionProperty
policyOption]))}
instance JSON.ToJSON SecurityServicePolicyDataProperty where
toJSON :: SecurityServicePolicyDataProperty -> Value
toJSON SecurityServicePolicyDataProperty {Maybe (Value Text)
Maybe PolicyOptionProperty
()
Value Text
haddock_workaround_ :: SecurityServicePolicyDataProperty -> ()
managedServiceData :: SecurityServicePolicyDataProperty -> Maybe (Value Text)
policyOption :: SecurityServicePolicyDataProperty -> Maybe PolicyOptionProperty
type' :: SecurityServicePolicyDataProperty -> Value Text
haddock_workaround_ :: ()
managedServiceData :: Maybe (Value Text)
policyOption :: Maybe PolicyOptionProperty
type' :: 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
"Type" 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
type']
([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
"ManagedServiceData" (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)
managedServiceData,
Key -> PolicyOptionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PolicyOption" (PolicyOptionProperty -> (Key, Value))
-> Maybe PolicyOptionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PolicyOptionProperty
policyOption])))
instance Property "ManagedServiceData" SecurityServicePolicyDataProperty where
type PropertyType "ManagedServiceData" SecurityServicePolicyDataProperty = Value Prelude.Text
set :: PropertyType "ManagedServiceData" SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty
set PropertyType "ManagedServiceData" SecurityServicePolicyDataProperty
newValue SecurityServicePolicyDataProperty {Maybe (Value Text)
Maybe PolicyOptionProperty
()
Value Text
haddock_workaround_ :: SecurityServicePolicyDataProperty -> ()
managedServiceData :: SecurityServicePolicyDataProperty -> Maybe (Value Text)
policyOption :: SecurityServicePolicyDataProperty -> Maybe PolicyOptionProperty
type' :: SecurityServicePolicyDataProperty -> Value Text
haddock_workaround_ :: ()
managedServiceData :: Maybe (Value Text)
policyOption :: Maybe PolicyOptionProperty
type' :: Value Text
..}
= SecurityServicePolicyDataProperty
{managedServiceData :: Maybe (Value Text)
managedServiceData = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ManagedServiceData" SecurityServicePolicyDataProperty
Value Text
newValue, Maybe PolicyOptionProperty
()
Value Text
haddock_workaround_ :: ()
policyOption :: Maybe PolicyOptionProperty
type' :: Value Text
haddock_workaround_ :: ()
policyOption :: Maybe PolicyOptionProperty
type' :: Value Text
..}
instance Property "PolicyOption" SecurityServicePolicyDataProperty where
type PropertyType "PolicyOption" SecurityServicePolicyDataProperty = PolicyOptionProperty
set :: PropertyType "PolicyOption" SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty
set PropertyType "PolicyOption" SecurityServicePolicyDataProperty
newValue SecurityServicePolicyDataProperty {Maybe (Value Text)
Maybe PolicyOptionProperty
()
Value Text
haddock_workaround_ :: SecurityServicePolicyDataProperty -> ()
managedServiceData :: SecurityServicePolicyDataProperty -> Maybe (Value Text)
policyOption :: SecurityServicePolicyDataProperty -> Maybe PolicyOptionProperty
type' :: SecurityServicePolicyDataProperty -> Value Text
haddock_workaround_ :: ()
managedServiceData :: Maybe (Value Text)
policyOption :: Maybe PolicyOptionProperty
type' :: Value Text
..}
= SecurityServicePolicyDataProperty
{policyOption :: Maybe PolicyOptionProperty
policyOption = PolicyOptionProperty -> Maybe PolicyOptionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PolicyOption" SecurityServicePolicyDataProperty
PolicyOptionProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
managedServiceData :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
managedServiceData :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Type" SecurityServicePolicyDataProperty where
type PropertyType "Type" SecurityServicePolicyDataProperty = Value Prelude.Text
set :: PropertyType "Type" SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty
-> SecurityServicePolicyDataProperty
set PropertyType "Type" SecurityServicePolicyDataProperty
newValue SecurityServicePolicyDataProperty {Maybe (Value Text)
Maybe PolicyOptionProperty
()
Value Text
haddock_workaround_ :: SecurityServicePolicyDataProperty -> ()
managedServiceData :: SecurityServicePolicyDataProperty -> Maybe (Value Text)
policyOption :: SecurityServicePolicyDataProperty -> Maybe PolicyOptionProperty
type' :: SecurityServicePolicyDataProperty -> Value Text
haddock_workaround_ :: ()
managedServiceData :: Maybe (Value Text)
policyOption :: Maybe PolicyOptionProperty
type' :: Value Text
..}
= SecurityServicePolicyDataProperty {type' :: Value Text
type' = PropertyType "Type" SecurityServicePolicyDataProperty
Value Text
newValue, Maybe (Value Text)
Maybe PolicyOptionProperty
()
haddock_workaround_ :: ()
managedServiceData :: Maybe (Value Text)
policyOption :: Maybe PolicyOptionProperty
haddock_workaround_ :: ()
managedServiceData :: Maybe (Value Text)
policyOption :: Maybe PolicyOptionProperty
..}