public static final class SecurityPreferenceProps.Builder extends Object implements software.amazon.jsii.Builder<SecurityPreferenceProps>
SecurityPreferenceProps| Constructor and Description |
|---|
Builder() |
public SecurityPreferenceProps.Builder allowUserToChangePassword(Boolean allowUserToChangePassword)
SecurityPreferenceProps.getAllowUserToChangePassword()allowUserToChangePassword - Property allowUserToChangePassword: Specifies whether RAM users can change their passwords.
Valid values:
true: RAM users can change their passwords. This is the default value.
false: RAM users cannot change their passwords.thispublic SecurityPreferenceProps.Builder allowUserToChangePassword(com.aliyun.ros.cdk.core.IResolvable allowUserToChangePassword)
SecurityPreferenceProps.getAllowUserToChangePassword()allowUserToChangePassword - Property allowUserToChangePassword: Specifies whether RAM users can change their passwords.
Valid values:
true: RAM users can change their passwords. This is the default value.
false: RAM users cannot change their passwords.thispublic SecurityPreferenceProps.Builder allowUserToManageAccessKeys(Boolean allowUserToManageAccessKeys)
SecurityPreferenceProps.getAllowUserToManageAccessKeys()allowUserToManageAccessKeys - Property allowUserToManageAccessKeys: Specifies whether RAM users can manage their AccessKey pairs.
Valid values:
true: RAM users can manage their AccessKey pairs.
false: RAM users cannot manage their AccessKey pairs. This is the default value.thispublic SecurityPreferenceProps.Builder allowUserToManageAccessKeys(com.aliyun.ros.cdk.core.IResolvable allowUserToManageAccessKeys)
SecurityPreferenceProps.getAllowUserToManageAccessKeys()allowUserToManageAccessKeys - Property allowUserToManageAccessKeys: Specifies whether RAM users can manage their AccessKey pairs.
Valid values:
true: RAM users can manage their AccessKey pairs.
false: RAM users cannot manage their AccessKey pairs. This is the default value.thispublic SecurityPreferenceProps.Builder allowUserToManageMfaDevices(Boolean allowUserToManageMfaDevices)
SecurityPreferenceProps.getAllowUserToManageMfaDevices()allowUserToManageMfaDevices - Property allowUserToManageMfaDevices: Specifies whether RAM users can manage their MFA devices.
Valid values:
true: RAM users can manage their MFA devices. This is the default value.
false: RAM users cannot manage their MFA devices.thispublic SecurityPreferenceProps.Builder allowUserToManageMfaDevices(com.aliyun.ros.cdk.core.IResolvable allowUserToManageMfaDevices)
SecurityPreferenceProps.getAllowUserToManageMfaDevices()allowUserToManageMfaDevices - Property allowUserToManageMfaDevices: Specifies whether RAM users can manage their MFA devices.
Valid values:
true: RAM users can manage their MFA devices. This is the default value.
false: RAM users cannot manage their MFA devices.thispublic SecurityPreferenceProps.Builder allowUserToManagePublicKeys(Boolean allowUserToManagePublicKeys)
SecurityPreferenceProps.getAllowUserToManagePublicKeys()allowUserToManagePublicKeys - Property allowUserToManagePublicKeys: Specifies whether RAM users can manage their public keys.
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.thispublic SecurityPreferenceProps.Builder allowUserToManagePublicKeys(com.aliyun.ros.cdk.core.IResolvable allowUserToManagePublicKeys)
SecurityPreferenceProps.getAllowUserToManagePublicKeys()allowUserToManagePublicKeys - Property allowUserToManagePublicKeys: Specifies whether RAM users can manage their public keys.
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.thispublic SecurityPreferenceProps.Builder enableSaveMfaTicket(Boolean enableSaveMfaTicket)
SecurityPreferenceProps.getEnableSaveMfaTicket()enableSaveMfaTicket - Property enableSaveMfaTicket: Specifies whether RAM users can save multi-factor authentication (MFA) security codes during logon.
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.thispublic SecurityPreferenceProps.Builder enableSaveMfaTicket(com.aliyun.ros.cdk.core.IResolvable enableSaveMfaTicket)
SecurityPreferenceProps.getEnableSaveMfaTicket()enableSaveMfaTicket - Property enableSaveMfaTicket: Specifies whether RAM users can save multi-factor authentication (MFA) security codes during logon.
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.thispublic SecurityPreferenceProps.Builder loginNetworkMasks(String loginNetworkMasks)
SecurityPreferenceProps.getLoginNetworkMasks()loginNetworkMasks - Property loginNetworkMasks: The subnet mask that specifies the IP addresses from which logon to the console is allowed.
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.thispublic SecurityPreferenceProps.Builder loginNetworkMasks(com.aliyun.ros.cdk.core.IResolvable loginNetworkMasks)
SecurityPreferenceProps.getLoginNetworkMasks()loginNetworkMasks - Property loginNetworkMasks: The subnet mask that specifies the IP addresses from which logon to the console is allowed.
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.thispublic SecurityPreferenceProps.Builder loginSessionDuration(Number loginSessionDuration)
SecurityPreferenceProps.getLoginSessionDuration()loginSessionDuration - Property loginSessionDuration: The validity period of the logon session of the RAM user.
Valid values: 6 to 24. Default value: 6. Unit: hours.thispublic SecurityPreferenceProps.Builder loginSessionDuration(com.aliyun.ros.cdk.core.IResolvable loginSessionDuration)
SecurityPreferenceProps.getLoginSessionDuration()loginSessionDuration - Property loginSessionDuration: The validity period of the logon session of the RAM user.
Valid values: 6 to 24. Default value: 6. Unit: hours.thispublic SecurityPreferenceProps build()
build in interface software.amazon.jsii.Builder<SecurityPreferenceProps>SecurityPreferencePropsNullPointerException - if any required attribute was not providedCopyright © 2023. All rights reserved.