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

com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleSigV4AuthorizationArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin.inputs

import com.pulumi.awsnative.iot.inputs.TopicRuleSigV4AuthorizationArgs.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 ARN of the signing role.
 * @property serviceName The service name to use while signing with Sig V4.
 * @property signingRegion The signing region.
 */
public data class TopicRuleSigV4AuthorizationArgs(
    public val roleArn: Output,
    public val serviceName: Output,
    public val signingRegion: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleSigV4AuthorizationArgs =
        com.pulumi.awsnative.iot.inputs.TopicRuleSigV4AuthorizationArgs.builder()
            .roleArn(roleArn.applyValue({ args0 -> args0 }))
            .serviceName(serviceName.applyValue({ args0 -> args0 }))
            .signingRegion(signingRegion.applyValue({ args0 -> args0 })).build()
}

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

    private var serviceName: Output? = null

    private var signingRegion: Output? = null

    /**
     * @param value The ARN of the signing role.
     */
    @JvmName("eghkimcfycrnuteg")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The service name to use while signing with Sig V4.
     */
    @JvmName("bvwtlqctnywgmpxk")
    public suspend fun serviceName(`value`: Output) {
        this.serviceName = value
    }

    /**
     * @param value The signing region.
     */
    @JvmName("qpjdyyvqckdygamm")
    public suspend fun signingRegion(`value`: Output) {
        this.signingRegion = value
    }

    /**
     * @param value The ARN of the signing role.
     */
    @JvmName("hqwvwermwgstoxyd")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The service name to use while signing with Sig V4.
     */
    @JvmName("agwauvumlcbjtuey")
    public suspend fun serviceName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceName = mapped
    }

    /**
     * @param value The signing region.
     */
    @JvmName("vqbdhltdggtabsoh")
    public suspend fun signingRegion(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.signingRegion = mapped
    }

    internal fun build(): TopicRuleSigV4AuthorizationArgs = TopicRuleSigV4AuthorizationArgs(
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        serviceName = serviceName ?: throw PulumiNullFieldException("serviceName"),
        signingRegion = signingRegion ?: throw PulumiNullFieldException("signingRegion"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy