Skip to content

Copy Snapshot

memorydb_copy_snapshot R Documentation

Makes a copy of an existing snapshot

Description

Makes a copy of an existing snapshot.

Usage

memorydb_copy_snapshot(SourceSnapshotName, TargetSnapshotName,
  TargetBucket, KmsKeyId, Tags)

Arguments

SourceSnapshotName

[required] The name of an existing snapshot from which to make a copy.

TargetSnapshotName

[required] A name for the snapshot copy. MemoryDB does not permit overwriting a snapshot, therefore this name must be unique within its context - MemoryDB or an Amazon S3 bucket if exporting.

TargetBucket

The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access. When using this parameter to export a snapshot, be sure MemoryDB has the needed permissions to this S3 bucket. For more information, see Step 2: Grant MemoryDB Access to Your Amazon S3 Bucket.

KmsKeyId

The ID of the KMS key used to encrypt the target snapshot.

Tags

A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

Value

A list with the following syntax:

list(
  Snapshot = list(
    Name = "string",
    Status = "string",
    Source = "string",
    KmsKeyId = "string",
    ARN = "string",
    ClusterConfiguration = list(
      Name = "string",
      Description = "string",
      NodeType = "string",
      EngineVersion = "string",
      MaintenanceWindow = "string",
      TopicArn = "string",
      Port = 123,
      ParameterGroupName = "string",
      SubnetGroupName = "string",
      VpcId = "string",
      SnapshotRetentionLimit = 123,
      SnapshotWindow = "string",
      NumShards = 123,
      Shards = list(
        list(
          Name = "string",
          Configuration = list(
            Slots = "string",
            ReplicaCount = 123
          ),
          Size = "string",
          SnapshotCreationTime = as.POSIXct(
            "2015-01-01"
          )
        )
      )
    ),
    DataTiering = "true"|"false"
  )
)

Request syntax

svc$copy_snapshot(
  SourceSnapshotName = "string",
  TargetSnapshotName = "string",
  TargetBucket = "string",
  KmsKeyId = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)