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. * * ## 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, 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; /** * Specify change mode to apply when converting from warm standby to standalone. It can be set to 'IMMEDIATELY' or 'REPLAY_PENDING_UPDATES'. If source.primary_db_system_id is disabled, `REPLAY_PENDING_UPDATES` is used by default. */ readonly applyChangeModeToStandAlone: pulumi.Output; /** * 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; /** * (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; /** * 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; /** * 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; /** * Version of database system software. */ readonly dbVersion: 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-provided description of a database system. */ readonly description: pulumi.Output; /** * (Updatable) A user-friendly display name for the database system. 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; }>; /** * Count of database instances nodes to be created in the database system. */ readonly instanceCount: pulumi.Output; /** * (Updatable) The total amount of memory available to each database instance node, in gigabytes. */ readonly instanceMemorySizeInGbs: pulumi.Output; /** * (Updatable) The total number of OCPUs available to each database instance node. */ readonly instanceOcpuCount: pulumi.Output; /** * The list of instances, or nodes, in the database system. */ readonly instances: pulumi.Output; /** * Details of database instances nodes to be created. This parameter is optional. If specified, its size must match `instanceCount`. */ readonly instancesDetails: pulumi.Output; /** * Kerberos Authentication details for the database system. */ readonly kerberosAuthDetails: pulumi.Output; /** * 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; /** * (Updatable) PostgreSQL database system management policy update details. */ readonly managementPolicy: pulumi.Output; /** * (Updatable) Network details for the database system. */ readonly networkDetails: pulumi.Output; /** * (Updatable) ODSP Insight details for the database system. */ readonly odspInsightDetails: pulumi.Output; /** * (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; /** * (Updatable) Details of the replication configuration that is applicable when database system gets the PRIMARY_DB_SYSTEM role. * * This configuration does not have any effect on database systems with other roles. */ readonly replicationConfig: pulumi.Output; /** * (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; /** * The source of the database system. */ readonly source: pulumi.Output; /** * (Updatable) The target state for the Db System. Could be set to `ACTIVE` or `INACTIVE`. * * ** 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 state: pulumi.Output; /** * (Updatable) Storage details of the database system. */ readonly storageDetails: pulumi.Output; /** * Type of the database system. */ readonly systemRole: pulumi.Output; /** * 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. */ readonly systemType: pulumi.Output; /** * 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; /** * 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; /** * 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; /** * Specify change mode to apply when converting from warm standby to standalone. It can be set to 'IMMEDIATELY' or 'REPLAY_PENDING_UPDATES'. If source.primary_db_system_id is disabled, `REPLAY_PENDING_UPDATES` is used by default. */ applyChangeModeToStandAlone?: pulumi.Input; /** * 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; /** * (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; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the configuration associated with the database system. */ configId?: pulumi.Input; /** * 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; /** * Version of database system software. */ dbVersion?: 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-provided description of a database system. */ description?: pulumi.Input; /** * (Updatable) A user-friendly display name for the database system. 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>; /** * Count of database instances nodes to be created in the database system. */ instanceCount?: pulumi.Input; /** * (Updatable) The total amount of memory available to each database instance node, in gigabytes. */ instanceMemorySizeInGbs?: pulumi.Input; /** * (Updatable) The total number of OCPUs available to each database instance node. */ instanceOcpuCount?: pulumi.Input; /** * The list of instances, or nodes, in the database system. */ instances?: pulumi.Input[] | undefined>; /** * Details of database instances nodes to be created. This parameter is optional. If specified, its size must match `instanceCount`. */ instancesDetails?: pulumi.Input[] | undefined>; /** * Kerberos Authentication details for the database system. */ kerberosAuthDetails?: pulumi.Input; /** * 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; /** * (Updatable) PostgreSQL database system management policy update details. */ managementPolicy?: pulumi.Input; /** * (Updatable) Network details for the database system. */ networkDetails?: pulumi.Input; /** * (Updatable) ODSP Insight details for the database system. */ odspInsightDetails?: pulumi.Input; /** * (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[] | undefined>; /** * (Updatable) Details of the replication configuration that is applicable when database system gets the PRIMARY_DB_SYSTEM role. * * This configuration does not have any effect on database systems with other roles. */ replicationConfig?: pulumi.Input; /** * (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; /** * The source of the database system. */ source?: pulumi.Input; /** * (Updatable) The target state for the Db System. Could be set to `ACTIVE` or `INACTIVE`. * * ** 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 */ state?: pulumi.Input; /** * (Updatable) Storage details of the database system. */ storageDetails?: pulumi.Input; /** * Type of the database system. */ systemRole?: pulumi.Input; /** * 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; } | undefined>; /** * Type of the database system. */ systemType?: pulumi.Input; /** * 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; /** * 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; } /** * The set of arguments for constructing a DbSystem resource. */ export interface DbSystemArgs { /** * Specify change mode to apply when converting from warm standby to standalone. It can be set to 'IMMEDIATELY' or 'REPLAY_PENDING_UPDATES'. If source.primary_db_system_id is disabled, `REPLAY_PENDING_UPDATES` is used by default. */ applyChangeModeToStandAlone?: pulumi.Input; /** * 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; /** * (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; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the configuration associated with the database system. */ configId?: pulumi.Input; /** * 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; /** * Version of database system software. */ dbVersion: 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-provided description of a database system. */ description?: pulumi.Input; /** * (Updatable) A user-friendly display name for the database system. 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>; /** * Count of database instances nodes to be created in the database system. */ instanceCount?: pulumi.Input; /** * (Updatable) The total amount of memory available to each database instance node, in gigabytes. */ instanceMemorySizeInGbs?: pulumi.Input; /** * (Updatable) The total number of OCPUs available to each database instance node. */ instanceOcpuCount?: pulumi.Input; /** * Details of database instances nodes to be created. This parameter is optional. If specified, its size must match `instanceCount`. */ instancesDetails?: pulumi.Input[] | undefined>; /** * Kerberos Authentication details for the database system. */ kerberosAuthDetails?: pulumi.Input; /** * (Updatable) PostgreSQL database system management policy update details. */ managementPolicy?: pulumi.Input; /** * (Updatable) Network details for the database system. */ networkDetails: pulumi.Input; /** * (Updatable) ODSP Insight details for the database system. */ odspInsightDetails?: pulumi.Input; /** * (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[] | undefined>; /** * (Updatable) Details of the replication configuration that is applicable when database system gets the PRIMARY_DB_SYSTEM role. * * This configuration does not have any effect on database systems with other roles. */ replicationConfig?: pulumi.Input; /** * (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; /** * The source of the database system. */ source?: pulumi.Input; /** * (Updatable) The target state for the Db System. Could be set to `ACTIVE` or `INACTIVE`. * * ** 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 */ state?: pulumi.Input; /** * (Updatable) Storage details of the database system. */ storageDetails: pulumi.Input; /** * Type of the database system. */ systemType?: pulumi.Input; } //# sourceMappingURL=dbSystem.d.ts.map