module Stratosphere.Config.OrganizationConfigRule (
        module Exports, OrganizationConfigRule(..),
        mkOrganizationConfigRule
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Config.OrganizationConfigRule.OrganizationCustomPolicyRuleMetadataProperty as Exports
import {-# SOURCE #-} Stratosphere.Config.OrganizationConfigRule.OrganizationCustomRuleMetadataProperty as Exports
import {-# SOURCE #-} Stratosphere.Config.OrganizationConfigRule.OrganizationManagedRuleMetadataProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OrganizationConfigRule
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-organizationconfigrule.html>
    OrganizationConfigRule {OrganizationConfigRule -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-organizationconfigrule.html#cfn-config-organizationconfigrule-excludedaccounts>
                            OrganizationConfigRule -> Maybe (ValueList Text)
excludedAccounts :: (Prelude.Maybe (ValueList Prelude.Text)),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-organizationconfigrule.html#cfn-config-organizationconfigrule-organizationconfigrulename>
                            OrganizationConfigRule -> Value Text
organizationConfigRuleName :: (Value Prelude.Text),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-organizationconfigrule.html#cfn-config-organizationconfigrule-organizationcustompolicyrulemetadata>
                            OrganizationConfigRule
-> Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomPolicyRuleMetadata :: (Prelude.Maybe OrganizationCustomPolicyRuleMetadataProperty),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-organizationconfigrule.html#cfn-config-organizationconfigrule-organizationcustomrulemetadata>
                            OrganizationConfigRule
-> Maybe OrganizationCustomRuleMetadataProperty
organizationCustomRuleMetadata :: (Prelude.Maybe OrganizationCustomRuleMetadataProperty),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-organizationconfigrule.html#cfn-config-organizationconfigrule-organizationmanagedrulemetadata>
                            OrganizationConfigRule
-> Maybe OrganizationManagedRuleMetadataProperty
organizationManagedRuleMetadata :: (Prelude.Maybe OrganizationManagedRuleMetadataProperty)}
  deriving stock (OrganizationConfigRule -> OrganizationConfigRule -> Bool
(OrganizationConfigRule -> OrganizationConfigRule -> Bool)
-> (OrganizationConfigRule -> OrganizationConfigRule -> Bool)
-> Eq OrganizationConfigRule
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OrganizationConfigRule -> OrganizationConfigRule -> Bool
== :: OrganizationConfigRule -> OrganizationConfigRule -> Bool
$c/= :: OrganizationConfigRule -> OrganizationConfigRule -> Bool
/= :: OrganizationConfigRule -> OrganizationConfigRule -> Bool
Prelude.Eq, Int -> OrganizationConfigRule -> ShowS
[OrganizationConfigRule] -> ShowS
OrganizationConfigRule -> String
(Int -> OrganizationConfigRule -> ShowS)
-> (OrganizationConfigRule -> String)
-> ([OrganizationConfigRule] -> ShowS)
-> Show OrganizationConfigRule
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OrganizationConfigRule -> ShowS
showsPrec :: Int -> OrganizationConfigRule -> ShowS
$cshow :: OrganizationConfigRule -> String
show :: OrganizationConfigRule -> String
$cshowList :: [OrganizationConfigRule] -> ShowS
showList :: [OrganizationConfigRule] -> ShowS
Prelude.Show)
mkOrganizationConfigRule ::
  Value Prelude.Text -> OrganizationConfigRule
mkOrganizationConfigRule :: Value Text -> OrganizationConfigRule
mkOrganizationConfigRule Value Text
organizationConfigRuleName
  = OrganizationConfigRule
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       organizationConfigRuleName :: Value Text
organizationConfigRuleName = Value Text
organizationConfigRuleName,
       excludedAccounts :: Maybe (ValueList Text)
excludedAccounts = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomPolicyRuleMetadata = Maybe OrganizationCustomPolicyRuleMetadataProperty
forall a. Maybe a
Prelude.Nothing,
       organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationCustomRuleMetadata = Maybe OrganizationCustomRuleMetadataProperty
forall a. Maybe a
Prelude.Nothing,
       organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
organizationManagedRuleMetadata = Maybe OrganizationManagedRuleMetadataProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OrganizationConfigRule where
  toResourceProperties :: OrganizationConfigRule -> ResourceProperties
toResourceProperties OrganizationConfigRule {Maybe (ValueList Text)
Maybe OrganizationCustomPolicyRuleMetadataProperty
Maybe OrganizationCustomRuleMetadataProperty
Maybe OrganizationManagedRuleMetadataProperty
()
Value Text
haddock_workaround_ :: OrganizationConfigRule -> ()
excludedAccounts :: OrganizationConfigRule -> Maybe (ValueList Text)
organizationConfigRuleName :: OrganizationConfigRule -> Value Text
organizationCustomPolicyRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationManagedRuleMetadataProperty
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Config::OrganizationConfigRule",
         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
"OrganizationConfigRuleName" 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
organizationConfigRuleName]
                           ([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
"ExcludedAccounts" (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)
excludedAccounts,
                               Key -> OrganizationCustomPolicyRuleMetadataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OrganizationCustomPolicyRuleMetadata"
                                 (OrganizationCustomPolicyRuleMetadataProperty -> (Key, Value))
-> Maybe OrganizationCustomPolicyRuleMetadataProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomPolicyRuleMetadata,
                               Key -> OrganizationCustomRuleMetadataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OrganizationCustomRuleMetadata"
                                 (OrganizationCustomRuleMetadataProperty -> (Key, Value))
-> Maybe OrganizationCustomRuleMetadataProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OrganizationCustomRuleMetadataProperty
organizationCustomRuleMetadata,
                               Key -> OrganizationManagedRuleMetadataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OrganizationManagedRuleMetadata"
                                 (OrganizationManagedRuleMetadataProperty -> (Key, Value))
-> Maybe OrganizationManagedRuleMetadataProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OrganizationManagedRuleMetadataProperty
organizationManagedRuleMetadata]))}
instance JSON.ToJSON OrganizationConfigRule where
  toJSON :: OrganizationConfigRule -> Value
toJSON OrganizationConfigRule {Maybe (ValueList Text)
Maybe OrganizationCustomPolicyRuleMetadataProperty
Maybe OrganizationCustomRuleMetadataProperty
Maybe OrganizationManagedRuleMetadataProperty
()
Value Text
haddock_workaround_ :: OrganizationConfigRule -> ()
excludedAccounts :: OrganizationConfigRule -> Maybe (ValueList Text)
organizationConfigRuleName :: OrganizationConfigRule -> Value Text
organizationCustomPolicyRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationManagedRuleMetadataProperty
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
..}
    = [(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
"OrganizationConfigRuleName" 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
organizationConfigRuleName]
              ([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
"ExcludedAccounts" (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)
excludedAccounts,
                  Key -> OrganizationCustomPolicyRuleMetadataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OrganizationCustomPolicyRuleMetadata"
                    (OrganizationCustomPolicyRuleMetadataProperty -> (Key, Value))
-> Maybe OrganizationCustomPolicyRuleMetadataProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomPolicyRuleMetadata,
                  Key -> OrganizationCustomRuleMetadataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OrganizationCustomRuleMetadata"
                    (OrganizationCustomRuleMetadataProperty -> (Key, Value))
-> Maybe OrganizationCustomRuleMetadataProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OrganizationCustomRuleMetadataProperty
organizationCustomRuleMetadata,
                  Key -> OrganizationManagedRuleMetadataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OrganizationManagedRuleMetadata"
                    (OrganizationManagedRuleMetadataProperty -> (Key, Value))
-> Maybe OrganizationManagedRuleMetadataProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OrganizationManagedRuleMetadataProperty
organizationManagedRuleMetadata])))
instance Property "ExcludedAccounts" OrganizationConfigRule where
  type PropertyType "ExcludedAccounts" OrganizationConfigRule = ValueList Prelude.Text
  set :: PropertyType "ExcludedAccounts" OrganizationConfigRule
-> OrganizationConfigRule -> OrganizationConfigRule
set PropertyType "ExcludedAccounts" OrganizationConfigRule
newValue OrganizationConfigRule {Maybe (ValueList Text)
Maybe OrganizationCustomPolicyRuleMetadataProperty
Maybe OrganizationCustomRuleMetadataProperty
Maybe OrganizationManagedRuleMetadataProperty
()
Value Text
haddock_workaround_ :: OrganizationConfigRule -> ()
excludedAccounts :: OrganizationConfigRule -> Maybe (ValueList Text)
organizationConfigRuleName :: OrganizationConfigRule -> Value Text
organizationCustomPolicyRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationManagedRuleMetadataProperty
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
..}
    = OrganizationConfigRule
        {excludedAccounts :: Maybe (ValueList Text)
excludedAccounts = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExcludedAccounts" OrganizationConfigRule
ValueList Text
newValue, Maybe OrganizationCustomPolicyRuleMetadataProperty
Maybe OrganizationCustomRuleMetadataProperty
Maybe OrganizationManagedRuleMetadataProperty
()
Value Text
haddock_workaround_ :: ()
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
haddock_workaround_ :: ()
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
..}
instance Property "OrganizationConfigRuleName" OrganizationConfigRule where
  type PropertyType "OrganizationConfigRuleName" OrganizationConfigRule = Value Prelude.Text
  set :: PropertyType "OrganizationConfigRuleName" OrganizationConfigRule
-> OrganizationConfigRule -> OrganizationConfigRule
set PropertyType "OrganizationConfigRuleName" OrganizationConfigRule
newValue OrganizationConfigRule {Maybe (ValueList Text)
Maybe OrganizationCustomPolicyRuleMetadataProperty
Maybe OrganizationCustomRuleMetadataProperty
Maybe OrganizationManagedRuleMetadataProperty
()
Value Text
haddock_workaround_ :: OrganizationConfigRule -> ()
excludedAccounts :: OrganizationConfigRule -> Maybe (ValueList Text)
organizationConfigRuleName :: OrganizationConfigRule -> Value Text
organizationCustomPolicyRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationManagedRuleMetadataProperty
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
..}
    = OrganizationConfigRule
        {organizationConfigRuleName :: Value Text
organizationConfigRuleName = PropertyType "OrganizationConfigRuleName" OrganizationConfigRule
Value Text
newValue, Maybe (ValueList Text)
Maybe OrganizationCustomPolicyRuleMetadataProperty
Maybe OrganizationCustomRuleMetadataProperty
Maybe OrganizationManagedRuleMetadataProperty
()
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
..}
instance Property "OrganizationCustomPolicyRuleMetadata" OrganizationConfigRule where
  type PropertyType "OrganizationCustomPolicyRuleMetadata" OrganizationConfigRule = OrganizationCustomPolicyRuleMetadataProperty
  set :: PropertyType
  "OrganizationCustomPolicyRuleMetadata" OrganizationConfigRule
-> OrganizationConfigRule -> OrganizationConfigRule
set PropertyType
  "OrganizationCustomPolicyRuleMetadata" OrganizationConfigRule
