libZSservicesZSamazonka-iamZSamazonka-iam
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data SetDefaultPolicyVersion Source #

See: newSetDefaultPolicyVersion smart constructor.

Constructors

SetDefaultPolicyVersion' 

Fields

Instances

Instances details
Eq SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

Read SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

Show SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

Generic SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

Associated Types

type Rep SetDefaultPolicyVersion :: Type -> Type #

NFData SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

Methods

rnf :: SetDefaultPolicyVersion -> () #

Hashable SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

AWSRequest SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

ToHeaders SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

ToPath SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

ToQuery SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

type Rep SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

type Rep SetDefaultPolicyVersion = D1 ('MetaData "SetDefaultPolicyVersion" "Amazonka.IAM.SetDefaultPolicyVersion" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "SetDefaultPolicyVersion'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "versionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse SetDefaultPolicyVersion Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

newSetDefaultPolicyVersion Source #

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.

Instances

Instances details
Eq SetDefaultPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

Read SetDefaultPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

Show SetDefaultPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

Generic SetDefaultPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

Associated Types

type Rep SetDefaultPolicyVersionResponse :: Type -> Type #

NFData SetDefaultPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

type Rep SetDefaultPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.IAM.SetDefaultPolicyVersion

type Rep SetDefaultPolicyVersionResponse = D1 ('MetaData "SetDefaultPolicyVersionResponse" "Amazonka.IAM.SetDefaultPolicyVersion" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "SetDefaultPolicyVersionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newSetDefaultPolicyVersionResponse :: SetDefaultPolicyVersionResponse Source #

Create a value of SetDefaultPolicyVersionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.