1. Packages
  2. Coralogix Provider
  3. API Docs
  4. TcoPoliciesLogs
coralogix 2.0.16 published on Monday, Apr 14, 2025 by coralogix

coralogix.TcoPoliciesLogs

Explore with Pulumi AI

Coralogix TCO-Policies-List. For more information - https://coralogix.com/docs/tco-optimizer-api.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as coralogix from "@pulumi/coralogix";

const tcoPolicies = new coralogix.TcoPoliciesLogs("tcoPolicies", {policies: [
    {
        applications: {
            names: ["prod"],
            ruleType: "starts_with",
        },
        archiveRetentionId: "e1c980d0-c910-4c54-8326-67f3cf95645a",
        name: "Example tco_policy from terraform 1",
        priority: "low",
        severities: [
            "debug",
            "verbose",
            "info",
        ],
        subsystems: {
            names: [
                "mobile",
                "web",
            ],
            ruleType: "is",
        },
    },
    {
        applications: {
            names: ["prod"],
            ruleType: "starts_with",
        },
        name: "Example tco_policy from terraform 2",
        priority: "medium",
        severities: [
            "error",
            "warning",
            "critical",
        ],
        subsystems: {
            names: [
                "mobile",
                "web",
            ],
            ruleType: "is",
        },
    },
    {
        applications: {
            names: ["prod"],
            ruleType: "starts_with",
        },
        name: "Example tco_policy from terraform 3",
        priority: "high",
        severities: [
            "error",
            "warning",
            "critical",
        ],
        subsystems: {
            names: [
                "mobile",
                "web",
            ],
            ruleType: "is",
        },
    },
    {
        applications: {
            names: ["prod"],
            ruleType: "starts_with",
        },
        name: "Example tco_policy from terraform 4",
        priority: "high",
        severities: [
            "error",
            "warning",
            "critical",
        ],
        subsystems: {
            names: [
                "mobile",
                "web",
            ],
            ruleType: "is",
        },
    },
]});
Copy
import pulumi
import pulumi_coralogix as coralogix

tco_policies = coralogix.TcoPoliciesLogs("tcoPolicies", policies=[
    {
        "applications": {
            "names": ["prod"],
            "rule_type": "starts_with",
        },
        "archive_retention_id": "e1c980d0-c910-4c54-8326-67f3cf95645a",
        "name": "Example tco_policy from terraform 1",
        "priority": "low",
        "severities": [
            "debug",
            "verbose",
            "info",
        ],
        "subsystems": {
            "names": [
                "mobile",
                "web",
            ],
            "rule_type": "is",
        },
    },
    {
        "applications": {
            "names": ["prod"],
            "rule_type": "starts_with",
        },
        "name": "Example tco_policy from terraform 2",
        "priority": "medium",
        "severities": [
            "error",
            "warning",
            "critical",
        ],
        "subsystems": {
            "names": [
                "mobile",
                "web",
            ],
            "rule_type": "is",
        },
    },
    {
        "applications": {
            "names": ["prod"],
            "rule_type": "starts_with",
        },
        "name": "Example tco_policy from terraform 3",
        "priority": "high",
        "severities": [
            "error",
            "warning",
            "critical",
        ],
        "subsystems": {
            "names": [
                "mobile",
                "web",
            ],
            "rule_type": "is",
        },
    },
    {
        "applications": {
            "names": ["prod"],
            "rule_type": "starts_with",
        },
        "name": "Example tco_policy from terraform 4",
        "priority": "high",
        "severities": [
            "error",
            "warning",
            "critical",
        ],
        "subsystems": {
            "names": [
                "mobile",
                "web",
            ],
            "rule_type": "is",
        },
    },
])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/coralogix/v2/coralogix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := coralogix.NewTcoPoliciesLogs(ctx, "tcoPolicies", &coralogix.TcoPoliciesLogsArgs{
			Policies: coralogix.TcoPoliciesLogsPolicyArray{
				&coralogix.TcoPoliciesLogsPolicyArgs{
					Applications: &coralogix.TcoPoliciesLogsPolicyApplicationsArgs{
						Names: pulumi.StringArray{
							pulumi.String("prod"),
						},
						RuleType: pulumi.String("starts_with"),
					},
					ArchiveRetentionId: pulumi.String("e1c980d0-c910-4c54-8326-67f3cf95645a"),
					Name:               pulumi.String("Example tco_policy from terraform 1"),
					Priority:           pulumi.String("low"),
					Severities: pulumi.StringArray{
						pulumi.String("debug"),
						pulumi.String("verbose"),
						pulumi.String("info"),
					},
					Subsystems: &coralogix.TcoPoliciesLogsPolicySubsystemsArgs{
						Names: pulumi.StringArray{
							pulumi.String("mobile"),
							pulumi.String("web"),
						},
						RuleType: pulumi.String("is"),
					},
				},
				&coralogix.TcoPoliciesLogsPolicyArgs{
					Applications: &coralogix.TcoPoliciesLogsPolicyApplicationsArgs{
						Names: pulumi.StringArray{
							pulumi.String("prod"),
						},
						RuleType: pulumi.String("starts_with"),
					},
					Name:     pulumi.String("Example tco_policy from terraform 2"),
					Priority: pulumi.String("medium"),
					Severities: pulumi.StringArray{
						pulumi.String("error"),
						pulumi.String("warning"),
						pulumi.String("critical"),
					},
					Subsystems: &coralogix.TcoPoliciesLogsPolicySubsystemsArgs{
						Names: pulumi.StringArray{
							pulumi.String("mobile"),
							pulumi.String("web"),
						},
						RuleType: pulumi.String("is"),
					},
				},
				&coralogix.TcoPoliciesLogsPolicyArgs{
					Applications: &coralogix.TcoPoliciesLogsPolicyApplicationsArgs{
						Names: pulumi.StringArray{
							pulumi.String("prod"),
						},
						RuleType: pulumi.String("starts_with"),
					},
					Name:     pulumi.String("Example tco_policy from terraform 3"),
					Priority: pulumi.String("high"),
					Severities: pulumi.StringArray{
						pulumi.String("error"),
						pulumi.String("warning"),
						pulumi.String("critical"),
					},
					Subsystems: &coralogix.TcoPoliciesLogsPolicySubsystemsArgs{
						Names: pulumi.StringArray{
							pulumi.String("mobile"),
							pulumi.String("web"),
						},
						RuleType: pulumi.String("is"),
					},
				},
				&coralogix.TcoPoliciesLogsPolicyArgs{
					Applications: &coralogix.TcoPoliciesLogsPolicyApplicationsArgs{
						Names: pulumi.StringArray{
							pulumi.String("prod"),
						},
						RuleType: pulumi.String("starts_with"),
					},
					Name:     pulumi.String("Example tco_policy from terraform 4"),
					Priority: pulumi.String("high"),
					Severities: pulumi.StringArray{
						pulumi.String("error"),
						pulumi.String("warning"),
						pulumi.String("critical"),
					},
					Subsystems: &coralogix.TcoPoliciesLogsPolicySubsystemsArgs{
						Names: pulumi.StringArray{
							pulumi.String("mobile"),
							pulumi.String("web"),
						},
						RuleType: pulumi.String("is"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Coralogix = Pulumi.Coralogix;

return await Deployment.RunAsync(() => 
{
    var tcoPolicies = new Coralogix.TcoPoliciesLogs("tcoPolicies", new()
    {
        Policies = new[]
        {
            new Coralogix.Inputs.TcoPoliciesLogsPolicyArgs
            {
                Applications = new Coralogix.Inputs.TcoPoliciesLogsPolicyApplicationsArgs
                {
                    Names = new[]
                    {
                        "prod",
                    },
                    RuleType = "starts_with",
                },
                ArchiveRetentionId = "e1c980d0-c910-4c54-8326-67f3cf95645a",
                Name = "Example tco_policy from terraform 1",
                Priority = "low",
                Severities = new[]
                {
                    "debug",
                    "verbose",
                    "info",
                },
                Subsystems = new Coralogix.Inputs.TcoPoliciesLogsPolicySubsystemsArgs
                {
                    Names = new[]
                    {
                        "mobile",
                        "web",
                    },
                    RuleType = "is",
                },
            },
            new Coralogix.Inputs.TcoPoliciesLogsPolicyArgs
            {
                Applications = new Coralogix.Inputs.TcoPoliciesLogsPolicyApplicationsArgs
                {
                    Names = new[]
                    {
                        "prod",
                    },
                    RuleType = "starts_with",
                },
                Name = "Example tco_policy from terraform 2",
                Priority = "medium",
                Severities = new[]
                {
                    "error",
                    "warning",
                    "critical",
                },
                Subsystems = new Coralogix.Inputs.TcoPoliciesLogsPolicySubsystemsArgs
                {
                    Names = new[]
                    {
                        "mobile",
                        "web",
                    },
                    RuleType = "is",
                },
            },
            new Coralogix.Inputs.TcoPoliciesLogsPolicyArgs
            {
                Applications = new Coralogix.Inputs.TcoPoliciesLogsPolicyApplicationsArgs
                {
                    Names = new[]
                    {
                        "prod",
                    },
                    RuleType = "starts_with",
                },
                Name = "Example tco_policy from terraform 3",
                Priority = "high",
                Severities = new[]
                {
                    "error",
                    "warning",
                    "critical",
                },
                Subsystems = new Coralogix.Inputs.TcoPoliciesLogsPolicySubsystemsArgs
                {
                    Names = new[]
                    {
                        "mobile",
                        "web",
                    },
                    RuleType = "is",
                },
            },
            new Coralogix.Inputs.TcoPoliciesLogsPolicyArgs
            {
                Applications = new Coralogix.Inputs.TcoPoliciesLogsPolicyApplicationsArgs
                {
                    Names = new[]
                    {
                        "prod",
                    },
                    RuleType = "starts_with",
                },
                Name = "Example tco_policy from terraform 4",
                Priority = "high",
                Severities = new[]
                {
                    "error",
                    "warning",
                    "critical",
                },
                Subsystems = new Coralogix.Inputs.TcoPoliciesLogsPolicySubsystemsArgs
                {
                    Names = new[]
                    {
                        "mobile",
                        "web",
                    },
                    RuleType = "is",
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.coralogix.TcoPoliciesLogs;
import com.pulumi.coralogix.TcoPoliciesLogsArgs;
import com.pulumi.coralogix.inputs.TcoPoliciesLogsPolicyArgs;
import com.pulumi.coralogix.inputs.TcoPoliciesLogsPolicyApplicationsArgs;
import com.pulumi.coralogix.inputs.TcoPoliciesLogsPolicySubsystemsArgs;
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 tcoPolicies = new TcoPoliciesLogs("tcoPolicies", TcoPoliciesLogsArgs.builder()
            .policies(            
                TcoPoliciesLogsPolicyArgs.builder()
                    .applications(TcoPoliciesLogsPolicyApplicationsArgs.builder()
                        .names("prod")
                        .ruleType("starts_with")
                        .build())
                    .archiveRetentionId("e1c980d0-c910-4c54-8326-67f3cf95645a")
                    .name("Example tco_policy from terraform 1")
                    .priority("low")
                    .severities(                    
                        "debug",
                        "verbose",
                        "info")
                    .subsystems(TcoPoliciesLogsPolicySubsystemsArgs.builder()
                        .names(                        
                            "mobile",
                            "web")
                        .ruleType("is")
                        .build())
                    .build(),
                TcoPoliciesLogsPolicyArgs.builder()
                    .applications(TcoPoliciesLogsPolicyApplicationsArgs.builder()
                        .names("prod")
                        .ruleType("starts_with")
                        .build())
                    .name("Example tco_policy from terraform 2")
                    .priority("medium")
                    .severities(                    
                        "error",
                        "warning",
                        "critical")
                    .subsystems(TcoPoliciesLogsPolicySubsystemsArgs.builder()
                        .names(                        
                            "mobile",
                            "web")
                        .ruleType("is")
                        .build())
                    .build(),
                TcoPoliciesLogsPolicyArgs.builder()
                    .applications(TcoPoliciesLogsPolicyApplicationsArgs.builder()
                        .names("prod")
                        .ruleType("starts_with")
                        .build())
                    .name("Example tco_policy from terraform 3")
                    .priority("high")
                    .severities(                    
                        "error",
                        "warning",
                        "critical")
                    .subsystems(TcoPoliciesLogsPolicySubsystemsArgs.builder()
                        .names(                        
                            "mobile",
                            "web")
                        .ruleType("is")
                        .build())
                    .build(),
                TcoPoliciesLogsPolicyArgs.builder()
                    .applications(TcoPoliciesLogsPolicyApplicationsArgs.builder()
                        .names("prod")
                        .ruleType("starts_with")
                        .build())
                    .name("Example tco_policy from terraform 4")
                    .priority("high")
                    .severities(                    
                        "error",
                        "warning",
                        "critical")
                    .subsystems(TcoPoliciesLogsPolicySubsystemsArgs.builder()
                        .names(                        
                            "mobile",
                            "web")
                        .ruleType("is")
                        .build())
                    .build())
            .build());

    }
}
Copy
resources:
  tcoPolicies:
    type: coralogix:TcoPoliciesLogs
    properties:
      policies:
        - applications:
            names:
              - prod
            ruleType: starts_with
          archiveRetentionId: e1c980d0-c910-4c54-8326-67f3cf95645a
          name: Example tco_policy from terraform 1
          priority: low
          severities:
            - debug
            - verbose
            - info
          subsystems:
            names:
              - mobile
              - web
            ruleType: is
        - applications:
            names:
              - prod
            ruleType: starts_with
          name: Example tco_policy from terraform 2
          priority: medium
          severities:
            - error
            - warning
            - critical
          subsystems:
            names:
              - mobile
              - web
            ruleType: is
        - applications:
            names:
              - prod
            ruleType: starts_with
          name: Example tco_policy from terraform 3
          priority: high
          severities:
            - error
            - warning
            - critical
          subsystems:
            names:
              - mobile
              - web
            ruleType: is
        - applications:
            names:
              - prod
            ruleType: starts_with
          name: Example tco_policy from terraform 4
          priority: high
          severities:
            - error
            - warning
            - critical
          subsystems:
            names:
              - mobile
              - web
            ruleType: is
Copy

Create TcoPoliciesLogs Resource

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

Constructor syntax

new TcoPoliciesLogs(name: string, args: TcoPoliciesLogsArgs, opts?: CustomResourceOptions);
@overload
def TcoPoliciesLogs(resource_name: str,
                    args: TcoPoliciesLogsArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def TcoPoliciesLogs(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    policies: Optional[Sequence[TcoPoliciesLogsPolicyArgs]] = None)
func NewTcoPoliciesLogs(ctx *Context, name string, args TcoPoliciesLogsArgs, opts ...ResourceOption) (*TcoPoliciesLogs, error)
public TcoPoliciesLogs(string name, TcoPoliciesLogsArgs args, CustomResourceOptions? opts = null)
public TcoPoliciesLogs(String name, TcoPoliciesLogsArgs args)
public TcoPoliciesLogs(String name, TcoPoliciesLogsArgs args, CustomResourceOptions options)
type: coralogix:TcoPoliciesLogs
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TcoPoliciesLogsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TcoPoliciesLogsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TcoPoliciesLogsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TcoPoliciesLogsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TcoPoliciesLogsArgs
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 tcoPoliciesLogsResource = new Coralogix.TcoPoliciesLogs("tcoPoliciesLogsResource", new()
{
    Policies = new[]
    {
        new Coralogix.Inputs.TcoPoliciesLogsPolicyArgs
        {
            Name = "string",
            Priority = "string",
            Applications = new Coralogix.Inputs.TcoPoliciesLogsPolicyApplicationsArgs
            {
                Names = new[]
                {
                    "string",
                },
                RuleType = "string",
            },
            ArchiveRetentionId = "string",
            Description = "string",
            Enabled = false,
            Id = "string",
            Order = 0,
            Severities = new[]
            {
                "string",
            },
            Subsystems = new Coralogix.Inputs.TcoPoliciesLogsPolicySubsystemsArgs
            {
                Names = new[]
                {
                    "string",
                },
                RuleType = "string",
            },
        },
    },
});
Copy
example, err := coralogix.NewTcoPoliciesLogs(ctx, "tcoPoliciesLogsResource", &coralogix.TcoPoliciesLogsArgs{
Policies: .TcoPoliciesLogsPolicyArray{
&.TcoPoliciesLogsPolicyArgs{
Name: pulumi.String("string"),
Priority: pulumi.String("string"),
Applications: &.TcoPoliciesLogsPolicyApplicationsArgs{
Names: pulumi.StringArray{
pulumi.String("string"),
},
RuleType: pulumi.String("string"),
},
ArchiveRetentionId: pulumi.String("string"),
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Id: pulumi.String("string"),
Order: pulumi.Float64(0),
Severities: pulumi.StringArray{
pulumi.String("string"),
},
Subsystems: &.TcoPoliciesLogsPolicySubsystemsArgs{
Names: pulumi.StringArray{
pulumi.String("string"),
},
RuleType: pulumi.String("string"),
},
},
},
})
Copy
var tcoPoliciesLogsResource = new TcoPoliciesLogs("tcoPoliciesLogsResource", TcoPoliciesLogsArgs.builder()
    .policies(TcoPoliciesLogsPolicyArgs.builder()
        .name("string")
        .priority("string")
        .applications(TcoPoliciesLogsPolicyApplicationsArgs.builder()
            .names("string")
            .ruleType("string")
            .build())
        .archiveRetentionId("string")
        .description("string")
        .enabled(false)
        .id("string")
        .order(0)
        .severities("string")
        .subsystems(TcoPoliciesLogsPolicySubsystemsArgs.builder()
            .names("string")
            .ruleType("string")
            .build())
        .build())
    .build());
Copy
tco_policies_logs_resource = coralogix.TcoPoliciesLogs("tcoPoliciesLogsResource", policies=[{
    "name": "string",
    "priority": "string",
    "applications": {
        "names": ["string"],
        "rule_type": "string",
    },
    "archive_retention_id": "string",
    "description": "string",
    "enabled": False,
    "id": "string",
    "order": 0,
    "severities": ["string"],
    "subsystems": {
        "names": ["string"],
        "rule_type": "string",
    },
}])
Copy
const tcoPoliciesLogsResource = new coralogix.TcoPoliciesLogs("tcoPoliciesLogsResource", {policies: [{
    name: "string",
    priority: "string",
    applications: {
        names: ["string"],
        ruleType: "string",
    },
    archiveRetentionId: "string",
    description: "string",
    enabled: false,
    id: "string",
    order: 0,
    severities: ["string"],
    subsystems: {
        names: ["string"],
        ruleType: "string",
    },
}]});
Copy
type: coralogix:TcoPoliciesLogs
properties:
    policies:
        - applications:
            names:
                - string
            ruleType: string
          archiveRetentionId: string
          description: string
          enabled: false
          id: string
          name: string
          order: 0
          priority: string
          severities:
            - string
          subsystems:
            names:
                - string
            ruleType: string
Copy

TcoPoliciesLogs Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The TcoPoliciesLogs resource accepts the following input properties:

Policies This property is required. List<TcoPoliciesLogsPolicy>
Policies This property is required. []TcoPoliciesLogsPolicyArgs
policies This property is required. List<TcoPoliciesLogsPolicy>
policies This property is required. TcoPoliciesLogsPolicy[]
policies This property is required. List<Property Map>

Outputs

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

Get an existing TcoPoliciesLogs 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?: TcoPoliciesLogsState, opts?: CustomResourceOptions): TcoPoliciesLogs
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        policies: Optional[Sequence[TcoPoliciesLogsPolicyArgs]] = None) -> TcoPoliciesLogs
func GetTcoPoliciesLogs(ctx *Context, name string, id IDInput, state *TcoPoliciesLogsState, opts ...ResourceOption) (*TcoPoliciesLogs, error)
public static TcoPoliciesLogs Get(string name, Input<string> id, TcoPoliciesLogsState? state, CustomResourceOptions? opts = null)
public static TcoPoliciesLogs get(String name, Output<String> id, TcoPoliciesLogsState state, CustomResourceOptions options)
resources:  _:    type: coralogix:TcoPoliciesLogs    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.

Supporting Types

TcoPoliciesLogsPolicy
, TcoPoliciesLogsPolicyArgs

Name This property is required. string
tco-policy name.
Priority This property is required. string
The policy priority. Can be one of ["block" "high" "low" "medium"].
Applications TcoPoliciesLogsPolicyApplications
The applications to apply the policy on. Applies the policy on all the applications by default.
ArchiveRetentionId string
Allowing logs with a specific retention to be tagged.
Description string
The policy description
Enabled bool
Determines weather the policy will be enabled. True by default.
Id string
tco-policy ID.
Order double
The policy's order between the other policies.
Severities List<string>
The severities to apply the policy on. Valid severities are ["critical" "debug" "error" "info" "verbose" "warning"].
Subsystems TcoPoliciesLogsPolicySubsystems
The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
Name This property is required. string
tco-policy name.
Priority This property is required. string
The policy priority. Can be one of ["block" "high" "low" "medium"].
Applications TcoPoliciesLogsPolicyApplications
The applications to apply the policy on. Applies the policy on all the applications by default.
ArchiveRetentionId string
Allowing logs with a specific retention to be tagged.
Description string
The policy description
Enabled bool
Determines weather the policy will be enabled. True by default.
Id string
tco-policy ID.
Order float64
The policy's order between the other policies.
Severities []string
The severities to apply the policy on. Valid severities are ["critical" "debug" "error" "info" "verbose" "warning"].
Subsystems TcoPoliciesLogsPolicySubsystems
The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
name This property is required. String
tco-policy name.
priority This property is required. String
The policy priority. Can be one of ["block" "high" "low" "medium"].
applications TcoPoliciesLogsPolicyApplications
The applications to apply the policy on. Applies the policy on all the applications by default.
archiveRetentionId String
Allowing logs with a specific retention to be tagged.
description String
The policy description
enabled Boolean
Determines weather the policy will be enabled. True by default.
id String
tco-policy ID.
order Double
The policy's order between the other policies.
severities List<String>
The severities to apply the policy on. Valid severities are ["critical" "debug" "error" "info" "verbose" "warning"].
subsystems TcoPoliciesLogsPolicySubsystems
The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
name This property is required. string
tco-policy name.
priority This property is required. string
The policy priority. Can be one of ["block" "high" "low" "medium"].
applications TcoPoliciesLogsPolicyApplications
The applications to apply the policy on. Applies the policy on all the applications by default.
archiveRetentionId string
Allowing logs with a specific retention to be tagged.
description string
The policy description
enabled boolean
Determines weather the policy will be enabled. True by default.
id string
tco-policy ID.
order number
The policy's order between the other policies.
severities string[]
The severities to apply the policy on. Valid severities are ["critical" "debug" "error" "info" "verbose" "warning"].
subsystems TcoPoliciesLogsPolicySubsystems
The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
name This property is required. str
tco-policy name.
priority This property is required. str
The policy priority. Can be one of ["block" "high" "low" "medium"].
applications TcoPoliciesLogsPolicyApplications
The applications to apply the policy on. Applies the policy on all the applications by default.
archive_retention_id str
Allowing logs with a specific retention to be tagged.
description str
The policy description
enabled bool
Determines weather the policy will be enabled. True by default.
id str
tco-policy ID.
order float
The policy's order between the other policies.
severities Sequence[str]
The severities to apply the policy on. Valid severities are ["critical" "debug" "error" "info" "verbose" "warning"].
subsystems TcoPoliciesLogsPolicySubsystems
The subsystems to apply the policy on. Applies the policy on all the subsystems by default.
name This property is required. String
tco-policy name.
priority This property is required. String
The policy priority. Can be one of ["block" "high" "low" "medium"].
applications Property Map
The applications to apply the policy on. Applies the policy on all the applications by default.
archiveRetentionId String
Allowing logs with a specific retention to be tagged.
description String
The policy description
enabled Boolean
Determines weather the policy will be enabled. True by default.
id String
tco-policy ID.
order Number
The policy's order between the other policies.
severities List<String>
The severities to apply the policy on. Valid severities are ["critical" "debug" "error" "info" "verbose" "warning"].
subsystems Property Map
The subsystems to apply the policy on. Applies the policy on all the subsystems by default.

TcoPoliciesLogsPolicyApplications
, TcoPoliciesLogsPolicyApplicationsArgs

Names This property is required. List<string>
RuleType string
The rule type. Can be one of ["includes" "is" "isnot" "startswith" "unspecified"].
Names This property is required. []string
RuleType string
The rule type. Can be one of ["includes" "is" "isnot" "startswith" "unspecified"].
names This property is required. List<String>
ruleType String
The rule type. Can be one of ["includes" "is" "isnot" "startswith" "unspecified"].
names This property is required. string[]
ruleType string
The rule type. Can be one of ["includes" "is" "isnot" "startswith" "unspecified"].
names This property is required. Sequence[str]
rule_type str
The rule type. Can be one of ["includes" "is" "isnot" "startswith" "unspecified"].
names This property is required. List<String>
ruleType String
The rule type. Can be one of ["includes" "is" "isnot" "startswith" "unspecified"].

TcoPoliciesLogsPolicySubsystems
, TcoPoliciesLogsPolicySubsystemsArgs

Names This property is required. List<string>
RuleType string
Names This property is required. []string
RuleType string
names This property is required. List<String>
ruleType String
names This property is required. string[]
ruleType string
names This property is required. Sequence[str]
rule_type str
names This property is required. List<String>
ruleType String

Package Details

Repository
coralogix coralogix/terraform-provider-coralogix
License
Notes
This Pulumi package is based on the coralogix Terraform Provider.