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

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

Network.AWS.IAM.UpdateGroup

Contents

Description

Updates the name and/or the path of the specified IAM group.

You should understand the implications of changing a group's path or name. For more information, see Renaming Users and Groups in the IAM User Guide.

To change an IAM group name the requester must have appropriate permissions on both the source object and the target object. For example, to change "Managers" to "MGRs", the entity making the request must have permission on both "Managers" and "MGRs", or must have permission on all (*). For more information about permissions, see Permissions and Policies.

Synopsis

Creating a Request

updateGroup Source #

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

Use one of the following lenses to modify other fields as desired:

data UpdateGroup Source #

See: updateGroup smart constructor.

Instances

Eq UpdateGroup Source # 
Data UpdateGroup Source # 

Methods

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

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

toConstr :: UpdateGroup -> Constr #

dataTypeOf :: UpdateGroup -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateGroup Source # 
Show UpdateGroup Source # 
Generic UpdateGroup Source # 

Associated Types

type Rep UpdateGroup :: * -> * #

Hashable UpdateGroup Source # 
NFData UpdateGroup Source # 

Methods

rnf :: UpdateGroup -> () #

AWSRequest UpdateGroup Source # 
ToPath UpdateGroup Source # 
ToHeaders UpdateGroup Source # 

Methods

toHeaders :: UpdateGroup -> [Header] #

ToQuery UpdateGroup Source # 
type Rep UpdateGroup Source # 
type Rep UpdateGroup = D1 (MetaData "UpdateGroup" "Network.AWS.IAM.UpdateGroup" "amazonka-iam-1.4.4-BicPZt3TaHh2CoAkQqkWBu" False) (C1 (MetaCons "UpdateGroup'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ugNewGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ugNewPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ugGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs UpdateGroup Source # 

Request Lenses

ugNewGroupName :: Lens' UpdateGroup (Maybe Text) Source #

New name for the IAM group. Only include this if changing the group's name.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.'-

ugNewPath :: Lens' UpdateGroup (Maybe Text) Source #

New path for the IAM group. Only include this if changing the group's path.

The regex pattern for this parameter is a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes, containing any ASCII character from the ! (\u0021) thru the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercased letters.

ugGroupName :: Lens' UpdateGroup Text Source #

Name of the IAM group to update. If you're changing the name of the group, this is the original name.

The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.'-

Destructuring the Response

updateGroupResponse :: UpdateGroupResponse Source #

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

data UpdateGroupResponse Source #

See: updateGroupResponse smart constructor.

Instances

Eq UpdateGroupResponse Source # 
Data UpdateGroupResponse Source # 

Methods

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

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

toConstr :: UpdateGroupResponse -> Constr #

dataTypeOf :: UpdateGroupResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateGroupResponse Source # 
Show UpdateGroupResponse Source # 
Generic UpdateGroupResponse Source # 
NFData UpdateGroupResponse Source # 

Methods

rnf :: UpdateGroupResponse -> () #

type Rep UpdateGroupResponse Source # 
type Rep UpdateGroupResponse = D1 (MetaData "UpdateGroupResponse" "Network.AWS.IAM.UpdateGroup" "amazonka-iam-1.4.4-BicPZt3TaHh2CoAkQqkWBu" False) (C1 (MetaCons "UpdateGroupResponse'" PrefixI False) U1)