import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Monitored Resources Search Association resource in Oracle Cloud Infrastructure Stack Monitoring service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/stack-monitoring/latest/MonitoredResourcesSearchAssociation * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/stack_monitoring * * Search associations in the given compartment based on the search criteria. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testMonitoredResourcesSearchAssociation = new oci.stackmonitoring.MonitoredResourcesSearchAssociation("test_monitored_resources_search_association", { * compartmentId: compartmentId, * associationType: monitoredResourcesSearchAssociationAssociationType, * destinationResourceId: testDestinationResource.id, * destinationResourceName: monitoredResourcesSearchAssociationDestinationResourceName, * destinationResourceType: monitoredResourcesSearchAssociationDestinationResourceType, * sourceResourceId: testSourceResource.id, * sourceResourceName: monitoredResourcesSearchAssociationSourceResourceName, * sourceResourceType: monitoredResourcesSearchAssociationSourceResourceType, * }); * ``` * * ## Import * * MonitoredResourcesSearchAssociations can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:StackMonitoring/monitoredResourcesSearchAssociation:MonitoredResourcesSearchAssociation test_monitored_resources_search_association "id" * ``` */ export declare class MonitoredResourcesSearchAssociation extends pulumi.CustomResource { /** * Get an existing MonitoredResourcesSearchAssociation 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?: MonitoredResourcesSearchAssociationState, opts?: pulumi.CustomResourceOptions): MonitoredResourcesSearchAssociation; /** * Returns true if the given object is an instance of MonitoredResourcesSearchAssociation. 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 MonitoredResourcesSearchAssociation; /** * Association type filter to search associated resources. */ readonly associationType: pulumi.Output; /** * Compartment Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ readonly compartmentId: pulumi.Output; /** * Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ readonly destinationResourceId: pulumi.Output; /** * Source Monitored Resource Name. */ readonly destinationResourceName: pulumi.Output; /** * Source Monitored Resource Type. */ readonly destinationResourceType: pulumi.Output; /** * List of Monitored Resource Associations. */ readonly items: pulumi.Output; /** * Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ readonly sourceResourceId: pulumi.Output; /** * Source Monitored Resource Name. */ readonly sourceResourceName: pulumi.Output; /** * Source Monitored Resource Type. * * ** 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 sourceResourceType: pulumi.Output; /** * Create a MonitoredResourcesSearchAssociation 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: MonitoredResourcesSearchAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MonitoredResourcesSearchAssociation resources. */ export interface MonitoredResourcesSearchAssociationState { /** * Association type filter to search associated resources. */ associationType?: pulumi.Input; /** * Compartment Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId?: pulumi.Input; /** * Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ destinationResourceId?: pulumi.Input; /** * Source Monitored Resource Name. */ destinationResourceName?: pulumi.Input; /** * Source Monitored Resource Type. */ destinationResourceType?: pulumi.Input; /** * List of Monitored Resource Associations. */ items?: pulumi.Input[] | undefined>; /** * Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ sourceResourceId?: pulumi.Input; /** * Source Monitored Resource Name. */ sourceResourceName?: pulumi.Input; /** * Source Monitored Resource Type. * * ** 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 */ sourceResourceType?: pulumi.Input; } /** * The set of arguments for constructing a MonitoredResourcesSearchAssociation resource. */ export interface MonitoredResourcesSearchAssociationArgs { /** * Association type filter to search associated resources. */ associationType?: pulumi.Input; /** * Compartment Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: pulumi.Input; /** * Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ destinationResourceId?: pulumi.Input; /** * Source Monitored Resource Name. */ destinationResourceName?: pulumi.Input; /** * Source Monitored Resource Type. */ destinationResourceType?: pulumi.Input; /** * Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ sourceResourceId?: pulumi.Input; /** * Source Monitored Resource Name. */ sourceResourceName?: pulumi.Input; /** * Source Monitored Resource Type. * * ** 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 */ sourceResourceType?: pulumi.Input; } //# sourceMappingURL=monitoredResourcesSearchAssociation.d.ts.map