| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.IoT.AttachPrincipalPolicy
Description
Attaches the specified policy to the specified principal (certificate or other credential).
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> AttachPrincipalPolicy |
Creates a value of AttachPrincipalPolicy with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AttachPrincipalPolicy Source
The input for the AttachPrincipalPolicy operation.
See: attachPrincipalPolicy smart constructor.
Instances
Request Lenses
appPolicyName :: Lens' AttachPrincipalPolicy Text Source
The policy name.
appPrincipal :: Lens' AttachPrincipalPolicy Text Source
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
Destructuring the Response
attachPrincipalPolicyResponse :: AttachPrincipalPolicyResponse Source
Creates a value of AttachPrincipalPolicyResponse with the minimum fields required to make a request.
data AttachPrincipalPolicyResponse Source
See: attachPrincipalPolicyResponse smart constructor.