import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Config resource in Oracle Cloud Infrastructure Apm Config service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/apm-config/latest/Config * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/apm/apm_config * * Creates a new configuration item. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testConfig = new oci.apmconfig.Config("test_config", { * apmDomainId: testApmDomain.id, * configType: configConfigType, * agentVersion: configAgentVersion, * attachInstallDir: configAttachInstallDir, * config: { * configMaps: [{ * fileName: configConfigConfigMapFileName, * body: configConfigConfigMapBody, * contentType: configConfigConfigMapContentType, * }], * }, * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: configDescription, * dimensions: [{ * name: configDimensionsName, * valueSource: configDimensionsValueSource, * }], * displayName: configDisplayName, * filterId: testFilter.id, * filterText: configFilterText, * freeformTags: { * "bar-key": "value", * }, * group: configGroup, * managementAgentId: testManagementAgent.id, * matchAgentsWithAttributeValue: configMatchAgentsWithAttributeValue, * metrics: [{ * description: configMetricsDescription, * name: configMetricsName, * unit: configMetricsUnit, * valueSource: configMetricsValueSource, * }], * namespace: configNamespace, * opcDryRun: configOpcDryRun, * options: configOptions, * overrides: { * overrideLists: [{ * agentFilter: configOverridesOverrideListAgentFilter, * overrideMap: configOverridesOverrideListOverrideMap, * }], * }, * processFilters: configProcessFilter, * rules: [{ * displayName: configRulesDisplayName, * filterText: configRulesFilterText, * isApplyToErrorSpans: configRulesIsApplyToErrorSpans === "true", * isEnabled: configRulesIsEnabled === "true", * priority: Number(configRulesPriority), * satisfiedResponseTime: Number(configRulesSatisfiedResponseTime), * toleratingResponseTime: Number(configRulesToleratingResponseTime), * }], * runAsUser: configRunAsUser, * serviceName: testService.name, * }); * ``` * * ## Import * * Configs can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:ApmConfig/config:Config test_config "configs/{configId}/apmDomainId/{apmDomainId}" * ``` */ export declare class Config extends pulumi.CustomResource { /** * Get an existing Config 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?: ConfigState, opts?: pulumi.CustomResourceOptions): Config; /** * Returns true if the given object is an instance of Config. 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 Config; /** * (Updatable) The version of the referenced agent bundle. */ readonly agentVersion: pulumi.Output; /** * (Updatable) The APM Domain ID the request is intended for. */ readonly apmDomainId: pulumi.Output; /** * (Updatable) The directory owned by runAsUser. */ readonly attachInstallDir: pulumi.Output; /** * (Updatable) Collection of agent configuration files. For agents that use a single configuration file, this SHOULD contain a single entry and the file name MAY be an empty string. For multiple entries, you should use multiple blocks of `configMap`. To apply a different configuration in a subset of the agents, put this block anywhere in the body of the configuration and edit and {{ | default }} Example: com.oracle.apm.agent.tracer.enable.jfr = {{ isJfrEnabled | default false }} Then, in the configuration's overrides, specify a different value for along with the desired agent filter. Example: "agentFilter": "ApplicationType='Tomcat'" "overrideMap": { "isJfrEnabled": true } */ readonly config: pulumi.Output; /** * (Updatable) The type of configuration item. */ readonly configType: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a user. */ readonly createdBy: 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) An optional string that describes what the options are intended or used for. */ readonly description: pulumi.Output; /** * (Updatable) A list of dimensions for the metric. This variable should not be used. */ readonly dimensions: pulumi.Output; /** * (Updatable) The name by which a configuration entity is displayed to the end user. */ readonly displayName: pulumi.Output; /** * For optimistic concurrency control. See `if-match`. */ readonly etag: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created. */ readonly filterId: pulumi.Output; /** * (Updatable) The string that defines the Span Filter expression. */ readonly filterText: 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; }>; /** * (Updatable) A string that specifies the group that an OPTIONS item belongs to. */ readonly group: pulumi.Output; /** * The list of configuration items that reference the span filter. */ readonly inUseBies: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Management Agent that will provision the APM Agent. */ readonly managementAgentId: pulumi.Output; /** * The agent attribute KEY by which an Agent configuration is matched to an agent. All agent configuration objects share the same key. It is [ServiceName, service.name] by default. The attribute VALUE corresponding to this KEY is in the matchAgentsWithAttributeValue field. */ readonly matchAgentsWithAttributeKeys: pulumi.Output; /** * The agent attribute VALUE by which an agent configuration is matched to an agent. Each agent configuration object must specify a different value. The attribute KEY corresponding to this VALUE is in the matchAgentsWithAttributeKey field. */ readonly matchAgentsWithAttributeValue: pulumi.Output; /** * (Updatable) The list of metrics in this group. */ readonly metrics: pulumi.Output; /** * (Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces. */ readonly namespace: pulumi.Output; /** * (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. */ readonly opcDryRun: pulumi.Output; /** * (Updatable) The options are stored here as JSON. */ readonly options: pulumi.Output; /** * (Updatable) Agent configuration overrides that should apply to a subset of the agents associated with an Agent Config object. */ readonly overrides: pulumi.Output; /** * (Updatable) Filter patterns used to discover active Java processes for provisioning the APM Agent. */ readonly processFilters: pulumi.Output; /** * (Updatable) */ readonly rules: pulumi.Output; /** * (Updatable) The OS user that should be used to discover Java processes. */ readonly runAsUser: pulumi.Output; /** * (Updatable) The name of the service being monitored. This argument enables you to filter by service and view traces and other signals in the APM Explorer user interface. * * ** 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 serviceName: pulumi.Output; /** * The time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2020-02-12T22:47:12.613Z` */ readonly timeCreated: pulumi.Output; /** * The time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2020-02-13T22:47:12.613Z` */ readonly timeUpdated: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a user. */ readonly updatedBy: pulumi.Output; /** * Create a Config 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: ConfigArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Config resources. */ export interface ConfigState { /** * (Updatable) The version of the referenced agent bundle. */ agentVersion?: pulumi.Input; /** * (Updatable) The APM Domain ID the request is intended for. */ apmDomainId?: pulumi.Input; /** * (Updatable) The directory owned by runAsUser. */ attachInstallDir?: pulumi.Input; /** * (Updatable) Collection of agent configuration files. For agents that use a single configuration file, this SHOULD contain a single entry and the file name MAY be an empty string. For multiple entries, you should use multiple blocks of `configMap`. To apply a different configuration in a subset of the agents, put this block anywhere in the body of the configuration and edit and {{ | default }} Example: com.oracle.apm.agent.tracer.enable.jfr = {{ isJfrEnabled | default false }} Then, in the configuration's overrides, specify a different value for along with the desired agent filter. Example: "agentFilter": "ApplicationType='Tomcat'" "overrideMap": { "isJfrEnabled": true } */ config?: pulumi.Input; /** * (Updatable) The type of configuration item. */ configType?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a user. */ createdBy?: 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) An optional string that describes what the options are intended or used for. */ description?: pulumi.Input; /** * (Updatable) A list of dimensions for the metric. This variable should not be used. */ dimensions?: pulumi.Input[] | undefined>; /** * (Updatable) The name by which a configuration entity is displayed to the end user. */ displayName?: pulumi.Input; /** * For optimistic concurrency control. See `if-match`. */ etag?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created. */ filterId?: pulumi.Input; /** * (Updatable) The string that defines the Span Filter expression. */ filterText?: 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) A string that specifies the group that an OPTIONS item belongs to. */ group?: pulumi.Input; /** * The list of configuration items that reference the span filter. */ inUseBies?: pulumi.Input[] | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Management Agent that will provision the APM Agent. */ managementAgentId?: pulumi.Input; /** * The agent attribute KEY by which an Agent configuration is matched to an agent. All agent configuration objects share the same key. It is [ServiceName, service.name] by default. The attribute VALUE corresponding to this KEY is in the matchAgentsWithAttributeValue field. */ matchAgentsWithAttributeKeys?: pulumi.Input[] | undefined>; /** * The agent attribute VALUE by which an agent configuration is matched to an agent. Each agent configuration object must specify a different value. The attribute KEY corresponding to this VALUE is in the matchAgentsWithAttributeKey field. */ matchAgentsWithAttributeValue?: pulumi.Input; /** * (Updatable) The list of metrics in this group. */ metrics?: pulumi.Input[] | undefined>; /** * (Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces. */ namespace?: pulumi.Input; /** * (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. */ opcDryRun?: pulumi.Input; /** * (Updatable) The options are stored here as JSON. */ options?: pulumi.Input; /** * (Updatable) Agent configuration overrides that should apply to a subset of the agents associated with an Agent Config object. */ overrides?: pulumi.Input; /** * (Updatable) Filter patterns used to discover active Java processes for provisioning the APM Agent. */ processFilters?: pulumi.Input[] | undefined>; /** * (Updatable) */ rules?: pulumi.Input[] | undefined>; /** * (Updatable) The OS user that should be used to discover Java processes. */ runAsUser?: pulumi.Input; /** * (Updatable) The name of the service being monitored. This argument enables you to filter by service and view traces and other signals in the APM Explorer user interface. * * ** 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 */ serviceName?: pulumi.Input; /** * The time the resource was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2020-02-12T22:47:12.613Z` */ timeCreated?: pulumi.Input; /** * The time the resource was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2020-02-13T22:47:12.613Z` */ timeUpdated?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a user. */ updatedBy?: pulumi.Input; } /** * The set of arguments for constructing a Config resource. */ export interface ConfigArgs { /** * (Updatable) The version of the referenced agent bundle. */ agentVersion?: pulumi.Input; /** * (Updatable) The APM Domain ID the request is intended for. */ apmDomainId: pulumi.Input; /** * (Updatable) The directory owned by runAsUser. */ attachInstallDir?: pulumi.Input; /** * (Updatable) Collection of agent configuration files. For agents that use a single configuration file, this SHOULD contain a single entry and the file name MAY be an empty string. For multiple entries, you should use multiple blocks of `configMap`. To apply a different configuration in a subset of the agents, put this block anywhere in the body of the configuration and edit and {{ | default }} Example: com.oracle.apm.agent.tracer.enable.jfr = {{ isJfrEnabled | default false }} Then, in the configuration's overrides, specify a different value for along with the desired agent filter. Example: "agentFilter": "ApplicationType='Tomcat'" "overrideMap": { "isJfrEnabled": true } */ config?: pulumi.Input; /** * (Updatable) The type of configuration item. */ configType: 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) An optional string that describes what the options are intended or used for. */ description?: pulumi.Input; /** * (Updatable) A list of dimensions for the metric. This variable should not be used. */ dimensions?: pulumi.Input[] | undefined>; /** * (Updatable) The name by which a configuration entity is displayed to the end user. */ displayName?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created. */ filterId?: pulumi.Input; /** * (Updatable) The string that defines the Span Filter expression. */ filterText?: 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) A string that specifies the group that an OPTIONS item belongs to. */ group?: pulumi.Input; /** * The list of configuration items that reference the span filter. */ inUseBies?: pulumi.Input[] | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Management Agent that will provision the APM Agent. */ managementAgentId?: pulumi.Input; /** * The agent attribute VALUE by which an agent configuration is matched to an agent. Each agent configuration object must specify a different value. The attribute KEY corresponding to this VALUE is in the matchAgentsWithAttributeKey field. */ matchAgentsWithAttributeValue?: pulumi.Input; /** * (Updatable) The list of metrics in this group. */ metrics?: pulumi.Input[] | undefined>; /** * (Updatable) The namespace to which the metrics are published. It must be one of several predefined namespaces. */ namespace?: pulumi.Input; /** * (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. */ opcDryRun?: pulumi.Input; /** * (Updatable) The options are stored here as JSON. */ options?: pulumi.Input; /** * (Updatable) Agent configuration overrides that should apply to a subset of the agents associated with an Agent Config object. */ overrides?: pulumi.Input; /** * (Updatable) Filter patterns used to discover active Java processes for provisioning the APM Agent. */ processFilters?: pulumi.Input[] | undefined>; /** * (Updatable) */ rules?: pulumi.Input[] | undefined>; /** * (Updatable) The OS user that should be used to discover Java processes. */ runAsUser?: pulumi.Input; /** * (Updatable) The name of the service being monitored. This argument enables you to filter by service and view traces and other signals in the APM Explorer user interface. * * ** 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 */ serviceName?: pulumi.Input; } //# sourceMappingURL=config.d.ts.map