module Stratosphere.CloudFormation.StackSet.DeploymentTargetsProperty (
        DeploymentTargetsProperty(..), mkDeploymentTargetsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DeploymentTargetsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-deploymenttargets.html>
    DeploymentTargetsProperty {DeploymentTargetsProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-deploymenttargets.html#cfn-cloudformation-stackset-deploymenttargets-accountfiltertype>
                               DeploymentTargetsProperty -> Maybe (Value Text)
accountFilterType :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-deploymenttargets.html#cfn-cloudformation-stackset-deploymenttargets-accounts>
                               DeploymentTargetsProperty -> Maybe (ValueList Text)
accounts :: (Prelude.Maybe (ValueList Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-deploymenttargets.html#cfn-cloudformation-stackset-deploymenttargets-accountsurl>
                               DeploymentTargetsProperty -> Maybe (Value Text)
accountsUrl :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-stackset-deploymenttargets.html#cfn-cloudformation-stackset-deploymenttargets-organizationalunitids>
                               DeploymentTargetsProperty -> Maybe (ValueList Text)
organizationalUnitIds :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (DeploymentTargetsProperty -> DeploymentTargetsProperty -> Bool
(DeploymentTargetsProperty -> DeploymentTargetsProperty -> Bool)
-> (DeploymentTargetsProperty -> DeploymentTargetsProperty -> Bool)
-> Eq DeploymentTargetsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeploymentTargetsProperty -> DeploymentTargetsProperty -> Bool
== :: DeploymentTargetsProperty -> DeploymentTargetsProperty -> Bool
$c/= :: DeploymentTargetsProperty -> DeploymentTargetsProperty -> Bool
/= :: DeploymentTargetsProperty -> DeploymentTargetsProperty -> Bool
Prelude.Eq, Int -> DeploymentTargetsProperty -> ShowS
[DeploymentTargetsProperty] -> ShowS
DeploymentTargetsProperty -> String
(Int -> DeploymentTargetsProperty -> ShowS)
-> (DeploymentTargetsProperty -> String)
-> ([DeploymentTargetsProperty] -> ShowS)
-> Show DeploymentTargetsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeploymentTargetsProperty -> ShowS
showsPrec :: Int -> DeploymentTargetsProperty -> ShowS
$cshow :: DeploymentTargetsProperty -> String
show :: DeploymentTargetsProperty -> String
$cshowList :: [DeploymentTargetsProperty] -> ShowS
showList :: [DeploymentTargetsProperty] -> ShowS
Prelude.Show)
mkDeploymentTargetsProperty :: DeploymentTargetsProperty
mkDeploymentTargetsProperty :: DeploymentTargetsProperty
mkDeploymentTargetsProperty
  = DeploymentTargetsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), accountFilterType :: Maybe (Value Text)
accountFilterType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       accounts :: Maybe (ValueList Text)
accounts = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, accountsUrl :: Maybe (Value Text)
accountsUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       organizationalUnitIds :: Maybe (ValueList Text)
organizationalUnitIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DeploymentTargetsProperty where
  toResourceProperties :: DeploymentTargetsProperty -> ResourceProperties
toResourceProperties DeploymentTargetsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: DeploymentTargetsProperty -> ()
accountFilterType :: DeploymentTargetsProperty -> Maybe (Value Text)
accounts :: DeploymentTargetsProperty -> Maybe (ValueList Text)
accountsUrl :: DeploymentTargetsProperty -> Maybe (Value Text)
organizationalUnitIds :: DeploymentTargetsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
accountFilterType :: Maybe (Value Text)
accounts :: Maybe (ValueList Text)
accountsUrl :: Maybe (Value Text)
organizationalUnitIds :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CloudFormation::StackSet.DeploymentTargets",
         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 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
"AccountFilterType" (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)
accountFilterType,
                            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
"Accounts" (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)
accounts,
                            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
"AccountsUrl" (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)
accountsUrl,
                            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
"OrganizationalUnitIds"
                              (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)
organizationalUnitIds])}
instance JSON.ToJSON DeploymentTargetsProperty where
  toJSON :: DeploymentTargetsProperty -> Value
toJSON DeploymentTargetsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: DeploymentTargetsProperty -> ()
accountFilterType :: DeploymentTargetsProperty -> Maybe (Value Text)
accounts :: DeploymentTargetsProperty -> Maybe (ValueList Text)
accountsUrl :: DeploymentTargetsProperty -> Maybe (Value Text)
organizationalUnitIds :: DeploymentTargetsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
accountFilterType :: Maybe (Value Text)
accounts :: Maybe (ValueList Text)
accountsUrl :: Maybe (Value Text)
organizationalUnitIds :: Maybe (ValueList 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 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
"AccountFilterType" (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)
accountFilterType,
               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
"Accounts" (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)
accounts,
               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
"AccountsUrl" (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)
accountsUrl,
               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
"OrganizationalUnitIds"
                 (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)
organizationalUnitIds]))
instance Property "AccountFilterType" DeploymentTargetsProperty where
  type PropertyType "AccountFilterType" DeploymentTargetsProperty = Value Prelude.Text
  set :: PropertyType "AccountFilterType" DeploymentTargetsProperty
