UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

65 lines (64 loc) 2.09 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of iam user policy attachments * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.iam.getUserPolicyAttachments({ * userName: "jonny", * }); * ``` */ /** @deprecated volcengine.iam.UserPolicyAttachments has been deprecated in favor of volcengine.iam.getUserPolicyAttachments */ export declare function userPolicyAttachments(args: UserPolicyAttachmentsArgs, opts?: pulumi.InvokeOptions): Promise<UserPolicyAttachmentsResult>; /** * A collection of arguments for invoking UserPolicyAttachments. */ export interface UserPolicyAttachmentsArgs { /** * The name of the user. */ userName: string; } /** * A collection of values returned by UserPolicyAttachments. */ export interface UserPolicyAttachmentsResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The collection of policies. */ readonly policies: outputs.iam.UserPolicyAttachmentsPolicy[]; readonly userName: string; } /** * Use this data source to query detailed information of iam user policy attachments * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.iam.getUserPolicyAttachments({ * userName: "jonny", * }); * ``` */ /** @deprecated volcengine.iam.UserPolicyAttachments has been deprecated in favor of volcengine.iam.getUserPolicyAttachments */ export declare function userPolicyAttachmentsOutput(args: UserPolicyAttachmentsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<UserPolicyAttachmentsResult>; /** * A collection of arguments for invoking UserPolicyAttachments. */ export interface UserPolicyAttachmentsOutputArgs { /** * The name of the user. */ userName: pulumi.Input<string>; }