@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
147 lines (146 loc) • 4.26 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of cloud identity users
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooUser: volcengine.cloud_identity.User[] = [];
* for (const range = {value: 0}; range.value < 2; range.value++) {
* fooUser.push(new volcengine.cloud_identity.User(`fooUser-${range.value}`, {
* description: "tf",
* displayName: `tf-test-user-${range.value}`,
* email: "88@qq.com",
* phone: "181",
* userName: `acc-test-user-${range.value}`,
* }));
* }
* const fooUsers = volcengine.cloud_identity.getUsers({
* source: "Manual",
* userName: "acc-test-user",
* });
* ```
*/
/** @deprecated volcengine.cloud_identity.Users has been deprecated in favor of volcengine.cloud_identity.getUsers */
export declare function users(args?: UsersArgs, opts?: pulumi.InvokeOptions): Promise<UsersResult>;
/**
* A collection of arguments for invoking Users.
*/
export interface UsersArgs {
/**
* The department id.
*/
departmentId?: string;
/**
* The display name of cloud identity user.
*/
displayName?: string;
/**
* A Name Regex of Resource.
*/
nameRegex?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The source of cloud identity user. Valid values: `Sync`, `Manual`.
*/
source?: string;
/**
* The name of cloud identity user.
*/
userName?: string;
}
/**
* A collection of values returned by Users.
*/
export interface UsersResult {
readonly departmentId?: string;
/**
* The display name of the cloud identity user.
*/
readonly displayName?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly nameRegex?: string;
readonly outputFile?: string;
/**
* The source of the cloud identity user.
*/
readonly source?: string;
/**
* The total count of query.
*/
readonly totalCount: number;
/**
* The name of the cloud identity user.
*/
readonly userName?: string;
/**
* The collection of query.
*/
readonly users: outputs.cloud_identity.UsersUser[];
}
/**
* Use this data source to query detailed information of cloud identity users
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooUser: volcengine.cloud_identity.User[] = [];
* for (const range = {value: 0}; range.value < 2; range.value++) {
* fooUser.push(new volcengine.cloud_identity.User(`fooUser-${range.value}`, {
* description: "tf",
* displayName: `tf-test-user-${range.value}`,
* email: "88@qq.com",
* phone: "181",
* userName: `acc-test-user-${range.value}`,
* }));
* }
* const fooUsers = volcengine.cloud_identity.getUsers({
* source: "Manual",
* userName: "acc-test-user",
* });
* ```
*/
/** @deprecated volcengine.cloud_identity.Users has been deprecated in favor of volcengine.cloud_identity.getUsers */
export declare function usersOutput(args?: UsersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<UsersResult>;
/**
* A collection of arguments for invoking Users.
*/
export interface UsersOutputArgs {
/**
* The department id.
*/
departmentId?: pulumi.Input<string>;
/**
* The display name of cloud identity user.
*/
displayName?: pulumi.Input<string>;
/**
* A Name Regex of Resource.
*/
nameRegex?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The source of cloud identity user. Valid values: `Sync`, `Manual`.
*/
source?: pulumi.Input<string>;
/**
* The name of cloud identity user.
*/
userName?: pulumi.Input<string>;
}