-> DeploymentTargetsProperty -> DeploymentTargetsProperty
set PropertyType "AccountFilterType" DeploymentTargetsProperty
newValue DeploymentTargetsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: DeploymentTargetsProperty -> ()
accountFilterType :: DeploymentTargetsProperty -> Maybe (Value Text)
accounts :: DeploymentTargetsProperty -> Maybe (ValueList Text)
accountsUrl :: DeploymentTargetsProperty -> Maybe (Value Text)
organizationalUnitIds :: DeploymentTargetsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
accountFilterType :: Maybe (Value Text)
accounts :: Maybe (ValueList Text)
accountsUrl :: Maybe (Value Text)
organizationalUnitIds :: Maybe (ValueList Text)
..}
    = DeploymentTargetsProperty
        {accountFilterType :: Maybe (Value Text)
accountFilterType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AccountFilterType" DeploymentTargetsProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
accounts :: Maybe (ValueList Text)
accountsUrl :: Maybe (Value Text)
organizationalUnitIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
accounts :: Maybe (ValueList Text)
accountsUrl :: Maybe (Value Text)
organizationalUnitIds :: Maybe (ValueList Text)
..}
instance Property "Accounts" DeploymentTargetsProperty where
  type PropertyType "Accounts" DeploymentTargetsProperty = ValueList Prelude.Text
  set :: PropertyType "Accounts" DeploymentTargetsProperty
-> DeploymentTargetsProperty -> DeploymentTargetsProperty
set PropertyType "Accounts" DeploymentTargetsProperty
newValue DeploymentTargetsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: DeploymentTargetsProperty -> ()
accountFilterType :: DeploymentTargetsProperty -> Maybe (Value Text)
accounts :: DeploymentTargetsProperty -> Maybe (ValueList Text)
accountsUrl :: DeploymentTargetsProperty -> Maybe (Value Text)
organizationalUnitIds :: DeploymentTargetsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
accountFilterType :: Maybe (Value Text)
accounts :: Maybe (ValueList Text)
accountsUrl :: Maybe (Value Text)
organizationalUnitIds :: Maybe (ValueList Text)
..}
    = DeploymentTargetsProperty {accounts :: Maybe (ValueList Text)
accounts = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Accounts" DeploymentTargetsProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
accountFilterType :: Maybe (Value Text)
accountsUrl :: Maybe (Value Text)
organizationalUnitIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
accountFilterType :: Maybe (Value Text)
accountsUrl :: Maybe (Value Text)
organizationalUnitIds :: Maybe (ValueList Text)
..}
instance Property "AccountsUrl" DeploymentTargetsProperty where
  type PropertyType "AccountsUrl" DeploymentTargetsProperty = Value Prelude.Text
  set :: PropertyType "AccountsUrl" DeploymentTargetsProperty
-> DeploymentTargetsProperty -> DeploymentTargetsProperty
set PropertyType "AccountsUrl" DeploymentTargetsProperty
newValue DeploymentTargetsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: DeploymentTargetsProperty -> ()
accountFilterType :: DeploymentTargetsProperty -> Maybe (Value Text)
accounts :: DeploymentTargetsProperty -> Maybe (ValueList Text)
accountsUrl :: DeploymentTargetsProperty -> Maybe (Value Text)
organizationalUnitIds :: DeploymentTargetsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
accountFilterType :: Maybe (Value Text)
accounts :: Maybe (ValueList Text)
accountsUrl :: Maybe (Value Text)
organizationalUnitIds :: Maybe (ValueList Text)
..}
    = DeploymentTargetsProperty
        {accountsUrl :: Maybe (Value Text)
accountsUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AccountsUrl" DeploymentTargetsProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
accountFilterType :: Maybe (Value Text)
accounts :: Maybe (ValueList Text)
organizationalUnitIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
accountFilterType :: Maybe (Value Text)
accounts :: Maybe (ValueList Text)
organizationalUnitIds :: Maybe (ValueList Text)
..}
instance Property "OrganizationalUnitIds" DeploymentTargetsProperty where
  type PropertyType "OrganizationalUnitIds" DeploymentTargetsProperty = ValueList Prelude.Text
  set :: PropertyType "OrganizationalUnitIds" DeploymentTargetsProperty
-> DeploymentTargetsProperty -> DeploymentTargetsProperty
set PropertyType "OrganizationalUnitIds" DeploymentTargetsProperty
newValue DeploymentTargetsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: DeploymentTargetsProperty -> ()
accountFilterType :: DeploymentTargetsProperty -> Maybe (Value Text)
accounts :: DeploymentTargetsProperty -> Maybe (ValueList Text)
accountsUrl :: DeploymentTargetsProperty -> Maybe (Value Text)
organizationalUnitIds :: DeploymentTargetsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
accountFilterType :: Maybe (Value Text)
accounts :: Maybe (ValueList Text)
accountsUrl :: Maybe (Value Text)
organizationalUnitIds :: Maybe (ValueList Text)
..}
    = DeploymentTargetsProperty
        {organizationalUnitIds :: Maybe (ValueList Text)
organizationalUnitIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OrganizationalUnitIds" DeploymentTargetsProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
accountFilterType :: Maybe (Value Text)
accounts :: Maybe (ValueList Text)
accountsUrl :: Maybe (Value Text)
haddock_workaround_ :: ()
accountFilterType :: Maybe (Value Text)
accounts :: Maybe (ValueList Text)
accountsUrl :: Maybe (Value Text)
..}