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

com.pulumi.awsnative.ecs.kotlin.inputs.ClusterExecuteCommandLogConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ecs.kotlin.inputs

import com.pulumi.awsnative.ecs.inputs.ClusterExecuteCommandLogConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket.
 * @property cloudWatchEncryptionEnabled Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
 * @property cloudWatchLogGroupName The name of the CloudWatch log group to send logs to.
 *   The CloudWatch log group must already be created.
 * @property s3BucketName The name of the S3 bucket to send logs to.
 *   The S3 bucket must already be created.
 * @property s3EncryptionEnabled Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
 * @property s3KeyPrefix An optional folder in the S3 bucket to place logs in.
 */
public data class ClusterExecuteCommandLogConfigurationArgs(
    public val cloudWatchEncryptionEnabled: Output? = null,
    public val cloudWatchLogGroupName: Output? = null,
    public val s3BucketName: Output? = null,
    public val s3EncryptionEnabled: Output? = null,
    public val s3KeyPrefix: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecs.inputs.ClusterExecuteCommandLogConfigurationArgs =
        com.pulumi.awsnative.ecs.inputs.ClusterExecuteCommandLogConfigurationArgs.builder()
            .cloudWatchEncryptionEnabled(cloudWatchEncryptionEnabled?.applyValue({ args0 -> args0 }))
            .cloudWatchLogGroupName(cloudWatchLogGroupName?.applyValue({ args0 -> args0 }))
            .s3BucketName(s3BucketName?.applyValue({ args0 -> args0 }))
            .s3EncryptionEnabled(s3EncryptionEnabled?.applyValue({ args0 -> args0 }))
            .s3KeyPrefix(s3KeyPrefix?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterExecuteCommandLogConfigurationArgs].
 */
@PulumiTagMarker
public class ClusterExecuteCommandLogConfigurationArgsBuilder internal constructor() {
    private var cloudWatchEncryptionEnabled: Output? = null

    private var cloudWatchLogGroupName: Output? = null

    private var s3BucketName: Output? = null

    private var s3EncryptionEnabled: Output? = null

    private var s3KeyPrefix: Output? = null

    /**
     * @param value Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
     */
    @JvmName("kwprfphhwdshiucr")
    public suspend fun cloudWatchEncryptionEnabled(`value`: Output) {
        this.cloudWatchEncryptionEnabled = value
    }

    /**
     * @param value The name of the CloudWatch log group to send logs to.
     *   The CloudWatch log group must already be created.
     */
    @JvmName("rwklsdnrkthwsglu")
    public suspend fun cloudWatchLogGroupName(`value`: Output) {
        this.cloudWatchLogGroupName = value
    }

    /**
     * @param value The name of the S3 bucket to send logs to.
     *   The S3 bucket must already be created.
     */
    @JvmName("sfakuehdcemckrfq")
    public suspend fun s3BucketName(`value`: Output) {
        this.s3BucketName = value
    }

    /**
     * @param value Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
     */
    @JvmName("lwtduowfhstxvcut")
    public suspend fun s3EncryptionEnabled(`value`: Output) {
        this.s3EncryptionEnabled = value
    }

    /**
     * @param value An optional folder in the S3 bucket to place logs in.
     */
    @JvmName("nuvjhygeqpsosvoj")
    public suspend fun s3KeyPrefix(`value`: Output) {
        this.s3KeyPrefix = value
    }

    /**
     * @param value Determines whether to use encryption on the CloudWatch logs. If not specified, encryption will be off.
     */
    @JvmName("dviceiyatnwlftyd")
    public suspend fun cloudWatchEncryptionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudWatchEncryptionEnabled = mapped
    }

    /**
     * @param value The name of the CloudWatch log group to send logs to.
     *   The CloudWatch log group must already be created.
     */
    @JvmName("abmhitaejddelgnq")
    public suspend fun cloudWatchLogGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudWatchLogGroupName = mapped
    }

    /**
     * @param value The name of the S3 bucket to send logs to.
     *   The S3 bucket must already be created.
     */
    @JvmName("bqhetwrqgweamjtn")
    public suspend fun s3BucketName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3BucketName = mapped
    }

    /**
     * @param value Determines whether to use encryption on the S3 logs. If not specified, encryption is not used.
     */
    @JvmName("jxkqvuttmsrchnwo")
    public suspend fun s3EncryptionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3EncryptionEnabled = mapped
    }

    /**
     * @param value An optional folder in the S3 bucket to place logs in.
     */
    @JvmName("ovkhqqnmprcqsxsh")
    public suspend fun s3KeyPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3KeyPrefix = mapped
    }

    internal fun build(): ClusterExecuteCommandLogConfigurationArgs =
        ClusterExecuteCommandLogConfigurationArgs(
            cloudWatchEncryptionEnabled = cloudWatchEncryptionEnabled,
            cloudWatchLogGroupName = cloudWatchLogGroupName,
            s3BucketName = s3BucketName,
            s3EncryptionEnabled = s3EncryptionEnabled,
            s3KeyPrefix = s3KeyPrefix,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy