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

com.pulumi.aws.cognito.inputs.RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationArgs 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.RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationBlockEmailArgs;
import com.pulumi.aws.cognito.inputs.RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationMfaEmailArgs;
import com.pulumi.aws.cognito.inputs.RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationNoActionEmailArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationArgs Empty = new RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationArgs();

    /**
     * Email template used when a detected risk event is blocked. See notify email type below.
     * 
     */
    @Import(name="blockEmail")
    private @Nullable Output blockEmail;

    /**
     * @return Email template used when a detected risk event is blocked. See notify email type below.
     * 
     */
    public Optional> blockEmail() {
        return Optional.ofNullable(this.blockEmail);
    }

    /**
     * The email address that is sending the email. The address must be either individually verified with Amazon Simple Email Service, or from a domain that has been verified with Amazon SES.
     * 
     */
    @Import(name="from")
    private @Nullable Output from;

    /**
     * @return The email address that is sending the email. The address must be either individually verified with Amazon Simple Email Service, or from a domain that has been verified with Amazon SES.
     * 
     */
    public Optional> from() {
        return Optional.ofNullable(this.from);
    }

    /**
     * The multi-factor authentication (MFA) email template used when MFA is challenged as part of a detected risk. See notify email type below.
     * 
     */
    @Import(name="mfaEmail")
    private @Nullable Output mfaEmail;

    /**
     * @return The multi-factor authentication (MFA) email template used when MFA is challenged as part of a detected risk. See notify email type below.
     * 
     */
    public Optional> mfaEmail() {
        return Optional.ofNullable(this.mfaEmail);
    }

    /**
     * The email template used when a detected risk event is allowed. See notify email type below.
     * 
     */
    @Import(name="noActionEmail")
    private @Nullable Output noActionEmail;

    /**
     * @return The email template used when a detected risk event is allowed. See notify email type below.
     * 
     */
    public Optional> noActionEmail() {
        return Optional.ofNullable(this.noActionEmail);
    }

    /**
     * The destination to which the receiver of an email should reply to.
     * 
     */
    @Import(name="replyTo")
    private @Nullable Output replyTo;

    /**
     * @return The destination to which the receiver of an email should reply to.
     * 
     */
    public Optional> replyTo() {
        return Optional.ofNullable(this.replyTo);
    }

    /**
     * The Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy. This identity permits Amazon Cognito to send for the email address specified in the From parameter.
     * 
     */
    @Import(name="sourceArn", required=true)
    private Output sourceArn;

    /**
     * @return The Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy. This identity permits Amazon Cognito to send for the email address specified in the From parameter.
     * 
     */
    public Output sourceArn() {
        return this.sourceArn;
    }

    private RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationArgs() {}

    private RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationArgs(RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationArgs $) {
        this.blockEmail = $.blockEmail;
        this.from = $.from;
        this.mfaEmail = $.mfaEmail;
        this.noActionEmail = $.noActionEmail;
        this.replyTo = $.replyTo;
        this.sourceArn = $.sourceArn;
    }

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

    public static final class Builder {
        private RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationArgs $;

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

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

        /**
         * @param blockEmail Email template used when a detected risk event is blocked. See notify email type below.
         * 
         * @return builder
         * 
         */
        public Builder blockEmail(@Nullable Output blockEmail) {
            $.blockEmail = blockEmail;
            return this;
        }

        /**
         * @param blockEmail Email template used when a detected risk event is blocked. See notify email type below.
         * 
         * @return builder
         * 
         */
        public Builder blockEmail(RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationBlockEmailArgs blockEmail) {
            return blockEmail(Output.of(blockEmail));
        }

        /**
         * @param from The email address that is sending the email. The address must be either individually verified with Amazon Simple Email Service, or from a domain that has been verified with Amazon SES.
         * 
         * @return builder
         * 
         */
        public Builder from(@Nullable Output from) {
            $.from = from;
            return this;
        }

        /**
         * @param from The email address that is sending the email. The address must be either individually verified with Amazon Simple Email Service, or from a domain that has been verified with Amazon SES.
         * 
         * @return builder
         * 
         */
        public Builder from(String from) {
            return from(Output.of(from));
        }

        /**
         * @param mfaEmail The multi-factor authentication (MFA) email template used when MFA is challenged as part of a detected risk. See notify email type below.
         * 
         * @return builder
         * 
         */
        public Builder mfaEmail(@Nullable Output mfaEmail) {
            $.mfaEmail = mfaEmail;
            return this;
        }

        /**
         * @param mfaEmail The multi-factor authentication (MFA) email template used when MFA is challenged as part of a detected risk. See notify email type below.
         * 
         * @return builder
         * 
         */
        public Builder mfaEmail(RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationMfaEmailArgs mfaEmail) {
            return mfaEmail(Output.of(mfaEmail));
        }

        /**
         * @param noActionEmail The email template used when a detected risk event is allowed. See notify email type below.
         * 
         * @return builder
         * 
         */
        public Builder noActionEmail(@Nullable Output noActionEmail) {
            $.noActionEmail = noActionEmail;
            return this;
        }

        /**
         * @param noActionEmail The email template used when a detected risk event is allowed. See notify email type below.
         * 
         * @return builder
         * 
         */
        public Builder noActionEmail(RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationNoActionEmailArgs noActionEmail) {
            return noActionEmail(Output.of(noActionEmail));
        }

        /**
         * @param replyTo The destination to which the receiver of an email should reply to.
         * 
         * @return builder
         * 
         */
        public Builder replyTo(@Nullable Output replyTo) {
            $.replyTo = replyTo;
            return this;
        }

        /**
         * @param replyTo The destination to which the receiver of an email should reply to.
         * 
         * @return builder
         * 
         */
        public Builder replyTo(String replyTo) {
            return replyTo(Output.of(replyTo));
        }

        /**
         * @param sourceArn The Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy. This identity permits Amazon Cognito to send for the email address specified in the From parameter.
         * 
         * @return builder
         * 
         */
        public Builder sourceArn(Output sourceArn) {
            $.sourceArn = sourceArn;
            return this;
        }

        /**
         * @param sourceArn The Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy. This identity permits Amazon Cognito to send for the email address specified in the From parameter.
         * 
         * @return builder
         * 
         */
        public Builder sourceArn(String sourceArn) {
            return sourceArn(Output.of(sourceArn));
        }

        public RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationArgs build() {
            if ($.sourceArn == null) {
                throw new MissingRequiredPropertyException("RiskConfigurationAccountTakeoverRiskConfigurationNotifyConfigurationArgs", "sourceArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy