Skip to content

Enable Fast Snapshot Restores

ec2_enable_fast_snapshot_restores R Documentation

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

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.

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

Usage

ec2_enable_fast_snapshot_restores(AvailabilityZones,
  AvailabilityZoneIds, SourceSnapshotIds, DryRun)

Arguments

AvailabilityZones

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

Either AvailabilityZone or AvailabilityZoneId must be specified in the request, but not both.

AvailabilityZoneIds

One or more Availability Zone IDs. For example, use2-az1.

Either AvailabilityZone or AvailabilityZoneId must be specified in the request, but not both.

SourceSnapshotIds

[required] 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.

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.

Value

A list with the following syntax:

list(
  Successful = list(
    list(
      SnapshotId = "string",
      AvailabilityZone = "string",
      AvailabilityZoneId = "string",
      State = "enabling"|"optimizing"|"enabled"|"disabling"|"disabled",
      StateTransitionReason = "string",
      OwnerId = "string",
      OwnerAlias = "string",
      EnablingTime = as.POSIXct(
        "2015-01-01"
      ),
      OptimizingTime = as.POSIXct(
        "2015-01-01"
      ),
      EnabledTime = as.POSIXct(
        "2015-01-01"
      ),
      DisablingTime = as.POSIXct(
        "2015-01-01"
      ),
      DisabledTime = as.POSIXct(
        "2015-01-01"
      )
    )
  ),
  Unsuccessful = list(
    list(
      SnapshotId = "string",
      FastSnapshotRestoreStateErrors = list(
        list(
          AvailabilityZone = "string",
          AvailabilityZoneId = "string",
          Error = list(
            Code = "string",
            Message = "string"
          )
        )
      )
    )
  )
)

Request syntax

svc$enable_fast_snapshot_restores(
  AvailabilityZones = list(
    "string"
  ),
  AvailabilityZoneIds = list(
    "string"
  ),
  SourceSnapshotIds = list(
    "string"
  ),
  DryRun = TRUE|FALSE
)