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 string
- The unique name of the resource.
- args LogBucketsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args LogBucketsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogBucketsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var logBucketsResource = new LogBuckets("logBucketsResource", LogBucketsArgs.builder()
.bucketName("string")
.enabled(false)
.matcher("string")
.ruleName("string")
.insertAfter("string")
.build());
log_buckets_resource = dynatrace.LogBuckets("logBucketsResource",
bucket_name="string",
enabled=False,
matcher="string",
rule_name="string",
insert_after="string")
const logBucketsResource = new dynatrace.LogBuckets("logBucketsResource", {
bucketName: "string",
enabled: false,
matcher: "string",
ruleName: "string",
insertAfter: "string",
});
type: dynatrace:LogBuckets
properties:
bucketName: string
enabled: false
insertAfter: string
matcher: string
ruleName: string
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:
- Bucket
Name 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
) - Matcher string
- Matcher (DQL)
- Rule
Name string - Rule name
- Insert
After 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 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
) - Matcher string
- Matcher (DQL)
- Rule
Name string - Rule name
- Insert
After 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 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
) - matcher String
- Matcher (DQL)
- rule
Name String - Rule name
- insert
After 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 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
) - matcher string
- Matcher (DQL)
- rule
Name string - Rule name
- insert
After 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 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
) - matcher str
- Matcher (DQL)
- rule_
name 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
- bucket
Name 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
) - matcher String
- Matcher (DQL)
- rule
Name String - Rule name
- insert
After 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Bucket
Name 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
) - Insert
After 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)
- Rule
Name string - Rule name
- Bucket
Name 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
) - Insert
After 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)
- Rule
Name string - Rule name
- bucket
Name 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
) - insert
After 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)
- rule
Name String - Rule name
- bucket
Name 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
) - insert
After 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)
- rule
Name 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
- bucket
Name 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
) - insert
After 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)
- rule
Name 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.