1. Packages
  2. AWS Classic
  3. API Docs
  4. ec2transitgateway
  5. MulticastGroupSource

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.37.1 published on Friday, May 24, 2024 by Pulumi

aws.ec2transitgateway.MulticastGroupSource

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.37.1 published on Friday, May 24, 2024 by Pulumi

    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

    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,
    });
    
    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"])
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      example:
        type: aws:ec2transitgateway:MulticastGroupSource
        properties:
          groupIpAddress: 224.0.0.1
          networkInterfaceId: ${exampleAwsNetworkInterface.id}
          transitGatewayMulticastDomainId: ${exampleAwsEc2TransitGatewayMulticastDomain.id}
    

    Create MulticastGroupSource Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MulticastGroupSource(name: string, args: MulticastGroupSourceArgs, opts?: CustomResourceOptions);
    @overload
    def MulticastGroupSource(resource_name: str,
                             args: MulticastGroupSourceArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def MulticastGroupSource(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             group_ip_address: Optional[str] = None,
                             network_interface_id: Optional[str] = None,
                             transit_gateway_multicast_domain_id: Optional[str] = None)
    func NewMulticastGroupSource(ctx *Context, name string, args MulticastGroupSourceArgs, opts ...ResourceOption) (*MulticastGroupSource, error)
    public MulticastGroupSource(string name, MulticastGroupSourceArgs args, CustomResourceOptions? opts = null)
    public MulticastGroupSource(String name, MulticastGroupSourceArgs args)
    public MulticastGroupSource(String name, MulticastGroupSourceArgs args, CustomResourceOptions options)
    
    type: aws:ec2transitgateway:MulticastGroupSource
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MulticastGroupSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MulticastGroupSourceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MulticastGroupSourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MulticastGroupSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MulticastGroupSourceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var multicastGroupSourceResource = new Aws.Ec2TransitGateway.MulticastGroupSource("multicastGroupSourceResource", new()
    {
        GroupIpAddress = "string",
        NetworkInterfaceId = "string",
        TransitGatewayMulticastDomainId = "string",
    });
    
    example, err := ec2transitgateway.NewMulticastGroupSource(ctx, "multicastGroupSourceResource", &ec2transitgateway.MulticastGroupSourceArgs{
    	GroupIpAddress:                  pulumi.String("string"),
    	NetworkInterfaceId:              pulumi.String("string"),
    	TransitGatewayMulticastDomainId: pulumi.String("string"),
    })
    
    var multicastGroupSourceResource = new MulticastGroupSource("multicastGroupSourceResource", MulticastGroupSourceArgs.builder()        
        .groupIpAddress("string")
        .networkInterfaceId("string")
        .transitGatewayMulticastDomainId("string")
        .build());
    
    multicast_group_source_resource = aws.ec2transitgateway.MulticastGroupSource("multicastGroupSourceResource",
        group_ip_address="string",
        network_interface_id="string",
        transit_gateway_multicast_domain_id="string")
    
    const multicastGroupSourceResource = new aws.ec2transitgateway.MulticastGroupSource("multicastGroupSourceResource", {
        groupIpAddress: "string",
        networkInterfaceId: "string",
        transitGatewayMulticastDomainId: "string",
    });
    
    type: aws:ec2transitgateway:MulticastGroupSource
    properties:
        groupIpAddress: string
        networkInterfaceId: string
        transitGatewayMulticastDomainId: string
    

    MulticastGroupSource Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The MulticastGroupSource resource accepts the following input properties:

    GroupIpAddress string
    The IP address assigned to the transit gateway multicast group.
    NetworkInterfaceId string
    The group members' network interface ID to register with the transit gateway multicast group.
    TransitGatewayMulticastDomainId string
    The ID of the transit gateway multicast domain.
    GroupIpAddress string
    The IP address assigned to the transit gateway multicast group.
    NetworkInterfaceId string
    The group members' network interface ID to register with the transit gateway multicast group.
    TransitGatewayMulticastDomainId string
    The ID of the transit gateway multicast domain.
    groupIpAddress String
    The IP address assigned to the transit gateway multicast group.
    networkInterfaceId String
    The group members' network interface ID to register with the transit gateway multicast group.
    transitGatewayMulticastDomainId String
    The ID of the transit gateway multicast domain.
    groupIpAddress string
    The IP address assigned to the transit gateway multicast group.
    networkInterfaceId string
    The group members' network interface ID to register with the transit gateway multicast group.
    transitGatewayMulticastDomainId string
    The ID of the transit gateway multicast domain.
    group_ip_address str
    The IP address assigned to the transit gateway multicast group.
    network_interface_id str
    The group members' network interface ID to register with the transit gateway multicast group.
    transit_gateway_multicast_domain_id str
    The ID of the transit gateway multicast domain.
    groupIpAddress String
    The IP address assigned to the transit gateway multicast group.
    networkInterfaceId String
    The group members' network interface ID to register with the transit gateway multicast group.
    transitGatewayMulticastDomainId String
    The ID of the transit gateway multicast domain.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MulticastGroupSource resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MulticastGroupSource Resource

    Get an existing MulticastGroupSource resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MulticastGroupSourceState, opts?: CustomResourceOptions): MulticastGroupSource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            group_ip_address: Optional[str] = None,
            network_interface_id: Optional[str] = None,
            transit_gateway_multicast_domain_id: Optional[str] = None) -> MulticastGroupSource
    func GetMulticastGroupSource(ctx *Context, name string, id IDInput, state *MulticastGroupSourceState, opts ...ResourceOption) (*MulticastGroupSource, error)
    public static MulticastGroupSource Get(string name, Input<string> id, MulticastGroupSourceState? state, CustomResourceOptions? opts = null)
    public static MulticastGroupSource get(String name, Output<String> id, MulticastGroupSourceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    GroupIpAddress string
    The IP address assigned to the transit gateway multicast group.
    NetworkInterfaceId string
    The group members' network interface ID to register with the transit gateway multicast group.
    TransitGatewayMulticastDomainId string
    The ID of the transit gateway multicast domain.
    GroupIpAddress string
    The IP address assigned to the transit gateway multicast group.
    NetworkInterfaceId string
    The group members' network interface ID to register with the transit gateway multicast group.
    TransitGatewayMulticastDomainId string
    The ID of the transit gateway multicast domain.
    groupIpAddress String
    The IP address assigned to the transit gateway multicast group.
    networkInterfaceId String
    The group members' network interface ID to register with the transit gateway multicast group.
    transitGatewayMulticastDomainId String
    The ID of the transit gateway multicast domain.
    groupIpAddress string
    The IP address assigned to the transit gateway multicast group.
    networkInterfaceId string
    The group members' network interface ID to register with the transit gateway multicast group.
    transitGatewayMulticastDomainId string
    The ID of the transit gateway multicast domain.
    group_ip_address str
    The IP address assigned to the transit gateway multicast group.
    network_interface_id str
    The group members' network interface ID to register with the transit gateway multicast group.
    transit_gateway_multicast_domain_id str
    The ID of the transit gateway multicast domain.
    groupIpAddress String
    The IP address assigned to the transit gateway multicast group.
    networkInterfaceId String
    The group members' network interface ID to register with the transit gateway multicast group.
    transitGatewayMulticastDomainId String
    The ID of the transit gateway multicast domain.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.37.1 published on Friday, May 24, 2024 by Pulumi