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

com.pulumi.awsnative.apigateway.kotlin.AccountArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.apigateway.kotlin

import com.pulumi.awsnative.apigateway.AccountArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The ``AWS::ApiGateway::Account`` resource specifies the IAM role that Amazon API Gateway uses to write API logs to Amazon CloudWatch Logs. To avoid overwriting other roles, you should only have one ``AWS::ApiGateway::Account`` resource per region per account.
 * @property cloudWatchRoleArn The ARN of an Amazon CloudWatch role for the current Account.
 */
public data class AccountArgs(
    public val cloudWatchRoleArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.apigateway.AccountArgs =
        com.pulumi.awsnative.apigateway.AccountArgs.builder()
            .cloudWatchRoleArn(cloudWatchRoleArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccountArgs].
 */
@PulumiTagMarker
public class AccountArgsBuilder internal constructor() {
    private var cloudWatchRoleArn: Output? = null

    /**
     * @param value The ARN of an Amazon CloudWatch role for the current Account.
     */
    @JvmName("egsrlpdvfudntmps")
    public suspend fun cloudWatchRoleArn(`value`: Output) {
        this.cloudWatchRoleArn = value
    }

    /**
     * @param value The ARN of an Amazon CloudWatch role for the current Account.
     */
    @JvmName("xkimnldmfhxpfysl")
    public suspend fun cloudWatchRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudWatchRoleArn = mapped
    }

    internal fun build(): AccountArgs = AccountArgs(
        cloudWatchRoleArn = cloudWatchRoleArn,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy