Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Policy = Policy' {}
- newPolicy :: Policy
- policy_content :: Lens' Policy (Maybe Text)
- policy_policySummary :: Lens' Policy (Maybe PolicySummary)
Documentation
Contains rules to be applied to the affected accounts. Policies can be attached directly to accounts, or to roots and OUs to affect all accounts in those hierarchies.
See: newPolicy
smart constructor.
Policy' | |
|
Instances
Eq Policy Source # | |
Read Policy Source # | |
Show Policy Source # | |
Generic Policy Source # | |
NFData Policy Source # | |
Defined in Amazonka.Organizations.Types.Policy | |
Hashable Policy Source # | |
Defined in Amazonka.Organizations.Types.Policy | |
FromJSON Policy Source # | |
type Rep Policy Source # | |
Defined in Amazonka.Organizations.Types.Policy type Rep Policy = D1 ('MetaData "Policy" "Amazonka.Organizations.Types.Policy" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "Policy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "policySummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PolicySummary)))) |
Create a value of Policy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:content:Policy'
, policy_content
- The text content of the policy.
$sel:policySummary:Policy'
, policy_policySummary
- A structure that contains additional details about the policy.
policy_policySummary :: Lens' Policy (Maybe PolicySummary) Source #
A structure that contains additional details about the policy.