scaleway.IamUser
Explore with Pulumi AI
Creates and manages Scaleway IAM Users. For more information, see the documentation.
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const basic = new scaleway.IamUser("basic", {email: "test@test.com"});
import pulumi
import pulumiverse_scaleway as scaleway
basic = scaleway.IamUser("basic", email="test@test.com")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewIamUser(ctx, "basic", &scaleway.IamUserArgs{
Email: pulumi.String("test@test.com"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var basic = new Scaleway.IamUser("basic", new()
{
Email = "test@test.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.IamUser;
import com.pulumi.scaleway.IamUserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var basic = new IamUser("basic", IamUserArgs.builder()
.email("test@test.com")
.build());
}
}
resources:
basic:
type: scaleway:IamUser
properties:
email: test@test.com
Create IamUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IamUser(name: string, args: IamUserArgs, opts?: CustomResourceOptions);
@overload
def IamUser(resource_name: str,
args: IamUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IamUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
organization_id: Optional[str] = None)
func NewIamUser(ctx *Context, name string, args IamUserArgs, opts ...ResourceOption) (*IamUser, error)
public IamUser(string name, IamUserArgs args, CustomResourceOptions? opts = null)
public IamUser(String name, IamUserArgs args)
public IamUser(String name, IamUserArgs args, CustomResourceOptions options)
type: scaleway:IamUser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IamUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IamUserArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IamUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IamUserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var iamUserResource = new Scaleway.IamUser("iamUserResource", new()
{
Email = "string",
OrganizationId = "string",
});
example, err := scaleway.NewIamUser(ctx, "iamUserResource", &scaleway.IamUserArgs{
Email: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
})
var iamUserResource = new IamUser("iamUserResource", IamUserArgs.builder()
.email("string")
.organizationId("string")
.build());
iam_user_resource = scaleway.IamUser("iamUserResource",
email="string",
organization_id="string")
const iamUserResource = new scaleway.IamUser("iamUserResource", {
email: "string",
organizationId: "string",
});
type: scaleway:IamUser
properties:
email: string
organizationId: string
IamUser Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IamUser resource accepts the following input properties:
- Email string
- The email of the IAM user.
- Organization
Id string organization_id
) The ID of the organization the user is associated with.
- Email string
- The email of the IAM user.
- Organization
Id string organization_id
) The ID of the organization the user is associated with.
- email String
- The email of the IAM user.
- organization
Id String organization_id
) The ID of the organization the user is associated with.
- email string
- The email of the IAM user.
- organization
Id string organization_id
) The ID of the organization the user is associated with.
- email str
- The email of the IAM user.
- organization_
id str organization_id
) The ID of the organization the user is associated with.
- email String
- The email of the IAM user.
- organization
Id String organization_id
) The ID of the organization the user is associated with.
Outputs
All input properties are implicitly available as output properties. Additionally, the IamUser resource produces the following output properties:
- Account
Root stringUser Id - The ID of the account root user associated with the user.
- Created
At string - The date and time of the creation of the IAM user.
- Deletable bool
- Whether the IAM user is deletable.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Login stringAt - The date of the last login.
- Mfa bool
- Whether the MFA is enabled.
- Status string
- The status of user invitation. Check the possible values in the API doc.
- Type string
- The type of user. Check the possible values in the API doc.
- Updated
At string - The date and time of the last update of the IAM user.
- Account
Root stringUser Id - The ID of the account root user associated with the user.
- Created
At string - The date and time of the creation of the IAM user.
- Deletable bool
- Whether the IAM user is deletable.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Login stringAt - The date of the last login.
- Mfa bool
- Whether the MFA is enabled.
- Status string
- The status of user invitation. Check the possible values in the API doc.
- Type string
- The type of user. Check the possible values in the API doc.
- Updated
At string - The date and time of the last update of the IAM user.
- account
Root StringUser Id - The ID of the account root user associated with the user.
- created
At String - The date and time of the creation of the IAM user.
- deletable Boolean
- Whether the IAM user is deletable.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Login StringAt - The date of the last login.
- mfa Boolean
- Whether the MFA is enabled.
- status String
- The status of user invitation. Check the possible values in the API doc.
- type String
- The type of user. Check the possible values in the API doc.
- updated
At String - The date and time of the last update of the IAM user.
- account
Root stringUser Id - The ID of the account root user associated with the user.
- created
At string - The date and time of the creation of the IAM user.
- deletable boolean
- Whether the IAM user is deletable.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Login stringAt - The date of the last login.
- mfa boolean
- Whether the MFA is enabled.
- status string
- The status of user invitation. Check the possible values in the API doc.
- type string
- The type of user. Check the possible values in the API doc.
- updated
At string - The date and time of the last update of the IAM user.
- account_
root_ struser_ id - The ID of the account root user associated with the user.
- created_
at str - The date and time of the creation of the IAM user.
- deletable bool
- Whether the IAM user is deletable.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
login_ strat - The date of the last login.
- mfa bool
- Whether the MFA is enabled.
- status str
- The status of user invitation. Check the possible values in the API doc.
- type str
- The type of user. Check the possible values in the API doc.
- updated_
at str - The date and time of the last update of the IAM user.
- account
Root StringUser Id - The ID of the account root user associated with the user.
- created
At String - The date and time of the creation of the IAM user.
- deletable Boolean
- Whether the IAM user is deletable.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Login StringAt - The date of the last login.
- mfa Boolean
- Whether the MFA is enabled.
- status String
- The status of user invitation. Check the possible values in the API doc.
- type String
- The type of user. Check the possible values in the API doc.
- updated
At String - The date and time of the last update of the IAM user.
Look up Existing IamUser Resource
Get an existing IamUser resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IamUserState, opts?: CustomResourceOptions): IamUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_root_user_id: Optional[str] = None,
created_at: Optional[str] = None,
deletable: Optional[bool] = None,
email: Optional[str] = None,
last_login_at: Optional[str] = None,
mfa: Optional[bool] = None,
organization_id: Optional[str] = None,
status: Optional[str] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None) -> IamUser
func GetIamUser(ctx *Context, name string, id IDInput, state *IamUserState, opts ...ResourceOption) (*IamUser, error)
public static IamUser Get(string name, Input<string> id, IamUserState? state, CustomResourceOptions? opts = null)
public static IamUser get(String name, Output<String> id, IamUserState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Root stringUser Id - The ID of the account root user associated with the user.
- Created
At string - The date and time of the creation of the IAM user.
- Deletable bool
- Whether the IAM user is deletable.
- Email string
- The email of the IAM user.
- Last
Login stringAt - The date of the last login.
- Mfa bool
- Whether the MFA is enabled.
- Organization
Id string organization_id
) The ID of the organization the user is associated with.- Status string
- The status of user invitation. Check the possible values in the API doc.
- Type string
- The type of user. Check the possible values in the API doc.
- Updated
At string - The date and time of the last update of the IAM user.
- Account
Root stringUser Id - The ID of the account root user associated with the user.
- Created
At string - The date and time of the creation of the IAM user.
- Deletable bool
- Whether the IAM user is deletable.
- Email string
- The email of the IAM user.
- Last
Login stringAt - The date of the last login.
- Mfa bool
- Whether the MFA is enabled.
- Organization
Id string organization_id
) The ID of the organization the user is associated with.- Status string
- The status of user invitation. Check the possible values in the API doc.
- Type string
- The type of user. Check the possible values in the API doc.
- Updated
At string - The date and time of the last update of the IAM user.
- account
Root StringUser Id - The ID of the account root user associated with the user.
- created
At String - The date and time of the creation of the IAM user.
- deletable Boolean
- Whether the IAM user is deletable.
- email String
- The email of the IAM user.
- last
Login StringAt - The date of the last login.
- mfa Boolean
- Whether the MFA is enabled.
- organization
Id String organization_id
) The ID of the organization the user is associated with.- status String
- The status of user invitation. Check the possible values in the API doc.
- type String
- The type of user. Check the possible values in the API doc.
- updated
At String - The date and time of the last update of the IAM user.
- account
Root stringUser Id - The ID of the account root user associated with the user.
- created
At string - The date and time of the creation of the IAM user.
- deletable boolean
- Whether the IAM user is deletable.
- email string
- The email of the IAM user.
- last
Login stringAt - The date of the last login.
- mfa boolean
- Whether the MFA is enabled.
- organization
Id string organization_id
) The ID of the organization the user is associated with.- status string
- The status of user invitation. Check the possible values in the API doc.
- type string
- The type of user. Check the possible values in the API doc.
- updated
At string - The date and time of the last update of the IAM user.
- account_
root_ struser_ id - The ID of the account root user associated with the user.
- created_
at str - The date and time of the creation of the IAM user.
- deletable bool
- Whether the IAM user is deletable.
- email str
- The email of the IAM user.
- last_
login_ strat - The date of the last login.
- mfa bool
- Whether the MFA is enabled.
- organization_
id str organization_id
) The ID of the organization the user is associated with.- status str
- The status of user invitation. Check the possible values in the API doc.
- type str
- The type of user. Check the possible values in the API doc.
- updated_
at str - The date and time of the last update of the IAM user.
- account
Root StringUser Id - The ID of the account root user associated with the user.
- created
At String - The date and time of the creation of the IAM user.
- deletable Boolean
- Whether the IAM user is deletable.
- email String
- The email of the IAM user.
- last
Login StringAt - The date of the last login.
- mfa Boolean
- Whether the MFA is enabled.
- organization
Id String organization_id
) The ID of the organization the user is associated with.- status String
- The status of user invitation. Check the possible values in the API doc.
- type String
- The type of user. Check the possible values in the API doc.
- updated
At String - The date and time of the last update of the IAM user.
Import
IAM users can be imported using the {id}
, e.g.
bash
$ pulumi import scaleway:index/iamUser:IamUser basic 11111111-1111-1111-1111-111111111111
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.