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

com.pulumi.awsnative.rds.kotlin.inputs.DbInstanceDbInstanceRoleArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.rds.kotlin.inputs

import com.pulumi.awsnative.rds.inputs.DbInstanceDbInstanceRoleArgs.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

/**
 * Information about an AWS Identity and Access Management (IAM) role that is associated with a DB instance.
 * @property featureName The name of the feature associated with the AWS Identity and Access Management (IAM) role. IAM roles that are associated with a DB instance grant permission for the DB instance to access other AWS services on your behalf. For the list of supported feature names, see the ``SupportedFeatureNames`` description in [DBEngineVersion](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DBEngineVersion.html) in the *Amazon RDS API Reference*.
 * @property roleArn The Amazon Resource Name (ARN) of the IAM role that is associated with the DB instance.
 */
public data class DbInstanceDbInstanceRoleArgs(
    public val featureName: Output,
    public val roleArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.rds.inputs.DbInstanceDbInstanceRoleArgs =
        com.pulumi.awsnative.rds.inputs.DbInstanceDbInstanceRoleArgs.builder()
            .featureName(featureName.applyValue({ args0 -> args0 }))
            .roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DbInstanceDbInstanceRoleArgs].
 */
@PulumiTagMarker
public class DbInstanceDbInstanceRoleArgsBuilder internal constructor() {
    private var featureName: Output? = null

    private var roleArn: Output? = null

    /**
     * @param value The name of the feature associated with the AWS Identity and Access Management (IAM) role. IAM roles that are associated with a DB instance grant permission for the DB instance to access other AWS services on your behalf. For the list of supported feature names, see the ``SupportedFeatureNames`` description in [DBEngineVersion](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DBEngineVersion.html) in the *Amazon RDS API Reference*.
     */
    @JvmName("udfrxwrtdjqoktab")
    public suspend fun featureName(`value`: Output) {
        this.featureName = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role that is associated with the DB instance.
     */
    @JvmName("oetgjgascahajwvs")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The name of the feature associated with the AWS Identity and Access Management (IAM) role. IAM roles that are associated with a DB instance grant permission for the DB instance to access other AWS services on your behalf. For the list of supported feature names, see the ``SupportedFeatureNames`` description in [DBEngineVersion](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DBEngineVersion.html) in the *Amazon RDS API Reference*.
     */
    @JvmName("rchqmlbfrlkkvnoa")
    public suspend fun featureName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.featureName = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role that is associated with the DB instance.
     */
    @JvmName("vysugmdmsqufelac")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    internal fun build(): DbInstanceDbInstanceRoleArgs = DbInstanceDbInstanceRoleArgs(
        featureName = featureName ?: throw PulumiNullFieldException("featureName"),
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy