All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.cognito.inputs.RiskConfigurationState Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.cognito.inputs;

import com.pulumi.aws.cognito.inputs.RiskConfigurationAccountTakeoverRiskConfigurationArgs;
import com.pulumi.aws.cognito.inputs.RiskConfigurationCompromisedCredentialsRiskConfigurationArgs;
import com.pulumi.aws.cognito.inputs.RiskConfigurationRiskExceptionConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class RiskConfigurationState extends com.pulumi.resources.ResourceArgs {

    public static final RiskConfigurationState Empty = new RiskConfigurationState();

    /**
     * The account takeover risk configuration. See details below.
     * 
     */
    @Import(name="accountTakeoverRiskConfiguration")
    private @Nullable Output accountTakeoverRiskConfiguration;

    /**
     * @return The account takeover risk configuration. See details below.
     * 
     */
    public Optional> accountTakeoverRiskConfiguration() {
        return Optional.ofNullable(this.accountTakeoverRiskConfiguration);
    }

    /**
     * The app client ID. When the client ID is not provided, the same risk configuration is applied to all the clients in the User Pool.
     * 
     */
    @Import(name="clientId")
    private @Nullable Output clientId;

    /**
     * @return The app client ID. When the client ID is not provided, the same risk configuration is applied to all the clients in the User Pool.
     * 
     */
    public Optional> clientId() {
        return Optional.ofNullable(this.clientId);
    }

    /**
     * The compromised credentials risk configuration. See details below.
     * 
     */
    @Import(name="compromisedCredentialsRiskConfiguration")
    private @Nullable Output compromisedCredentialsRiskConfiguration;

    /**
     * @return The compromised credentials risk configuration. See details below.
     * 
     */
    public Optional> compromisedCredentialsRiskConfiguration() {
        return Optional.ofNullable(this.compromisedCredentialsRiskConfiguration);
    }

    /**
     * The configuration to override the risk decision. See details below.
     * 
     */
    @Import(name="riskExceptionConfiguration")
    private @Nullable Output riskExceptionConfiguration;

    /**
     * @return The configuration to override the risk decision. See details below.
     * 
     */
    public Optional> riskExceptionConfiguration() {
        return Optional.ofNullable(this.riskExceptionConfiguration);
    }

    /**
     * The user pool ID.
     * 
     */
    @Import(name="userPoolId")
    private @Nullable Output userPoolId;

    /**
     * @return The user pool ID.
     * 
     */
    public Optional> userPoolId() {
        return Optional.ofNullable(this.userPoolId);
    }

    private RiskConfigurationState() {}

    private RiskConfigurationState(RiskConfigurationState $) {
        this.accountTakeoverRiskConfiguration = $.accountTakeoverRiskConfiguration;
        this.clientId = $.clientId;
        this.compromisedCredentialsRiskConfiguration = $.compromisedCredentialsRiskConfiguration;
        this.riskExceptionConfiguration = $.riskExceptionConfiguration;
        this.userPoolId = $.userPoolId;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(RiskConfigurationState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private RiskConfigurationState $;

        public Builder() {
            $ = new RiskConfigurationState();
        }

        public Builder(RiskConfigurationState defaults) {
            $ = new RiskConfigurationState(Objects.requireNonNull(defaults));
        }

        /**
         * @param accountTakeoverRiskConfiguration The account takeover risk configuration. See details below.
         * 
         * @return builder
         * 
         */
        public Builder accountTakeoverRiskConfiguration(@Nullable Output accountTakeoverRiskConfiguration) {
            $.accountTakeoverRiskConfiguration = accountTakeoverRiskConfiguration;
            return this;
        }

        /**
         * @param accountTakeoverRiskConfiguration The account takeover risk configuration. See details below.
         * 
         * @return builder
         * 
         */
        public Builder accountTakeoverRiskConfiguration(RiskConfigurationAccountTakeoverRiskConfigurationArgs accountTakeoverRiskConfiguration) {
            return accountTakeoverRiskConfiguration(Output.of(accountTakeoverRiskConfiguration));
        }

        /**
         * @param clientId The app client ID. When the client ID is not provided, the same risk configuration is applied to all the clients in the User Pool.
         * 
         * @return builder
         * 
         */
        public Builder clientId(@Nullable Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId The app client ID. When the client ID is not provided, the same risk configuration is applied to all the clients in the User Pool.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration. See details below.
         * 
         * @return builder
         * 
         */
        public Builder compromisedCredentialsRiskConfiguration(@Nullable Output compromisedCredentialsRiskConfiguration) {
            $.compromisedCredentialsRiskConfiguration = compromisedCredentialsRiskConfiguration;
            return this;
        }

        /**
         * @param compromisedCredentialsRiskConfiguration The compromised credentials risk configuration. See details below.
         * 
         * @return builder
         * 
         */
        public Builder compromisedCredentialsRiskConfiguration(RiskConfigurationCompromisedCredentialsRiskConfigurationArgs compromisedCredentialsRiskConfiguration) {
            return compromisedCredentialsRiskConfiguration(Output.of(compromisedCredentialsRiskConfiguration));
        }

        /**
         * @param riskExceptionConfiguration The configuration to override the risk decision. See details below.
         * 
         * @return builder
         * 
         */
        public Builder riskExceptionConfiguration(@Nullable Output riskExceptionConfiguration) {
            $.riskExceptionConfiguration = riskExceptionConfiguration;
            return this;
        }

        /**
         * @param riskExceptionConfiguration The configuration to override the risk decision. See details below.
         * 
         * @return builder
         * 
         */
        public Builder riskExceptionConfiguration(RiskConfigurationRiskExceptionConfigurationArgs riskExceptionConfiguration) {
            return riskExceptionConfiguration(Output.of(riskExceptionConfiguration));
        }

        /**
         * @param userPoolId The user pool ID.
         * 
         * @return builder
         * 
         */
        public Builder userPoolId(@Nullable Output userPoolId) {
            $.userPoolId = userPoolId;
            return this;
        }

        /**
         * @param userPoolId The user pool ID.
         * 
         * @return builder
         * 
         */
        public Builder userPoolId(String userPoolId) {
            return userPoolId(Output.of(userPoolId));
        }

        public RiskConfigurationState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy