
com.pulumi.awsnative.ec2.kotlin.TransitGatewayMulticastDomainAssociation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ec2.kotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
/**
* Builder for [TransitGatewayMulticastDomainAssociation].
*/
@PulumiTagMarker
public class TransitGatewayMulticastDomainAssociationResourceBuilder internal constructor() {
public var name: String? = null
public var args: TransitGatewayMulticastDomainAssociationArgs =
TransitGatewayMulticastDomainAssociationArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend TransitGatewayMulticastDomainAssociationArgsBuilder.() -> Unit) {
val builder = TransitGatewayMulticastDomainAssociationArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): TransitGatewayMulticastDomainAssociation {
val builtJavaResource =
com.pulumi.awsnative.ec2.TransitGatewayMulticastDomainAssociation(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return TransitGatewayMulticastDomainAssociation(builtJavaResource)
}
}
/**
* The AWS::EC2::TransitGatewayMulticastDomainAssociation type
*/
public class TransitGatewayMulticastDomainAssociation internal constructor(
override val javaResource: com.pulumi.awsnative.ec2.TransitGatewayMulticastDomainAssociation,
) : KotlinCustomResource(javaResource, TransitGatewayMulticastDomainAssociationMapper) {
/**
* The ID of the resource.
*/
public val resourceId: Output
get() = javaResource.resourceId().applyValue({ args0 -> args0 })
/**
* The type of resource, for example a VPC attachment.
*/
public val resourceType: Output
get() = javaResource.resourceType().applyValue({ args0 -> args0 })
/**
* The state of the subnet association.
*/
public val state: Output
get() = javaResource.state().applyValue({ args0 -> args0 })
/**
* The IDs of the subnets to associate with the transit gateway multicast domain.
*/
public val subnetId: Output
get() = javaResource.subnetId().applyValue({ args0 -> args0 })
/**
* The ID of the transit gateway attachment.
*/
public val transitGatewayAttachmentId: Output
get() = javaResource.transitGatewayAttachmentId().applyValue({ args0 -> args0 })
/**
* The ID of the transit gateway multicast domain.
*/
public val transitGatewayMulticastDomainId: Output
get() = javaResource.transitGatewayMulticastDomainId().applyValue({ args0 -> args0 })
}
public object TransitGatewayMulticastDomainAssociationMapper :
ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.ec2.TransitGatewayMulticastDomainAssociation::class == javaResource::class
override fun map(javaResource: Resource): TransitGatewayMulticastDomainAssociation =
TransitGatewayMulticastDomainAssociation(
javaResource as
com.pulumi.awsnative.ec2.TransitGatewayMulticastDomainAssociation,
)
}
/**
* @see [TransitGatewayMulticastDomainAssociation].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [TransitGatewayMulticastDomainAssociation].
*/
public suspend fun transitGatewayMulticastDomainAssociation(
name: String,
block: suspend TransitGatewayMulticastDomainAssociationResourceBuilder.() -> Unit,
): TransitGatewayMulticastDomainAssociation {
val builder = TransitGatewayMulticastDomainAssociationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [TransitGatewayMulticastDomainAssociation].
* @param name The _unique_ name of the resulting resource.
*/
public fun transitGatewayMulticastDomainAssociation(name: String): TransitGatewayMulticastDomainAssociation {
val builder = TransitGatewayMulticastDomainAssociationResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy