1. Packages
  2. Sumo Logic
  3. API Docs
  4. Field
Sumo Logic v0.20.3 published on Wednesday, Mar 6, 2024 by Pulumi

sumologic.Field

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.20.3 published on Wednesday, Mar 6, 2024 by Pulumi

    Provides a Sumologic Field.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SumoLogic = Pulumi.SumoLogic;
    
    return await Deployment.RunAsync(() => 
    {
        var field = new SumoLogic.Field("field", new()
        {
            DataType = "Int",
            FieldName = "int_field_1",
        });
    
    });
    
    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.NewField(ctx, "field", &sumologic.FieldArgs{
    			DataType:  pulumi.String("Int"),
    			FieldName: pulumi.String("int_field_1"),
    		})
    		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.Field;
    import com.pulumi.sumologic.FieldArgs;
    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 field = new Field("field", FieldArgs.builder()        
                .dataType("Int")
                .fieldName("int_field_1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    field = sumologic.Field("field",
        data_type="Int",
        field_name="int_field_1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const field = new sumologic.Field("field", {
        dataType: "Int",
        fieldName: "int_field_1",
    });
    
    resources:
      field:
        type: sumologic:Field
        properties:
          dataType: Int
          fieldName: int_field_1
    

    Create Field Resource

    new Field(name: string, args: FieldArgs, opts?: CustomResourceOptions);
    @overload
    def Field(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              data_type: Optional[str] = None,
              field_name: Optional[str] = None,
              state: Optional[str] = None)
    @overload
    def Field(resource_name: str,
              args: FieldArgs,
              opts: Optional[ResourceOptions] = None)
    func NewField(ctx *Context, name string, args FieldArgs, opts ...ResourceOption) (*Field, error)
    public Field(string name, FieldArgs args, CustomResourceOptions? opts = null)
    public Field(String name, FieldArgs args)
    public Field(String name, FieldArgs args, CustomResourceOptions options)
    
    type: sumologic:Field
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args FieldArgs
    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 FieldArgs
    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 FieldArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FieldArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FieldArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Field 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 Field resource accepts the following input properties:

    FieldName string
    Name of the field.
    DataType string
    Field type. Possible values are String, Long, Int, Double, and Boolean.
    State string
    State of the field (either Enabled or Disabled).
    FieldName string
    Name of the field.
    DataType string
    Field type. Possible values are String, Long, Int, Double, and Boolean.
    State string
    State of the field (either Enabled or Disabled).
    fieldName String
    Name of the field.
    dataType String
    Field type. Possible values are String, Long, Int, Double, and Boolean.
    state String
    State of the field (either Enabled or Disabled).
    fieldName string
    Name of the field.
    dataType string
    Field type. Possible values are String, Long, Int, Double, and Boolean.
    state string
    State of the field (either Enabled or Disabled).
    field_name str
    Name of the field.
    data_type str
    Field type. Possible values are String, Long, Int, Double, and Boolean.
    state str
    State of the field (either Enabled or Disabled).
    fieldName String
    Name of the field.
    dataType String
    Field type. Possible values are String, Long, Int, Double, and Boolean.
    state String
    State of the field (either Enabled or Disabled).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Field resource produces the following output properties:

    FieldId string
    Field identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    FieldId string
    Field identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    fieldId String
    Field identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    fieldId string
    Field identifier.
    id string
    The provider-assigned unique ID for this managed resource.
    field_id str
    Field identifier.
    id str
    The provider-assigned unique ID for this managed resource.
    fieldId String
    Field identifier.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Field Resource

    Get an existing Field 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?: FieldState, opts?: CustomResourceOptions): Field
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            data_type: Optional[str] = None,
            field_id: Optional[str] = None,
            field_name: Optional[str] = None,
            state: Optional[str] = None) -> Field
    func GetField(ctx *Context, name string, id IDInput, state *FieldState, opts ...ResourceOption) (*Field, error)
    public static Field Get(string name, Input<string> id, FieldState? state, CustomResourceOptions? opts = null)
    public static Field get(String name, Output<String> id, FieldState 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:
    DataType string
    Field type. Possible values are String, Long, Int, Double, and Boolean.
    FieldId string
    Field identifier.
    FieldName string
    Name of the field.
    State string
    State of the field (either Enabled or Disabled).
    DataType string
    Field type. Possible values are String, Long, Int, Double, and Boolean.
    FieldId string
    Field identifier.
    FieldName string
    Name of the field.
    State string
    State of the field (either Enabled or Disabled).
    dataType String
    Field type. Possible values are String, Long, Int, Double, and Boolean.
    fieldId String
    Field identifier.
    fieldName String
    Name of the field.
    state String
    State of the field (either Enabled or Disabled).
    dataType string
    Field type. Possible values are String, Long, Int, Double, and Boolean.
    fieldId string
    Field identifier.
    fieldName string
    Name of the field.
    state string
    State of the field (either Enabled or Disabled).
    data_type str
    Field type. Possible values are String, Long, Int, Double, and Boolean.
    field_id str
    Field identifier.
    field_name str
    Name of the field.
    state str
    State of the field (either Enabled or Disabled).
    dataType String
    Field type. Possible values are String, Long, Int, Double, and Boolean.
    fieldId String
    Field identifier.
    fieldName String
    Name of the field.
    state String
    State of the field (either Enabled or Disabled).

    Import

    Fields can be imported using the field id, e.g.:

    hcl

    $ pulumi import sumologic:index/field:Field field 000000000ABC1234
    

    Package Details

    Repository
    Sumo Logic pulumi/pulumi-sumologic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sumologic Terraform Provider.
    sumologic logo
    Sumo Logic v0.20.3 published on Wednesday, Mar 6, 2024 by Pulumi