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

Description

Modifies the specified managed prefix list.

Adding or removing entries in a prefix list creates a new version of the prefix list. Changing the name of the prefix list does not affect the version.

If you specify a current version number that does not match the true current version number, the request fails.

Synopsis

Creating a Request

data ModifyManagedPrefixList Source #

See: newModifyManagedPrefixList smart constructor.

Constructors

ModifyManagedPrefixList' 

Fields

  • addEntries :: Maybe [AddPrefixListEntry]

    One or more entries to add to the prefix list.

  • currentVersion :: Maybe Integer

    The current version of the prefix list.

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

  • maxEntries :: Maybe Int

    The maximum number of entries for the prefix list. You cannot modify the entries of a prefix list and modify the size of a prefix list at the same time.

    If any of the resources that reference the prefix list cannot support the new maximum size, the modify operation fails. Check the state message for the IDs of the first ten resources that do not support the new maximum size.

  • prefixListName :: Maybe Text

    A name for the prefix list.

  • removeEntries :: Maybe [RemovePrefixListEntry]

    One or more entries to remove from the prefix list.

  • prefixListId :: Text

    The ID of the prefix list.

Instances

Instances details
ToHeaders ModifyManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

ToPath ModifyManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

ToQuery ModifyManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

AWSRequest ModifyManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

Generic ModifyManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

Associated Types

type Rep ModifyManagedPrefixList :: Type -> Type #

Read ModifyManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

Show ModifyManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

NFData ModifyManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

Methods

rnf :: ModifyManagedPrefixList -> () #

Eq ModifyManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

Hashable ModifyManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

type AWSResponse ModifyManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

type Rep ModifyManagedPrefixList Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

type Rep ModifyManagedPrefixList = D1 ('MetaData "ModifyManagedPrefixList" "Amazonka.EC2.ModifyManagedPrefixList" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyManagedPrefixList'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "addEntries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AddPrefixListEntry])) :*: (S1 ('MetaSel ('Just "currentVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "maxEntries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "prefixListName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "removeEntries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RemovePrefixListEntry])) :*: S1 ('MetaSel ('Just "prefixListId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newModifyManagedPrefixList Source #

Create a value of ModifyManagedPrefixList 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:addEntries:ModifyManagedPrefixList', modifyManagedPrefixList_addEntries - One or more entries to add to the prefix list.

$sel:currentVersion:ModifyManagedPrefixList', modifyManagedPrefixList_currentVersion - The current version of the prefix list.

$sel:dryRun:ModifyManagedPrefixList', modifyManagedPrefixList_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.

ModifyManagedPrefixList, modifyManagedPrefixList_maxEntries - The maximum number of entries for the prefix list. You cannot modify the entries of a prefix list and modify the size of a prefix list at the same time.

If any of the resources that reference the prefix list cannot support the new maximum size, the modify operation fails. Check the state message for the IDs of the first ten resources that do not support the new maximum size.

ModifyManagedPrefixList, modifyManagedPrefixList_prefixListName - A name for the prefix list.

$sel:removeEntries:ModifyManagedPrefixList', modifyManagedPrefixList_removeEntries - One or more entries to remove from the prefix list.

ModifyManagedPrefixList, modifyManagedPrefixList_prefixListId - The ID of the prefix list.

Request Lenses

modifyManagedPrefixList_dryRun :: Lens' ModifyManagedPrefixList (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.

modifyManagedPrefixList_maxEntries :: Lens' ModifyManagedPrefixList (Maybe Int) Source #

The maximum number of entries for the prefix list. You cannot modify the entries of a prefix list and modify the size of a prefix list at the same time.

If any of the resources that reference the prefix list cannot support the new maximum size, the modify operation fails. Check the state message for the IDs of the first ten resources that do not support the new maximum size.

Destructuring the Response

data ModifyManagedPrefixListResponse Source #

See: newModifyManagedPrefixListResponse smart constructor.

Constructors

ModifyManagedPrefixListResponse' 

Fields

Instances

Instances details
Generic ModifyManagedPrefixListResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

Associated Types

type Rep ModifyManagedPrefixListResponse :: Type -> Type #

Read ModifyManagedPrefixListResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

Show ModifyManagedPrefixListResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

NFData ModifyManagedPrefixListResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

Eq ModifyManagedPrefixListResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

type Rep ModifyManagedPrefixListResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyManagedPrefixList

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

newModifyManagedPrefixListResponse Source #

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

ModifyManagedPrefixListResponse, modifyManagedPrefixListResponse_prefixList - Information about the prefix list.

$sel:httpStatus:ModifyManagedPrefixListResponse', modifyManagedPrefixListResponse_httpStatus - The response's http status code.

Response Lenses