1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. MonitoredResourcesAssociateMonitoredResource
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.StackMonitoring.MonitoredResourcesAssociateMonitoredResource

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This resource provides the Monitored Resources Associate Monitored Resource resource in Oracle Cloud Infrastructure Stack Monitoring service.

    Create an association between two monitored resources. Associations can be created between resources from different compartments as long they are in same tenancy. User should have required access in both the compartments.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMonitoredResourcesAssociateMonitoredResource = new oci.stackmonitoring.MonitoredResourcesAssociateMonitoredResource("testMonitoredResourcesAssociateMonitoredResource", {
        associationType: _var.monitored_resources_associate_monitored_resource_association_type,
        compartmentId: _var.compartment_id,
        destinationResourceId: oci_stack_monitoring_destination_resource.test_destination_resource.id,
        sourceResourceId: oci_stack_monitoring_source_resource.test_source_resource.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_monitored_resources_associate_monitored_resource = oci.stack_monitoring.MonitoredResourcesAssociateMonitoredResource("testMonitoredResourcesAssociateMonitoredResource",
        association_type=var["monitored_resources_associate_monitored_resource_association_type"],
        compartment_id=var["compartment_id"],
        destination_resource_id=oci_stack_monitoring_destination_resource["test_destination_resource"]["id"],
        source_resource_id=oci_stack_monitoring_source_resource["test_source_resource"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/StackMonitoring"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := StackMonitoring.NewMonitoredResourcesAssociateMonitoredResource(ctx, "testMonitoredResourcesAssociateMonitoredResource", &StackMonitoring.MonitoredResourcesAssociateMonitoredResourceArgs{
    			AssociationType:       pulumi.Any(_var.Monitored_resources_associate_monitored_resource_association_type),
    			CompartmentId:         pulumi.Any(_var.Compartment_id),
    			DestinationResourceId: pulumi.Any(oci_stack_monitoring_destination_resource.Test_destination_resource.Id),
    			SourceResourceId:      pulumi.Any(oci_stack_monitoring_source_resource.Test_source_resource.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testMonitoredResourcesAssociateMonitoredResource = new Oci.StackMonitoring.MonitoredResourcesAssociateMonitoredResource("testMonitoredResourcesAssociateMonitoredResource", new()
        {
            AssociationType = @var.Monitored_resources_associate_monitored_resource_association_type,
            CompartmentId = @var.Compartment_id,
            DestinationResourceId = oci_stack_monitoring_destination_resource.Test_destination_resource.Id,
            SourceResourceId = oci_stack_monitoring_source_resource.Test_source_resource.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.StackMonitoring.MonitoredResourcesAssociateMonitoredResource;
    import com.pulumi.oci.StackMonitoring.MonitoredResourcesAssociateMonitoredResourceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testMonitoredResourcesAssociateMonitoredResource = new MonitoredResourcesAssociateMonitoredResource("testMonitoredResourcesAssociateMonitoredResource", MonitoredResourcesAssociateMonitoredResourceArgs.builder()        
                .associationType(var_.monitored_resources_associate_monitored_resource_association_type())
                .compartmentId(var_.compartment_id())
                .destinationResourceId(oci_stack_monitoring_destination_resource.test_destination_resource().id())
                .sourceResourceId(oci_stack_monitoring_source_resource.test_source_resource().id())
                .build());
    
        }
    }
    
    resources:
      testMonitoredResourcesAssociateMonitoredResource:
        type: oci:StackMonitoring:MonitoredResourcesAssociateMonitoredResource
        properties:
          #Required
          associationType: ${var.monitored_resources_associate_monitored_resource_association_type}
          compartmentId: ${var.compartment_id}
          destinationResourceId: ${oci_stack_monitoring_destination_resource.test_destination_resource.id}
          sourceResourceId: ${oci_stack_monitoring_source_resource.test_source_resource.id}
    

    Create MonitoredResourcesAssociateMonitoredResource Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MonitoredResourcesAssociateMonitoredResource(name: string, args: MonitoredResourcesAssociateMonitoredResourceArgs, opts?: CustomResourceOptions);
    @overload
    def MonitoredResourcesAssociateMonitoredResource(resource_name: str,
                                                     args: MonitoredResourcesAssociateMonitoredResourceArgs,
                                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def MonitoredResourcesAssociateMonitoredResource(resource_name: str,
                                                     opts: Optional[ResourceOptions] = None,
                                                     association_type: Optional[str] = None,
                                                     compartment_id: Optional[str] = None,
                                                     destination_resource_id: Optional[str] = None,
                                                     source_resource_id: Optional[str] = None)
    func NewMonitoredResourcesAssociateMonitoredResource(ctx *Context, name string, args MonitoredResourcesAssociateMonitoredResourceArgs, opts ...ResourceOption) (*MonitoredResourcesAssociateMonitoredResource, error)
    public MonitoredResourcesAssociateMonitoredResource(string name, MonitoredResourcesAssociateMonitoredResourceArgs args, CustomResourceOptions? opts = null)
    public MonitoredResourcesAssociateMonitoredResource(String name, MonitoredResourcesAssociateMonitoredResourceArgs args)
    public MonitoredResourcesAssociateMonitoredResource(String name, MonitoredResourcesAssociateMonitoredResourceArgs args, CustomResourceOptions options)
    
    type: oci:StackMonitoring:MonitoredResourcesAssociateMonitoredResource
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MonitoredResourcesAssociateMonitoredResourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MonitoredResourcesAssociateMonitoredResourceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MonitoredResourcesAssociateMonitoredResourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MonitoredResourcesAssociateMonitoredResourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MonitoredResourcesAssociateMonitoredResourceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var monitoredResourcesAssociateMonitoredResourceResource = new Oci.StackMonitoring.MonitoredResourcesAssociateMonitoredResource("monitoredResourcesAssociateMonitoredResourceResource", new()
    {
        AssociationType = "string",
        CompartmentId = "string",
        DestinationResourceId = "string",
        SourceResourceId = "string",
    });
    
    example, err := StackMonitoring.NewMonitoredResourcesAssociateMonitoredResource(ctx, "monitoredResourcesAssociateMonitoredResourceResource", &StackMonitoring.MonitoredResourcesAssociateMonitoredResourceArgs{
    	AssociationType:       pulumi.String("string"),
    	CompartmentId:         pulumi.String("string"),
    	DestinationResourceId: pulumi.String("string"),
    	SourceResourceId:      pulumi.String("string"),
    })
    
    var monitoredResourcesAssociateMonitoredResourceResource = new MonitoredResourcesAssociateMonitoredResource("monitoredResourcesAssociateMonitoredResourceResource", MonitoredResourcesAssociateMonitoredResourceArgs.builder()        
        .associationType("string")
        .compartmentId("string")
        .destinationResourceId("string")
        .sourceResourceId("string")
        .build());
    
    monitored_resources_associate_monitored_resource_resource = oci.stack_monitoring.MonitoredResourcesAssociateMonitoredResource("monitoredResourcesAssociateMonitoredResourceResource",
        association_type="string",
        compartment_id="string",
        destination_resource_id="string",
        source_resource_id="string")
    
    const monitoredResourcesAssociateMonitoredResourceResource = new oci.stackmonitoring.MonitoredResourcesAssociateMonitoredResource("monitoredResourcesAssociateMonitoredResourceResource", {
        associationType: "string",
        compartmentId: "string",
        destinationResourceId: "string",
        sourceResourceId: "string",
    });
    
    type: oci:StackMonitoring:MonitoredResourcesAssociateMonitoredResource
    properties:
        associationType: string
        compartmentId: string
        destinationResourceId: string
        sourceResourceId: string
    

    MonitoredResourcesAssociateMonitoredResource Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The MonitoredResourcesAssociateMonitoredResource resource accepts the following input properties:

    AssociationType string
    Association type to be created between source and destination resources.
    CompartmentId string
    Compartment Identifier OCID.
    DestinationResourceId string
    Destination Monitored Resource Identifier OCID.
    SourceResourceId string

    Source Monitored Resource Identifier OCID.

    ** 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

    AssociationType string
    Association type to be created between source and destination resources.
    CompartmentId string
    Compartment Identifier OCID.
    DestinationResourceId string
    Destination Monitored Resource Identifier OCID.
    SourceResourceId string

    Source Monitored Resource Identifier OCID.

    ** 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

    associationType String
    Association type to be created between source and destination resources.
    compartmentId String
    Compartment Identifier OCID.
    destinationResourceId String
    Destination Monitored Resource Identifier OCID.
    sourceResourceId String

    Source Monitored Resource Identifier OCID.

    ** 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

    associationType string
    Association type to be created between source and destination resources.
    compartmentId string
    Compartment Identifier OCID.
    destinationResourceId string
    Destination Monitored Resource Identifier OCID.
    sourceResourceId string

    Source Monitored Resource Identifier OCID.

    ** 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

    association_type str
    Association type to be created between source and destination resources.
    compartment_id str
    Compartment Identifier OCID.
    destination_resource_id str
    Destination Monitored Resource Identifier OCID.
    source_resource_id str

    Source Monitored Resource Identifier OCID.

    ** 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

    associationType String
    Association type to be created between source and destination resources.
    compartmentId String
    Compartment Identifier OCID.
    destinationResourceId String
    Destination Monitored Resource Identifier OCID.
    sourceResourceId String

    Source Monitored Resource Identifier OCID.

    ** 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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MonitoredResourcesAssociateMonitoredResource resource produces the following output properties:

    Category string
    Association category. Possible values are:

    • System created (SYSTEM),
    • User created using API (USER_API)
    • User created using tags (USER_TAG_ASSOC).
    DestinationResourceDetails List<MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail>
    Association Resource Details.
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceResourceDetails List<MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail>
    Association Resource Details.
    TenantId string
    Tenancy Identifier OCID.
    TimeCreated string
    The time when the association was created. An RFC3339 formatted datetime string.
    Category string
    Association category. Possible values are:

    • System created (SYSTEM),
    • User created using API (USER_API)
    • User created using tags (USER_TAG_ASSOC).
    DestinationResourceDetails []MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail
    Association Resource Details.
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceResourceDetails []MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail
    Association Resource Details.
    TenantId string
    Tenancy Identifier OCID.
    TimeCreated string
    The time when the association was created. An RFC3339 formatted datetime string.
    category String
    Association category. Possible values are:

    • System created (SYSTEM),
    • User created using API (USER_API)
    • User created using tags (USER_TAG_ASSOC).
    destinationResourceDetails List<MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail>
    Association Resource Details.
    id String
    The provider-assigned unique ID for this managed resource.
    sourceResourceDetails List<MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail>
    Association Resource Details.
    tenantId String
    Tenancy Identifier OCID.
    timeCreated String
    The time when the association was created. An RFC3339 formatted datetime string.
    category string
    Association category. Possible values are:

    • System created (SYSTEM),
    • User created using API (USER_API)
    • User created using tags (USER_TAG_ASSOC).
    destinationResourceDetails MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail[]
    Association Resource Details.
    id string
    The provider-assigned unique ID for this managed resource.
    sourceResourceDetails MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail[]
    Association Resource Details.
    tenantId string
    Tenancy Identifier OCID.
    timeCreated string
    The time when the association was created. An RFC3339 formatted datetime string.
    category str
    Association category. Possible values are:

    • System created (SYSTEM),
    • User created using API (USER_API)
    • User created using tags (USER_TAG_ASSOC).
    destination_resource_details Sequence[stackmonitoring.MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail]
    Association Resource Details.
    id str
    The provider-assigned unique ID for this managed resource.
    source_resource_details Sequence[stackmonitoring.MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail]
    Association Resource Details.
    tenant_id str
    Tenancy Identifier OCID.
    time_created str
    The time when the association was created. An RFC3339 formatted datetime string.
    category String
    Association category. Possible values are:

    • System created (SYSTEM),
    • User created using API (USER_API)
    • User created using tags (USER_TAG_ASSOC).
    destinationResourceDetails List<Property Map>
    Association Resource Details.
    id String
    The provider-assigned unique ID for this managed resource.
    sourceResourceDetails List<Property Map>
    Association Resource Details.
    tenantId String
    Tenancy Identifier OCID.
    timeCreated String
    The time when the association was created. An RFC3339 formatted datetime string.

    Look up Existing MonitoredResourcesAssociateMonitoredResource Resource

    Get an existing MonitoredResourcesAssociateMonitoredResource resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MonitoredResourcesAssociateMonitoredResourceState, opts?: CustomResourceOptions): MonitoredResourcesAssociateMonitoredResource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            association_type: Optional[str] = None,
            category: Optional[str] = None,
            compartment_id: Optional[str] = None,
            destination_resource_details: Optional[Sequence[_stackmonitoring.MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetailArgs]] = None,
            destination_resource_id: Optional[str] = None,
            source_resource_details: Optional[Sequence[_stackmonitoring.MonitoredResourcesAssociateMonitoredResourceSourceResourceDetailArgs]] = None,
            source_resource_id: Optional[str] = None,
            tenant_id: Optional[str] = None,
            time_created: Optional[str] = None) -> MonitoredResourcesAssociateMonitoredResource
    func GetMonitoredResourcesAssociateMonitoredResource(ctx *Context, name string, id IDInput, state *MonitoredResourcesAssociateMonitoredResourceState, opts ...ResourceOption) (*MonitoredResourcesAssociateMonitoredResource, error)
    public static MonitoredResourcesAssociateMonitoredResource Get(string name, Input<string> id, MonitoredResourcesAssociateMonitoredResourceState? state, CustomResourceOptions? opts = null)
    public static MonitoredResourcesAssociateMonitoredResource get(String name, Output<String> id, MonitoredResourcesAssociateMonitoredResourceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AssociationType string
    Association type to be created between source and destination resources.
    Category string
    Association category. Possible values are:

    • System created (SYSTEM),
    • User created using API (USER_API)
    • User created using tags (USER_TAG_ASSOC).
    CompartmentId string
    Compartment Identifier OCID.
    DestinationResourceDetails List<MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail>
    Association Resource Details.
    DestinationResourceId string
    Destination Monitored Resource Identifier OCID.
    SourceResourceDetails List<MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail>
    Association Resource Details.
    SourceResourceId string

    Source Monitored Resource Identifier OCID.

    ** 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

    TenantId string
    Tenancy Identifier OCID.
    TimeCreated string
    The time when the association was created. An RFC3339 formatted datetime string.
    AssociationType string
    Association type to be created between source and destination resources.
    Category string
    Association category. Possible values are:

    • System created (SYSTEM),
    • User created using API (USER_API)
    • User created using tags (USER_TAG_ASSOC).
    CompartmentId string
    Compartment Identifier OCID.
    DestinationResourceDetails []MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetailArgs
    Association Resource Details.
    DestinationResourceId string
    Destination Monitored Resource Identifier OCID.
    SourceResourceDetails []MonitoredResourcesAssociateMonitoredResourceSourceResourceDetailArgs
    Association Resource Details.
    SourceResourceId string

    Source Monitored Resource Identifier OCID.

    ** 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

    TenantId string
    Tenancy Identifier OCID.
    TimeCreated string
    The time when the association was created. An RFC3339 formatted datetime string.
    associationType String
    Association type to be created between source and destination resources.
    category String
    Association category. Possible values are:

    • System created (SYSTEM),
    • User created using API (USER_API)
    • User created using tags (USER_TAG_ASSOC).
    compartmentId String
    Compartment Identifier OCID.
    destinationResourceDetails List<MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail>
    Association Resource Details.
    destinationResourceId String
    Destination Monitored Resource Identifier OCID.
    sourceResourceDetails List<MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail>
    Association Resource Details.
    sourceResourceId String

    Source Monitored Resource Identifier OCID.

    ** 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

    tenantId String
    Tenancy Identifier OCID.
    timeCreated String
    The time when the association was created. An RFC3339 formatted datetime string.
    associationType string
    Association type to be created between source and destination resources.
    category string
    Association category. Possible values are:

    • System created (SYSTEM),
    • User created using API (USER_API)
    • User created using tags (USER_TAG_ASSOC).
    compartmentId string
    Compartment Identifier OCID.
    destinationResourceDetails MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail[]
    Association Resource Details.
    destinationResourceId string
    Destination Monitored Resource Identifier OCID.
    sourceResourceDetails MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail[]
    Association Resource Details.
    sourceResourceId string

    Source Monitored Resource Identifier OCID.

    ** 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

    tenantId string
    Tenancy Identifier OCID.
    timeCreated string
    The time when the association was created. An RFC3339 formatted datetime string.
    association_type str
    Association type to be created between source and destination resources.
    category str
    Association category. Possible values are:

    • System created (SYSTEM),
    • User created using API (USER_API)
    • User created using tags (USER_TAG_ASSOC).
    compartment_id str
    Compartment Identifier OCID.
    destination_resource_details Sequence[stackmonitoring.MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetailArgs]
    Association Resource Details.
    destination_resource_id str
    Destination Monitored Resource Identifier OCID.
    source_resource_details Sequence[stackmonitoring.MonitoredResourcesAssociateMonitoredResourceSourceResourceDetailArgs]
    Association Resource Details.
    source_resource_id str

    Source Monitored Resource Identifier OCID.

    ** 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

    tenant_id str
    Tenancy Identifier OCID.
    time_created str
    The time when the association was created. An RFC3339 formatted datetime string.
    associationType String
    Association type to be created between source and destination resources.
    category String
    Association category. Possible values are:

    • System created (SYSTEM),
    • User created using API (USER_API)
    • User created using tags (USER_TAG_ASSOC).
    compartmentId String
    Compartment Identifier OCID.
    destinationResourceDetails List<Property Map>
    Association Resource Details.
    destinationResourceId String
    Destination Monitored Resource Identifier OCID.
    sourceResourceDetails List<Property Map>
    Association Resource Details.
    sourceResourceId String

    Source Monitored Resource Identifier OCID.

    ** 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

    tenantId String
    Tenancy Identifier OCID.
    timeCreated String
    The time when the association was created. An RFC3339 formatted datetime string.

    Supporting Types

    MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetail, MonitoredResourcesAssociateMonitoredResourceDestinationResourceDetailArgs

    CompartmentId string
    Compartment Identifier OCID.
    Name string
    Monitored Resource Name.
    Type string
    Monitored Resource Type.
    CompartmentId string
    Compartment Identifier OCID.
    Name string
    Monitored Resource Name.
    Type string
    Monitored Resource Type.
    compartmentId String
    Compartment Identifier OCID.
    name String
    Monitored Resource Name.
    type String
    Monitored Resource Type.
    compartmentId string
    Compartment Identifier OCID.
    name string
    Monitored Resource Name.
    type string
    Monitored Resource Type.
    compartment_id str
    Compartment Identifier OCID.
    name str
    Monitored Resource Name.
    type str
    Monitored Resource Type.
    compartmentId String
    Compartment Identifier OCID.
    name String
    Monitored Resource Name.
    type String
    Monitored Resource Type.

    MonitoredResourcesAssociateMonitoredResourceSourceResourceDetail, MonitoredResourcesAssociateMonitoredResourceSourceResourceDetailArgs

    CompartmentId string
    Compartment Identifier OCID.
    Name string
    Monitored Resource Name.
    Type string
    Monitored Resource Type.
    CompartmentId string
    Compartment Identifier OCID.
    Name string
    Monitored Resource Name.
    Type string
    Monitored Resource Type.
    compartmentId String
    Compartment Identifier OCID.
    name String
    Monitored Resource Name.
    type String
    Monitored Resource Type.
    compartmentId string
    Compartment Identifier OCID.
    name string
    Monitored Resource Name.
    type string
    Monitored Resource Type.
    compartment_id str
    Compartment Identifier OCID.
    name str
    Monitored Resource Name.
    type str
    Monitored Resource Type.
    compartmentId String
    Compartment Identifier OCID.
    name String
    Monitored Resource Name.
    type String
    Monitored Resource Type.

    Import

    MonitoredResourcesAssociateMonitoredResources can be imported using the id, e.g.

    $ pulumi import oci:StackMonitoring/monitoredResourcesAssociateMonitoredResource:MonitoredResourcesAssociateMonitoredResource test_monitored_resources_associate_monitored_resource "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi