com.pulumi.digitalocean.DatabaseConnectionPoolArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of digitalocean Show documentation
Show all versions of digitalocean Show documentation
A Pulumi package for creating and managing DigitalOcean cloud resources.
// *** 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.digitalocean;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class DatabaseConnectionPoolArgs extends com.pulumi.resources.ResourceArgs {
public static final DatabaseConnectionPoolArgs Empty = new DatabaseConnectionPoolArgs();
/**
* The ID of the source database cluster. Note: This must be a PostgreSQL cluster.
*
*/
@Import(name="clusterId", required=true)
private Output clusterId;
/**
* @return The ID of the source database cluster. Note: This must be a PostgreSQL cluster.
*
*/
public Output clusterId() {
return this.clusterId;
}
/**
* The database for use with the connection pool.
*
*/
@Import(name="dbName", required=true)
private Output dbName;
/**
* @return The database for use with the connection pool.
*
*/
public Output dbName() {
return this.dbName;
}
/**
* The PGBouncer transaction mode for the connection pool. The allowed values are session, transaction, and statement.
*
*/
@Import(name="mode", required=true)
private Output mode;
/**
* @return The PGBouncer transaction mode for the connection pool. The allowed values are session, transaction, and statement.
*
*/
public Output mode() {
return this.mode;
}
/**
* The name for the database connection pool.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return The name for the database connection pool.
*
*/
public Optional