newValue OrganizationConfigRule {Maybe (ValueList Text)
Maybe OrganizationCustomPolicyRuleMetadataProperty
Maybe OrganizationCustomRuleMetadataProperty
Maybe OrganizationManagedRuleMetadataProperty
()
Value Text
haddock_workaround_ :: OrganizationConfigRule -> ()
excludedAccounts :: OrganizationConfigRule -> Maybe (ValueList Text)
organizationConfigRuleName :: OrganizationConfigRule -> Value Text
organizationCustomPolicyRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationManagedRuleMetadataProperty
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
..}
    = OrganizationConfigRule
        {organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomPolicyRuleMetadata = OrganizationCustomPolicyRuleMetadataProperty
-> Maybe OrganizationCustomPolicyRuleMetadataProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "OrganizationCustomPolicyRuleMetadata" OrganizationConfigRule
OrganizationCustomPolicyRuleMetadataProperty
newValue, Maybe (ValueList Text)
Maybe OrganizationCustomRuleMetadataProperty
Maybe OrganizationManagedRuleMetadataProperty
()
Value Text
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
..}
instance Property "OrganizationCustomRuleMetadata" OrganizationConfigRule where
  type PropertyType "OrganizationCustomRuleMetadata" OrganizationConfigRule = OrganizationCustomRuleMetadataProperty
  set :: PropertyType
  "OrganizationCustomRuleMetadata" OrganizationConfigRule
-> OrganizationConfigRule -> OrganizationConfigRule
set PropertyType
  "OrganizationCustomRuleMetadata" OrganizationConfigRule
newValue OrganizationConfigRule {Maybe (ValueList Text)
Maybe OrganizationCustomPolicyRuleMetadataProperty
Maybe OrganizationCustomRuleMetadataProperty
Maybe OrganizationManagedRuleMetadataProperty
()
Value Text
haddock_workaround_ :: OrganizationConfigRule -> ()
excludedAccounts :: OrganizationConfigRule -> Maybe (ValueList Text)
organizationConfigRuleName :: OrganizationConfigRule -> Value Text
organizationCustomPolicyRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationManagedRuleMetadataProperty
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
..}
    = OrganizationConfigRule
        {organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationCustomRuleMetadata = OrganizationCustomRuleMetadataProperty
-> Maybe OrganizationCustomRuleMetadataProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "OrganizationCustomRuleMetadata" OrganizationConfigRule
OrganizationCustomRuleMetadataProperty
newValue, Maybe (ValueList Text)
Maybe OrganizationCustomPolicyRuleMetadataProperty
Maybe OrganizationManagedRuleMetadataProperty
()
Value Text
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
..}
instance Property "OrganizationManagedRuleMetadata" OrganizationConfigRule where
  type PropertyType "OrganizationManagedRuleMetadata" OrganizationConfigRule = OrganizationManagedRuleMetadataProperty
  set :: PropertyType
  "OrganizationManagedRuleMetadata" OrganizationConfigRule
-> OrganizationConfigRule -> OrganizationConfigRule
set PropertyType
  "OrganizationManagedRuleMetadata" OrganizationConfigRule
newValue OrganizationConfigRule {Maybe (ValueList Text)
Maybe OrganizationCustomPolicyRuleMetadataProperty
Maybe OrganizationCustomRuleMetadataProperty
Maybe OrganizationManagedRuleMetadataProperty
()
Value Text
haddock_workaround_ :: OrganizationConfigRule -> ()
excludedAccounts :: OrganizationConfigRule -> Maybe (ValueList Text)
organizationConfigRuleName :: OrganizationConfigRule -> Value Text
organizationCustomPolicyRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: OrganizationConfigRule
-> Maybe OrganizationManagedRuleMetadataProperty
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
..}
    = OrganizationConfigRule
        {organizationManagedRuleMetadata :: Maybe OrganizationManagedRuleMetadataProperty
organizationManagedRuleMetadata = OrganizationManagedRuleMetadataProperty
-> Maybe OrganizationManagedRuleMetadataProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "OrganizationManagedRuleMetadata" OrganizationConfigRule
OrganizationManagedRuleMetadataProperty
newValue, Maybe (ValueList Text)
Maybe OrganizationCustomPolicyRuleMetadataProperty
Maybe OrganizationCustomRuleMetadataProperty
()
Value Text
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
haddock_workaround_ :: ()
excludedAccounts :: Maybe (ValueList Text)
organizationConfigRuleName :: Value Text
organizationCustomPolicyRuleMetadata :: Maybe OrganizationCustomPolicyRuleMetadataProperty
organizationCustomRuleMetadata :: Maybe OrganizationCustomRuleMetadataProperty
..}