Proxy

class Proxy : KotlinCustomResource

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

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) for the proxy.

Link copied to clipboard
val auths: Output<List<ProxyAuth>>

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

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

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 endpoint: Output<String>

The endpoint that you can use to connect to the proxy. You include the endpoint value in the connection string for a database client application.

Link copied to clipboard
val engineFamily: Output<String>

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 id: Output<String>
Link copied to clipboard
val idleClientTimeout: Output<Int>

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>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val requireTls: Output<Boolean>?

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>

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>>?

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 tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

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

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

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