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

com.pulumi.aws.appsync.inputs.DataSourceRelationalDatabaseConfigHttpEndpointConfigArgs 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.inputs;

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 DataSourceRelationalDatabaseConfigHttpEndpointConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final DataSourceRelationalDatabaseConfigHttpEndpointConfigArgs Empty = new DataSourceRelationalDatabaseConfigHttpEndpointConfigArgs();

    /**
     * AWS secret store ARN for database credentials.
     * 
     */
    @Import(name="awsSecretStoreArn", required=true)
    private Output awsSecretStoreArn;

    /**
     * @return AWS secret store ARN for database credentials.
     * 
     */
    public Output awsSecretStoreArn() {
        return this.awsSecretStoreArn;
    }

    /**
     * Logical database name.
     * 
     */
    @Import(name="databaseName")
    private @Nullable Output databaseName;

    /**
     * @return Logical database name.
     * 
     */
    public Optional> databaseName() {
        return Optional.ofNullable(this.databaseName);
    }

    /**
     * Amazon RDS cluster identifier.
     * 
     */
    @Import(name="dbClusterIdentifier", required=true)
    private Output dbClusterIdentifier;

    /**
     * @return Amazon RDS cluster identifier.
     * 
     */
    public Output dbClusterIdentifier() {
        return this.dbClusterIdentifier;
    }

    /**
     * AWS Region for RDS HTTP endpoint. Defaults to current region.
     * 
     */
    @Import(name="region")
    private @Nullable Output region;

    /**
     * @return AWS Region for RDS HTTP endpoint. Defaults to current region.
     * 
     */
    public Optional> region() {
        return Optional.ofNullable(this.region);
    }

    /**
     * Logical schema name.
     * 
     */
    @Import(name="schema")
    private @Nullable Output schema;

    /**
     * @return Logical schema name.
     * 
     */
    public Optional> schema() {
        return Optional.ofNullable(this.schema);
    }

    private DataSourceRelationalDatabaseConfigHttpEndpointConfigArgs() {}

    private DataSourceRelationalDatabaseConfigHttpEndpointConfigArgs(DataSourceRelationalDatabaseConfigHttpEndpointConfigArgs $) {
        this.awsSecretStoreArn = $.awsSecretStoreArn;
        this.databaseName = $.databaseName;
        this.dbClusterIdentifier = $.dbClusterIdentifier;
        this.region = $.region;
        this.schema = $.schema;
    }

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

    public static final class Builder {
        private DataSourceRelationalDatabaseConfigHttpEndpointConfigArgs $;

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

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

        /**
         * @param awsSecretStoreArn AWS secret store ARN for database credentials.
         * 
         * @return builder
         * 
         */
        public Builder awsSecretStoreArn(Output awsSecretStoreArn) {
            $.awsSecretStoreArn = awsSecretStoreArn;
            return this;
        }

        /**
         * @param awsSecretStoreArn AWS secret store ARN for database credentials.
         * 
         * @return builder
         * 
         */
        public Builder awsSecretStoreArn(String awsSecretStoreArn) {
            return awsSecretStoreArn(Output.of(awsSecretStoreArn));
        }

        /**
         * @param databaseName Logical database name.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(@Nullable Output databaseName) {
            $.databaseName = databaseName;
            return this;
        }

        /**
         * @param databaseName Logical database name.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(String databaseName) {
            return databaseName(Output.of(databaseName));
        }

        /**
         * @param dbClusterIdentifier Amazon RDS cluster identifier.
         * 
         * @return builder
         * 
         */
        public Builder dbClusterIdentifier(Output dbClusterIdentifier) {
            $.dbClusterIdentifier = dbClusterIdentifier;
            return this;
        }

        /**
         * @param dbClusterIdentifier Amazon RDS cluster identifier.
         * 
         * @return builder
         * 
         */
        public Builder dbClusterIdentifier(String dbClusterIdentifier) {
            return dbClusterIdentifier(Output.of(dbClusterIdentifier));
        }

        /**
         * @param region AWS Region for RDS HTTP endpoint. Defaults to current region.
         * 
         * @return builder
         * 
         */
        public Builder region(@Nullable Output region) {
            $.region = region;
            return this;
        }

        /**
         * @param region AWS Region for RDS HTTP endpoint. Defaults to current region.
         * 
         * @return builder
         * 
         */
        public Builder region(String region) {
            return region(Output.of(region));
        }

        /**
         * @param schema Logical schema name.
         * 
         * @return builder
         * 
         */
        public Builder schema(@Nullable Output schema) {
            $.schema = schema;
            return this;
        }

        /**
         * @param schema Logical schema name.
         * 
         * @return builder
         * 
         */
        public Builder schema(String schema) {
            return schema(Output.of(schema));
        }

        public DataSourceRelationalDatabaseConfigHttpEndpointConfigArgs build() {
            if ($.awsSecretStoreArn == null) {
                throw new MissingRequiredPropertyException("DataSourceRelationalDatabaseConfigHttpEndpointConfigArgs", "awsSecretStoreArn");
            }
            if ($.dbClusterIdentifier == null) {
                throw new MissingRequiredPropertyException("DataSourceRelationalDatabaseConfigHttpEndpointConfigArgs", "dbClusterIdentifier");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy