Show / Hide Table of Contents

Class SnapshotCreateVolumePermission

Adds permission to create volumes off of a given EBS Snapshot.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = new Aws.Ebs.Volume("example", new Aws.Ebs.VolumeArgs
    {
        AvailabilityZone = "us-west-2a",
        Size = 40,
    });
    var exampleSnapshot = new Aws.Ebs.Snapshot("exampleSnapshot", new Aws.Ebs.SnapshotArgs
    {
        VolumeId = example.Id,
    });
    var examplePerm = new Aws.Ec2.SnapshotCreateVolumePermission("examplePerm", new Aws.Ec2.SnapshotCreateVolumePermissionArgs
    {
        AccountId = "12345678",
        SnapshotId = exampleSnapshot.Id,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
SnapshotCreateVolumePermission
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.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class SnapshotCreateVolumePermission : CustomResource

Constructors

View Source

SnapshotCreateVolumePermission(String, SnapshotCreateVolumePermissionArgs, CustomResourceOptions)

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

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

The unique name of the resource

SnapshotCreateVolumePermissionArgs 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

AccountId

An AWS Account ID to add create volume permissions

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

SnapshotId

A snapshot ID

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

Methods

View Source

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

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

Declaration
public static SnapshotCreateVolumePermission Get(string name, Input<string> id, SnapshotCreateVolumePermissionState 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.

SnapshotCreateVolumePermissionState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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