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.SetDefaultPolicyVersion
Description
Sets the specified version of the specified policy as the policy's default (operative) version. This action affects all certificates to which the policy is attached. To list the principals the policy is attached to, use the ListPrincipalPolicy API.
- setDefaultPolicyVersion :: Text -> Text -> SetDefaultPolicyVersion
- data SetDefaultPolicyVersion
- sdpvPolicyName :: Lens' SetDefaultPolicyVersion Text
- sdpvPolicyVersionId :: Lens' SetDefaultPolicyVersion Text
- setDefaultPolicyVersionResponse :: SetDefaultPolicyVersionResponse
- data SetDefaultPolicyVersionResponse
Creating a Request
Arguments
:: Text | |
-> Text | |
-> SetDefaultPolicyVersion |
Creates a value of SetDefaultPolicyVersion
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sdpvPolicyName
- The policy name.sdpvPolicyVersionId
- The policy version ID.
data SetDefaultPolicyVersion #
The input for the SetDefaultPolicyVersion operation.
See: setDefaultPolicyVersion
smart constructor.
Instances
Request Lenses
sdpvPolicyName :: Lens' SetDefaultPolicyVersion Text #
The policy name.
sdpvPolicyVersionId :: Lens' SetDefaultPolicyVersion Text #
The policy version ID.
Destructuring the Response
setDefaultPolicyVersionResponse :: SetDefaultPolicyVersionResponse #
Creates a value of SetDefaultPolicyVersionResponse
with the minimum fields required to make a request.
data SetDefaultPolicyVersionResponse #
See: setDefaultPolicyVersionResponse
smart constructor.