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

com.pulumi.awsnative.globalaccelerator.kotlin.inputs.CrossAccountAttachmentResourceArgs.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.globalaccelerator.kotlin.inputs

import com.pulumi.awsnative.globalaccelerator.inputs.CrossAccountAttachmentResourceArgs.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

/**
 * ARN of resource to share.
 * @property endpointId The endpoint ID for the endpoint that is specified as a AWS resource.
 * An endpoint ID for the cross-account feature is the ARN of an AWS resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.
 * @property region The AWS Region where a shared endpoint resource is located.
 */
public data class CrossAccountAttachmentResourceArgs(
    public val endpointId: Output,
    public val region: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.globalaccelerator.inputs.CrossAccountAttachmentResourceArgs =
        com.pulumi.awsnative.globalaccelerator.inputs.CrossAccountAttachmentResourceArgs.builder()
            .endpointId(endpointId.applyValue({ args0 -> args0 }))
            .region(region?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CrossAccountAttachmentResourceArgs].
 */
@PulumiTagMarker
public class CrossAccountAttachmentResourceArgsBuilder internal constructor() {
    private var endpointId: Output? = null

    private var region: Output? = null

    /**
     * @param value The endpoint ID for the endpoint that is specified as a AWS resource.
     * An endpoint ID for the cross-account feature is the ARN of an AWS resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.
     */
    @JvmName("fnsgyusutmcgtqoi")
    public suspend fun endpointId(`value`: Output) {
        this.endpointId = value
    }

    /**
     * @param value The AWS Region where a shared endpoint resource is located.
     */
    @JvmName("qxioflgixdapkvxi")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

    /**
     * @param value The endpoint ID for the endpoint that is specified as a AWS resource.
     * An endpoint ID for the cross-account feature is the ARN of an AWS resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.
     */
    @JvmName("oayoorgqdlagwppt")
    public suspend fun endpointId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpointId = mapped
    }

    /**
     * @param value The AWS Region where a shared endpoint resource is located.
     */
    @JvmName("yoogesjmjxmsryep")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.region = mapped
    }

    internal fun build(): CrossAccountAttachmentResourceArgs = CrossAccountAttachmentResourceArgs(
        endpointId = endpointId ?: throw PulumiNullFieldException("endpointId"),
        region = region,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy