import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Policies in Oracle Cloud Infrastructure Identity service. * * Lists the policies in the specified compartment (either the tenancy or another of your compartments). * See [Where to Get the Tenancy's OCID and User's OCID](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm#five). * * To determine which policies apply to a particular group or compartment, you must view the individual * statements inside all your policies. There isn't a way to automatically obtain that information via the API. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testPolicies = oci.identity.getPolicies({ * compartmentId: tenancyOcid, * name: policyName, * state: policyState, * }); * ``` */ export declare function getPolicies(args: GetPoliciesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getPolicies. */ export interface GetPoliciesArgs { /** * The OCID of the compartment (remember that the tenancy is simply the root compartment). */ compartmentId: string; filters?: inputs.Identity.GetPoliciesFilter[]; /** * A filter to only return resources that match the given name exactly. */ name?: string; /** * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. */ state?: string; } /** * A collection of values returned by getPolicies. */ export interface GetPoliciesResult { /** * The OCID of the compartment containing the policy (either the tenancy or another compartment). */ readonly compartmentId: string; readonly filters?: outputs.Identity.GetPoliciesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The name you assign to the policy during creation. The name must be unique across all policies in the tenancy and cannot be changed. */ readonly name?: string; /** * The list of policies. */ readonly policies: outputs.Identity.GetPoliciesPolicy[]; /** * The policy's current state. */ readonly state?: string; } /** * This data source provides the list of Policies in Oracle Cloud Infrastructure Identity service. * * Lists the policies in the specified compartment (either the tenancy or another of your compartments). * See [Where to Get the Tenancy's OCID and User's OCID](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm#five). * * To determine which policies apply to a particular group or compartment, you must view the individual * statements inside all your policies. There isn't a way to automatically obtain that information via the API. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testPolicies = oci.identity.getPolicies({ * compartmentId: tenancyOcid, * name: policyName, * state: policyState, * }); * ``` */ export declare function getPoliciesOutput(args: GetPoliciesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getPolicies. */ export interface GetPoliciesOutputArgs { /** * The OCID of the compartment (remember that the tenancy is simply the root compartment). */ compartmentId: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to only return resources that match the given name exactly. */ name?: pulumi.Input; /** * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. */ state?: pulumi.Input; } //# sourceMappingURL=getPolicies.d.ts.map