import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Database Tools Connection resource in Oracle Cloud Infrastructure Database Tools service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database-tools/latest/DatabaseToolsConnection * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/databaseTools * * Creates a new Database Tools connection. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDatabaseToolsConnection = new oci.databasetools.DatabaseToolsConnection("test_database_tools_connection", { * compartmentId: compartmentId, * displayName: databaseToolsConnectionDisplayName, * type: databaseToolsConnectionType, * userName: testUser.name, * userPassword: { * secretId: testSecret.id, * valueType: databaseToolsConnectionUserPasswordValueType, * }, * advancedProperties: databaseToolsConnectionAdvancedProperties, * authenticationType: databaseToolsConnectionAuthenticationType, * connectionString: databaseToolsConnectionConnectionString, * definedTags: { * "foo-namespace.bar-key": "value", * }, * freeformTags: { * "bar-key": "value", * }, * keyStores: [{ * keyStoreContent: { * valueType: databaseToolsConnectionKeyStoresKeyStoreContentValueType, * secretId: testSecret.id, * }, * keyStorePassword: { * valueType: databaseToolsConnectionKeyStoresKeyStorePasswordValueType, * secretId: testSecret.id, * }, * keyStoreType: databaseToolsConnectionKeyStoresKeyStoreType, * }], * locks: [{ * type: databaseToolsConnectionLocksType, * message: databaseToolsConnectionLocksMessage, * relatedResourceId: testResource.id, * timeCreated: databaseToolsConnectionLocksTimeCreated, * }], * privateEndpointId: testDatabaseToolsPrivateEndpoint.id, * proxyClient: { * proxyAuthenticationType: databaseToolsConnectionProxyClientProxyAuthenticationType, * roles: databaseToolsConnectionProxyClientRoles, * userName: testUser.name, * userPassword: { * secretId: testSecret.id, * valueType: databaseToolsConnectionProxyClientUserPasswordValueType, * }, * }, * relatedResource: { * entityType: databaseToolsConnectionRelatedResourceEntityType, * identifier: databaseToolsConnectionRelatedResourceIdentifier, * }, * runtimeIdentity: databaseToolsConnectionRuntimeIdentity, * runtimeSupport: databaseToolsConnectionRuntimeSupport, * url: databaseToolsConnectionUrl, * }); * ``` * * ## Import * * DatabaseToolsConnections can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DatabaseTools/databaseToolsConnection:DatabaseToolsConnection test_database_tools_connection "id" * ``` */ export declare class DatabaseToolsConnection extends pulumi.CustomResource { /** * Get an existing DatabaseToolsConnection 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, state?: DatabaseToolsConnectionState, opts?: pulumi.CustomResourceOptions): DatabaseToolsConnection; /** * Returns true if the given object is an instance of DatabaseToolsConnection. 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 DatabaseToolsConnection; /** * (Updatable) The advanced connection properties key-value pair (e.g., `oracle.net.ssl_server_dn_match`). */ readonly advancedProperties: pulumi.Output<{ [key: string]: string; }>; /** * Specifies the authentication type used by the Database Tools service to authenticate with the database. */ readonly authenticationType: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools connection. */ readonly compartmentId: pulumi.Output; /** * (Updatable) The connect descriptor or Easy Connect Naming method use to connect to the database. */ readonly connectionString: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly displayName: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Oracle wallet or Java Keystores containing trusted certificates for authenticating the server's public certificate and the client private key and associated certificates required for client authentication. */ readonly keyStores: pulumi.Output; /** * A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state. */ readonly lifecycleDetails: pulumi.Output; /** * Locks associated with this resource. */ readonly locks: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools private endpoint used to access the database in the customer VCN. */ readonly privateEndpointId: pulumi.Output; /** * (Updatable) The proxy client information. */ readonly proxyClient: pulumi.Output; /** * (Updatable) The related resource */ readonly relatedResource: pulumi.Output; /** * Specifies the Database Tools Runtime endpoint. */ readonly runtimeEndpoint: pulumi.Output; /** * Specifies the identity used when accessing Oracle Cloud Infrastructure resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller’s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the connection’s resource principal (RPST). */ readonly runtimeIdentity: pulumi.Output; /** * Specifies whether this connection is supported by the Database Tools Runtime. */ readonly runtimeSupport: pulumi.Output; /** * The current state of the Database Tools connection. */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The time the Database Tools connection was created. An RFC3339 formatted datetime string. */ readonly timeCreated: pulumi.Output; /** * The time the Database Tools connection was updated. An RFC3339 formatted datetime string. */ readonly timeUpdated: pulumi.Output; /** * (Updatable) The Database Tools connection type. */ readonly type: pulumi.Output; /** * (Updatable) The JDBC URL used to connect to the Generic JDBC database system. */ readonly url: pulumi.Output; /** * (Updatable) The database user name. */ readonly userName: pulumi.Output; /** * (Updatable) The database user password. */ readonly userPassword: pulumi.Output; /** * Create a DatabaseToolsConnection 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: DatabaseToolsConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DatabaseToolsConnection resources. */ export interface DatabaseToolsConnectionState { /** * (Updatable) The advanced connection properties key-value pair (e.g., `oracle.net.ssl_server_dn_match`). */ advancedProperties?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Specifies the authentication type used by the Database Tools service to authenticate with the database. */ authenticationType?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools connection. */ compartmentId?: pulumi.Input; /** * (Updatable) The connect descriptor or Easy Connect Naming method use to connect to the database. */ connectionString?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Oracle wallet or Java Keystores containing trusted certificates for authenticating the server's public certificate and the client private key and associated certificates required for client authentication. */ keyStores?: pulumi.Input[] | undefined>; /** * A message describing the current state in more detail. For example, this message can be used to provide actionable information for a resource in the Failed state. */ lifecycleDetails?: pulumi.Input; /** * Locks associated with this resource. */ locks?: pulumi.Input[] | undefined>; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools private endpoint used to access the database in the customer VCN. */ privateEndpointId?: pulumi.Input; /** * (Updatable) The proxy client information. */ proxyClient?: pulumi.Input; /** * (Updatable) The related resource */ relatedResource?: pulumi.Input; /** * Specifies the Database Tools Runtime endpoint. */ runtimeEndpoint?: pulumi.Input; /** * Specifies the identity used when accessing Oracle Cloud Infrastructure resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller’s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the connection’s resource principal (RPST). */ runtimeIdentity?: pulumi.Input; /** * Specifies whether this connection is supported by the Database Tools Runtime. */ runtimeSupport?: pulumi.Input; /** * The current state of the Database Tools connection. */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The time the Database Tools connection was created. An RFC3339 formatted datetime string. */ timeCreated?: pulumi.Input; /** * The time the Database Tools connection was updated. An RFC3339 formatted datetime string. */ timeUpdated?: pulumi.Input; /** * (Updatable) The Database Tools connection type. */ type?: pulumi.Input; /** * (Updatable) The JDBC URL used to connect to the Generic JDBC database system. */ url?: pulumi.Input; /** * (Updatable) The database user name. */ userName?: pulumi.Input; /** * (Updatable) The database user password. */ userPassword?: pulumi.Input; } /** * The set of arguments for constructing a DatabaseToolsConnection resource. */ export interface DatabaseToolsConnectionArgs { /** * (Updatable) The advanced connection properties key-value pair (e.g., `oracle.net.ssl_server_dn_match`). */ advancedProperties?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Specifies the authentication type used by the Database Tools service to authenticate with the database. */ authenticationType?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools connection. */ compartmentId: pulumi.Input; /** * (Updatable) The connect descriptor or Easy Connect Naming method use to connect to the database. */ connectionString?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ displayName: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Oracle wallet or Java Keystores containing trusted certificates for authenticating the server's public certificate and the client private key and associated certificates required for client authentication. */ keyStores?: pulumi.Input[] | undefined>; /** * Locks associated with this resource. */ locks?: pulumi.Input[] | undefined>; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Tools private endpoint used to access the database in the customer VCN. */ privateEndpointId?: pulumi.Input; /** * (Updatable) The proxy client information. */ proxyClient?: pulumi.Input; /** * (Updatable) The related resource */ relatedResource?: pulumi.Input; /** * Specifies the identity used when accessing Oracle Cloud Infrastructure resources at runtime. AUTHENTICATED_PRINCIPAL to use the caller’s identity (On-Behalf-Of token), or RESOURCE_PRINCIPAL to use the connection’s resource principal (RPST). */ runtimeIdentity?: pulumi.Input; /** * Specifies whether this connection is supported by the Database Tools Runtime. */ runtimeSupport?: pulumi.Input; /** * (Updatable) The Database Tools connection type. */ type: pulumi.Input; /** * (Updatable) The JDBC URL used to connect to the Generic JDBC database system. */ url?: pulumi.Input; /** * (Updatable) The database user name. */ userName?: pulumi.Input; /** * (Updatable) The database user password. */ userPassword?: pulumi.Input; } //# sourceMappingURL=databaseToolsConnection.d.ts.map