Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

Config

This resource provides the Config resource in Oracle Cloud Infrastructure Apm Config service.

Creates a new configuration item.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testConfig = new Oci.ApmConfig.Config("testConfig", new()
    {
        ApmDomainId = oci_apm_apm_domain.Test_apm_domain.Id,
        ConfigType = @var.Config_config_type,
        DisplayName = @var.Config_display_name,
        DefinedTags = 
        {
            { "foo-namespace.bar-key", "value" },
        },
        Description = @var.Config_description,
        Dimensions = new[]
        {
            new Oci.ApmConfig.Inputs.ConfigDimensionArgs
            {
                Name = @var.Config_dimensions_name,
                ValueSource = @var.Config_dimensions_value_source,
            },
        },
        FilterId = oci_apm_config_filter.Test_filter.Id,
        FilterText = @var.Config_filter_text,
        FreeformTags = 
        {
            { "bar-key", "value" },
        },
        Group = @var.Config_group,
        Metrics = new[]
        {
            new Oci.ApmConfig.Inputs.ConfigMetricArgs
            {
                Description = @var.Config_metrics_description,
                Name = @var.Config_metrics_name,
                Unit = @var.Config_metrics_unit,
                ValueSource = @var.Config_metrics_value_source,
            },
        },
        Namespace = @var.Config_namespace,
        OpcDryRun = @var.Config_opc_dry_run,
        Options = @var.Config_options,
        Rules = new[]
        {
            new Oci.ApmConfig.Inputs.ConfigRuleArgs
            {
                DisplayName = @var.Config_rules_display_name,
                FilterText = @var.Config_rules_filter_text,
                IsApplyToErrorSpans = @var.Config_rules_is_apply_to_error_spans,
                IsEnabled = @var.Config_rules_is_enabled,
                Priority = @var.Config_rules_priority,
                SatisfiedResponseTime = @var.Config_rules_satisfied_response_time,
                ToleratingResponseTime = @var.Config_rules_tolerating_response_time,
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/ApmConfig"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ApmConfig.NewConfig(ctx, "testConfig", &ApmConfig.ConfigArgs{
			ApmDomainId: pulumi.Any(oci_apm_apm_domain.Test_apm_domain.Id),
			ConfigType:  pulumi.Any(_var.Config_config_type),
			DisplayName: pulumi.Any(_var.Config_display_name),
			DefinedTags: pulumi.AnyMap{
				"foo-namespace.bar-key": pulumi.Any("value"),
			},
			Description: pulumi.Any(_var.Config_description),
			Dimensions: apmconfig.ConfigDimensionArray{
				&apmconfig.ConfigDimensionArgs{
					Name:        pulumi.Any(_var.Config_dimensions_name),
					ValueSource: pulumi.Any(_var.Config_dimensions_value_source),
				},
			},
			FilterId:   pulumi.Any(oci_apm_config_filter.Test_filter.Id),
			FilterText: pulumi.Any(_var.Config_filter_text),
			FreeformTags: pulumi.AnyMap{
				"bar-key": pulumi.Any("value"),
			},
			Group: pulumi.Any(_var.Config_group),
			Metrics: apmconfig.ConfigMetricArray{
				&apmconfig.ConfigMetricArgs{
					Description: pulumi.Any(_var.Config_metrics_description),
					Name:        pulumi.Any(_var.Config_metrics_name),
					Unit:        pulumi.Any(_var.Config_metrics_unit),
					ValueSource: pulumi.Any(_var.Config_metrics_value_source),
				},
			},
			Namespace: pulumi.Any(_var.Config_namespace),
			OpcDryRun: pulumi.Any(_var.Config_opc_dry_run),
			Options:   pulumi.Any(_var.Config_options),
			Rules: apmconfig.ConfigRuleArray{
				&apmconfig.ConfigRuleArgs{
					DisplayName:            pulumi.Any(_var.Config_rules_display_name),
					FilterText:             pulumi.Any(_var.Config_rules_filter_text),
					IsApplyToErrorSpans:    pulumi.Any(_var.Config_rules_is_apply_to_error_spans),
					IsEnabled:              pulumi.Any(_var.Config_rules_is_enabled),
					Priority:               pulumi.Any(_var.Config_rules_priority),
					SatisfiedResponseTime:  pulumi.Any(_var.Config_rules_satisfied_response_time),
					ToleratingResponseTime: pulumi.Any(_var.Config_rules_tolerating_response_time),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ApmConfig.Config;
import com.pulumi.oci.ApmConfig.ConfigArgs;
import com.pulumi.oci.ApmConfig.inputs.ConfigDimensionArgs;
import com.pulumi.oci.ApmConfig.inputs.ConfigMetricArgs;
import com.pulumi.oci.ApmConfig.inputs.ConfigRuleArgs;
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 testConfig = new Config("testConfig", ConfigArgs.builder()        
            .apmDomainId(oci_apm_apm_domain.test_apm_domain().id())
            .configType(var_.config_config_type())
            .displayName(var_.config_display_name())
            .definedTags(Map.of("foo-namespace.bar-key", "value"))
            .description(var_.config_description())
            .dimensions(ConfigDimensionArgs.builder()
                .name(var_.config_dimensions_name())
                .valueSource(var_.config_dimensions_value_source())
                .build())
            .filterId(oci_apm_config_filter.test_filter().id())
            .filterText(var_.config_filter_text())
            .freeformTags(Map.of("bar-key", "value"))
            .group(var_.config_group())
            .metrics(ConfigMetricArgs.builder()
                .description(var_.config_metrics_description())
                .name(var_.config_metrics_name())
                .unit(var_.config_metrics_unit())
                .valueSource(var_.config_metrics_value_source())
                .build())
            .namespace(var_.config_namespace())
            .opcDryRun(var_.config_opc_dry_run())
            .options(var_.config_options())
            .rules(ConfigRuleArgs.builder()
                .displayName(var_.config_rules_display_name())
                .filterText(var_.config_rules_filter_text())
                .isApplyToErrorSpans(var_.config_rules_is_apply_to_error_spans())
                .isEnabled(var_.config_rules_is_enabled())
                .priority(var_.config_rules_priority())
                .satisfiedResponseTime(var_.config_rules_satisfied_response_time())
                .toleratingResponseTime(var_.config_rules_tolerating_response_time())
                .build())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_config = oci.apm_config.Config("testConfig",
    apm_domain_id=oci_apm_apm_domain["test_apm_domain"]["id"],
    config_type=var["config_config_type"],
    display_name=var["config_display_name"],
    defined_tags={
        "foo-namespace.bar-key": "value",
    },
    description=var["config_description"],
    dimensions=[oci.apm_config.ConfigDimensionArgs(
        name=var["config_dimensions_name"],
        value_source=var["config_dimensions_value_source"],
    )],
    filter_id=oci_apm_config_filter["test_filter"]["id"],
    filter_text=var["config_filter_text"],
    freeform_tags={
        "bar-key": "value",
    },
    group=var["config_group"],
    metrics=[oci.apm_config.ConfigMetricArgs(
        description=var["config_metrics_description"],
        name=var["config_metrics_name"],
        unit=var["config_metrics_unit"],
        value_source=var["config_metrics_value_source"],
    )],
    namespace=var["config_namespace"],
    opc_dry_run=var["config_opc_dry_run"],
    options=var["config_options"],
    rules=[oci.apm_config.ConfigRuleArgs(
        display_name=var["config_rules_display_name"],
        filter_text=var["config_rules_filter_text"],
        is_apply_to_error_spans=var["config_rules_is_apply_to_error_spans"],
        is_enabled=var["config_rules_is_enabled"],
        priority=var["config_rules_priority"],
        satisfied_response_time=var["config_rules_satisfied_response_time"],
        tolerating_response_time=var["config_rules_tolerating_response_time"],
    )])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testConfig = new oci.apmconfig.Config("testConfig", {
    apmDomainId: oci_apm_apm_domain.test_apm_domain.id,
    configType: _var.config_config_type,
    displayName: _var.config_display_name,
    definedTags: {
        "foo-namespace.bar-key": "value",
    },
    description: _var.config_description,
    dimensions: [{
        name: _var.config_dimensions_name,
        valueSource: _var.config_dimensions_value_source,
    }],
    filterId: oci_apm_config_filter.test_filter.id,
    filterText: _var.config_filter_text,
    freeformTags: {
        "bar-key": "value",
    },
    group: _var.config_group,
    metrics: [{
        description: _var.config_metrics_description,
        name: _var.config_metrics_name,
        unit: _var.config_metrics_unit,
        valueSource: _var.config_metrics_value_source,
    }],
    namespace: _var.config_namespace,
    opcDryRun: _var.config_opc_dry_run,
    options: _var.config_options,
    rules: [{
        displayName: _var.config_rules_display_name,
        filterText: _var.config_rules_filter_text,
        isApplyToErrorSpans: _var.config_rules_is_apply_to_error_spans,
        isEnabled: _var.config_rules_is_enabled,
        priority: _var.config_rules_priority,
        satisfiedResponseTime: _var.config_rules_satisfied_response_time,
        toleratingResponseTime: _var.config_rules_tolerating_response_time,
    }],
});
resources:
  testConfig:
    type: oci:ApmConfig:Config
    properties:
      #Required
      apmDomainId: ${oci_apm_apm_domain.test_apm_domain.id}
      configType: ${var.config_config_type}
      displayName: ${var.config_display_name}
      #Optional
      definedTags:
        foo-namespace.bar-key: value
      description: ${var.config_description}
      dimensions:
        - name: ${var.config_dimensions_name}
          valueSource: ${var.config_dimensions_value_source}
      filterId: ${oci_apm_config_filter.test_filter.id}
      filterText: ${var.config_filter_text}
      freeformTags:
        bar-key: value
      group: ${var.config_group}
      metrics:
        - description: ${var.config_metrics_description}
          name: ${var.config_metrics_name}
          unit: ${var.config_metrics_unit}
          valueSource: ${var.config_metrics_value_source}
      namespace: ${var.config_namespace}
      opcDryRun: ${var.config_opc_dry_run}
      options: ${var.config_options}
      rules:
        - displayName: ${var.config_rules_display_name}
          filterText: ${var.config_rules_filter_text}
          isApplyToErrorSpans: ${var.config_rules_is_apply_to_error_spans}
          isEnabled: ${var.config_rules_is_enabled}
          priority: ${var.config_rules_priority}
          satisfiedResponseTime: ${var.config_rules_satisfied_response_time}
          toleratingResponseTime: ${var.config_rules_tolerating_response_time}

Create Config Resource

new Config(name: string, args: ConfigArgs, opts?: CustomResourceOptions);
@overload
def Config(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           apm_domain_id: Optional[str] = None,
           config_type: Optional[str] = None,
           defined_tags: Optional[Mapping[str, Any]] = None,
           description: Optional[str] = None,
           dimensions: Optional[Sequence[_apmconfig.ConfigDimensionArgs]] = None,
           display_name: Optional[str] = None,
           filter_id: Optional[str] = None,
           filter_text: Optional[str] = None,
           freeform_tags: Optional[Mapping[str, Any]] = None,
           group: Optional[str] = None,
           metrics: Optional[Sequence[_apmconfig.ConfigMetricArgs]] = None,
           namespace: Optional[str] = None,
           opc_dry_run: Optional[str] = None,
           options: Optional[str] = None,
           rules: Optional[Sequence[_apmconfig.ConfigRuleArgs]] = None)
@overload
def Config(resource_name: str,
           args: ConfigArgs,
           opts: Optional[ResourceOptions] = None)
func NewConfig(ctx *Context, name string, args ConfigArgs, opts ...ResourceOption) (*Config, error)
public Config(string name, ConfigArgs args, CustomResourceOptions? opts = null)
public Config(String name, ConfigArgs args)
public Config(String name, ConfigArgs args, CustomResourceOptions options)
type: oci:ApmConfig:Config
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ConfigArgs
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 ConfigArgs
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 ConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Config 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 Config resource accepts the following input properties:

ApmDomainId string

(Updatable) The APM Domain ID the request is intended for.

ConfigType string

(Updatable) The type of configuration item.

DisplayName string

(Updatable) The name by which a configuration entity is displayed to the end user.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

(Updatable) A description of the metric.

Dimensions List<ConfigDimensionArgs>

(Updatable) A list of dimensions for the metric. This variable should not be used.

FilterId string

(Updatable) The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.

FilterText string

(Updatable) The string that defines the Span Filter expression.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Group string

(Updatable) A string that specifies the group that an OPTIONS item belongs to.

Metrics List<ConfigMetricArgs>

(Updatable) The list of metrics in this group.

Namespace string

(Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces.

OpcDryRun string

(Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.

Options string

(Updatable) The options are stored here as JSON.

Rules List<ConfigRuleArgs>

(Updatable)

ApmDomainId string

(Updatable) The APM Domain ID the request is intended for.

ConfigType string

(Updatable) The type of configuration item.

DisplayName string

(Updatable) The name by which a configuration entity is displayed to the end user.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

(Updatable) A description of the metric.

Dimensions []ConfigDimensionArgs

(Updatable) A list of dimensions for the metric. This variable should not be used.

FilterId string

(Updatable) The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.

FilterText string

(Updatable) The string that defines the Span Filter expression.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Group string

(Updatable) A string that specifies the group that an OPTIONS item belongs to.

Metrics []ConfigMetricArgs

(Updatable) The list of metrics in this group.

Namespace string

(Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces.

OpcDryRun string

(Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.

Options string

(Updatable) The options are stored here as JSON.

Rules []ConfigRuleArgs

(Updatable)

apmDomainId String

(Updatable) The APM Domain ID the request is intended for.

configType String

(Updatable) The type of configuration item.

displayName String

(Updatable) The name by which a configuration entity is displayed to the end user.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

(Updatable) A description of the metric.

dimensions List<ConfigDimensionArgs>

(Updatable) A list of dimensions for the metric. This variable should not be used.

filterId String

(Updatable) The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.

filterText String

(Updatable) The string that defines the Span Filter expression.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

group String

(Updatable) A string that specifies the group that an OPTIONS item belongs to.

metrics List<ConfigMetricArgs>

(Updatable) The list of metrics in this group.

namespace String

(Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces.

opcDryRun String

(Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.

options String

(Updatable) The options are stored here as JSON.

rules List<ConfigRuleArgs>

(Updatable)

apmDomainId string

(Updatable) The APM Domain ID the request is intended for.

configType string

(Updatable) The type of configuration item.

displayName string

(Updatable) The name by which a configuration entity is displayed to the end user.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description string

(Updatable) A description of the metric.

dimensions ConfigDimensionArgs[]

(Updatable) A list of dimensions for the metric. This variable should not be used.

filterId string

(Updatable) The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.

filterText string

(Updatable) The string that defines the Span Filter expression.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

group string

(Updatable) A string that specifies the group that an OPTIONS item belongs to.

metrics ConfigMetricArgs[]

(Updatable) The list of metrics in this group.

namespace string

(Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces.

opcDryRun string

(Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.

options string

(Updatable) The options are stored here as JSON.

rules ConfigRuleArgs[]

(Updatable)

apm_domain_id str

(Updatable) The APM Domain ID the request is intended for.

config_type str

(Updatable) The type of configuration item.

display_name str

(Updatable) The name by which a configuration entity is displayed to the end user.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description str

(Updatable) A description of the metric.

dimensions ConfigDimensionArgs]

(Updatable) A list of dimensions for the metric. This variable should not be used.

filter_id str

(Updatable) The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.

filter_text str

(Updatable) The string that defines the Span Filter expression.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

group str

(Updatable) A string that specifies the group that an OPTIONS item belongs to.

metrics ConfigMetricArgs]

(Updatable) The list of metrics in this group.

namespace str

(Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces.

opc_dry_run str

(Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.

options str

(Updatable) The options are stored here as JSON.

rules ConfigRuleArgs]

(Updatable)

apmDomainId String

(Updatable) The APM Domain ID the request is intended for.

configType String

(Updatable) The type of configuration item.

displayName String

(Updatable) The name by which a configuration entity is displayed to the end user.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

(Updatable) A description of the metric.

dimensions List<Property Map>

(Updatable) A list of dimensions for the metric. This variable should not be used.

filterId String

(Updatable) The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.

filterText String

(Updatable) The string that defines the Span Filter expression.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

group String

(Updatable) A string that specifies the group that an OPTIONS item belongs to.

metrics List<Property Map>

(Updatable) The list of metrics in this group.

namespace String

(Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces.

opcDryRun String

(Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.

options String

(Updatable) The options are stored here as JSON.

rules List<Property Map>

(Updatable)

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

TimeCreated string

The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

TimeUpdated string

The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

Id string

The provider-assigned unique ID for this managed resource.

TimeCreated string

The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

TimeUpdated string

The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

id String

The provider-assigned unique ID for this managed resource.

timeCreated String

The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

timeUpdated String

The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

id string

The provider-assigned unique ID for this managed resource.

timeCreated string

The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

timeUpdated string

The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

id str

The provider-assigned unique ID for this managed resource.

time_created str

The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

time_updated str

The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

id String

The provider-assigned unique ID for this managed resource.

timeCreated String

The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

timeUpdated String

The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

Look up Existing Config Resource

Get an existing Config 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?: ConfigState, opts?: CustomResourceOptions): Config
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        apm_domain_id: Optional[str] = None,
        config_type: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        description: Optional[str] = None,
        dimensions: Optional[Sequence[_apmconfig.ConfigDimensionArgs]] = None,
        display_name: Optional[str] = None,
        filter_id: Optional[str] = None,
        filter_text: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        group: Optional[str] = None,
        metrics: Optional[Sequence[_apmconfig.ConfigMetricArgs]] = None,
        namespace: Optional[str] = None,
        opc_dry_run: Optional[str] = None,
        options: Optional[str] = None,
        rules: Optional[Sequence[_apmconfig.ConfigRuleArgs]] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> Config
func GetConfig(ctx *Context, name string, id IDInput, state *ConfigState, opts ...ResourceOption) (*Config, error)
public static Config Get(string name, Input<string> id, ConfigState? state, CustomResourceOptions? opts = null)
public static Config get(String name, Output<String> id, ConfigState 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:
ApmDomainId string

(Updatable) The APM Domain ID the request is intended for.

ConfigType string

(Updatable) The type of configuration item.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

(Updatable) A description of the metric.

Dimensions List<ConfigDimensionArgs>

(Updatable) A list of dimensions for the metric. This variable should not be used.

DisplayName string

(Updatable) The name by which a configuration entity is displayed to the end user.

FilterId string

(Updatable) The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.

FilterText string

(Updatable) The string that defines the Span Filter expression.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Group string

(Updatable) A string that specifies the group that an OPTIONS item belongs to.

Metrics List<ConfigMetricArgs>

(Updatable) The list of metrics in this group.

Namespace string

(Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces.

OpcDryRun string

(Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.

Options string

(Updatable) The options are stored here as JSON.

Rules List<ConfigRuleArgs>

(Updatable)

TimeCreated string

The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

TimeUpdated string

The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

ApmDomainId string

(Updatable) The APM Domain ID the request is intended for.

ConfigType string

(Updatable) The type of configuration item.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

(Updatable) A description of the metric.

Dimensions []ConfigDimensionArgs

(Updatable) A list of dimensions for the metric. This variable should not be used.

DisplayName string

(Updatable) The name by which a configuration entity is displayed to the end user.

FilterId string

(Updatable) The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.

FilterText string

(Updatable) The string that defines the Span Filter expression.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Group string

(Updatable) A string that specifies the group that an OPTIONS item belongs to.

Metrics []ConfigMetricArgs

(Updatable) The list of metrics in this group.

Namespace string

(Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces.

OpcDryRun string

(Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.

Options string

(Updatable) The options are stored here as JSON.

Rules []ConfigRuleArgs

(Updatable)

TimeCreated string

The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

TimeUpdated string

The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

apmDomainId String

(Updatable) The APM Domain ID the request is intended for.

configType String

(Updatable) The type of configuration item.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

(Updatable) A description of the metric.

dimensions List<ConfigDimensionArgs>

(Updatable) A list of dimensions for the metric. This variable should not be used.

displayName String

(Updatable) The name by which a configuration entity is displayed to the end user.

filterId String

(Updatable) The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.

filterText String

(Updatable) The string that defines the Span Filter expression.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

group String

(Updatable) A string that specifies the group that an OPTIONS item belongs to.

metrics List<ConfigMetricArgs>

(Updatable) The list of metrics in this group.

namespace String

(Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces.

opcDryRun String

(Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.

options String

(Updatable) The options are stored here as JSON.

rules List<ConfigRuleArgs>

(Updatable)

timeCreated String

The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

timeUpdated String

The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

apmDomainId string

(Updatable) The APM Domain ID the request is intended for.

configType string

(Updatable) The type of configuration item.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description string

(Updatable) A description of the metric.

dimensions ConfigDimensionArgs[]

(Updatable) A list of dimensions for the metric. This variable should not be used.

displayName string

(Updatable) The name by which a configuration entity is displayed to the end user.

filterId string

(Updatable) The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.

filterText string

(Updatable) The string that defines the Span Filter expression.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

group string

(Updatable) A string that specifies the group that an OPTIONS item belongs to.

metrics ConfigMetricArgs[]

(Updatable) The list of metrics in this group.

namespace string

(Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces.

opcDryRun string

(Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.

options string

(Updatable) The options are stored here as JSON.

rules ConfigRuleArgs[]

(Updatable)

timeCreated string

The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

timeUpdated string

The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

apm_domain_id str

(Updatable) The APM Domain ID the request is intended for.

config_type str

(Updatable) The type of configuration item.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description str

(Updatable) A description of the metric.

dimensions ConfigDimensionArgs]

(Updatable) A list of dimensions for the metric. This variable should not be used.

display_name str

(Updatable) The name by which a configuration entity is displayed to the end user.

filter_id str

(Updatable) The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.

filter_text str

(Updatable) The string that defines the Span Filter expression.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

group str

(Updatable) A string that specifies the group that an OPTIONS item belongs to.

metrics ConfigMetricArgs]

(Updatable) The list of metrics in this group.

namespace str

(Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces.

opc_dry_run str

(Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.

options str

(Updatable) The options are stored here as JSON.

rules ConfigRuleArgs]

(Updatable)

time_created str

The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

time_updated str

The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

apmDomainId String

(Updatable) The APM Domain ID the request is intended for.

configType String

(Updatable) The type of configuration item.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

(Updatable) A description of the metric.

dimensions List<Property Map>

(Updatable) A list of dimensions for the metric. This variable should not be used.

displayName String

(Updatable) The name by which a configuration entity is displayed to the end user.

filterId String

(Updatable) The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.

filterText String

(Updatable) The string that defines the Span Filter expression.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

group String

(Updatable) A string that specifies the group that an OPTIONS item belongs to.

metrics List<Property Map>

(Updatable) The list of metrics in this group.

namespace String

(Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces.

opcDryRun String

(Updatable) Indicates that the request is a dry run, if set to "true". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.

options String

(Updatable) The options are stored here as JSON.

rules List<Property Map>

(Updatable)

timeCreated String

The time the resource was created, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

timeUpdated String

The time the resource was updated, expressed in RFC 3339 timestamp format. Example: 2020-02-13T22:47:12.613Z

Supporting Types

ConfigDimension

Name string

(Updatable) The name of the metric. This must be a known metric name.

ValueSource string

(Updatable) This must not be set.

Name string

(Updatable) The name of the metric. This must be a known metric name.

ValueSource string

(Updatable) This must not be set.

name String

(Updatable) The name of the metric. This must be a known metric name.

valueSource String

(Updatable) This must not be set.

name string

(Updatable) The name of the metric. This must be a known metric name.

valueSource string

(Updatable) This must not be set.

name str

(Updatable) The name of the metric. This must be a known metric name.

value_source str

(Updatable) This must not be set.

name String

(Updatable) The name of the metric. This must be a known metric name.

valueSource String

(Updatable) This must not be set.

ConfigMetric

Description string

(Updatable) A description of the metric.

Name string

(Updatable) The name of the metric. This must be a known metric name.

Unit string

(Updatable) The unit of the metric.

ValueSource string

(Updatable) This must not be set.

Description string

(Updatable) A description of the metric.

Name string

(Updatable) The name of the metric. This must be a known metric name.

Unit string

(Updatable) The unit of the metric.

ValueSource string

(Updatable) This must not be set.

description String

(Updatable) A description of the metric.

name String

(Updatable) The name of the metric. This must be a known metric name.

unit String

(Updatable) The unit of the metric.

valueSource String

(Updatable) This must not be set.

description string

(Updatable) A description of the metric.

name string

(Updatable) The name of the metric. This must be a known metric name.

unit string

(Updatable) The unit of the metric.

valueSource string

(Updatable) This must not be set.

description str

(Updatable) A description of the metric.

name str

(Updatable) The name of the metric. This must be a known metric name.

unit str

(Updatable) The unit of the metric.

value_source str

(Updatable) This must not be set.

description String

(Updatable) A description of the metric.

name String

(Updatable) The name of the metric. This must be a known metric name.

unit String

(Updatable) The unit of the metric.

valueSource String

(Updatable) This must not be set.

ConfigRule

DisplayName string

(Updatable) The name by which a configuration entity is displayed to the end user.

FilterText string

(Updatable) The string that defines the Span Filter expression.

IsApplyToErrorSpans bool

(Updatable) Specifies whether an Apdex score should be computed for error spans. Setting it to "true" means that the Apdex score is computed in the usual way. Setting it to "false" skips the Apdex computation and sets the Apdex score to "frustrating" regardless of the configured thresholds. The default is "false".

IsEnabled bool

(Updatable) Specifies whether the Apdex score should be computed for spans matching the rule. This can be used to disable Apdex score for spans that do not need or require it. The default is "true".

Priority int

(Updatable) The priority controls the order in which multiple rules in a rule set are applied. Lower values indicate higher priorities. Rules with higher priority are applied first, and once a match is found, the rest of the rules are ignored. Rules within the same rule set cannot have the same priority.

SatisfiedResponseTime int

(Updatable) The maximum response time in milliseconds that is considered "satisfactory" for the end user.

ToleratingResponseTime int

(Updatable) The maximum response time in milliseconds that is considered "tolerable" for the end user. A response time beyond this threshold is considered "frustrating". This value cannot be lower than "satisfiedResponseTime".

DisplayName string

(Updatable) The name by which a configuration entity is displayed to the end user.

FilterText string

(Updatable) The string that defines the Span Filter expression.

IsApplyToErrorSpans bool

(Updatable) Specifies whether an Apdex score should be computed for error spans. Setting it to "true" means that the Apdex score is computed in the usual way. Setting it to "false" skips the Apdex computation and sets the Apdex score to "frustrating" regardless of the configured thresholds. The default is "false".

IsEnabled bool

(Updatable) Specifies whether the Apdex score should be computed for spans matching the rule. This can be used to disable Apdex score for spans that do not need or require it. The default is "true".

Priority int

(Updatable) The priority controls the order in which multiple rules in a rule set are applied. Lower values indicate higher priorities. Rules with higher priority are applied first, and once a match is found, the rest of the rules are ignored. Rules within the same rule set cannot have the same priority.

SatisfiedResponseTime int

(Updatable) The maximum response time in milliseconds that is considered "satisfactory" for the end user.

ToleratingResponseTime int

(Updatable) The maximum response time in milliseconds that is considered "tolerable" for the end user. A response time beyond this threshold is considered "frustrating". This value cannot be lower than "satisfiedResponseTime".

displayName String

(Updatable) The name by which a configuration entity is displayed to the end user.

filterText String

(Updatable) The string that defines the Span Filter expression.

isApplyToErrorSpans Boolean

(Updatable) Specifies whether an Apdex score should be computed for error spans. Setting it to "true" means that the Apdex score is computed in the usual way. Setting it to "false" skips the Apdex computation and sets the Apdex score to "frustrating" regardless of the configured thresholds. The default is "false".

isEnabled Boolean

(Updatable) Specifies whether the Apdex score should be computed for spans matching the rule. This can be used to disable Apdex score for spans that do not need or require it. The default is "true".

priority Integer

(Updatable) The priority controls the order in which multiple rules in a rule set are applied. Lower values indicate higher priorities. Rules with higher priority are applied first, and once a match is found, the rest of the rules are ignored. Rules within the same rule set cannot have the same priority.

satisfiedResponseTime Integer

(Updatable) The maximum response time in milliseconds that is considered "satisfactory" for the end user.

toleratingResponseTime Integer

(Updatable) The maximum response time in milliseconds that is considered "tolerable" for the end user. A response time beyond this threshold is considered "frustrating". This value cannot be lower than "satisfiedResponseTime".

displayName string

(Updatable) The name by which a configuration entity is displayed to the end user.

filterText string

(Updatable) The string that defines the Span Filter expression.

isApplyToErrorSpans boolean

(Updatable) Specifies whether an Apdex score should be computed for error spans. Setting it to "true" means that the Apdex score is computed in the usual way. Setting it to "false" skips the Apdex computation and sets the Apdex score to "frustrating" regardless of the configured thresholds. The default is "false".

isEnabled boolean

(Updatable) Specifies whether the Apdex score should be computed for spans matching the rule. This can be used to disable Apdex score for spans that do not need or require it. The default is "true".

priority number

(Updatable) The priority controls the order in which multiple rules in a rule set are applied. Lower values indicate higher priorities. Rules with higher priority are applied first, and once a match is found, the rest of the rules are ignored. Rules within the same rule set cannot have the same priority.

satisfiedResponseTime number

(Updatable) The maximum response time in milliseconds that is considered "satisfactory" for the end user.

toleratingResponseTime number

(Updatable) The maximum response time in milliseconds that is considered "tolerable" for the end user. A response time beyond this threshold is considered "frustrating". This value cannot be lower than "satisfiedResponseTime".

display_name str

(Updatable) The name by which a configuration entity is displayed to the end user.

filter_text str

(Updatable) The string that defines the Span Filter expression.

is_apply_to_error_spans bool

(Updatable) Specifies whether an Apdex score should be computed for error spans. Setting it to "true" means that the Apdex score is computed in the usual way. Setting it to "false" skips the Apdex computation and sets the Apdex score to "frustrating" regardless of the configured thresholds. The default is "false".

is_enabled bool

(Updatable) Specifies whether the Apdex score should be computed for spans matching the rule. This can be used to disable Apdex score for spans that do not need or require it. The default is "true".

priority int

(Updatable) The priority controls the order in which multiple rules in a rule set are applied. Lower values indicate higher priorities. Rules with higher priority are applied first, and once a match is found, the rest of the rules are ignored. Rules within the same rule set cannot have the same priority.

satisfied_response_time int

(Updatable) The maximum response time in milliseconds that is considered "satisfactory" for the end user.

tolerating_response_time int

(Updatable) The maximum response time in milliseconds that is considered "tolerable" for the end user. A response time beyond this threshold is considered "frustrating". This value cannot be lower than "satisfiedResponseTime".

displayName String

(Updatable) The name by which a configuration entity is displayed to the end user.

filterText String

(Updatable) The string that defines the Span Filter expression.

isApplyToErrorSpans Boolean

(Updatable) Specifies whether an Apdex score should be computed for error spans. Setting it to "true" means that the Apdex score is computed in the usual way. Setting it to "false" skips the Apdex computation and sets the Apdex score to "frustrating" regardless of the configured thresholds. The default is "false".

isEnabled Boolean

(Updatable) Specifies whether the Apdex score should be computed for spans matching the rule. This can be used to disable Apdex score for spans that do not need or require it. The default is "true".

priority Number

(Updatable) The priority controls the order in which multiple rules in a rule set are applied. Lower values indicate higher priorities. Rules with higher priority are applied first, and once a match is found, the rest of the rules are ignored. Rules within the same rule set cannot have the same priority.

satisfiedResponseTime Number

(Updatable) The maximum response time in milliseconds that is considered "satisfactory" for the end user.

toleratingResponseTime Number

(Updatable) The maximum response time in milliseconds that is considered "tolerable" for the end user. A response time beyond this threshold is considered "frustrating". This value cannot be lower than "satisfiedResponseTime".

Import

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

 $ pulumi import oci:ApmConfig/config:Config test_config "configs/{configId}/apmDomainId/{apmDomainId}"

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.