| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.IoT.AttachPolicy
Description
Attaches a policy to the specified target.
Synopsis
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> AttachPolicy |
Creates a value of AttachPolicy with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
apPolicyName- The name of the policy to attach.apTarget- The identity to which the policy is attached.
data AttachPolicy Source #
See: attachPolicy smart constructor.
Instances
Request Lenses
apPolicyName :: Lens' AttachPolicy Text Source #
The name of the policy to attach.
Destructuring the Response
attachPolicyResponse :: AttachPolicyResponse Source #
Creates a value of AttachPolicyResponse with the minimum fields required to make a request.
data AttachPolicyResponse Source #
See: attachPolicyResponse smart constructor.