
com.pulumi.awsnative.ec2.kotlin.TransitGatewayMulticastGroupSource.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 [TransitGatewayMulticastGroupSource].
*/
@PulumiTagMarker
public class TransitGatewayMulticastGroupSourceResourceBuilder internal constructor() {
public var name: String? = null
public var args: TransitGatewayMulticastGroupSourceArgs = TransitGatewayMulticastGroupSourceArgs()
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 TransitGatewayMulticastGroupSourceArgsBuilder.() -> Unit) {
val builder = TransitGatewayMulticastGroupSourceArgsBuilder()
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(): TransitGatewayMulticastGroupSource {
val builtJavaResource =
com.pulumi.awsnative.ec2.TransitGatewayMulticastGroupSource(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return TransitGatewayMulticastGroupSource(builtJavaResource)
}
}
/**
* The AWS::EC2::TransitGatewayMulticastGroupSource registers and deregisters members and sources (network interfaces) with the transit gateway multicast group
*/
public class TransitGatewayMulticastGroupSource internal constructor(
override val javaResource: com.pulumi.awsnative.ec2.TransitGatewayMulticastGroupSource,
) : KotlinCustomResource(javaResource, TransitGatewayMulticastGroupSourceMapper) {
/**
* The IP address assigned to the transit gateway multicast group.
*/
public val groupIpAddress: Output
get() = javaResource.groupIpAddress().applyValue({ args0 -> args0 })
/**
* Indicates that the resource is a transit gateway multicast group member.
*/
public val groupMember: Output
get() = javaResource.groupMember().applyValue({ args0 -> args0 })
/**
* Indicates that the resource is a transit gateway multicast group member.
*/
public val groupSource: Output
get() = javaResource.groupSource().applyValue({ args0 -> args0 })
/**
* The member type (for example, static).
*/
public val memberType: Output
get() = javaResource.memberType().applyValue({ args0 -> args0 })
/**
* The ID of the transit gateway attachment.
*/
public val networkInterfaceId: Output
get() = javaResource.networkInterfaceId().applyValue({ args0 -> args0 })
/**
* 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 source type.
*/
public val sourceType: Output
get() = javaResource.sourceType().applyValue({ args0 -> args0 })
/**
* The ID of the subnet.
*/
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 TransitGatewayMulticastGroupSourceMapper :
ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.ec2.TransitGatewayMulticastGroupSource::class == javaResource::class
override fun map(javaResource: Resource): TransitGatewayMulticastGroupSource =
TransitGatewayMulticastGroupSource(
javaResource as
com.pulumi.awsnative.ec2.TransitGatewayMulticastGroupSource,
)
}
/**
* @see [TransitGatewayMulticastGroupSource].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [TransitGatewayMulticastGroupSource].
*/
public suspend fun transitGatewayMulticastGroupSource(
name: String,
block: suspend TransitGatewayMulticastGroupSourceResourceBuilder.() -> Unit,
): TransitGatewayMulticastGroupSource {
val builder = TransitGatewayMulticastGroupSourceResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [TransitGatewayMulticastGroupSource].
* @param name The _unique_ name of the resulting resource.
*/
public fun transitGatewayMulticastGroupSource(name: String): TransitGatewayMulticastGroupSource {
val builder = TransitGatewayMulticastGroupSourceResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy