amazonka-iam-2.0: Amazon Identity and Access Management SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IAM.GetGroup

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

data GetGroup Source #

See: newGetGroup smart constructor.

Constructors

GetGroup' 

Fields

  • marker :: Maybe Text

    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.

  • maxItems :: Maybe Natural

    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, the number of items 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.

  • groupName :: Text

    The name of the group.

    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
ToHeaders GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

Methods

toHeaders :: GetGroup -> [Header] #

ToPath GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

ToQuery GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

AWSPager GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

AWSRequest GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

Associated Types

type AWSResponse GetGroup #

Generic GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

Associated Types

type Rep GetGroup :: Type -> Type #

Methods

from :: GetGroup -> Rep GetGroup x #

to :: Rep GetGroup x -> GetGroup #

Read GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

Show GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

NFData GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

Methods

rnf :: GetGroup -> () #

Eq GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

Hashable GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

Methods

hashWithSalt :: Int -> GetGroup -> Int #

hash :: GetGroup -> Int #

type AWSResponse GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

type Rep GetGroup Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

type Rep GetGroup = D1 ('MetaData "GetGroup" "Amazonka.IAM.GetGroup" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "GetGroup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "groupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newGetGroup Source #

Arguments

:: Text

GetGroup

-> GetGroup 

Create a value of GetGroup 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:

GetGroup, getGroup_marker - 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.

$sel:maxItems:GetGroup', getGroup_maxItems - 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, the number of items 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.

GetGroup, getGroup_groupName - The name of the group.

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

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

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

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, the number of items 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.

getGroup_groupName :: Lens' GetGroup Text Source #

The name of the group.

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 GetGroupResponse Source #

Contains the response to a successful GetGroup request.

See: newGetGroupResponse smart constructor.

Constructors

GetGroupResponse' 

Fields

  • isTruncated :: Maybe Bool

    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 your results.

  • marker :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

  • group' :: Group

    A structure that contains details about the group.

  • users :: [User]

    A list of users in the group.

Instances

Instances details
Generic GetGroupResponse Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

Associated Types

type Rep GetGroupResponse :: Type -> Type #

Read GetGroupResponse Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

Show GetGroupResponse Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

NFData GetGroupResponse Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

Methods

rnf :: GetGroupResponse -> () #

Eq GetGroupResponse Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

type Rep GetGroupResponse Source # 
Instance details

Defined in Amazonka.IAM.GetGroup

type Rep GetGroupResponse = D1 ('MetaData "GetGroupResponse" "Amazonka.IAM.GetGroup" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "GetGroupResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "isTruncated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "group'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Group) :*: S1 ('MetaSel ('Just "users") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [User])))))

newGetGroupResponse Source #

Create a value of GetGroupResponse 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:

GetGroupResponse, getGroupResponse_isTruncated - 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 your results.

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

$sel:httpStatus:GetGroupResponse', getGroupResponse_httpStatus - The response's http status code.

$sel:group':GetGroupResponse', getGroupResponse_group - A structure that contains details about the group.

$sel:users:GetGroupResponse', getGroupResponse_users - A list of users in the group.

Response Lenses

getGroupResponse_isTruncated :: 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 your results.

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

getGroupResponse_httpStatus :: Lens' GetGroupResponse Int Source #

The response's http status code.

getGroupResponse_group :: Lens' GetGroupResponse Group Source #

A structure that contains details about the group.

getGroupResponse_users :: Lens' GetGroupResponse [User] Source #

A list of users in the group.