UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

137 lines (136 loc) 4.99 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage cloud identity permission set * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.cloud_identity.PermissionSet("foo", { * description: "tf", * permissionPolicies: [ * { * inlinePolicyDocument: "", * permissionPolicyName: "AdministratorAccess", * permissionPolicyType: "System", * }, * { * inlinePolicyDocument: "", * permissionPolicyName: "ReadOnlyAccess", * permissionPolicyType: "System", * }, * { * inlinePolicyDocument: "{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}", * permissionPolicyType: "Inline", * }, * ], * sessionDuration: 5000, * }); * ``` * * ## Import * * CloudIdentityPermissionSet can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:cloud_identity/permissionSet:PermissionSet default resource_id * ``` */ export declare class PermissionSet extends pulumi.CustomResource { /** * Get an existing PermissionSet 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?: PermissionSetState, opts?: pulumi.CustomResourceOptions): PermissionSet; /** * Returns true if the given object is an instance of PermissionSet. 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 PermissionSet; /** * The description of the cloud identity permission set. */ readonly description: pulumi.Output<string | undefined>; /** * The name of the cloud identity permission set. */ readonly name: pulumi.Output<string>; /** * The policies of the cloud identity permission set. */ readonly permissionPolicies: pulumi.Output<outputs.cloud_identity.PermissionSetPermissionPolicy[] | undefined>; /** * The relay state of the cloud identity permission set. */ readonly relayState: pulumi.Output<string>; /** * The session duration of the cloud identity permission set. Unit: second. Valid value range in 3600~43200. */ readonly sessionDuration: pulumi.Output<number>; /** * Create a PermissionSet 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?: PermissionSetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PermissionSet resources. */ export interface PermissionSetState { /** * The description of the cloud identity permission set. */ description?: pulumi.Input<string>; /** * The name of the cloud identity permission set. */ name?: pulumi.Input<string>; /** * The policies of the cloud identity permission set. */ permissionPolicies?: pulumi.Input<pulumi.Input<inputs.cloud_identity.PermissionSetPermissionPolicy>[]>; /** * The relay state of the cloud identity permission set. */ relayState?: pulumi.Input<string>; /** * The session duration of the cloud identity permission set. Unit: second. Valid value range in 3600~43200. */ sessionDuration?: pulumi.Input<number>; } /** * The set of arguments for constructing a PermissionSet resource. */ export interface PermissionSetArgs { /** * The description of the cloud identity permission set. */ description?: pulumi.Input<string>; /** * The name of the cloud identity permission set. */ name?: pulumi.Input<string>; /** * The policies of the cloud identity permission set. */ permissionPolicies?: pulumi.Input<pulumi.Input<inputs.cloud_identity.PermissionSetPermissionPolicy>[]>; /** * The relay state of the cloud identity permission set. */ relayState?: pulumi.Input<string>; /** * The session duration of the cloud identity permission set. Unit: second. Valid value range in 3600~43200. */ sessionDuration?: pulumi.Input<number>; }