sumologic.CseCustomEntityType
Explore with Pulumi AI
Provides a Sumologic CSE Custom Entity Type.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;
return await Deployment.RunAsync(() =>
{
var customEntityType = new SumoLogic.CseCustomEntityType("customEntityType", new()
{
Fields = new[]
{
"file_hash_md5",
"file_hash_sha1",
},
Identifier = "identifier",
});
});
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, "customEntityType", &sumologic.CseCustomEntityTypeArgs{
Fields: pulumi.StringArray{
pulumi.String("file_hash_md5"),
pulumi.String("file_hash_sha1"),
},
Identifier: pulumi.String("identifier"),
})
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.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()
.fields(
"file_hash_md5",
"file_hash_sha1")
.identifier("identifier")
.build());
}
}
import pulumi
import pulumi_sumologic as sumologic
custom_entity_type = sumologic.CseCustomEntityType("customEntityType",
fields=[
"file_hash_md5",
"file_hash_sha1",
],
identifier="identifier")
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const customEntityType = new sumologic.CseCustomEntityType("customEntityType", {
fields: [
"file_hash_md5",
"file_hash_sha1",
],
identifier: "identifier",
});
resources:
customEntityType:
type: sumologic:CseCustomEntityType
properties:
fields:
- file_hash_md5
- file_hash_sha1
identifier: identifier
Create CseCustomEntityType Resource
new CseCustomEntityType(name: string, args: CseCustomEntityTypeArgs, opts?: CustomResourceOptions);
@overload
def CseCustomEntityType(resource_name: str,
opts: Optional[ResourceOptions] = None,
fields: Optional[Sequence[str]] = None,
identifier: Optional[str] = None,
name: Optional[str] = None)
@overload
def CseCustomEntityType(resource_name: str,
args: CseCustomEntityTypeArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
Package Details
- Repository
- Sumo Logic pulumi/pulumi-sumologic
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
sumologic
Terraform Provider.