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

com.pulumi.aws.lightsail.kotlin.BucketResourceAccessArgs.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: 6.66.3.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.lightsail.kotlin

import com.pulumi.aws.lightsail.BucketResourceAccessArgs.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

/**
 * Provides a lightsail resource access to a bucket.
 * ## Import
 * Using `pulumi import`, import `aws_lightsail_bucket_resource_access` using the `id` attribute. For example:
 * ```sh
 * $ pulumi import aws:lightsail/bucketResourceAccess:BucketResourceAccess test example-bucket,example-instance
 * ```
 * @property bucketName The name of the bucket to grant access to.
 * @property resourceName The name of the resource to be granted bucket access.
 */
public data class BucketResourceAccessArgs(
    public val bucketName: Output? = null,
    public val resourceName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lightsail.BucketResourceAccessArgs =
        com.pulumi.aws.lightsail.BucketResourceAccessArgs.builder()
            .bucketName(bucketName?.applyValue({ args0 -> args0 }))
            .resourceName(resourceName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BucketResourceAccessArgs].
 */
@PulumiTagMarker
public class BucketResourceAccessArgsBuilder internal constructor() {
    private var bucketName: Output? = null

    private var resourceName: Output? = null

    /**
     * @param value The name of the bucket to grant access to.
     */
    @JvmName("olusumsxvbqebxem")
    public suspend fun bucketName(`value`: Output) {
        this.bucketName = value
    }

    /**
     * @param value The name of the resource to be granted bucket access.
     */
    @JvmName("ugugfaqxgkowqxva")
    public suspend fun resourceName(`value`: Output) {
        this.resourceName = value
    }

    /**
     * @param value The name of the bucket to grant access to.
     */
    @JvmName("vmwqbsrkwxeddjtw")
    public suspend fun bucketName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bucketName = mapped
    }

    /**
     * @param value The name of the resource to be granted bucket access.
     */
    @JvmName("tbcfxrwdymrfonys")
    public suspend fun resourceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceName = mapped
    }

    internal fun build(): BucketResourceAccessArgs = BucketResourceAccessArgs(
        bucketName = bucketName,
        resourceName = resourceName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy