Interface SetUserPoolMfaConfigResponse.Builder

  • Method Details

    • smsMfaConfiguration

      SetUserPoolMfaConfigResponse.Builder smsMfaConfiguration(SmsMfaConfigType smsMfaConfiguration)

      Shows user pool SMS message configuration for MFA and sign-in with SMS-message OTPs. Includes the message template and the SMS message sending configuration for Amazon SNS.

      Parameters:
      smsMfaConfiguration - Shows user pool SMS message configuration for MFA and sign-in with SMS-message OTPs. Includes the message template and the SMS message sending configuration for Amazon SNS.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • smsMfaConfiguration

      default SetUserPoolMfaConfigResponse.Builder smsMfaConfiguration(Consumer<SmsMfaConfigType.Builder> smsMfaConfiguration)

      Shows user pool SMS message configuration for MFA and sign-in with SMS-message OTPs. Includes the message template and the SMS message sending configuration for Amazon SNS.

      This is a convenience method that creates an instance of the SmsMfaConfigType.Builder avoiding the need to create one manually via SmsMfaConfigType.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to smsMfaConfiguration(SmsMfaConfigType).

      Parameters:
      smsMfaConfiguration - a consumer that will call methods on SmsMfaConfigType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • softwareTokenMfaConfiguration

      SetUserPoolMfaConfigResponse.Builder softwareTokenMfaConfiguration(SoftwareTokenMfaConfigType softwareTokenMfaConfiguration)

      Shows user pool configuration for time-based one-time password (TOTP) MFA. Includes TOTP enabled or disabled state.

      Parameters:
      softwareTokenMfaConfiguration - Shows user pool configuration for time-based one-time password (TOTP) MFA. Includes TOTP enabled or disabled state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • softwareTokenMfaConfiguration

      default SetUserPoolMfaConfigResponse.Builder softwareTokenMfaConfiguration(Consumer<SoftwareTokenMfaConfigType.Builder> softwareTokenMfaConfiguration)

      Shows user pool configuration for time-based one-time password (TOTP) MFA. Includes TOTP enabled or disabled state.

      This is a convenience method that creates an instance of the SoftwareTokenMfaConfigType.Builder avoiding the need to create one manually via SoftwareTokenMfaConfigType.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to softwareTokenMfaConfiguration(SoftwareTokenMfaConfigType).

      Parameters:
      softwareTokenMfaConfiguration - a consumer that will call methods on SoftwareTokenMfaConfigType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • emailMfaConfiguration

      SetUserPoolMfaConfigResponse.Builder emailMfaConfiguration(EmailMfaConfigType emailMfaConfiguration)

      Shows configuration for user pool email message MFA and sign-in with one-time passwords (OTPs). Includes the subject and body of the email message template for sign-in and MFA messages. To activate this setting, your user pool must be in the Essentials tier or higher.

      Parameters:
      emailMfaConfiguration - Shows configuration for user pool email message MFA and sign-in with one-time passwords (OTPs). Includes the subject and body of the email message template for sign-in and MFA messages. To activate this setting, your user pool must be in the Essentials tier or higher.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • emailMfaConfiguration

      default SetUserPoolMfaConfigResponse.Builder emailMfaConfiguration(Consumer<EmailMfaConfigType.Builder> emailMfaConfiguration)

      Shows configuration for user pool email message MFA and sign-in with one-time passwords (OTPs). Includes the subject and body of the email message template for sign-in and MFA messages. To activate this setting, your user pool must be in the Essentials tier or higher.

      This is a convenience method that creates an instance of the EmailMfaConfigType.Builder avoiding the need to create one manually via EmailMfaConfigType.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to emailMfaConfiguration(EmailMfaConfigType).

      Parameters:
      emailMfaConfiguration - a consumer that will call methods on EmailMfaConfigType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • mfaConfiguration

      SetUserPoolMfaConfigResponse.Builder mfaConfiguration(String mfaConfiguration)

      Displays multi-factor authentication (MFA) as on, off, or optional. When ON, all users must set up MFA before they can sign in. When OPTIONAL, your application must make a client-side determination of whether a user wants to register an MFA device. For user pools with adaptive authentication with threat protection, choose OPTIONAL.

      When MfaConfiguration is OPTIONAL, managed login doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in API responses and in managed login for users who have chosen and configured a preferred MFA factor.

      Parameters:
      mfaConfiguration - Displays multi-factor authentication (MFA) as on, off, or optional. When ON, all users must set up MFA before they can sign in. When OPTIONAL, your application must make a client-side determination of whether a user wants to register an MFA device. For user pools with adaptive authentication with threat protection, choose OPTIONAL.

      When MfaConfiguration is OPTIONAL, managed login doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in API responses and in managed login for users who have chosen and configured a preferred MFA factor.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • mfaConfiguration

      SetUserPoolMfaConfigResponse.Builder mfaConfiguration(UserPoolMfaType mfaConfiguration)

      Displays multi-factor authentication (MFA) as on, off, or optional. When ON, all users must set up MFA before they can sign in. When OPTIONAL, your application must make a client-side determination of whether a user wants to register an MFA device. For user pools with adaptive authentication with threat protection, choose OPTIONAL.

      When MfaConfiguration is OPTIONAL, managed login doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in API responses and in managed login for users who have chosen and configured a preferred MFA factor.

      Parameters:
      mfaConfiguration - Displays multi-factor authentication (MFA) as on, off, or optional. When ON, all users must set up MFA before they can sign in. When OPTIONAL, your application must make a client-side determination of whether a user wants to register an MFA device. For user pools with adaptive authentication with threat protection, choose OPTIONAL.

      When MfaConfiguration is OPTIONAL, managed login doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in API responses and in managed login for users who have chosen and configured a preferred MFA factor.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • webAuthnConfiguration

      SetUserPoolMfaConfigResponse.Builder webAuthnConfiguration(WebAuthnConfigurationType webAuthnConfiguration)

      The configuration of your user pool for passkey, or WebAuthn, sign-in with authenticators like biometric and security-key devices. Includes relying-party configuration and settings for user-verification requirements.

      Parameters:
      webAuthnConfiguration - The configuration of your user pool for passkey, or WebAuthn, sign-in with authenticators like biometric and security-key devices. Includes relying-party configuration and settings for user-verification requirements.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • webAuthnConfiguration

      default SetUserPoolMfaConfigResponse.Builder webAuthnConfiguration(Consumer<WebAuthnConfigurationType.Builder> webAuthnConfiguration)

      The configuration of your user pool for passkey, or WebAuthn, sign-in with authenticators like biometric and security-key devices. Includes relying-party configuration and settings for user-verification requirements.

      This is a convenience method that creates an instance of the WebAuthnConfigurationType.Builder avoiding the need to create one manually via WebAuthnConfigurationType.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to webAuthnConfiguration(WebAuthnConfigurationType).

      Parameters:
      webAuthnConfiguration - a consumer that will call methods on WebAuthnConfigurationType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: