@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
90 lines (89 loc) • 2.76 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get information on an existing IAM user based on its ID or email address.
* For more information,
* see [the documentation](https://developers.scaleway.com/en/products/iam/api/v1alpha1/#users-06bdcf).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const findById = scaleway.getIamUser({
* userId: "11111111-1111-1111-1111-111111111111",
* });
* const findByEmail = scaleway.getIamUser({
* email: "foo@bar.com",
* });
* ```
*/
export declare function getIamUser(args?: GetIamUserArgs, opts?: pulumi.InvokeOptions): Promise<GetIamUserResult>;
/**
* A collection of arguments for invoking getIamUser.
*/
export interface GetIamUserArgs {
/**
* The email address of the IAM user. Only one of the `email` and `userId` should be specified.
*/
email?: string;
/**
* `organizationId`) The ID of the
* organization the user is associated with.
*/
organizationId?: string;
/**
* The ID of the IAM user. Only one of the `email` and `userId` should be specified.
*/
userId?: string;
}
/**
* A collection of values returned by getIamUser.
*/
export interface GetIamUserResult {
readonly email?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly organizationId?: string;
readonly userId?: string;
}
/**
* Use this data source to get information on an existing IAM user based on its ID or email address.
* For more information,
* see [the documentation](https://developers.scaleway.com/en/products/iam/api/v1alpha1/#users-06bdcf).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const findById = scaleway.getIamUser({
* userId: "11111111-1111-1111-1111-111111111111",
* });
* const findByEmail = scaleway.getIamUser({
* email: "foo@bar.com",
* });
* ```
*/
export declare function getIamUserOutput(args?: GetIamUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetIamUserResult>;
/**
* A collection of arguments for invoking getIamUser.
*/
export interface GetIamUserOutputArgs {
/**
* The email address of the IAM user. Only one of the `email` and `userId` should be specified.
*/
email?: pulumi.Input<string>;
/**
* `organizationId`) The ID of the
* organization the user is associated with.
*/
organizationId?: pulumi.Input<string>;
/**
* The ID of the IAM user. Only one of the `email` and `userId` should be specified.
*/
userId?: pulumi.Input<string>;
}