1. Packages
  2. Dynatrace
  3. API Docs
  4. LogCustomSource
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

dynatrace.LogCustomSource

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

    Create LogCustomSource Resource

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

    Constructor syntax

    new LogCustomSource(name: string, args: LogCustomSourceArgs, opts?: CustomResourceOptions);
    @overload
    def LogCustomSource(resource_name: str,
                        args: LogCustomSourceArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogCustomSource(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        custom_log_source: Optional[LogCustomSourceCustomLogSourceArgs] = None,
                        enabled: Optional[bool] = None,
                        context: Optional[LogCustomSourceContextArgs] = None,
                        name: Optional[str] = None,
                        scope: Optional[str] = None)
    func NewLogCustomSource(ctx *Context, name string, args LogCustomSourceArgs, opts ...ResourceOption) (*LogCustomSource, error)
    public LogCustomSource(string name, LogCustomSourceArgs args, CustomResourceOptions? opts = null)
    public LogCustomSource(String name, LogCustomSourceArgs args)
    public LogCustomSource(String name, LogCustomSourceArgs args, CustomResourceOptions options)
    
    type: dynatrace:LogCustomSource
    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 LogCustomSourceArgs
    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 LogCustomSourceArgs
    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 LogCustomSourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogCustomSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogCustomSourceArgs
    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 logCustomSourceResource = new Dynatrace.LogCustomSource("logCustomSourceResource", new()
    {
        CustomLogSource = new Dynatrace.Inputs.LogCustomSourceCustomLogSourceArgs
        {
            Type = "string",
            Values = new[]
            {
                "string",
            },
        },
        Enabled = false,
        Context = new Dynatrace.Inputs.LogCustomSourceContextArgs
        {
            Contexts = new[]
            {
                new Dynatrace.Inputs.LogCustomSourceContextContextArgs
                {
                    Attribute = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
        },
        Name = "string",
        Scope = "string",
    });
    
    example, err := dynatrace.NewLogCustomSource(ctx, "logCustomSourceResource", &dynatrace.LogCustomSourceArgs{
    	CustomLogSource: &dynatrace.LogCustomSourceCustomLogSourceArgs{
    		Type: pulumi.String("string"),
    		Values: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Enabled: pulumi.Bool(false),
    	Context: &dynatrace.LogCustomSourceContextArgs{
    		Contexts: dynatrace.LogCustomSourceContextContextArray{
    			&dynatrace.LogCustomSourceContextContextArgs{
    				Attribute: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Name:  pulumi.String("string"),
    	Scope: pulumi.String("string"),
    })
    
    var logCustomSourceResource = new LogCustomSource("logCustomSourceResource", LogCustomSourceArgs.builder()        
        .customLogSource(LogCustomSourceCustomLogSourceArgs.builder()
            .type("string")
            .values("string")
            .build())
        .enabled(false)
        .context(LogCustomSourceContextArgs.builder()
            .contexts(LogCustomSourceContextContextArgs.builder()
                .attribute("string")
                .values("string")
                .build())
            .build())
        .name("string")
        .scope("string")
        .build());
    
    log_custom_source_resource = dynatrace.LogCustomSource("logCustomSourceResource",
        custom_log_source=dynatrace.LogCustomSourceCustomLogSourceArgs(
            type="string",
            values=["string"],
        ),
        enabled=False,
        context=dynatrace.LogCustomSourceContextArgs(
            contexts=[dynatrace.LogCustomSourceContextContextArgs(
                attribute="string",
                values=["string"],
            )],
        ),
        name="string",
        scope="string")
    
    const logCustomSourceResource = new dynatrace.LogCustomSource("logCustomSourceResource", {
        customLogSource: {
            type: "string",
            values: ["string"],
        },
        enabled: false,
        context: {
            contexts: [{
                attribute: "string",
                values: ["string"],
            }],
        },
        name: "string",
        scope: "string",
    });
    
    type: dynatrace:LogCustomSource
    properties:
        context:
            contexts:
                - attribute: string
                  values:
                    - string
        customLogSource:
            type: string
            values:
                - string
        enabled: false
        name: string
        scope: string
    

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

    CustomLogSource Lbrlabs.PulumiPackage.Dynatrace.Inputs.LogCustomSourceCustomLogSource
    no documentation available
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Context Lbrlabs.PulumiPackage.Dynatrace.Inputs.LogCustomSourceContext
    Define Custom Log Source only within context if provided
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    CustomLogSource LogCustomSourceCustomLogSourceArgs
    no documentation available
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Context LogCustomSourceContextArgs
    Define Custom Log Source only within context if provided
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    customLogSource LogCustomSourceCustomLogSource
    no documentation available
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    context LogCustomSourceContext
    Define Custom Log Source only within context if provided
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    customLogSource LogCustomSourceCustomLogSource
    no documentation available
    enabled boolean
    This setting is enabled (true) or disabled (false)
    context LogCustomSourceContext
    Define Custom Log Source only within context if provided
    name string
    Name
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    custom_log_source LogCustomSourceCustomLogSourceArgs
    no documentation available
    enabled bool
    This setting is enabled (true) or disabled (false)
    context LogCustomSourceContextArgs
    Define Custom Log Source only within context if provided
    name str
    Name
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    customLogSource Property Map
    no documentation available
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    context Property Map
    Define Custom Log Source only within context if provided
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.

    Outputs

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

    Get an existing LogCustomSource 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?: LogCustomSourceState, opts?: CustomResourceOptions): LogCustomSource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            context: Optional[LogCustomSourceContextArgs] = None,
            custom_log_source: Optional[LogCustomSourceCustomLogSourceArgs] = None,
            enabled: Optional[bool] = None,
            name: Optional[str] = None,
            scope: Optional[str] = None) -> LogCustomSource
    func GetLogCustomSource(ctx *Context, name string, id IDInput, state *LogCustomSourceState, opts ...ResourceOption) (*LogCustomSource, error)
    public static LogCustomSource Get(string name, Input<string> id, LogCustomSourceState? state, CustomResourceOptions? opts = null)
    public static LogCustomSource get(String name, Output<String> id, LogCustomSourceState 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:
    Context Lbrlabs.PulumiPackage.Dynatrace.Inputs.LogCustomSourceContext
    Define Custom Log Source only within context if provided
    CustomLogSource Lbrlabs.PulumiPackage.Dynatrace.Inputs.LogCustomSourceCustomLogSource
    no documentation available
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    Context LogCustomSourceContextArgs
    Define Custom Log Source only within context if provided
    CustomLogSource LogCustomSourceCustomLogSourceArgs
    no documentation available
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    context LogCustomSourceContext
    Define Custom Log Source only within context if provided
    customLogSource LogCustomSourceCustomLogSource
    no documentation available
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    context LogCustomSourceContext
    Define Custom Log Source only within context if provided
    customLogSource LogCustomSourceCustomLogSource
    no documentation available
    enabled boolean
    This setting is enabled (true) or disabled (false)
    name string
    Name
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    context LogCustomSourceContextArgs
    Define Custom Log Source only within context if provided
    custom_log_source LogCustomSourceCustomLogSourceArgs
    no documentation available
    enabled bool
    This setting is enabled (true) or disabled (false)
    name str
    Name
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    context Property Map
    Define Custom Log Source only within context if provided
    customLogSource Property Map
    no documentation available
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.

    Supporting Types

    LogCustomSourceContext, LogCustomSourceContextArgs

    Contexts List<Lbrlabs.PulumiPackage.Dynatrace.Inputs.LogCustomSourceContextContext>
    Define Custom Log Source only within context if provided
    Contexts []LogCustomSourceContextContext
    Define Custom Log Source only within context if provided
    contexts List<LogCustomSourceContextContext>
    Define Custom Log Source only within context if provided
    contexts LogCustomSourceContextContext[]
    Define Custom Log Source only within context if provided
    contexts Sequence[LogCustomSourceContextContext]
    Define Custom Log Source only within context if provided
    contexts List<Property Map>
    Define Custom Log Source only within context if provided

    LogCustomSourceContextContext, LogCustomSourceContextContextArgs

    Attribute string
    Values List<string>
    Attribute string
    Values []string
    attribute String
    values List<String>
    attribute string
    values string[]
    attribute str
    values Sequence[str]
    attribute String
    values List<String>

    LogCustomSourceCustomLogSource, LogCustomSourceCustomLogSourceArgs

    Type string
    Possible Values: LOG_PATH_PATTERN, WINDOWS_EVENT_LOG
    Values List<string>
    It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
    Type string
    Possible Values: LOG_PATH_PATTERN, WINDOWS_EVENT_LOG
    Values []string
    It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
    type String
    Possible Values: LOG_PATH_PATTERN, WINDOWS_EVENT_LOG
    values List<String>
    It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
    type string
    Possible Values: LOG_PATH_PATTERN, WINDOWS_EVENT_LOG
    values string[]
    It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
    type str
    Possible Values: LOG_PATH_PATTERN, WINDOWS_EVENT_LOG
    values Sequence[str]
    It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
    type String
    Possible Values: LOG_PATH_PATTERN, WINDOWS_EVENT_LOG
    values List<String>
    It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.

    Package Details

    Repository
    dynatrace lbrlabs/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs