amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.DescribePrefixLists

Description

Describes available Amazon Web Services services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service.

We recommend that you use DescribeManagedPrefixLists instead.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribePrefixLists Source #

See: newDescribePrefixLists smart constructor.

Constructors

DescribePrefixLists' 

Fields

  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • filters :: Maybe [Filter]

    One or more filters.

    • prefix-list-id: The ID of a prefix list.
    • prefix-list-name: The name of a prefix list.
  • maxResults :: Maybe Int

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

  • nextToken :: Maybe Text

    The token for the next page of results.

  • prefixListIds :: Maybe [Text]

    One or more prefix list IDs.

Instances

Instances details
ToHeaders DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

ToPath DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

ToQuery DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

AWSPager DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

AWSRequest DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

Associated Types

type AWSResponse DescribePrefixLists #

Generic DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

Associated Types

type Rep DescribePrefixLists :: Type -> Type #

Read DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

Show DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

NFData DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

Methods

rnf :: DescribePrefixLists -> () #

Eq DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

Hashable DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

type AWSResponse DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

type Rep DescribePrefixLists Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

type Rep DescribePrefixLists = D1 ('MetaData "DescribePrefixLists" "Amazonka.EC2.DescribePrefixLists" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribePrefixLists'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter]))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "prefixListIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))))

newDescribePrefixLists :: DescribePrefixLists Source #

Create a value of DescribePrefixLists 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:dryRun:DescribePrefixLists', describePrefixLists_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

$sel:filters:DescribePrefixLists', describePrefixLists_filters - One or more filters.

  • prefix-list-id: The ID of a prefix list.
  • prefix-list-name: The name of a prefix list.

$sel:maxResults:DescribePrefixLists', describePrefixLists_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.

DescribePrefixLists, describePrefixLists_nextToken - The token for the next page of results.

DescribePrefixLists, describePrefixLists_prefixListIds - One or more prefix list IDs.

Request Lenses

describePrefixLists_dryRun :: Lens' DescribePrefixLists (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

describePrefixLists_filters :: Lens' DescribePrefixLists (Maybe [Filter]) Source #

One or more filters.

  • prefix-list-id: The ID of a prefix list.
  • prefix-list-name: The name of a prefix list.

describePrefixLists_maxResults :: Lens' DescribePrefixLists (Maybe Int) 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.

describePrefixLists_nextToken :: Lens' DescribePrefixLists (Maybe Text) Source #

The token for the next page of results.

Destructuring the Response

data DescribePrefixListsResponse Source #

See: newDescribePrefixListsResponse smart constructor.

Constructors

DescribePrefixListsResponse' 

Fields

Instances

Instances details
Generic DescribePrefixListsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

Associated Types

type Rep DescribePrefixListsResponse :: Type -> Type #

Read DescribePrefixListsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

Show DescribePrefixListsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

NFData DescribePrefixListsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

Eq DescribePrefixListsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

type Rep DescribePrefixListsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribePrefixLists

type Rep DescribePrefixListsResponse = D1 ('MetaData "DescribePrefixListsResponse" "Amazonka.EC2.DescribePrefixLists" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribePrefixListsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "prefixLists") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PrefixList])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribePrefixListsResponse Source #

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

DescribePrefixLists, describePrefixListsResponse_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:prefixLists:DescribePrefixListsResponse', describePrefixListsResponse_prefixLists - All available prefix lists.

$sel:httpStatus:DescribePrefixListsResponse', describePrefixListsResponse_httpStatus - The response's http status code.

Response Lenses

describePrefixListsResponse_nextToken :: Lens' DescribePrefixListsResponse (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.