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

Description

Restores the entries from a previous version of a managed prefix list to a new version of the prefix list.

Synopsis

Creating a Request

data RestoreManagedPrefixListVersion Source #

See: newRestoreManagedPrefixListVersion smart constructor.

Constructors

RestoreManagedPrefixListVersion' 

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.

  • prefixListId :: Text

    The ID of the prefix list.

  • previousVersion :: Integer

    The version to restore.

  • currentVersion :: Integer

    The current version number for the prefix list.

Instances

Instances details
ToHeaders RestoreManagedPrefixListVersion Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

ToPath RestoreManagedPrefixListVersion Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

ToQuery RestoreManagedPrefixListVersion Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

AWSRequest RestoreManagedPrefixListVersion Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

Generic RestoreManagedPrefixListVersion Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

Associated Types

type Rep RestoreManagedPrefixListVersion :: Type -> Type #

Read RestoreManagedPrefixListVersion Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

Show RestoreManagedPrefixListVersion Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

NFData RestoreManagedPrefixListVersion Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

Eq RestoreManagedPrefixListVersion Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

Hashable RestoreManagedPrefixListVersion Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

type AWSResponse RestoreManagedPrefixListVersion Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

type Rep RestoreManagedPrefixListVersion Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

type Rep RestoreManagedPrefixListVersion = D1 ('MetaData "RestoreManagedPrefixListVersion" "Amazonka.EC2.RestoreManagedPrefixListVersion" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "RestoreManagedPrefixListVersion'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "prefixListId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "previousVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer) :*: S1 ('MetaSel ('Just "currentVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Integer))))

newRestoreManagedPrefixListVersion Source #

Create a value of RestoreManagedPrefixListVersion 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:RestoreManagedPrefixListVersion', restoreManagedPrefixListVersion_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.

RestoreManagedPrefixListVersion, restoreManagedPrefixListVersion_prefixListId - The ID of the prefix list.

$sel:previousVersion:RestoreManagedPrefixListVersion', restoreManagedPrefixListVersion_previousVersion - The version to restore.

$sel:currentVersion:RestoreManagedPrefixListVersion', restoreManagedPrefixListVersion_currentVersion - The current version number for the prefix list.

Request Lenses

restoreManagedPrefixListVersion_dryRun :: Lens' RestoreManagedPrefixListVersion (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.

Destructuring the Response

data RestoreManagedPrefixListVersionResponse Source #

Constructors

RestoreManagedPrefixListVersionResponse' 

Fields

Instances

Instances details
Generic RestoreManagedPrefixListVersionResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

Read RestoreManagedPrefixListVersionResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

Show RestoreManagedPrefixListVersionResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

NFData RestoreManagedPrefixListVersionResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

Eq RestoreManagedPrefixListVersionResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

type Rep RestoreManagedPrefixListVersionResponse Source # 
Instance details

Defined in Amazonka.EC2.RestoreManagedPrefixListVersion

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

newRestoreManagedPrefixListVersionResponse Source #

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

RestoreManagedPrefixListVersionResponse, restoreManagedPrefixListVersionResponse_prefixList - Information about the prefix list.

$sel:httpStatus:RestoreManagedPrefixListVersionResponse', restoreManagedPrefixListVersionResponse_httpStatus - The response's http status code.

Response Lenses