Alibaba Cloud v3.37.0, May 15 23
Alibaba Cloud v3.37.0, May 15 23
alicloud.cloudsso.User
Explore with Pulumi AI
Provides a Cloud SSO User resource.
For information about Cloud SSO User and how to use it, see What is User.
NOTE: Available in v1.140.0+.
NOTE: Cloud SSO Only Support
cn-shanghai
Andus-west-1
Region
Create User Resource
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
directory_id: Optional[str] = None,
display_name: Optional[str] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
status: Optional[str] = None,
user_name: Optional[str] = None)
@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
type: alicloud:cloudsso:User
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- 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 UserArgs
- 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 UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
User Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The User resource accepts the following input properties:
- Directory
Id string The ID of the Directory.
- User
Name string The name of user. The name must be
1
to64
characters in length and can contain letters, digits, at signs (@), periods (.), underscores (_), and hyphens (-).- Description string
The description of user. The description can be up to
1024
characters long.- Display
Name string The display name of user. The display name can be up to
256
characters long.- Email string
The User's Contact Email Address. The email can be up to
128
characters long.- First
Name string The first name of user. The first_name can be up to
64
characters long.- Last
Name string The last name of user. The last_name can be up to
64
characters long.- Status string
The status of user. Valid values:
Disabled
,Enabled
.
- Directory
Id string The ID of the Directory.
- User
Name string The name of user. The name must be
1
to64
characters in length and can contain letters, digits, at signs (@), periods (.), underscores (_), and hyphens (-).- Description string
The description of user. The description can be up to
1024
characters long.- Display
Name string The display name of user. The display name can be up to
256
characters long.- Email string
The User's Contact Email Address. The email can be up to
128
characters long.- First
Name string The first name of user. The first_name can be up to
64
characters long.- Last
Name string The last name of user. The last_name can be up to
64
characters long.- Status string
The status of user. Valid values:
Disabled
,Enabled
.
- directory
Id String The ID of the Directory.
- user
Name String The name of user. The name must be
1
to64
characters in length and can contain letters, digits, at signs (@), periods (.), underscores (_), and hyphens (-).- description String
The description of user. The description can be up to
1024
characters long.- display
Name String The display name of user. The display name can be up to
256
characters long.- email String
The User's Contact Email Address. The email can be up to
128
characters long.- first
Name String The first name of user. The first_name can be up to
64
characters long.- last
Name String The last name of user. The last_name can be up to
64
characters long.- status String
The status of user. Valid values:
Disabled
,Enabled
.
- directory
Id string The ID of the Directory.
- user
Name string The name of user. The name must be
1
to64
characters in length and can contain letters, digits, at signs (@), periods (.), underscores (_), and hyphens (-).- description string
The description of user. The description can be up to
1024
characters long.- display
Name string The display name of user. The display name can be up to
256
characters long.- email string
The User's Contact Email Address. The email can be up to
128
characters long.- first
Name string The first name of user. The first_name can be up to
64
characters long.- last
Name string The last name of user. The last_name can be up to
64
characters long.- status string
The status of user. Valid values:
Disabled
,Enabled
.
- directory_
id str The ID of the Directory.
- user_
name str The name of user. The name must be
1
to64
characters in length and can contain letters, digits, at signs (@), periods (.), underscores (_), and hyphens (-).- description str
The description of user. The description can be up to
1024
characters long.- display_
name str The display name of user. The display name can be up to
256
characters long.- email str
The User's Contact Email Address. The email can be up to
128
characters long.- first_
name str The first name of user. The first_name can be up to
64
characters long.- last_
name str The last name of user. The last_name can be up to
64
characters long.- status str
The status of user. Valid values:
Disabled
,Enabled
.
- directory
Id String The ID of the Directory.
- user
Name String The name of user. The name must be
1
to64
characters in length and can contain letters, digits, at signs (@), periods (.), underscores (_), and hyphens (-).- description String
The description of user. The description can be up to
1024
characters long.- display
Name String The display name of user. The display name can be up to
256
characters long.- email String
The User's Contact Email Address. The email can be up to
128
characters long.- first
Name String The first name of user. The first_name can be up to
64
characters long.- last
Name String The last name of user. The last_name can be up to
64
characters long.- status String
The status of user. Valid values:
Disabled
,Enabled
.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
Look up Existing User Resource
Get an existing User 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?: UserState, opts?: CustomResourceOptions): User
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
directory_id: Optional[str] = None,
display_name: Optional[str] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
status: Optional[str] = None,
user_id: Optional[str] = None,
user_name: Optional[str] = None) -> User
func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
public static User get(String name, Output<String> id, UserState 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.
- Description string
The description of user. The description can be up to
1024
characters long.- Directory
Id string The ID of the Directory.
- Display
Name string The display name of user. The display name can be up to
256
characters long.- Email string
The User's Contact Email Address. The email can be up to
128
characters long.- First
Name string The first name of user. The first_name can be up to
64
characters long.- Last
Name string The last name of user. The last_name can be up to
64
characters long.- Status string
The status of user. Valid values:
Disabled
,Enabled
.- User
Id string The User ID of the group.
- User
Name string The name of user. The name must be
1
to64
characters in length and can contain letters, digits, at signs (@), periods (.), underscores (_), and hyphens (-).
- Description string
The description of user. The description can be up to
1024
characters long.- Directory
Id string The ID of the Directory.
- Display
Name string The display name of user. The display name can be up to
256
characters long.- Email string
The User's Contact Email Address. The email can be up to
128
characters long.- First
Name string The first name of user. The first_name can be up to
64
characters long.- Last
Name string The last name of user. The last_name can be up to
64
characters long.- Status string
The status of user. Valid values:
Disabled
,Enabled
.- User
Id string The User ID of the group.
- User
Name string The name of user. The name must be
1
to64
characters in length and can contain letters, digits, at signs (@), periods (.), underscores (_), and hyphens (-).
- description String
The description of user. The description can be up to
1024
characters long.- directory
Id String The ID of the Directory.
- display
Name String The display name of user. The display name can be up to
256
characters long.- email String
The User's Contact Email Address. The email can be up to
128
characters long.- first
Name String The first name of user. The first_name can be up to
64
characters long.- last
Name String The last name of user. The last_name can be up to
64
characters long.- status String
The status of user. Valid values:
Disabled
,Enabled
.- user
Id String The User ID of the group.
- user
Name String The name of user. The name must be
1
to64
characters in length and can contain letters, digits, at signs (@), periods (.), underscores (_), and hyphens (-).
- description string
The description of user. The description can be up to
1024
characters long.- directory
Id string The ID of the Directory.
- display
Name string The display name of user. The display name can be up to
256
characters long.- email string
The User's Contact Email Address. The email can be up to
128
characters long.- first
Name string The first name of user. The first_name can be up to
64
characters long.- last
Name string The last name of user. The last_name can be up to
64
characters long.- status string
The status of user. Valid values:
Disabled
,Enabled
.- user
Id string The User ID of the group.
- user
Name string The name of user. The name must be
1
to64
characters in length and can contain letters, digits, at signs (@), periods (.), underscores (_), and hyphens (-).
- description str
The description of user. The description can be up to
1024
characters long.- directory_
id str The ID of the Directory.
- display_
name str The display name of user. The display name can be up to
256
characters long.- email str
The User's Contact Email Address. The email can be up to
128
characters long.- first_
name str The first name of user. The first_name can be up to
64
characters long.- last_
name str The last name of user. The last_name can be up to
64
characters long.- status str
The status of user. Valid values:
Disabled
,Enabled
.- user_
id str The User ID of the group.
- user_
name str The name of user. The name must be
1
to64
characters in length and can contain letters, digits, at signs (@), periods (.), underscores (_), and hyphens (-).
- description String
The description of user. The description can be up to
1024
characters long.- directory
Id String The ID of the Directory.
- display
Name String The display name of user. The display name can be up to
256
characters long.- email String
The User's Contact Email Address. The email can be up to
128
characters long.- first
Name String The first name of user. The first_name can be up to
64
characters long.- last
Name String The last name of user. The last_name can be up to
64
characters long.- status String
The status of user. Valid values:
Disabled
,Enabled
.- user
Id String The User ID of the group.
- user
Name String The name of user. The name must be
1
to64
characters in length and can contain letters, digits, at signs (@), periods (.), underscores (_), and hyphens (-).
Import
Cloud SSO User can be imported using the id, e.g.
$ pulumi import alicloud:cloudsso/user:User example <directory_id>:<user_id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.