IAM子用户是访问控制的一种身份,由账号或是拥有权限的用户创建。用户被授予权限后,可登录控制台或使用访问密钥调用API访问云资源。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
userDemo:
type: bytepluscc:iam:User
name: UserDemo
properties:
userName: UserDemo
description: user description
groups:
- UserGroupDemo
policies:
- policy_name: TOSReadOnlyAccess
policy_type: System
tags:
- key: env
value: test
Create User Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
user_name: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
email: Optional[str] = None,
email_is_verify: Optional[bool] = None,
groups: Optional[Sequence[str]] = None,
login_profile: Optional[UserLoginProfileArgs] = None,
mobile_phone: Optional[str] = None,
mobile_phone_is_verify: Optional[bool] = None,
policies: Optional[Sequence[UserPolicyArgs]] = None,
security_config: Optional[UserSecurityConfigArgs] = None,
tags: Optional[Sequence[UserTagArgs]] = None)func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)public User(string name, UserArgs args, CustomResourceOptions? opts = null)type: bytepluscc:iam:User
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 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var byteplusccUserResource = new Bytepluscc.Iam.User("byteplusccUserResource", new()
{
UserName = "string",
Description = "string",
DisplayName = "string",
Email = "string",
EmailIsVerify = false,
Groups = new[]
{
"string",
},
LoginProfile = new Bytepluscc.Iam.Inputs.UserLoginProfileArgs
{
CreateDate = "string",
LastLoginDate = "string",
LastLoginIp = "string",
LastResetPasswordTime = 0,
LoginAllowed = false,
LoginLocked = false,
Password = "string",
PasswordExpireAt = 0,
PasswordResetRequired = false,
SafeAuthExemptDuration = 0,
SafeAuthExemptRequired = 0,
SafeAuthExemptUnit = 0,
SafeAuthFlag = false,
SafeAuthType = "string",
UpdateDate = "string",
},
MobilePhone = "string",
MobilePhoneIsVerify = false,
Policies = new[]
{
new Bytepluscc.Iam.Inputs.UserPolicyArgs
{
PolicyName = "string",
PolicyType = "string",
},
},
SecurityConfig = new Bytepluscc.Iam.Inputs.UserSecurityConfigArgs
{
SafeAuthClose = 0,
SafeAuthExemptDuration = 0,
SafeAuthType = "string",
},
Tags = new[]
{
new Bytepluscc.Iam.Inputs.UserTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := iam.NewUser(ctx, "byteplusccUserResource", &iam.UserArgs{
UserName: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Email: pulumi.String("string"),
EmailIsVerify: pulumi.Bool(false),
Groups: pulumi.StringArray{
pulumi.String("string"),
},
LoginProfile: &iam.UserLoginProfileArgs{
CreateDate: pulumi.String("string"),
LastLoginDate: pulumi.String("string"),
LastLoginIp: pulumi.String("string"),
LastResetPasswordTime: pulumi.Float64(0),
LoginAllowed: pulumi.Bool(false),
LoginLocked: pulumi.Bool(false),
Password: pulumi.String("string"),
PasswordExpireAt: pulumi.Float64(0),
PasswordResetRequired: pulumi.Bool(false),
SafeAuthExemptDuration: pulumi.Float64(0),
SafeAuthExemptRequired: pulumi.Float64(0),
SafeAuthExemptUnit: pulumi.Float64(0),
SafeAuthFlag: pulumi.Bool(false),
SafeAuthType: pulumi.String("string"),
UpdateDate: pulumi.String("string"),
},
MobilePhone: pulumi.String("string"),
MobilePhoneIsVerify: pulumi.Bool(false),
Policies: iam.UserPolicyArray{
&iam.UserPolicyArgs{
PolicyName: pulumi.String("string"),
PolicyType: pulumi.String("string"),
},
},
SecurityConfig: &iam.UserSecurityConfigArgs{
SafeAuthClose: pulumi.Float64(0),
SafeAuthExemptDuration: pulumi.Float64(0),
SafeAuthType: pulumi.String("string"),
},
Tags: iam.UserTagArray{
&iam.UserTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var byteplusccUserResource = new com.byteplus.bytepluscc.iam.User("byteplusccUserResource", com.byteplus.bytepluscc.iam.UserArgs.builder()
.userName("string")
.description("string")
.displayName("string")
.email("string")
.emailIsVerify(false)
.groups("string")
.loginProfile(UserLoginProfileArgs.builder()
.createDate("string")
.lastLoginDate("string")
.lastLoginIp("string")
.lastResetPasswordTime(0.0)
.loginAllowed(false)
.loginLocked(false)
.password("string")
.passwordExpireAt(0.0)
.passwordResetRequired(false)
.safeAuthExemptDuration(0.0)
.safeAuthExemptRequired(0.0)
.safeAuthExemptUnit(0.0)
.safeAuthFlag(false)
.safeAuthType("string")
.updateDate("string")
.build())
.mobilePhone("string")
.mobilePhoneIsVerify(false)
.policies(UserPolicyArgs.builder()
.policyName("string")
.policyType("string")
.build())
.securityConfig(UserSecurityConfigArgs.builder()
.safeAuthClose(0.0)
.safeAuthExemptDuration(0.0)
.safeAuthType("string")
.build())
.tags(UserTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
bytepluscc_user_resource = bytepluscc.iam.User("byteplusccUserResource",
user_name="string",
description="string",
display_name="string",
email="string",
email_is_verify=False,
groups=["string"],
login_profile={
"create_date": "string",
"last_login_date": "string",
"last_login_ip": "string",
"last_reset_password_time": 0,
"login_allowed": False,
"login_locked": False,
"password": "string",
"password_expire_at": 0,
"password_reset_required": False,
"safe_auth_exempt_duration": 0,
"safe_auth_exempt_required": 0,
"safe_auth_exempt_unit": 0,
"safe_auth_flag": False,
"safe_auth_type": "string",
"update_date": "string",
},
mobile_phone="string",
mobile_phone_is_verify=False,
policies=[{
"policy_name": "string",
"policy_type": "string",
}],
security_config={
"safe_auth_close": 0,
"safe_auth_exempt_duration": 0,
"safe_auth_type": "string",
},
tags=[{
"key": "string",
"value": "string",
}])
const byteplusccUserResource = new bytepluscc.iam.User("byteplusccUserResource", {
userName: "string",
description: "string",
displayName: "string",
email: "string",
emailIsVerify: false,
groups: ["string"],
loginProfile: {
createDate: "string",
lastLoginDate: "string",
lastLoginIp: "string",
lastResetPasswordTime: 0,
loginAllowed: false,
loginLocked: false,
password: "string",
passwordExpireAt: 0,
passwordResetRequired: false,
safeAuthExemptDuration: 0,
safeAuthExemptRequired: 0,
safeAuthExemptUnit: 0,
safeAuthFlag: false,
safeAuthType: "string",
updateDate: "string",
},
mobilePhone: "string",
mobilePhoneIsVerify: false,
policies: [{
policyName: "string",
policyType: "string",
}],
securityConfig: {
safeAuthClose: 0,
safeAuthExemptDuration: 0,
safeAuthType: "string",
},
tags: [{
key: "string",
value: "string",
}],
});
type: bytepluscc:iam:User
properties:
description: string
displayName: string
email: string
emailIsVerify: false
groups:
- string
loginProfile:
createDate: string
lastLoginDate: string
lastLoginIp: string
lastResetPasswordTime: 0
loginAllowed: false
loginLocked: false
password: string
passwordExpireAt: 0
passwordResetRequired: false
safeAuthExemptDuration: 0
safeAuthExemptRequired: 0
safeAuthExemptUnit: 0
safeAuthFlag: false
safeAuthType: string
updateDate: string
mobilePhone: string
mobilePhoneIsVerify: false
policies:
- policyName: string
policyType: string
securityConfig:
safeAuthClose: 0
safeAuthExemptDuration: 0
safeAuthType: string
tags:
- key: string
value: string
userName: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The User resource accepts the following input properties:
- User
Name string - 子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
- Description string
- 子用户对应的描述信息,长度不超过255。
- Display
Name string - 子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
- Email string
- 子用户对应的电子邮件地址。
- Email
Is boolVerify - 子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
- Groups List<string>
- 子用户归属的用户组。
- Login
Profile Byteplus.User Login Profile - 子用户的登录配置。
- Mobile
Phone string - 子用户对应的手机号。
- Mobile
Phone boolIs Verify - 子用户手机号是否已验证。true代表已验证,false代表未验证。
- Policies
List<Byteplus.
User Policy> - Security
Config Byteplus.User Security Config - 子用户的操作保护配置。
-
List<Byteplus.
User Tag>
- User
Name string - 子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
- Description string
- 子用户对应的描述信息,长度不超过255。
- Display
Name string - 子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
- Email string
- 子用户对应的电子邮件地址。
- Email
Is boolVerify - 子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
- Groups []string
- 子用户归属的用户组。
- Login
Profile UserLogin Profile Args - 子用户的登录配置。
- Mobile
Phone string - 子用户对应的手机号。
- Mobile
Phone boolIs Verify - 子用户手机号是否已验证。true代表已验证,false代表未验证。
- Policies
[]User
Policy Args - Security
Config UserSecurity Config Args - 子用户的操作保护配置。
-
[]User
Tag Args
- user
Name String - 子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
- description String
- 子用户对应的描述信息,长度不超过255。
- display
Name String - 子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
- email String
- 子用户对应的电子邮件地址。
- email
Is BooleanVerify - 子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
- groups List<String>
- 子用户归属的用户组。
- login
Profile UserLogin Profile - 子用户的登录配置。
- mobile
Phone String - 子用户对应的手机号。
- mobile
Phone BooleanIs Verify - 子用户手机号是否已验证。true代表已验证,false代表未验证。
- policies
List<User
Policy> - security
Config UserSecurity Config - 子用户的操作保护配置。
-
List<User
Tag>
- user
Name string - 子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
- description string
- 子用户对应的描述信息,长度不超过255。
- display
Name string - 子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
- email string
- 子用户对应的电子邮件地址。
- email
Is booleanVerify - 子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
- groups string[]
- 子用户归属的用户组。
- login
Profile UserLogin Profile - 子用户的登录配置。
- mobile
Phone string - 子用户对应的手机号。
- mobile
Phone booleanIs Verify - 子用户手机号是否已验证。true代表已验证,false代表未验证。
- policies
User
Policy[] - security
Config UserSecurity Config - 子用户的操作保护配置。
-
User
Tag[]
- user_
name str - 子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
- description str
- 子用户对应的描述信息,长度不超过255。
- display_
name str - 子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
- email str
- 子用户对应的电子邮件地址。
- email_
is_ boolverify - 子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
- groups Sequence[str]
- 子用户归属的用户组。
- login_
profile UserLogin Profile Args - 子用户的登录配置。
- mobile_
phone str - 子用户对应的手机号。
- mobile_
phone_ boolis_ verify - 子用户手机号是否已验证。true代表已验证,false代表未验证。
- policies
Sequence[User
Policy Args] - security_
config UserSecurity Config Args - 子用户的操作保护配置。
-
Sequence[User
Tag Args]
- user
Name String - 子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
- description String
- 子用户对应的描述信息,长度不超过255。
- display
Name String - 子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
- email String
- 子用户对应的电子邮件地址。
- email
Is BooleanVerify - 子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
- groups List<String>
- 子用户归属的用户组。
- login
Profile Property Map - 子用户的登录配置。
- mobile
Phone String - 子用户对应的手机号。
- mobile
Phone BooleanIs Verify - 子用户手机号是否已验证。true代表已验证,false代表未验证。
- policies List<Property Map>
- security
Config Property Map - 子用户的操作保护配置。
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
- Access
Keys List<Byteplus.User Access Key> - Account
Id double - 子用户归属的主账号。
- Create
Date string - 子用户对应的创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Trn string
- 子用户对应的Trn表达式。
- Update
Date string - 子用户对应的更新时间。
- User
Id int - 子用户的ID。
- Access
Keys []UserAccess Key - Account
Id float64 - 子用户归属的主账号。
- Create
Date string - 子用户对应的创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Trn string
- 子用户对应的Trn表达式。
- Update
Date string - 子用户对应的更新时间。
- User
Id int - 子用户的ID。
- access
Keys List<UserAccess Key> - account
Id Double - 子用户归属的主账号。
- create
Date String - 子用户对应的创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- trn String
- 子用户对应的Trn表达式。
- update
Date String - 子用户对应的更新时间。
- user
Id Integer - 子用户的ID。
- access
Keys UserAccess Key[] - account
Id number - 子用户归属的主账号。
- create
Date string - 子用户对应的创建时间。
- id string
- The provider-assigned unique ID for this managed resource.
- trn string
- 子用户对应的Trn表达式。
- update
Date string - 子用户对应的更新时间。
- user
Id number - 子用户的ID。
- access_
keys Sequence[UserAccess Key] - account_
id float - 子用户归属的主账号。
- create_
date str - 子用户对应的创建时间。
- id str
- The provider-assigned unique ID for this managed resource.
- trn str
- 子用户对应的Trn表达式。
- update_
date str - 子用户对应的更新时间。
- user_
id int - 子用户的ID。
- access
Keys List<Property Map> - account
Id Number - 子用户归属的主账号。
- create
Date String - 子用户对应的创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- trn String
- 子用户对应的Trn表达式。
- update
Date String - 子用户对应的更新时间。
- user
Id Number - 子用户的ID。
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,
access_keys: Optional[Sequence[UserAccessKeyArgs]] = None,
account_id: Optional[float] = None,
create_date: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
email: Optional[str] = None,
email_is_verify: Optional[bool] = None,
groups: Optional[Sequence[str]] = None,
login_profile: Optional[UserLoginProfileArgs] = None,
mobile_phone: Optional[str] = None,
mobile_phone_is_verify: Optional[bool] = None,
policies: Optional[Sequence[UserPolicyArgs]] = None,
security_config: Optional[UserSecurityConfigArgs] = None,
tags: Optional[Sequence[UserTagArgs]] = None,
trn: Optional[str] = None,
update_date: Optional[str] = None,
user_id: Optional[int] = None,
user_name: Optional[str] = None) -> Userfunc 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)resources: _: type: bytepluscc:iam:User 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.
- Access
Keys List<Byteplus.User Access Key> - Account
Id double - 子用户归属的主账号。
- Create
Date string - 子用户对应的创建时间。
- Description string
- 子用户对应的描述信息,长度不超过255。
- Display
Name string - 子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
- Email string
- 子用户对应的电子邮件地址。
- Email
Is boolVerify - 子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
- Groups List<string>
- 子用户归属的用户组。
- Login
Profile Byteplus.User Login Profile - 子用户的登录配置。
- Mobile
Phone string - 子用户对应的手机号。
- Mobile
Phone boolIs Verify - 子用户手机号是否已验证。true代表已验证,false代表未验证。
- Policies
List<Byteplus.
User Policy> - Security
Config Byteplus.User Security Config - 子用户的操作保护配置。
-
List<Byteplus.
User Tag> - Trn string
- 子用户对应的Trn表达式。
- Update
Date string - 子用户对应的更新时间。
- User
Id int - 子用户的ID。
- User
Name string - 子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
- Access
Keys []UserAccess Key Args - Account
Id float64 - 子用户归属的主账号。
- Create
Date string - 子用户对应的创建时间。
- Description string
- 子用户对应的描述信息,长度不超过255。
- Display
Name string - 子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
- Email string
- 子用户对应的电子邮件地址。
- Email
Is boolVerify - 子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
- Groups []string
- 子用户归属的用户组。
- Login
Profile UserLogin Profile Args - 子用户的登录配置。
- Mobile
Phone string - 子用户对应的手机号。
- Mobile
Phone boolIs Verify - 子用户手机号是否已验证。true代表已验证,false代表未验证。
- Policies
[]User
Policy Args - Security
Config UserSecurity Config Args - 子用户的操作保护配置。
-
[]User
Tag Args - Trn string
- 子用户对应的Trn表达式。
- Update
Date string - 子用户对应的更新时间。
- User
Id int - 子用户的ID。
- User
Name string - 子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
- access
Keys List<UserAccess Key> - account
Id Double - 子用户归属的主账号。
- create
Date String - 子用户对应的创建时间。
- description String
- 子用户对应的描述信息,长度不超过255。
- display
Name String - 子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
- email String
- 子用户对应的电子邮件地址。
- email
Is BooleanVerify - 子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
- groups List<String>
- 子用户归属的用户组。
- login
Profile UserLogin Profile - 子用户的登录配置。
- mobile
Phone String - 子用户对应的手机号。
- mobile
Phone BooleanIs Verify - 子用户手机号是否已验证。true代表已验证,false代表未验证。
- policies
List<User
Policy> - security
Config UserSecurity Config - 子用户的操作保护配置。
-
List<User
Tag> - trn String
- 子用户对应的Trn表达式。
- update
Date String - 子用户对应的更新时间。
- user
Id Integer - 子用户的ID。
- user
Name String - 子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
- access
Keys UserAccess Key[] - account
Id number - 子用户归属的主账号。
- create
Date string - 子用户对应的创建时间。
- description string
- 子用户对应的描述信息,长度不超过255。
- display
Name string - 子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
- email string
- 子用户对应的电子邮件地址。
- email
Is booleanVerify - 子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
- groups string[]
- 子用户归属的用户组。
- login
Profile UserLogin Profile - 子用户的登录配置。
- mobile
Phone string - 子用户对应的手机号。
- mobile
Phone booleanIs Verify - 子用户手机号是否已验证。true代表已验证,false代表未验证。
- policies
User
Policy[] - security
Config UserSecurity Config - 子用户的操作保护配置。
-
User
Tag[] - trn string
- 子用户对应的Trn表达式。
- update
Date string - 子用户对应的更新时间。
- user
Id number - 子用户的ID。
- user
Name string - 子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
- access_
keys Sequence[UserAccess Key Args] - account_
id float - 子用户归属的主账号。
- create_
date str - 子用户对应的创建时间。
- description str
- 子用户对应的描述信息,长度不超过255。
- display_
name str - 子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
- email str
- 子用户对应的电子邮件地址。
- email_
is_ boolverify - 子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
- groups Sequence[str]
- 子用户归属的用户组。
- login_
profile UserLogin Profile Args - 子用户的登录配置。
- mobile_
phone str - 子用户对应的手机号。
- mobile_
phone_ boolis_ verify - 子用户手机号是否已验证。true代表已验证,false代表未验证。
- policies
Sequence[User
Policy Args] - security_
config UserSecurity Config Args - 子用户的操作保护配置。
-
Sequence[User
Tag Args] - trn str
- 子用户对应的Trn表达式。
- update_
date str - 子用户对应的更新时间。
- user_
id int - 子用户的ID。
- user_
name str - 子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
- access
Keys List<Property Map> - account
Id Number - 子用户归属的主账号。
- create
Date String - 子用户对应的创建时间。
- description String
- 子用户对应的描述信息,长度不超过255。
- display
Name String - 子用户对应的展示名称,用户显示名。长度1~128,仅支持中文、英文、数字、空格和.-_@符号。
- email String
- 子用户对应的电子邮件地址。
- email
Is BooleanVerify - 子用户电子邮件地址是否已验证。true代表已验证,false代表未验证。
- groups List<String>
- 子用户归属的用户组。
- login
Profile Property Map - 子用户的登录配置。
- mobile
Phone String - 子用户对应的手机号。
- mobile
Phone BooleanIs Verify - 子用户手机号是否已验证。true代表已验证,false代表未验证。
- policies List<Property Map>
- security
Config Property Map - 子用户的操作保护配置。
- List<Property Map>
- trn String
- 子用户对应的Trn表达式。
- update
Date String - 子用户对应的更新时间。
- user
Id Number - 子用户的ID。
- user
Name String - 子用户名称,用户名。长度1~64,支持英文、数字、下划线、和.-@符号。
Supporting Types
UserAccessKey, UserAccessKeyArgs
- Access
Key stringId - 访问密钥ID。
- Created
Time string - 访问密钥创建时间。
- Region string
- 最近一次使用的服务区域。
- Request
Time string - 访问密钥最近一次使用时间。
- Service string
- 最近一次使用的服务名称。
- Status string
- 访问密钥状态。Active代表启用,Inactive代表禁用。
- Updated
Time string - 访问密钥更新时间。
- User
Name string - 访问密钥Secret。
- Access
Key stringId - 访问密钥ID。
- Created
Time string - 访问密钥创建时间。
- Region string
- 最近一次使用的服务区域。
- Request
Time string - 访问密钥最近一次使用时间。
- Service string
- 最近一次使用的服务名称。
- Status string
- 访问密钥状态。Active代表启用,Inactive代表禁用。
- Updated
Time string - 访问密钥更新时间。
- User
Name string - 访问密钥Secret。
- access
Key StringId - 访问密钥ID。
- created
Time String - 访问密钥创建时间。
- region String
- 最近一次使用的服务区域。
- request
Time String - 访问密钥最近一次使用时间。
- service String
- 最近一次使用的服务名称。
- status String
- 访问密钥状态。Active代表启用,Inactive代表禁用。
- updated
Time String - 访问密钥更新时间。
- user
Name String - 访问密钥Secret。
- access
Key stringId - 访问密钥ID。
- created
Time string - 访问密钥创建时间。
- region string
- 最近一次使用的服务区域。
- request
Time string - 访问密钥最近一次使用时间。
- service string
- 最近一次使用的服务名称。
- status string
- 访问密钥状态。Active代表启用,Inactive代表禁用。
- updated
Time string - 访问密钥更新时间。
- user
Name string - 访问密钥Secret。
- access_
key_ strid - 访问密钥ID。
- created_
time str - 访问密钥创建时间。
- region str
- 最近一次使用的服务区域。
- request_
time str - 访问密钥最近一次使用时间。
- service str
- 最近一次使用的服务名称。
- status str
- 访问密钥状态。Active代表启用,Inactive代表禁用。
- updated_
time str - 访问密钥更新时间。
- user_
name str - 访问密钥Secret。
- access
Key StringId - 访问密钥ID。
- created
Time String - 访问密钥创建时间。
- region String
- 最近一次使用的服务区域。
- request
Time String - 访问密钥最近一次使用时间。
- service String
- 最近一次使用的服务名称。
- status String
- 访问密钥状态。Active代表启用,Inactive代表禁用。
- updated
Time String - 访问密钥更新时间。
- user
Name String - 访问密钥Secret。
UserLoginProfile, UserLoginProfileArgs
- Create
Date string - 登录配置创建时间。
- Last
Login stringDate - 上次登录时间。
- Last
Login stringIp - 上次登录IP。
- Last
Reset doublePassword Time - 上次重置密码的时间,上次重置密码的时间。0代表未设置过密码,非0代表过期时间的时间戳。
- Login
Allowed bool - 是否允许登录,是否允许登录。true代表允许,false代表不允许,默认为false。
- Login
Locked bool - 登录是否被锁定。true代表已锁定,false代表未锁定。管理员设置错误密码重试次数限制后,用户命中后登录会被锁定。
- Password string
- 登录密码。
- Password
Expire doubleAt - 密码过期时间。0代表永不过期,非0代表过期时间的时间戳。
- Password
Reset boolRequired - 下次登录是否需要重设密码,下次登录是否需要重设密码。true代表允许,false代表不允许,默认为false。
- Safe
Auth doubleExempt Duration - 登录保护豁免时长,登录保护豁免时长。支持设置1至7(天),或1至168(小时),或5至1440(分钟)。单位设置请参考SafeAuthExemptUnit参数。
- Safe
Auth doubleExempt Required - 是否开启登录保护豁免,是否开启登录保护豁免。0代表不开启,1代表开启。开启登录保护豁免后,验证完成后一定时间内登录将不再进行验证。
- Safe
Auth doubleExempt Unit - 登录保护豁免的时间单位,登录保护豁免的时间单位。0代表分钟,1代表小时,2代表天。
- Safe
Auth boolFlag - 是否开启登录保护,是否开启登录保护。true代表开启,false代表不开启,默认为false。
- Safe
Auth stringType - 登录保护类型,登录保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。可选vmfa, phone, email, 多个选项逗号隔开。
- Update
Date string - 登录配置更新时间。
- Create
Date string - 登录配置创建时间。
- Last
Login stringDate - 上次登录时间。
- Last
Login stringIp - 上次登录IP。
- Last
Reset float64Password Time - 上次重置密码的时间,上次重置密码的时间。0代表未设置过密码,非0代表过期时间的时间戳。
- Login
Allowed bool - 是否允许登录,是否允许登录。true代表允许,false代表不允许,默认为false。
- Login
Locked bool - 登录是否被锁定。true代表已锁定,false代表未锁定。管理员设置错误密码重试次数限制后,用户命中后登录会被锁定。
- Password string
- 登录密码。
- Password
Expire float64At - 密码过期时间。0代表永不过期,非0代表过期时间的时间戳。
- Password
Reset boolRequired - 下次登录是否需要重设密码,下次登录是否需要重设密码。true代表允许,false代表不允许,默认为false。
- Safe
Auth float64Exempt Duration - 登录保护豁免时长,登录保护豁免时长。支持设置1至7(天),或1至168(小时),或5至1440(分钟)。单位设置请参考SafeAuthExemptUnit参数。
- Safe
Auth float64Exempt Required - 是否开启登录保护豁免,是否开启登录保护豁免。0代表不开启,1代表开启。开启登录保护豁免后,验证完成后一定时间内登录将不再进行验证。
- Safe
Auth float64Exempt Unit - 登录保护豁免的时间单位,登录保护豁免的时间单位。0代表分钟,1代表小时,2代表天。
- Safe
Auth boolFlag - 是否开启登录保护,是否开启登录保护。true代表开启,false代表不开启,默认为false。
- Safe
Auth stringType - 登录保护类型,登录保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。可选vmfa, phone, email, 多个选项逗号隔开。
- Update
Date string - 登录配置更新时间。
- create
Date String - 登录配置创建时间。
- last
Login StringDate - 上次登录时间。
- last
Login StringIp - 上次登录IP。
- last
Reset DoublePassword Time - 上次重置密码的时间,上次重置密码的时间。0代表未设置过密码,非0代表过期时间的时间戳。
- login
Allowed Boolean - 是否允许登录,是否允许登录。true代表允许,false代表不允许,默认为false。
- login
Locked Boolean - 登录是否被锁定。true代表已锁定,false代表未锁定。管理员设置错误密码重试次数限制后,用户命中后登录会被锁定。
- password String
- 登录密码。
- password
Expire DoubleAt - 密码过期时间。0代表永不过期,非0代表过期时间的时间戳。
- password
Reset BooleanRequired - 下次登录是否需要重设密码,下次登录是否需要重设密码。true代表允许,false代表不允许,默认为false。
- safe
Auth DoubleExempt Duration - 登录保护豁免时长,登录保护豁免时长。支持设置1至7(天),或1至168(小时),或5至1440(分钟)。单位设置请参考SafeAuthExemptUnit参数。
- safe
Auth DoubleExempt Required - 是否开启登录保护豁免,是否开启登录保护豁免。0代表不开启,1代表开启。开启登录保护豁免后,验证完成后一定时间内登录将不再进行验证。
- safe
Auth DoubleExempt Unit - 登录保护豁免的时间单位,登录保护豁免的时间单位。0代表分钟,1代表小时,2代表天。
- safe
Auth BooleanFlag - 是否开启登录保护,是否开启登录保护。true代表开启,false代表不开启,默认为false。
- safe
Auth StringType - 登录保护类型,登录保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。可选vmfa, phone, email, 多个选项逗号隔开。
- update
Date String - 登录配置更新时间。
- create
Date string - 登录配置创建时间。
- last
Login stringDate - 上次登录时间。
- last
Login stringIp - 上次登录IP。
- last
Reset numberPassword Time - 上次重置密码的时间,上次重置密码的时间。0代表未设置过密码,非0代表过期时间的时间戳。
- login
Allowed boolean - 是否允许登录,是否允许登录。true代表允许,false代表不允许,默认为false。
- login
Locked boolean - 登录是否被锁定。true代表已锁定,false代表未锁定。管理员设置错误密码重试次数限制后,用户命中后登录会被锁定。
- password string
- 登录密码。
- password
Expire numberAt - 密码过期时间。0代表永不过期,非0代表过期时间的时间戳。
- password
Reset booleanRequired - 下次登录是否需要重设密码,下次登录是否需要重设密码。true代表允许,false代表不允许,默认为false。
- safe
Auth numberExempt Duration - 登录保护豁免时长,登录保护豁免时长。支持设置1至7(天),或1至168(小时),或5至1440(分钟)。单位设置请参考SafeAuthExemptUnit参数。
- safe
Auth numberExempt Required - 是否开启登录保护豁免,是否开启登录保护豁免。0代表不开启,1代表开启。开启登录保护豁免后,验证完成后一定时间内登录将不再进行验证。
- safe
Auth numberExempt Unit - 登录保护豁免的时间单位,登录保护豁免的时间单位。0代表分钟,1代表小时,2代表天。
- safe
Auth booleanFlag - 是否开启登录保护,是否开启登录保护。true代表开启,false代表不开启,默认为false。
- safe
Auth stringType - 登录保护类型,登录保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。可选vmfa, phone, email, 多个选项逗号隔开。
- update
Date string - 登录配置更新时间。
- create_
date str - 登录配置创建时间。
- last_
login_ strdate - 上次登录时间。
- last_
login_ strip - 上次登录IP。
- last_
reset_ floatpassword_ time - 上次重置密码的时间,上次重置密码的时间。0代表未设置过密码,非0代表过期时间的时间戳。
- login_
allowed bool - 是否允许登录,是否允许登录。true代表允许,false代表不允许,默认为false。
- login_
locked bool - 登录是否被锁定。true代表已锁定,false代表未锁定。管理员设置错误密码重试次数限制后,用户命中后登录会被锁定。
- password str
- 登录密码。
- password_
expire_ floatat - 密码过期时间。0代表永不过期,非0代表过期时间的时间戳。
- password_
reset_ boolrequired - 下次登录是否需要重设密码,下次登录是否需要重设密码。true代表允许,false代表不允许,默认为false。
- safe_
auth_ floatexempt_ duration - 登录保护豁免时长,登录保护豁免时长。支持设置1至7(天),或1至168(小时),或5至1440(分钟)。单位设置请参考SafeAuthExemptUnit参数。
- safe_
auth_ floatexempt_ required - 是否开启登录保护豁免,是否开启登录保护豁免。0代表不开启,1代表开启。开启登录保护豁免后,验证完成后一定时间内登录将不再进行验证。
- safe_
auth_ floatexempt_ unit - 登录保护豁免的时间单位,登录保护豁免的时间单位。0代表分钟,1代表小时,2代表天。
- safe_
auth_ boolflag - 是否开启登录保护,是否开启登录保护。true代表开启,false代表不开启,默认为false。
- safe_
auth_ strtype - 登录保护类型,登录保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。可选vmfa, phone, email, 多个选项逗号隔开。
- update_
date str - 登录配置更新时间。
- create
Date String - 登录配置创建时间。
- last
Login StringDate - 上次登录时间。
- last
Login StringIp - 上次登录IP。
- last
Reset NumberPassword Time - 上次重置密码的时间,上次重置密码的时间。0代表未设置过密码,非0代表过期时间的时间戳。
- login
Allowed Boolean - 是否允许登录,是否允许登录。true代表允许,false代表不允许,默认为false。
- login
Locked Boolean - 登录是否被锁定。true代表已锁定,false代表未锁定。管理员设置错误密码重试次数限制后,用户命中后登录会被锁定。
- password String
- 登录密码。
- password
Expire NumberAt - 密码过期时间。0代表永不过期,非0代表过期时间的时间戳。
- password
Reset BooleanRequired - 下次登录是否需要重设密码,下次登录是否需要重设密码。true代表允许,false代表不允许,默认为false。
- safe
Auth NumberExempt Duration - 登录保护豁免时长,登录保护豁免时长。支持设置1至7(天),或1至168(小时),或5至1440(分钟)。单位设置请参考SafeAuthExemptUnit参数。
- safe
Auth NumberExempt Required - 是否开启登录保护豁免,是否开启登录保护豁免。0代表不开启,1代表开启。开启登录保护豁免后,验证完成后一定时间内登录将不再进行验证。
- safe
Auth NumberExempt Unit - 登录保护豁免的时间单位,登录保护豁免的时间单位。0代表分钟,1代表小时,2代表天。
- safe
Auth BooleanFlag - 是否开启登录保护,是否开启登录保护。true代表开启,false代表不开启,默认为false。
- safe
Auth StringType - 登录保护类型,登录保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。可选vmfa, phone, email, 多个选项逗号隔开。
- update
Date String - 登录配置更新时间。
UserPolicy, UserPolicyArgs
- Policy
Name string - 权限策略名称,长度1~64,支持英文、数字和+=,.@-_符号。
- Policy
Type string - 权限策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
- Policy
Name string - 权限策略名称,长度1~64,支持英文、数字和+=,.@-_符号。
- Policy
Type string - 权限策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy
Name String - 权限策略名称,长度1~64,支持英文、数字和+=,.@-_符号。
- policy
Type String - 权限策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy
Name string - 权限策略名称,长度1~64,支持英文、数字和+=,.@-_符号。
- policy
Type string - 权限策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy_
name str - 权限策略名称,长度1~64,支持英文、数字和+=,.@-_符号。
- policy_
type str - 权限策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy
Name String - 权限策略名称,长度1~64,支持英文、数字和+=,.@-_符号。
- policy
Type String - 权限策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
UserSecurityConfig, UserSecurityConfigArgs
- Safe
Auth doubleClose - 是否开启操作保护。0代表开启,1代表关闭。
- Safe
Auth doubleExempt Duration - 操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。
- Safe
Auth stringType - 操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。
- Safe
Auth float64Close - 是否开启操作保护。0代表开启,1代表关闭。
- Safe
Auth float64Exempt Duration - 操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。
- Safe
Auth stringType - 操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。
- safe
Auth DoubleClose - 是否开启操作保护。0代表开启,1代表关闭。
- safe
Auth DoubleExempt Duration - 操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。
- safe
Auth StringType - 操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。
- safe
Auth numberClose - 是否开启操作保护。0代表开启,1代表关闭。
- safe
Auth numberExempt Duration - 操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。
- safe
Auth stringType - 操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。
- safe_
auth_ floatclose - 是否开启操作保护。0代表开启,1代表关闭。
- safe_
auth_ floatexempt_ duration - 操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。
- safe_
auth_ strtype - 操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。
- safe
Auth NumberClose - 是否开启操作保护。0代表开启,1代表关闭。
- safe
Auth NumberExempt Duration - 操作保护的豁免时间,完成验证后在豁免时间内将不再进行验证。支持设置5至30,默认值为10。单位为分钟。
- safe
Auth StringType - 操作保护类型。phone代表手机验证,email代表邮箱验证,vmfa代表验证MFA设备验证。支持设置多种操作保护类型,以英文逗号分隔。
UserTag, UserTagArgs
Import
$ pulumi import bytepluscc:iam/user:User example "user_name"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
