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

dynatrace.LogSecurityContext

Explore with Pulumi AI

Create LogSecurityContext Resource

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

Constructor syntax

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

@overload
def LogSecurityContext(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       security_context_rule: Optional[LogSecurityContextSecurityContextRuleArgs] = None,
                       insert_after: Optional[str] = None)
func NewLogSecurityContext(ctx *Context, name string, args LogSecurityContextArgs, opts ...ResourceOption) (*LogSecurityContext, error)
public LogSecurityContext(string name, LogSecurityContextArgs args, CustomResourceOptions? opts = null)
public LogSecurityContext(String name, LogSecurityContextArgs args)
public LogSecurityContext(String name, LogSecurityContextArgs args, CustomResourceOptions options)
type: dynatrace:LogSecurityContext
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. LogSecurityContextArgs
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. LogSecurityContextArgs
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. LogSecurityContextArgs
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. LogSecurityContextArgs
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. LogSecurityContextArgs
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 logSecurityContextResource = new Dynatrace.LogSecurityContext("logSecurityContextResource", new()
{
    SecurityContextRule = new Dynatrace.Inputs.LogSecurityContextSecurityContextRuleArgs
    {
        Query = "string",
        RuleName = "string",
        ValueSource = "string",
        Value = "string",
        ValueSourceField = "string",
    },
    InsertAfter = "string",
});
Copy
example, err := dynatrace.NewLogSecurityContext(ctx, "logSecurityContextResource", &dynatrace.LogSecurityContextArgs{
	SecurityContextRule: &dynatrace.LogSecurityContextSecurityContextRuleArgs{
		Query:            pulumi.String("string"),
		RuleName:         pulumi.String("string"),
		ValueSource:      pulumi.String("string"),
		Value:            pulumi.String("string"),
		ValueSourceField: pulumi.String("string"),
	},
	InsertAfter: pulumi.String("string"),
})
Copy
var logSecurityContextResource = new LogSecurityContext("logSecurityContextResource", LogSecurityContextArgs.builder()
    .securityContextRule(LogSecurityContextSecurityContextRuleArgs.builder()
        .query("string")
        .ruleName("string")
        .valueSource("string")
        .value("string")
        .valueSourceField("string")
        .build())
    .insertAfter("string")
    .build());
Copy
log_security_context_resource = dynatrace.LogSecurityContext("logSecurityContextResource",
    security_context_rule={
        "query": "string",
        "rule_name": "string",
        "value_source": "string",
        "value": "string",
        "value_source_field": "string",
    },
    insert_after="string")
Copy
const logSecurityContextResource = new dynatrace.LogSecurityContext("logSecurityContextResource", {
    securityContextRule: {
        query: "string",
        ruleName: "string",
        valueSource: "string",
        value: "string",
        valueSourceField: "string",
    },
    insertAfter: "string",
});
Copy
type: dynatrace:LogSecurityContext
properties:
    insertAfter: string
    securityContextRule:
        query: string
        ruleName: string
        value: string
        valueSource: string
        valueSourceField: string
Copy

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

SecurityContextRule This property is required. Pulumiverse.Dynatrace.Inputs.LogSecurityContextSecurityContextRule
no documentation available
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
SecurityContextRule This property is required. LogSecurityContextSecurityContextRuleArgs
no documentation available
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
securityContextRule This property is required. LogSecurityContextSecurityContextRule
no documentation available
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
securityContextRule This property is required. LogSecurityContextSecurityContextRule
no documentation available
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
security_context_rule This property is required. LogSecurityContextSecurityContextRuleArgs
no documentation available
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
securityContextRule This property is required. Property Map
no documentation available
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

Outputs

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

Get an existing LogSecurityContext 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?: LogSecurityContextState, opts?: CustomResourceOptions): LogSecurityContext
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        insert_after: Optional[str] = None,
        security_context_rule: Optional[LogSecurityContextSecurityContextRuleArgs] = None) -> LogSecurityContext
func GetLogSecurityContext(ctx *Context, name string, id IDInput, state *LogSecurityContextState, opts ...ResourceOption) (*LogSecurityContext, error)
public static LogSecurityContext Get(string name, Input<string> id, LogSecurityContextState? state, CustomResourceOptions? opts = null)
public static LogSecurityContext get(String name, Output<String> id, LogSecurityContextState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:LogSecurityContext    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
SecurityContextRule Pulumiverse.Dynatrace.Inputs.LogSecurityContextSecurityContextRule
no documentation available
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
SecurityContextRule LogSecurityContextSecurityContextRuleArgs
no documentation available
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
securityContextRule LogSecurityContextSecurityContextRule
no documentation available
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
securityContextRule LogSecurityContextSecurityContextRule
no documentation available
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
security_context_rule LogSecurityContextSecurityContextRuleArgs
no documentation available
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
securityContextRule Property Map
no documentation available

Supporting Types

LogSecurityContextSecurityContextRule
, LogSecurityContextSecurityContextRuleArgs

Query This property is required. string
Matcher
RuleName This property is required. string
Rule name
ValueSource This property is required. string
Possible Values: FIELD, LITERAL
Value string
Literal value to be set
ValueSourceField string
Name of field used to copy value
Query This property is required. string
Matcher
RuleName This property is required. string
Rule name
ValueSource This property is required. string
Possible Values: FIELD, LITERAL
Value string
Literal value to be set
ValueSourceField string
Name of field used to copy value
query This property is required. String
Matcher
ruleName This property is required. String
Rule name
valueSource This property is required. String
Possible Values: FIELD, LITERAL
value String
Literal value to be set
valueSourceField String
Name of field used to copy value
query This property is required. string
Matcher
ruleName This property is required. string
Rule name
valueSource This property is required. string
Possible Values: FIELD, LITERAL
value string
Literal value to be set
valueSourceField string
Name of field used to copy value
query This property is required. str
Matcher
rule_name This property is required. str
Rule name
value_source This property is required. str
Possible Values: FIELD, LITERAL
value str
Literal value to be set
value_source_field str
Name of field used to copy value
query This property is required. String
Matcher
ruleName This property is required. String
Rule name
valueSource This property is required. String
Possible Values: FIELD, LITERAL
value String
Literal value to be set
valueSourceField String
Name of field used to copy value

Package Details

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