sumologic.LookupTable
Provides a Sumologic Lookup Table.
Attributes reference
The following attributes are exported:
id
- Unique identifier for the partition.
Example Usage
using System.Collections.Generic;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;
return await Deployment.RunAsync(() =>
{
var lookupTable = new SumoLogic.LookupTable("lookupTable", new()
{
Description = "some description",
Fields = new[]
{
new SumoLogic.Inputs.LookupTableFieldArgs
{
FieldName = "FieldName1",
FieldType = "boolean",
},
new SumoLogic.Inputs.LookupTableFieldArgs
{
FieldName = "FieldName2",
FieldType = "string",
},
},
ParentFolderId = "<personal folder id>",
PrimaryKeys = new[]
{
"FieldName1",
},
SizeLimitAction = "DeleteOldData",
Ttl = 100,
});
});
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{
Description: pulumi.String("some description"),
Fields: sumologic.LookupTableFieldArray{
&sumologic.LookupTableFieldArgs{
FieldName: pulumi.String("FieldName1"),
FieldType: pulumi.String("boolean"),
},
&sumologic.LookupTableFieldArgs{
FieldName: pulumi.String("FieldName2"),
FieldType: pulumi.String("string"),
},
},
ParentFolderId: pulumi.String("<personal folder id>"),
PrimaryKeys: pulumi.StringArray{
pulumi.String("FieldName1"),
},
SizeLimitAction: pulumi.String("DeleteOldData"),
Ttl: pulumi.Int(100),
})
if err != nil {
return err
}
return nil
})
}
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()
.description("some description")
.fields(
LookupTableFieldArgs.builder()
.fieldName("FieldName1")
.fieldType("boolean")
.build(),
LookupTableFieldArgs.builder()
.fieldName("FieldName2")
.fieldType("string")
.build())
.parentFolderId("<personal folder id>")
.primaryKeys("FieldName1")
.sizeLimitAction("DeleteOldData")
.ttl(100)
.build());
}
}
import pulumi
import pulumi_sumologic as sumologic
lookup_table = sumologic.LookupTable("lookupTable",
description="some description",
fields=[
sumologic.LookupTableFieldArgs(
field_name="FieldName1",
field_type="boolean",
),
sumologic.LookupTableFieldArgs(
field_name="FieldName2",
field_type="string",
),
],
parent_folder_id="<personal folder id>",
primary_keys=["FieldName1"],
size_limit_action="DeleteOldData",
ttl=100)
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const lookupTable = new sumologic.LookupTable("lookupTable", {
description: "some description",
fields: [
{
fieldName: "FieldName1",
fieldType: "boolean",
},
{
fieldName: "FieldName2",
fieldType: "string",
},
],
parentFolderId: "<personal folder id>",
primaryKeys: ["FieldName1"],
sizeLimitAction: "DeleteOldData",
ttl: 100,
});
resources:
lookupTable:
type: sumologic:LookupTable
properties:
description: some description
fields:
- fieldName: FieldName1
fieldType: boolean
- fieldName: FieldName2
fieldType: string
parentFolderId: <personal folder id>
primaryKeys:
- FieldName1
sizeLimitAction: DeleteOldData
ttl: 100
Create LookupTable Resource
new LookupTable(name: string, args: LookupTableArgs, opts?: CustomResourceOptions);
@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)
@overload
def LookupTable(resource_name: str,
args: LookupTableArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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 Args> The list of fields in the lookup table.
- 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.
- Description string
The description of the lookup table.
- Fields
[]Lookup
Table Field Args The list of fields in the lookup table.
- 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.
- description String
The description of the lookup table.
- fields
List<Lookup
Table Field Args> The list of fields in the lookup table.
- 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.
- description string
The description of the lookup table.
- fields
Lookup
Table Field Args[] The list of fields in the lookup table.
- 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.
- description str
The description of the lookup table.
- fields
Sequence[Lookup
Table Field Args] The list of fields in the lookup table.
- 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.
- description String
The description of the lookup table.
- fields List<Property Map>
The list of fields in the lookup table.
- 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.
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 Args> The list of fields in the lookup table.
- 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.
- Description string
The description of the lookup table.
- Fields
[]Lookup
Table Field Args The list of fields in the lookup table.
- 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.
- description String
The description of the lookup table.
- fields
List<Lookup
Table Field Args> The list of fields in the lookup table.
- 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.
- description string
The description of the lookup table.
- fields
Lookup
Table Field Args[] The list of fields in the lookup table.
- 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.
- description str
The description of the lookup table.
- fields
Sequence[Lookup
Table Field Args] The list of fields in the lookup table.
- 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.
- description String
The description of the lookup table.
- fields List<Property Map>
The list of fields in the lookup table.
- 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.
Supporting Types
LookupTableField
- 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
[1]https://help.sumologic.com/05Search/Lookup_Tables
Package Details
- Repository
- Sumo Logic pulumi/pulumi-sumologic
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
sumologic
Terraform Provider.