![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ec2.kotlin.TransitGatewayMulticastGroupMember.kt Maven / Gradle / Ivy
@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 [TransitGatewayMulticastGroupMember].
*/
@PulumiTagMarker
public class TransitGatewayMulticastGroupMemberResourceBuilder internal constructor() {
public var name: String? = null
public var args: TransitGatewayMulticastGroupMemberArgs = TransitGatewayMulticastGroupMemberArgs()
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 TransitGatewayMulticastGroupMemberArgsBuilder.() -> Unit) {
val builder = TransitGatewayMulticastGroupMemberArgsBuilder()
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(): TransitGatewayMulticastGroupMember {
val builtJavaResource =
com.pulumi.awsnative.ec2.TransitGatewayMulticastGroupMember(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return TransitGatewayMulticastGroupMember(builtJavaResource)
}
}
/**
* The AWS::EC2::TransitGatewayMulticastGroupMember registers and deregisters members and sources (network interfaces) with the transit gateway multicast group
*/
public class TransitGatewayMulticastGroupMember internal constructor(
override val javaResource: com.pulumi.awsnative.ec2.TransitGatewayMulticastGroupMember,
) : KotlinCustomResource(javaResource, TransitGatewayMulticastGroupMemberMapper) {
/**
* 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 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 TransitGatewayMulticastGroupMemberMapper :
ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.ec2.TransitGatewayMulticastGroupMember::class == javaResource::class
override fun map(javaResource: Resource): TransitGatewayMulticastGroupMember =
TransitGatewayMulticastGroupMember(
javaResource as
com.pulumi.awsnative.ec2.TransitGatewayMulticastGroupMember,
)
}
/**
* @see [TransitGatewayMulticastGroupMember].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [TransitGatewayMulticastGroupMember].
*/
public suspend fun transitGatewayMulticastGroupMember(
name: String,
block: suspend TransitGatewayMulticastGroupMemberResourceBuilder.() -> Unit,
): TransitGatewayMulticastGroupMember {
val builder = TransitGatewayMulticastGroupMemberResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [TransitGatewayMulticastGroupMember].
* @param name The _unique_ name of the resulting resource.
*/
public fun transitGatewayMulticastGroupMember(name: String): TransitGatewayMulticastGroupMember {
val builder = TransitGatewayMulticastGroupMemberResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy