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

dynatrace.LogBuckets

Explore with Pulumi AI

Create LogBuckets Resource

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

Constructor syntax

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

@overload
def LogBuckets(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               bucket_name: Optional[str] = None,
               enabled: Optional[bool] = None,
               matcher: Optional[str] = None,
               rule_name: Optional[str] = None,
               insert_after: Optional[str] = None)
func NewLogBuckets(ctx *Context, name string, args LogBucketsArgs, opts ...ResourceOption) (*LogBuckets, error)
public LogBuckets(string name, LogBucketsArgs args, CustomResourceOptions? opts = null)
public LogBuckets(String name, LogBucketsArgs args)
public LogBuckets(String name, LogBucketsArgs args, CustomResourceOptions options)
type: dynatrace:LogBuckets
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. LogBucketsArgs
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. LogBucketsArgs
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. LogBucketsArgs
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. LogBucketsArgs
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. LogBucketsArgs
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 logBucketsResource = new Dynatrace.LogBuckets("logBucketsResource", new()
{
    BucketName = "string",
    Enabled = false,
    Matcher = "string",
    RuleName = "string",
    InsertAfter = "string",
});
Copy
example, err := dynatrace.NewLogBuckets(ctx, "logBucketsResource", &dynatrace.LogBucketsArgs{
	BucketName:  pulumi.String("string"),
	Enabled:     pulumi.Bool(false),
	Matcher:     pulumi.String("string"),
	RuleName:    pulumi.String("string"),
	InsertAfter: pulumi.String("string"),
})
Copy
var logBucketsResource = new LogBuckets("logBucketsResource", LogBucketsArgs.builder()
    .bucketName("string")
    .enabled(false)
    .matcher("string")
    .ruleName("string")
    .insertAfter("string")
    .build());
Copy
log_buckets_resource = dynatrace.LogBuckets("logBucketsResource",
    bucket_name="string",
    enabled=False,
    matcher="string",
    rule_name="string",
    insert_after="string")
Copy
const logBucketsResource = new dynatrace.LogBuckets("logBucketsResource", {
    bucketName: "string",
    enabled: false,
    matcher: "string",
    ruleName: "string",
    insertAfter: "string",
});
Copy
type: dynatrace:LogBuckets
properties:
    bucketName: string
    enabled: false
    insertAfter: string
    matcher: string
    ruleName: string
Copy

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

BucketName This property is required. string
A 'bucket' is the length of time your logs will be stored. Select the bucket that's best for you.
Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
Matcher This property is required. string
Matcher (DQL)
RuleName This property is required. string
Rule name
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
BucketName This property is required. string
A 'bucket' is the length of time your logs will be stored. Select the bucket that's best for you.
Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
Matcher This property is required. string
Matcher (DQL)
RuleName This property is required. string
Rule name
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
bucketName This property is required. String
A 'bucket' is the length of time your logs will be stored. Select the bucket that's best for you.
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
matcher This property is required. String
Matcher (DQL)
ruleName This property is required. String
Rule name
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
bucketName This property is required. string
A 'bucket' is the length of time your logs will be stored. Select the bucket that's best for you.
enabled This property is required. boolean
This setting is enabled (true) or disabled (false)
matcher This property is required. string
Matcher (DQL)
ruleName This property is required. string
Rule name
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
bucket_name This property is required. str
A 'bucket' is the length of time your logs will be stored. Select the bucket that's best for you.
enabled This property is required. bool
This setting is enabled (true) or disabled (false)
matcher This property is required. str
Matcher (DQL)
rule_name This property is required. str
Rule name
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
bucketName This property is required. String
A 'bucket' is the length of time your logs will be stored. Select the bucket that's best for you.
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
matcher This property is required. String
Matcher (DQL)
ruleName This property is required. String
Rule name
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 LogBuckets 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 LogBuckets Resource

Get an existing LogBuckets 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?: LogBucketsState, opts?: CustomResourceOptions): LogBuckets
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bucket_name: Optional[str] = None,
        enabled: Optional[bool] = None,
        insert_after: Optional[str] = None,
        matcher: Optional[str] = None,
        rule_name: Optional[str] = None) -> LogBuckets
func GetLogBuckets(ctx *Context, name string, id IDInput, state *LogBucketsState, opts ...ResourceOption) (*LogBuckets, error)
public static LogBuckets Get(string name, Input<string> id, LogBucketsState? state, CustomResourceOptions? opts = null)
public static LogBuckets get(String name, Output<String> id, LogBucketsState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:LogBuckets    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:
BucketName string
A 'bucket' is the length of time your logs will be stored. Select the bucket that's best for you.
Enabled bool
This setting is enabled (true) or disabled (false)
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
Matcher string
Matcher (DQL)
RuleName string
Rule name
BucketName string
A 'bucket' is the length of time your logs will be stored. Select the bucket that's best for you.
Enabled bool
This setting is enabled (true) or disabled (false)
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
Matcher string
Matcher (DQL)
RuleName string
Rule name
bucketName String
A 'bucket' is the length of time your logs will be stored. Select the bucket that's best for you.
enabled Boolean
This setting is enabled (true) or disabled (false)
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
matcher String
Matcher (DQL)
ruleName String
Rule name
bucketName string
A 'bucket' is the length of time your logs will be stored. Select the bucket that's best for you.
enabled boolean
This setting is enabled (true) or disabled (false)
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
matcher string
Matcher (DQL)
ruleName string
Rule name
bucket_name str
A 'bucket' is the length of time your logs will be stored. Select the bucket that's best for you.
enabled bool
This setting is enabled (true) or disabled (false)
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
matcher str
Matcher (DQL)
rule_name str
Rule name
bucketName String
A 'bucket' is the length of time your logs will be stored. Select the bucket that's best for you.
enabled Boolean
This setting is enabled (true) or disabled (false)
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
matcher String
Matcher (DQL)
ruleName String
Rule name

Package Details

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