import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Target Database Group resource in Oracle Cloud Infrastructure Data Safe service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-safe/latest/TargetDatabaseGroup * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datasafe * * Creates a new target database group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testTargetDatabaseGroup = new oci.datasafe.TargetDatabaseGroup("test_target_database_group", { * compartmentId: compartmentId, * displayName: targetDatabaseGroupDisplayName, * matchingCriteria: { * include: { * compartments: [{ * id: targetDatabaseGroupMatchingCriteriaIncludeCompartmentsId, * isIncludeSubtree: targetDatabaseGroupMatchingCriteriaIncludeCompartmentsIsIncludeSubtree === "true", * }], * definedTags: { * "Operations.CostCenter": "42", * }, * freeformTags: { * Department: "Finance", * }, * targetDatabaseIds: targetDatabaseGroupMatchingCriteriaIncludeTargetDatabaseIds, * }, * exclude: { * targetDatabaseIds: targetDatabaseGroupMatchingCriteriaExcludeTargetDatabaseIds, * }, * }, * definedTags: { * "Operations.CostCenter": "42", * }, * description: targetDatabaseGroupDescription, * freeformTags: { * Department: "Finance", * }, * }); * ``` * * ## Import * * TargetDatabaseGroups can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DataSafe/targetDatabaseGroup:TargetDatabaseGroup test_target_database_group "id" * ``` */ export declare class TargetDatabaseGroup extends pulumi.CustomResource { /** * Get an existing TargetDatabaseGroup 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?: TargetDatabaseGroupState, opts?: pulumi.CustomResourceOptions): TargetDatabaseGroup; /** * Returns true if the given object is an instance of TargetDatabaseGroup. 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 TargetDatabaseGroup; /** * (Updatable) The OCID of the compartment to create the target database group. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Description of the target database group (optional). */ readonly description: pulumi.Output; /** * (Updatable) The name of the target database group. */ readonly displayName: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * Details for the lifecycle status of the target database group. */ readonly lifecycleDetails: pulumi.Output; /** * (Updatable) Criteria to either include or exclude target databases from the target database group. These criteria can be based on compartments or tags or a list of target databases. See examples below for more details. Include: Target databases will be added to the target database group if they match at least one of the include criteria. Exclude: Target databases that will be excluded from the target database group (even if they match any of the include criteria). */ readonly matchingCriteria: pulumi.Output; /** * The number of target databases in the specified target database group. */ readonly membershipCount: pulumi.Output; /** * Time when the members of the target database group were last changed, i.e. the list was refreshed, a target database was added or removed. */ readonly membershipUpdateTime: pulumi.Output; /** * The lifecycle status of the target database group. */ readonly state: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * Time when the target database group was created. */ readonly timeCreated: pulumi.Output; /** * Time when the target database group was last updated. */ readonly timeUpdated: pulumi.Output; /** * Create a TargetDatabaseGroup 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: TargetDatabaseGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TargetDatabaseGroup resources. */ export interface TargetDatabaseGroupState { /** * (Updatable) The OCID of the compartment to create the target database group. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Description of the target database group (optional). */ description?: pulumi.Input; /** * (Updatable) The name of the target database group. */ displayName?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Details for the lifecycle status of the target database group. */ lifecycleDetails?: pulumi.Input; /** * (Updatable) Criteria to either include or exclude target databases from the target database group. These criteria can be based on compartments or tags or a list of target databases. See examples below for more details. Include: Target databases will be added to the target database group if they match at least one of the include criteria. Exclude: Target databases that will be excluded from the target database group (even if they match any of the include criteria). */ matchingCriteria?: pulumi.Input; /** * The number of target databases in the specified target database group. */ membershipCount?: pulumi.Input; /** * Time when the members of the target database group were last changed, i.e. the list was refreshed, a target database was added or removed. */ membershipUpdateTime?: pulumi.Input; /** * The lifecycle status of the target database group. */ state?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Time when the target database group was created. */ timeCreated?: pulumi.Input; /** * Time when the target database group was last updated. */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a TargetDatabaseGroup resource. */ export interface TargetDatabaseGroupArgs { /** * (Updatable) The OCID of the compartment to create the target database group. */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Description of the target database group (optional). */ description?: pulumi.Input; /** * (Updatable) The name of the target database group. */ displayName: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Criteria to either include or exclude target databases from the target database group. These criteria can be based on compartments or tags or a list of target databases. See examples below for more details. Include: Target databases will be added to the target database group if they match at least one of the include criteria. Exclude: Target databases that will be excluded from the target database group (even if they match any of the include criteria). */ matchingCriteria: pulumi.Input; } //# sourceMappingURL=targetDatabaseGroup.d.ts.map