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

dynatrace.WebAppInjectionCookie

Explore with Pulumi AI

Create WebAppInjectionCookie Resource

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

Constructor syntax

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

@overload
def WebAppInjectionCookie(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          application_id: Optional[str] = None,
                          same_site_cookie_attribute: Optional[str] = None,
                          use_secure_cookie_attribute: Optional[bool] = None,
                          cookie_placement_domain: Optional[str] = None)
func NewWebAppInjectionCookie(ctx *Context, name string, args WebAppInjectionCookieArgs, opts ...ResourceOption) (*WebAppInjectionCookie, error)
public WebAppInjectionCookie(string name, WebAppInjectionCookieArgs args, CustomResourceOptions? opts = null)
public WebAppInjectionCookie(String name, WebAppInjectionCookieArgs args)
public WebAppInjectionCookie(String name, WebAppInjectionCookieArgs args, CustomResourceOptions options)
type: dynatrace:WebAppInjectionCookie
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. WebAppInjectionCookieArgs
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. WebAppInjectionCookieArgs
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. WebAppInjectionCookieArgs
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. WebAppInjectionCookieArgs
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. WebAppInjectionCookieArgs
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 webAppInjectionCookieResource = new Dynatrace.WebAppInjectionCookie("webAppInjectionCookieResource", new()
{
    ApplicationId = "string",
    SameSiteCookieAttribute = "string",
    UseSecureCookieAttribute = false,
    CookiePlacementDomain = "string",
});
Copy
example, err := dynatrace.NewWebAppInjectionCookie(ctx, "webAppInjectionCookieResource", &dynatrace.WebAppInjectionCookieArgs{
	ApplicationId:            pulumi.String("string"),
	SameSiteCookieAttribute:  pulumi.String("string"),
	UseSecureCookieAttribute: pulumi.Bool(false),
	CookiePlacementDomain:    pulumi.String("string"),
})
Copy
var webAppInjectionCookieResource = new WebAppInjectionCookie("webAppInjectionCookieResource", WebAppInjectionCookieArgs.builder()
    .applicationId("string")
    .sameSiteCookieAttribute("string")
    .useSecureCookieAttribute(false)
    .cookiePlacementDomain("string")
    .build());
Copy
web_app_injection_cookie_resource = dynatrace.WebAppInjectionCookie("webAppInjectionCookieResource",
    application_id="string",
    same_site_cookie_attribute="string",
    use_secure_cookie_attribute=False,
    cookie_placement_domain="string")
Copy
const webAppInjectionCookieResource = new dynatrace.WebAppInjectionCookie("webAppInjectionCookieResource", {
    applicationId: "string",
    sameSiteCookieAttribute: "string",
    useSecureCookieAttribute: false,
    cookiePlacementDomain: "string",
});
Copy
type: dynatrace:WebAppInjectionCookie
properties:
    applicationId: string
    cookiePlacementDomain: string
    sameSiteCookieAttribute: string
    useSecureCookieAttribute: false
Copy

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

ApplicationId This property is required. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
SameSiteCookieAttribute This property is required. string
Possible Values: LAX, NONE, NOTSET, STRICT
UseSecureCookieAttribute This property is required. bool
If your application is only accessible via SSL, you can add the Secure attribute to all cookies set by Dynatrace. This setting prevents the display of warnings from PCI-compliance security scanners. Be aware that with this setting enabled Dynatrace correlation of user actions with server-side web requests is only possible over SSL connections.
CookiePlacementDomain string
Specify an alternative domain for cookies set by Dynatrace. Keep in mind that your browser may not allow placement of cookies on certain domains (for example, top-level domains). Before typing a domain name here, confirm that the domain will accept cookies from your browser. For details, see the list of forbidden top-level domains.
ApplicationId This property is required. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
SameSiteCookieAttribute This property is required. string
Possible Values: LAX, NONE, NOTSET, STRICT
UseSecureCookieAttribute This property is required. bool
If your application is only accessible via SSL, you can add the Secure attribute to all cookies set by Dynatrace. This setting prevents the display of warnings from PCI-compliance security scanners. Be aware that with this setting enabled Dynatrace correlation of user actions with server-side web requests is only possible over SSL connections.
CookiePlacementDomain string
Specify an alternative domain for cookies set by Dynatrace. Keep in mind that your browser may not allow placement of cookies on certain domains (for example, top-level domains). Before typing a domain name here, confirm that the domain will accept cookies from your browser. For details, see the list of forbidden top-level domains.
applicationId This property is required. String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
sameSiteCookieAttribute This property is required. String
Possible Values: LAX, NONE, NOTSET, STRICT
useSecureCookieAttribute This property is required. Boolean
If your application is only accessible via SSL, you can add the Secure attribute to all cookies set by Dynatrace. This setting prevents the display of warnings from PCI-compliance security scanners. Be aware that with this setting enabled Dynatrace correlation of user actions with server-side web requests is only possible over SSL connections.
cookiePlacementDomain String
Specify an alternative domain for cookies set by Dynatrace. Keep in mind that your browser may not allow placement of cookies on certain domains (for example, top-level domains). Before typing a domain name here, confirm that the domain will accept cookies from your browser. For details, see the list of forbidden top-level domains.
applicationId This property is required. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
sameSiteCookieAttribute This property is required. string
Possible Values: LAX, NONE, NOTSET, STRICT
useSecureCookieAttribute This property is required. boolean
If your application is only accessible via SSL, you can add the Secure attribute to all cookies set by Dynatrace. This setting prevents the display of warnings from PCI-compliance security scanners. Be aware that with this setting enabled Dynatrace correlation of user actions with server-side web requests is only possible over SSL connections.
cookiePlacementDomain string
Specify an alternative domain for cookies set by Dynatrace. Keep in mind that your browser may not allow placement of cookies on certain domains (for example, top-level domains). Before typing a domain name here, confirm that the domain will accept cookies from your browser. For details, see the list of forbidden top-level domains.
application_id This property is required. str
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
same_site_cookie_attribute This property is required. str
Possible Values: LAX, NONE, NOTSET, STRICT
use_secure_cookie_attribute This property is required. bool
If your application is only accessible via SSL, you can add the Secure attribute to all cookies set by Dynatrace. This setting prevents the display of warnings from PCI-compliance security scanners. Be aware that with this setting enabled Dynatrace correlation of user actions with server-side web requests is only possible over SSL connections.
cookie_placement_domain str
Specify an alternative domain for cookies set by Dynatrace. Keep in mind that your browser may not allow placement of cookies on certain domains (for example, top-level domains). Before typing a domain name here, confirm that the domain will accept cookies from your browser. For details, see the list of forbidden top-level domains.
applicationId This property is required. String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
sameSiteCookieAttribute This property is required. String
Possible Values: LAX, NONE, NOTSET, STRICT
useSecureCookieAttribute This property is required. Boolean
If your application is only accessible via SSL, you can add the Secure attribute to all cookies set by Dynatrace. This setting prevents the display of warnings from PCI-compliance security scanners. Be aware that with this setting enabled Dynatrace correlation of user actions with server-side web requests is only possible over SSL connections.
cookiePlacementDomain String
Specify an alternative domain for cookies set by Dynatrace. Keep in mind that your browser may not allow placement of cookies on certain domains (for example, top-level domains). Before typing a domain name here, confirm that the domain will accept cookies from your browser. For details, see the list of forbidden top-level domains.

Outputs

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

Get an existing WebAppInjectionCookie 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?: WebAppInjectionCookieState, opts?: CustomResourceOptions): WebAppInjectionCookie
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        application_id: Optional[str] = None,
        cookie_placement_domain: Optional[str] = None,
        same_site_cookie_attribute: Optional[str] = None,
        use_secure_cookie_attribute: Optional[bool] = None) -> WebAppInjectionCookie
func GetWebAppInjectionCookie(ctx *Context, name string, id IDInput, state *WebAppInjectionCookieState, opts ...ResourceOption) (*WebAppInjectionCookie, error)
public static WebAppInjectionCookie Get(string name, Input<string> id, WebAppInjectionCookieState? state, CustomResourceOptions? opts = null)
public static WebAppInjectionCookie get(String name, Output<String> id, WebAppInjectionCookieState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:WebAppInjectionCookie    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:
ApplicationId string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
CookiePlacementDomain string
Specify an alternative domain for cookies set by Dynatrace. Keep in mind that your browser may not allow placement of cookies on certain domains (for example, top-level domains). Before typing a domain name here, confirm that the domain will accept cookies from your browser. For details, see the list of forbidden top-level domains.
SameSiteCookieAttribute string
Possible Values: LAX, NONE, NOTSET, STRICT
UseSecureCookieAttribute bool
If your application is only accessible via SSL, you can add the Secure attribute to all cookies set by Dynatrace. This setting prevents the display of warnings from PCI-compliance security scanners. Be aware that with this setting enabled Dynatrace correlation of user actions with server-side web requests is only possible over SSL connections.
ApplicationId string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
CookiePlacementDomain string
Specify an alternative domain for cookies set by Dynatrace. Keep in mind that your browser may not allow placement of cookies on certain domains (for example, top-level domains). Before typing a domain name here, confirm that the domain will accept cookies from your browser. For details, see the list of forbidden top-level domains.
SameSiteCookieAttribute string
Possible Values: LAX, NONE, NOTSET, STRICT
UseSecureCookieAttribute bool
If your application is only accessible via SSL, you can add the Secure attribute to all cookies set by Dynatrace. This setting prevents the display of warnings from PCI-compliance security scanners. Be aware that with this setting enabled Dynatrace correlation of user actions with server-side web requests is only possible over SSL connections.
applicationId String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
cookiePlacementDomain String
Specify an alternative domain for cookies set by Dynatrace. Keep in mind that your browser may not allow placement of cookies on certain domains (for example, top-level domains). Before typing a domain name here, confirm that the domain will accept cookies from your browser. For details, see the list of forbidden top-level domains.
sameSiteCookieAttribute String
Possible Values: LAX, NONE, NOTSET, STRICT
useSecureCookieAttribute Boolean
If your application is only accessible via SSL, you can add the Secure attribute to all cookies set by Dynatrace. This setting prevents the display of warnings from PCI-compliance security scanners. Be aware that with this setting enabled Dynatrace correlation of user actions with server-side web requests is only possible over SSL connections.
applicationId string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
cookiePlacementDomain string
Specify an alternative domain for cookies set by Dynatrace. Keep in mind that your browser may not allow placement of cookies on certain domains (for example, top-level domains). Before typing a domain name here, confirm that the domain will accept cookies from your browser. For details, see the list of forbidden top-level domains.
sameSiteCookieAttribute string
Possible Values: LAX, NONE, NOTSET, STRICT
useSecureCookieAttribute boolean
If your application is only accessible via SSL, you can add the Secure attribute to all cookies set by Dynatrace. This setting prevents the display of warnings from PCI-compliance security scanners. Be aware that with this setting enabled Dynatrace correlation of user actions with server-side web requests is only possible over SSL connections.
application_id str
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
cookie_placement_domain str
Specify an alternative domain for cookies set by Dynatrace. Keep in mind that your browser may not allow placement of cookies on certain domains (for example, top-level domains). Before typing a domain name here, confirm that the domain will accept cookies from your browser. For details, see the list of forbidden top-level domains.
same_site_cookie_attribute str
Possible Values: LAX, NONE, NOTSET, STRICT
use_secure_cookie_attribute bool
If your application is only accessible via SSL, you can add the Secure attribute to all cookies set by Dynatrace. This setting prevents the display of warnings from PCI-compliance security scanners. Be aware that with this setting enabled Dynatrace correlation of user actions with server-side web requests is only possible over SSL connections.
applicationId String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
cookiePlacementDomain String
Specify an alternative domain for cookies set by Dynatrace. Keep in mind that your browser may not allow placement of cookies on certain domains (for example, top-level domains). Before typing a domain name here, confirm that the domain will accept cookies from your browser. For details, see the list of forbidden top-level domains.
sameSiteCookieAttribute String
Possible Values: LAX, NONE, NOTSET, STRICT
useSecureCookieAttribute Boolean
If your application is only accessible via SSL, you can add the Secure attribute to all cookies set by Dynatrace. This setting prevents the display of warnings from PCI-compliance security scanners. Be aware that with this setting enabled Dynatrace correlation of user actions with server-side web requests is only possible over SSL connections.

Package Details

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