1. Packages
  2. Sumologic Provider
  3. API Docs
  4. Partition
Sumo Logic v1.0.7 published on Friday, Apr 11, 2025 by Pulumi

sumologic.Partition

Explore with Pulumi AI

Provides a Sumologic Partition.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const examplePartition = new sumologic.Partition("examplePartition", {
    name: "examplePartition",
    routingExpression: "_sourcecategory=*/IAC",
    analyticsTier: "continuous",
    isCompliant: false,
    isIncludedInDefaultSearch: true,
});
Copy
import pulumi
import pulumi_sumologic as sumologic

example_partition = sumologic.Partition("examplePartition",
    name="examplePartition",
    routing_expression="_sourcecategory=*/IAC",
    analytics_tier="continuous",
    is_compliant=False,
    is_included_in_default_search=True)
Copy
package main

import (
	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sumologic.NewPartition(ctx, "examplePartition", &sumologic.PartitionArgs{
			Name:                      pulumi.String("examplePartition"),
			RoutingExpression:         pulumi.String("_sourcecategory=*/IAC"),
			AnalyticsTier:             pulumi.String("continuous"),
			IsCompliant:               pulumi.Bool(false),
			IsIncludedInDefaultSearch: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var examplePartition = new SumoLogic.Partition("examplePartition", new()
    {
        Name = "examplePartition",
        RoutingExpression = "_sourcecategory=*/IAC",
        AnalyticsTier = "continuous",
        IsCompliant = false,
        IsIncludedInDefaultSearch = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.Partition;
import com.pulumi.sumologic.PartitionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var examplePartition = new Partition("examplePartition", PartitionArgs.builder()
            .name("examplePartition")
            .routingExpression("_sourcecategory=*/IAC")
            .analyticsTier("continuous")
            .isCompliant(false)
            .isIncludedInDefaultSearch(true)
            .build());

    }
}
Copy
resources:
  examplePartition:
    type: sumologic:Partition
    properties:
      name: examplePartition
      routingExpression: _sourcecategory=*/IAC
      analyticsTier: continuous
      isCompliant: false
      isIncludedInDefaultSearch: true
Copy

Attributes reference

The following attributes are exported:

  • id - Unique identifier for the partition.

Create Partition Resource

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

Constructor syntax

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

@overload
def Partition(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              analytics_tier: Optional[str] = None,
              is_compliant: Optional[bool] = None,
              is_included_in_default_search: Optional[bool] = None,
              name: Optional[str] = None,
              reduce_retention_period_immediately: Optional[bool] = None,
              retention_period: Optional[int] = None,
              routing_expression: Optional[str] = None)
func NewPartition(ctx *Context, name string, args *PartitionArgs, opts ...ResourceOption) (*Partition, error)
public Partition(string name, PartitionArgs? args = null, CustomResourceOptions? opts = null)
public Partition(String name, PartitionArgs args)
public Partition(String name, PartitionArgs args, CustomResourceOptions options)
type: sumologic:Partition
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 PartitionArgs
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 PartitionArgs
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 PartitionArgs
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 PartitionArgs
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. PartitionArgs
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 partitionResource = new SumoLogic.Partition("partitionResource", new()
{
    AnalyticsTier = "string",
    IsCompliant = false,
    IsIncludedInDefaultSearch = false,
    Name = "string",
    ReduceRetentionPeriodImmediately = false,
    RetentionPeriod = 0,
    RoutingExpression = "string",
});
Copy
example, err := sumologic.NewPartition(ctx, "partitionResource", &sumologic.PartitionArgs{
	AnalyticsTier:                    pulumi.String("string"),
	IsCompliant:                      pulumi.Bool(false),
	IsIncludedInDefaultSearch:        pulumi.Bool(false),
	Name:                             pulumi.String("string"),
	ReduceRetentionPeriodImmediately: pulumi.Bool(false),
	RetentionPeriod:                  pulumi.Int(0),
	RoutingExpression:                pulumi.String("string"),
})
Copy
var partitionResource = new Partition("partitionResource", PartitionArgs.builder()
    .analyticsTier("string")
    .isCompliant(false)
    .isIncludedInDefaultSearch(false)
    .name("string")
    .reduceRetentionPeriodImmediately(false)
    .retentionPeriod(0)
    .routingExpression("string")
    .build());
Copy
partition_resource = sumologic.Partition("partitionResource",
    analytics_tier="string",
    is_compliant=False,
    is_included_in_default_search=False,
    name="string",
    reduce_retention_period_immediately=False,
    retention_period=0,
    routing_expression="string")
Copy
const partitionResource = new sumologic.Partition("partitionResource", {
    analyticsTier: "string",
    isCompliant: false,
    isIncludedInDefaultSearch: false,
    name: "string",
    reduceRetentionPeriodImmediately: false,
    retentionPeriod: 0,
    routingExpression: "string",
});
Copy
type: sumologic:Partition
properties:
    analyticsTier: string
    isCompliant: false
    isIncludedInDefaultSearch: false
    name: string
    reduceRetentionPeriodImmediately: false
    retentionPeriod: 0
    routingExpression: string
Copy

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

AnalyticsTier string
The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent". For flex partition, you can leave it empty or send flex.
IsCompliant bool
Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
IsIncludedInDefaultSearch bool
Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions.
Name Changes to this property will trigger replacement. string
The name of the partition.
ReduceRetentionPeriodImmediately bool
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
RetentionPeriod int
The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
RoutingExpression string
The query that defines the data to be included in the partition.
AnalyticsTier string
The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent". For flex partition, you can leave it empty or send flex.
IsCompliant bool
Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
IsIncludedInDefaultSearch bool
Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions.
Name Changes to this property will trigger replacement. string
The name of the partition.
ReduceRetentionPeriodImmediately bool
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
RetentionPeriod int
The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
RoutingExpression string
The query that defines the data to be included in the partition.
analyticsTier String
The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent". For flex partition, you can leave it empty or send flex.
isCompliant Boolean
Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
isIncludedInDefaultSearch Boolean
Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions.
name Changes to this property will trigger replacement. String
The name of the partition.
reduceRetentionPeriodImmediately Boolean
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
retentionPeriod Integer
The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
routingExpression String
The query that defines the data to be included in the partition.
analyticsTier string
The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent". For flex partition, you can leave it empty or send flex.
isCompliant boolean
Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
isIncludedInDefaultSearch boolean
Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions.
name Changes to this property will trigger replacement. string
The name of the partition.
reduceRetentionPeriodImmediately boolean
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
retentionPeriod number
The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
routingExpression string
The query that defines the data to be included in the partition.
analytics_tier str
The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent". For flex partition, you can leave it empty or send flex.
is_compliant bool
Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
is_included_in_default_search bool
Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions.
name Changes to this property will trigger replacement. str
The name of the partition.
reduce_retention_period_immediately bool
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
retention_period int
The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
routing_expression str
The query that defines the data to be included in the partition.
analyticsTier String
The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent". For flex partition, you can leave it empty or send flex.
isCompliant Boolean
Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
isIncludedInDefaultSearch Boolean
Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions.
name Changes to this property will trigger replacement. String
The name of the partition.
reduceRetentionPeriodImmediately Boolean
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
retentionPeriod Number
The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
routingExpression String
The query that defines the data to be included in the partition.

Outputs

All input properties are implicitly available as output properties. Additionally, the Partition resource produces the following output properties:

DataForwardingId string
Id string
The provider-assigned unique ID for this managed resource.
IndexType string
IsActive bool
TotalBytes int
DataForwardingId string
Id string
The provider-assigned unique ID for this managed resource.
IndexType string
IsActive bool
TotalBytes int
dataForwardingId String
id String
The provider-assigned unique ID for this managed resource.
indexType String
isActive Boolean
totalBytes Integer
dataForwardingId string
id string
The provider-assigned unique ID for this managed resource.
indexType string
isActive boolean
totalBytes number
data_forwarding_id str
id str
The provider-assigned unique ID for this managed resource.
index_type str
is_active bool
total_bytes int
dataForwardingId String
id String
The provider-assigned unique ID for this managed resource.
indexType String
isActive Boolean
totalBytes Number

Look up Existing Partition Resource

Get an existing Partition 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?: PartitionState, opts?: CustomResourceOptions): Partition
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        analytics_tier: Optional[str] = None,
        data_forwarding_id: Optional[str] = None,
        index_type: Optional[str] = None,
        is_active: Optional[bool] = None,
        is_compliant: Optional[bool] = None,
        is_included_in_default_search: Optional[bool] = None,
        name: Optional[str] = None,
        reduce_retention_period_immediately: Optional[bool] = None,
        retention_period: Optional[int] = None,
        routing_expression: Optional[str] = None,
        total_bytes: Optional[int] = None) -> Partition
func GetPartition(ctx *Context, name string, id IDInput, state *PartitionState, opts ...ResourceOption) (*Partition, error)
public static Partition Get(string name, Input<string> id, PartitionState? state, CustomResourceOptions? opts = null)
public static Partition get(String name, Output<String> id, PartitionState state, CustomResourceOptions options)
resources:  _:    type: sumologic:Partition    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:
AnalyticsTier string
The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent". For flex partition, you can leave it empty or send flex.
DataForwardingId string
IndexType string
IsActive bool
IsCompliant bool
Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
IsIncludedInDefaultSearch bool
Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions.
Name Changes to this property will trigger replacement. string
The name of the partition.
ReduceRetentionPeriodImmediately bool
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
RetentionPeriod int
The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
RoutingExpression string
The query that defines the data to be included in the partition.
TotalBytes int
AnalyticsTier string
The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent". For flex partition, you can leave it empty or send flex.
DataForwardingId string
IndexType string
IsActive bool
IsCompliant bool
Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
IsIncludedInDefaultSearch bool
Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions.
Name Changes to this property will trigger replacement. string
The name of the partition.
ReduceRetentionPeriodImmediately bool
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
RetentionPeriod int
The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
RoutingExpression string
The query that defines the data to be included in the partition.
TotalBytes int
analyticsTier String
The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent". For flex partition, you can leave it empty or send flex.
dataForwardingId String
indexType String
isActive Boolean
isCompliant Boolean
Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
isIncludedInDefaultSearch Boolean
Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions.
name Changes to this property will trigger replacement. String
The name of the partition.
reduceRetentionPeriodImmediately Boolean
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
retentionPeriod Integer
The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
routingExpression String
The query that defines the data to be included in the partition.
totalBytes Integer
analyticsTier string
The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent". For flex partition, you can leave it empty or send flex.
dataForwardingId string
indexType string
isActive boolean
isCompliant boolean
Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
isIncludedInDefaultSearch boolean
Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions.
name Changes to this property will trigger replacement. string
The name of the partition.
reduceRetentionPeriodImmediately boolean
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
retentionPeriod number
The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
routingExpression string
The query that defines the data to be included in the partition.
totalBytes number
analytics_tier str
The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent". For flex partition, you can leave it empty or send flex.
data_forwarding_id str
index_type str
is_active bool
is_compliant bool
Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
is_included_in_default_search bool
Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions.
name Changes to this property will trigger replacement. str
The name of the partition.
reduce_retention_period_immediately bool
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
retention_period int
The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
routing_expression str
The query that defines the data to be included in the partition.
total_bytes int
analyticsTier String
The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent". For flex partition, you can leave it empty or send flex.
dataForwardingId String
indexType String
isActive Boolean
isCompliant Boolean
Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
isIncludedInDefaultSearch Boolean
Indicates whether the partition is included in the default search scope. When executing a query such as "error | count," certain partitions are automatically part of the search scope. However, for specific partitions, the user must explicitly mention the partition using the _index term, as in "_index=webApp error | count". This property governs the default inclusion of the partition in the search scope. Configuring this property is exclusively permitted for flex partitions.
name Changes to this property will trigger replacement. String
The name of the partition.
reduceRetentionPeriodImmediately Boolean
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
retentionPeriod Number
The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
routingExpression String
The query that defines the data to be included in the partition.
totalBytes Number

Import

Partitions can can be imported using the id. The list of partitions and their ids can be obtained using the Sumologic partions api.

hcl

$ pulumi import sumologic:index/partition:Partition partition 1234567890
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Sumo Logic pulumi/pulumi-sumologic
License
Apache-2.0
Notes
This Pulumi package is based on the sumologic Terraform Provider.