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

com.pulumi.awsnative.cloudfront.kotlin.inputs.RealtimeLogConfigKinesisStreamConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.cloudfront.kotlin.inputs

import com.pulumi.awsnative.cloudfront.inputs.RealtimeLogConfigKinesisStreamConfigArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property roleArn The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that CloudFront can use to send real-time log data to your Kinesis data stream.
 * For more information the IAM role, see [Real-time log configuration IAM role](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-iam-role) in the *Amazon CloudFront Developer Guide* .
 * @property streamArn The Amazon Resource Name (ARN) of the Kinesis data stream where you are sending real-time log data.
 */
public data class RealtimeLogConfigKinesisStreamConfigArgs(
    public val roleArn: Output,
    public val streamArn: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.RealtimeLogConfigKinesisStreamConfigArgs =
        com.pulumi.awsnative.cloudfront.inputs.RealtimeLogConfigKinesisStreamConfigArgs.builder()
            .roleArn(roleArn.applyValue({ args0 -> args0 }))
            .streamArn(streamArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RealtimeLogConfigKinesisStreamConfigArgs].
 */
@PulumiTagMarker
public class RealtimeLogConfigKinesisStreamConfigArgsBuilder internal constructor() {
    private var roleArn: Output? = null

    private var streamArn: Output? = null

    /**
     * @param value The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that CloudFront can use to send real-time log data to your Kinesis data stream.
     * For more information the IAM role, see [Real-time log configuration IAM role](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-iam-role) in the *Amazon CloudFront Developer Guide* .
     */
    @JvmName("xpvbaueboovhibuf")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the Kinesis data stream where you are sending real-time log data.
     */
    @JvmName("uugkvalcdyxowmny")
    public suspend fun streamArn(`value`: Output) {
        this.streamArn = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that CloudFront can use to send real-time log data to your Kinesis data stream.
     * For more information the IAM role, see [Real-time log configuration IAM role](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-iam-role) in the *Amazon CloudFront Developer Guide* .
     */
    @JvmName("ubkjdqkxiprlpqrr")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the Kinesis data stream where you are sending real-time log data.
     */
    @JvmName("hcaqukumbpktqvcy")
    public suspend fun streamArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streamArn = mapped
    }

    internal fun build(): RealtimeLogConfigKinesisStreamConfigArgs =
        RealtimeLogConfigKinesisStreamConfigArgs(
            roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
            streamArn = streamArn ?: throw PulumiNullFieldException("streamArn"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy