oci.oci.ResourceAnalyticsMonitoredRegion
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMonitoredRegion = new oci.oci.ResourceAnalyticsMonitoredRegion("test_monitored_region", {
regionId: testRegion.id,
resourceAnalyticsInstanceId: testResourceAnalyticsInstance.id,
});
import pulumi
import pulumi_oci as oci
test_monitored_region = oci.oci.ResourceAnalyticsMonitoredRegion("test_monitored_region",
region_id=test_region["id"],
resource_analytics_instance_id=test_resource_analytics_instance["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := oci.NewResourceAnalyticsMonitoredRegion(ctx, "test_monitored_region", &oci.ResourceAnalyticsMonitoredRegionArgs{
RegionId: pulumi.Any(testRegion.Id),
ResourceAnalyticsInstanceId: pulumi.Any(testResourceAnalyticsInstance.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 testMonitoredRegion = new Oci.Oci.ResourceAnalyticsMonitoredRegion("test_monitored_region", new()
{
RegionId = testRegion.Id,
ResourceAnalyticsInstanceId = testResourceAnalyticsInstance.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.oci.ResourceAnalyticsMonitoredRegion;
import com.pulumi.oci.oci.ResourceAnalyticsMonitoredRegionArgs;
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 testMonitoredRegion = new ResourceAnalyticsMonitoredRegion("testMonitoredRegion", ResourceAnalyticsMonitoredRegionArgs.builder()
.regionId(testRegion.id())
.resourceAnalyticsInstanceId(testResourceAnalyticsInstance.id())
.build());
}
}
resources:
testMonitoredRegion:
type: oci:oci:ResourceAnalyticsMonitoredRegion
name: test_monitored_region
properties:
regionId: ${testRegion.id}
resourceAnalyticsInstanceId: ${testResourceAnalyticsInstance.id}
Create ResourceAnalyticsMonitoredRegion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResourceAnalyticsMonitoredRegion(name: string, args: ResourceAnalyticsMonitoredRegionArgs, opts?: CustomResourceOptions);@overload
def ResourceAnalyticsMonitoredRegion(resource_name: str,
args: ResourceAnalyticsMonitoredRegionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ResourceAnalyticsMonitoredRegion(resource_name: str,
opts: Optional[ResourceOptions] = None,
region_id: Optional[str] = None,
resource_analytics_instance_id: Optional[str] = None)func NewResourceAnalyticsMonitoredRegion(ctx *Context, name string, args ResourceAnalyticsMonitoredRegionArgs, opts ...ResourceOption) (*ResourceAnalyticsMonitoredRegion, error)public ResourceAnalyticsMonitoredRegion(string name, ResourceAnalyticsMonitoredRegionArgs args, CustomResourceOptions? opts = null)
public ResourceAnalyticsMonitoredRegion(String name, ResourceAnalyticsMonitoredRegionArgs args)
public ResourceAnalyticsMonitoredRegion(String name, ResourceAnalyticsMonitoredRegionArgs args, CustomResourceOptions options)
type: oci:oci:ResourceAnalyticsMonitoredRegion
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 ResourceAnalyticsMonitoredRegionArgs
- 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 ResourceAnalyticsMonitoredRegionArgs
- 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 ResourceAnalyticsMonitoredRegionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceAnalyticsMonitoredRegionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResourceAnalyticsMonitoredRegionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var resourceAnalyticsMonitoredRegionResource = new Oci.Oci.ResourceAnalyticsMonitoredRegion("resourceAnalyticsMonitoredRegionResource", new()
{
RegionId = "string",
ResourceAnalyticsInstanceId = "string",
});
example, err := oci.NewResourceAnalyticsMonitoredRegion(ctx, "resourceAnalyticsMonitoredRegionResource", &oci.ResourceAnalyticsMonitoredRegionArgs{
RegionId: pulumi.String("string"),
ResourceAnalyticsInstanceId: pulumi.String("string"),
})
var resourceAnalyticsMonitoredRegionResource = new ResourceAnalyticsMonitoredRegion("resourceAnalyticsMonitoredRegionResource", ResourceAnalyticsMonitoredRegionArgs.builder()
.regionId("string")
.resourceAnalyticsInstanceId("string")
.build());
resource_analytics_monitored_region_resource = oci.oci.ResourceAnalyticsMonitoredRegion("resourceAnalyticsMonitoredRegionResource",
region_id="string",
resource_analytics_instance_id="string")
const resourceAnalyticsMonitoredRegionResource = new oci.oci.ResourceAnalyticsMonitoredRegion("resourceAnalyticsMonitoredRegionResource", {
regionId: "string",
resourceAnalyticsInstanceId: "string",
});
type: oci:oci:ResourceAnalyticsMonitoredRegion
properties:
regionId: string
resourceAnalyticsInstanceId: string
ResourceAnalyticsMonitoredRegion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ResourceAnalyticsMonitoredRegion resource accepts the following input properties:
- Region
Id string - The Region Identifier of this MonitoredRegion.
- Resource
Analytics stringInstance Id The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
** 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
- Region
Id string - The Region Identifier of this MonitoredRegion.
- Resource
Analytics stringInstance Id The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
** 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
- region
Id String - The Region Identifier of this MonitoredRegion.
- resource
Analytics StringInstance Id The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
** 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
- region
Id string - The Region Identifier of this MonitoredRegion.
- resource
Analytics stringInstance Id The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
** 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
- region_
id str - The Region Identifier of this MonitoredRegion.
- resource_
analytics_ strinstance_ id The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
** 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
- region
Id String - The Region Identifier of this MonitoredRegion.
- resource
Analytics StringInstance Id The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
** 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 ResourceAnalyticsMonitoredRegion resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- State string
- The current state of the MonitoredRegion.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- State string
- The current state of the MonitoredRegion.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- state String
- The current state of the MonitoredRegion.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- state string
- The current state of the MonitoredRegion.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated string - The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- state str
- The current state of the MonitoredRegion.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time_
updated str - The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- state String
- The current state of the MonitoredRegion.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
Look up Existing ResourceAnalyticsMonitoredRegion Resource
Get an existing ResourceAnalyticsMonitoredRegion 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?: ResourceAnalyticsMonitoredRegionState, opts?: CustomResourceOptions): ResourceAnalyticsMonitoredRegion@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
lifecycle_details: Optional[str] = None,
region_id: Optional[str] = None,
resource_analytics_instance_id: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> ResourceAnalyticsMonitoredRegionfunc GetResourceAnalyticsMonitoredRegion(ctx *Context, name string, id IDInput, state *ResourceAnalyticsMonitoredRegionState, opts ...ResourceOption) (*ResourceAnalyticsMonitoredRegion, error)public static ResourceAnalyticsMonitoredRegion Get(string name, Input<string> id, ResourceAnalyticsMonitoredRegionState? state, CustomResourceOptions? opts = null)public static ResourceAnalyticsMonitoredRegion get(String name, Output<String> id, ResourceAnalyticsMonitoredRegionState state, CustomResourceOptions options)resources: _: type: oci:oci:ResourceAnalyticsMonitoredRegion get: id: ${id}- 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.
- Lifecycle
Details string - A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- Region
Id string - The Region Identifier of this MonitoredRegion.
- Resource
Analytics stringInstance Id The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
** 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
- State string
- The current state of the MonitoredRegion.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Lifecycle
Details string - A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- Region
Id string - The Region Identifier of this MonitoredRegion.
- Resource
Analytics stringInstance Id The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
** 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
- State string
- The current state of the MonitoredRegion.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- lifecycle
Details String - A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- region
Id String - The Region Identifier of this MonitoredRegion.
- resource
Analytics StringInstance Id The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
** 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
- state String
- The current state of the MonitoredRegion.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- lifecycle
Details string - A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- region
Id string - The Region Identifier of this MonitoredRegion.
- resource
Analytics stringInstance Id The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
** 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
- state string
- The current state of the MonitoredRegion.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated string - The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- lifecycle_
details str - A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- region_
id str - The Region Identifier of this MonitoredRegion.
- resource_
analytics_ strinstance_ id The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
** 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
- state str
- The current state of the MonitoredRegion.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time_
updated str - The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- lifecycle
Details String - A message that describes the current state of the MonitoredRegion in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
- region
Id String - The Region Identifier of this MonitoredRegion.
- resource
Analytics StringInstance Id The OCID of the ResourceAnalyticsInstance associated with this MonitoredRegion.
** 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
- state String
- The current state of the MonitoredRegion.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the MonitoredRegion was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time the MonitoredRegion was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
Import
MonitoredRegions can be imported using the id, e.g.
$ pulumi import oci:oci/resourceAnalyticsMonitoredRegion:ResourceAnalyticsMonitoredRegion test_monitored_region "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
ociTerraform Provider.
