amazonka-iam-1.6.0: 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.CreateGroup

Contents

Description

Creates a new group.

For information about the number of groups you can create, see Limitations on IAM Entities in the IAM User Guide .

Synopsis

Creating a Request

createGroup #

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

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

  • cgPath - The path to the group. For more information about paths, see IAM Identifiers in the IAM User Guide . This parameter is optional. If it is not included, it defaults to a slash (). This parameter allows (per its <http:wikipedia.orgwikiregex 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.
  • cgGroupName - The name of the group to create. Do not include the path in this value. This parameter allows (per 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: _+=,.@-. The group name must be unique within the account. Group names are not distinguished by case. For example, you cannot create groups named both ADMINS and "admins".

data CreateGroup #

See: createGroup smart constructor.

Instances

Eq CreateGroup # 
Data CreateGroup # 

Methods

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

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

toConstr :: CreateGroup -> Constr #

dataTypeOf :: CreateGroup -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateGroup # 
Show CreateGroup # 
Generic CreateGroup # 

Associated Types

type Rep CreateGroup :: * -> * #

Hashable CreateGroup # 
NFData CreateGroup # 

Methods

rnf :: CreateGroup -> () #

AWSRequest CreateGroup # 
ToHeaders CreateGroup # 

Methods

toHeaders :: CreateGroup -> [Header] #

ToPath CreateGroup # 
ToQuery CreateGroup # 
type Rep CreateGroup # 
type Rep CreateGroup = D1 * (MetaData "CreateGroup" "Network.AWS.IAM.CreateGroup" "amazonka-iam-1.6.0-1EzdHSXYgBWIEzsCXYmity" False) (C1 * (MetaCons "CreateGroup'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cgPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cgGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs CreateGroup # 

Request Lenses

cgPath :: Lens' CreateGroup (Maybe Text) #

The path to the group. For more information about paths, see IAM Identifiers in the IAM User Guide . This parameter is optional. If it is not included, it defaults to a slash (). This parameter allows (per its <http:wikipedia.orgwikiregex 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.

cgGroupName :: Lens' CreateGroup Text #

The name of the group to create. Do not include the path in this value. This parameter allows (per 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: _+=,.@-. The group name must be unique within the account. Group names are not distinguished by case. For example, you cannot create groups named both ADMINS and "admins".

Destructuring the Response

createGroupResponse #

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

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

data CreateGroupResponse #

Contains the response to a successful CreateGroup request.

See: createGroupResponse smart constructor.

Instances

Eq CreateGroupResponse # 
Data CreateGroupResponse # 

Methods

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

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

toConstr :: CreateGroupResponse -> Constr #

dataTypeOf :: CreateGroupResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateGroupResponse # 
Show CreateGroupResponse # 
Generic CreateGroupResponse # 
NFData CreateGroupResponse # 

Methods

rnf :: CreateGroupResponse -> () #

type Rep CreateGroupResponse # 
type Rep CreateGroupResponse = D1 * (MetaData "CreateGroupResponse" "Network.AWS.IAM.CreateGroup" "amazonka-iam-1.6.0-1EzdHSXYgBWIEzsCXYmity" False) (C1 * (MetaCons "CreateGroupResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_cgrsGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Group))))

Response Lenses

cgrsResponseStatus :: Lens' CreateGroupResponse Int #

  • - | The response status code.

cgrsGroup :: Lens' CreateGroupResponse Group #

A structure containing details about the new group.