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

com.pulumi.aws.elasticsearch.inputs.DomainCognitoOptionsArgs 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.elasticsearch.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DomainCognitoOptionsArgs Empty = new DomainCognitoOptionsArgs();

    /**
     * Whether Amazon Cognito authentication with Kibana is enabled or not.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Whether Amazon Cognito authentication with Kibana is enabled or not.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * ID of the Cognito Identity Pool to use.
     * 
     */
    @Import(name="identityPoolId", required=true)
    private Output identityPoolId;

    /**
     * @return ID of the Cognito Identity Pool to use.
     * 
     */
    public Output identityPoolId() {
        return this.identityPoolId;
    }

    /**
     * ARN of the IAM role that has the AmazonESCognitoAccess policy attached.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return ARN of the IAM role that has the AmazonESCognitoAccess policy attached.
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    /**
     * ID of the Cognito User Pool to use.
     * 
     */
    @Import(name="userPoolId", required=true)
    private Output userPoolId;

    /**
     * @return ID of the Cognito User Pool to use.
     * 
     */
    public Output userPoolId() {
        return this.userPoolId;
    }

    private DomainCognitoOptionsArgs() {}

    private DomainCognitoOptionsArgs(DomainCognitoOptionsArgs $) {
        this.enabled = $.enabled;
        this.identityPoolId = $.identityPoolId;
        this.roleArn = $.roleArn;
        this.userPoolId = $.userPoolId;
    }

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

    public static final class Builder {
        private DomainCognitoOptionsArgs $;

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

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

        /**
         * @param enabled Whether Amazon Cognito authentication with Kibana is enabled or not.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether Amazon Cognito authentication with Kibana is enabled or not.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param identityPoolId ID of the Cognito Identity Pool to use.
         * 
         * @return builder
         * 
         */
        public Builder identityPoolId(Output identityPoolId) {
            $.identityPoolId = identityPoolId;
            return this;
        }

        /**
         * @param identityPoolId ID of the Cognito Identity Pool to use.
         * 
         * @return builder
         * 
         */
        public Builder identityPoolId(String identityPoolId) {
            return identityPoolId(Output.of(identityPoolId));
        }

        /**
         * @param roleArn ARN of the IAM role that has the AmazonESCognitoAccess policy attached.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn ARN of the IAM role that has the AmazonESCognitoAccess policy attached.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        /**
         * @param userPoolId ID of the Cognito User Pool to use.
         * 
         * @return builder
         * 
         */
        public Builder userPoolId(Output userPoolId) {
            $.userPoolId = userPoolId;
            return this;
        }

        /**
         * @param userPoolId ID of the Cognito User Pool to use.
         * 
         * @return builder
         * 
         */
        public Builder userPoolId(String userPoolId) {
            return userPoolId(Output.of(userPoolId));
        }

        public DomainCognitoOptionsArgs build() {
            if ($.identityPoolId == null) {
                throw new MissingRequiredPropertyException("DomainCognitoOptionsArgs", "identityPoolId");
            }
            if ($.roleArn == null) {
                throw new MissingRequiredPropertyException("DomainCognitoOptionsArgs", "roleArn");
            }
            if ($.userPoolId == null) {
                throw new MissingRequiredPropertyException("DomainCognitoOptionsArgs", "userPoolId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy