ProxyArgs

data class ProxyArgs(val auths: Output<List<ProxyAuthArgs>>? = null, val debugLogging: Output<Boolean>? = null, val engineFamily: Output<String>? = null, val idleClientTimeout: Output<Int>? = null, val name: Output<String>? = null, val requireTls: Output<Boolean>? = null, val roleArn: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val vpcSecurityGroupIds: Output<List<String>>? = null, val vpcSubnetIds: Output<List<String>>? = null) : ConvertibleToJava<ProxyArgs>

Provides an RDS DB proxy resource. For additional information, see the RDS User Guide.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.Proxy;
import com.pulumi.aws.rds.ProxyArgs;
import com.pulumi.aws.rds.inputs.ProxyAuthArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Proxy("example", ProxyArgs.builder()
.debugLogging(false)
.engineFamily("MYSQL")
.idleClientTimeout(1800)
.requireTls(true)
.roleArn(aws_iam_role.example().arn())
.vpcSecurityGroupIds(aws_security_group.example().id())
.vpcSubnetIds(aws_subnet.example().id())
.auths(ProxyAuthArgs.builder()
.authScheme("SECRETS")
.description("example")
.iamAuth("DISABLED")
.secretArn(aws_secretsmanager_secret.example().arn())
.build())
.tags(Map.ofEntries(
Map.entry("Name", "example"),
Map.entry("Key", "value")
))
.build());
}
}

Import

DB proxies can be imported using the name, e.g.,

$ pulumi import aws:rds/proxy:Proxy example example

Constructors

Link copied to clipboard
constructor(auths: Output<List<ProxyAuthArgs>>? = null, debugLogging: Output<Boolean>? = null, engineFamily: Output<String>? = null, idleClientTimeout: Output<Int>? = null, name: Output<String>? = null, requireTls: Output<Boolean>? = null, roleArn: Output<String>? = null, tags: Output<Map<String, String>>? = null, vpcSecurityGroupIds: Output<List<String>>? = null, vpcSubnetIds: Output<List<String>>? = null)

Properties

Link copied to clipboard
val auths: Output<List<ProxyAuthArgs>>? = null

Configuration block(s) with authorization mechanisms to connect to the associated instances or clusters. Described below.

Link copied to clipboard
val debugLogging: Output<Boolean>? = null

Whether the proxy includes detailed information about SQL statements in its logs. This information helps you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting when needed for debugging, and only when you have security measures in place to safeguard any sensitive information that appears in the logs.

Link copied to clipboard
val engineFamily: Output<String>? = null

The kinds of databases that the proxy can connect to. This value determines which database network protocol the proxy recognizes when it interprets network traffic to and from the database. The engine family applies to MySQL and PostgreSQL for both RDS and Aurora. Valid values are MYSQL and POSTGRESQL.

Link copied to clipboard
val idleClientTimeout: Output<Int>? = null

The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You can set this value higher or lower than the connection timeout limit for the associated database.

Link copied to clipboard
val name: Output<String>? = null

The identifier for the proxy. This name must be unique for all proxies owned by your AWS account in the specified AWS Region. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.

Link copied to clipboard
val requireTls: Output<Boolean>? = null

A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling this setting, you can enforce encrypted TLS connections to the proxy.

Link copied to clipboard
val roleArn: Output<String>? = null

The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val vpcSecurityGroupIds: Output<List<String>>? = null

One or more VPC security group IDs to associate with the new proxy.

Link copied to clipboard
val vpcSubnetIds: Output<List<String>>? = null

One or more VPC subnet IDs to associate with the new proxy.

Functions

Link copied to clipboard
open override fun toJava(): ProxyArgs