amazonka-inspector2-2.0: Amazon Inspector2 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.Inspector2.ListAccountPermissions

Description

Lists the permissions an account has to configure Amazon Inspector.

This operation returns paginated results.

Synopsis

Creating a Request

data ListAccountPermissions Source #

See: newListAccountPermissions smart constructor.

Constructors

ListAccountPermissions' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to return in the response.

  • nextToken :: Maybe Text

    A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

  • service :: Maybe Service

    The service scan type to check permissions for.

Instances

Instances details
ToJSON ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

ToHeaders ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

ToPath ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

ToQuery ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

AWSPager ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

AWSRequest ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

Associated Types

type AWSResponse ListAccountPermissions #

Generic ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

Associated Types

type Rep ListAccountPermissions :: Type -> Type #

Read ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

Show ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

NFData ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

Methods

rnf :: ListAccountPermissions -> () #

Eq ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

Hashable ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

type AWSResponse ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

type Rep ListAccountPermissions Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

type Rep ListAccountPermissions = D1 ('MetaData "ListAccountPermissions" "Amazonka.Inspector2.ListAccountPermissions" "amazonka-inspector2-2.0-EI0CfxGdACSBWwvVde8cFy" 'False) (C1 ('MetaCons "ListAccountPermissions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "service") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Service)))))

newListAccountPermissions :: ListAccountPermissions Source #

Create a value of ListAccountPermissions 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:maxResults:ListAccountPermissions', listAccountPermissions_maxResults - The maximum number of results to return in the response.

ListAccountPermissions, listAccountPermissions_nextToken - A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

ListAccountPermissions, listAccountPermissions_service - The service scan type to check permissions for.

Request Lenses

listAccountPermissions_maxResults :: Lens' ListAccountPermissions (Maybe Natural) Source #

The maximum number of results to return in the response.

listAccountPermissions_nextToken :: Lens' ListAccountPermissions (Maybe Text) Source #

A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

listAccountPermissions_service :: Lens' ListAccountPermissions (Maybe Service) Source #

The service scan type to check permissions for.

Destructuring the Response

data ListAccountPermissionsResponse Source #

See: newListAccountPermissionsResponse smart constructor.

Constructors

ListAccountPermissionsResponse' 

Fields

  • nextToken :: Maybe Text

    A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

  • httpStatus :: Int

    The response's http status code.

  • permissions :: [Permission]

    Contains details on the permissions an account has to configure Amazon Inspector.

Instances

Instances details
Generic ListAccountPermissionsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

Associated Types

type Rep ListAccountPermissionsResponse :: Type -> Type #

Read ListAccountPermissionsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

Show ListAccountPermissionsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

NFData ListAccountPermissionsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

Eq ListAccountPermissionsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

type Rep ListAccountPermissionsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListAccountPermissions

type Rep ListAccountPermissionsResponse = D1 ('MetaData "ListAccountPermissionsResponse" "Amazonka.Inspector2.ListAccountPermissions" "amazonka-inspector2-2.0-EI0CfxGdACSBWwvVde8cFy" 'False) (C1 ('MetaCons "ListAccountPermissionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Permission]))))

newListAccountPermissionsResponse Source #

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

ListAccountPermissions, listAccountPermissionsResponse_nextToken - A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

$sel:httpStatus:ListAccountPermissionsResponse', listAccountPermissionsResponse_httpStatus - The response's http status code.

$sel:permissions:ListAccountPermissionsResponse', listAccountPermissionsResponse_permissions - Contains details on the permissions an account has to configure Amazon Inspector.

Response Lenses

listAccountPermissionsResponse_nextToken :: Lens' ListAccountPermissionsResponse (Maybe Text) Source #

A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

listAccountPermissionsResponse_permissions :: Lens' ListAccountPermissionsResponse [Permission] Source #

Contains details on the permissions an account has to configure Amazon Inspector.