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