libZSservicesZSamazonka-ramZSamazonka-ram
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.RAM.ListPermissions

Description

Lists the RAM permissions.

Synopsis

Creating a Request

data ListPermissions Source #

See: newListPermissions smart constructor.

Constructors

ListPermissions' 

Fields

  • resourceType :: Maybe Text

    Specifies the resource type for which to list permissions. For example, to list only permissions that apply to EC2 subnets, specify ec2:Subnet.

  • nextToken :: Maybe Text

    The token for the next page of results.

  • maxResults :: Maybe Natural

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

Instances

Instances details
Eq ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

Read ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

Show ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

Generic ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

Associated Types

type Rep ListPermissions :: Type -> Type #

NFData ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

Methods

rnf :: ListPermissions -> () #

Hashable ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

ToJSON ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

AWSRequest ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

Associated Types

type AWSResponse ListPermissions #

ToHeaders ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

ToPath ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

ToQuery ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

type Rep ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

type Rep ListPermissions = D1 ('MetaData "ListPermissions" "Amazonka.RAM.ListPermissions" "libZSservicesZSamazonka-ramZSamazonka-ram" 'False) (C1 ('MetaCons "ListPermissions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse ListPermissions Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

newListPermissions :: ListPermissions Source #

Create a value of ListPermissions 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:resourceType:ListPermissions', listPermissions_resourceType - Specifies the resource type for which to list permissions. For example, to list only permissions that apply to EC2 subnets, specify ec2:Subnet.

$sel:nextToken:ListPermissions', listPermissions_nextToken - The token for the next page of results.

$sel:maxResults:ListPermissions', listPermissions_maxResults - The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

Request Lenses

listPermissions_resourceType :: Lens' ListPermissions (Maybe Text) Source #

Specifies the resource type for which to list permissions. For example, to list only permissions that apply to EC2 subnets, specify ec2:Subnet.

listPermissions_nextToken :: Lens' ListPermissions (Maybe Text) Source #

The token for the next page of results.

listPermissions_maxResults :: Lens' ListPermissions (Maybe Natural) Source #

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

Destructuring the Response

data ListPermissionsResponse Source #

See: newListPermissionsResponse smart constructor.

Constructors

ListPermissionsResponse' 

Fields

Instances

Instances details
Eq ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

Read ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

Show ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

Generic ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

Associated Types

type Rep ListPermissionsResponse :: Type -> Type #

NFData ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

Methods

rnf :: ListPermissionsResponse -> () #

type Rep ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.RAM.ListPermissions

type Rep ListPermissionsResponse = D1 ('MetaData "ListPermissionsResponse" "Amazonka.RAM.ListPermissions" "libZSservicesZSamazonka-ramZSamazonka-ram" 'False) (C1 ('MetaCons "ListPermissionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ResourceSharePermissionSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListPermissionsResponse Source #

Create a value of ListPermissionsResponse 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:nextToken:ListPermissions', listPermissionsResponse_nextToken - The token to use to retrieve the next page of results. This value is null when there are no more results to return.

$sel:permissions:ListPermissionsResponse', listPermissionsResponse_permissions - Information about the permissions.

$sel:httpStatus:ListPermissionsResponse', listPermissionsResponse_httpStatus - The response's http status code.

Response Lenses

listPermissionsResponse_nextToken :: Lens' ListPermissionsResponse (Maybe Text) Source #

The token to use to retrieve the next page of results. This value is null when there are no more results to return.