Snapshot

class Snapshot : KotlinCustomResource

Provides a MemoryDB Snapshot. More information about snapshot and restore can be found in the MemoryDB User Guide.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.memorydb.Snapshot;
import com.pulumi.aws.memorydb.SnapshotArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Snapshot("example", SnapshotArgs.builder()
.clusterName(aws_memorydb_cluster.example().name())
.build());
}
}

Import

Use the name to import a snapshot. For example

$ pulumi import aws:memorydb/snapshot:Snapshot example my-snapshot

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of the snapshot.

Link copied to clipboard

The configuration of the cluster from which the snapshot was taken.

Link copied to clipboard
val clusterName: Output<String>

Name of the MemoryDB cluster to take a snapshot of.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kmsKeyArn: Output<String>?

ARN of the KMS key used to encrypt the snapshot at rest.

Link copied to clipboard
val name: Output<String>

Name of the snapshot. If omitted, the provider will assign a random, unique name. Conflicts with name_prefix.

Link copied to clipboard
val namePrefix: Output<String>

Creates a unique name beginning with the specified prefix. Conflicts with name.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val source: Output<String>

Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).

Link copied to clipboard
val tags: Output<Map<String, String>>?

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>