UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

122 lines (121 loc) 3.99 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage iam policy project * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.iam.PolicyProject("foo", { * policyName: "restart-oas-ecs", * policyType: "Custom", * principalName: "jonny", * principalType: "User", * projectNames: ["default"], * }); * ``` * * ## Import * * IamPolicyProject can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:iam/policyProject:PolicyProject default PrincipalType:PrincipalName:PolicyType:PolicyName:ProjectName * ``` */ export declare class PolicyProject extends pulumi.CustomResource { /** * Get an existing PolicyProject 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<pulumi.ID>, state?: PolicyProjectState, opts?: pulumi.CustomResourceOptions): PolicyProject; /** * Returns true if the given object is an instance of PolicyProject. 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 PolicyProject; /** * The name of the policy. */ readonly policyName: pulumi.Output<string>; /** * The type of the policy. Valid values: System, Custom. */ readonly policyType: pulumi.Output<string>; /** * The name of the principal. */ readonly principalName: pulumi.Output<string>; /** * The type of the principal. Valid values: User, Role, UserGroup. */ readonly principalType: pulumi.Output<string>; /** * The list of project names, which is the scope of the policy. */ readonly projectNames: pulumi.Output<string[]>; /** * Create a PolicyProject 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: PolicyProjectArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PolicyProject resources. */ export interface PolicyProjectState { /** * The name of the policy. */ policyName?: pulumi.Input<string>; /** * The type of the policy. Valid values: System, Custom. */ policyType?: pulumi.Input<string>; /** * The name of the principal. */ principalName?: pulumi.Input<string>; /** * The type of the principal. Valid values: User, Role, UserGroup. */ principalType?: pulumi.Input<string>; /** * The list of project names, which is the scope of the policy. */ projectNames?: pulumi.Input<pulumi.Input<string>[]>; } /** * The set of arguments for constructing a PolicyProject resource. */ export interface PolicyProjectArgs { /** * The name of the policy. */ policyName: pulumi.Input<string>; /** * The type of the policy. Valid values: System, Custom. */ policyType: pulumi.Input<string>; /** * The name of the principal. */ principalName: pulumi.Input<string>; /** * The type of the principal. Valid values: User, Role, UserGroup. */ principalType: pulumi.Input<string>; /** * The list of project names, which is the scope of the policy. */ projectNames: pulumi.Input<pulumi.Input<string>[]>; }