import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the News Report resource in Oracle Cloud Infrastructure Opsi service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/operations-insights/latest/NewsReport * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/osi * * Create a news report in Ops Insights. The report will be enabled in Ops Insights. Insights will be emailed as per selected frequency. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testNewsReport = new oci.opsi.NewsReport("test_news_report", { * compartmentId: compartmentId, * contentTypes: { * actionableInsightsResources: newsReportContentTypesActionableInsightsResources, * capacityPlanningResources: newsReportContentTypesCapacityPlanningResources, * sqlInsightsFleetAnalysisResources: newsReportContentTypesSqlInsightsFleetAnalysisResources, * sqlInsightsPerformanceDegradationResources: newsReportContentTypesSqlInsightsPerformanceDegradationResources, * sqlInsightsPlanChangesResources: newsReportContentTypesSqlInsightsPlanChangesResources, * sqlInsightsTopDatabasesResources: newsReportContentTypesSqlInsightsTopDatabasesResources, * sqlInsightsTopSqlByInsightsResources: newsReportContentTypesSqlInsightsTopSqlByInsightsResources, * sqlInsightsTopSqlResources: newsReportContentTypesSqlInsightsTopSqlResources, * }, * description: newsReportDescription, * locale: newsReportLocale, * name: newsReportName, * newsFrequency: newsReportNewsFrequency, * onsTopicId: testOnsTopic.id, * areChildCompartmentsIncluded: newsReportAreChildCompartmentsIncluded === "true", * dayOfWeek: newsReportDayOfWeek, * definedTags: { * "foo-namespace.bar-key": "value", * }, * freeformTags: { * "bar-key": "value", * }, * matchRule: newsReportMatchRule, * status: newsReportStatus, * tagFilters: newsReportTagFilters, * }); * ``` * * ## Import * * NewsReports can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Opsi/newsReport:NewsReport test_news_report "id" * ``` */ export declare class NewsReport extends pulumi.CustomResource { /** * Get an existing NewsReport 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?: NewsReportState, opts?: pulumi.CustomResourceOptions): NewsReport; /** * Returns true if the given object is an instance of NewsReport. 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 NewsReport; /** * (Updatable) A flag to consider the resources within a given compartment and all sub-compartments. */ readonly areChildCompartmentsIncluded: pulumi.Output; /** * (Updatable) Compartment Identifier where the news report will be created. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Content types that the news report can handle. */ readonly contentTypes: pulumi.Output; /** * (Updatable) Day of the week in which the news report will be sent if the frequency is set to WEEKLY. */ readonly dayOfWeek: 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) The description of the news report. */ readonly description: 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; }>; /** * 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) Language of the news report. */ readonly locale: pulumi.Output; /** * (Updatable) Match rule used for tag filters. */ readonly matchRule: pulumi.Output; /** * (Updatable) The news report name. */ readonly name: pulumi.Output; /** * (Updatable) News report frequency. */ readonly newsFrequency: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. */ readonly onsTopicId: pulumi.Output; /** * The current state of the news report. */ readonly state: pulumi.Output; /** * (Updatable) Defines if the news report will be enabled or disabled. */ 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; }>; /** * (Updatable) List of tag filters; each filter composed by a namespace, key, and value. Example for defined tags - '.='. Example for freeform tags - '=' * * ** 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 tagFilters: pulumi.Output; /** * The time the the news report was first enabled. An RFC3339 formatted datetime string. */ readonly timeCreated: pulumi.Output; /** * The time the news report was updated. An RFC3339 formatted datetime string. */ readonly timeUpdated: pulumi.Output; /** * Create a NewsReport 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: NewsReportArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NewsReport resources. */ export interface NewsReportState { /** * (Updatable) A flag to consider the resources within a given compartment and all sub-compartments. */ areChildCompartmentsIncluded?: pulumi.Input; /** * (Updatable) Compartment Identifier where the news report will be created. */ compartmentId?: pulumi.Input; /** * (Updatable) Content types that the news report can handle. */ contentTypes?: pulumi.Input; /** * (Updatable) Day of the week in which the news report will be sent if the frequency is set to WEEKLY. */ dayOfWeek?: 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) The description of the news report. */ description?: 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>; /** * 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) Language of the news report. */ locale?: pulumi.Input; /** * (Updatable) Match rule used for tag filters. */ matchRule?: pulumi.Input; /** * (Updatable) The news report name. */ name?: pulumi.Input; /** * (Updatable) News report frequency. */ newsFrequency?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. */ onsTopicId?: pulumi.Input; /** * The current state of the news report. */ state?: pulumi.Input; /** * (Updatable) Defines if the news report will be enabled or disabled. */ 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>; /** * (Updatable) List of tag filters; each filter composed by a namespace, key, and value. Example for defined tags - '.='. Example for freeform tags - '=' * * ** 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 */ tagFilters?: pulumi.Input[] | undefined>; /** * The time the the news report was first enabled. An RFC3339 formatted datetime string. */ timeCreated?: pulumi.Input; /** * The time the news report was updated. An RFC3339 formatted datetime string. */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a NewsReport resource. */ export interface NewsReportArgs { /** * (Updatable) A flag to consider the resources within a given compartment and all sub-compartments. */ areChildCompartmentsIncluded?: pulumi.Input; /** * (Updatable) Compartment Identifier where the news report will be created. */ compartmentId: pulumi.Input; /** * (Updatable) Content types that the news report can handle. */ contentTypes: pulumi.Input; /** * (Updatable) Day of the week in which the news report will be sent if the frequency is set to WEEKLY. */ dayOfWeek?: 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) The description of the news report. */ description: 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>; /** * (Updatable) Language of the news report. */ locale: pulumi.Input; /** * (Updatable) Match rule used for tag filters. */ matchRule?: pulumi.Input; /** * (Updatable) The news report name. */ name?: pulumi.Input; /** * (Updatable) News report frequency. */ newsFrequency: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ONS topic. */ onsTopicId: pulumi.Input; /** * (Updatable) Defines if the news report will be enabled or disabled. */ status?: pulumi.Input; /** * (Updatable) List of tag filters; each filter composed by a namespace, key, and value. Example for defined tags - '.='. Example for freeform tags - '=' * * ** 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 */ tagFilters?: pulumi.Input[] | undefined>; } //# sourceMappingURL=newsReport.d.ts.map