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 thegcp.compute.RegionDiskResourcePolicyAttachmentresource.
Inherited Members
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public class DiskResourcePolicyAttachment : CustomResource
Constructors
View SourceDiskResourcePolicyAttachment(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 SourceDisk
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> |
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> |
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> |
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 SourceGet(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 |