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

com.pulumi.aws.appsync.outputs.GraphQLApiUserPoolConfig 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.appsync.outputs;

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

@CustomType
public final class GraphQLApiUserPoolConfig {
    /**
     * @return Regular expression for validating the incoming Amazon Cognito User Pool app client ID.
     * 
     */
    private @Nullable String appIdClientRegex;
    /**
     * @return AWS region in which the user pool was created.
     * 
     */
    private @Nullable String awsRegion;
    /**
     * @return Action that you want your GraphQL API to take when a request that uses Amazon Cognito User Pool authentication doesn't match the Amazon Cognito User Pool configuration. Valid: `ALLOW` and `DENY`
     * 
     */
    private String defaultAction;
    /**
     * @return User pool ID.
     * 
     */
    private String userPoolId;

    private GraphQLApiUserPoolConfig() {}
    /**
     * @return Regular expression for validating the incoming Amazon Cognito User Pool app client ID.
     * 
     */
    public Optional appIdClientRegex() {
        return Optional.ofNullable(this.appIdClientRegex);
    }
    /**
     * @return AWS region in which the user pool was created.
     * 
     */
    public Optional awsRegion() {
        return Optional.ofNullable(this.awsRegion);
    }
    /**
     * @return Action that you want your GraphQL API to take when a request that uses Amazon Cognito User Pool authentication doesn't match the Amazon Cognito User Pool configuration. Valid: `ALLOW` and `DENY`
     * 
     */
    public String defaultAction() {
        return this.defaultAction;
    }
    /**
     * @return User pool ID.
     * 
     */
    public String userPoolId() {
        return this.userPoolId;
    }

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

    public static Builder builder(GraphQLApiUserPoolConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String appIdClientRegex;
        private @Nullable String awsRegion;
        private String defaultAction;
        private String userPoolId;
        public Builder() {}
        public Builder(GraphQLApiUserPoolConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.appIdClientRegex = defaults.appIdClientRegex;
    	      this.awsRegion = defaults.awsRegion;
    	      this.defaultAction = defaults.defaultAction;
    	      this.userPoolId = defaults.userPoolId;
        }

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

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

            this.awsRegion = awsRegion;
            return this;
        }
        @CustomType.Setter
        public Builder defaultAction(String defaultAction) {
            if (defaultAction == null) {
              throw new MissingRequiredPropertyException("GraphQLApiUserPoolConfig", "defaultAction");
            }
            this.defaultAction = defaultAction;
            return this;
        }
        @CustomType.Setter
        public Builder userPoolId(String userPoolId) {
            if (userPoolId == null) {
              throw new MissingRequiredPropertyException("GraphQLApiUserPoolConfig", "userPoolId");
            }
            this.userPoolId = userPoolId;
            return this;
        }
        public GraphQLApiUserPoolConfig build() {
            final var _resultValue = new GraphQLApiUserPoolConfig();
            _resultValue.appIdClientRegex = appIdClientRegex;
            _resultValue.awsRegion = awsRegion;
            _resultValue.defaultAction = defaultAction;
            _resultValue.userPoolId = userPoolId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy