All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.opsworks.kotlin.inputs.CustomLayerCloudwatchConfigurationLogStreamArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.opsworks.kotlin.inputs

import com.pulumi.aws.opsworks.inputs.CustomLayerCloudwatchConfigurationLogStreamArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property batchCount Specifies the max number of log events in a batch, up to `10000`. The default value is `1000`.
 * @property batchSize Specifies the maximum size of log events in a batch, in bytes, up to `1048576` bytes. The default value is `32768` bytes.
 * @property bufferDuration Specifies the time duration for the batching of log events. The minimum value is `5000` and default value is `5000`.
 * @property datetimeFormat Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html).
 * @property encoding Specifies the encoding of the log file so that the file can be read correctly. The default is `utf_8`.
 * @property file Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*).
 * @property fileFingerprintLines Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as `1`, `2-5`. The default value is `1`.
 * @property initialPosition Specifies where to start to read data (`start_of_file` or `end_of_file`). The default is `start_of_file`.
 * @property logGroupName Specifies the destination log group. A log group is created automatically if it doesn't already exist.
 * @property multilineStartPattern Specifies the pattern for identifying the start of a log message.
 * @property timeZone Specifies the time zone of log event time stamps.
 */
public data class CustomLayerCloudwatchConfigurationLogStreamArgs(
    public val batchCount: Output? = null,
    public val batchSize: Output? = null,
    public val bufferDuration: Output? = null,
    public val datetimeFormat: Output? = null,
    public val encoding: Output? = null,
    public val `file`: Output,
    public val fileFingerprintLines: Output? = null,
    public val initialPosition: Output? = null,
    public val logGroupName: Output,
    public val multilineStartPattern: Output? = null,
    public val timeZone: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.opsworks.inputs.CustomLayerCloudwatchConfigurationLogStreamArgs =
        com.pulumi.aws.opsworks.inputs.CustomLayerCloudwatchConfigurationLogStreamArgs.builder()
            .batchCount(batchCount?.applyValue({ args0 -> args0 }))
            .batchSize(batchSize?.applyValue({ args0 -> args0 }))
            .bufferDuration(bufferDuration?.applyValue({ args0 -> args0 }))
            .datetimeFormat(datetimeFormat?.applyValue({ args0 -> args0 }))
            .encoding(encoding?.applyValue({ args0 -> args0 }))
            .`file`(`file`.applyValue({ args0 -> args0 }))
            .fileFingerprintLines(fileFingerprintLines?.applyValue({ args0 -> args0 }))
            .initialPosition(initialPosition?.applyValue({ args0 -> args0 }))
            .logGroupName(logGroupName.applyValue({ args0 -> args0 }))
            .multilineStartPattern(multilineStartPattern?.applyValue({ args0 -> args0 }))
            .timeZone(timeZone?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CustomLayerCloudwatchConfigurationLogStreamArgs].
 */
@PulumiTagMarker
public class CustomLayerCloudwatchConfigurationLogStreamArgsBuilder internal constructor() {
    private var batchCount: Output? = null

    private var batchSize: Output? = null

    private var bufferDuration: Output? = null

    private var datetimeFormat: Output? = null

    private var encoding: Output? = null

    private var `file`: Output? = null

    private var fileFingerprintLines: Output? = null

    private var initialPosition: Output? = null

    private var logGroupName: Output? = null

    private var multilineStartPattern: Output? = null

    private var timeZone: Output? = null

    /**
     * @param value Specifies the max number of log events in a batch, up to `10000`. The default value is `1000`.
     */
    @JvmName("ylonnkpknkaukcjh")
    public suspend fun batchCount(`value`: Output) {
        this.batchCount = value
    }

    /**
     * @param value Specifies the maximum size of log events in a batch, in bytes, up to `1048576` bytes. The default value is `32768` bytes.
     */
    @JvmName("lfrkavcseapabpal")
    public suspend fun batchSize(`value`: Output) {
        this.batchSize = value
    }

    /**
     * @param value Specifies the time duration for the batching of log events. The minimum value is `5000` and default value is `5000`.
     */
    @JvmName("aobmyepaxkmnowhv")
    public suspend fun bufferDuration(`value`: Output) {
        this.bufferDuration = value
    }

    /**
     * @param value Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html).
     */
    @JvmName("wbhdedfcohhyslcu")
    public suspend fun datetimeFormat(`value`: Output) {
        this.datetimeFormat = value
    }

    /**
     * @param value Specifies the encoding of the log file so that the file can be read correctly. The default is `utf_8`.
     */
    @JvmName("etsalehghlrtqtxd")
    public suspend fun encoding(`value`: Output) {
        this.encoding = value
    }

    /**
     * @param value Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*).
     */
    @JvmName("mcndbqywfoppuchy")
    public suspend fun `file`(`value`: Output) {
        this.`file` = value
    }

    /**
     * @param value Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as `1`, `2-5`. The default value is `1`.
     */
    @JvmName("hqpxriaslkahnmmd")
    public suspend fun fileFingerprintLines(`value`: Output) {
        this.fileFingerprintLines = value
    }

    /**
     * @param value Specifies where to start to read data (`start_of_file` or `end_of_file`). The default is `start_of_file`.
     */
    @JvmName("nroiunkcvsjskini")
    public suspend fun initialPosition(`value`: Output) {
        this.initialPosition = value
    }

    /**
     * @param value Specifies the destination log group. A log group is created automatically if it doesn't already exist.
     */
    @JvmName("isdkdoirqrkikwam")
    public suspend fun logGroupName(`value`: Output) {
        this.logGroupName = value
    }

    /**
     * @param value Specifies the pattern for identifying the start of a log message.
     */
    @JvmName("bupdmgjfbkpmvwrq")
    public suspend fun multilineStartPattern(`value`: Output) {
        this.multilineStartPattern = value
    }

    /**
     * @param value Specifies the time zone of log event time stamps.
     */
    @JvmName("npcgjpjrnojpttfo")
    public suspend fun timeZone(`value`: Output) {
        this.timeZone = value
    }

    /**
     * @param value Specifies the max number of log events in a batch, up to `10000`. The default value is `1000`.
     */
    @JvmName("pwivxcucvfrllrhp")
    public suspend fun batchCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batchCount = mapped
    }

    /**
     * @param value Specifies the maximum size of log events in a batch, in bytes, up to `1048576` bytes. The default value is `32768` bytes.
     */
    @JvmName("ibgwnlddbgdknuqx")
    public suspend fun batchSize(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batchSize = mapped
    }

    /**
     * @param value Specifies the time duration for the batching of log events. The minimum value is `5000` and default value is `5000`.
     */
    @JvmName("ilbmcwfqihjnnufp")
    public suspend fun bufferDuration(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bufferDuration = mapped
    }

    /**
     * @param value Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html).
     */
    @JvmName("brmyprotpicurxbt")
    public suspend fun datetimeFormat(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.datetimeFormat = mapped
    }

    /**
     * @param value Specifies the encoding of the log file so that the file can be read correctly. The default is `utf_8`.
     */
    @JvmName("bydnvryugiyairqy")
    public suspend fun encoding(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encoding = mapped
    }

    /**
     * @param value Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*).
     */
    @JvmName("kseqknmegiejbrjg")
    public suspend fun `file`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`file` = mapped
    }

    /**
     * @param value Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as `1`, `2-5`. The default value is `1`.
     */
    @JvmName("siyrbmhcojcsnbql")
    public suspend fun fileFingerprintLines(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileFingerprintLines = mapped
    }

    /**
     * @param value Specifies where to start to read data (`start_of_file` or `end_of_file`). The default is `start_of_file`.
     */
    @JvmName("iwuwsikpoyqshnlt")
    public suspend fun initialPosition(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.initialPosition = mapped
    }

    /**
     * @param value Specifies the destination log group. A log group is created automatically if it doesn't already exist.
     */
    @JvmName("wfdxrkcsmjucfyjc")
    public suspend fun logGroupName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logGroupName = mapped
    }

    /**
     * @param value Specifies the pattern for identifying the start of a log message.
     */
    @JvmName("tvjuktdahhtpduod")
    public suspend fun multilineStartPattern(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.multilineStartPattern = mapped
    }

    /**
     * @param value Specifies the time zone of log event time stamps.
     */
    @JvmName("ngrtsjyqtqddmfpq")
    public suspend fun timeZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeZone = mapped
    }

    internal fun build(): CustomLayerCloudwatchConfigurationLogStreamArgs =
        CustomLayerCloudwatchConfigurationLogStreamArgs(
            batchCount = batchCount,
            batchSize = batchSize,
            bufferDuration = bufferDuration,
            datetimeFormat = datetimeFormat,
            encoding = encoding,
            `file` = `file` ?: throw PulumiNullFieldException("file"),
            fileFingerprintLines = fileFingerprintLines,
            initialPosition = initialPosition,
            logGroupName = logGroupName ?: throw PulumiNullFieldException("logGroupName"),
            multilineStartPattern = multilineStartPattern,
            timeZone = timeZone,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy