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.UpdateGroup

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.

The person making the request (the principal), must have permission to change the role group with the old name and the new name. For example, to change the group named Managers to MGRs, the principal must have a policy that allows them to update both groups. If the principal has permission to update the Managers group, but not the MGRs group, then the update fails. For more information about permissions, see Access management.

Synopsis

Creating a Request

data UpdateGroup Source #

See: newUpdateGroup smart constructor.

Constructors

UpdateGroup' 

Fields

  • newGroupName' :: Maybe Text

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

    IAM user, group, role, and policy names must be unique within the account. Names are not distinguished by case. For example, you cannot create resources named both "MyResource" and "myresource".

  • newPath' :: Maybe Text

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

    This parameter allows (through its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercased letters.

  • groupName :: Text

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

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Instances

Instances details
Eq UpdateGroup Source # 
Instance details

Defined in Amazonka.IAM.UpdateGroup

Read UpdateGroup Source # 
Instance details

Defined in Amazonka.IAM.UpdateGroup

Show UpdateGroup Source # 
Instance details

Defined in Amazonka.IAM.UpdateGroup

Generic UpdateGroup Source # 
Instance details

Defined in Amazonka.IAM.UpdateGroup

Associated Types

type Rep UpdateGroup :: Type -> Type #

NFData UpdateGroup Source # 
Instance details

Defined in Amazonka.IAM.UpdateGroup

Methods

rnf :: UpdateGroup -> () #

Hashable UpdateGroup Source # 
Instance details

Defined in Amazonka.IAM.UpdateGroup

AWSRequest UpdateGroup Source # 
Instance details

Defined in Amazonka.IAM.UpdateGroup

Associated Types

type AWSResponse UpdateGroup #

ToHeaders UpdateGroup Source # 
Instance details

Defined in Amazonka.IAM.UpdateGroup

Methods

toHeaders :: UpdateGroup -> [Header] #

ToPath UpdateGroup Source # 
Instance details

Defined in Amazonka.IAM.UpdateGroup

ToQuery UpdateGroup Source # 
Instance details

Defined in Amazonka.IAM.UpdateGroup

type Rep UpdateGroup Source # 
Instance details

Defined in Amazonka.IAM.UpdateGroup

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

Defined in Amazonka.IAM.UpdateGroup

newUpdateGroup Source #

Create a value of UpdateGroup 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:newGroupName':UpdateGroup', updateGroup_newGroupName - New name for the IAM group. Only include this if changing the group's name.

IAM user, group, role, and policy names must be unique within the account. Names are not distinguished by case. For example, you cannot create resources named both "MyResource" and "myresource".

$sel:newPath':UpdateGroup', updateGroup_newPath - New path for the IAM group. Only include this if changing the group's path.

This parameter allows (through its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercased letters.

$sel:groupName:UpdateGroup', updateGroup_groupName - Name of the IAM group to update. If you're changing the name of the group, this is the original name.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Request Lenses

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

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

IAM user, group, role, and policy names must be unique within the account. Names are not distinguished by case. For example, you cannot create resources named both "MyResource" and "myresource".

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

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

This parameter allows (through its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercased letters.

updateGroup_groupName :: 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.

This parameter allows (through its regex pattern) 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

data UpdateGroupResponse Source #

See: newUpdateGroupResponse smart constructor.

Constructors

UpdateGroupResponse' 

newUpdateGroupResponse :: UpdateGroupResponse Source #

Create a value of UpdateGroupResponse with all optional fields omitted.

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