import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during read-modify-write. */ export declare function getFolderPolicy(args: GetFolderPolicyArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetFolderPolicyArgs { folderId: string; policyId: string; } export interface GetFolderPolicyResult { /** * Deprecated. * * @deprecated Deprecated. */ readonly alternate: outputs.orgpolicy.v2.GoogleCloudOrgpolicyV2AlternatePolicySpecResponse; /** * Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced. */ readonly dryRunSpec: outputs.orgpolicy.v2.GoogleCloudOrgpolicyV2PolicySpecResponse; /** * Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */ readonly name: string; /** * Basic information about the Organization Policy. */ readonly spec: outputs.orgpolicy.v2.GoogleCloudOrgpolicyV2PolicySpecResponse; } /** * Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during read-modify-write. */ export declare function getFolderPolicyOutput(args: GetFolderPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetFolderPolicyOutputArgs { folderId: pulumi.Input; policyId: pulumi.Input; }