com.pulumi.aws.ec2transitgateway.kotlin.MulticastGroupSourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.ec2transitgateway.kotlin
import com.pulumi.aws.ec2transitgateway.MulticastGroupSourceArgs.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
/**
* Registers sources (network interfaces) with the transit gateway multicast group.
* A multicast source is a network interface attached to a supported instance that sends multicast traffic.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.ec2transitgateway.MulticastGroupSource("example", {
* groupIpAddress: "224.0.0.1",
* networkInterfaceId: exampleAwsNetworkInterface.id,
* transitGatewayMulticastDomainId: exampleAwsEc2TransitGatewayMulticastDomain.id,
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.ec2transitgateway.MulticastGroupSource("example",
* group_ip_address="224.0.0.1",
* network_interface_id=example_aws_network_interface["id"],
* transit_gateway_multicast_domain_id=example_aws_ec2_transit_gateway_multicast_domain["id"])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Ec2TransitGateway.MulticastGroupSource("example", new()
* {
* GroupIpAddress = "224.0.0.1",
* NetworkInterfaceId = exampleAwsNetworkInterface.Id,
* TransitGatewayMulticastDomainId = exampleAwsEc2TransitGatewayMulticastDomain.Id,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2transitgateway"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := ec2transitgateway.NewMulticastGroupSource(ctx, "example", &ec2transitgateway.MulticastGroupSourceArgs{
* GroupIpAddress: pulumi.String("224.0.0.1"),
* NetworkInterfaceId: pulumi.Any(exampleAwsNetworkInterface.Id),
* TransitGatewayMulticastDomainId: pulumi.Any(exampleAwsEc2TransitGatewayMulticastDomain.Id),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.ec2transitgateway.MulticastGroupSource;
* import com.pulumi.aws.ec2transitgateway.MulticastGroupSourceArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new MulticastGroupSource("example", MulticastGroupSourceArgs.builder()
* .groupIpAddress("224.0.0.1")
* .networkInterfaceId(exampleAwsNetworkInterface.id())
* .transitGatewayMulticastDomainId(exampleAwsEc2TransitGatewayMulticastDomain.id())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:ec2transitgateway:MulticastGroupSource
* properties:
* groupIpAddress: 224.0.0.1
* networkInterfaceId: ${exampleAwsNetworkInterface.id}
* transitGatewayMulticastDomainId: ${exampleAwsEc2TransitGatewayMulticastDomain.id}
* ```
*
* @property groupIpAddress The IP address assigned to the transit gateway multicast group.
* @property networkInterfaceId The group members' network interface ID to register with the transit gateway multicast group.
* @property transitGatewayMulticastDomainId The ID of the transit gateway multicast domain.
*/
public data class MulticastGroupSourceArgs(
public val groupIpAddress: Output? = null,
public val networkInterfaceId: Output? = null,
public val transitGatewayMulticastDomainId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.ec2transitgateway.MulticastGroupSourceArgs =
com.pulumi.aws.ec2transitgateway.MulticastGroupSourceArgs.builder()
.groupIpAddress(groupIpAddress?.applyValue({ args0 -> args0 }))
.networkInterfaceId(networkInterfaceId?.applyValue({ args0 -> args0 }))
.transitGatewayMulticastDomainId(
transitGatewayMulticastDomainId?.applyValue({ args0 ->
args0
}),
).build()
}
/**
* Builder for [MulticastGroupSourceArgs].
*/
@PulumiTagMarker
public class MulticastGroupSourceArgsBuilder internal constructor() {
private var groupIpAddress: Output? = null
private var networkInterfaceId: Output? = null
private var transitGatewayMulticastDomainId: Output? = null
/**
* @param value The IP address assigned to the transit gateway multicast group.
*/
@JvmName("huexfeaadkxpbevs")
public suspend fun groupIpAddress(`value`: Output) {
this.groupIpAddress = value
}
/**
* @param value The group members' network interface ID to register with the transit gateway multicast group.
*/
@JvmName("ebxqfidqwjrjdeel")
public suspend fun networkInterfaceId(`value`: Output) {
this.networkInterfaceId = value
}
/**
* @param value The ID of the transit gateway multicast domain.
*/
@JvmName("jasnioumdivkmdkd")
public suspend fun transitGatewayMulticastDomainId(`value`: Output) {
this.transitGatewayMulticastDomainId = value
}
/**
* @param value The IP address assigned to the transit gateway multicast group.
*/
@JvmName("stpmvxwdiudjexia")
public suspend fun groupIpAddress(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.groupIpAddress = mapped
}
/**
* @param value The group members' network interface ID to register with the transit gateway multicast group.
*/
@JvmName("fdlqatrgkhoqjnra")
public suspend fun networkInterfaceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.networkInterfaceId = mapped
}
/**
* @param value The ID of the transit gateway multicast domain.
*/
@JvmName("fruvelvlattqgnyx")
public suspend fun transitGatewayMulticastDomainId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.transitGatewayMulticastDomainId = mapped
}
internal fun build(): MulticastGroupSourceArgs = MulticastGroupSourceArgs(
groupIpAddress = groupIpAddress,
networkInterfaceId = networkInterfaceId,
transitGatewayMulticastDomainId = transitGatewayMulticastDomainId,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy