Snapshot Copy Grant Args
data class SnapshotCopyGrantArgs(val kmsKeyId: Output<String>? = null, val snapshotCopyGrantName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SnapshotCopyGrantArgs>
Creates a snapshot copy grant that allows AWS Redshift to encrypt copied snapshots with a customer master key from AWS KMS in a destination region. Note that the grant must exist in the destination region, and not in the region of the cluster.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.SnapshotCopyGrant;
import com.pulumi.aws.redshift.SnapshotCopyGrantArgs;
import com.pulumi.aws.redshift.Cluster;
import com.pulumi.aws.redshift.ClusterArgs;
import com.pulumi.aws.redshift.inputs.ClusterSnapshotCopyArgs;
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 testSnapshotCopyGrant = new SnapshotCopyGrant("testSnapshotCopyGrant", SnapshotCopyGrantArgs.builder()
.snapshotCopyGrantName("my-grant")
.build());
var testCluster = new Cluster("testCluster", ClusterArgs.builder()
.snapshotCopy(ClusterSnapshotCopyArgs.builder()
.destinationRegion("us-east-2")
.grantName(testSnapshotCopyGrant.snapshotCopyGrantName())
.build())
.build());
}
}
Content copied to clipboard
Import
Redshift Snapshot Copy Grants support import by name, e.g., console
$ pulumi import aws:redshift/snapshotCopyGrant:SnapshotCopyGrant test my-grant
Content copied to clipboard