import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Management Dashboards Import resource in Oracle Cloud Infrastructure Management Dashboard service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/managementdashboard/latest/ManagementDashboardsImport * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/management_dashboard * * Imports an array of dashboards and their saved searches. * Here's an example of how you can use CLI to import a dashboard. For information on the details that must be passed to IMPORT, you can use the EXPORT API to obtain the Import.json file: * `oci management-dashboard dashboard export --query data --export-dashboard-id "{\"dashboardIds\":[\"ocid1.managementdashboard.oc1..dashboardId1\"]}" > Import.json`. * Note that import API updates the resource if it already exists, and creates a new resource if it does not exist. To import to a different compartment, edit and change the compartmentId to the desired compartment OCID. * Here's an example of how you can use CLI to import: * `oci management-dashboard dashboard import --from-json file://Import.json` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagementDashboardsImport = new oci.managementdashboard.ManagementDashboardsImport("test_management_dashboards_import", { * overrideDashboardCompartmentOcid: managementDashboardsImportOverrideDashboardCompartmentOcid, * overrideSameName: managementDashboardsImportOverrideSameName, * overrideSavedSearchCompartmentOcid: managementDashboardsImportOverrideSavedSearchCompartmentOcid, * }); * ``` * * ## Import * * ManagementDashboardsImport can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:ManagementDashboard/managementDashboardsImport:ManagementDashboardsImport test_management_dashboards_import "id" * ``` */ export declare class ManagementDashboardsImport extends pulumi.CustomResource { /** * Get an existing ManagementDashboardsImport 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?: ManagementDashboardsImportState, opts?: pulumi.CustomResourceOptions): ManagementDashboardsImport; /** * Returns true if the given object is an instance of ManagementDashboardsImport. 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 ManagementDashboardsImport; readonly importDetails: pulumi.Output; readonly importDetailsFile: pulumi.Output; /** * If this attribute is set, the dashboard resources are created or updated in the compartment specified by OCID. If this attribute is not set, the compartment specified in the JSON metadata is used. */ readonly overrideDashboardCompartmentOcid: pulumi.Output; /** * By default, if a resource with the same OCID exists in the target compartment, it is updated during the import process, otherwise, a new resource is created. However, if this attribute is set to true, then during the import process if a resource with the same displayName exists in the compartment, then it is updated even if the OCIDs are different. This is useful when importing the same resource multiple times. If the compartment and displayName remain the same, the resource is only updated and multiple copies of a resource are not created. */ readonly overrideSameName: pulumi.Output; /** * If this attribute is set, the saved search resources are created or updated in the compartment specified by OCID. If this attribute is not set, the compartment specified in the JSON metadata is used. * * ** 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 overrideSavedSearchCompartmentOcid: pulumi.Output; /** * Create a ManagementDashboardsImport 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?: ManagementDashboardsImportArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ManagementDashboardsImport resources. */ export interface ManagementDashboardsImportState { importDetails?: pulumi.Input; importDetailsFile?: pulumi.Input; /** * If this attribute is set, the dashboard resources are created or updated in the compartment specified by OCID. If this attribute is not set, the compartment specified in the JSON metadata is used. */ overrideDashboardCompartmentOcid?: pulumi.Input; /** * By default, if a resource with the same OCID exists in the target compartment, it is updated during the import process, otherwise, a new resource is created. However, if this attribute is set to true, then during the import process if a resource with the same displayName exists in the compartment, then it is updated even if the OCIDs are different. This is useful when importing the same resource multiple times. If the compartment and displayName remain the same, the resource is only updated and multiple copies of a resource are not created. */ overrideSameName?: pulumi.Input; /** * If this attribute is set, the saved search resources are created or updated in the compartment specified by OCID. If this attribute is not set, the compartment specified in the JSON metadata is used. * * ** 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 */ overrideSavedSearchCompartmentOcid?: pulumi.Input; } /** * The set of arguments for constructing a ManagementDashboardsImport resource. */ export interface ManagementDashboardsImportArgs { importDetails?: pulumi.Input; importDetailsFile?: pulumi.Input; /** * If this attribute is set, the dashboard resources are created or updated in the compartment specified by OCID. If this attribute is not set, the compartment specified in the JSON metadata is used. */ overrideDashboardCompartmentOcid?: pulumi.Input; /** * By default, if a resource with the same OCID exists in the target compartment, it is updated during the import process, otherwise, a new resource is created. However, if this attribute is set to true, then during the import process if a resource with the same displayName exists in the compartment, then it is updated even if the OCIDs are different. This is useful when importing the same resource multiple times. If the compartment and displayName remain the same, the resource is only updated and multiple copies of a resource are not created. */ overrideSameName?: pulumi.Input; /** * If this attribute is set, the saved search resources are created or updated in the compartment specified by OCID. If this attribute is not set, the compartment specified in the JSON metadata is used. * * ** 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 */ overrideSavedSearchCompartmentOcid?: pulumi.Input; } //# sourceMappingURL=managementDashboardsImport.d.ts.map