1. Packages
  2. Dynatrace
  3. API Docs
  4. WebAppResourceCleanup
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.WebAppResourceCleanup

Explore with Pulumi AI

Create WebAppResourceCleanup Resource

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

Constructor syntax

new WebAppResourceCleanup(name: string, args: WebAppResourceCleanupArgs, opts?: CustomResourceOptions);
@overload
def WebAppResourceCleanup(resource_name: str,
                          args: WebAppResourceCleanupArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def WebAppResourceCleanup(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          regular_expression: Optional[str] = None,
                          replace_with: Optional[str] = None,
                          insert_after: Optional[str] = None,
                          name: Optional[str] = None)
func NewWebAppResourceCleanup(ctx *Context, name string, args WebAppResourceCleanupArgs, opts ...ResourceOption) (*WebAppResourceCleanup, error)
public WebAppResourceCleanup(string name, WebAppResourceCleanupArgs args, CustomResourceOptions? opts = null)
public WebAppResourceCleanup(String name, WebAppResourceCleanupArgs args)
public WebAppResourceCleanup(String name, WebAppResourceCleanupArgs args, CustomResourceOptions options)
type: dynatrace:WebAppResourceCleanup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WebAppResourceCleanupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WebAppResourceCleanupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WebAppResourceCleanupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WebAppResourceCleanupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WebAppResourceCleanupArgs
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 webAppResourceCleanupResource = new Dynatrace.WebAppResourceCleanup("webAppResourceCleanupResource", new()
{
    RegularExpression = "string",
    ReplaceWith = "string",
    InsertAfter = "string",
    Name = "string",
});
Copy
example, err := dynatrace.NewWebAppResourceCleanup(ctx, "webAppResourceCleanupResource", &dynatrace.WebAppResourceCleanupArgs{
	RegularExpression: pulumi.String("string"),
	ReplaceWith:       pulumi.String("string"),
	InsertAfter:       pulumi.String("string"),
	Name:              pulumi.String("string"),
})
Copy
var webAppResourceCleanupResource = new WebAppResourceCleanup("webAppResourceCleanupResource", WebAppResourceCleanupArgs.builder()
    .regularExpression("string")
    .replaceWith("string")
    .insertAfter("string")
    .name("string")
    .build());
Copy
web_app_resource_cleanup_resource = dynatrace.WebAppResourceCleanup("webAppResourceCleanupResource",
    regular_expression="string",
    replace_with="string",
    insert_after="string",
    name="string")
Copy
const webAppResourceCleanupResource = new dynatrace.WebAppResourceCleanup("webAppResourceCleanupResource", {
    regularExpression: "string",
    replaceWith: "string",
    insertAfter: "string",
    name: "string",
});
Copy
type: dynatrace:WebAppResourceCleanup
properties:
    insertAfter: string
    name: string
    regularExpression: string
    replaceWith: string
Copy

WebAppResourceCleanup Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The WebAppResourceCleanup resource accepts the following input properties:

RegularExpression This property is required. string
For example: (.*)(journeyId=)-?\d+(.*)
ReplaceWith This property is required. string
For example: $1$2\*$3
InsertAfter string
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
Name string
For example: Mask journeyId
RegularExpression This property is required. string
For example: (.*)(journeyId=)-?\d+(.*)
ReplaceWith This property is required. string
For example: $1$2\*$3
InsertAfter string
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
Name string
For example: Mask journeyId
regularExpression This property is required. String
For example: (.*)(journeyId=)-?\d+(.*)
replaceWith This property is required. String
For example: $1$2\*$3
insertAfter String
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
name String
For example: Mask journeyId
regularExpression This property is required. string
For example: (.*)(journeyId=)-?\d+(.*)
replaceWith This property is required. string
For example: $1$2\*$3
insertAfter string
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
name string
For example: Mask journeyId
regular_expression This property is required. str
For example: (.*)(journeyId=)-?\d+(.*)
replace_with This property is required. str
For example: $1$2\*$3
insert_after str
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
name str
For example: Mask journeyId
regularExpression This property is required. String
For example: (.*)(journeyId=)-?\d+(.*)
replaceWith This property is required. String
For example: $1$2\*$3
insertAfter String
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
name String
For example: Mask journeyId

Outputs

All input properties are implicitly available as output properties. Additionally, the WebAppResourceCleanup 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 WebAppResourceCleanup Resource

Get an existing WebAppResourceCleanup 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?: WebAppResourceCleanupState, opts?: CustomResourceOptions): WebAppResourceCleanup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        insert_after: Optional[str] = None,
        name: Optional[str] = None,
        regular_expression: Optional[str] = None,
        replace_with: Optional[str] = None) -> WebAppResourceCleanup
func GetWebAppResourceCleanup(ctx *Context, name string, id IDInput, state *WebAppResourceCleanupState, opts ...ResourceOption) (*WebAppResourceCleanup, error)
public static WebAppResourceCleanup Get(string name, Input<string> id, WebAppResourceCleanupState? state, CustomResourceOptions? opts = null)
public static WebAppResourceCleanup get(String name, Output<String> id, WebAppResourceCleanupState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:WebAppResourceCleanup    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
InsertAfter string
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
Name string
For example: Mask journeyId
RegularExpression string
For example: (.*)(journeyId=)-?\d+(.*)
ReplaceWith string
For example: $1$2\*$3
InsertAfter string
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
Name string
For example: Mask journeyId
RegularExpression string
For example: (.*)(journeyId=)-?\d+(.*)
ReplaceWith string
For example: $1$2\*$3
insertAfter String
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
name String
For example: Mask journeyId
regularExpression String
For example: (.*)(journeyId=)-?\d+(.*)
replaceWith String
For example: $1$2\*$3
insertAfter string
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
name string
For example: Mask journeyId
regularExpression string
For example: (.*)(journeyId=)-?\d+(.*)
replaceWith string
For example: $1$2\*$3
insert_after str
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
name str
For example: Mask journeyId
regular_expression str
For example: (.*)(journeyId=)-?\d+(.*)
replace_with str
For example: $1$2\*$3
insertAfter String
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
name String
For example: Mask journeyId
regularExpression String
For example: (.*)(journeyId=)-?\d+(.*)
replaceWith String
For example: $1$2\*$3

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.