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,
});
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
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:
- Analytics
Tier 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.
- 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 boolIn Default Search - 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.
- Reduce
Retention boolPeriod Immediately - 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 string - The query that defines the data to be included in the partition.
- Analytics
Tier 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.
- 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 boolIn Default Search - 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.
- Reduce
Retention boolPeriod Immediately - 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 string - The query that defines the data to be included in the partition.
- analytics
Tier 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.
- is
Compliant 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.
- is
Included BooleanIn Default Search - 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.
- reduce
Retention BooleanPeriod Immediately - 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 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.
- routing
Expression String - The query that defines the data to be included in the partition.
- analytics
Tier 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.
- is
Compliant 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.
- is
Included booleanIn Default Search - 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.
- reduce
Retention booleanPeriod Immediately - 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 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.
- routing
Expression 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_ boolin_ default_ search - 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_ boolperiod_ immediately - 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.
- analytics
Tier 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.
- is
Compliant 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.
- is
Included BooleanIn Default Search - 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.
- reduce
Retention BooleanPeriod Immediately - 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 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.
- routing
Expression 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:
- Data
Forwarding stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Index
Type string - Is
Active bool - Total
Bytes int
- Data
Forwarding stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Index
Type string - Is
Active bool - Total
Bytes int
- data
Forwarding StringId - id String
- The provider-assigned unique ID for this managed resource.
- index
Type String - is
Active Boolean - total
Bytes Integer
- data
Forwarding stringId - id string
- The provider-assigned unique ID for this managed resource.
- index
Type string - is
Active boolean - total
Bytes number
- data_
forwarding_ strid - id str
- The provider-assigned unique ID for this managed resource.
- index_
type str - is_
active bool - total_
bytes int
- data
Forwarding StringId - id String
- The provider-assigned unique ID for this managed resource.
- index
Type String - is
Active Boolean - total
Bytes 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.
- Analytics
Tier 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.
- Data
Forwarding stringId - Index
Type string - 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 boolIn Default Search - 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.
- Reduce
Retention boolPeriod Immediately - 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 string - The query that defines the data to be included in the partition.
- Total
Bytes int
- Analytics
Tier 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.
- Data
Forwarding stringId - Index
Type string - 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 boolIn Default Search - 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.
- Reduce
Retention boolPeriod Immediately - 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 string - The query that defines the data to be included in the partition.
- Total
Bytes int
- analytics
Tier 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.
- data
Forwarding StringId - index
Type String - is
Active Boolean - is
Compliant 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.
- is
Included BooleanIn Default Search - 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.
- reduce
Retention BooleanPeriod Immediately - 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 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.
- routing
Expression String - The query that defines the data to be included in the partition.
- total
Bytes Integer
- analytics
Tier 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.
- data
Forwarding stringId - index
Type string - is
Active boolean - is
Compliant 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.
- is
Included booleanIn Default Search - 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.
- reduce
Retention booleanPeriod Immediately - 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 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.
- routing
Expression string - The query that defines the data to be included in the partition.
- total
Bytes 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_ strid - 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_ boolin_ default_ search - 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_ boolperiod_ immediately - 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
- analytics
Tier 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.
- data
Forwarding StringId - index
Type String - is
Active Boolean - is
Compliant 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.
- is
Included BooleanIn Default Search - 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.
- reduce
Retention BooleanPeriod Immediately - 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 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.
- routing
Expression String - The query that defines the data to be included in the partition.
- total
Bytes 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.