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 |
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 ListPrincipalPolicies action.
Requires permission to access the SetDefaultPolicyVersion action.
Synopsis
- data SetDefaultPolicyVersion = SetDefaultPolicyVersion' {}
- newSetDefaultPolicyVersion :: Text -> Text -> SetDefaultPolicyVersion
- setDefaultPolicyVersion_policyName :: Lens' SetDefaultPolicyVersion Text
- setDefaultPolicyVersion_policyVersionId :: Lens' SetDefaultPolicyVersion Text
- data SetDefaultPolicyVersionResponse = SetDefaultPolicyVersionResponse' {
- newSetDefaultPolicyVersionResponse :: SetDefaultPolicyVersionResponse
Creating a Request
data SetDefaultPolicyVersion Source #
The input for the SetDefaultPolicyVersion operation.
See: newSetDefaultPolicyVersion
smart constructor.
SetDefaultPolicyVersion' | |
|
Instances
newSetDefaultPolicyVersion Source #
:: Text | |
-> Text | |
-> SetDefaultPolicyVersion |
Create a value of SetDefaultPolicyVersion
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:SetDefaultPolicyVersion'
, setDefaultPolicyVersion_policyName
- The policy name.
$sel:policyVersionId:SetDefaultPolicyVersion'
, setDefaultPolicyVersion_policyVersionId
- The policy version ID.
Request Lenses
setDefaultPolicyVersion_policyName :: Lens' SetDefaultPolicyVersion Text Source #
The policy name.
setDefaultPolicyVersion_policyVersionId :: Lens' SetDefaultPolicyVersion Text Source #
The policy version ID.
Destructuring the Response
data SetDefaultPolicyVersionResponse Source #
See: newSetDefaultPolicyVersionResponse
smart constructor.
Instances
newSetDefaultPolicyVersionResponse :: SetDefaultPolicyVersionResponse Source #
Create a value of SetDefaultPolicyVersionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.