import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * This resource provides the Db System resource in Oracle Cloud Infrastructure Psql service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/postgresql/latest/DbSystem
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/psql
 *
 * Creates a new database system.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testDbSystem = new oci.psql.DbSystem("test_db_system", {
 *     compartmentId: compartmentId,
 *     credentials: {
 *         passwordDetails: {
 *             passwordType: dbSystemCredentialsPasswordDetailsPasswordType,
 *             password: dbSystemCredentialsPasswordDetailsPassword,
 *             secretId: testSecret.id,
 *             secretVersion: dbSystemCredentialsPasswordDetailsSecretVersion,
 *         },
 *         username: dbSystemCredentialsUsername,
 *     },
 *     dbVersion: dbSystemDbVersion,
 *     displayName: dbSystemDisplayName,
 *     networkDetails: {
 *         subnetId: testSubnet.id,
 *         isReaderEndpointEnabled: dbSystemNetworkDetailsIsReaderEndpointEnabled === "true",
 *         nsgIds: dbSystemNetworkDetailsNsgIds,
 *         primaryDbEndpointPrivateIp: dbSystemNetworkDetailsPrimaryDbEndpointPrivateIp,
 *     },
 *     shape: dbSystemShape,
 *     storageDetails: {
 *         isRegionallyDurable: dbSystemStorageDetailsIsRegionallyDurable === "true",
 *         systemType: dbSystemStorageDetailsSystemType,
 *         availabilityDomain: dbSystemStorageDetailsAvailabilityDomain,
 *         iops: dbSystemStorageDetailsIops,
 *     },
 *     configId: testConfig.id,
 *     definedTags: {
 *         "foo-namespace.bar-key": "value",
 *     },
 *     description: dbSystemDescription,
 *     freeformTags: {
 *         "bar-key": "value",
 *     },
 *     instanceCount: Number(dbSystemInstanceCount),
 *     instanceMemorySizeInGbs: Number(dbSystemInstanceMemorySizeInGbs),
 *     instanceOcpuCount: Number(dbSystemInstanceOcpuCount),
 *     instancesDetails: [{
 *         description: dbSystemInstancesDetailsDescription,
 *         displayName: dbSystemInstancesDetailsDisplayName,
 *         privateIp: dbSystemInstancesDetailsPrivateIp,
 *     }],
 *     managementPolicy: {
 *         backupPolicy: {
 *             backupStart: dbSystemManagementPolicyBackupPolicyBackupStart,
 *             copyPolicy: {
 *                 compartmentId: compartmentId,
 *                 regions: dbSystemManagementPolicyBackupPolicyCopyPolicyRegions,
 *                 retentionPeriod: Number(dbSystemManagementPolicyBackupPolicyCopyPolicyRetentionPeriod),
 *             },
 *             daysOfTheMonths: dbSystemManagementPolicyBackupPolicyDaysOfTheMonth,
 *             daysOfTheWeeks: dbSystemManagementPolicyBackupPolicyDaysOfTheWeek,
 *             kind: dbSystemManagementPolicyBackupPolicyKind,
 *             retentionDays: Number(dbSystemManagementPolicyBackupPolicyRetentionDays),
 *         },
 *         maintenanceWindowStart: dbSystemManagementPolicyMaintenanceWindowStart,
 *     },
 *     source: {
 *         sourceType: dbSystemSourceSourceType,
 *         backupId: testBackup.id,
 *         isHavingRestoreConfigOverrides: dbSystemSourceIsHavingRestoreConfigOverrides === "true",
 *     },
 *     systemType: dbSystemSystemType,
 *     patchOperations: [{
 *         operation: dbSystemPatchOperationsOperation,
 *         selection: dbSystemPatchOperationsSelection,
 *         value: dbSystemPatchOperationsValue,
 *     }],
 * });
 * ```
 *
 * ## Import
 *
 * DbSystems can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:Psql/dbSystem:DbSystem test_db_system "id"
 * ```
 */
export declare class DbSystem extends pulumi.CustomResource {
    /**
     * Get an existing DbSystem 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?: DbSystemState, opts?: pulumi.CustomResourceOptions): DbSystem;
    /**
     * Returns true if the given object is an instance of DbSystem.  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 DbSystem;
    /**
     * The database system administrator username.
     */
    readonly adminUsername: pulumi.Output<string>;
    /**
     * Whether a configuration update requires a restart of the database instance or a reload of the configuration. Some configuration changes require a restart of database instances to be applied. Apply config can be passed as `RESTART` or `RELOAD`
     */
    readonly applyConfig: pulumi.Output<string | undefined>;
    /**
     * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the database system.
     */
    readonly compartmentId: pulumi.Output<string>;
    /**
     * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the configuration associated with the database system.
     */
    readonly configId: pulumi.Output<string>;
    /**
     * Initial database system credentials that the database system will be provisioned with. The password details are not visible on any subsequent operation, such as GET /dbSystems/{dbSystemId}.
     */
    readonly credentials: pulumi.Output<outputs.Psql.DbSystemCredentials | undefined>;
    /**
     * Version of database system software.
     */
    readonly dbVersion: pulumi.Output<string>;
    /**
     * (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-provided description of a database system.
     */
    readonly description: pulumi.Output<string>;
    /**
     * (Updatable) A user-friendly display name for the database system. Avoid entering confidential information.
     */
    readonly displayName: pulumi.Output<string>;
    /**
     * (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;
    }>;
    /**
     * Count of database instances nodes to be created in the database system.
     */
    readonly instanceCount: pulumi.Output<number>;
    /**
     * (Updatable) The total amount of memory available to each database instance node, in gigabytes.
     */
    readonly instanceMemorySizeInGbs: pulumi.Output<number>;
    /**
     * (Updatable) The total number of OCPUs available to each database instance node.
     */
    readonly instanceOcpuCount: pulumi.Output<number>;
    /**
     * The list of instances, or nodes, in the database system.
     */
    readonly instances: pulumi.Output<outputs.Psql.DbSystemInstance[]>;
    /**
     * Details of database instances nodes to be created. This parameter is optional. If specified, its size must match `instanceCount`.
     */
    readonly instancesDetails: pulumi.Output<outputs.Psql.DbSystemInstancesDetail[]>;
    /**
     * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
     */
    readonly lifecycleDetails: pulumi.Output<string>;
    /**
     * (Updatable) PostgreSQL database system management policy update details.
     */
    readonly managementPolicy: pulumi.Output<outputs.Psql.DbSystemManagementPolicy>;
    /**
     * (Updatable) Network details for the database system.
     */
    readonly networkDetails: pulumi.Output<outputs.Psql.DbSystemNetworkDetails>;
    /**
     * (Updatable) For adding and removing from read replica database instances. Please remove the patchOperations after it is applied. Update the instanceCount arrodrandly. Cannot be specified when creating the resource.
     */
    readonly patchOperations: pulumi.Output<outputs.Psql.DbSystemPatchOperation[] | undefined>;
    /**
     * (Updatable) The name of the shape for the database instance node. Use the /shapes API for accepted shapes. Example: `VM.Standard.E4.Flex`
     */
    readonly shape: pulumi.Output<string>;
    /**
     * The source of the database system.
     */
    readonly source: pulumi.Output<outputs.Psql.DbSystemSource>;
    /**
     * The current state of the database system.
     */
    readonly state: pulumi.Output<string>;
    /**
     * (Updatable) Storage details of the database system.
     */
    readonly storageDetails: pulumi.Output<outputs.Psql.DbSystemStorageDetails>;
    /**
     * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
     */
    readonly systemTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * Type of the database system.
     *
     *
     * ** 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 systemType: pulumi.Output<string>;
    /**
     * The date and time that the database system was created, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format.  Example: `2016-08-25T21:10:29.600Z`
     */
    readonly timeCreated: pulumi.Output<string>;
    /**
     * The date and time that the database system was updated, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format.  Example: `2016-08-25T21:10:29.600Z`
     */
    readonly timeUpdated: pulumi.Output<string>;
    /**
     * Create a DbSystem 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: DbSystemArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering DbSystem resources.
 */
export interface DbSystemState {
    /**
     * The database system administrator username.
     */
    adminUsername?: pulumi.Input<string | undefined>;
    /**
     * Whether a configuration update requires a restart of the database instance or a reload of the configuration. Some configuration changes require a restart of database instances to be applied. Apply config can be passed as `RESTART` or `RELOAD`
     */
    applyConfig?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the database system.
     */
    compartmentId?: pulumi.Input<string | undefined>;
    /**
     * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the configuration associated with the database system.
     */
    configId?: pulumi.Input<string | undefined>;
    /**
     * Initial database system credentials that the database system will be provisioned with. The password details are not visible on any subsequent operation, such as GET /dbSystems/{dbSystemId}.
     */
    credentials?: pulumi.Input<inputs.Psql.DbSystemCredentials | undefined>;
    /**
     * Version of database system software.
     */
    dbVersion?: pulumi.Input<string | undefined>;
    /**
     * (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<string>;
    } | undefined>;
    /**
     * (Updatable) A user-provided description of a database system.
     */
    description?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) A user-friendly display name for the database system. Avoid entering confidential information.
     */
    displayName?: pulumi.Input<string | undefined>;
    /**
     * (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<string>;
    } | undefined>;
    /**
     * Count of database instances nodes to be created in the database system.
     */
    instanceCount?: pulumi.Input<number | undefined>;
    /**
     * (Updatable) The total amount of memory available to each database instance node, in gigabytes.
     */
    instanceMemorySizeInGbs?: pulumi.Input<number | undefined>;
    /**
     * (Updatable) The total number of OCPUs available to each database instance node.
     */
    instanceOcpuCount?: pulumi.Input<number | undefined>;
    /**
     * The list of instances, or nodes, in the database system.
     */
    instances?: pulumi.Input<pulumi.Input<inputs.Psql.DbSystemInstance>[] | undefined>;
    /**
     * Details of database instances nodes to be created. This parameter is optional. If specified, its size must match `instanceCount`.
     */
    instancesDetails?: pulumi.Input<pulumi.Input<inputs.Psql.DbSystemInstancesDetail>[] | undefined>;
    /**
     * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
     */
    lifecycleDetails?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) PostgreSQL database system management policy update details.
     */
    managementPolicy?: pulumi.Input<inputs.Psql.DbSystemManagementPolicy | undefined>;
    /**
     * (Updatable) Network details for the database system.
     */
    networkDetails?: pulumi.Input<inputs.Psql.DbSystemNetworkDetails | undefined>;
    /**
     * (Updatable) For adding and removing from read replica database instances. Please remove the patchOperations after it is applied. Update the instanceCount arrodrandly. Cannot be specified when creating the resource.
     */
    patchOperations?: pulumi.Input<pulumi.Input<inputs.Psql.DbSystemPatchOperation>[] | undefined>;
    /**
     * (Updatable) The name of the shape for the database instance node. Use the /shapes API for accepted shapes. Example: `VM.Standard.E4.Flex`
     */
    shape?: pulumi.Input<string | undefined>;
    /**
     * The source of the database system.
     */
    source?: pulumi.Input<inputs.Psql.DbSystemSource | undefined>;
    /**
     * The current state of the database system.
     */
    state?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Storage details of the database system.
     */
    storageDetails?: pulumi.Input<inputs.Psql.DbSystemStorageDetails | undefined>;
    /**
     * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
     */
    systemTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * Type of the database system.
     *
     *
     * ** 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
     */
    systemType?: pulumi.Input<string | undefined>;
    /**
     * The date and time that the database system was created, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format.  Example: `2016-08-25T21:10:29.600Z`
     */
    timeCreated?: pulumi.Input<string | undefined>;
    /**
     * The date and time that the database system was updated, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format.  Example: `2016-08-25T21:10:29.600Z`
     */
    timeUpdated?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a DbSystem resource.
 */
