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

com.pulumi.awsnative.iam.kotlin.ServiceLinkedRoleArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iam.kotlin

import com.pulumi.awsnative.iam.ServiceLinkedRoleArgs.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

/**
 * Resource Type definition for AWS::IAM::ServiceLinkedRole
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property awsServiceName The service principal for the AWS service to which this role is attached.
 * @property customSuffix A string that you provide, which is combined with the service-provided prefix to form the complete role name.
 * @property description The description of the role.
 */
public data class ServiceLinkedRoleArgs(
    public val awsServiceName: Output? = null,
    public val customSuffix: Output? = null,
    public val description: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iam.ServiceLinkedRoleArgs =
        com.pulumi.awsnative.iam.ServiceLinkedRoleArgs.builder()
            .awsServiceName(awsServiceName?.applyValue({ args0 -> args0 }))
            .customSuffix(customSuffix?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceLinkedRoleArgs].
 */
@PulumiTagMarker
public class ServiceLinkedRoleArgsBuilder internal constructor() {
    private var awsServiceName: Output? = null

    private var customSuffix: Output? = null

    private var description: Output? = null

    /**
     * @param value The service principal for the AWS service to which this role is attached.
     */
    @JvmName("hgjidywocbtcfxpc")
    public suspend fun awsServiceName(`value`: Output) {
        this.awsServiceName = value
    }

    /**
     * @param value A string that you provide, which is combined with the service-provided prefix to form the complete role name.
     */
    @JvmName("cbxomaibulwghqho")
    public suspend fun customSuffix(`value`: Output) {
        this.customSuffix = value
    }

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

    /**
     * @param value The service principal for the AWS service to which this role is attached.
     */
    @JvmName("ptaacpnllfnviqiv")
    public suspend fun awsServiceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsServiceName = mapped
    }

    /**
     * @param value A string that you provide, which is combined with the service-provided prefix to form the complete role name.
     */
    @JvmName("fptqneaatujceghs")
    public suspend fun customSuffix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customSuffix = mapped
    }

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

    internal fun build(): ServiceLinkedRoleArgs = ServiceLinkedRoleArgs(
        awsServiceName = awsServiceName,
        customSuffix = customSuffix,
        description = description,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy