sumologic.Field
Explore with Pulumi AI
Provides a Sumologic Field.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const field = new sumologic.Field("field", {
fieldName: "my_other_string",
state: "Disabled",
});
import pulumi
import pulumi_sumologic as sumologic
field = sumologic.Field("field",
field_name="my_other_string",
state="Disabled")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/sumologic/v3/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{
FieldName: pulumi.String("my_other_string"),
State: pulumi.String("Disabled"),
})
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 field = new Sumologic.Field("field", new()
{
FieldName = "my_other_string",
State = "Disabled",
});
});
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()
.fieldName("my_other_string")
.state("Disabled")
.build());
}
}
resources:
field:
type: sumologic:Field
properties:
fieldName: my_other_string
state: Disabled
Create Field Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Field(name: string, args: FieldArgs, opts?: CustomResourceOptions);
@overload
def Field(resource_name: str,
args: FieldArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Field(resource_name: str,
opts: Optional[ResourceOptions] = None,
field_name: Optional[str] = None,
data_type: Optional[str] = None,
state: Optional[str] = None,
sumologic_field_id: Optional[str] = None)
func NewField(ctx *Context, name string, args FieldArgs, opts ...ResourceOption) (*Field, error)
public Field(string name, FieldArgs args, CustomResourceOptions? opts = null)
type: sumologic:Field
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 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var fieldResource = new Sumologic.Field("fieldResource", new()
{
FieldName = "string",
DataType = "string",
State = "string",
SumologicFieldId = "string",
});
example, err := sumologic.NewField(ctx, "fieldResource", &sumologic.FieldArgs{
FieldName: pulumi.String("string"),
DataType: pulumi.String("string"),
State: pulumi.String("string"),
SumologicFieldId: pulumi.String("string"),
})
var fieldResource = new Field("fieldResource", FieldArgs.builder()
.fieldName("string")
.dataType("string")
.state("string")
.sumologicFieldId("string")
.build());
field_resource = sumologic.Field("fieldResource",
field_name="string",
data_type="string",
state="string",
sumologic_field_id="string")
const fieldResource = new sumologic.Field("fieldResource", {
fieldName: "string",
dataType: "string",
state: "string",
sumologicFieldId: "string",
});
type: sumologic:Field
properties:
dataType: string
fieldName: string
state: string
sumologicFieldId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Field resource accepts the following input properties:
- Field
Name string - Name of the field.
- Data
Type string - State string
- State of the field. Possible values are
Enabled
orDisabled
(default:Enabled
). - Sumologic
Field stringId
- Field
Name string - Name of the field.
- Data
Type string - State string
- State of the field. Possible values are
Enabled
orDisabled
(default:Enabled
). - Sumologic
Field stringId
- field
Name String - Name of the field.
- data
Type String - state String
- State of the field. Possible values are
Enabled
orDisabled
(default:Enabled
). - sumologic
Field StringId
- field
Name string - Name of the field.
- data
Type string - state string
- State of the field. Possible values are
Enabled
orDisabled
(default:Enabled
). - sumologic
Field stringId
- field_
name str - Name of the field.
- data_
type str - state str
- State of the field. Possible values are
Enabled
orDisabled
(default:Enabled
). - sumologic_
field_ strid
- field
Name String - Name of the field.
- data
Type String - state String
- State of the field. Possible values are
Enabled
orDisabled
(default:Enabled
). - sumologic
Field StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the Field resource produces the following output properties:
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,
sumologic_field_id: 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)
resources: _: type: sumologic:Field get: id: ${id}
- 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.
- Data
Type string - Field
Id string - Field
Name string - Name of the field.
- State string
- State of the field. Possible values are
Enabled
orDisabled
(default:Enabled
). - Sumologic
Field stringId
- Data
Type string - Field
Id string - Field
Name string - Name of the field.
- State string
- State of the field. Possible values are
Enabled
orDisabled
(default:Enabled
). - Sumologic
Field stringId
- data
Type String - field
Id String - field
Name String - Name of the field.
- state String
- State of the field. Possible values are
Enabled
orDisabled
(default:Enabled
). - sumologic
Field StringId
- data
Type string - field
Id string - field
Name string - Name of the field.
- state string
- State of the field. Possible values are
Enabled
orDisabled
(default:Enabled
). - sumologic
Field stringId
- data_
type str - field_
id str - field_
name str - Name of the field.
- state str
- State of the field. Possible values are
Enabled
orDisabled
(default:Enabled
). - sumologic_
field_ strid
- data
Type String - field
Id String - field
Name String - Name of the field.
- state String
- State of the field. Possible values are
Enabled
orDisabled
(default:Enabled
). - sumologic
Field StringId
Import
Fields can be imported using the field id, e.g.:
hcl
$ pulumi import sumologic:index/field:Field field 000000000ABC1234
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Sumo Logic sumologic/terraform-provider-sumologic
- License
- Notes
- This Pulumi package is based on the
sumologic
Terraform Provider.