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

com.pulumi.gcp.pubsub.kotlin.inputs.TopicIngestionDataSourceSettingsAwsKinesisArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.pubsub.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.pubsub.inputs.TopicIngestionDataSourceSettingsAwsKinesisArgs.builder
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 awsRoleArn AWS role ARN to be used for Federated Identity authentication with
 * Kinesis. Check the Pub/Sub docs for how to set up this role and the
 * required permissions that need to be attached to it.
 * @property consumerArn The Kinesis consumer ARN to used for ingestion in
 * Enhanced Fan-Out mode. The consumer must be already
 * created and ready to be used.
 * @property gcpServiceAccount The GCP service account to be used for Federated Identity authentication
 * with Kinesis (via a `AssumeRoleWithWebIdentity` call for the provided
 * role). The `awsRoleArn` must be set up with `accounts.google.com:sub`
 * equals to this service account number.
 * @property streamArn The Kinesis stream ARN to ingest data from.
 */
public data class TopicIngestionDataSourceSettingsAwsKinesisArgs(
    public val awsRoleArn: Output,
    public val consumerArn: Output,
    public val gcpServiceAccount: Output,
    public val streamArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.pubsub.inputs.TopicIngestionDataSourceSettingsAwsKinesisArgs = com.pulumi.gcp.pubsub.inputs.TopicIngestionDataSourceSettingsAwsKinesisArgs.builder()
        .awsRoleArn(awsRoleArn.applyValue({ args0 -> args0 }))
        .consumerArn(consumerArn.applyValue({ args0 -> args0 }))
        .gcpServiceAccount(gcpServiceAccount.applyValue({ args0 -> args0 }))
        .streamArn(streamArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TopicIngestionDataSourceSettingsAwsKinesisArgs].
 */
@PulumiTagMarker
public class TopicIngestionDataSourceSettingsAwsKinesisArgsBuilder internal constructor() {
    private var awsRoleArn: Output? = null

    private var consumerArn: Output? = null

    private var gcpServiceAccount: Output? = null

    private var streamArn: Output? = null

    /**
     * @param value AWS role ARN to be used for Federated Identity authentication with
     * Kinesis. Check the Pub/Sub docs for how to set up this role and the
     * required permissions that need to be attached to it.
     */
    @JvmName("sxdybhpdsopqcvas")
    public suspend fun awsRoleArn(`value`: Output) {
        this.awsRoleArn = value
    }

    /**
     * @param value The Kinesis consumer ARN to used for ingestion in
     * Enhanced Fan-Out mode. The consumer must be already
     * created and ready to be used.
     */
    @JvmName("ciheocvyqqqbbipd")
    public suspend fun consumerArn(`value`: Output) {
        this.consumerArn = value
    }

    /**
     * @param value The GCP service account to be used for Federated Identity authentication
     * with Kinesis (via a `AssumeRoleWithWebIdentity` call for the provided
     * role). The `awsRoleArn` must be set up with `accounts.google.com:sub`
     * equals to this service account number.
     */
    @JvmName("hcqpvujtyohrjlkj")
    public suspend fun gcpServiceAccount(`value`: Output) {
        this.gcpServiceAccount = value
    }

    /**
     * @param value The Kinesis stream ARN to ingest data from.
     */
    @JvmName("iakvkxxiojvhrxed")
    public suspend fun streamArn(`value`: Output) {
        this.streamArn = value
    }

    /**
     * @param value AWS role ARN to be used for Federated Identity authentication with
     * Kinesis. Check the Pub/Sub docs for how to set up this role and the
     * required permissions that need to be attached to it.
     */
    @JvmName("dtvhrapljaucbqql")
    public suspend fun awsRoleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.awsRoleArn = mapped
    }

    /**
     * @param value The Kinesis consumer ARN to used for ingestion in
     * Enhanced Fan-Out mode. The consumer must be already
     * created and ready to be used.
     */
    @JvmName("hdbpfpgpcdwvbnhv")
    public suspend fun consumerArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.consumerArn = mapped
    }

    /**
     * @param value The GCP service account to be used for Federated Identity authentication
     * with Kinesis (via a `AssumeRoleWithWebIdentity` call for the provided
     * role). The `awsRoleArn` must be set up with `accounts.google.com:sub`
     * equals to this service account number.
     */
    @JvmName("upsahtwtuecbddkn")
    public suspend fun gcpServiceAccount(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.gcpServiceAccount = mapped
    }

    /**
     * @param value The Kinesis stream ARN to ingest data from.
     */
    @JvmName("uucdbqkrohdhuxvr")
    public suspend fun streamArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streamArn = mapped
    }

    internal fun build(): TopicIngestionDataSourceSettingsAwsKinesisArgs =
        TopicIngestionDataSourceSettingsAwsKinesisArgs(
            awsRoleArn = awsRoleArn ?: throw PulumiNullFieldException("awsRoleArn"),
            consumerArn = consumerArn ?: throw PulumiNullFieldException("consumerArn"),
            gcpServiceAccount = gcpServiceAccount ?: throw PulumiNullFieldException("gcpServiceAccount"),
            streamArn = streamArn ?: throw PulumiNullFieldException("streamArn"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy