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

Copyright(c) 2013-2017 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.GetGroup

Contents

Description

Returns a list of IAM users that are in the specified IAM group. You can paginate the results using the MaxItems and Marker parameters.

This operation returns paginated results.

Synopsis

Creating a Request

getGroup Source #

Arguments

:: Text

ggGroupName

-> GetGroup 

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

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

  • ggMarker - Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
  • ggMaxItems - (Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true . If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
  • ggGroupName - The name of the group. 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: =,.@-

data GetGroup Source #

See: getGroup smart constructor.

Instances

Eq GetGroup Source # 
Data GetGroup Source # 

Methods

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

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

toConstr :: GetGroup -> Constr #

dataTypeOf :: GetGroup -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetGroup Source # 
Show GetGroup Source # 
Generic GetGroup Source # 

Associated Types

type Rep GetGroup :: * -> * #

Methods

from :: GetGroup -> Rep GetGroup x #

to :: Rep GetGroup x -> GetGroup #

Hashable GetGroup Source # 

Methods

hashWithSalt :: Int -> GetGroup -> Int #

hash :: GetGroup -> Int #

NFData GetGroup Source # 

Methods

rnf :: GetGroup -> () #

AWSPager GetGroup Source # 
AWSRequest GetGroup Source # 
ToQuery GetGroup Source # 
ToPath GetGroup Source # 
ToHeaders GetGroup Source # 

Methods

toHeaders :: GetGroup -> [Header] #

type Rep GetGroup Source # 
type Rep GetGroup = D1 (MetaData "GetGroup" "Network.AWS.IAM.GetGroup" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" False) (C1 (MetaCons "GetGroup'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ggMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ggMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_ggGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs GetGroup Source # 

Request Lenses

ggMarker :: Lens' GetGroup (Maybe Text) Source #

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

ggMaxItems :: Lens' GetGroup (Maybe Natural) Source #

(Optional) Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true . If you do not include this parameter, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

ggGroupName :: Lens' GetGroup Text Source #

The name of the group. 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: =,.@-

Destructuring the Response

getGroupResponse Source #

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

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

  • ggrsMarker - When IsTruncated is true , this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
  • ggrsIsTruncated - A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.
  • ggrsResponseStatus - -- | The response status code.
  • ggrsGroup - A structure that contains details about the group.
  • ggrsUsers - A list of users in the group.

data GetGroupResponse Source #

Contains the response to a successful GetGroup request.

See: getGroupResponse smart constructor.

Instances

Eq GetGroupResponse Source # 
Data GetGroupResponse Source # 

Methods

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

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

toConstr :: GetGroupResponse -> Constr #

dataTypeOf :: GetGroupResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetGroupResponse Source # 
Show GetGroupResponse Source # 
Generic GetGroupResponse Source # 
NFData GetGroupResponse Source # 

Methods

rnf :: GetGroupResponse -> () #

type Rep GetGroupResponse Source # 
type Rep GetGroupResponse = D1 (MetaData "GetGroupResponse" "Network.AWS.IAM.GetGroup" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" False) (C1 (MetaCons "GetGroupResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ggrsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ggrsIsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_ggrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) ((:*:) (S1 (MetaSel (Just Symbol "_ggrsGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Group)) (S1 (MetaSel (Just Symbol "_ggrsUsers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [User]))))))

Response Lenses

ggrsMarker :: Lens' GetGroupResponse (Maybe Text) Source #

When IsTruncated is true , this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

ggrsIsTruncated :: Lens' GetGroupResponse (Maybe Bool) Source #

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

ggrsResponseStatus :: Lens' GetGroupResponse Int Source #

  • - | The response status code.

ggrsGroup :: Lens' GetGroupResponse Group Source #

A structure that contains details about the group.

ggrsUsers :: Lens' GetGroupResponse [User] Source #

A list of users in the group.