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.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 # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Data GetGroup Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

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 # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Show GetGroup Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Generic GetGroup Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Associated Types

type Rep GetGroup :: Type -> Type #

Methods

from :: GetGroup -> Rep GetGroup x #

to :: Rep GetGroup x -> GetGroup #

Hashable GetGroup Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Methods

hashWithSalt :: Int -> GetGroup -> Int #

hash :: GetGroup -> Int #

AWSPager GetGroup Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

AWSRequest GetGroup Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Associated Types

type Rs GetGroup :: Type #

ToHeaders GetGroup Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Methods

toHeaders :: GetGroup -> [Header] #

ToPath GetGroup Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

ToQuery GetGroup Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

NFData GetGroup Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Methods

rnf :: GetGroup -> () #

type Rep GetGroup Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

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

Defined in Network.AWS.IAM.GetGroup

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 # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Data GetGroupResponse Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

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 # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Show GetGroupResponse Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Generic GetGroupResponse Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Associated Types

type Rep GetGroupResponse :: Type -> Type #

NFData GetGroupResponse Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

Methods

rnf :: GetGroupResponse -> () #

type Rep GetGroupResponse Source # 
Instance details

Defined in Network.AWS.IAM.GetGroup

type Rep GetGroupResponse = D1 (MetaData "GetGroupResponse" "Network.AWS.IAM.GetGroup" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "GetGroupResponse'" PrefixI True) ((S1 (MetaSel (Just "_ggrsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ggrsIsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_ggrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "_ggrsGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Group) :*: S1 (MetaSel (Just "_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.