Snapshot
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",
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.memorydb.Snapshot("example",
cluster_name=example_aws_memorydb_cluster["name"],
name="my-snapshot")
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
example:
type: aws:memorydb:Snapshot
properties:
clusterName: ${exampleAwsMemorydbCluster.name}
name: my-snapshot
Content copied to clipboard
Import
Using pulumi import
, import a snapshot using the name
. For example:
$ pulumi import aws:memorydb/snapshot:Snapshot example my-snapshot
Content copied to clipboard
Properties
Link copied to clipboard
The configuration of the cluster from which the snapshot was taken.
Link copied to clipboard
Name of the MemoryDB cluster to take a snapshot of.
Link copied to clipboard
Creates a unique name beginning with the specified prefix. Conflicts with name
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard