import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides Nutanix resource to create authorization policy. * * ## Example * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const ap_example = new nutanix.AuthorizationPolicyV2("ap-example", { * role: "ba250e3e-1db1-4950-917f-a9e2ea35b8e3", * displayName: "auth_policy_example", * description: "authorization policy example", * authorizationPolicyType: "USER_DEFINED", * identities: [{ * reserved: "{\"user\":{\"uuid\":{\"anyof\":[\"00000000-0000-0000-0000-000000000000\"]}}}", * }], * entities: [ * { * reserved: "{\"images\":{\"*\":{\"eq\":\"*\"}}}", * }, * { * reserved: "{\"marketplace_item\":{\"owner_uuid\":{\"eq\":\"SELF_OWNED\"}}}", * }, * ], * }); * ``` * */ export declare class AuthorizationPolicyV2 extends pulumi.CustomResource { /** * Get an existing AuthorizationPolicyV2 resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AuthorizationPolicyV2State, opts?: pulumi.CustomResourceOptions): AuthorizationPolicyV2; /** * Returns true if the given object is an instance of AuthorizationPolicyV2. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AuthorizationPolicyV2; /** * Type of Authorization Policy. * - `PREDEFINED_READ_ONLY` : System-defined read-only ACP, i.e. no modifications allowed. * - `SERVICE_DEFINED_READ_ONLY` : Read-only ACP defined by a service. * - `PREDEFINED_UPDATE_IDENTITY_ONLY` : System-defined ACP prohibiting any modifications from customer. * - `SERVICE_DEFINED` : ACP defined by a service. * - `USER_DEFINED` : ACP defined by an User. */ readonly authorizationPolicyType: pulumi.Output; /** * Client that created the entity. */ readonly clientName: pulumi.Output; /** * User or Service Name that created the Authorization Policy. */ readonly createdBy: pulumi.Output; /** * The creation time of the Authorization Policy. */ readonly createdTime: pulumi.Output; /** * Description of the Authorization Policy. */ readonly description: pulumi.Output; /** * Name of the Authorization Policy. */ readonly displayName: pulumi.Output; /** * The entities being qualified by the Authorization Policy. */ readonly entities: pulumi.Output; /** * ext_id of Authorization policy. */ readonly extId: pulumi.Output; /** * The identities for which the Authorization Policy is created. */ readonly identities: pulumi.Output; /** * Flag identifying if the Authorization Policy is system defined or not. */ readonly isSystemDefined: pulumi.Output; /** * The time when the Authorization Policy was last updated. */ readonly lastUpdatedTime: pulumi.Output; /** * The Role associated with the Authorization Policy. */ readonly role: pulumi.Output; /** * Create a AuthorizationPolicyV2 resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AuthorizationPolicyV2Args, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AuthorizationPolicyV2 resources. */ export interface AuthorizationPolicyV2State { /** * Type of Authorization Policy. * - `PREDEFINED_READ_ONLY` : System-defined read-only ACP, i.e. no modifications allowed. * - `SERVICE_DEFINED_READ_ONLY` : Read-only ACP defined by a service. * - `PREDEFINED_UPDATE_IDENTITY_ONLY` : System-defined ACP prohibiting any modifications from customer. * - `SERVICE_DEFINED` : ACP defined by a service. * - `USER_DEFINED` : ACP defined by an User. */ authorizationPolicyType?: pulumi.Input; /** * Client that created the entity. */ clientName?: pulumi.Input; /** * User or Service Name that created the Authorization Policy. */ createdBy?: pulumi.Input; /** * The creation time of the Authorization Policy. */ createdTime?: pulumi.Input; /** * Description of the Authorization Policy. */ description?: pulumi.Input; /** * Name of the Authorization Policy. */ displayName?: pulumi.Input; /** * The entities being qualified by the Authorization Policy. */ entities?: pulumi.Input[] | undefined>; /** * ext_id of Authorization policy. */ extId?: pulumi.Input; /** * The identities for which the Authorization Policy is created. */ identities?: pulumi.Input[] | undefined>; /** * Flag identifying if the Authorization Policy is system defined or not. */ isSystemDefined?: pulumi.Input; /** * The time when the Authorization Policy was last updated. */ lastUpdatedTime?: pulumi.Input; /** * The Role associated with the Authorization Policy. */ role?: pulumi.Input; } /** * The set of arguments for constructing a AuthorizationPolicyV2 resource. */ export interface AuthorizationPolicyV2Args { /** * Type of Authorization Policy. * - `PREDEFINED_READ_ONLY` : System-defined read-only ACP, i.e. no modifications allowed. * - `SERVICE_DEFINED_READ_ONLY` : Read-only ACP defined by a service. * - `PREDEFINED_UPDATE_IDENTITY_ONLY` : System-defined ACP prohibiting any modifications from customer. * - `SERVICE_DEFINED` : ACP defined by a service. * - `USER_DEFINED` : ACP defined by an User. */ authorizationPolicyType?: pulumi.Input; /** * Description of the Authorization Policy. */ description?: pulumi.Input; /** * Name of the Authorization Policy. */ displayName: pulumi.Input; /** * The entities being qualified by the Authorization Policy. */ entities: pulumi.Input[]>; /** * ext_id of Authorization policy. */ extId?: pulumi.Input; /** * The identities for which the Authorization Policy is created. */ identities: pulumi.Input[]>; /** * The Role associated with the Authorization Policy. */ role: pulumi.Input; } //# sourceMappingURL=authorizationPolicyV2.d.ts.map