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 |
Documentation
Describes an IoT policy.
See: newPolicy
smart constructor.
Instances
Eq Policy Source # | |
Read Policy Source # | |
Show Policy Source # | |
Generic Policy Source # | |
NFData Policy Source # | |
Defined in Amazonka.IoT.Types.Policy | |
Hashable Policy Source # | |
Defined in Amazonka.IoT.Types.Policy | |
FromJSON Policy Source # | |
type Rep Policy Source # | |
Defined in Amazonka.IoT.Types.Policy type Rep Policy = D1 ('MetaData "Policy" "Amazonka.IoT.Types.Policy" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "Policy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "policyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) |
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:policyName:Policy'
, policy_policyName
- The policy name.
$sel:policyArn:Policy'
, policy_policyArn
- The policy ARN.