sumologic.LookupTable
Explore with Pulumi AI
Provides a Sumologic Lookup Table.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const lookupTable = new sumologic.LookupTable("lookupTable", {
name: "Sample Lookup Table",
fields: [
{
fieldName: "FieldName1",
fieldType: "boolean",
},
{
fieldName: "FieldName2",
fieldType: "string",
},
],
ttl: 100,
primaryKeys: ["FieldName1"],
parentFolderId: "<personal folder id>",
sizeLimitAction: "DeleteOldData",
description: "some description",
});
import pulumi
import pulumi_sumologic as sumologic
lookup_table = sumologic.LookupTable("lookupTable",
name="Sample Lookup Table",
fields=[
sumologic.LookupTableFieldArgs(
field_name="FieldName1",
field_type="boolean",
),
sumologic.LookupTableFieldArgs(
field_name="FieldName2",
field_type="string",
),
],
ttl=100,
primary_keys=["FieldName1"],
parent_folder_id="<personal folder id>",
size_limit_action="DeleteOldData",
description="some description")
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.NewLookupTable(ctx, "lookupTable", &sumologic.LookupTableArgs{
Name: pulumi.String("Sample Lookup Table"),
Fields: sumologic.LookupTableFieldArray{
&sumologic.LookupTableFieldArgs{
FieldName: pulumi.String("FieldName1"),
FieldType: pulumi.String("boolean"),
},
&sumologic.LookupTableFieldArgs{
FieldName: pulumi.String("FieldName2"),
FieldType: pulumi.String("string"),
},
},
Ttl: pulumi.Int(100),
PrimaryKeys: pulumi.StringArray{
pulumi.String("FieldName1"),
},
ParentFolderId: pulumi.String("<personal folder id>"),
SizeLimitAction: pulumi.String("DeleteOldData"),
Description: pulumi.String("some description"),
})
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 lookupTable = new SumoLogic.LookupTable("lookupTable", new()
{
Name = "Sample Lookup Table",
Fields = new[]
{
new SumoLogic.Inputs.LookupTableFieldArgs
{
FieldName = "FieldName1",
FieldType = "boolean",
},
new SumoLogic.Inputs.LookupTableFieldArgs
{
FieldName = "FieldName2",
FieldType = "string",
},
},
Ttl = 100,
PrimaryKeys = new[]
{
"FieldName1",
},
ParentFolderId = "<personal folder id>",
SizeLimitAction = "DeleteOldData",
Description = "some description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.LookupTable;
import com.pulumi.sumologic.LookupTableArgs;
import com.pulumi.sumologic.inputs.LookupTableFieldArgs;
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 lookupTable = new LookupTable("lookupTable", LookupTableArgs.builder()
.name("Sample Lookup Table")
.fields(
LookupTableFieldArgs.builder()
.fieldName("FieldName1")
.fieldType("boolean")
.build(),
LookupTableFieldArgs.builder()
.fieldName("FieldName2")
.fieldType("string")
.build())
.ttl(100)
.primaryKeys("FieldName1")
.parentFolderId("<personal folder id>")
.sizeLimitAction("DeleteOldData")
.description("some description")
.build());
}
}
resources:
lookupTable:
type: sumologic:LookupTable
properties:
name: Sample Lookup Table
fields:
- fieldName: FieldName1
fieldType: boolean
- fieldName: FieldName2
fieldType: string
ttl: 100
primaryKeys:
- FieldName1
parentFolderId: <personal folder id>
sizeLimitAction: DeleteOldData
description: some description
Attributes reference
The following attributes are exported:
id
- Unique identifier for the partition.
Create LookupTable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LookupTable(name: string, args: LookupTableArgs, opts?: CustomResourceOptions);
@overload
def LookupTable(resource_name: str,
args: LookupTableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LookupTable(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
fields: Optional[Sequence[LookupTableFieldArgs]] = None,
name: Optional[str] = None,
parent_folder_id: Optional[str] = None,
primary_keys: Optional[Sequence[str]] = None,
size_limit_action: Optional[str] = None,
ttl: Optional[int] = None)
func NewLookupTable(ctx *Context, name string, args LookupTableArgs, opts ...ResourceOption) (*LookupTable, error)
public LookupTable(string name, LookupTableArgs args, CustomResourceOptions? opts = null)
public LookupTable(String name, LookupTableArgs args)
public LookupTable(String name, LookupTableArgs args, CustomResourceOptions options)
type: sumologic:LookupTable
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 LookupTableArgs
- 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 LookupTableArgs
- 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 LookupTableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LookupTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LookupTableArgs
- 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 lookupTableResource = new SumoLogic.LookupTable("lookupTableResource", new()
{
Description = "string",
Fields = new[]
{
new SumoLogic.Inputs.LookupTableFieldArgs
{
FieldName = "string",
FieldType = "string",
},
},
Name = "string",
ParentFolderId = "string",
PrimaryKeys = new[]
{
"string",
},
SizeLimitAction = "string",
Ttl = 0,
});
example, err := sumologic.NewLookupTable(ctx, "lookupTableResource", &sumologic.LookupTableArgs{
Description: pulumi.String("string"),
Fields: sumologic.LookupTableFieldArray{
&sumologic.LookupTableFieldArgs{
FieldName: pulumi.String("string"),
FieldType: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
ParentFolderId: pulumi.String("string"),
PrimaryKeys: pulumi.StringArray{
pulumi.String("string"),
},
SizeLimitAction: pulumi.String("string"),
Ttl: pulumi.Int(0),
})
var lookupTableResource = new LookupTable("lookupTableResource", LookupTableArgs.builder()
.description("string")
.fields(LookupTableFieldArgs.builder()
.fieldName("string")
.fieldType("string")
.build())
.name("string")
.parentFolderId("string")
.primaryKeys("string")
.sizeLimitAction("string")
.ttl(0)
.build());
lookup_table_resource = sumologic.LookupTable("lookupTableResource",
description="string",
fields=[sumologic.LookupTableFieldArgs(
field_name="string",
field_type="string",
)],
name="string",
parent_folder_id="string",
primary_keys=["string"],
size_limit_action="string",
ttl=0)
const lookupTableResource = new sumologic.LookupTable("lookupTableResource", {
description: "string",
fields: [{
fieldName: "string",
fieldType: "string",
}],
name: "string",
parentFolderId: "string",
primaryKeys: ["string"],
sizeLimitAction: "string",
ttl: 0,
});
type: sumologic:LookupTable
properties:
description: string
fields:
- fieldName: string
fieldType: string
name: string
parentFolderId: string
primaryKeys:
- string
sizeLimitAction: string
ttl: 0
LookupTable 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 LookupTable resource accepts the following input properties:
- Description string
- The description of the lookup table.
- Fields
List<Pulumi.
Sumo Logic. Inputs. Lookup Table Field> - The list of fields in the lookup table.
fieldName
- (Required) The name of the field.fieldType
- (Required) The data type of the field. Supported types: boolean, int, long, double, stringprimaryKeys
- (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
- Name string
- The name of the lookup table.
- Parent
Folder stringId - The parent-folder-path identifier of the lookup table in the Library.
- Primary
Keys List<string> - The primary key field names.
- Size
Limit stringAction - Ttl int
- A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
sizeLimitAction
- (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
- Description string
- The description of the lookup table.
- Fields
[]Lookup
Table Field Args - The list of fields in the lookup table.
fieldName
- (Required) The name of the field.fieldType
- (Required) The data type of the field. Supported types: boolean, int, long, double, stringprimaryKeys
- (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
- Name string
- The name of the lookup table.
- Parent
Folder stringId - The parent-folder-path identifier of the lookup table in the Library.
- Primary
Keys []string - The primary key field names.
- Size
Limit stringAction - Ttl int
- A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
sizeLimitAction
- (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
- description String
- The description of the lookup table.
- fields
List<Lookup
Table Field> - The list of fields in the lookup table.
fieldName
- (Required) The name of the field.fieldType
- (Required) The data type of the field. Supported types: boolean, int, long, double, stringprimaryKeys
- (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
- name String
- The name of the lookup table.
- parent
Folder StringId - The parent-folder-path identifier of the lookup table in the Library.
- primary
Keys List<String> - The primary key field names.
- size
Limit StringAction - ttl Integer
- A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
sizeLimitAction
- (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
- description string
- The description of the lookup table.
- fields
Lookup
Table Field[] - The list of fields in the lookup table.
fieldName
- (Required) The name of the field.fieldType
- (Required) The data type of the field. Supported types: boolean, int, long, double, stringprimaryKeys
- (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
- name string
- The name of the lookup table.
- parent
Folder stringId - The parent-folder-path identifier of the lookup table in the Library.
- primary
Keys string[] - The primary key field names.
- size
Limit stringAction - ttl number
- A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
sizeLimitAction
- (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
- description str
- The description of the lookup table.
- fields
Sequence[Lookup
Table Field Args] - The list of fields in the lookup table.
fieldName
- (Required) The name of the field.fieldType
- (Required) The data type of the field. Supported types: boolean, int, long, double, stringprimaryKeys
- (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
- name str
- The name of the lookup table.
- parent_
folder_ strid - The parent-folder-path identifier of the lookup table in the Library.
- primary_
keys Sequence[str] - The primary key field names.
- size_
limit_ straction - ttl int
- A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
sizeLimitAction
- (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
- description String
- The description of the lookup table.
- fields List<Property Map>
- The list of fields in the lookup table.
fieldName
- (Required) The name of the field.fieldType
- (Required) The data type of the field. Supported types: boolean, int, long, double, stringprimaryKeys
- (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
- name String
- The name of the lookup table.
- parent
Folder StringId - The parent-folder-path identifier of the lookup table in the Library.
- primary
Keys List<String> - The primary key field names.
- size
Limit StringAction - ttl Number
- A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
sizeLimitAction
- (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
Outputs
All input properties are implicitly available as output properties. Additionally, the LookupTable resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LookupTable Resource
Get an existing LookupTable 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?: LookupTableState, opts?: CustomResourceOptions): LookupTable
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
fields: Optional[Sequence[LookupTableFieldArgs]] = None,
name: Optional[str] = None,
parent_folder_id: Optional[str] = None,
primary_keys: Optional[Sequence[str]] = None,
size_limit_action: Optional[str] = None,
ttl: Optional[int] = None) -> LookupTable
func GetLookupTable(ctx *Context, name string, id IDInput, state *LookupTableState, opts ...ResourceOption) (*LookupTable, error)
public static LookupTable Get(string name, Input<string> id, LookupTableState? state, CustomResourceOptions? opts = null)
public static LookupTable get(String name, Output<String> id, LookupTableState 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.
- Description string
- The description of the lookup table.
- Fields
List<Pulumi.
Sumo Logic. Inputs. Lookup Table Field> - The list of fields in the lookup table.
fieldName
- (Required) The name of the field.fieldType
- (Required) The data type of the field. Supported types: boolean, int, long, double, stringprimaryKeys
- (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
- Name string
- The name of the lookup table.
- Parent
Folder stringId - The parent-folder-path identifier of the lookup table in the Library.
- Primary
Keys List<string> - The primary key field names.
- Size
Limit stringAction - Ttl int
- A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
sizeLimitAction
- (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
- Description string
- The description of the lookup table.
- Fields
[]Lookup
Table Field Args - The list of fields in the lookup table.
fieldName
- (Required) The name of the field.fieldType
- (Required) The data type of the field. Supported types: boolean, int, long, double, stringprimaryKeys
- (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
- Name string
- The name of the lookup table.
- Parent
Folder stringId - The parent-folder-path identifier of the lookup table in the Library.
- Primary
Keys []string - The primary key field names.
- Size
Limit stringAction - Ttl int
- A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
sizeLimitAction
- (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
- description String
- The description of the lookup table.
- fields
List<Lookup
Table Field> - The list of fields in the lookup table.
fieldName
- (Required) The name of the field.fieldType
- (Required) The data type of the field. Supported types: boolean, int, long, double, stringprimaryKeys
- (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
- name String
- The name of the lookup table.
- parent
Folder StringId - The parent-folder-path identifier of the lookup table in the Library.
- primary
Keys List<String> - The primary key field names.
- size
Limit StringAction - ttl Integer
- A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
sizeLimitAction
- (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
- description string
- The description of the lookup table.
- fields
Lookup
Table Field[] - The list of fields in the lookup table.
fieldName
- (Required) The name of the field.fieldType
- (Required) The data type of the field. Supported types: boolean, int, long, double, stringprimaryKeys
- (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
- name string
- The name of the lookup table.
- parent
Folder stringId - The parent-folder-path identifier of the lookup table in the Library.
- primary
Keys string[] - The primary key field names.
- size
Limit stringAction - ttl number
- A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
sizeLimitAction
- (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
- description str
- The description of the lookup table.
- fields
Sequence[Lookup
Table Field Args] - The list of fields in the lookup table.
fieldName
- (Required) The name of the field.fieldType
- (Required) The data type of the field. Supported types: boolean, int, long, double, stringprimaryKeys
- (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
- name str
- The name of the lookup table.
- parent_
folder_ strid - The parent-folder-path identifier of the lookup table in the Library.
- primary_
keys Sequence[str] - The primary key field names.
- size_
limit_ straction - ttl int
- A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
sizeLimitAction
- (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
- description String
- The description of the lookup table.
- fields List<Property Map>
- The list of fields in the lookup table.
fieldName
- (Required) The name of the field.fieldType
- (Required) The data type of the field. Supported types: boolean, int, long, double, stringprimaryKeys
- (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
- name String
- The name of the lookup table.
- parent
Folder StringId - The parent-folder-path identifier of the lookup table in the Library.
- primary
Keys List<String> - The primary key field names.
- size
Limit StringAction - ttl Number
- A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
sizeLimitAction
- (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
Supporting Types
LookupTableField, LookupTableFieldArgs
- field_
name str - field_
type str
Import
Lookup Tables can be imported using the id, e.g.:
hcl
$ pulumi import sumologic:index/lookupTable:LookupTable test 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.