1. Packages
  2. Dynatrace
  3. API Docs
  4. WebAppCustomErrors
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

dynatrace.WebAppCustomErrors

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

    Create WebAppCustomErrors Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new WebAppCustomErrors(name: string, args: WebAppCustomErrorsArgs, opts?: CustomResourceOptions);
    @overload
    def WebAppCustomErrors(resource_name: str,
                           args: WebAppCustomErrorsArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def WebAppCustomErrors(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           ignore_custom_errors_in_apdex_calculation: Optional[bool] = None,
                           scope: Optional[str] = None,
                           error_rules: Optional[WebAppCustomErrorsErrorRulesArgs] = None)
    func NewWebAppCustomErrors(ctx *Context, name string, args WebAppCustomErrorsArgs, opts ...ResourceOption) (*WebAppCustomErrors, error)
    public WebAppCustomErrors(string name, WebAppCustomErrorsArgs args, CustomResourceOptions? opts = null)
    public WebAppCustomErrors(String name, WebAppCustomErrorsArgs args)
    public WebAppCustomErrors(String name, WebAppCustomErrorsArgs args, CustomResourceOptions options)
    
    type: dynatrace:WebAppCustomErrors
    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 WebAppCustomErrorsArgs
    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 WebAppCustomErrorsArgs
    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 WebAppCustomErrorsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WebAppCustomErrorsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WebAppCustomErrorsArgs
    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 webAppCustomErrorsResource = new Dynatrace.WebAppCustomErrors("webAppCustomErrorsResource", new()
    {
        IgnoreCustomErrorsInApdexCalculation = false,
        Scope = "string",
        ErrorRules = new Dynatrace.Inputs.WebAppCustomErrorsErrorRulesArgs
        {
            ErrorRules = new[]
            {
                new Dynatrace.Inputs.WebAppCustomErrorsErrorRulesErrorRuleArgs
                {
                    CaptureSettings = new Dynatrace.Inputs.WebAppCustomErrorsErrorRulesErrorRuleCaptureSettingsArgs
                    {
                        Capture = false,
                        ConsiderForAi = false,
                        ImpactApdex = false,
                    },
                    KeyMatcher = "string",
                    ValueMatcher = "string",
                    KeyPattern = "string",
                    ValuePattern = "string",
                },
            },
        },
    });
    
    example, err := dynatrace.NewWebAppCustomErrors(ctx, "webAppCustomErrorsResource", &dynatrace.WebAppCustomErrorsArgs{
    	IgnoreCustomErrorsInApdexCalculation: pulumi.Bool(false),
    	Scope:                                pulumi.String("string"),
    	ErrorRules: &dynatrace.WebAppCustomErrorsErrorRulesArgs{
    		ErrorRules: dynatrace.WebAppCustomErrorsErrorRulesErrorRuleArray{
    			&dynatrace.WebAppCustomErrorsErrorRulesErrorRuleArgs{
    				CaptureSettings: &dynatrace.WebAppCustomErrorsErrorRulesErrorRuleCaptureSettingsArgs{
    					Capture:       pulumi.Bool(false),
    					ConsiderForAi: pulumi.Bool(false),
    					ImpactApdex:   pulumi.Bool(false),
    				},
    				KeyMatcher:   pulumi.String("string"),
    				ValueMatcher: pulumi.String("string"),
    				KeyPattern:   pulumi.String("string"),
    				ValuePattern: pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var webAppCustomErrorsResource = new WebAppCustomErrors("webAppCustomErrorsResource", WebAppCustomErrorsArgs.builder()
        .ignoreCustomErrorsInApdexCalculation(false)
        .scope("string")
        .errorRules(WebAppCustomErrorsErrorRulesArgs.builder()
            .errorRules(WebAppCustomErrorsErrorRulesErrorRuleArgs.builder()
                .captureSettings(WebAppCustomErrorsErrorRulesErrorRuleCaptureSettingsArgs.builder()
                    .capture(false)
                    .considerForAi(false)
                    .impactApdex(false)
                    .build())
                .keyMatcher("string")
                .valueMatcher("string")
                .keyPattern("string")
                .valuePattern("string")
                .build())
            .build())
        .build());
    
    web_app_custom_errors_resource = dynatrace.WebAppCustomErrors("webAppCustomErrorsResource",
        ignore_custom_errors_in_apdex_calculation=False,
        scope="string",
        error_rules=dynatrace.WebAppCustomErrorsErrorRulesArgs(
            error_rules=[dynatrace.WebAppCustomErrorsErrorRulesErrorRuleArgs(
                capture_settings=dynatrace.WebAppCustomErrorsErrorRulesErrorRuleCaptureSettingsArgs(
                    capture=False,
                    consider_for_ai=False,
                    impact_apdex=False,
                ),
                key_matcher="string",
                value_matcher="string",
                key_pattern="string",
                value_pattern="string",
            )],
        ))
    
    const webAppCustomErrorsResource = new dynatrace.WebAppCustomErrors("webAppCustomErrorsResource", {
        ignoreCustomErrorsInApdexCalculation: false,
        scope: "string",
        errorRules: {
            errorRules: [{
                captureSettings: {
                    capture: false,
                    considerForAi: false,
                    impactApdex: false,
                },
                keyMatcher: "string",
                valueMatcher: "string",
                keyPattern: "string",
                valuePattern: "string",
            }],
        },
    });
    
    type: dynatrace:WebAppCustomErrors
    properties:
        errorRules:
            errorRules:
                - captureSettings:
                    capture: false
                    considerForAi: false
                    impactApdex: false
                  keyMatcher: string
                  keyPattern: string
                  valueMatcher: string
                  valuePattern: string
        ignoreCustomErrorsInApdexCalculation: false
        scope: string
    

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

    IgnoreCustomErrorsInApdexCalculation bool
    (Field has overlap with dynatrace.ApplicationErrorRules) This setting overrides Apdex settings for individual rules listed below
    Scope string
    The scope of this setting (APPLICATION)
    ErrorRules Pulumiverse.Dynatrace.Inputs.WebAppCustomErrorsErrorRules
    (Field has overlap with dynatrace.ApplicationErrorRules)
    IgnoreCustomErrorsInApdexCalculation bool
    (Field has overlap with dynatrace.ApplicationErrorRules) This setting overrides Apdex settings for individual rules listed below
    Scope string
    The scope of this setting (APPLICATION)
    ErrorRules WebAppCustomErrorsErrorRulesArgs
    (Field has overlap with dynatrace.ApplicationErrorRules)
    ignoreCustomErrorsInApdexCalculation Boolean
    (Field has overlap with dynatrace.ApplicationErrorRules) This setting overrides Apdex settings for individual rules listed below
    scope String
    The scope of this setting (APPLICATION)
    errorRules WebAppCustomErrorsErrorRules
    (Field has overlap with dynatrace.ApplicationErrorRules)
    ignoreCustomErrorsInApdexCalculation boolean
    (Field has overlap with dynatrace.ApplicationErrorRules) This setting overrides Apdex settings for individual rules listed below
    scope string
    The scope of this setting (APPLICATION)
    errorRules WebAppCustomErrorsErrorRules
    (Field has overlap with dynatrace.ApplicationErrorRules)
    ignore_custom_errors_in_apdex_calculation bool
    (Field has overlap with dynatrace.ApplicationErrorRules) This setting overrides Apdex settings for individual rules listed below
    scope str
    The scope of this setting (APPLICATION)
    error_rules WebAppCustomErrorsErrorRulesArgs
    (Field has overlap with dynatrace.ApplicationErrorRules)
    ignoreCustomErrorsInApdexCalculation Boolean
    (Field has overlap with dynatrace.ApplicationErrorRules) This setting overrides Apdex settings for individual rules listed below
    scope String
    The scope of this setting (APPLICATION)
    errorRules Property Map
    (Field has overlap with dynatrace.ApplicationErrorRules)

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing WebAppCustomErrors Resource

    Get an existing WebAppCustomErrors 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?: WebAppCustomErrorsState, opts?: CustomResourceOptions): WebAppCustomErrors
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            error_rules: Optional[WebAppCustomErrorsErrorRulesArgs] = None,
            ignore_custom_errors_in_apdex_calculation: Optional[bool] = None,
            scope: Optional[str] = None) -> WebAppCustomErrors
    func GetWebAppCustomErrors(ctx *Context, name string, id IDInput, state *WebAppCustomErrorsState, opts ...ResourceOption) (*WebAppCustomErrors, error)
    public static WebAppCustomErrors Get(string name, Input<string> id, WebAppCustomErrorsState? state, CustomResourceOptions? opts = null)
    public static WebAppCustomErrors get(String name, Output<String> id, WebAppCustomErrorsState 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:
    ErrorRules Pulumiverse.Dynatrace.Inputs.WebAppCustomErrorsErrorRules
    (Field has overlap with dynatrace.ApplicationErrorRules)
    IgnoreCustomErrorsInApdexCalculation bool
    (Field has overlap with dynatrace.ApplicationErrorRules) This setting overrides Apdex settings for individual rules listed below
    Scope string
    The scope of this setting (APPLICATION)
    ErrorRules WebAppCustomErrorsErrorRulesArgs
    (Field has overlap with dynatrace.ApplicationErrorRules)
    IgnoreCustomErrorsInApdexCalculation bool
    (Field has overlap with dynatrace.ApplicationErrorRules) This setting overrides Apdex settings for individual rules listed below
    Scope string
    The scope of this setting (APPLICATION)
    errorRules WebAppCustomErrorsErrorRules
    (Field has overlap with dynatrace.ApplicationErrorRules)
    ignoreCustomErrorsInApdexCalculation Boolean
    (Field has overlap with dynatrace.ApplicationErrorRules) This setting overrides Apdex settings for individual rules listed below
    scope String
    The scope of this setting (APPLICATION)
    errorRules WebAppCustomErrorsErrorRules
    (Field has overlap with dynatrace.ApplicationErrorRules)
    ignoreCustomErrorsInApdexCalculation boolean
    (Field has overlap with dynatrace.ApplicationErrorRules) This setting overrides Apdex settings for individual rules listed below
    scope string
    The scope of this setting (APPLICATION)
    error_rules WebAppCustomErrorsErrorRulesArgs
    (Field has overlap with dynatrace.ApplicationErrorRules)
    ignore_custom_errors_in_apdex_calculation bool
    (Field has overlap with dynatrace.ApplicationErrorRules) This setting overrides Apdex settings for individual rules listed below
    scope str
    The scope of this setting (APPLICATION)
    errorRules Property Map
    (Field has overlap with dynatrace.ApplicationErrorRules)
    ignoreCustomErrorsInApdexCalculation Boolean
    (Field has overlap with dynatrace.ApplicationErrorRules) This setting overrides Apdex settings for individual rules listed below
    scope String
    The scope of this setting (APPLICATION)

    Supporting Types

    WebAppCustomErrorsErrorRules, WebAppCustomErrorsErrorRulesArgs

    WebAppCustomErrorsErrorRulesErrorRule, WebAppCustomErrorsErrorRulesErrorRuleArgs

    CaptureSettings Pulumiverse.Dynatrace.Inputs.WebAppCustomErrorsErrorRulesErrorRuleCaptureSettings
    Capture settings
    KeyMatcher string
    Possible Values: ALL, BEGINS_WITH, CONTAINS, ENDS_WITH, EQUALS
    ValueMatcher string
    Possible Values: ALL, BEGINS_WITH, CONTAINS, ENDS_WITH, EQUALS
    KeyPattern string
    A case-insensitive key pattern
    ValuePattern string
    A case-insensitive value pattern
    CaptureSettings WebAppCustomErrorsErrorRulesErrorRuleCaptureSettings
    Capture settings
    KeyMatcher string
    Possible Values: ALL, BEGINS_WITH, CONTAINS, ENDS_WITH, EQUALS
    ValueMatcher string
    Possible Values: ALL, BEGINS_WITH, CONTAINS, ENDS_WITH, EQUALS
    KeyPattern string
    A case-insensitive key pattern
    ValuePattern string
    A case-insensitive value pattern
    captureSettings WebAppCustomErrorsErrorRulesErrorRuleCaptureSettings
    Capture settings
    keyMatcher String
    Possible Values: ALL, BEGINS_WITH, CONTAINS, ENDS_WITH, EQUALS
    valueMatcher String
    Possible Values: ALL, BEGINS_WITH, CONTAINS, ENDS_WITH, EQUALS
    keyPattern String
    A case-insensitive key pattern
    valuePattern String
    A case-insensitive value pattern
    captureSettings WebAppCustomErrorsErrorRulesErrorRuleCaptureSettings
    Capture settings
    keyMatcher string
    Possible Values: ALL, BEGINS_WITH, CONTAINS, ENDS_WITH, EQUALS
    valueMatcher string
    Possible Values: ALL, BEGINS_WITH, CONTAINS, ENDS_WITH, EQUALS
    keyPattern string
    A case-insensitive key pattern
    valuePattern string
    A case-insensitive value pattern
    capture_settings WebAppCustomErrorsErrorRulesErrorRuleCaptureSettings
    Capture settings
    key_matcher str
    Possible Values: ALL, BEGINS_WITH, CONTAINS, ENDS_WITH, EQUALS
    value_matcher str
    Possible Values: ALL, BEGINS_WITH, CONTAINS, ENDS_WITH, EQUALS
    key_pattern str
    A case-insensitive key pattern
    value_pattern str
    A case-insensitive value pattern
    captureSettings Property Map
    Capture settings
    keyMatcher String
    Possible Values: ALL, BEGINS_WITH, CONTAINS, ENDS_WITH, EQUALS
    valueMatcher String
    Possible Values: ALL, BEGINS_WITH, CONTAINS, ENDS_WITH, EQUALS
    keyPattern String
    A case-insensitive key pattern
    valuePattern String
    A case-insensitive value pattern

    WebAppCustomErrorsErrorRulesErrorRuleCaptureSettings, WebAppCustomErrorsErrorRulesErrorRuleCaptureSettingsArgs

    Capture bool
    Capture this error
    ConsiderForAi bool
    View more details
    ImpactApdex bool
    Include error in Apdex calculations
    Capture bool
    Capture this error
    ConsiderForAi bool
    View more details
    ImpactApdex bool
    Include error in Apdex calculations
    capture Boolean
    Capture this error
    considerForAi Boolean
    View more details
    impactApdex Boolean
    Include error in Apdex calculations
    capture boolean
    Capture this error
    considerForAi boolean
    View more details
    impactApdex boolean
    Include error in Apdex calculations
    capture bool
    Capture this error
    consider_for_ai bool
    View more details
    impact_apdex bool
    Include error in Apdex calculations
    capture Boolean
    Capture this error
    considerForAi Boolean
    View more details
    impactApdex Boolean
    Include error in Apdex calculations

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse