import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Monitored Resource Type resource in Oracle Cloud Infrastructure Stack Monitoring service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/stack-monitoring/latest/MonitoredResourceType * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/stack_monitoring * * Creates a new monitored resource type. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testMonitoredResourceType = new oci.stackmonitoring.MonitoredResourceType("test_monitored_resource_type", { * compartmentId: compartmentId, * name: monitoredResourceTypeName, * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: monitoredResourceTypeDescription, * displayName: monitoredResourceTypeDisplayName, * freeformTags: { * "bar-key": "value", * }, * metadata: { * format: monitoredResourceTypeMetadataFormat, * agentProperties: monitoredResourceTypeMetadataAgentProperties, * requiredProperties: monitoredResourceTypeMetadataRequiredProperties, * uniquePropertySets: [{ * properties: monitoredResourceTypeMetadataUniquePropertySetsProperties, * }], * validPropertiesForCreates: monitoredResourceTypeMetadataValidPropertiesForCreate, * validPropertiesForUpdates: monitoredResourceTypeMetadataValidPropertiesForUpdate, * validPropertyValues: monitoredResourceTypeMetadataValidPropertyValues, * validSubResourceTypes: monitoredResourceTypeMetadataValidSubResourceTypes, * }, * metricNamespace: monitoredResourceTypeMetricNamespace, * resourceCategory: monitoredResourceTypeResourceCategory, * sourceType: monitoredResourceTypeSourceType, * }); * ``` * * ## Import * * MonitoredResourceTypes can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:StackMonitoring/monitoredResourceType:MonitoredResourceType test_monitored_resource_type "id" * ``` */ export declare class MonitoredResourceType extends pulumi.CustomResource { /** * Get an existing MonitoredResourceType 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?: MonitoredResourceTypeState, opts?: pulumi.CustomResourceOptions): MonitoredResourceType; /** * Returns true if the given object is an instance of MonitoredResourceType. 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 MonitoredResourceType; /** * Key/Value pair for additional namespaces used by stack monitoring services for SYSTEM (SMB) resource types. */ readonly additionalNamespaceMap: pulumi.Output<{ [key: string]: string; }>; /** * Availability metrics details. */ readonly availabilityMetricsConfigs: pulumi.Output; /** * Compartment Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ 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) A friendly description. */ readonly description: pulumi.Output; /** * (Updatable) Monitored resource type display name. */ readonly displayName: 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; }>; /** * Specific resource mapping configurations for Agent Extension Handlers. */ readonly handlerConfigs: pulumi.Output; /** * If boolean flag is true, then the resource type cannot be modified or deleted. */ readonly isSystemDefined: pulumi.Output; /** * (Updatable) The metadata details for resource type. */ readonly metadata: pulumi.Output; /** * (Updatable) Metric namespace for resource type. */ readonly metricNamespace: pulumi.Output; /** * A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed. */ readonly name: pulumi.Output; /** * (Updatable) Resource Category to indicate the kind of resource type. */ readonly resourceCategory: pulumi.Output; /** * (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc. * * ** 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 sourceType: pulumi.Output; /** * Lifecycle state of the monitored resource type. */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * Tenancy Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ readonly tenancyId: pulumi.Output; /** * The date and time when the monitored resource type was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. */ readonly timeCreated: pulumi.Output; /** * The date and time when the monitored resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. */ readonly timeUpdated: pulumi.Output; /** * Create a MonitoredResourceType 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: MonitoredResourceTypeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MonitoredResourceType resources. */ export interface MonitoredResourceTypeState { /** * Key/Value pair for additional namespaces used by stack monitoring services for SYSTEM (SMB) resource types. */ additionalNamespaceMap?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Availability metrics details. */ availabilityMetricsConfigs?: pulumi.Input[] | undefined>; /** * Compartment Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ 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) A friendly description. */ description?: pulumi.Input; /** * (Updatable) Monitored resource type display name. */ displayName?: 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>; /** * Specific resource mapping configurations for Agent Extension Handlers. */ handlerConfigs?: pulumi.Input[] | undefined>; /** * If boolean flag is true, then the resource type cannot be modified or deleted. */ isSystemDefined?: pulumi.Input; /** * (Updatable) The metadata details for resource type. */ metadata?: pulumi.Input; /** * (Updatable) Metric namespace for resource type. */ metricNamespace?: pulumi.Input; /** * A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed. */ name?: pulumi.Input; /** * (Updatable) Resource Category to indicate the kind of resource type. */ resourceCategory?: pulumi.Input; /** * (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc. * * ** 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 */ sourceType?: pulumi.Input; /** * Lifecycle state of the monitored resource type. */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Tenancy Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ tenancyId?: pulumi.Input; /** * The date and time when the monitored resource type was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. */ timeCreated?: pulumi.Input; /** * The date and time when the monitored resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a MonitoredResourceType resource. */ export interface MonitoredResourceTypeArgs { /** * Compartment Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ 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) A friendly description. */ description?: pulumi.Input; /** * (Updatable) Monitored resource type display name. */ displayName?: 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) The metadata details for resource type. */ metadata?: pulumi.Input; /** * (Updatable) Metric namespace for resource type. */ metricNamespace?: pulumi.Input; /** * A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed. */ name?: pulumi.Input; /** * (Updatable) Resource Category to indicate the kind of resource type. */ resourceCategory?: pulumi.Input; /** * (Updatable) Source type to indicate if the resource is stack monitoring discovered, Oracle Cloud Infrastructure native resource, etc. * * ** 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 */ sourceType?: pulumi.Input; } //# sourceMappingURL=monitoredResourceType.d.ts.map