CollectionPolicyArgs

data class CollectionPolicyArgs(val centralizeConfig: Output<CollectionPolicyCentralizeConfigArgs>? = null, val centralizeEnabled: Output<Boolean>? = null, val dataCode: Output<String>? = null, val dataConfig: Output<CollectionPolicyDataConfigArgs>? = null, val enabled: Output<Boolean>? = null, val policyConfig: Output<CollectionPolicyPolicyConfigArgs>? = null, val policyName: Output<String>? = null, val productCode: Output<String>? = null, val resourceDirectory: Output<CollectionPolicyResourceDirectoryArgs>? = null) : ConvertibleToJava<CollectionPolicyArgs>

Provides a SLS Collection Policy resource. Orchestration policies for cloud product log collection. For information about SLS Collection Policy and how to use it, see What is Collection Policy.

NOTE: Available since v1.232.0.

Import

SLS Collection Policy can be imported using the id, e.g.

$ pulumi import alicloud:sls/collectionPolicy:CollectionPolicy example <id>

Constructors

Link copied to clipboard
constructor(centralizeConfig: Output<CollectionPolicyCentralizeConfigArgs>? = null, centralizeEnabled: Output<Boolean>? = null, dataCode: Output<String>? = null, dataConfig: Output<CollectionPolicyDataConfigArgs>? = null, enabled: Output<Boolean>? = null, policyConfig: Output<CollectionPolicyPolicyConfigArgs>? = null, policyName: Output<String>? = null, productCode: Output<String>? = null, resourceDirectory: Output<CollectionPolicyResourceDirectoryArgs>? = null)

Properties

Link copied to clipboard

Centralized transfer configuration. See centralize_config below.

Link copied to clipboard
val centralizeEnabled: Output<Boolean>? = null

Whether to enable centralized Conversion. The default value is false.

Link copied to clipboard
val dataCode: Output<String>? = null

Log type encoding.

Link copied to clipboard

The configuration is supported only when the log type is global. For example, if the productCode is sls, global logs will be collected to the corresponding region during the first configuration. See data_config below.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Whether to open.

Link copied to clipboard

Collection rule configuration. See policy_config below.

Link copied to clipboard
val policyName: Output<String>? = null

The name of the rule, with a minimum of 3 characters and a maximum of 63 characters, must start with a letter.

Link copied to clipboard
val productCode: Output<String>? = null

Product code.

Link copied to clipboard

For Resource Directory configuration, the account must have opened the resource directory and be an administrator or a delegated administrator. See resource_directory below.

Functions

Link copied to clipboard
open override fun toJava(): CollectionPolicyArgs