public static final class SecurityPreference.Builder extends Object implements software.amazon.jsii.Builder<SecurityPreference>
SecurityPreference.| Modifier and Type | Method and Description |
|---|---|
SecurityPreference.Builder |
allowUserToChangePassword(Boolean allowUserToChangePassword)
Property allowUserToChangePassword: Specifies whether RAM users can change their passwords.
|
SecurityPreference.Builder |
allowUserToChangePassword(com.aliyun.ros.cdk.core.IResolvable allowUserToChangePassword)
Property allowUserToChangePassword: Specifies whether RAM users can change their passwords.
|
SecurityPreference.Builder |
allowUserToManageAccessKeys(Boolean allowUserToManageAccessKeys)
Property allowUserToManageAccessKeys: Specifies whether RAM users can manage their AccessKey pairs.
|
SecurityPreference.Builder |
allowUserToManageAccessKeys(com.aliyun.ros.cdk.core.IResolvable allowUserToManageAccessKeys)
Property allowUserToManageAccessKeys: Specifies whether RAM users can manage their AccessKey pairs.
|
SecurityPreference.Builder |
allowUserToManageMfaDevices(Boolean allowUserToManageMfaDevices)
Property allowUserToManageMfaDevices: Specifies whether RAM users can manage their MFA devices.
|
SecurityPreference.Builder |
allowUserToManageMfaDevices(com.aliyun.ros.cdk.core.IResolvable allowUserToManageMfaDevices)
Property allowUserToManageMfaDevices: Specifies whether RAM users can manage their MFA devices.
|
SecurityPreference.Builder |
allowUserToManagePublicKeys(Boolean allowUserToManagePublicKeys)
Property allowUserToManagePublicKeys: Specifies whether RAM users can manage their public keys.
|
SecurityPreference.Builder |
allowUserToManagePublicKeys(com.aliyun.ros.cdk.core.IResolvable allowUserToManagePublicKeys)
Property allowUserToManagePublicKeys: Specifies whether RAM users can manage their public keys.
|
SecurityPreference |
build() |
static SecurityPreference.Builder |
create(com.aliyun.ros.cdk.core.Construct scope,
String id) |
static SecurityPreference.Builder |
create(com.aliyun.ros.cdk.core.Construct scope,
String id,
Boolean enableResourcePropertyConstraint) |
SecurityPreference.Builder |
enableSaveMfaTicket(Boolean enableSaveMfaTicket)
Property enableSaveMfaTicket: Specifies whether RAM users can save multi-factor authentication (MFA) security codes during logon.
|
SecurityPreference.Builder |
enableSaveMfaTicket(com.aliyun.ros.cdk.core.IResolvable enableSaveMfaTicket)
Property enableSaveMfaTicket: Specifies whether RAM users can save multi-factor authentication (MFA) security codes during logon.
|
SecurityPreference.Builder |
loginNetworkMasks(com.aliyun.ros.cdk.core.IResolvable loginNetworkMasks)
Property loginNetworkMasks: The subnet mask that specifies the IP addresses from which logon to the console is allowed.
|
SecurityPreference.Builder |
loginNetworkMasks(String loginNetworkMasks)
Property loginNetworkMasks: The subnet mask that specifies the IP addresses from which logon to the console is allowed.
|
SecurityPreference.Builder |
loginSessionDuration(com.aliyun.ros.cdk.core.IResolvable loginSessionDuration)
Property loginSessionDuration: The validity period of the logon session of the RAM user.
|
SecurityPreference.Builder |
loginSessionDuration(Number loginSessionDuration)
Property loginSessionDuration: The validity period of the logon session of the RAM user.
|
public static SecurityPreference.Builder create(com.aliyun.ros.cdk.core.Construct scope, String id, Boolean enableResourcePropertyConstraint)
scope - This parameter is required.id - This parameter is required.enableResourcePropertyConstraint - SecurityPreference.Builder.public static SecurityPreference.Builder create(com.aliyun.ros.cdk.core.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.SecurityPreference.Builder.public SecurityPreference.Builder allowUserToChangePassword(Boolean allowUserToChangePassword)
Valid values: true: RAM users can change their passwords. This is the default value. false: RAM users cannot change their passwords.
allowUserToChangePassword - Property allowUserToChangePassword: Specifies whether RAM users can change their passwords. This parameter is required.thispublic SecurityPreference.Builder allowUserToChangePassword(com.aliyun.ros.cdk.core.IResolvable allowUserToChangePassword)
Valid values: true: RAM users can change their passwords. This is the default value. false: RAM users cannot change their passwords.
allowUserToChangePassword - Property allowUserToChangePassword: Specifies whether RAM users can change their passwords. This parameter is required.thispublic SecurityPreference.Builder allowUserToManageAccessKeys(Boolean allowUserToManageAccessKeys)
Valid values: true: RAM users can manage their AccessKey pairs. false: RAM users cannot manage their AccessKey pairs. This is the default value.
allowUserToManageAccessKeys - Property allowUserToManageAccessKeys: Specifies whether RAM users can manage their AccessKey pairs. This parameter is required.thispublic SecurityPreference.Builder allowUserToManageAccessKeys(com.aliyun.ros.cdk.core.IResolvable allowUserToManageAccessKeys)
Valid values: true: RAM users can manage their AccessKey pairs. false: RAM users cannot manage their AccessKey pairs. This is the default value.
allowUserToManageAccessKeys - Property allowUserToManageAccessKeys: Specifies whether RAM users can manage their AccessKey pairs. This parameter is required.thispublic SecurityPreference.Builder allowUserToManageMfaDevices(Boolean allowUserToManageMfaDevices)
Valid values: true: RAM users can manage their MFA devices. This is the default value. false: RAM users cannot manage their MFA devices.
allowUserToManageMfaDevices - Property allowUserToManageMfaDevices: Specifies whether RAM users can manage their MFA devices. This parameter is required.thispublic SecurityPreference.Builder allowUserToManageMfaDevices(com.aliyun.ros.cdk.core.IResolvable allowUserToManageMfaDevices)
Valid values: true: RAM users can manage their MFA devices. This is the default value. false: RAM users cannot manage their MFA devices.
allowUserToManageMfaDevices - Property allowUserToManageMfaDevices: Specifies whether RAM users can manage their MFA devices. This parameter is required.thispublic SecurityPreference.Builder allowUserToManagePublicKeys(Boolean allowUserToManagePublicKeys)
Valid values: true: RAM users can manage their public keys. false: RAM users cannot manage their public keys. This is the default value. Note This parameter is valid only for the Japan site.
allowUserToManagePublicKeys - Property allowUserToManagePublicKeys: Specifies whether RAM users can manage their public keys. This parameter is required.thispublic SecurityPreference.Builder allowUserToManagePublicKeys(com.aliyun.ros.cdk.core.IResolvable allowUserToManagePublicKeys)
Valid values: true: RAM users can manage their public keys. false: RAM users cannot manage their public keys. This is the default value. Note This parameter is valid only for the Japan site.
allowUserToManagePublicKeys - Property allowUserToManagePublicKeys: Specifies whether RAM users can manage their public keys. This parameter is required.thispublic SecurityPreference.Builder enableSaveMfaTicket(Boolean enableSaveMfaTicket)
The security codes are valid for 7 days. Valid values: true: RAM users can save MFA security codes during logon. false: RAM users cannot save MFA security codes during logon. This is the default value.
enableSaveMfaTicket - Property enableSaveMfaTicket: Specifies whether RAM users can save multi-factor authentication (MFA) security codes during logon. This parameter is required.thispublic SecurityPreference.Builder enableSaveMfaTicket(com.aliyun.ros.cdk.core.IResolvable enableSaveMfaTicket)
The security codes are valid for 7 days. Valid values: true: RAM users can save MFA security codes during logon. false: RAM users cannot save MFA security codes during logon. This is the default value.
enableSaveMfaTicket - Property enableSaveMfaTicket: Specifies whether RAM users can save multi-factor authentication (MFA) security codes during logon. This parameter is required.thispublic SecurityPreference.Builder loginNetworkMasks(String loginNetworkMasks)
This parameter applies to password-based logon and single sign-on (SSO). However, this parameter does not apply to API calls that are authenticated based on AccessKey pairs. If a subnet mask is specified, RAM users can log on to the console only by using the IP addresses in the subnet. If you do not specify a subnet mask, RAM users can log on to the console by using all IP addresses. If you want to specify multiple subnet masks, separate the subnet masks with semicolons (;). Example: 192.168.0.0/16;10.0.0.0/8. A maximum of 25 subnet masks can be set. The total length of the subnet masks can be 1 to 512 characters.
loginNetworkMasks - Property loginNetworkMasks: The subnet mask that specifies the IP addresses from which logon to the console is allowed. This parameter is required.thispublic SecurityPreference.Builder loginNetworkMasks(com.aliyun.ros.cdk.core.IResolvable loginNetworkMasks)
This parameter applies to password-based logon and single sign-on (SSO). However, this parameter does not apply to API calls that are authenticated based on AccessKey pairs. If a subnet mask is specified, RAM users can log on to the console only by using the IP addresses in the subnet. If you do not specify a subnet mask, RAM users can log on to the console by using all IP addresses. If you want to specify multiple subnet masks, separate the subnet masks with semicolons (;). Example: 192.168.0.0/16;10.0.0.0/8. A maximum of 25 subnet masks can be set. The total length of the subnet masks can be 1 to 512 characters.
loginNetworkMasks - Property loginNetworkMasks: The subnet mask that specifies the IP addresses from which logon to the console is allowed. This parameter is required.thispublic SecurityPreference.Builder loginSessionDuration(Number loginSessionDuration)
Valid values: 6 to 24. Default value: 6. Unit: hours.
loginSessionDuration - Property loginSessionDuration: The validity period of the logon session of the RAM user. This parameter is required.thispublic SecurityPreference.Builder loginSessionDuration(com.aliyun.ros.cdk.core.IResolvable loginSessionDuration)
Valid values: 6 to 24. Default value: 6. Unit: hours.
loginSessionDuration - Property loginSessionDuration: The validity period of the logon session of the RAM user. This parameter is required.thispublic SecurityPreference build()
build in interface software.amazon.jsii.Builder<SecurityPreference>SecurityPreference.Copyright © 2023. All rights reserved.