import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Retrieves all information of the specified resource policy. */ export declare function getResourcePolicy(args: GetResourcePolicyArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetResourcePolicyArgs { project?: string; region: string; resourcePolicy: string; } export interface GetResourcePolicyResult { /** * Creation timestamp in RFC3339 text format. */ readonly creationTimestamp: string; readonly description: string; /** * Resource policy for disk consistency groups. */ readonly diskConsistencyGroupPolicy: outputs.compute.alpha.ResourcePolicyDiskConsistencyGroupPolicyResponse; /** * Resource policy for instances for placement configuration. */ readonly groupPlacementPolicy: outputs.compute.alpha.ResourcePolicyGroupPlacementPolicyResponse; /** * Resource policy for scheduling instance operations. */ readonly instanceSchedulePolicy: outputs.compute.alpha.ResourcePolicyInstanceSchedulePolicyResponse; /** * Type of the resource. Always compute#resource_policies for resource policies. */ readonly kind: string; /** * The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. */ readonly name: string; readonly region: string; /** * The system status of the resource policy. */ readonly resourceStatus: outputs.compute.alpha.ResourcePolicyResourceStatusResponse; /** * Server-defined fully-qualified URL for this resource. */ readonly selfLink: string; /** * Server-defined URL for this resource with the resource id. */ readonly selfLinkWithId: string; /** * Resource policy for persistent disks for creating snapshots. */ readonly snapshotSchedulePolicy: outputs.compute.alpha.ResourcePolicySnapshotSchedulePolicyResponse; /** * The status of resource policy creation. */ readonly status: string; /** * Resource policy applicable to VMs for infrastructure maintenance. */ readonly vmMaintenancePolicy: outputs.compute.alpha.ResourcePolicyVmMaintenancePolicyResponse; } /** * Retrieves all information of the specified resource policy. */ export declare function getResourcePolicyOutput(args: GetResourcePolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetResourcePolicyOutputArgs { project?: pulumi.Input; region: pulumi.Input; resourcePolicy: pulumi.Input; }