Snapshot

class Snapshot : KotlinCustomResource

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.memorydb.Snapshot("example", {
clusterName: exampleAwsMemorydbCluster.name,
name: "my-snapshot",
});
import pulumi
import pulumi_aws as aws
example = aws.memorydb.Snapshot("example",
cluster_name=example_aws_memorydb_cluster["name"],
name="my-snapshot")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.MemoryDb.Snapshot("example", new()
{
ClusterName = exampleAwsMemorydbCluster.Name,
Name = "my-snapshot",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/memorydb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := memorydb.NewSnapshot(ctx, "example", &memorydb.SnapshotArgs{
ClusterName: pulumi.Any(exampleAwsMemorydbCluster.Name),
Name: pulumi.String("my-snapshot"),
})
if err != nil {
return err
}
return nil
})
}
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(exampleAwsMemorydbCluster.name())
.name("my-snapshot")
.build());
}
}
resources:
example:
type: aws:memorydb:Snapshot
properties:
clusterName: ${exampleAwsMemorydbCluster.name}
name: my-snapshot

Import

Using pulumi import, import a snapshot using the name. 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>