import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Managed Databases Reset Database Parameter resource in Oracle Cloud Infrastructure Database Management service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database-management/latest/ManagedDatabasesResetDatabaseParameter * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/databasemanagement * * Resets database parameter values to their default or startup values. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagedDatabasesResetDatabaseParameter = new oci.databasemanagement.ManagedDatabasesResetDatabaseParameter("test_managed_databases_reset_database_parameter", { * managedDatabaseId: testManagedDatabase.id, * parameters: managedDatabasesResetDatabaseParameterParameters, * scope: managedDatabasesResetDatabaseParameterScope, * credentials: { * password: managedDatabasesResetDatabaseParameterCredentialsPassword, * role: managedDatabasesResetDatabaseParameterCredentialsRole, * secretId: testSecret.id, * userName: testUser.name, * }, * databaseCredential: { * credentialType: managedDatabasesResetDatabaseParameterDatabaseCredentialCredentialType, * namedCredentialId: testNamedCredential.id, * password: managedDatabasesResetDatabaseParameterDatabaseCredentialPassword, * passwordSecretId: testSecret.id, * role: managedDatabasesResetDatabaseParameterDatabaseCredentialRole, * username: managedDatabasesResetDatabaseParameterDatabaseCredentialUsername, * }, * }); * ``` * * ## Import * * Import is not supported for this resource. */ export declare class ManagedDatabasesResetDatabaseParameter extends pulumi.CustomResource { /** * Get an existing ManagedDatabasesResetDatabaseParameter 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?: ManagedDatabasesResetDatabaseParameterState, opts?: pulumi.CustomResourceOptions): ManagedDatabasesResetDatabaseParameter; /** * Returns true if the given object is an instance of ManagedDatabasesResetDatabaseParameter. 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 ManagedDatabasesResetDatabaseParameter; /** * The database credentials used to perform management activity. Provide one of the following attribute set. (userName, password, role) OR (userName, secretId, role) OR (namedCredentialId) */ readonly credentials: pulumi.Output; /** * The credential to connect to the database to perform tablespace administration tasks. */ readonly databaseCredential: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database. */ readonly managedDatabaseId: pulumi.Output; /** * A list of database parameter names. */ readonly parameters: pulumi.Output; /** * The clause used to specify when the parameter change takes effect. * * Use `MEMORY` to make the change in memory and ensure that it takes effect immediately. Use `SPFILE` to make the change in the server parameter file. The change takes effect when the database is next shut down and started up again. Use `BOTH` to make the change in memory and in the server parameter file. The change takes effect immediately and persists after the database is shut down and started up again. * * ** 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 scope: pulumi.Output; /** * Create a ManagedDatabasesResetDatabaseParameter 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: ManagedDatabasesResetDatabaseParameterArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ManagedDatabasesResetDatabaseParameter resources. */ export interface ManagedDatabasesResetDatabaseParameterState { /** * The database credentials used to perform management activity. Provide one of the following attribute set. (userName, password, role) OR (userName, secretId, role) OR (namedCredentialId) */ credentials?: pulumi.Input; /** * The credential to connect to the database to perform tablespace administration tasks. */ databaseCredential?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database. */ managedDatabaseId?: pulumi.Input; /** * A list of database parameter names. */ parameters?: pulumi.Input[] | undefined>; /** * The clause used to specify when the parameter change takes effect. * * Use `MEMORY` to make the change in memory and ensure that it takes effect immediately. Use `SPFILE` to make the change in the server parameter file. The change takes effect when the database is next shut down and started up again. Use `BOTH` to make the change in memory and in the server parameter file. The change takes effect immediately and persists after the database is shut down and started up again. * * ** 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 */ scope?: pulumi.Input; } /** * The set of arguments for constructing a ManagedDatabasesResetDatabaseParameter resource. */ export interface ManagedDatabasesResetDatabaseParameterArgs { /** * The database credentials used to perform management activity. Provide one of the following attribute set. (userName, password, role) OR (userName, secretId, role) OR (namedCredentialId) */ credentials?: pulumi.Input; /** * The credential to connect to the database to perform tablespace administration tasks. */ databaseCredential?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database. */ managedDatabaseId: pulumi.Input; /** * A list of database parameter names. */ parameters: pulumi.Input[]>; /** * The clause used to specify when the parameter change takes effect. * * Use `MEMORY` to make the change in memory and ensure that it takes effect immediately. Use `SPFILE` to make the change in the server parameter file. The change takes effect when the database is next shut down and started up again. Use `BOTH` to make the change in memory and in the server parameter file. The change takes effect immediately and persists after the database is shut down and started up again. * * ** 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 */ scope: pulumi.Input; } //# sourceMappingURL=managedDatabasesResetDatabaseParameter.d.ts.map