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

com.pulumi.aws.cognito.outputs.UserPoolEmailConfiguration Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class UserPoolEmailConfiguration {
    /**
     * @return Email configuration set name from SES.
     * 
     */
    private @Nullable String configurationSet;
    /**
     * @return Email delivery method to use. `COGNITO_DEFAULT` for the default email functionality built into Cognito or `DEVELOPER` to use your Amazon SES configuration. Required to be `DEVELOPER` if `from_email_address` is set.
     * 
     */
    private @Nullable String emailSendingAccount;
    /**
     * @return Sender’s email address or sender’s display name with their email address (e.g., `john{@literal @}example.com`, `John Smith <john{@literal @}example.com>` or `\"John Smith Ph.D.\" <john{@literal @}example.com>`). Escaped double quotes are required around display names that contain certain characters as specified in [RFC 5322](https://tools.ietf.org/html/rfc5322).
     * 
     */
    private @Nullable String fromEmailAddress;
    /**
     * @return REPLY-TO email address.
     * 
     */
    private @Nullable String replyToEmailAddress;
    /**
     * @return ARN of the SES verified email identity to use. Required if `email_sending_account` is set to `DEVELOPER`.
     * 
     */
    private @Nullable String sourceArn;

    private UserPoolEmailConfiguration() {}
    /**
     * @return Email configuration set name from SES.
     * 
     */
    public Optional configurationSet() {
        return Optional.ofNullable(this.configurationSet);
    }
    /**
     * @return Email delivery method to use. `COGNITO_DEFAULT` for the default email functionality built into Cognito or `DEVELOPER` to use your Amazon SES configuration. Required to be `DEVELOPER` if `from_email_address` is set.
     * 
     */
    public Optional emailSendingAccount() {
        return Optional.ofNullable(this.emailSendingAccount);
    }
    /**
     * @return Sender’s email address or sender’s display name with their email address (e.g., `john{@literal @}example.com`, `John Smith <john{@literal @}example.com>` or `\"John Smith Ph.D.\" <john{@literal @}example.com>`). Escaped double quotes are required around display names that contain certain characters as specified in [RFC 5322](https://tools.ietf.org/html/rfc5322).
     * 
     */
    public Optional fromEmailAddress() {
        return Optional.ofNullable(this.fromEmailAddress);
    }
    /**
     * @return REPLY-TO email address.
     * 
     */
    public Optional replyToEmailAddress() {
        return Optional.ofNullable(this.replyToEmailAddress);
    }
    /**
     * @return ARN of the SES verified email identity to use. Required if `email_sending_account` is set to `DEVELOPER`.
     * 
     */
    public Optional sourceArn() {
        return Optional.ofNullable(this.sourceArn);
    }

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

    public static Builder builder(UserPoolEmailConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String configurationSet;
        private @Nullable String emailSendingAccount;
        private @Nullable String fromEmailAddress;
        private @Nullable String replyToEmailAddress;
        private @Nullable String sourceArn;
        public Builder() {}
        public Builder(UserPoolEmailConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.configurationSet = defaults.configurationSet;
    	      this.emailSendingAccount = defaults.emailSendingAccount;
    	      this.fromEmailAddress = defaults.fromEmailAddress;
    	      this.replyToEmailAddress = defaults.replyToEmailAddress;
    	      this.sourceArn = defaults.sourceArn;
        }

        @CustomType.Setter
        public Builder configurationSet(@Nullable String configurationSet) {

            this.configurationSet = configurationSet;
            return this;
        }
        @CustomType.Setter
        public Builder emailSendingAccount(@Nullable String emailSendingAccount) {

            this.emailSendingAccount = emailSendingAccount;
            return this;
        }
        @CustomType.Setter
        public Builder fromEmailAddress(@Nullable String fromEmailAddress) {

            this.fromEmailAddress = fromEmailAddress;
            return this;
        }
        @CustomType.Setter
        public Builder replyToEmailAddress(@Nullable String replyToEmailAddress) {

            this.replyToEmailAddress = replyToEmailAddress;
            return this;
        }
        @CustomType.Setter
        public Builder sourceArn(@Nullable String sourceArn) {

            this.sourceArn = sourceArn;
            return this;
        }
        public UserPoolEmailConfiguration build() {
            final var _resultValue = new UserPoolEmailConfiguration();
            _resultValue.configurationSet = configurationSet;
            _resultValue.emailSendingAccount = emailSendingAccount;
            _resultValue.fromEmailAddress = fromEmailAddress;
            _resultValue.replyToEmailAddress = replyToEmailAddress;
            _resultValue.sourceArn = sourceArn;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy