ibm.LogsPolicy
Create, update, and delete logs_policys with this resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const logsPolicyInstance = new ibm.LogsPolicy("logsPolicyInstance", {
    instanceId: ibm_resource_instance.logs_instance.guid,
    region: ibm_resource_instance.logs_instance.location,
    description: "example policy decription",
    priority: "type_medium",
    applicationRule: {
        name: "otel-links-test",
        ruleTypeId: "start_with",
    },
    logRules: {
        severities: ["info"],
    },
});
import pulumi
import pulumi_ibm as ibm
logs_policy_instance = ibm.LogsPolicy("logsPolicyInstance",
    instance_id=ibm_resource_instance["logs_instance"]["guid"],
    region=ibm_resource_instance["logs_instance"]["location"],
    description="example policy decription",
    priority="type_medium",
    application_rule={
        "name": "otel-links-test",
        "rule_type_id": "start_with",
    },
    log_rules={
        "severities": ["info"],
    })
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.NewLogsPolicy(ctx, "logsPolicyInstance", &ibm.LogsPolicyArgs{
			InstanceId:  pulumi.Any(ibm_resource_instance.Logs_instance.Guid),
			Region:      pulumi.Any(ibm_resource_instance.Logs_instance.Location),
			Description: pulumi.String("example policy decription"),
			Priority:    pulumi.String("type_medium"),
			ApplicationRule: &ibm.LogsPolicyApplicationRuleArgs{
				Name:       pulumi.String("otel-links-test"),
				RuleTypeId: pulumi.String("start_with"),
			},
			LogRules: &ibm.LogsPolicyLogRulesArgs{
				Severities: pulumi.StringArray{
					pulumi.String("info"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() => 
{
    var logsPolicyInstance = new Ibm.LogsPolicy("logsPolicyInstance", new()
    {
        InstanceId = ibm_resource_instance.Logs_instance.Guid,
        Region = ibm_resource_instance.Logs_instance.Location,
        Description = "example policy decription",
        Priority = "type_medium",
        ApplicationRule = new Ibm.Inputs.LogsPolicyApplicationRuleArgs
        {
            Name = "otel-links-test",
            RuleTypeId = "start_with",
        },
        LogRules = new Ibm.Inputs.LogsPolicyLogRulesArgs
        {
            Severities = new[]
            {
                "info",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.LogsPolicy;
import com.pulumi.ibm.LogsPolicyArgs;
import com.pulumi.ibm.inputs.LogsPolicyApplicationRuleArgs;
import com.pulumi.ibm.inputs.LogsPolicyLogRulesArgs;
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 logsPolicyInstance = new LogsPolicy("logsPolicyInstance", LogsPolicyArgs.builder()
            .instanceId(ibm_resource_instance.logs_instance().guid())
            .region(ibm_resource_instance.logs_instance().location())
            .description("example policy decription")
            .priority("type_medium")
            .applicationRule(LogsPolicyApplicationRuleArgs.builder()
                .name("otel-links-test")
                .ruleTypeId("start_with")
                .build())
            .logRules(LogsPolicyLogRulesArgs.builder()
                .severities("info")
                .build())
            .build());
    }
}
resources:
  logsPolicyInstance:
    type: ibm:LogsPolicy
    properties:
      instanceId: ${ibm_resource_instance.logs_instance.guid}
      region: ${ibm_resource_instance.logs_instance.location}
      description: example policy decription
      priority: type_medium
      applicationRule:
        name: otel-links-test
        ruleTypeId: start_with
      logRules:
        severities:
          - info
Create LogsPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogsPolicy(name: string, args: LogsPolicyArgs, opts?: CustomResourceOptions);@overload
def LogsPolicy(resource_name: str,
               args: LogsPolicyArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def LogsPolicy(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               instance_id: Optional[str] = None,
               priority: Optional[str] = None,
               description: Optional[str] = None,
               application_rule: Optional[LogsPolicyApplicationRuleArgs] = None,
               enabled: Optional[bool] = None,
               endpoint_type: Optional[str] = None,
               before: Optional[LogsPolicyBeforeArgs] = None,
               log_rules: Optional[LogsPolicyLogRulesArgs] = None,
               logs_policy_id: Optional[str] = None,
               name: Optional[str] = None,
               archive_retention: Optional[LogsPolicyArchiveRetentionArgs] = None,
               region: Optional[str] = None,
               subsystem_rule: Optional[LogsPolicySubsystemRuleArgs] = None)func NewLogsPolicy(ctx *Context, name string, args LogsPolicyArgs, opts ...ResourceOption) (*LogsPolicy, error)public LogsPolicy(string name, LogsPolicyArgs args, CustomResourceOptions? opts = null)
public LogsPolicy(String name, LogsPolicyArgs args)
public LogsPolicy(String name, LogsPolicyArgs args, CustomResourceOptions options)
type: ibm:LogsPolicy
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 LogsPolicyArgs
 - 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 LogsPolicyArgs
 - 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 LogsPolicyArgs
 - The arguments to resource properties.
 - opts ResourceOption
 - Bag of options to control resource's behavior.
 
- name string
 - The unique name of the resource.
 - args LogsPolicyArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- name String
 - The unique name of the resource.
 - args LogsPolicyArgs
 - 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 logsPolicyResource = new Ibm.LogsPolicy("logsPolicyResource", new()
{
    InstanceId = "string",
    Priority = "string",
    Description = "string",
    ApplicationRule = new Ibm.Inputs.LogsPolicyApplicationRuleArgs
    {
        Name = "string",
        RuleTypeId = "string",
    },
    Enabled = false,
    EndpointType = "string",
    Before = new Ibm.Inputs.LogsPolicyBeforeArgs
    {
        Id = "string",
        Name = "string",
    },
    LogRules = new Ibm.Inputs.LogsPolicyLogRulesArgs
    {
        Severities = new[]
        {
            "string",
        },
    },
    LogsPolicyId = "string",
    Name = "string",
    ArchiveRetention = new Ibm.Inputs.LogsPolicyArchiveRetentionArgs
    {
        Id = "string",
    },
    Region = "string",
    SubsystemRule = new Ibm.Inputs.LogsPolicySubsystemRuleArgs
    {
        Name = "string",
        RuleTypeId = "string",
    },
});
example, err := ibm.NewLogsPolicy(ctx, "logsPolicyResource", &ibm.LogsPolicyArgs{
	InstanceId:  pulumi.String("string"),
	Priority:    pulumi.String("string"),
	Description: pulumi.String("string"),
	ApplicationRule: &ibm.LogsPolicyApplicationRuleArgs{
		Name:       pulumi.String("string"),
		RuleTypeId: pulumi.String("string"),
	},
	Enabled:      pulumi.Bool(false),
	EndpointType: pulumi.String("string"),
	Before: &ibm.LogsPolicyBeforeArgs{
		Id:   pulumi.String("string"),
		Name: pulumi.String("string"),
	},
	LogRules: &ibm.LogsPolicyLogRulesArgs{
		Severities: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	LogsPolicyId: pulumi.String("string"),
	Name:         pulumi.String("string"),
	ArchiveRetention: &ibm.LogsPolicyArchiveRetentionArgs{
		Id: pulumi.String("string"),
	},
	Region: pulumi.String("string"),
	SubsystemRule: &ibm.LogsPolicySubsystemRuleArgs{
		Name:       pulumi.String("string"),
		RuleTypeId: pulumi.String("string"),
	},
})
var logsPolicyResource = new LogsPolicy("logsPolicyResource", LogsPolicyArgs.builder()
    .instanceId("string")
    .priority("string")
    .description("string")
    .applicationRule(LogsPolicyApplicationRuleArgs.builder()
        .name("string")
        .ruleTypeId("string")
        .build())
    .enabled(false)
    .endpointType("string")
    .before(LogsPolicyBeforeArgs.builder()
        .id("string")
        .name("string")
        .build())
    .logRules(LogsPolicyLogRulesArgs.builder()
        .severities("string")
        .build())
    .logsPolicyId("string")
    .name("string")
    .archiveRetention(LogsPolicyArchiveRetentionArgs.builder()
        .id("string")
        .build())
    .region("string")
    .subsystemRule(LogsPolicySubsystemRuleArgs.builder()
        .name("string")
        .ruleTypeId("string")
        .build())
    .build());
logs_policy_resource = ibm.LogsPolicy("logsPolicyResource",
    instance_id="string",
    priority="string",
    description="string",
    application_rule={
        "name": "string",
        "rule_type_id": "string",
    },
    enabled=False,
    endpoint_type="string",
    before={
        "id": "string",
        "name": "string",
    },
    log_rules={
        "severities": ["string"],
    },
    logs_policy_id="string",
    name="string",
    archive_retention={
        "id": "string",
    },
    region="string",
    subsystem_rule={
        "name": "string",
        "rule_type_id": "string",
    })
const logsPolicyResource = new ibm.LogsPolicy("logsPolicyResource", {
    instanceId: "string",
    priority: "string",
    description: "string",
    applicationRule: {
        name: "string",
        ruleTypeId: "string",
    },
    enabled: false,
    endpointType: "string",
    before: {
        id: "string",
        name: "string",
    },
    logRules: {
        severities: ["string"],
    },
    logsPolicyId: "string",
    name: "string",
    archiveRetention: {
        id: "string",
    },
    region: "string",
    subsystemRule: {
        name: "string",
        ruleTypeId: "string",
    },
});
type: ibm:LogsPolicy
properties:
    applicationRule:
        name: string
        ruleTypeId: string
    archiveRetention:
        id: string
    before:
        id: string
        name: string
    description: string
    enabled: false
    endpointType: string
    instanceId: string
    logRules:
        severities:
            - string
    logsPolicyId: string
    name: string
    priority: string
    region: string
    subsystemRule:
        name: string
        ruleTypeId: string
LogsPolicy 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 LogsPolicy resource accepts the following input properties:
- Instance
Id string - Cloud Logs Instance GUID.
 - Priority string
 - The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are: 
type_unspecified,type_block,type_low,type_medium,type_high. 
 - Constraints: Allowable values are: 
 - Application
Rule LogsPolicy Application Rule  - Rule for matching with application. Nested schema for application_rule:
 - Archive
Retention LogsPolicy Archive Retention  - Archive retention definition. Nested schema for archive_retention:
 - Before
Logs
Policy Before  - Nested schema for before:
 - Description string
 - Description of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}0-9_\\-\\s]+$/. 
 - Constraints: The maximum length is 
 - Enabled bool
 - Enabled flag.
 - Endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values 
publicandprivate. - Log
Rules LogsPolicy Log Rules  - Log rules. Nested schema for log_rules:
 - Logs
Policy stringId  - The unique identifier of the logs_policy.
 - Name string
 - Name of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - Region string
 - Cloud Logs Instance Region.
 - Subsystem
Rule LogsPolicy Subsystem Rule  - Rule for matching with application. Nested schema for subsystem_rule:
 
- Instance
Id string - Cloud Logs Instance GUID.
 - Priority string
 - The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are: 
type_unspecified,type_block,type_low,type_medium,type_high. 
 - Constraints: Allowable values are: 
 - Application
Rule LogsPolicy Application Rule Args  - Rule for matching with application. Nested schema for application_rule:
 - Archive
Retention LogsPolicy Archive Retention Args  - Archive retention definition. Nested schema for archive_retention:
 - Before
Logs
Policy Before Args  - Nested schema for before:
 - Description string
 - Description of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}0-9_\\-\\s]+$/. 
 - Constraints: The maximum length is 
 - Enabled bool
 - Enabled flag.
 - Endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values 
publicandprivate. - Log
Rules LogsPolicy Log Rules Args  - Log rules. Nested schema for log_rules:
 - Logs
Policy stringId  - The unique identifier of the logs_policy.
 - Name string
 - Name of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - Region string
 - Cloud Logs Instance Region.
 - Subsystem
Rule LogsPolicy Subsystem Rule Args  - Rule for matching with application. Nested schema for subsystem_rule:
 
- instance
Id String - Cloud Logs Instance GUID.
 - priority String
 - The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are: 
type_unspecified,type_block,type_low,type_medium,type_high. 
 - Constraints: Allowable values are: 
 - application
Rule LogsPolicy Application Rule  - Rule for matching with application. Nested schema for application_rule:
 - archive
Retention LogsPolicy Archive Retention  - Archive retention definition. Nested schema for archive_retention:
 - before
Logs
Policy Before  - Nested schema for before:
 - description String
 - Description of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}0-9_\\-\\s]+$/. 
 - Constraints: The maximum length is 
 - enabled Boolean
 - Enabled flag.
 - endpoint
Type String - Cloud Logs Instance Endpoint type. Allowed values 
publicandprivate. - log
Rules LogsPolicy Log Rules  - Log rules. Nested schema for log_rules:
 - logs
Policy StringId  - The unique identifier of the logs_policy.
 - name String
 - Name of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - region String
 - Cloud Logs Instance Region.
 - subsystem
Rule LogsPolicy Subsystem Rule  - Rule for matching with application. Nested schema for subsystem_rule:
 
- instance
Id string - Cloud Logs Instance GUID.
 - priority string
 - The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are: 
type_unspecified,type_block,type_low,type_medium,type_high. 
 - Constraints: Allowable values are: 
 - application
Rule LogsPolicy Application Rule  - Rule for matching with application. Nested schema for application_rule:
 - archive
Retention LogsPolicy Archive Retention  - Archive retention definition. Nested schema for archive_retention:
 - before
Logs
Policy Before  - Nested schema for before:
 - description string
 - Description of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}0-9_\\-\\s]+$/. 
 - Constraints: The maximum length is 
 - enabled boolean
 - Enabled flag.
 - endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values 
publicandprivate. - log
Rules LogsPolicy Log Rules  - Log rules. Nested schema for log_rules:
 - logs
Policy stringId  - The unique identifier of the logs_policy.
 - name string
 - Name of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - region string
 - Cloud Logs Instance Region.
 - subsystem
Rule LogsPolicy Subsystem Rule  - Rule for matching with application. Nested schema for subsystem_rule:
 
- instance_
id str - Cloud Logs Instance GUID.
 - priority str
 - The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are: 
type_unspecified,type_block,type_low,type_medium,type_high. 
 - Constraints: Allowable values are: 
 - application_
rule LogsPolicy Application Rule Args  - Rule for matching with application. Nested schema for application_rule:
 - archive_
retention LogsPolicy Archive Retention Args  - Archive retention definition. Nested schema for archive_retention:
 - before
Logs
Policy Before Args  - Nested schema for before:
 - description str
 - Description of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}0-9_\\-\\s]+$/. 
 - Constraints: The maximum length is 
 - enabled bool
 - Enabled flag.
 - endpoint_
