Show / Hide Table of Contents

Class RegionDiskResourcePolicyAttachment

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 zonal disks (gcp.compute.Disk). For zonal disks, please refer to the gcp.compute.DiskResourcePolicyAttachment resource.

Inheritance
System.Object
Resource
CustomResource
RegionDiskResourcePolicyAttachment
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 RegionDiskResourcePolicyAttachment : CustomResource

Constructors

View Source

RegionDiskResourcePolicyAttachment(String, RegionDiskResourcePolicyAttachmentArgs, CustomResourceOptions)

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

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

The unique name of the resource

RegionDiskResourcePolicyAttachmentArgs 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 regional 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

Region

A reference to the region where the disk resides.

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

Methods

View Source

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

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

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

RegionDiskResourcePolicyAttachmentState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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