Show / Hide Table of Contents

Class SnapshotCopyGrant

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

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var testSnapshotCopyGrant = new Aws.RedShift.SnapshotCopyGrant("testSnapshotCopyGrant", new Aws.RedShift.SnapshotCopyGrantArgs
    {
        SnapshotCopyGrantName = "my-grant",
    });
    var testCluster = new Aws.RedShift.Cluster("testCluster", new Aws.RedShift.ClusterArgs
    {
        SnapshotCopy = new Aws.RedShift.Inputs.ClusterSnapshotCopyArgs
        {
            DestinationRegion = "us-east-2",
            GrantName = testSnapshotCopyGrant.SnapshotCopyGrantName,
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
SnapshotCopyGrant
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.RedShift
Assembly: Pulumi.Aws.dll
Syntax
public class SnapshotCopyGrant : CustomResource

Constructors

View Source

SnapshotCopyGrant(String, SnapshotCopyGrantArgs, CustomResourceOptions)

Create a SnapshotCopyGrant resource with the given unique name, arguments, and options.

Declaration
public SnapshotCopyGrant(string name, SnapshotCopyGrantArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

SnapshotCopyGrantArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Arn

Amazon Resource Name (ARN) of snapshot copy grant

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

KmsKeyId

The unique identifier for the customer master key (CMK) that the grant applies to. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a different AWS account, you must use the key ARN. If not specified, the default key is used.

Declaration
public Output<string> KmsKeyId { get; }
Property Value
Type Description
Output<System.String>
View Source

SnapshotCopyGrantName

A friendly name for identifying the grant.

Declaration
public Output<string> SnapshotCopyGrantName { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

A map of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, SnapshotCopyGrantState, CustomResourceOptions)

Get an existing SnapshotCopyGrant resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static SnapshotCopyGrant Get(string name, Input<string> id, SnapshotCopyGrantState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

SnapshotCopyGrantState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
SnapshotCopyGrant
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.