UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

106 lines (105 loc) 3.8 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage iam user group policy attachment * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const fooPolicy = new volcengine.iam.Policy("fooPolicy", { * policyName: "acc-test-policy", * description: "acc-test", * policyDocument: "{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}", * }); * const fooUserGroup = new volcengine.iam.UserGroup("fooUserGroup", { * userGroupName: "acc-test-group", * description: "acc-test", * displayName: "acc-test", * }); * const fooUserGroupPolicyAttachment = new volcengine.iam.UserGroupPolicyAttachment("fooUserGroupPolicyAttachment", { * policyName: fooPolicy.policyName, * policyType: "Custom", * userGroupName: fooUserGroup.userGroupName, * }); * ``` * * ## Import * * IamUserGroupPolicyAttachment can be imported using the user group name and policy name, e.g. * * ```sh * $ pulumi import volcengine:iam/userGroupPolicyAttachment:UserGroupPolicyAttachment default userGroupName:policyName * ``` */ export declare class UserGroupPolicyAttachment extends pulumi.CustomResource { /** * Get an existing UserGroupPolicyAttachment 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?: UserGroupPolicyAttachmentState, opts?: pulumi.CustomResourceOptions): UserGroupPolicyAttachment; /** * Returns true if the given object is an instance of UserGroupPolicyAttachment. 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 UserGroupPolicyAttachment; /** * The policy name. */ readonly policyName: pulumi.Output<string>; /** * Strategy types, System strategy, Custom strategy. */ readonly policyType: pulumi.Output<string>; /** * The user group name. */ readonly userGroupName: pulumi.Output<string>; /** * Create a UserGroupPolicyAttachment 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: UserGroupPolicyAttachmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering UserGroupPolicyAttachment resources. */ export interface UserGroupPolicyAttachmentState { /** * The policy name. */ policyName?: pulumi.Input<string>; /** * Strategy types, System strategy, Custom strategy. */ policyType?: pulumi.Input<string>; /** * The user group name. */ userGroupName?: pulumi.Input<string>; } /** * The set of arguments for constructing a UserGroupPolicyAttachment resource. */ export interface UserGroupPolicyAttachmentArgs { /** * The policy name. */ policyName: pulumi.Input<string>; /** * Strategy types, System strategy, Custom strategy. */ policyType: pulumi.Input<string>; /** * The user group name. */ userGroupName: pulumi.Input<string>; }