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

dynatrace.LogStorage

Explore with Pulumi AI

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

    Create LogStorage Resource

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

    Constructor syntax

    new LogStorage(name: string, args: LogStorageArgs, opts?: CustomResourceOptions);
    @overload
    def LogStorage(resource_name: str,
                   args: LogStorageArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogStorage(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   enabled: Optional[bool] = None,
                   send_to_storage: Optional[bool] = None,
                   matchers: Optional[LogStorageMatchersArgs] = None,
                   name: Optional[str] = None,
                   scope: Optional[str] = None)
    func NewLogStorage(ctx *Context, name string, args LogStorageArgs, opts ...ResourceOption) (*LogStorage, error)
    public LogStorage(string name, LogStorageArgs args, CustomResourceOptions? opts = null)
    public LogStorage(String name, LogStorageArgs args)
    public LogStorage(String name, LogStorageArgs args, CustomResourceOptions options)
    
    type: dynatrace:LogStorage
    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 LogStorageArgs
    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 LogStorageArgs
    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 LogStorageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogStorageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogStorageArgs
    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 logStorageResource = new Dynatrace.LogStorage("logStorageResource", new()
    {
        Enabled = false,
        SendToStorage = false,
        Matchers = new Dynatrace.Inputs.LogStorageMatchersArgs
        {
            Matchers = new[]
            {
                new Dynatrace.Inputs.LogStorageMatchersMatcherArgs
                {
                    Attribute = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
        },
        Name = "string",
        Scope = "string",
    });
    
    example, err := dynatrace.NewLogStorage(ctx, "logStorageResource", &dynatrace.LogStorageArgs{
    	Enabled:       pulumi.Bool(false),
    	SendToStorage: pulumi.Bool(false),
    	Matchers: &dynatrace.LogStorageMatchersArgs{
    		Matchers: dynatrace.LogStorageMatchersMatcherArray{
    			&dynatrace.LogStorageMatchersMatcherArgs{
    				Attribute: pulumi.String("string"),
    				Operator:  pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Name:  pulumi.String("string"),
    	Scope: pulumi.String("string"),
    })
    
    var logStorageResource = new LogStorage("logStorageResource", LogStorageArgs.builder()        
        .enabled(false)
        .sendToStorage(false)
        .matchers(LogStorageMatchersArgs.builder()
            .matchers(LogStorageMatchersMatcherArgs.builder()
                .attribute("string")
                .operator("string")
                .values("string")
                .build())
            .build())
        .name("string")
        .scope("string")
        .build());
    
    log_storage_resource = dynatrace.LogStorage("logStorageResource",
        enabled=False,
        send_to_storage=False,
        matchers=dynatrace.LogStorageMatchersArgs(
            matchers=[dynatrace.LogStorageMatchersMatcherArgs(
                attribute="string",
                operator="string",
                values=["string"],
            )],
        ),
        name="string",
        scope="string")
    
    const logStorageResource = new dynatrace.LogStorage("logStorageResource", {
        enabled: false,
        sendToStorage: false,
        matchers: {
            matchers: [{
                attribute: "string",
                operator: "string",
                values: ["string"],
            }],
        },
        name: "string",
        scope: "string",
    });
    
    type: dynatrace:LogStorage
    properties:
        enabled: false
        matchers:
            matchers:
                - attribute: string
                  operator: string
                  values:
                    - string
        name: string
        scope: string
        sendToStorage: false
    

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

    Enabled bool
    This setting is enabled (true) or disabled (false)
    SendToStorage bool
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    Matchers Lbrlabs.PulumiPackage.Dynatrace.Inputs.LogStorageMatchers
    no documentation available
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    SendToStorage bool
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    Matchers LogStorageMatchersArgs
    no documentation available
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    sendToStorage Boolean
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    matchers LogStorageMatchers
    no documentation available
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    sendToStorage boolean
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    matchers LogStorageMatchers
    no documentation available
    name string
    Name
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    enabled bool
    This setting is enabled (true) or disabled (false)
    send_to_storage bool
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    matchers LogStorageMatchersArgs
    no documentation available
    name str
    Name
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    sendToStorage Boolean
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    matchers Property Map
    no documentation available
    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 LogStorage 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 LogStorage Resource

    Get an existing LogStorage 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?: LogStorageState, opts?: CustomResourceOptions): LogStorage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            matchers: Optional[LogStorageMatchersArgs] = None,
            name: Optional[str] = None,
            scope: Optional[str] = None,
            send_to_storage: Optional[bool] = None) -> LogStorage
    func GetLogStorage(ctx *Context, name string, id IDInput, state *LogStorageState, opts ...ResourceOption) (*LogStorage, error)
    public static LogStorage Get(string name, Input<string> id, LogStorageState? state, CustomResourceOptions? opts = null)
    public static LogStorage get(String name, Output<String> id, LogStorageState 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:
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Matchers Lbrlabs.PulumiPackage.Dynatrace.Inputs.LogStorageMatchers
    no documentation available
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    SendToStorage bool
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Matchers LogStorageMatchersArgs
    no documentation available
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    SendToStorage bool
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    matchers LogStorageMatchers
    no documentation available
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    sendToStorage Boolean
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    matchers LogStorageMatchers
    no documentation available
    name string
    Name
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    sendToStorage boolean
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    enabled bool
    This setting is enabled (true) or disabled (false)
    matchers LogStorageMatchersArgs
    no documentation available
    name str
    Name
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    send_to_storage bool
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    matchers Property Map
    no documentation available
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    sendToStorage Boolean
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.

    Supporting Types

    LogStorageMatchers, LogStorageMatchersArgs

    LogStorageMatchersMatcher, LogStorageMatchersMatcherArgs

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

    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