module Stratosphere.ImageBuilder.LifecyclePolicy.AmiExclusionRulesProperty (
module Exports, AmiExclusionRulesProperty(..),
mkAmiExclusionRulesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ImageBuilder.LifecyclePolicy.LastLaunchedProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AmiExclusionRulesProperty
=
AmiExclusionRulesProperty {AmiExclusionRulesProperty -> ()
haddock_workaround_ :: (),
AmiExclusionRulesProperty -> Maybe (Value Bool)
isPublic :: (Prelude.Maybe (Value Prelude.Bool)),
AmiExclusionRulesProperty -> Maybe LastLaunchedProperty
lastLaunched :: (Prelude.Maybe LastLaunchedProperty),
AmiExclusionRulesProperty -> Maybe (ValueList Text)
regions :: (Prelude.Maybe (ValueList Prelude.Text)),
AmiExclusionRulesProperty -> Maybe (ValueList Text)
sharedAccounts :: (Prelude.Maybe (ValueList Prelude.Text)),
AmiExclusionRulesProperty -> Maybe (Map Text (Value Text))
tagMap :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
deriving stock (AmiExclusionRulesProperty -> AmiExclusionRulesProperty -> Bool
(AmiExclusionRulesProperty -> AmiExclusionRulesProperty -> Bool)
-> (AmiExclusionRulesProperty -> AmiExclusionRulesProperty -> Bool)
-> Eq AmiExclusionRulesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AmiExclusionRulesProperty -> AmiExclusionRulesProperty -> Bool
== :: AmiExclusionRulesProperty -> AmiExclusionRulesProperty -> Bool
$c/= :: AmiExclusionRulesProperty -> AmiExclusionRulesProperty -> Bool
/= :: AmiExclusionRulesProperty -> AmiExclusionRulesProperty -> Bool
Prelude.Eq, Int -> AmiExclusionRulesProperty -> ShowS
[AmiExclusionRulesProperty] -> ShowS
AmiExclusionRulesProperty -> String
(Int -> AmiExclusionRulesProperty -> ShowS)
-> (AmiExclusionRulesProperty -> String)
-> ([AmiExclusionRulesProperty] -> ShowS)
-> Show AmiExclusionRulesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AmiExclusionRulesProperty -> ShowS
showsPrec :: Int -> AmiExclusionRulesProperty -> ShowS
$cshow :: AmiExclusionRulesProperty -> String
show :: AmiExclusionRulesProperty -> String
$cshowList :: [AmiExclusionRulesProperty] -> ShowS
showList :: [AmiExclusionRulesProperty] -> ShowS
Prelude.Show)
mkAmiExclusionRulesProperty :: AmiExclusionRulesProperty
mkAmiExclusionRulesProperty :: AmiExclusionRulesProperty
mkAmiExclusionRulesProperty
= AmiExclusionRulesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), isPublic :: Maybe (Value Bool)
isPublic = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
lastLaunched :: Maybe LastLaunchedProperty
lastLaunched = Maybe LastLaunchedProperty
forall a. Maybe a
Prelude.Nothing, regions :: Maybe (ValueList Text)
regions = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
sharedAccounts :: Maybe (ValueList Text)
sharedAccounts = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, tagMap :: Maybe (Map Text (Value Text))
tagMap = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AmiExclusionRulesProperty where
toResourceProperties :: AmiExclusionRulesProperty -> ResourceProperties
toResourceProperties AmiExclusionRulesProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe LastLaunchedProperty
()
haddock_workaround_ :: AmiExclusionRulesProperty -> ()
isPublic :: AmiExclusionRulesProperty -> Maybe (Value Bool)
lastLaunched :: AmiExclusionRulesProperty -> Maybe LastLaunchedProperty
regions :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
sharedAccounts :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
tagMap :: AmiExclusionRulesProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ImageBuilder::LifecyclePolicy.AmiExclusionRules",
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
"IsPublic" (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)
isPublic,
Key -> LastLaunchedProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LastLaunched" (LastLaunchedProperty -> (Key, Value))
-> Maybe LastLaunchedProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LastLaunchedProperty
lastLaunched,
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
"Regions" (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)
regions,
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
"SharedAccounts" (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)
sharedAccounts,
Key -> Map Text (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
"TagMap" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tagMap])}
instance JSON.ToJSON AmiExclusionRulesProperty where
toJSON :: AmiExclusionRulesProperty -> Value
toJSON AmiExclusionRulesProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe LastLaunchedProperty
()
haddock_workaround_ :: AmiExclusionRulesProperty -> ()
isPublic :: AmiExclusionRulesProperty -> Maybe (Value Bool)
lastLaunched :: AmiExclusionRulesProperty -> Maybe LastLaunchedProperty
regions :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
sharedAccounts :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
tagMap :: AmiExclusionRulesProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
..}
= [(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
"IsPublic" (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)
isPublic,
Key -> LastLaunchedProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LastLaunched" (LastLaunchedProperty -> (Key, Value))
-> Maybe LastLaunchedProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LastLaunchedProperty
lastLaunched,
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
"Regions" (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)
regions,
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
"SharedAccounts" (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)
sharedAccounts,
Key -> Map Text (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
"TagMap" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tagMap]))
instance Property "IsPublic" AmiExclusionRulesProperty where
type PropertyType "IsPublic" AmiExclusionRulesProperty = Value Prelude.Bool
set :: PropertyType "IsPublic" AmiExclusionRulesProperty
-> AmiExclusionRulesProperty -> AmiExclusionRulesProperty
set PropertyType "IsPublic" AmiExclusionRulesProperty
newValue AmiExclusionRulesProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe LastLaunchedProperty
()
haddock_workaround_ :: AmiExclusionRulesProperty -> ()
isPublic :: AmiExclusionRulesProperty -> Maybe (Value Bool)
lastLaunched :: AmiExclusionRulesProperty -> Maybe LastLaunchedProperty
regions :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
sharedAccounts :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
tagMap :: AmiExclusionRulesProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
..}
= AmiExclusionRulesProperty {isPublic :: Maybe (Value Bool)
isPublic = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IsPublic" AmiExclusionRulesProperty
Value Bool
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe LastLaunchedProperty
()
haddock_workaround_ :: ()
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
..}
instance Property "LastLaunched" AmiExclusionRulesProperty where
type PropertyType "LastLaunched" AmiExclusionRulesProperty = LastLaunchedProperty
set :: PropertyType "LastLaunched" AmiExclusionRulesProperty
-> AmiExclusionRulesProperty -> AmiExclusionRulesProperty
set PropertyType "LastLaunched" AmiExclusionRulesProperty
newValue AmiExclusionRulesProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe LastLaunchedProperty
()
haddock_workaround_ :: AmiExclusionRulesProperty -> ()
isPublic :: AmiExclusionRulesProperty -> Maybe (Value Bool)
lastLaunched :: AmiExclusionRulesProperty -> Maybe LastLaunchedProperty
regions :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
sharedAccounts :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
tagMap :: AmiExclusionRulesProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
..}
= AmiExclusionRulesProperty
{lastLaunched :: Maybe LastLaunchedProperty
lastLaunched = LastLaunchedProperty -> Maybe LastLaunchedProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LastLaunched" AmiExclusionRulesProperty
LastLaunchedProperty
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
()
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
..}
instance Property "Regions" AmiExclusionRulesProperty where
type PropertyType "Regions" AmiExclusionRulesProperty = ValueList Prelude.Text
set :: PropertyType "Regions" AmiExclusionRulesProperty
-> AmiExclusionRulesProperty -> AmiExclusionRulesProperty
set PropertyType "Regions" AmiExclusionRulesProperty
newValue AmiExclusionRulesProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe LastLaunchedProperty
()
haddock_workaround_ :: AmiExclusionRulesProperty -> ()
isPublic :: AmiExclusionRulesProperty -> Maybe (Value Bool)
lastLaunched :: AmiExclusionRulesProperty -> Maybe LastLaunchedProperty
regions :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
sharedAccounts :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
tagMap :: AmiExclusionRulesProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
..}
= AmiExclusionRulesProperty {regions :: Maybe (ValueList Text)
regions = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Regions" AmiExclusionRulesProperty
ValueList Text
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe LastLaunchedProperty
()
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
..}
instance Property "SharedAccounts" AmiExclusionRulesProperty where
type PropertyType "SharedAccounts" AmiExclusionRulesProperty = ValueList Prelude.Text
set :: PropertyType "SharedAccounts" AmiExclusionRulesProperty
-> AmiExclusionRulesProperty -> AmiExclusionRulesProperty
set PropertyType "SharedAccounts" AmiExclusionRulesProperty
newValue AmiExclusionRulesProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe LastLaunchedProperty
()
haddock_workaround_ :: AmiExclusionRulesProperty -> ()
isPublic :: AmiExclusionRulesProperty -> Maybe (Value Bool)
lastLaunched :: AmiExclusionRulesProperty -> Maybe LastLaunchedProperty
regions :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
sharedAccounts :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
tagMap :: AmiExclusionRulesProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
..}
= AmiExclusionRulesProperty
{sharedAccounts :: Maybe (ValueList Text)
sharedAccounts = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SharedAccounts" AmiExclusionRulesProperty
ValueList Text
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe LastLaunchedProperty
()
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
..}
instance Property "TagMap" AmiExclusionRulesProperty where
type PropertyType "TagMap" AmiExclusionRulesProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "TagMap" AmiExclusionRulesProperty
-> AmiExclusionRulesProperty -> AmiExclusionRulesProperty
set PropertyType "TagMap" AmiExclusionRulesProperty
newValue AmiExclusionRulesProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
Maybe (Value Bool)
Maybe LastLaunchedProperty
()
haddock_workaround_ :: AmiExclusionRulesProperty -> ()
isPublic :: AmiExclusionRulesProperty -> Maybe (Value Bool)
lastLaunched :: AmiExclusionRulesProperty -> Maybe LastLaunchedProperty
regions :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
sharedAccounts :: AmiExclusionRulesProperty -> Maybe (ValueList Text)
tagMap :: AmiExclusionRulesProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
tagMap :: Maybe (Map Text (Value Text))
..}
= AmiExclusionRulesProperty {tagMap :: Maybe (Map Text (Value Text))
tagMap = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "TagMap" AmiExclusionRulesProperty
newValue, Maybe (ValueList Text)
Maybe (Value Bool)
Maybe LastLaunchedProperty
()
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
haddock_workaround_ :: ()
isPublic :: Maybe (Value Bool)
lastLaunched :: Maybe LastLaunchedProperty
regions :: Maybe (ValueList Text)
sharedAccounts :: Maybe (ValueList Text)
..}