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,
});
import pulumi
import pulumi_ucloud as ucloud
foo = ucloud.IamUser("foo",
is_frozen=False,
login_enable=False)
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
})
}
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,
});
});
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());
}
}
resources:
foo:
type: ucloud:IamUser
properties:
isFrozen: false
loginEnable: false
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 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 Ucloud.IamUser("iamUserResource", new()
{
DisplayName = "string",
Email = "string",
IamUserId = "string",
IsFrozen = false,
LoginEnable = false,
Name = "string",
});
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"),
})
var iamUserResource = new IamUser("iamUserResource", IamUserArgs.builder()
.displayName("string")
.email("string")
.iamUserId("string")
.isFrozen(false)
.loginEnable(false)
.name("string")
.build());
iam_user_resource = ucloud.IamUser("iamUserResource",
display_name="string",
email="string",
iam_user_id="string",
is_frozen=False,
login_enable=False,
name="string")
const iamUserResource = new ucloud.IamUser("iamUserResource", {
displayName: "string",
email: "string",
iamUserId: "string",
isFrozen: false,
loginEnable: false,
name: "string",
});
type: ucloud:IamUser
properties:
displayName: string
email: string
iamUserId: string
isFrozen: false
loginEnable: false
name: 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:
- Display
Name string - Name of the IAM user which for display.
- Email string
- Email of the IAM user.
- Iam
User stringId - Is
Frozen bool - true or false, default is false.
- Login
Enable bool - true or false, default is true.
- Name string
- Name of the IAM user.
- Display
Name string - Name of the IAM user which for display.
- Email string
- Email of the IAM user.
- Iam
User stringId - Is
Frozen bool - true or false, default is false.
- Login
Enable bool - true or false, default is true.
- Name string
- Name of the IAM user.
- display
Name String - Name of the IAM user which for display.
- email String
- Email of the IAM user.
- iam
User StringId - is
Frozen Boolean - true or false, default is false.
- login
Enable Boolean - true or false, default is true.
- name String
- Name of the IAM user.
- display
Name string - Name of the IAM user which for display.
- email string
- Email of the IAM user.
- iam
User stringId - is
Frozen boolean - true or false, default is false.
- login
Enable 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_ strid - 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.
- display
Name String - Name of the IAM user which for display.
- email String
- Email of the IAM user.
- iam
User StringId - is
Frozen Boolean - true or false, default is false.
- login
Enable 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:
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
- 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.
- Display
Name string - Name of the IAM user which for display.
- Email string
- Email of the IAM user.
- Iam
User stringId - Is
Frozen bool - true or false, default is false.
- Login
Enable bool - true or false, default is true.
- Name string
- Name of the IAM user.
- Status string
- Active, Inactive or Frozen.
- Display
Name string - Name of the IAM user which for display.
- Email string
- Email of the IAM user.
- Iam
User stringId - Is
Frozen bool - true or false, default is false.
- Login
Enable bool - true or false, default is true.
- Name string
- Name of the IAM user.
- Status string
- Active, Inactive or Frozen.
- display
Name String - Name of the IAM user which for display.
- email String
- Email of the IAM user.
- iam
User StringId - is
Frozen Boolean - true or false, default is false.
- login
Enable Boolean - true or false, default is true.
- name String
- Name of the IAM user.
- status String
- Active, Inactive or Frozen.
- display
Name string - Name of the IAM user which for display.
- email string
- Email of the IAM user.
- iam
User stringId - is
Frozen boolean - true or false, default is false.
- login
Enable 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_ strid - 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.
- display
Name String - Name of the IAM user which for display.
- email String
- Email of the IAM user.
- iam
User StringId - is
Frozen Boolean - true or false, default is false.
- login
Enable 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
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.