import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Database Management resource in Oracle Cloud Infrastructure Database service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database/latest/CloudDatabaseManagement * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/database * Enable / Update / Disable database management for the specified Oracle Database instance. * * Database Management requires `USER_NAME`, `PASSWORD_SECRET_ID` and `PRIVATE_END_POINT_ID`. * `database.0.database_management_config` is updated to appropriate managementType and managementStatus for the specified Oracle Database instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const test = new oci.database.CloudDatabaseManagement("test", { * databaseId: testDatabase.id, * managementType: databaseCloudDatabaseManagementDetailsManagementType, * privateEndPointId: databaseCloudDatabaseManagementDetailsPrivateEndPointId, * serviceName: databaseCloudDatabaseManagementDetailsServiceName, * credentialdetails: { * userName: databaseCloudDatabaseManagementDetailsUserName, * passwordSecretId: databaseCloudDatabaseManagementDetailsPasswordSecretId, * }, * enableManagement: databaseCloudDatabaseManagementDetailsEnableManagement === "true", * port: Number(cloudDatabaseManagementPort), * protocol: cloudDatabaseManagementProtocol, * role: cloudDatabaseManagementRole, * sslSecretId: testSecret.id, * }); * ``` * * ## Import * * Import is not supported for this resource. */ export declare class CloudDatabaseManagement extends pulumi.CustomResource { /** * Get an existing CloudDatabaseManagement 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?: CloudDatabaseManagementState, opts?: pulumi.CustomResourceOptions): CloudDatabaseManagement; /** * Returns true if the given object is an instance of CloudDatabaseManagement. 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 CloudDatabaseManagement; readonly credentialdetails: pulumi.Output; /** * The database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ readonly databaseId: pulumi.Output; /** * (Updatable) Use this flag to enable/disable database management * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly enableManagement: pulumi.Output; /** * (Updatable) Specifies database management type * enum: * - `BASIC` * - `ADVANCED` */ readonly managementType: pulumi.Output; /** * The port used to connect to the database. */ readonly port: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint. */ readonly privateEndPointId: pulumi.Output; /** * Protocol used by the database connection. */ readonly protocol: pulumi.Output; /** * The role of the user that will be connecting to the database. */ readonly role: pulumi.Output; /** * The name of the Oracle Database service that will be used to connect to the database. */ readonly serviceName: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [secret](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). */ readonly sslSecretId: pulumi.Output; /** * Create a CloudDatabaseManagement 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: CloudDatabaseManagementArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudDatabaseManagement resources. */ export interface CloudDatabaseManagementState { credentialdetails?: pulumi.Input; /** * The database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ databaseId?: pulumi.Input; /** * (Updatable) Use this flag to enable/disable database management * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ enableManagement?: pulumi.Input; /** * (Updatable) Specifies database management type * enum: * - `BASIC` * - `ADVANCED` */ managementType?: pulumi.Input; /** * The port used to connect to the database. */ port?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint. */ privateEndPointId?: pulumi.Input; /** * Protocol used by the database connection. */ protocol?: pulumi.Input; /** * The role of the user that will be connecting to the database. */ role?: pulumi.Input; /** * The name of the Oracle Database service that will be used to connect to the database. */ serviceName?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [secret](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). */ sslSecretId?: pulumi.Input; } /** * The set of arguments for constructing a CloudDatabaseManagement resource. */ export interface CloudDatabaseManagementArgs { credentialdetails: pulumi.Input; /** * The database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ databaseId: pulumi.Input; /** * (Updatable) Use this flag to enable/disable database management * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ enableManagement: pulumi.Input; /** * (Updatable) Specifies database management type * enum: * - `BASIC` * - `ADVANCED` */ managementType: pulumi.Input; /** * The port used to connect to the database. */ port?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint. */ privateEndPointId: pulumi.Input; /** * Protocol used by the database connection. */ protocol?: pulumi.Input; /** * The role of the user that will be connecting to the database. */ role?: pulumi.Input; /** * The name of the Oracle Database service that will be used to connect to the database. */ serviceName: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [secret](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). */ sslSecretId?: pulumi.Input; } //# sourceMappingURL=cloudDatabaseManagement.d.ts.map