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

Description

Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.

You get the full benefit of fast snapshot restores after they enter the enabled state. To get the current state of fast snapshot restores, use DescribeFastSnapshotRestores. To disable fast snapshot restores, use DisableFastSnapshotRestores.

For more information, see Amazon EBS fast snapshot restore in the Amazon Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data EnableFastSnapshotRestores Source #

See: newEnableFastSnapshotRestores smart constructor.

Constructors

EnableFastSnapshotRestores' 

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.

  • availabilityZones :: [Text]

    One or more Availability Zones. For example, us-east-2a.

  • sourceSnapshotIds :: [Text]

    The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can specify a snapshot that was shared with you from another Amazon Web Services account.

Instances

Instances details
ToHeaders EnableFastSnapshotRestores Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

ToPath EnableFastSnapshotRestores Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

ToQuery EnableFastSnapshotRestores Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

AWSRequest EnableFastSnapshotRestores Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

Generic EnableFastSnapshotRestores Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

Associated Types

type Rep EnableFastSnapshotRestores :: Type -> Type #

Read EnableFastSnapshotRestores Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

Show EnableFastSnapshotRestores Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

NFData EnableFastSnapshotRestores Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

Eq EnableFastSnapshotRestores Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

Hashable EnableFastSnapshotRestores Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

type AWSResponse EnableFastSnapshotRestores Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

type Rep EnableFastSnapshotRestores Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

type Rep EnableFastSnapshotRestores = D1 ('MetaData "EnableFastSnapshotRestores" "Amazonka.EC2.EnableFastSnapshotRestores" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "EnableFastSnapshotRestores'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "availabilityZones") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "sourceSnapshotIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))

newEnableFastSnapshotRestores :: EnableFastSnapshotRestores Source #

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

EnableFastSnapshotRestores, enableFastSnapshotRestores_availabilityZones - One or more Availability Zones. For example, us-east-2a.

$sel:sourceSnapshotIds:EnableFastSnapshotRestores', enableFastSnapshotRestores_sourceSnapshotIds - The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can specify a snapshot that was shared with you from another Amazon Web Services account.

Request Lenses

enableFastSnapshotRestores_dryRun :: Lens' EnableFastSnapshotRestores (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.

enableFastSnapshotRestores_availabilityZones :: Lens' EnableFastSnapshotRestores [Text] Source #

One or more Availability Zones. For example, us-east-2a.

enableFastSnapshotRestores_sourceSnapshotIds :: Lens' EnableFastSnapshotRestores [Text] Source #

The IDs of one or more snapshots. For example, snap-1234567890abcdef0. You can specify a snapshot that was shared with you from another Amazon Web Services account.

Destructuring the Response

data EnableFastSnapshotRestoresResponse Source #

Constructors

EnableFastSnapshotRestoresResponse' 

Fields

Instances

Instances details
Generic EnableFastSnapshotRestoresResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

Associated Types

type Rep EnableFastSnapshotRestoresResponse :: Type -> Type #

Read EnableFastSnapshotRestoresResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

Show EnableFastSnapshotRestoresResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

NFData EnableFastSnapshotRestoresResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

Eq EnableFastSnapshotRestoresResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

type Rep EnableFastSnapshotRestoresResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableFastSnapshotRestores

type Rep EnableFastSnapshotRestoresResponse = D1 ('MetaData "EnableFastSnapshotRestoresResponse" "Amazonka.EC2.EnableFastSnapshotRestores" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "EnableFastSnapshotRestoresResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "successful") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EnableFastSnapshotRestoreSuccessItem])) :*: (S1 ('MetaSel ('Just "unsuccessful") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EnableFastSnapshotRestoreErrorItem])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newEnableFastSnapshotRestoresResponse Source #

Create a value of EnableFastSnapshotRestoresResponse 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:successful:EnableFastSnapshotRestoresResponse', enableFastSnapshotRestoresResponse_successful - Information about the snapshots for which fast snapshot restores were successfully enabled.

$sel:unsuccessful:EnableFastSnapshotRestoresResponse', enableFastSnapshotRestoresResponse_unsuccessful - Information about the snapshots for which fast snapshot restores could not be enabled.

$sel:httpStatus:EnableFastSnapshotRestoresResponse', enableFastSnapshotRestoresResponse_httpStatus - The response's http status code.

Response Lenses

enableFastSnapshotRestoresResponse_successful :: Lens' EnableFastSnapshotRestoresResponse (Maybe [EnableFastSnapshotRestoreSuccessItem]) Source #

Information about the snapshots for which fast snapshot restores were successfully enabled.

enableFastSnapshotRestoresResponse_unsuccessful :: Lens' EnableFastSnapshotRestoresResponse (Maybe [EnableFastSnapshotRestoreErrorItem]) Source #

Information about the snapshots for which fast snapshot restores could not be enabled.