import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * > This resource requires the API token scopes **Read settings** (`settings.read`) and **Write settings** (`settings.write`) * * ## Dynatrace Documentation * * - Customize endpoint detection in Service Detection v2 - https://docs.dynatrace.com/docs/observe/applications-and-microservices/services/service-detection-v2/endpoint-detection-v2 * * - Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: `builtin:endpoint-detection-rules`) * * ## Resource Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const first_instance = new dynatrace.EndpointDetectionRules("first-instance", { * enabled: true, * scope: "environment", * rule: { * description: "This is a sample description", * condition: "matchesValue(k8s.cluster.name,\"#name#-1\")", * endpointNameTemplate: "#name#", * ifConditionMatches: "DETECT_REQUEST_ON_ENDPOINT", * ruleName: "#name#-1", * }, * }); * const second_instance = new dynatrace.EndpointDetectionRules("second-instance", { * insertAfter: first_instance.id, * enabled: false, * scope: "environment", * rule: { * condition: "matchesValue(k8s.cluster.name,\"#name#-2\")", * ifConditionMatches: "SUPPRESS_REQUEST", * ruleName: "#name#-2", * }, * }); * ``` */ export declare class EndpointDetectionRules extends pulumi.CustomResource { /** * Get an existing EndpointDetectionRules 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?: EndpointDetectionRulesState, opts?: pulumi.CustomResourceOptions): EndpointDetectionRules; /** * Returns true if the given object is an instance of EndpointDetectionRules. 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 EndpointDetectionRules; /** * This setting is enabled (`true`) or disabled (`false`) */ readonly enabled: pulumi.Output; /** * Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched */ readonly insertAfter: pulumi.Output; /** * Rule */ readonly rule: pulumi.Output; /** * The scope of this setting (CLOUD*APPLICATION*NAMESPACE, KUBERNETES*CLUSTER, HOST*GROUP). Omit this property if you want to cover the whole environment. */ readonly scope: pulumi.Output; /** * Create a EndpointDetectionRules 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: EndpointDetectionRulesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EndpointDetectionRules resources. */ export interface EndpointDetectionRulesState { /** * This setting is enabled (`true`) or disabled (`false`) */ enabled?: pulumi.Input; /** * Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched */ insertAfter?: pulumi.Input; /** * Rule */ rule?: pulumi.Input; /** * The scope of this setting (CLOUD*APPLICATION*NAMESPACE, KUBERNETES*CLUSTER, HOST*GROUP). Omit this property if you want to cover the whole environment. */ scope?: pulumi.Input; } /** * The set of arguments for constructing a EndpointDetectionRules resource. */ export interface EndpointDetectionRulesArgs { /** * This setting is enabled (`true`) or disabled (`false`) */ enabled: pulumi.Input; /** * Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched */ insertAfter?: pulumi.Input; /** * Rule */ rule: pulumi.Input; /** * The scope of this setting (CLOUD*APPLICATION*NAMESPACE, KUBERNETES*CLUSTER, HOST*GROUP). Omit this property if you want to cover the whole environment. */ scope?: pulumi.Input; }