export interface DbSystemArgs {
    /**
     * Whether a configuration update requires a restart of the database instance or a reload of the configuration. Some configuration changes require a restart of database instances to be applied. Apply config can be passed as `RESTART` or `RELOAD`
     */
    applyConfig?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the database system.
     */
    compartmentId: pulumi.Input<string>;
    /**
     * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the configuration associated with the database system.
     */
    configId?: pulumi.Input<string | undefined>;
    /**
     * Initial database system credentials that the database system will be provisioned with. The password details are not visible on any subsequent operation, such as GET /dbSystems/{dbSystemId}.
     */
    credentials?: pulumi.Input<inputs.Psql.DbSystemCredentials | undefined>;
    /**
     * Version of database system software.
     */
    dbVersion: pulumi.Input<string>;
    /**
     * (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<string>;
    } | undefined>;
    /**
     * (Updatable) A user-provided description of a database system.
     */
    description?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) A user-friendly display name for the database system. Avoid entering confidential information.
     */
    displayName: pulumi.Input<string>;
    /**
     * (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<string>;
    } | undefined>;
    /**
     * Count of database instances nodes to be created in the database system.
     */
    instanceCount?: pulumi.Input<number | undefined>;
    /**
     * (Updatable) The total amount of memory available to each database instance node, in gigabytes.
     */
    instanceMemorySizeInGbs?: pulumi.Input<number | undefined>;
    /**
     * (Updatable) The total number of OCPUs available to each database instance node.
     */
    instanceOcpuCount?: pulumi.Input<number | undefined>;
    /**
     * Details of database instances nodes to be created. This parameter is optional. If specified, its size must match `instanceCount`.
     */
    instancesDetails?: pulumi.Input<pulumi.Input<inputs.Psql.DbSystemInstancesDetail>[] | undefined>;
    /**
     * (Updatable) PostgreSQL database system management policy update details.
     */
    managementPolicy?: pulumi.Input<inputs.Psql.DbSystemManagementPolicy | undefined>;
    /**
     * (Updatable) Network details for the database system.
     */
    networkDetails: pulumi.Input<inputs.Psql.DbSystemNetworkDetails>;
    /**
     * (Updatable) For adding and removing from read replica database instances. Please remove the patchOperations after it is applied. Update the instanceCount arrodrandly. Cannot be specified when creating the resource.
     */
    patchOperations?: pulumi.Input<pulumi.Input<inputs.Psql.DbSystemPatchOperation>[] | undefined>;
    /**
     * (Updatable) The name of the shape for the database instance node. Use the /shapes API for accepted shapes. Example: `VM.Standard.E4.Flex`
     */
    shape: pulumi.Input<string>;
    /**
     * The source of the database system.
     */
    source?: pulumi.Input<inputs.Psql.DbSystemSource | undefined>;
    /**
     * (Updatable) Storage details of the database system.
     */
    storageDetails: pulumi.Input<inputs.Psql.DbSystemStorageDetails>;
    /**
     * Type of the database system.
     *
     *
     * ** 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
     */
    systemType?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=dbSystem.d.ts.map