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 |
Amazonka.IAM.SetDefaultPolicyVersion
Description
Sets the specified version of the specified policy as the policy's default (operative) version.
This operation affects all users, groups, and roles that the policy is attached to. To list the users, groups, and roles that the policy is attached to, use ListEntitiesForPolicy.
For information about managed policies, see Managed policies and inline policies in the IAM User Guide.
Synopsis
- data SetDefaultPolicyVersion = SetDefaultPolicyVersion' {}
- newSetDefaultPolicyVersion :: Text -> Text -> SetDefaultPolicyVersion
- setDefaultPolicyVersion_policyArn :: Lens' SetDefaultPolicyVersion Text
- setDefaultPolicyVersion_versionId :: Lens' SetDefaultPolicyVersion Text
- data SetDefaultPolicyVersionResponse = SetDefaultPolicyVersionResponse' {
- newSetDefaultPolicyVersionResponse :: SetDefaultPolicyVersionResponse
Creating a Request
data SetDefaultPolicyVersion Source #
See: newSetDefaultPolicyVersion
smart constructor.
Constructors
SetDefaultPolicyVersion' | |
Fields
|
Instances
newSetDefaultPolicyVersion Source #
Arguments
:: 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:policyArn:SetDefaultPolicyVersion'
, setDefaultPolicyVersion_policyArn
- The Amazon Resource Name (ARN) of the IAM policy whose default version
you want to set.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
$sel:versionId:SetDefaultPolicyVersion'
, setDefaultPolicyVersion_versionId
- The version of the policy to set as the default (operative) version.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
Request Lenses
setDefaultPolicyVersion_policyArn :: Lens' SetDefaultPolicyVersion Text Source #
The Amazon Resource Name (ARN) of the IAM policy whose default version you want to set.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
setDefaultPolicyVersion_versionId :: Lens' SetDefaultPolicyVersion Text Source #
The version of the policy to set as the default (operative) version.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
Destructuring the Response
data SetDefaultPolicyVersionResponse Source #
See: newSetDefaultPolicyVersionResponse
smart constructor.
Constructors
SetDefaultPolicyVersionResponse' | |
Instances
Eq SetDefaultPolicyVersionResponse Source # | |
Defined in Amazonka.IAM.SetDefaultPolicyVersion | |
Read SetDefaultPolicyVersionResponse Source # | |
Show SetDefaultPolicyVersionResponse Source # | |
Defined in Amazonka.IAM.SetDefaultPolicyVersion Methods showsPrec :: Int -> SetDefaultPolicyVersionResponse -> ShowS # | |
Generic SetDefaultPolicyVersionResponse Source # | |
Defined in Amazonka.IAM.SetDefaultPolicyVersion Associated Types type Rep SetDefaultPolicyVersionResponse :: Type -> Type # | |
NFData SetDefaultPolicyVersionResponse Source # | |
Defined in Amazonka.IAM.SetDefaultPolicyVersion Methods rnf :: SetDefaultPolicyVersionResponse -> () # | |
type Rep SetDefaultPolicyVersionResponse Source # | |
Defined in Amazonka.IAM.SetDefaultPolicyVersion |
newSetDefaultPolicyVersionResponse :: SetDefaultPolicyVersionResponse Source #
Create a value of SetDefaultPolicyVersionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.