1. Packages
  2. Sumo Logic
  3. API Docs
  4. Partition
Sumo Logic v0.23.4 published on Friday, Sep 20, 2024 by Pulumi

sumologic.Partition

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.23.4 published on Friday, Sep 20, 2024 by Pulumi

    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,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      examplePartition:
        type: sumologic:Partition
        properties:
          name: examplePartition
          routingExpression: _sourcecategory=*/IAC
          analyticsTier: continuous
          isCompliant: false
          isIncludedInDefaultSearch: true
    

    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 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 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 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 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 String
    The unique name of the resource.
    args 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",
    });
    
    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"),
    })
    
    var partitionResource = new Partition("partitionResource", PartitionArgs.builder()
        .analyticsTier("string")
        .isCompliant(false)
        .isIncludedInDefaultSearch(false)
        .name("string")
        .reduceRetentionPeriodImmediately(false)
        .retentionPeriod(0)
        .routingExpression("string")
        .build());
    
    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")
    
    const partitionResource = new sumologic.Partition("partitionResource", {
        analyticsTier: "string",
        isCompliant: false,
        isIncludedInDefaultSearch: false,
        name: "string",
        reduceRetentionPeriodImmediately: false,
        retentionPeriod: 0,
        routingExpression: "string",
    });
    
    type: sumologic:Partition
    properties:
        analyticsTier: string
        isCompliant: false
        isIncludedInDefaultSearch: false
        name: string
        reduceRetentionPeriodImmediately: false
        retentionPeriod: 0
        routingExpression: string
    

    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

    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 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 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 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 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 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 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)
    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.
    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 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 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 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 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 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 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
    

    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.
    sumologic logo
    Sumo Logic v0.23.4 published on Friday, Sep 20, 2024 by Pulumi