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

dynatrace.AuditLog

Explore with Pulumi AI

Create AuditLog Resource

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

Constructor syntax

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

@overload
def AuditLog(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             enabled: Optional[bool] = None)
func NewAuditLog(ctx *Context, name string, args AuditLogArgs, opts ...ResourceOption) (*AuditLog, error)
public AuditLog(string name, AuditLogArgs args, CustomResourceOptions? opts = null)
public AuditLog(String name, AuditLogArgs args)
public AuditLog(String name, AuditLogArgs args, CustomResourceOptions options)
type: dynatrace:AuditLog
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. AuditLogArgs
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. AuditLogArgs
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. AuditLogArgs
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. AuditLogArgs
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. AuditLogArgs
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 auditLogResource = new Dynatrace.AuditLog("auditLogResource", new()
{
    Enabled = false,
});
Copy
example, err := dynatrace.NewAuditLog(ctx, "auditLogResource", &dynatrace.AuditLogArgs{
	Enabled: pulumi.Bool(false),
})
Copy
var auditLogResource = new AuditLog("auditLogResource", AuditLogArgs.builder()
    .enabled(false)
    .build());
Copy
audit_log_resource = dynatrace.AuditLog("auditLogResource", enabled=False)
Copy
const auditLogResource = new dynatrace.AuditLog("auditLogResource", {enabled: false});
Copy
type: dynatrace:AuditLog
properties:
    enabled: false
Copy

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

Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
enabled This property is required. boolean
This setting is enabled (true) or disabled (false)
enabled This property is required. bool
This setting is enabled (true) or disabled (false)
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)

Outputs

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

Get an existing AuditLog 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?: AuditLogState, opts?: CustomResourceOptions): AuditLog
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enabled: Optional[bool] = None) -> AuditLog
func GetAuditLog(ctx *Context, name string, id IDInput, state *AuditLogState, opts ...ResourceOption) (*AuditLog, error)
public static AuditLog Get(string name, Input<string> id, AuditLogState? state, CustomResourceOptions? opts = null)
public static AuditLog get(String name, Output<String> id, AuditLogState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:AuditLog    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:
Enabled bool
This setting is enabled (true) or disabled (false)
Enabled bool
This setting is enabled (true) or disabled (false)
enabled Boolean
This setting is enabled (true) or disabled (false)
enabled boolean
This setting is enabled (true) or disabled (false)
enabled bool
This setting is enabled (true) or disabled (false)
enabled Boolean
This setting is enabled (true) or disabled (false)

Package Details

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