sumologic logo
Sumo Logic v0.13.0, Mar 27 23

sumologic.Partition

Provides a Sumologic Partition.

Attributes reference

The following attributes are exported:

  • id - Unique identifier for the partition.

Example Usage

Coming soon!

Coming soon!

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()        
            .analyticsTier("continuous")
            .isCompliant(false)
            .lifecycle(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
            .routingExpression("_sourcecategory=*/IAC")
            .build());

    }
}

Coming soon!

Coming soon!

resources:
  examplePartition:
    type: sumologic:Partition
    properties:
      analyticsTier: continuous
      isCompliant: false
      lifecycle:
        preventDestroy: true
      routingExpression: _sourcecategory=*/IAC

Create Partition Resource

new Partition(name: string, args?: PartitionArgs, opts?: CustomResourceOptions);
@overload
def Partition(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              analytics_tier: Optional[str] = None,
              is_compliant: Optional[bool] = None,
              name: Optional[str] = None,
              reduce_retention_period_immediately: Optional[bool] = None,
              retention_period: Optional[int] = None,
              routing_expression: Optional[str] = None)
@overload
def Partition(resource_name: str,
              args: Optional[PartitionArgs] = None,
              opts: Optional[ResourceOptions] = 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.

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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,
        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".

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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][2]. hcl

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

[1]https://help.sumologic.com/docs/manage/partitions-data-tiers/ [2]https://api.sumologic.com/docs/#operation/listPartitions

Package Details

Repository
Sumo Logic pulumi/pulumi-sumologic
License
Apache-2.0
Notes

This Pulumi package is based on the sumologic Terraform Provider.