UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

214 lines (213 loc) • 12.4 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * ## Import * * Using `pulumi import`, import DB proxies using the `name`. For example: * * ```sh * $ pulumi import aws:rds/proxy:Proxy example example * ``` */ export declare class Proxy extends pulumi.CustomResource { /** * Get an existing Proxy resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProxyState, opts?: pulumi.CustomResourceOptions): Proxy; /** * Returns true if the given object is an instance of Proxy. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Proxy; /** * The Amazon Resource Name (ARN) for the proxy. */ readonly arn: pulumi.Output<string>; /** * Configuration block(s) with authorization mechanisms to connect to the associated instances or clusters. Described below. */ readonly auths: pulumi.Output<outputs.rds.ProxyAuth[]>; /** * 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. */ readonly debugLogging: pulumi.Output<boolean | undefined>; /** * 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. */ readonly endpoint: pulumi.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. For Aurora MySQL, RDS for MariaDB, and RDS for MySQL databases, specify `MYSQL`. For Aurora PostgreSQL and RDS for PostgreSQL databases, specify `POSTGRESQL`. For RDS for Microsoft SQL Server, specify `SQLSERVER`. Valid values are `MYSQL`, `POSTGRESQL`, and `SQLSERVER`. */ readonly engineFamily: pulumi.Output<string>; /** * 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. */ readonly idleClientTimeout: pulumi.Output<number>; /** * 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. */ readonly name: pulumi.Output<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output<string>; /** * 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. */ readonly requireTls: pulumi.Output<boolean | undefined>; /** * The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. */ readonly roleArn: pulumi.Output<string>; /** * A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * One or more VPC security group IDs to associate with the new proxy. */ readonly vpcSecurityGroupIds: pulumi.Output<string[]>; /** * One or more VPC subnet IDs to associate with the new proxy. */ readonly vpcSubnetIds: pulumi.Output<string[]>; /** * Create a Proxy resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ProxyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Proxy resources. */ export interface ProxyState { /** * The Amazon Resource Name (ARN) for the proxy. */ arn?: pulumi.Input<string>; /** * Configuration block(s) with authorization mechanisms to connect to the associated instances or clusters. Described below. */ auths?: pulumi.Input<pulumi.Input<inputs.rds.ProxyAuth>[]>; /** * 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. */ debugLogging?: pulumi.Input<boolean>; /** * 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. */ endpoint?: pulumi.Input<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. For Aurora MySQL, RDS for MariaDB, and RDS for MySQL databases, specify `MYSQL`. For Aurora PostgreSQL and RDS for PostgreSQL databases, specify `POSTGRESQL`. For RDS for Microsoft SQL Server, specify `SQLSERVER`. Valid values are `MYSQL`, `POSTGRESQL`, and `SQLSERVER`. */ engineFamily?: pulumi.Input<string>; /** * 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. */ idleClientTimeout?: pulumi.Input<number>; /** * 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. */ name?: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * 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. */ requireTls?: pulumi.Input<boolean>; /** * The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. */ roleArn?: pulumi.Input<string>; /** * A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * One or more VPC security group IDs to associate with the new proxy. */ vpcSecurityGroupIds?: pulumi.Input<pulumi.Input<string>[]>; /** * One or more VPC subnet IDs to associate with the new proxy. */ vpcSubnetIds?: pulumi.Input<pulumi.Input<string>[]>; } /** * The set of arguments for constructing a Proxy resource. */ export interface ProxyArgs { /** * Configuration block(s) with authorization mechanisms to connect to the associated instances or clusters. Described below. */ auths: pulumi.Input<pulumi.Input<inputs.rds.ProxyAuth>[]>; /** * 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. */ debugLogging?: pulumi.Input<boolean>; /** * 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. For Aurora MySQL, RDS for MariaDB, and RDS for MySQL databases, specify `MYSQL`. For Aurora PostgreSQL and RDS for PostgreSQL databases, specify `POSTGRESQL`. For RDS for Microsoft SQL Server, specify `SQLSERVER`. Valid values are `MYSQL`, `POSTGRESQL`, and `SQLSERVER`. */ engineFamily: pulumi.Input<string>; /** * 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. */ idleClientTimeout?: pulumi.Input<number>; /** * 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. */ name?: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * 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. */ requireTls?: pulumi.Input<boolean>; /** * The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. */ roleArn: pulumi.Input<string>; /** * A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * One or more VPC security group IDs to associate with the new proxy. */ vpcSecurityGroupIds?: pulumi.Input<pulumi.Input<string>[]>; /** * One or more VPC subnet IDs to associate with the new proxy. */ vpcSubnetIds: pulumi.Input<pulumi.Input<string>[]>; }