Package com.pulumi.aws.cognito.inputs
Class UserState.Builder
- java.lang.Object
-
- com.pulumi.aws.cognito.inputs.UserState.Builder
-
- Enclosing class:
- UserState
public static final class UserState.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserState.Builder
attributes(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> attributes)
UserState.Builder
attributes(java.util.Map<java.lang.String,java.lang.String> attributes)
UserState
build()
UserState.Builder
clientMetadata(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> clientMetadata)
UserState.Builder
clientMetadata(java.util.Map<java.lang.String,java.lang.String> clientMetadata)
UserState.Builder
creationDate(com.pulumi.core.Output<java.lang.String> creationDate)
UserState.Builder
creationDate(java.lang.String creationDate)
UserState.Builder
desiredDeliveryMediums(com.pulumi.core.Output<java.util.List<java.lang.String>> desiredDeliveryMediums)
UserState.Builder
desiredDeliveryMediums(java.lang.String... desiredDeliveryMediums)
UserState.Builder
desiredDeliveryMediums(java.util.List<java.lang.String> desiredDeliveryMediums)
UserState.Builder
enabled(com.pulumi.core.Output<java.lang.Boolean> enabled)
UserState.Builder
enabled(java.lang.Boolean enabled)
UserState.Builder
forceAliasCreation(com.pulumi.core.Output<java.lang.Boolean> forceAliasCreation)
UserState.Builder
forceAliasCreation(java.lang.Boolean forceAliasCreation)
UserState.Builder
lastModifiedDate(com.pulumi.core.Output<java.lang.String> lastModifiedDate)
UserState.Builder
lastModifiedDate(java.lang.String lastModifiedDate)
UserState.Builder
messageAction(com.pulumi.core.Output<java.lang.String> messageAction)
UserState.Builder
messageAction(java.lang.String messageAction)
UserState.Builder
mfaSettingLists(com.pulumi.core.Output<java.util.List<java.lang.String>> mfaSettingLists)
UserState.Builder
mfaSettingLists(java.lang.String... mfaSettingLists)
UserState.Builder
mfaSettingLists(java.util.List<java.lang.String> mfaSettingLists)
UserState.Builder
password(com.pulumi.core.Output<java.lang.String> password)
UserState.Builder
password(java.lang.String password)
UserState.Builder
preferredMfaSetting(com.pulumi.core.Output<java.lang.String> preferredMfaSetting)
UserState.Builder
preferredMfaSetting(java.lang.String preferredMfaSetting)
UserState.Builder
status(com.pulumi.core.Output<java.lang.String> status)
UserState.Builder
status(java.lang.String status)
UserState.Builder
sub(com.pulumi.core.Output<java.lang.String> sub)
UserState.Builder
sub(java.lang.String sub)
UserState.Builder
temporaryPassword(com.pulumi.core.Output<java.lang.String> temporaryPassword)
UserState.Builder
temporaryPassword(java.lang.String temporaryPassword)
UserState.Builder
username(com.pulumi.core.Output<java.lang.String> username)
UserState.Builder
username(java.lang.String username)
UserState.Builder
userPoolId(com.pulumi.core.Output<java.lang.String> userPoolId)
UserState.Builder
userPoolId(java.lang.String userPoolId)
UserState.Builder
validationData(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> validationData)
UserState.Builder
validationData(java.util.Map<java.lang.String,java.lang.String> validationData)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(UserState defaults)
-
-
Method Detail
-
attributes
public UserState.Builder attributes(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> attributes)
- Parameters:
attributes
- A map that contains user attributes and attribute values to be set for the user.- Returns:
- builder
-
attributes
public UserState.Builder attributes(java.util.Map<java.lang.String,java.lang.String> attributes)
- Parameters:
attributes
- A map that contains user attributes and attribute values to be set for the user.- Returns:
- builder
-
clientMetadata
public UserState.Builder clientMetadata(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> clientMetadata)
- Parameters:
clientMetadata
- A map of custom key-value pairs that you can provide as input for any custom workflows that user creation triggers. Amazon Cognito does not store the `client_metadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration does not include triggers, the ClientMetadata parameter serves no purpose. For more information, see [Customizing User Pool Workflows with Lambda Triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html).- Returns:
- builder
-
clientMetadata
public UserState.Builder clientMetadata(java.util.Map<java.lang.String,java.lang.String> clientMetadata)
- Parameters:
clientMetadata
- A map of custom key-value pairs that you can provide as input for any custom workflows that user creation triggers. Amazon Cognito does not store the `client_metadata` value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration does not include triggers, the ClientMetadata parameter serves no purpose. For more information, see [Customizing User Pool Workflows with Lambda Triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html).- Returns:
- builder
-
creationDate
public UserState.Builder creationDate(@Nullable com.pulumi.core.Output<java.lang.String> creationDate)
-
creationDate
public UserState.Builder creationDate(java.lang.String creationDate)
-
desiredDeliveryMediums
public UserState.Builder desiredDeliveryMediums(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> desiredDeliveryMediums)
- Parameters:
desiredDeliveryMediums
- A list of mediums to the welcome message will be sent through. Allowed values are `EMAIL` and `SMS`. If it's provided, make sure you have also specified `email` attribute for the `EMAIL` medium and `phone_number` for the `SMS`. More than one value can be specified. Amazon Cognito does not store the `desired_delivery_mediums` value. Defaults to `["SMS"]`.- Returns:
- builder
-
desiredDeliveryMediums
public UserState.Builder desiredDeliveryMediums(java.util.List<java.lang.String> desiredDeliveryMediums)
- Parameters:
desiredDeliveryMediums
- A list of mediums to the welcome message will be sent through. Allowed values are `EMAIL` and `SMS`. If it's provided, make sure you have also specified `email` attribute for the `EMAIL` medium and `phone_number` for the `SMS`. More than one value can be specified. Amazon Cognito does not store the `desired_delivery_mediums` value. Defaults to `["SMS"]`.- Returns:
- builder
-
desiredDeliveryMediums
public UserState.Builder desiredDeliveryMediums(java.lang.String... desiredDeliveryMediums)
- Parameters:
desiredDeliveryMediums
- A list of mediums to the welcome message will be sent through. Allowed values are `EMAIL` and `SMS`. If it's provided, make sure you have also specified `email` attribute for the `EMAIL` medium and `phone_number` for the `SMS`. More than one value can be specified. Amazon Cognito does not store the `desired_delivery_mediums` value. Defaults to `["SMS"]`.- Returns:
- builder
-
enabled
public UserState.Builder enabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> enabled)
- Parameters:
enabled
- Specifies whether the user should be enabled after creation. The welcome message will be sent regardless of the `enabled` value. The behavior can be changed with `message_action` argument. Defaults to `true`.- Returns:
- builder
-
enabled
public UserState.Builder enabled(java.lang.Boolean enabled)
- Parameters:
enabled
- Specifies whether the user should be enabled after creation. The welcome message will be sent regardless of the `enabled` value. The behavior can be changed with `message_action` argument. Defaults to `true`.- Returns:
- builder
-
forceAliasCreation
public UserState.Builder forceAliasCreation(@Nullable com.pulumi.core.Output<java.lang.Boolean> forceAliasCreation)
- Parameters:
forceAliasCreation
- If this parameter is set to True and the `phone_number` or `email` address specified in the `attributes` parameter already exists as an alias with a different user, Amazon Cognito will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias. Amazon Cognito does not store the `force_alias_creation` value. Defaults to `false`.- Returns:
- builder
-
forceAliasCreation
public UserState.Builder forceAliasCreation(java.lang.Boolean forceAliasCreation)
- Parameters:
forceAliasCreation
- If this parameter is set to True and the `phone_number` or `email` address specified in the `attributes` parameter already exists as an alias with a different user, Amazon Cognito will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias. Amazon Cognito does not store the `force_alias_creation` value. Defaults to `false`.- Returns:
- builder
-
lastModifiedDate
public UserState.Builder lastModifiedDate(@Nullable com.pulumi.core.Output<java.lang.String> lastModifiedDate)
-
lastModifiedDate
public UserState.Builder lastModifiedDate(java.lang.String lastModifiedDate)
-
messageAction
public UserState.Builder messageAction(@Nullable com.pulumi.core.Output<java.lang.String> messageAction)
- Parameters:
messageAction
- Set to `RESEND` to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to `SUPPRESS` to suppress sending the message. Only one value can be specified. Amazon Cognito does not store the `message_action` value.- Returns:
- builder
-
messageAction
public UserState.Builder messageAction(java.lang.String messageAction)
- Parameters:
messageAction
- Set to `RESEND` to resend the invitation message to a user that already exists and reset the expiration limit on the user's account. Set to `SUPPRESS` to suppress sending the message. Only one value can be specified. Amazon Cognito does not store the `message_action` value.- Returns:
- builder
-
mfaSettingLists
public UserState.Builder mfaSettingLists(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> mfaSettingLists)
-
mfaSettingLists
public UserState.Builder mfaSettingLists(java.util.List<java.lang.String> mfaSettingLists)
-
mfaSettingLists
public UserState.Builder mfaSettingLists(java.lang.String... mfaSettingLists)
-
password
public UserState.Builder password(@Nullable com.pulumi.core.Output<java.lang.String> password)
- Parameters:
password
- The user's permanent password. This password must conform to the password policy specified by user pool the user belongs to. The welcome message always contains only `temporary_password` value. You can suppress sending the welcome message with the `message_action` argument. Amazon Cognito does not store the `password` value. Conflicts with `temporary_password`.- Returns:
- builder
-
password
public UserState.Builder password(java.lang.String password)
- Parameters:
password
- The user's permanent password. This password must conform to the password policy specified by user pool the user belongs to. The welcome message always contains only `temporary_password` value. You can suppress sending the welcome message with the `message_action` argument. Amazon Cognito does not store the `password` value. Conflicts with `temporary_password`.- Returns:
- builder
-
preferredMfaSetting
public UserState.Builder preferredMfaSetting(@Nullable com.pulumi.core.Output<java.lang.String> preferredMfaSetting)
-
preferredMfaSetting
public UserState.Builder preferredMfaSetting(java.lang.String preferredMfaSetting)
-
status
public UserState.Builder status(@Nullable com.pulumi.core.Output<java.lang.String> status)
- Parameters:
status
- current user status.- Returns:
- builder
-
status
public UserState.Builder status(java.lang.String status)
- Parameters:
status
- current user status.- Returns:
- builder
-
sub
public UserState.Builder sub(@Nullable com.pulumi.core.Output<java.lang.String> sub)
- Parameters:
sub
- unique user id that is never reassignable to another user.- Returns:
- builder
-
sub
public UserState.Builder sub(java.lang.String sub)
- Parameters:
sub
- unique user id that is never reassignable to another user.- Returns:
- builder
-
temporaryPassword
public UserState.Builder temporaryPassword(@Nullable com.pulumi.core.Output<java.lang.String> temporaryPassword)
- Parameters:
temporaryPassword
- The user's temporary password. Conflicts with `password`.- Returns:
- builder
-
temporaryPassword
public UserState.Builder temporaryPassword(java.lang.String temporaryPassword)
- Parameters:
temporaryPassword
- The user's temporary password. Conflicts with `password`.- Returns:
- builder
-
userPoolId
public UserState.Builder userPoolId(@Nullable com.pulumi.core.Output<java.lang.String> userPoolId)
- Parameters:
userPoolId
- The user pool ID for the user pool where the user will be created.- Returns:
- builder
-
userPoolId
public UserState.Builder userPoolId(java.lang.String userPoolId)
- Parameters:
userPoolId
- The user pool ID for the user pool where the user will be created.- Returns:
- builder
-
username
public UserState.Builder username(@Nullable com.pulumi.core.Output<java.lang.String> username)
- Parameters:
username
- The username for the user. Must be unique within the user pool. Must be a UTF-8 string between 1 and 128 characters. After the user is created, the username cannot be changed. The following arguments are optional:- Returns:
- builder
-
username
public UserState.Builder username(java.lang.String username)
- Parameters:
username
- The username for the user. Must be unique within the user pool. Must be a UTF-8 string between 1 and 128 characters. After the user is created, the username cannot be changed. The following arguments are optional:- Returns:
- builder
-
validationData
public UserState.Builder validationData(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> validationData)
- Parameters:
validationData
- The user's validation data. This is an array of name-value pairs that contain user attributes and attribute values that you can use for custom validation, such as restricting the types of user accounts that can be registered. Amazon Cognito does not store the `validation_data` value. For more information, see [Customizing User Pool Workflows with Lambda Triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html). > **NOTE:** Clearing `password` or `temporary_password` does not reset user's password in Cognito.- Returns:
- builder
-
validationData
public UserState.Builder validationData(java.util.Map<java.lang.String,java.lang.String> validationData)
- Parameters:
validationData
- The user's validation data. This is an array of name-value pairs that contain user attributes and attribute values that you can use for custom validation, such as restricting the types of user accounts that can be registered. Amazon Cognito does not store the `validation_data` value. For more information, see [Customizing User Pool Workflows with Lambda Triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html). > **NOTE:** Clearing `password` or `temporary_password` does not reset user's password in Cognito.- Returns:
- builder
-
build
public UserState build()
-
-