Snapshot
Creates a new Amazon Redshift Serverless Snapshot.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.redshiftserverless.Snapshot("example", {
namespaceName: exampleAwsRedshiftserverlessWorkgroup.namespaceName,
snapshotName: "example",
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.redshiftserverless.Snapshot("example",
namespace_name=example_aws_redshiftserverless_workgroup["namespaceName"],
snapshot_name="example")
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.RedshiftServerless.Snapshot("example", new()
{
NamespaceName = exampleAwsRedshiftserverlessWorkgroup.NamespaceName,
SnapshotName = "example",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshiftserverless"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redshiftserverless.NewSnapshot(ctx, "example", &redshiftserverless.SnapshotArgs{
NamespaceName: pulumi.Any(exampleAwsRedshiftserverlessWorkgroup.NamespaceName),
SnapshotName: pulumi.String("example"),
})
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.redshiftserverless.Snapshot;
import com.pulumi.aws.redshiftserverless.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()
.namespaceName(exampleAwsRedshiftserverlessWorkgroup.namespaceName())
.snapshotName("example")
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:redshiftserverless:Snapshot
properties:
namespaceName: ${exampleAwsRedshiftserverlessWorkgroup.namespaceName}
snapshotName: example
Content copied to clipboard
Import
Using pulumi import
, import Redshift Serverless Snapshots using the snapshot_name
. For example:
$ pulumi import aws:redshiftserverless/snapshot:Snapshot example example
Content copied to clipboard
Properties
Link copied to clipboard
All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.
Link copied to clipboard
All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.
Link copied to clipboard
The username of the database within a snapshot.
Link copied to clipboard
The Amazon Resource Name (ARN) of the namespace the snapshot was created from.
Link copied to clipboard
The namespace to create a snapshot for.
Link copied to clipboard
The owner Amazon Web Services; account of the snapshot.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
How long to retain the created snapshot. Default value is -1
.
Link copied to clipboard
The name of the snapshot.