1. Packages
  2. Ucloud Provider
  3. API Docs
  4. IamUser
ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud

ucloud.IamUser

Explore with Pulumi AI

Provides an IAM user resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";

const foo = new ucloud.IamUser("foo", {
    isFrozen: false,
    loginEnable: false,
});
Copy
import pulumi
import pulumi_ucloud as ucloud

foo = ucloud.IamUser("foo",
    is_frozen=False,
    login_enable=False)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ucloud.NewIamUser(ctx, "foo", &ucloud.IamUserArgs{
			IsFrozen:    pulumi.Bool(false),
			LoginEnable: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;

return await Deployment.RunAsync(() => 
{
    var foo = new Ucloud.IamUser("foo", new()
    {
        IsFrozen = false,
        LoginEnable = false,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ucloud.IamUser;
import com.pulumi.ucloud.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 foo = new IamUser("foo", IamUserArgs.builder()
            .isFrozen(false)
            .loginEnable(false)
            .build());

    }
}
Copy
resources:
  foo:
    type: ucloud:IamUser
    properties:
      isFrozen: false
      loginEnable: false
Copy

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: Optional[IamUserArgs] = None,
            opts: Optional[ResourceOptions] = None)

@overload
def IamUser(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            display_name: Optional[str] = None,
            email: Optional[str] = None,
            iam_user_id: Optional[str] = None,
            is_frozen: Optional[bool] = None,
            login_enable: Optional[bool] = None,
            name: Optional[str] = None)
func NewIamUser(ctx *Context, name string, args *IamUserArgs, opts ...ResourceOption) (*IamUser, error)
public IamUser(string name, IamUserArgs? args = null, CustomResourceOptions? opts = null)
public IamUser(String name, IamUserArgs args)
public IamUser(String name, IamUserArgs args, CustomResourceOptions options)
type: ucloud:IamUser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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 Ucloud.IamUser("iamUserResource", new()
{
    DisplayName = "string",
    Email = "string",
    IamUserId = "string",
    IsFrozen = false,
    LoginEnable = false,
    Name = "string",
});
Copy
example, err := ucloud.NewIamUser(ctx, "iamUserResource", &ucloud.IamUserArgs{
	DisplayName: pulumi.String("string"),
	Email:       pulumi.String("string"),
	IamUserId:   pulumi.String("string"),
	IsFrozen:    pulumi.Bool(false),
	LoginEnable: pulumi.Bool(false),
	Name:        pulumi.String("string"),
})
Copy
var iamUserResource = new IamUser("iamUserResource", IamUserArgs.builder()
    .displayName("string")
    .email("string")
    .iamUserId("string")
    .isFrozen(false)
    .loginEnable(false)
    .name("string")
    .build());
Copy
iam_user_resource = ucloud.IamUser("iamUserResource",
    display_name="string",
    email="string",
    iam_user_id="string",
    is_frozen=False,
    login_enable=False,
    name="string")
Copy
const iamUserResource = new ucloud.IamUser("iamUserResource", {
    displayName: "string",
    email: "string",
    iamUserId: "string",
    isFrozen: false,
    loginEnable: false,
    name: "string",
});
Copy
type: ucloud:IamUser
properties:
    displayName: string
    email: string
    iamUserId: string
    isFrozen: false
    loginEnable: false
    name: string
Copy

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:

DisplayName string
Name of the IAM user which for display.
Email string
Email of the IAM user.
IamUserId string
IsFrozen bool
true or false, default is false.
LoginEnable bool
true or false, default is true.
Name string
Name of the IAM user.
DisplayName string
Name of the IAM user which for display.
Email string
Email of the IAM user.
IamUserId string
IsFrozen bool
true or false, default is false.
LoginEnable bool
true or false, default is true.
Name string
Name of the IAM user.
displayName String
Name of the IAM user which for display.
email String
Email of the IAM user.
iamUserId String
isFrozen Boolean
true or false, default is false.
loginEnable Boolean
true or false, default is true.
name String
Name of the IAM user.
displayName string
Name of the IAM user which for display.
email string
Email of the IAM user.
iamUserId string
isFrozen boolean
true or false, default is false.
loginEnable boolean
true or false, default is true.
name string
Name of the IAM user.
display_name str
Name of the IAM user which for display.
email str
Email of the IAM user.
iam_user_id str
is_frozen bool
true or false, default is false.
login_enable bool
true or false, default is true.
name str
Name of the IAM user.
displayName String
Name of the IAM user which for display.
email String
Email of the IAM user.
iamUserId String
isFrozen Boolean
true or false, default is false.
loginEnable Boolean
true or false, default is true.
name String
Name of the IAM user.

Outputs

All input properties are implicitly available as output properties. Additionally, the IamUser resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Status string
Active, Inactive or Frozen.
Id string
The provider-assigned unique ID for this managed resource.
Status string
Active, Inactive or Frozen.
id String
The provider-assigned unique ID for this managed resource.
status String
Active, Inactive or Frozen.
id string
The provider-assigned unique ID for this managed resource.
status string
Active, Inactive or Frozen.
id str
The provider-assigned unique ID for this managed resource.
status str
Active, Inactive or Frozen.
id String
The provider-assigned unique ID for this managed resource.
status String
Active, Inactive or Frozen.

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,
        display_name: Optional[str] = None,
        email: Optional[str] = None,
        iam_user_id: Optional[str] = None,
        is_frozen: Optional[bool] = None,
        login_enable: Optional[bool] = None,
        name: Optional[str] = None,
        status: 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)
resources:  _:    type: ucloud:IamUser    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
DisplayName string
Name of the IAM user which for display.
Email string
Email of the IAM user.
IamUserId string
IsFrozen bool
true or false, default is false.
LoginEnable bool
true or false, default is true.
Name string
Name of the IAM user.
Status string
Active, Inactive or Frozen.
DisplayName string
Name of the IAM user which for display.
Email string
Email of the IAM user.
IamUserId string
IsFrozen bool
true or false, default is false.
LoginEnable bool
true or false, default is true.
Name string
Name of the IAM user.
Status string
Active, Inactive or Frozen.
displayName String
Name of the IAM user which for display.
email String
Email of the IAM user.
iamUserId String
isFrozen Boolean
true or false, default is false.
loginEnable Boolean
true or false, default is true.
name String
Name of the IAM user.
status String
Active, Inactive or Frozen.
displayName string
Name of the IAM user which for display.
email string
Email of the IAM user.
iamUserId string
isFrozen boolean
true or false, default is false.
loginEnable boolean
true or false, default is true.
name string
Name of the IAM user.
status string
Active, Inactive or Frozen.
display_name str
Name of the IAM user which for display.
email str
Email of the IAM user.
iam_user_id str
is_frozen bool
true or false, default is false.
login_enable bool
true or false, default is true.
name str
Name of the IAM user.
status str
Active, Inactive or Frozen.
displayName String
Name of the IAM user which for display.
email String
Email of the IAM user.
iamUserId String
isFrozen Boolean
true or false, default is false.
loginEnable Boolean
true or false, default is true.
name String
Name of the IAM user.
status String
Active, Inactive or Frozen.

Import

IAM group can be imported using name of user, e.g.

$ pulumi import ucloud:index/iamUser:IamUser example Administrator
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ucloud ucloud/terraform-provider-ucloud
License
Notes
This Pulumi package is based on the ucloud Terraform Provider.