1. Packages
  2. Sumo Logic
  3. API Docs
  4. CseEntityNormalizationConfiguration
Sumo Logic v0.21.0 published on Thursday, Apr 11, 2024 by Pulumi

sumologic.CseEntityNormalizationConfiguration

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.21.0 published on Thursday, Apr 11, 2024 by Pulumi

    Provides the Sumologic CSE Entity Normalization Configuration for the whole organization. There can be only one configuration per organization.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const entityNormalizationConfiguration = new sumologic.CseEntityNormalizationConfiguration("entityNormalizationConfiguration", {
        awsNormalizationEnabled: true,
        defaultNormalizedDomain: "domain.com",
        domainMappings: [{
            normalizedDomain: "normalized.domain",
            rawDomain: "raw.domain",
        }],
        fqdnNormalizationEnabled: true,
        normalizeHostnames: true,
        normalizeUsernames: true,
        windowsNormalizationEnabled: true,
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    entity_normalization_configuration = sumologic.CseEntityNormalizationConfiguration("entityNormalizationConfiguration",
        aws_normalization_enabled=True,
        default_normalized_domain="domain.com",
        domain_mappings=[sumologic.CseEntityNormalizationConfigurationDomainMappingArgs(
            normalized_domain="normalized.domain",
            raw_domain="raw.domain",
        )],
        fqdn_normalization_enabled=True,
        normalize_hostnames=True,
        normalize_usernames=True,
        windows_normalization_enabled=True)
    
    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.NewCseEntityNormalizationConfiguration(ctx, "entityNormalizationConfiguration", &sumologic.CseEntityNormalizationConfigurationArgs{
    			AwsNormalizationEnabled: pulumi.Bool(true),
    			DefaultNormalizedDomain: pulumi.String("domain.com"),
    			DomainMappings: sumologic.CseEntityNormalizationConfigurationDomainMappingArray{
    				&sumologic.CseEntityNormalizationConfigurationDomainMappingArgs{
    					NormalizedDomain: pulumi.String("normalized.domain"),
    					RawDomain:        pulumi.String("raw.domain"),
    				},
    			},
    			FqdnNormalizationEnabled:    pulumi.Bool(true),
    			NormalizeHostnames:          pulumi.Bool(true),
    			NormalizeUsernames:          pulumi.Bool(true),
    			WindowsNormalizationEnabled: pulumi.Bool(true),
    		})
    		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 entityNormalizationConfiguration = new SumoLogic.CseEntityNormalizationConfiguration("entityNormalizationConfiguration", new()
        {
            AwsNormalizationEnabled = true,
            DefaultNormalizedDomain = "domain.com",
            DomainMappings = new[]
            {
                new SumoLogic.Inputs.CseEntityNormalizationConfigurationDomainMappingArgs
                {
                    NormalizedDomain = "normalized.domain",
                    RawDomain = "raw.domain",
                },
            },
            FqdnNormalizationEnabled = true,
            NormalizeHostnames = true,
            NormalizeUsernames = true,
            WindowsNormalizationEnabled = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.CseEntityNormalizationConfiguration;
    import com.pulumi.sumologic.CseEntityNormalizationConfigurationArgs;
    import com.pulumi.sumologic.inputs.CseEntityNormalizationConfigurationDomainMappingArgs;
    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 entityNormalizationConfiguration = new CseEntityNormalizationConfiguration("entityNormalizationConfiguration", CseEntityNormalizationConfigurationArgs.builder()        
                .awsNormalizationEnabled(true)
                .defaultNormalizedDomain("domain.com")
                .domainMappings(CseEntityNormalizationConfigurationDomainMappingArgs.builder()
                    .normalizedDomain("normalized.domain")
                    .rawDomain("raw.domain")
                    .build())
                .fqdnNormalizationEnabled(true)
                .normalizeHostnames(true)
                .normalizeUsernames(true)
                .windowsNormalizationEnabled(true)
                .build());
    
        }
    }
    
    resources:
      entityNormalizationConfiguration:
        type: sumologic:CseEntityNormalizationConfiguration
        properties:
          awsNormalizationEnabled: true
          defaultNormalizedDomain: domain.com
          domainMappings:
            - normalizedDomain: normalized.domain
              rawDomain: raw.domain
          fqdnNormalizationEnabled: true
          normalizeHostnames: true
          normalizeUsernames: true
          windowsNormalizationEnabled: true
    

    Create CseEntityNormalizationConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CseEntityNormalizationConfiguration(name: string, args: CseEntityNormalizationConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def CseEntityNormalizationConfiguration(resource_name: str,
                                            args: CseEntityNormalizationConfigurationArgs,
                                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def CseEntityNormalizationConfiguration(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            aws_normalization_enabled: Optional[bool] = None,
                                            domain_mappings: Optional[Sequence[CseEntityNormalizationConfigurationDomainMappingArgs]] = None,
                                            fqdn_normalization_enabled: Optional[bool] = None,
                                            normalize_hostnames: Optional[bool] = None,
                                            normalize_usernames: Optional[bool] = None,
                                            windows_normalization_enabled: Optional[bool] = None,
                                            default_normalized_domain: Optional[str] = None)
    func NewCseEntityNormalizationConfiguration(ctx *Context, name string, args CseEntityNormalizationConfigurationArgs, opts ...ResourceOption) (*CseEntityNormalizationConfiguration, error)
    public CseEntityNormalizationConfiguration(string name, CseEntityNormalizationConfigurationArgs args, CustomResourceOptions? opts = null)
    public CseEntityNormalizationConfiguration(String name, CseEntityNormalizationConfigurationArgs args)
    public CseEntityNormalizationConfiguration(String name, CseEntityNormalizationConfigurationArgs args, CustomResourceOptions options)
    
    type: sumologic:CseEntityNormalizationConfiguration
    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 CseEntityNormalizationConfigurationArgs
    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 CseEntityNormalizationConfigurationArgs
    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 CseEntityNormalizationConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CseEntityNormalizationConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CseEntityNormalizationConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var cseEntityNormalizationConfigurationResource = new SumoLogic.CseEntityNormalizationConfiguration("cseEntityNormalizationConfigurationResource", new()
    {
        AwsNormalizationEnabled = false,
        DomainMappings = new[]
        {
            new SumoLogic.Inputs.CseEntityNormalizationConfigurationDomainMappingArgs
            {
                NormalizedDomain = "string",
                RawDomain = "string",
            },
        },
        FqdnNormalizationEnabled = false,
        NormalizeHostnames = false,
        NormalizeUsernames = false,
        WindowsNormalizationEnabled = false,
        DefaultNormalizedDomain = "string",
    });
    
    example, err := sumologic.NewCseEntityNormalizationConfiguration(ctx, "cseEntityNormalizationConfigurationResource", &sumologic.CseEntityNormalizationConfigurationArgs{
    	AwsNormalizationEnabled: pulumi.Bool(false),
    	DomainMappings: sumologic.CseEntityNormalizationConfigurationDomainMappingArray{
    		&sumologic.CseEntityNormalizationConfigurationDomainMappingArgs{
    			NormalizedDomain: pulumi.String("string"),
    			RawDomain:        pulumi.String("string"),
    		},
    	},
    	FqdnNormalizationEnabled:    pulumi.Bool(false),
    	NormalizeHostnames:          pulumi.Bool(false),
    	NormalizeUsernames:          pulumi.Bool(false),
    	WindowsNormalizationEnabled: pulumi.Bool(false),
    	DefaultNormalizedDomain:     pulumi.String("string"),
    })
    
    var cseEntityNormalizationConfigurationResource = new CseEntityNormalizationConfiguration("cseEntityNormalizationConfigurationResource", CseEntityNormalizationConfigurationArgs.builder()        
        .awsNormalizationEnabled(false)
        .domainMappings(CseEntityNormalizationConfigurationDomainMappingArgs.builder()
            .normalizedDomain("string")
            .rawDomain("string")
            .build())
        .fqdnNormalizationEnabled(false)
        .normalizeHostnames(false)
        .normalizeUsernames(false)
        .windowsNormalizationEnabled(false)
        .defaultNormalizedDomain("string")
        .build());
    
    cse_entity_normalization_configuration_resource = sumologic.CseEntityNormalizationConfiguration("cseEntityNormalizationConfigurationResource",
        aws_normalization_enabled=False,
        domain_mappings=[sumologic.CseEntityNormalizationConfigurationDomainMappingArgs(
            normalized_domain="string",
            raw_domain="string",
        )],
        fqdn_normalization_enabled=False,
        normalize_hostnames=False,
        normalize_usernames=False,
        windows_normalization_enabled=False,
        default_normalized_domain="string")
    
    const cseEntityNormalizationConfigurationResource = new sumologic.CseEntityNormalizationConfiguration("cseEntityNormalizationConfigurationResource", {
        awsNormalizationEnabled: false,
        domainMappings: [{
            normalizedDomain: "string",
            rawDomain: "string",
        }],
        fqdnNormalizationEnabled: false,
        normalizeHostnames: false,
        normalizeUsernames: false,
        windowsNormalizationEnabled: false,
        defaultNormalizedDomain: "string",
    });
    
    type: sumologic:CseEntityNormalizationConfiguration
    properties:
        awsNormalizationEnabled: false
        defaultNormalizedDomain: string
        domainMappings:
            - normalizedDomain: string
              rawDomain: string
        fqdnNormalizationEnabled: false
        normalizeHostnames: false
        normalizeUsernames: false
        windowsNormalizationEnabled: false
    

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

    AwsNormalizationEnabled bool
    Normalize AWS ARN and Usernames.
    DomainMappings List<Pulumi.SumoLogic.Inputs.CseEntityNormalizationConfigurationDomainMapping>
    Secondary domains.
    FqdnNormalizationEnabled bool
    Normalize names in the form user@somedomain.net or hostname.somedomain.net
    NormalizeHostnames bool
    If hostname normalization is enabled.
    NormalizeUsernames bool
    If username normalization is enabled.

    • The following attributes are exported:
    WindowsNormalizationEnabled bool
    Normalize active directory domains username and hostname formats.
    DefaultNormalizedDomain string
    When normalization is configured, at least one domain must be configured and a "Normalized Default Domain" must be provided.
    AwsNormalizationEnabled bool
    Normalize AWS ARN and Usernames.
    DomainMappings []CseEntityNormalizationConfigurationDomainMappingArgs
    Secondary domains.
    FqdnNormalizationEnabled bool
    Normalize names in the form user@somedomain.net or hostname.somedomain.net
    NormalizeHostnames bool
    If hostname normalization is enabled.
    NormalizeUsernames bool
    If username normalization is enabled.

    • The following attributes are exported:
    WindowsNormalizationEnabled bool
    Normalize active directory domains username and hostname formats.
    DefaultNormalizedDomain string
    When normalization is configured, at least one domain must be configured and a "Normalized Default Domain" must be provided.
    awsNormalizationEnabled Boolean
    Normalize AWS ARN and Usernames.
    domainMappings List<CseEntityNormalizationConfigurationDomainMapping>
    Secondary domains.
    fqdnNormalizationEnabled Boolean
    Normalize names in the form user@somedomain.net or hostname.somedomain.net
    normalizeHostnames Boolean
    If hostname normalization is enabled.
    normalizeUsernames Boolean
    If username normalization is enabled.

    • The following attributes are exported:
    windowsNormalizationEnabled Boolean
    Normalize active directory domains username and hostname formats.
    defaultNormalizedDomain String
    When normalization is configured, at least one domain must be configured and a "Normalized Default Domain" must be provided.
    awsNormalizationEnabled boolean
    Normalize AWS ARN and Usernames.
    domainMappings CseEntityNormalizationConfigurationDomainMapping[]
    Secondary domains.
    fqdnNormalizationEnabled boolean
    Normalize names in the form user@somedomain.net or hostname.somedomain.net
    normalizeHostnames boolean
    If hostname normalization is enabled.
    normalizeUsernames boolean
    If username normalization is enabled.

    • The following attributes are exported:
    windowsNormalizationEnabled boolean
    Normalize active directory domains username and hostname formats.
    defaultNormalizedDomain string
    When normalization is configured, at least one domain must be configured and a "Normalized Default Domain" must be provided.
    aws_normalization_enabled bool
    Normalize AWS ARN and Usernames.
    domain_mappings Sequence[CseEntityNormalizationConfigurationDomainMappingArgs]
    Secondary domains.
    fqdn_normalization_enabled bool
    Normalize names in the form user@somedomain.net or hostname.somedomain.net
    normalize_hostnames bool
    If hostname normalization is enabled.
    normalize_usernames bool
    If username normalization is enabled.

    • The following attributes are exported:
    windows_normalization_enabled bool
    Normalize active directory domains username and hostname formats.
    default_normalized_domain str
    When normalization is configured, at least one domain must be configured and a "Normalized Default Domain" must be provided.
    awsNormalizationEnabled Boolean
    Normalize AWS ARN and Usernames.
    domainMappings List<Property Map>
    Secondary domains.
    fqdnNormalizationEnabled Boolean
    Normalize names in the form user@somedomain.net or hostname.somedomain.net
    normalizeHostnames Boolean
    If hostname normalization is enabled.
    normalizeUsernames Boolean
    If username normalization is enabled.

    • The following attributes are exported:
    windowsNormalizationEnabled Boolean
    Normalize active directory domains username and hostname formats.
    defaultNormalizedDomain String
    When normalization is configured, at least one domain must be configured and a "Normalized Default Domain" must be provided.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CseEntityNormalizationConfiguration 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 CseEntityNormalizationConfiguration Resource

    Get an existing CseEntityNormalizationConfiguration 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?: CseEntityNormalizationConfigurationState, opts?: CustomResourceOptions): CseEntityNormalizationConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aws_normalization_enabled: Optional[bool] = None,
            default_normalized_domain: Optional[str] = None,
            domain_mappings: Optional[Sequence[CseEntityNormalizationConfigurationDomainMappingArgs]] = None,
            fqdn_normalization_enabled: Optional[bool] = None,
            normalize_hostnames: Optional[bool] = None,
            normalize_usernames: Optional[bool] = None,
            windows_normalization_enabled: Optional[bool] = None) -> CseEntityNormalizationConfiguration
    func GetCseEntityNormalizationConfiguration(ctx *Context, name string, id IDInput, state *CseEntityNormalizationConfigurationState, opts ...ResourceOption) (*CseEntityNormalizationConfiguration, error)
    public static CseEntityNormalizationConfiguration Get(string name, Input<string> id, CseEntityNormalizationConfigurationState? state, CustomResourceOptions? opts = null)
    public static CseEntityNormalizationConfiguration get(String name, Output<String> id, CseEntityNormalizationConfigurationState 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:
    AwsNormalizationEnabled bool
    Normalize AWS ARN and Usernames.
    DefaultNormalizedDomain string
    When normalization is configured, at least one domain must be configured and a "Normalized Default Domain" must be provided.
    DomainMappings List<Pulumi.SumoLogic.Inputs.CseEntityNormalizationConfigurationDomainMapping>
    Secondary domains.
    FqdnNormalizationEnabled bool
    Normalize names in the form user@somedomain.net or hostname.somedomain.net
    NormalizeHostnames bool
    If hostname normalization is enabled.
    NormalizeUsernames bool
    If username normalization is enabled.

    • The following attributes are exported:
    WindowsNormalizationEnabled bool
    Normalize active directory domains username and hostname formats.
    AwsNormalizationEnabled bool
    Normalize AWS ARN and Usernames.
    DefaultNormalizedDomain string
    When normalization is configured, at least one domain must be configured and a "Normalized Default Domain" must be provided.
    DomainMappings []CseEntityNormalizationConfigurationDomainMappingArgs
    Secondary domains.
    FqdnNormalizationEnabled bool
    Normalize names in the form user@somedomain.net or hostname.somedomain.net
    NormalizeHostnames bool
    If hostname normalization is enabled.
    NormalizeUsernames bool
    If username normalization is enabled.

    • The following attributes are exported:
    WindowsNormalizationEnabled bool
    Normalize active directory domains username and hostname formats.
    awsNormalizationEnabled Boolean
    Normalize AWS ARN and Usernames.
    defaultNormalizedDomain String
    When normalization is configured, at least one domain must be configured and a "Normalized Default Domain" must be provided.
    domainMappings List<CseEntityNormalizationConfigurationDomainMapping>
    Secondary domains.
    fqdnNormalizationEnabled Boolean
    Normalize names in the form user@somedomain.net or hostname.somedomain.net
    normalizeHostnames Boolean
    If hostname normalization is enabled.
    normalizeUsernames Boolean
    If username normalization is enabled.

    • The following attributes are exported:
    windowsNormalizationEnabled Boolean
    Normalize active directory domains username and hostname formats.
    awsNormalizationEnabled boolean
    Normalize AWS ARN and Usernames.
    defaultNormalizedDomain string
    When normalization is configured, at least one domain must be configured and a "Normalized Default Domain" must be provided.
    domainMappings CseEntityNormalizationConfigurationDomainMapping[]
    Secondary domains.
    fqdnNormalizationEnabled boolean
    Normalize names in the form user@somedomain.net or hostname.somedomain.net
    normalizeHostnames boolean
    If hostname normalization is enabled.
    normalizeUsernames boolean
    If username normalization is enabled.

    • The following attributes are exported:
    windowsNormalizationEnabled boolean
    Normalize active directory domains username and hostname formats.
    aws_normalization_enabled bool
    Normalize AWS ARN and Usernames.
    default_normalized_domain str
    When normalization is configured, at least one domain must be configured and a "Normalized Default Domain" must be provided.
    domain_mappings Sequence[CseEntityNormalizationConfigurationDomainMappingArgs]
    Secondary domains.
    fqdn_normalization_enabled bool
    Normalize names in the form user@somedomain.net or hostname.somedomain.net
    normalize_hostnames bool
    If hostname normalization is enabled.
    normalize_usernames bool
    If username normalization is enabled.

    • The following attributes are exported:
    windows_normalization_enabled bool
    Normalize active directory domains username and hostname formats.
    awsNormalizationEnabled Boolean
    Normalize AWS ARN and Usernames.
    defaultNormalizedDomain String
    When normalization is configured, at least one domain must be configured and a "Normalized Default Domain" must be provided.
    domainMappings List<Property Map>
    Secondary domains.
    fqdnNormalizationEnabled Boolean
    Normalize names in the form user@somedomain.net or hostname.somedomain.net
    normalizeHostnames Boolean
    If hostname normalization is enabled.
    normalizeUsernames Boolean
    If username normalization is enabled.

    • The following attributes are exported:
    windowsNormalizationEnabled Boolean
    Normalize active directory domains username and hostname formats.

    Supporting Types

    CseEntityNormalizationConfigurationDomainMapping, CseEntityNormalizationConfigurationDomainMappingArgs

    NormalizedDomain string
    The normalized domain.
    RawDomain string
    The raw domain to be normalized.
    NormalizedDomain string
    The normalized domain.
    RawDomain string
    The raw domain to be normalized.
    normalizedDomain String
    The normalized domain.
    rawDomain String
    The raw domain to be normalized.
    normalizedDomain string
    The normalized domain.
    rawDomain string
    The raw domain to be normalized.
    normalized_domain str
    The normalized domain.
    raw_domain str
    The raw domain to be normalized.
    normalizedDomain String
    The normalized domain.
    rawDomain String
    The raw domain to be normalized.

    Import

    Entity Normalization Configuration can be imported using the id cse-entity-normalization-configuration:

    hcl

    $ pulumi import sumologic:index/cseEntityNormalizationConfiguration:CseEntityNormalizationConfiguration entity_normalization_configuration cse-entity-normalization-configuration
    

    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.
    sumologic logo
    Sumo Logic v0.21.0 published on Thursday, Apr 11, 2024 by Pulumi