import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to retrieve am IAM policy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const myPolicy = ovh.Iam.getPolicy({ * id: "my_policy_id", * }); * ``` */ export declare function getPolicy(args: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getPolicy. */ export interface GetPolicyArgs { /** * Set of actions allowed by the policy. */ allows?: string[]; /** * Set of actions that will be denied no matter what policy exists. */ denies?: string[]; /** * Group description. */ description?: string; /** * Set of actions that will be subtracted from the `allow` list. */ excepts?: string[]; /** * UUID of the policy. */ id: string; /** * Set of permissions groups that apply to the policy. */ permissionsGroups?: string[]; } /** * A collection of values returned by getPolicy. */ export interface GetPolicyResult { /** * Set of actions allowed by the policy. */ readonly allows?: string[]; /** * Conditions restricting the policy. */ readonly conditions: outputs.Iam.GetPolicyCondition[]; /** * Creation date of this group. */ readonly createdAt: string; /** * Set of actions that will be denied no matter what policy exists. */ readonly denies?: string[]; /** * Group description. */ readonly description?: string; /** * Set of actions that will be subtracted from the `allow` list. */ readonly excepts?: string[]; /** * Expiration date of the policy. */ readonly expiredAt: string; readonly id: string; /** * Set of identities affected by the policy. */ readonly identities: string[]; /** * Name of the policy. */ readonly name: string; /** * Owner of the policy. */ readonly owner: string; /** * Set of permissions groups that apply to the policy. */ readonly permissionsGroups?: string[]; /** * Indicates that the policy is a default one. */ readonly readOnly: boolean; /** * Set of resources affected by the policy. */ readonly resources: string[]; /** * Date of the last update of this group. */ readonly updatedAt: string; } /** * Use this data source to retrieve am IAM policy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const myPolicy = ovh.Iam.getPolicy({ * id: "my_policy_id", * }); * ``` */ export declare function getPolicyOutput(args: GetPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getPolicy. */ export interface GetPolicyOutputArgs { /** * Set of actions allowed by the policy. */ allows?: pulumi.Input[]>; /** * Set of actions that will be denied no matter what policy exists. */ denies?: pulumi.Input[]>; /** * Group description. */ description?: pulumi.Input; /** * Set of actions that will be subtracted from the `allow` list. */ excepts?: pulumi.Input[]>; /** * UUID of the policy. */ id: pulumi.Input; /** * Set of permissions groups that apply to the policy. */ permissionsGroups?: pulumi.Input[]>; }