Show / Hide Table of Contents

Class DiskResourcePolicyAttachment

Adds existing resource policies to a disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.

Note: This resource does not support regional disks (gcp.compute.RegionDisk). For regional disks, please refer to the gcp.compute.RegionDiskResourcePolicyAttachment resource.

Inheritance
System.Object
Resource
CustomResource
DiskResourcePolicyAttachment
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.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public class DiskResourcePolicyAttachment : CustomResource

Constructors

View Source

DiskResourcePolicyAttachment(String, DiskResourcePolicyAttachmentArgs, CustomResourceOptions)

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

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

The unique name of the resource

DiskResourcePolicyAttachmentArgs 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

Disk

The name of the disk in which the resource policies are attached to.

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

Name

The resource policy to be attached to the disk for scheduling snapshot creation. Do not specify the self link.

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

Project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

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

Zone

A reference to the zone where the disk resides.

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

Methods

View Source

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

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

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

DiskResourcePolicyAttachmentState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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