type str - Cloud Logs Instance Endpoint type. Allowed values 
publicandprivate. - log_
rules LogsPolicy Log Rules Args  - Log rules. Nested schema for log_rules:
 - logs_
policy_ strid  - The unique identifier of the logs_policy.
 - name str
 - Name of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - region str
 - Cloud Logs Instance Region.
 - subsystem_
rule LogsPolicy Subsystem Rule Args  - Rule for matching with application. Nested schema for subsystem_rule:
 
- instance
Id String - Cloud Logs Instance GUID.
 - priority String
 - The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are: 
type_unspecified,type_block,type_low,type_medium,type_high. 
 - Constraints: Allowable values are: 
 - application
Rule Property Map - Rule for matching with application. Nested schema for application_rule:
 - archive
Retention Property Map - Archive retention definition. Nested schema for archive_retention:
 - before Property Map
 - Nested schema for before:
 - description String
 - Description of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}0-9_\\-\\s]+$/. 
 - Constraints: The maximum length is 
 - enabled Boolean
 - Enabled flag.
 - endpoint
Type String - Cloud Logs Instance Endpoint type. Allowed values 
publicandprivate. - log
Rules Property Map - Log rules. Nested schema for log_rules:
 - logs
Policy StringId  - The unique identifier of the logs_policy.
 - name String
 - Name of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - region String
 - Cloud Logs Instance Region.
 - subsystem
Rule Property Map - Rule for matching with application. Nested schema for subsystem_rule:
 
Outputs
All input properties are implicitly available as output properties. Additionally, the LogsPolicy resource produces the following output properties:
- Company
Id double - (Integer) Company ID.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - Created
At string - (String) Created at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 - Deleted bool
 - (Boolean) Soft deletion flag.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Order double
 - (Integer) Order of policy in relation to other policies.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - Policy
Id string - The unique identifier of the logs_policy.
 - Updated
At string - (String) Updated at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 
- Company
Id float64 - (Integer) Company ID.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - Created
At string - (String) Created at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 - Deleted bool
 - (Boolean) Soft deletion flag.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Order float64
 - (Integer) Order of policy in relation to other policies.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - Policy
Id string - The unique identifier of the logs_policy.
 - Updated
At string - (String) Updated at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 
- company
Id Double - (Integer) Company ID.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - created
At String - (String) Created at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 - deleted Boolean
 - (Boolean) Soft deletion flag.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - order Double
 - (Integer) Order of policy in relation to other policies.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - policy
Id String - The unique identifier of the logs_policy.
 - updated
At String - (String) Updated at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 
- company
Id number - (Integer) Company ID.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - created
At string - (String) Created at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 - deleted boolean
 - (Boolean) Soft deletion flag.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - order number
 - (Integer) Order of policy in relation to other policies.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - policy
Id string - The unique identifier of the logs_policy.
 - updated
At string - (String) Updated at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 
- company_
id float - (Integer) Company ID.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - created_
at str - (String) Created at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 - deleted bool
 - (Boolean) Soft deletion flag.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - order float
 - (Integer) Order of policy in relation to other policies.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - policy_
id str - The unique identifier of the logs_policy.
 - updated_
at str - (String) Updated at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 
- company
Id Number - (Integer) Company ID.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - created
At String - (String) Created at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 - deleted Boolean
 - (Boolean) Soft deletion flag.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - order Number
 - (Integer) Order of policy in relation to other policies.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - policy
Id String - The unique identifier of the logs_policy.
 - updated
At String - (String) Updated at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 
Look up Existing LogsPolicy Resource
Get an existing LogsPolicy 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?: LogsPolicyState, opts?: CustomResourceOptions): LogsPolicy@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        application_rule: Optional[LogsPolicyApplicationRuleArgs] = None,
        archive_retention: Optional[LogsPolicyArchiveRetentionArgs] = None,
        before: Optional[LogsPolicyBeforeArgs] = None,
        company_id: Optional[float] = None,
        created_at: Optional[str] = None,
        deleted: Optional[bool] = None,
        description: Optional[str] = None,
        enabled: Optional[bool] = None,
        endpoint_type: Optional[str] = None,
        instance_id: Optional[str] = None,
        log_rules: Optional[LogsPolicyLogRulesArgs] = None,
        logs_policy_id: Optional[str] = None,
        name: Optional[str] = None,
        order: Optional[float] = None,
        policy_id: Optional[str] = None,
        priority: Optional[str] = None,
        region: Optional[str] = None,
        subsystem_rule: Optional[LogsPolicySubsystemRuleArgs] = None,
        updated_at: Optional[str] = None) -> LogsPolicyfunc GetLogsPolicy(ctx *Context, name string, id IDInput, state *LogsPolicyState, opts ...ResourceOption) (*LogsPolicy, error)public static LogsPolicy Get(string name, Input<string> id, LogsPolicyState? state, CustomResourceOptions? opts = null)public static LogsPolicy get(String name, Output<String> id, LogsPolicyState state, CustomResourceOptions options)resources:  _:    type: ibm:LogsPolicy    get:      id: ${id}- 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.
 
- Application
Rule LogsPolicy Application Rule  - Rule for matching with application. Nested schema for application_rule:
 - Archive
Retention LogsPolicy Archive Retention  - Archive retention definition. Nested schema for archive_retention:
 - Before
Logs
Policy Before  - Nested schema for before:
 - Company
Id double - (Integer) Company ID.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - Created
At string - (String) Created at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 - Deleted bool
 - (Boolean) Soft deletion flag.
 - Description string
 - Description of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}0-9_\\-\\s]+$/. 
 - Constraints: The maximum length is 
 - Enabled bool
 - Enabled flag.
 - Endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values 
publicandprivate. - Instance
Id string - Cloud Logs Instance GUID.
 - Log
Rules LogsPolicy Log Rules  - Log rules. Nested schema for log_rules:
 - Logs
Policy stringId  - The unique identifier of the logs_policy.
 - Name string
 - Name of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - Order double
 - (Integer) Order of policy in relation to other policies.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - Policy
Id string - The unique identifier of the logs_policy.
 - Priority string
 - The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are: 
type_unspecified,type_block,type_low,type_medium,type_high. 
 - Constraints: Allowable values are: 
 - Region string
 - Cloud Logs Instance Region.
 - Subsystem
Rule LogsPolicy Subsystem Rule  - Rule for matching with application. Nested schema for subsystem_rule:
 - Updated
At string - (String) Updated at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 
- Application
Rule LogsPolicy Application Rule Args  - Rule for matching with application. Nested schema for application_rule:
 - Archive
Retention LogsPolicy Archive Retention Args  - Archive retention definition. Nested schema for archive_retention:
 - Before
Logs
Policy Before Args  - Nested schema for before:
 - Company
Id float64 - (Integer) Company ID.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - Created
At string - (String) Created at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 - Deleted bool
 - (Boolean) Soft deletion flag.
 - Description string
 - Description of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}0-9_\\-\\s]+$/. 
 - Constraints: The maximum length is 
 - Enabled bool
 - Enabled flag.
 - Endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values 
publicandprivate. - Instance
Id string - Cloud Logs Instance GUID.
 - Log
Rules LogsPolicy Log Rules Args  - Log rules. Nested schema for log_rules:
 - Logs
Policy stringId  - The unique identifier of the logs_policy.
 - Name string
 - Name of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - Order float64
 - (Integer) Order of policy in relation to other policies.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - Policy
Id string - The unique identifier of the logs_policy.
 - Priority string
 - The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are: 
type_unspecified,type_block,type_low,type_medium,type_high. 
 - Constraints: Allowable values are: 
 - Region string
 - Cloud Logs Instance Region.
 - Subsystem
Rule LogsPolicy Subsystem Rule Args  - Rule for matching with application. Nested schema for subsystem_rule:
 - Updated
At string - (String) Updated at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 
- application
Rule LogsPolicy Application Rule  - Rule for matching with application. Nested schema for application_rule:
 - archive
Retention LogsPolicy Archive Retention  - Archive retention definition. Nested schema for archive_retention:
 - before
Logs
Policy Before  - Nested schema for before:
 - company
Id Double - (Integer) Company ID.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - created
At String - (String) Created at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 - deleted Boolean
 - (Boolean) Soft deletion flag.
 - description String
 - Description of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}0-9_\\-\\s]+$/. 
 - Constraints: The maximum length is 
 - enabled Boolean
 - Enabled flag.
 - endpoint
Type String - Cloud Logs Instance Endpoint type. Allowed values 
publicandprivate. - instance
Id String - Cloud Logs Instance GUID.
 - log
Rules LogsPolicy Log Rules  - Log rules. Nested schema for log_rules:
 - logs
Policy StringId  - The unique identifier of the logs_policy.
 - name String
 - Name of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - order Double
 - (Integer) Order of policy in relation to other policies.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - policy
Id String - The unique identifier of the logs_policy.
 - priority String
 - The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are: 
type_unspecified,type_block,type_low,type_medium,type_high. 
 - Constraints: Allowable values are: 
 - region String
 - Cloud Logs Instance Region.
 - subsystem
Rule LogsPolicy Subsystem Rule  - Rule for matching with application. Nested schema for subsystem_rule:
 - updated
At String - (String) Updated at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 
- application
Rule LogsPolicy Application Rule  - Rule for matching with application. Nested schema for application_rule:
 - archive
Retention LogsPolicy Archive Retention  - Archive retention definition. Nested schema for archive_retention:
 - before
Logs
Policy Before  - Nested schema for before:
 - company
Id number - (Integer) Company ID.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - created
At string - (String) Created at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 - deleted boolean
 - (Boolean) Soft deletion flag.
 - description string
 - Description of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}0-9_\\-\\s]+$/. 
 - Constraints: The maximum length is 
 - enabled boolean
 - Enabled flag.
 - endpoint
Type string - Cloud Logs Instance Endpoint type. Allowed values 
publicandprivate. - instance
Id string - Cloud Logs Instance GUID.
 - log
Rules LogsPolicy Log Rules  - Log rules. Nested schema for log_rules:
 - logs
Policy stringId  - The unique identifier of the logs_policy.
 - name string
 - Name of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - order number
 - (Integer) Order of policy in relation to other policies.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - policy
Id string - The unique identifier of the logs_policy.
 - priority string
 - The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are: 
type_unspecified,type_block,type_low,type_medium,type_high. 
 - Constraints: Allowable values are: 
 - region string
 - Cloud Logs Instance Region.
 - subsystem
Rule LogsPolicy Subsystem Rule  - Rule for matching with application. Nested schema for subsystem_rule:
 - updated
At string - (String) Updated at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 
- application_
rule LogsPolicy Application Rule Args  - Rule for matching with application. Nested schema for application_rule:
 - archive_
retention LogsPolicy Archive Retention Args  - Archive retention definition. Nested schema for archive_retention:
 - before
Logs
Policy Before Args  - Nested schema for before:
 - company_
id float - (Integer) Company ID.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - created_
at str - (String) Created at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 - deleted bool
 - (Boolean) Soft deletion flag.
 - description str
 - Description of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}0-9_\\-\\s]+$/. 
 - Constraints: The maximum length is 
 - enabled bool
 - Enabled flag.
 - endpoint_
type str - Cloud Logs Instance Endpoint type. Allowed values 
publicandprivate. - instance_
id str - Cloud Logs Instance GUID.
 - log_
rules LogsPolicy Log Rules Args  - Log rules. Nested schema for log_rules:
 - logs_
policy_ strid  - The unique identifier of the logs_policy.
 - name str
 - Name of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - order float
 - (Integer) Order of policy in relation to other policies.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - policy_
id str - The unique identifier of the logs_policy.
 - priority str
 - The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are: 
type_unspecified,type_block,type_low,type_medium,type_high. 
 - Constraints: Allowable values are: 
 - region str
 - Cloud Logs Instance Region.
 - subsystem_
rule LogsPolicy Subsystem Rule Args  - Rule for matching with application. Nested schema for subsystem_rule:
 - updated_
at str - (String) Updated at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 
- application
Rule Property Map - Rule for matching with application. Nested schema for application_rule:
 - archive
Retention Property Map - Archive retention definition. Nested schema for archive_retention:
 - before Property Map
 - Nested schema for before:
 - company
Id Number - (Integer) Company ID.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - created
At String - (String) Created at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 - deleted Boolean
 - (Boolean) Soft deletion flag.
 - description String
 - Description of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}0-9_\\-\\s]+$/. 
 - Constraints: The maximum length is 
 - enabled Boolean
 - Enabled flag.
 - endpoint
Type String - Cloud Logs Instance Endpoint type. Allowed values 
publicandprivate. - instance
Id String - Cloud Logs Instance GUID.
 - log
Rules Property Map - Log rules. Nested schema for log_rules:
 - logs
Policy StringId  - The unique identifier of the logs_policy.
 - name String
 - Name of policy.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - order Number
 - (Integer) Order of policy in relation to other policies.
- Constraints: The maximum value is 
2147483647. The minimum value is0. 
 - Constraints: The maximum value is 
 - policy
Id String - The unique identifier of the logs_policy.
 - priority String
 - The data pipeline sources that match the policy rules will go through.
- Constraints: Allowable values are: 
type_unspecified,type_block,type_low,type_medium,type_high. 
 - Constraints: Allowable values are: 
 - region String
 - Cloud Logs Instance Region.
 - subsystem
Rule Property Map - Rule for matching with application. Nested schema for subsystem_rule:
 - updated
At String - (String) Updated at date at utc+0.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^"\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}"$/. 
 - Constraints: The maximum length is 
 
Supporting Types
LogsPolicyApplicationRule, LogsPolicyApplicationRuleArgs        
- Name string
 - Value of the rule. Multiple values can be provided as comma separated string of values.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - Rule
Type stringId  - Identifier of the rule.
- Constraints: Allowable values are: 
unspecified,is,is_not,start_with,includes. 
 - Constraints: Allowable values are: 
 
- Name string
 - Value of the rule. Multiple values can be provided as comma separated string of values.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - Rule
Type stringId  - Identifier of the rule.
- Constraints: Allowable values are: 
unspecified,is,is_not,start_with,includes. 
 - Constraints: Allowable values are: 
 
- name String
 - Value of the rule. Multiple values can be provided as comma separated string of values.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - rule
Type StringId  - Identifier of the rule.
- Constraints: Allowable values are: 
unspecified,is,is_not,start_with,includes. 
 - Constraints: Allowable values are: 
 
- name string
 - Value of the rule. Multiple values can be provided as comma separated string of values.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - rule
Type stringId  - Identifier of the rule.
- Constraints: Allowable values are: 
unspecified,is,is_not,start_with,includes. 
 - Constraints: Allowable values are: 
 
- name str
 - Value of the rule. Multiple values can be provided as comma separated string of values.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - rule_
type_ strid  - Identifier of the rule.
- Constraints: Allowable values are: 
unspecified,is,is_not,start_with,includes. 
 - Constraints: Allowable values are: 
 
- name String
 - Value of the rule. Multiple values can be provided as comma separated string of values.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - rule
Type StringId  - Identifier of the rule.
- Constraints: Allowable values are: 
unspecified,is,is_not,start_with,includes. 
 - Constraints: Allowable values are: 
 
LogsPolicyArchiveRetention, LogsPolicyArchiveRetentionArgs        
- Id string
 - References archive retention definition.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/. 
 - Constraints: The maximum length is 
 
- Id string
 - References archive retention definition.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/. 
 - Constraints: The maximum length is 
 
- id String
 - References archive retention definition.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/. 
 - Constraints: The maximum length is 
 
- id string
 - References archive retention definition.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/. 
 - Constraints: The maximum length is 
 
- id str
 - References archive retention definition.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/. 
 - Constraints: The maximum length is 
 
- id String
 - References archive retention definition.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/. 
 - Constraints: The maximum length is 
 
LogsPolicyBefore, LogsPolicyBeforeArgs      
- Id string
 - Policy ID.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/. 
 - Constraints: The maximum length is 
 - Name string
 - Policy name.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 
- Id string
 - Policy ID.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/. 
 - Constraints: The maximum length is 
 - Name string
 - Policy name.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 
- id String
 - Policy ID.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/. 
 - Constraints: The maximum length is 
 - name String
 - Policy name.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 
- id string
 - Policy ID.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/. 
 - Constraints: The maximum length is 
 - name string
 - Policy name.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 
- id str
 - Policy ID.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/. 
 - Constraints: The maximum length is 
 - name str
 - Policy name.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 
- id String
 - Policy ID.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. The value must match regular expression/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/. 
 - Constraints: The maximum length is 
 - name String
 - Policy name.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 
LogsPolicyLogRules, LogsPolicyLogRulesArgs        
- Severities List<string>
 - Source severities to match with.
- Constraints: Allowable list items are: 
unspecified,debug,verbose,info,warning,error,critical. The maximum length is4096items. The minimum length is0items. 
 - Constraints: Allowable list items are: 
 
- Severities []string
 - Source severities to match with.
- Constraints: Allowable list items are: 
unspecified,debug,verbose,info,warning,error,critical. The maximum length is4096items. The minimum length is0items. 
 - Constraints: Allowable list items are: 
 
- severities List<String>
 - Source severities to match with.
- Constraints: Allowable list items are: 
unspecified,debug,verbose,info,warning,error,critical. The maximum length is4096items. The minimum length is0items. 
 - Constraints: Allowable list items are: 
 
- severities string[]
 - Source severities to match with.
- Constraints: Allowable list items are: 
unspecified,debug,verbose,info,warning,error,critical. The maximum length is4096items. The minimum length is0items. 
 - Constraints: Allowable list items are: 
 
- severities Sequence[str]
 - Source severities to match with.
- Constraints: Allowable list items are: 
unspecified,debug,verbose,info,warning,error,critical. The maximum length is4096items. The minimum length is0items. 
 - Constraints: Allowable list items are: 
 
- severities List<String>
 - Source severities to match with.
- Constraints: Allowable list items are: 
unspecified,debug,verbose,info,warning,error,critical. The maximum length is4096items. The minimum length is0items. 
 - Constraints: Allowable list items are: 
 
LogsPolicySubsystemRule, LogsPolicySubsystemRuleArgs        
- Name string
 - Value of the rule. Multiple values can be provided as comma separated string of values.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - Rule
Type stringId  - Identifier of the rule.
- Constraints: Allowable values are: 
unspecified,is,is_not,start_with,includes. 
 - Constraints: Allowable values are: 
 
- Name string
 - Value of the rule. Multiple values can be provided as comma separated string of values.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - Rule
Type stringId  - Identifier of the rule.
- Constraints: Allowable values are: 
unspecified,is,is_not,start_with,includes. 
 - Constraints: Allowable values are: 
 
- name String
 - Value of the rule. Multiple values can be provided as comma separated string of values.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - rule
Type StringId  - Identifier of the rule.
- Constraints: Allowable values are: 
unspecified,is,is_not,start_with,includes. 
 - Constraints: Allowable values are: 
 
- name string
 - Value of the rule. Multiple values can be provided as comma separated string of values.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - rule
Type stringId  - Identifier of the rule.
- Constraints: Allowable values are: 
unspecified,is,is_not,start_with,includes. 
 - Constraints: Allowable values are: 
 
- name str
 - Value of the rule. Multiple values can be provided as comma separated string of values.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - rule_
type_ strid  - Identifier of the rule.
- Constraints: Allowable values are: 
unspecified,is,is_not,start_with,includes. 
 - Constraints: Allowable values are: 
 
- name String
 - Value of the rule. Multiple values can be provided as comma separated string of values.
- Constraints: The maximum length is 
4096characters. The minimum length is1character. The value must match regular expression/^[\\p{L}\\p{N}\\p{P}\\p{Z}\\p{S}\\p{M}]+$/. 
 - Constraints: The maximum length is 
 - rule
Type StringId  - Identifier of the rule.
- Constraints: Allowable values are: 
unspecified,is,is_not,start_with,includes. 
 - Constraints: Allowable values are: 
 
Import
You can import the ibm_logs_policy resource by using id. id combination of region, instance_id and policy_id.
Syntax
```sh $ pulumi import ibm:index/logsPolicy:LogsPolicy logs_policy < region >/< instance_id >/< policy_id >; ```
Example
$ pulumi import ibm:index/logsPolicy:LogsPolicy logs_policy eu-gb/3dc02998-0b50-4ea8-b68a-4779d716fa1f/3dc02998-0b50-4ea8-b68a-4779d716fa1f
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider. 
