UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

63 lines (62 loc) 1.87 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", * }); * ``` */ export declare function getUserPolicyAttachments(args: GetUserPolicyAttachmentsArgs, opts?: pulumi.InvokeOptions): Promise<GetUserPolicyAttachmentsResult>; /** * A collection of arguments for invoking getUserPolicyAttachments. */ export interface GetUserPolicyAttachmentsArgs { /** * The name of the user. */ userName: string; } /** * A collection of values returned by getUserPolicyAttachments. */ export interface GetUserPolicyAttachmentsResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The collection of policies. */ readonly policies: outputs.iam.GetUserPolicyAttachmentsPolicy[]; 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", * }); * ``` */ export declare function getUserPolicyAttachmentsOutput(args: GetUserPolicyAttachmentsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetUserPolicyAttachmentsResult>; /** * A collection of arguments for invoking getUserPolicyAttachments. */ export interface GetUserPolicyAttachmentsOutputArgs { /** * The name of the user. */ userName: pulumi.Input<string>; }