sumologic.CseCustomEntityType
Explore with Pulumi AI
Provides a Sumologic CSE Custom Entity Type.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const customEntityType = new sumologic.CseCustomEntityType("custom_entity_type", {
name: "New Custom Entity Type",
identifier: "identifier",
fields: [
"file_hash_md5",
"file_hash_sha1",
],
});
import pulumi
import pulumi_sumologic as sumologic
custom_entity_type = sumologic.CseCustomEntityType("custom_entity_type",
name="New Custom Entity Type",
identifier="identifier",
fields=[
"file_hash_md5",
"file_hash_sha1",
])
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.NewCseCustomEntityType(ctx, "custom_entity_type", &sumologic.CseCustomEntityTypeArgs{
Name: pulumi.String("New Custom Entity Type"),
Identifier: pulumi.String("identifier"),
Fields: pulumi.StringArray{
pulumi.String("file_hash_md5"),
pulumi.String("file_hash_sha1"),
},
})
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 customEntityType = new SumoLogic.CseCustomEntityType("custom_entity_type", new()
{
Name = "New Custom Entity Type",
Identifier = "identifier",
Fields = new[]
{
"file_hash_md5",
"file_hash_sha1",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.CseCustomEntityType;
import com.pulumi.sumologic.CseCustomEntityTypeArgs;
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 customEntityType = new CseCustomEntityType("customEntityType", CseCustomEntityTypeArgs.builder()
.name("New Custom Entity Type")
.identifier("identifier")
.fields(
"file_hash_md5",
"file_hash_sha1")
.build());
}
}
resources:
customEntityType:
type: sumologic:CseCustomEntityType
name: custom_entity_type
properties:
name: New Custom Entity Type
identifier: identifier
fields:
- file_hash_md5
- file_hash_sha1
Create CseCustomEntityType Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CseCustomEntityType(name: string, args: CseCustomEntityTypeArgs, opts?: CustomResourceOptions);
@overload
def CseCustomEntityType(resource_name: str,
args: CseCustomEntityTypeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CseCustomEntityType(resource_name: str,
opts: Optional[ResourceOptions] = None,
fields: Optional[Sequence[str]] = None,
identifier: Optional[str] = None,
name: Optional[str] = None)
func NewCseCustomEntityType(ctx *Context, name string, args CseCustomEntityTypeArgs, opts ...ResourceOption) (*CseCustomEntityType, error)
public CseCustomEntityType(string name, CseCustomEntityTypeArgs args, CustomResourceOptions? opts = null)
public CseCustomEntityType(String name, CseCustomEntityTypeArgs args)
public CseCustomEntityType(String name, CseCustomEntityTypeArgs args, CustomResourceOptions options)
type: sumologic:CseCustomEntityType
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 CseCustomEntityTypeArgs
- 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 CseCustomEntityTypeArgs
- 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 CseCustomEntityTypeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CseCustomEntityTypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CseCustomEntityTypeArgs
- 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 cseCustomEntityTypeResource = new SumoLogic.CseCustomEntityType("cseCustomEntityTypeResource", new()
{
Fields = new[]
{
"string",
},
Identifier = "string",
Name = "string",
});
example, err := sumologic.NewCseCustomEntityType(ctx, "cseCustomEntityTypeResource", &sumologic.CseCustomEntityTypeArgs{
Fields: pulumi.StringArray{
pulumi.String("string"),
},
Identifier: pulumi.String("string"),
Name: pulumi.String("string"),
})
var cseCustomEntityTypeResource = new CseCustomEntityType("cseCustomEntityTypeResource", CseCustomEntityTypeArgs.builder()
.fields("string")
.identifier("string")
.name("string")
.build());
cse_custom_entity_type_resource = sumologic.CseCustomEntityType("cseCustomEntityTypeResource",
fields=["string"],
identifier="string",
name="string")
const cseCustomEntityTypeResource = new sumologic.CseCustomEntityType("cseCustomEntityTypeResource", {
fields: ["string"],
identifier: "string",
name: "string",
});
type: sumologic:CseCustomEntityType
properties:
fields:
- string
identifier: string
name: string
CseCustomEntityType 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 CseCustomEntityType resource accepts the following input properties:
- Fields List<string>
Record schema fields. Examples: "file_hash_md5", "file_hash_sha1".".
The following attributes are exported:
- Identifier string
- Machine friendly and unique identifier. Example: "filehash".
- Name string
- Human friend and unique name. Example: "File Hash".
- Fields []string
Record schema fields. Examples: "file_hash_md5", "file_hash_sha1".".
The following attributes are exported:
- Identifier string
- Machine friendly and unique identifier. Example: "filehash".
- Name string
- Human friend and unique name. Example: "File Hash".
- fields List<String>
Record schema fields. Examples: "file_hash_md5", "file_hash_sha1".".
The following attributes are exported:
- identifier String
- Machine friendly and unique identifier. Example: "filehash".
- name String
- Human friend and unique name. Example: "File Hash".
- fields string[]
Record schema fields. Examples: "file_hash_md5", "file_hash_sha1".".
The following attributes are exported:
- identifier string
- Machine friendly and unique identifier. Example: "filehash".
- name string
- Human friend and unique name. Example: "File Hash".
- fields Sequence[str]
Record schema fields. Examples: "file_hash_md5", "file_hash_sha1".".
The following attributes are exported:
- identifier str
- Machine friendly and unique identifier. Example: "filehash".
- name str
- Human friend and unique name. Example: "File Hash".
- fields List<String>
Record schema fields. Examples: "file_hash_md5", "file_hash_sha1".".
The following attributes are exported:
- identifier String
- Machine friendly and unique identifier. Example: "filehash".
- name String
- Human friend and unique name. Example: "File Hash".
Outputs
All input properties are implicitly available as output properties. Additionally, the CseCustomEntityType 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 CseCustomEntityType Resource
Get an existing CseCustomEntityType 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?: CseCustomEntityTypeState, opts?: CustomResourceOptions): CseCustomEntityType
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
fields: Optional[Sequence[str]] = None,
identifier: Optional[str] = None,
name: Optional[str] = None) -> CseCustomEntityType
func GetCseCustomEntityType(ctx *Context, name string, id IDInput, state *CseCustomEntityTypeState, opts ...ResourceOption) (*CseCustomEntityType, error)
public static CseCustomEntityType Get(string name, Input<string> id, CseCustomEntityTypeState? state, CustomResourceOptions? opts = null)
public static CseCustomEntityType get(String name, Output<String> id, CseCustomEntityTypeState 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.
- Fields List<string>
Record schema fields. Examples: "file_hash_md5", "file_hash_sha1".".
The following attributes are exported:
- Identifier string
- Machine friendly and unique identifier. Example: "filehash".
- Name string
- Human friend and unique name. Example: "File Hash".
- Fields []string
Record schema fields. Examples: "file_hash_md5", "file_hash_sha1".".
The following attributes are exported:
- Identifier string
- Machine friendly and unique identifier. Example: "filehash".
- Name string
- Human friend and unique name. Example: "File Hash".
- fields List<String>
Record schema fields. Examples: "file_hash_md5", "file_hash_sha1".".
The following attributes are exported:
- identifier String
- Machine friendly and unique identifier. Example: "filehash".
- name String
- Human friend and unique name. Example: "File Hash".
- fields string[]
Record schema fields. Examples: "file_hash_md5", "file_hash_sha1".".
The following attributes are exported:
- identifier string
- Machine friendly and unique identifier. Example: "filehash".
- name string
- Human friend and unique name. Example: "File Hash".
- fields Sequence[str]
Record schema fields. Examples: "file_hash_md5", "file_hash_sha1".".
The following attributes are exported:
- identifier str
- Machine friendly and unique identifier. Example: "filehash".
- name str
- Human friend and unique name. Example: "File Hash".
- fields List<String>
Record schema fields. Examples: "file_hash_md5", "file_hash_sha1".".
The following attributes are exported:
- identifier String
- Machine friendly and unique identifier. Example: "filehash".
- name String
- Human friend and unique name. Example: "File Hash".
Import
Custom entity type can be imported using the field id, e.g.:
hcl
$ pulumi import sumologic:index/cseCustomEntityType:CseCustomEntityType custom_entity_type id
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.