amazonka-iam-1.6.1: Amazon Identity and Access Management SDK.

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

Network.AWS.IAM.SetDefaultPolicyVersion

Contents

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 the ListEntitiesForPolicy API.

For information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide .

Synopsis

Creating a Request

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:

data SetDefaultPolicyVersion #

See: setDefaultPolicyVersion smart constructor.

Instances
Eq SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Data SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetDefaultPolicyVersion -> c SetDefaultPolicyVersion #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetDefaultPolicyVersion #

toConstr :: SetDefaultPolicyVersion -> Constr #

dataTypeOf :: SetDefaultPolicyVersion -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SetDefaultPolicyVersion) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetDefaultPolicyVersion) #

gmapT :: (forall b. Data b => b -> b) -> SetDefaultPolicyVersion -> SetDefaultPolicyVersion #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetDefaultPolicyVersion -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetDefaultPolicyVersion -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetDefaultPolicyVersion -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetDefaultPolicyVersion -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetDefaultPolicyVersion -> m SetDefaultPolicyVersion #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetDefaultPolicyVersion -> m SetDefaultPolicyVersion #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetDefaultPolicyVersion -> m SetDefaultPolicyVersion #

Read SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Show SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Generic SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Associated Types

type Rep SetDefaultPolicyVersion :: Type -> Type #

Hashable SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

AWSRequest SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Associated Types

type Rs SetDefaultPolicyVersion :: Type #

ToHeaders SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

ToPath SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

ToQuery SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

NFData SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Methods

rnf :: SetDefaultPolicyVersion -> () #

type Rep SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

type Rep SetDefaultPolicyVersion = D1 (MetaData "SetDefaultPolicyVersion" "Network.AWS.IAM.SetDefaultPolicyVersion" "amazonka-iam-1.6.1-GVjkJ4xTMMc7GNa2rMCkPz" False) (C1 (MetaCons "SetDefaultPolicyVersion'" PrefixI True) (S1 (MetaSel (Just "_sdpvPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_sdpvVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs SetDefaultPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Request Lenses

sdpvPolicyARN :: Lens' SetDefaultPolicyVersion Text #

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) and AWS Service Namespaces in the AWS General Reference .

sdpvVersionId :: Lens' SetDefaultPolicyVersion Text #

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

setDefaultPolicyVersionResponse :: SetDefaultPolicyVersionResponse #

Creates a value of SetDefaultPolicyVersionResponse with the minimum fields required to make a request.

data SetDefaultPolicyVersionResponse #

See: setDefaultPolicyVersionResponse smart constructor.

Instances
Eq SetDefaultPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Data SetDefaultPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetDefaultPolicyVersionResponse -> c SetDefaultPolicyVersionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetDefaultPolicyVersionResponse #

toConstr :: SetDefaultPolicyVersionResponse -> Constr #

dataTypeOf :: SetDefaultPolicyVersionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SetDefaultPolicyVersionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetDefaultPolicyVersionResponse) #

gmapT :: (forall b. Data b => b -> b) -> SetDefaultPolicyVersionResponse -> SetDefaultPolicyVersionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetDefaultPolicyVersionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetDefaultPolicyVersionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetDefaultPolicyVersionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetDefaultPolicyVersionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetDefaultPolicyVersionResponse -> m SetDefaultPolicyVersionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetDefaultPolicyVersionResponse -> m SetDefaultPolicyVersionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetDefaultPolicyVersionResponse -> m SetDefaultPolicyVersionResponse #

Read SetDefaultPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Show SetDefaultPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Generic SetDefaultPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

Associated Types

type Rep SetDefaultPolicyVersionResponse :: Type -> Type #

NFData SetDefaultPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

type Rep SetDefaultPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.SetDefaultPolicyVersion

type Rep SetDefaultPolicyVersionResponse = D1 (MetaData "SetDefaultPolicyVersionResponse" "Network.AWS.IAM.SetDefaultPolicyVersion" "amazonka-iam-1.6.1-GVjkJ4xTMMc7GNa2rMCkPz" False) (C1 (MetaCons "SetDefaultPolicyVersionResponse'" PrefixI False) (U1 :: Type -> Type))