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.CreateManagedPrefixList

Description

Creates a managed prefix list. You can specify one or more entries for the prefix list. Each entry consists of a CIDR block and an optional description.

Synopsis

Creating a Request

data CreateManagedPrefixList Source #

See: newCreateManagedPrefixList smart constructor.

Constructors

CreateManagedPrefixList' 

Fields

  • clientToken :: Maybe Text

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

    Constraints: Up to 255 UTF-8 characters in length.

  • 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.

  • entries :: Maybe [AddPrefixListEntry]

    One or more entries for the prefix list.

  • tagSpecifications :: Maybe [TagSpecification]

    The tags to apply to the prefix list during creation.

  • prefixListName :: Text

    A name for the prefix list.

    Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws.

  • maxEntries :: Int

    The maximum number of entries for the prefix list.

  • addressFamily :: Text

    The IP address type.

    Valid Values: IPv4 | IPv6

Instances

Instances details
ToHeaders CreateManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

ToPath CreateManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

ToQuery CreateManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

AWSRequest CreateManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

Generic CreateManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

Associated Types

type Rep CreateManagedPrefixList :: Type -> Type #

Read CreateManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

Show CreateManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

NFData CreateManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

Methods

rnf :: CreateManagedPrefixList -> () #

Eq CreateManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

Hashable CreateManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

type AWSResponse CreateManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

type Rep CreateManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

type Rep CreateManagedPrefixList = D1 ('MetaData "CreateManagedPrefixList" "Amazonka.EC2.CreateManagedPrefixList" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateManagedPrefixList'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "entries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AddPrefixListEntry])))) :*: ((S1 ('MetaSel ('Just "tagSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TagSpecification])) :*: S1 ('MetaSel ('Just "prefixListName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "maxEntries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "addressFamily") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateManagedPrefixList Source #

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

CreateManagedPrefixList, createManagedPrefixList_clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

Constraints: Up to 255 UTF-8 characters in length.

$sel:dryRun:CreateManagedPrefixList', createManagedPrefixList_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.

CreateManagedPrefixList, createManagedPrefixList_entries - One or more entries for the prefix list.

CreateManagedPrefixList, createManagedPrefixList_tagSpecifications - The tags to apply to the prefix list during creation.

CreateManagedPrefixList, createManagedPrefixList_prefixListName - A name for the prefix list.

Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws.

CreateManagedPrefixList, createManagedPrefixList_maxEntries - The maximum number of entries for the prefix list.

CreateManagedPrefixList, createManagedPrefixList_addressFamily - The IP address type.

Valid Values: IPv4 | IPv6

Request Lenses

createManagedPrefixList_clientToken :: Lens' CreateManagedPrefixList (Maybe Text) Source #

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

Constraints: Up to 255 UTF-8 characters in length.

createManagedPrefixList_dryRun :: Lens' CreateManagedPrefixList (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.

createManagedPrefixList_tagSpecifications :: Lens' CreateManagedPrefixList (Maybe [TagSpecification]) Source #

The tags to apply to the prefix list during creation.

createManagedPrefixList_prefixListName :: Lens' CreateManagedPrefixList Text Source #

A name for the prefix list.

Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws.

createManagedPrefixList_maxEntries :: Lens' CreateManagedPrefixList Int Source #

The maximum number of entries for the prefix list.

createManagedPrefixList_addressFamily :: Lens' CreateManagedPrefixList Text Source #

The IP address type.

Valid Values: IPv4 | IPv6

Destructuring the Response

data CreateManagedPrefixListResponse Source #

See: newCreateManagedPrefixListResponse smart constructor.

Constructors

CreateManagedPrefixListResponse' 

Fields

Instances

Instances details
Generic CreateManagedPrefixListResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

Associated Types

type Rep CreateManagedPrefixListResponse :: Type -> Type #

Read CreateManagedPrefixListResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

Show CreateManagedPrefixListResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

NFData CreateManagedPrefixListResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

Eq CreateManagedPrefixListResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

type Rep CreateManagedPrefixListResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateManagedPrefixList

type Rep CreateManagedPrefixListResponse = D1 ('MetaData "CreateManagedPrefixListResponse" "Amazonka.EC2.CreateManagedPrefixList" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateManagedPrefixListResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "prefixList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ManagedPrefixList)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateManagedPrefixListResponse Source #

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

CreateManagedPrefixListResponse, createManagedPrefixListResponse_prefixList - Information about the prefix list.

$sel:httpStatus:CreateManagedPrefixListResponse', createManagedPrefixListResponse_httpStatus - The response's http status code.

Response Lenses