SnapshotArgs

data class SnapshotArgs(val clusterName: Output<String>? = null, val kmsKeyArn: Output<String>? = null, val name: Output<String>? = null, val namePrefix: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SnapshotArgs>

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

Constructors

Link copied to clipboard
constructor(clusterName: Output<String>? = null, kmsKeyArn: Output<String>? = null, name: Output<String>? = null, namePrefix: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val clusterName: Output<String>? = null

Name of the MemoryDB cluster to take a snapshot of.

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

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

Link copied to clipboard
val name: Output<String>? = null

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>? = null

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

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

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.

Functions

Link copied to clipboard
open override fun toJava(): SnapshotArgs