import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Awr Hub Source resource in Oracle Cloud Infrastructure Opsi service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/operations-insights/latest/AwrHubSource * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/osi * * Register Awr Hub source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAwrHubSource = new oci.opsi.AwrHubSource("test_awr_hub_source", { * awrHubId: testAwrHub.id, * compartmentId: compartmentId, * name: awrHubSourceName, * type: awrHubSourceType, * associatedOpsiId: testAssociatedOpsi.id, * associatedResourceId: testResource.id, * definedTags: { * "foo-namespace.bar-key": "value", * }, * freeformTags: { * "bar-key": "value", * }, * }); * ``` * * ## Import * * AwrHubSources can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Opsi/awrHubSource:AwrHubSource test_awr_hub_source "id" * ``` */ export declare class AwrHubSource extends pulumi.CustomResource { /** * Get an existing AwrHubSource 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?: AwrHubSourceState, opts?: pulumi.CustomResourceOptions): AwrHubSource; /** * Returns true if the given object is an instance of AwrHubSource. 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 AwrHubSource; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database id. */ readonly associatedOpsiId: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database id. */ readonly associatedResourceId: pulumi.Output; /** * AWR Hub OCID */ readonly awrHubId: pulumi.Output; /** * The shorted string of the Awr Hub source database identifier. */ readonly awrHubOpsiSourceId: pulumi.Output; /** * DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub. */ readonly awrSourceDatabaseId: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ readonly compartmentId: 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) 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; }>; /** * Number of hours since last AWR snapshots import happened from the Source database. */ readonly hoursSinceLastImport: pulumi.Output; /** * This is `true` if the source databse is registered with a Awr Hub, otherwise `false` */ readonly isRegisteredWithAwrHub: pulumi.Output; /** * The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub. */ readonly maxSnapshotIdentifier: pulumi.Output; /** * The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub. */ readonly minSnapshotIdentifier: pulumi.Output; /** * The name of the Awr Hub source database. */ readonly name: pulumi.Output; /** * Opsi Mailbox URL based on the Awr Hub and Awr Hub source. */ readonly sourceMailBoxUrl: pulumi.Output; /** * the current state of the source database */ readonly state: pulumi.Output; /** * Indicates the status of a source database in Operations Insights */ readonly status: 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; }>; /** * The time at which the resource was first created. An RFC3339 formatted datetime string */ readonly timeCreated: pulumi.Output; /** * The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string */ readonly timeFirstSnapshotGenerated: pulumi.Output; /** * The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string */ readonly timeLastSnapshotGenerated: pulumi.Output; /** * The time at which the resource was last updated. An RFC3339 formatted datetime string */ readonly timeUpdated: pulumi.Output; /** * (Updatable) source type of the database * * ** 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 type: pulumi.Output; /** * Create a AwrHubSource 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: AwrHubSourceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AwrHubSource resources. */ export interface AwrHubSourceState { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database id. */ associatedOpsiId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database id. */ associatedResourceId?: pulumi.Input; /** * AWR Hub OCID */ awrHubId?: pulumi.Input; /** * The shorted string of the Awr Hub source database identifier. */ awrHubOpsiSourceId?: pulumi.Input; /** * DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub. */ awrSourceDatabaseId?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId?: 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) 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>; /** * Number of hours since last AWR snapshots import happened from the Source database. */ hoursSinceLastImport?: pulumi.Input; /** * This is `true` if the source databse is registered with a Awr Hub, otherwise `false` */ isRegisteredWithAwrHub?: pulumi.Input; /** * The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub. */ maxSnapshotIdentifier?: pulumi.Input; /** * The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub. */ minSnapshotIdentifier?: pulumi.Input; /** * The name of the Awr Hub source database. */ name?: pulumi.Input; /** * Opsi Mailbox URL based on the Awr Hub and Awr Hub source. */ sourceMailBoxUrl?: pulumi.Input; /** * the current state of the source database */ state?: pulumi.Input; /** * Indicates the status of a source database in Operations Insights */ status?: 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>; /** * The time at which the resource was first created. An RFC3339 formatted datetime string */ timeCreated?: pulumi.Input; /** * The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string */ timeFirstSnapshotGenerated?: pulumi.Input; /** * The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string */ timeLastSnapshotGenerated?: pulumi.Input; /** * The time at which the resource was last updated. An RFC3339 formatted datetime string */ timeUpdated?: pulumi.Input; /** * (Updatable) source type of the database * * ** 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 */ type?: pulumi.Input; } /** * The set of arguments for constructing a AwrHubSource resource. */ export interface AwrHubSourceArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database id. */ associatedOpsiId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database id. */ associatedResourceId?: pulumi.Input; /** * AWR Hub OCID */ awrHubId: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: 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) 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>; /** * The name of the Awr Hub source database. */ name?: pulumi.Input; /** * (Updatable) source type of the database * * ** 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 */ type: pulumi.Input; } //# sourceMappingURL=awrHubSource.d.ts.map