@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
148 lines (147 loc) • 4.99 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Creates and manages Scaleway IAM Users.
* For more information, see [the documentation](https://www.scaleway.com/en/developers/api/iam/#path-users-list-users-of-an-organization).
*
* ## Examples
*
* ### Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
*
* const basic = new scaleway.IamUser("basic", {email: "test@test.com"});
* ```
*
* ## Import
*
* IAM users can be imported using the `{id}`, e.g. bash
*
* ```sh
* $ pulumi import scaleway:index/iamUser:IamUser basic 11111111-1111-1111-1111-111111111111
* ```
*/
export declare class IamUser extends pulumi.CustomResource {
/**
* Get an existing IamUser 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?: IamUserState, opts?: pulumi.CustomResourceOptions): IamUser;
/**
* Returns true if the given object is an instance of IamUser. 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 IamUser;
/**
* The ID of the account root user associated with the user.
*/
readonly accountRootUserId: pulumi.Output<string>;
/**
* The date and time of the creation of the iam user.
*/
readonly createdAt: pulumi.Output<string>;
/**
* Whether the iam user is deletable.
*/
readonly deletable: pulumi.Output<boolean>;
/**
* The email of the IAM user.
*/
readonly email: pulumi.Output<string>;
/**
* The date of the last login.
*/
readonly lastLoginAt: pulumi.Output<string>;
/**
* Whether the MFA is enabled.
*/
readonly mfa: pulumi.Output<boolean>;
/**
* `organizationId`) The ID of the organization the user is associated with.
*/
readonly organizationId: pulumi.Output<string>;
/**
* The status of user invitation. Check the possible values in the [api doc](https://www.scaleway.com/en/developers/api/iam/#path-users-get-a-given-user).
*/
readonly status: pulumi.Output<string>;
/**
* The type of user. Check the possible values in the [api doc](https://www.scaleway.com/en/developers/api/iam/#path-users-get-a-given-user).
*/
readonly type: pulumi.Output<string>;
/**
* The date and time of the last update of the iam user.
*/
readonly updatedAt: pulumi.Output<string>;
/**
* Create a IamUser 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: IamUserArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering IamUser resources.
*/
export interface IamUserState {
/**
* The ID of the account root user associated with the user.
*/
accountRootUserId?: pulumi.Input<string>;
/**
* The date and time of the creation of the iam user.
*/
createdAt?: pulumi.Input<string>;
/**
* Whether the iam user is deletable.
*/
deletable?: pulumi.Input<boolean>;
/**
* The email of the IAM user.
*/
email?: pulumi.Input<string>;
/**
* The date of the last login.
*/
lastLoginAt?: pulumi.Input<string>;
/**
* Whether the MFA is enabled.
*/
mfa?: pulumi.Input<boolean>;
/**
* `organizationId`) The ID of the organization the user is associated with.
*/
organizationId?: pulumi.Input<string>;
/**
* The status of user invitation. Check the possible values in the [api doc](https://www.scaleway.com/en/developers/api/iam/#path-users-get-a-given-user).
*/
status?: pulumi.Input<string>;
/**
* The type of user. Check the possible values in the [api doc](https://www.scaleway.com/en/developers/api/iam/#path-users-get-a-given-user).
*/
type?: pulumi.Input<string>;
/**
* The date and time of the last update of the iam user.
*/
updatedAt?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a IamUser resource.
*/
export interface IamUserArgs {
/**
* The email of the IAM user.
*/
email: pulumi.Input<string>;
/**
* `organizationId`) The ID of the organization the user is associated with.
*/
organizationId?: pulumi.Input<string>;
}