1. Packages
  2. AWS
  3. API Docs
  4. ec2transitgateway
  5. MulticastDomain
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.ec2transitgateway.MulticastDomain

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Manages an EC2 Transit Gateway Multicast Domain.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const available = aws.getAvailabilityZones({
        state: "available",
    });
    const amazonLinux = aws.ec2.getAmi({
        mostRecent: true,
        owners: ["amazon"],
        filters: [
            {
                name: "name",
                values: ["amzn-ami-hvm-*-x86_64-gp2"],
            },
            {
                name: "owner-alias",
                values: ["amazon"],
            },
        ],
    });
    const vpc1 = new aws.ec2.Vpc("vpc1", {cidrBlock: "10.0.0.0/16"});
    const vpc2 = new aws.ec2.Vpc("vpc2", {cidrBlock: "10.1.0.0/16"});
    const subnet1 = new aws.ec2.Subnet("subnet1", {
        vpcId: vpc1.id,
        cidrBlock: "10.0.1.0/24",
        availabilityZone: available.then(available => available.names?.[0]),
    });
    const subnet2 = new aws.ec2.Subnet("subnet2", {
        vpcId: vpc1.id,
        cidrBlock: "10.0.2.0/24",
        availabilityZone: available.then(available => available.names?.[1]),
    });
    const subnet3 = new aws.ec2.Subnet("subnet3", {
        vpcId: vpc2.id,
        cidrBlock: "10.1.1.0/24",
        availabilityZone: available.then(available => available.names?.[0]),
    });
    const instance1 = new aws.ec2.Instance("instance1", {
        ami: amazonLinux.then(amazonLinux => amazonLinux.id),
        instanceType: aws.ec2.InstanceType.T2_Micro,
        subnetId: subnet1.id,
    });
    const instance2 = new aws.ec2.Instance("instance2", {
        ami: amazonLinux.then(amazonLinux => amazonLinux.id),
        instanceType: aws.ec2.InstanceType.T2_Micro,
        subnetId: subnet2.id,
    });
    const instance3 = new aws.ec2.Instance("instance3", {
        ami: amazonLinux.then(amazonLinux => amazonLinux.id),
        instanceType: aws.ec2.InstanceType.T2_Micro,
        subnetId: subnet3.id,
    });
    const tgw = new aws.ec2transitgateway.TransitGateway("tgw", {multicastSupport: "enable"});
    const attachment1 = new aws.ec2transitgateway.VpcAttachment("attachment1", {
        subnetIds: [
            subnet1.id,
            subnet2.id,
        ],
        transitGatewayId: tgw.id,
        vpcId: vpc1.id,
    });
    const attachment2 = new aws.ec2transitgateway.VpcAttachment("attachment2", {
        subnetIds: [subnet3.id],
        transitGatewayId: tgw.id,
        vpcId: vpc2.id,
    });
    const domain = new aws.ec2transitgateway.MulticastDomain("domain", {
        transitGatewayId: tgw.id,
        staticSourcesSupport: "enable",
        tags: {
            Name: "Transit_Gateway_Multicast_Domain_Example",
        },
    });
    const association3 = new aws.ec2transitgateway.MulticastDomainAssociation("association3", {
        subnetId: subnet3.id,
        transitGatewayAttachmentId: attachment2.id,
        transitGatewayMulticastDomainId: domain.id,
    });
    const source = new aws.ec2transitgateway.MulticastGroupSource("source", {
        groupIpAddress: "224.0.0.1",
        networkInterfaceId: instance3.primaryNetworkInterfaceId,
        transitGatewayMulticastDomainId: association3.transitGatewayMulticastDomainId,
    });
    const association1 = new aws.ec2transitgateway.MulticastDomainAssociation("association1", {
        subnetId: subnet1.id,
        transitGatewayAttachmentId: attachment1.id,
        transitGatewayMulticastDomainId: domain.id,
    });
    const association2 = new aws.ec2transitgateway.MulticastDomainAssociation("association2", {
        subnetId: subnet2.id,
        transitGatewayAttachmentId: attachment2.id,
        transitGatewayMulticastDomainId: domain.id,
    });
    const member1 = new aws.ec2transitgateway.MulticastGroupMember("member1", {
        groupIpAddress: "224.0.0.1",
        networkInterfaceId: instance1.primaryNetworkInterfaceId,
        transitGatewayMulticastDomainId: association1.transitGatewayMulticastDomainId,
    });
    const member2 = new aws.ec2transitgateway.MulticastGroupMember("member2", {
        groupIpAddress: "224.0.0.1",
        networkInterfaceId: instance2.primaryNetworkInterfaceId,
        transitGatewayMulticastDomainId: association1.transitGatewayMulticastDomainId,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    available = aws.get_availability_zones(state="available")
    amazon_linux = aws.ec2.get_ami(most_recent=True,
        owners=["amazon"],
        filters=[
            {
                "name": "name",
                "values": ["amzn-ami-hvm-*-x86_64-gp2"],
            },
            {
                "name": "owner-alias",
                "values": ["amazon"],
            },
        ])
    vpc1 = aws.ec2.Vpc("vpc1", cidr_block="10.0.0.0/16")
    vpc2 = aws.ec2.Vpc("vpc2", cidr_block="10.1.0.0/16")
    subnet1 = aws.ec2.Subnet("subnet1",
        vpc_id=vpc1.id,
        cidr_block="10.0.1.0/24",
        availability_zone=available.names[0])
    subnet2 = aws.ec2.Subnet("subnet2",
        vpc_id=vpc1.id,
        cidr_block="10.0.2.0/24",
        availability_zone=available.names[1])
    subnet3 = aws.ec2.Subnet("subnet3",
        vpc_id=vpc2.id,
        cidr_block="10.1.1.0/24",
        availability_zone=available.names[0])
    instance1 = aws.ec2.Instance("instance1",
        ami=amazon_linux.id,
        instance_type=aws.ec2.InstanceType.T2_MICRO,
        subnet_id=subnet1.id)
    instance2 = aws.ec2.Instance("instance2",
        ami=amazon_linux.id,
        instance_type=aws.ec2.InstanceType.T2_MICRO,
        subnet_id=subnet2.id)
    instance3 = aws.ec2.Instance("instance3",
        ami=amazon_linux.id,
        instance_type=aws.ec2.InstanceType.T2_MICRO,
        subnet_id=subnet3.id)
    tgw = aws.ec2transitgateway.TransitGateway("tgw", multicast_support="enable")
    attachment1 = aws.ec2transitgateway.VpcAttachment("attachment1",
        subnet_ids=[
            subnet1.id,
            subnet2.id,
        ],
        transit_gateway_id=tgw.id,
        vpc_id=vpc1.id)
    attachment2 = aws.ec2transitgateway.VpcAttachment("attachment2",
        subnet_ids=[subnet3.id],
        transit_gateway_id=tgw.id,
        vpc_id=vpc2.id)
    domain = aws.ec2transitgateway.MulticastDomain("domain",
        transit_gateway_id=tgw.id,
        static_sources_support="enable",
        tags={
            "Name": "Transit_Gateway_Multicast_Domain_Example",
        })
    association3 = aws.ec2transitgateway.MulticastDomainAssociation("association3",
        subnet_id=subnet3.id,
        transit_gateway_attachment_id=attachment2.id,
        transit_gateway_multicast_domain_id=domain.id)
    source = aws.ec2transitgateway.MulticastGroupSource("source",
        group_ip_address="224.0.0.1",
        network_interface_id=instance3.primary_network_interface_id,
        transit_gateway_multicast_domain_id=association3.transit_gateway_multicast_domain_id)
    association1 = aws.ec2transitgateway.MulticastDomainAssociation("association1",
        subnet_id=subnet1.id,
        transit_gateway_attachment_id=attachment1.id,
        transit_gateway_multicast_domain_id=domain.id)
    association2 = aws.ec2transitgateway.MulticastDomainAssociation("association2",
        subnet_id=subnet2.id,
        transit_gateway_attachment_id=attachment2.id,
        transit_gateway_multicast_domain_id=domain.id)
    member1 = aws.ec2transitgateway.MulticastGroupMember("member1",
        group_ip_address="224.0.0.1",
        network_interface_id=instance1.primary_network_interface_id,
        transit_gateway_multicast_domain_id=association1.transit_gateway_multicast_domain_id)
    member2 = aws.ec2transitgateway.MulticastGroupMember("member2",
        group_ip_address="224.0.0.1",
        network_interface_id=instance2.primary_network_interface_id,
        transit_gateway_multicast_domain_id=association1.transit_gateway_multicast_domain_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
    	"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 {
    		available, err := aws.GetAvailabilityZones(ctx, &aws.GetAvailabilityZonesArgs{
    			State: pulumi.StringRef("available"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		amazonLinux, err := ec2.LookupAmi(ctx, &ec2.LookupAmiArgs{
    			MostRecent: pulumi.BoolRef(true),
    			Owners: []string{
    				"amazon",
    			},
    			Filters: []ec2.GetAmiFilter{
    				{
    					Name: "name",
    					Values: []string{
    						"amzn-ami-hvm-*-x86_64-gp2",
    					},
    				},
    				{
    					Name: "owner-alias",
    					Values: []string{
    						"amazon",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		vpc1, err := ec2.NewVpc(ctx, "vpc1", &ec2.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		vpc2, err := ec2.NewVpc(ctx, "vpc2", &ec2.VpcArgs{
    			CidrBlock: pulumi.String("10.1.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet1, err := ec2.NewSubnet(ctx, "subnet1", &ec2.SubnetArgs{
    			VpcId:            vpc1.ID(),
    			CidrBlock:        pulumi.String("10.0.1.0/24"),
    			AvailabilityZone: pulumi.String(available.Names[0]),
    		})
    		if err != nil {
    			return err
    		}
    		subnet2, err := ec2.NewSubnet(ctx, "subnet2", &ec2.SubnetArgs{
    			VpcId:            vpc1.ID(),
    			CidrBlock:        pulumi.String("10.0.2.0/24"),
    			AvailabilityZone: pulumi.String(available.Names[1]),
    		})
    		if err != nil {
    			return err
    		}
    		subnet3, err := ec2.NewSubnet(ctx, "subnet3", &ec2.SubnetArgs{
    			VpcId:            vpc2.ID(),
    			CidrBlock:        pulumi.String("10.1.1.0/24"),
    			AvailabilityZone: pulumi.String(available.Names[0]),
    		})
    		if err != nil {
    			return err
    		}
    		instance1, err := ec2.NewInstance(ctx, "instance1", &ec2.InstanceArgs{
    			Ami:          pulumi.String(amazonLinux.Id),
    			InstanceType: pulumi.String(ec2.InstanceType_T2_Micro),
    			SubnetId:     subnet1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		instance2, err := ec2.NewInstance(ctx, "instance2", &ec2.InstanceArgs{
    			Ami:          pulumi.String(amazonLinux.Id),
    			InstanceType: pulumi.String(ec2.InstanceType_T2_Micro),
    			SubnetId:     subnet2.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		instance3, err := ec2.NewInstance(ctx, "instance3", &ec2.InstanceArgs{
    			Ami:          pulumi.String(amazonLinux.Id),
    			InstanceType: pulumi.String(ec2.InstanceType_T2_Micro),
    			SubnetId:     subnet3.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		tgw, err := ec2transitgateway.NewTransitGateway(ctx, "tgw", &ec2transitgateway.TransitGatewayArgs{
    			MulticastSupport: pulumi.String("enable"),
    		})
    		if err != nil {
    			return err
    		}
    		attachment1, err := ec2transitgateway.NewVpcAttachment(ctx, "attachment1", &ec2transitgateway.VpcAttachmentArgs{
    			SubnetIds: pulumi.StringArray{
    				subnet1.ID(),
    				subnet2.ID(),
    			},
    			TransitGatewayId: tgw.ID(),
    			VpcId:            vpc1.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		attachment2, err := ec2transitgateway.NewVpcAttachment(ctx, "attachment2", &ec2transitgateway.VpcAttachmentArgs{
    			SubnetIds: pulumi.StringArray{
    				subnet3.ID(),
    			},
    			TransitGatewayId: tgw.ID(),
    			VpcId:            vpc2.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		domain, err := ec2transitgateway.NewMulticastDomain(ctx, "domain", &ec2transitgateway.MulticastDomainArgs{
    			TransitGatewayId:     tgw.ID(),
    			StaticSourcesSupport: pulumi.String("enable"),
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("Transit_Gateway_Multicast_Domain_Example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		association3, err := ec2transitgateway.NewMulticastDomainAssociation(ctx, "association3", &ec2transitgateway.MulticastDomainAssociationArgs{
    			SubnetId:                        subnet3.ID(),
    			TransitGatewayAttachmentId:      attachment2.ID(),
    			TransitGatewayMulticastDomainId: domain.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ec2transitgateway.NewMulticastGroupSource(ctx, "source", &ec2transitgateway.MulticastGroupSourceArgs{
    			GroupIpAddress:                  pulumi.String("224.0.0.1"),
    			NetworkInterfaceId:              instance3.PrimaryNetworkInterfaceId,
    			TransitGatewayMulticastDomainId: association3.TransitGatewayMulticastDomainId,
    		})
    		if err != nil {
    			return err
    		}
    		association1, err := ec2transitgateway.NewMulticastDomainAssociation(ctx, "association1", &ec2transitgateway.MulticastDomainAssociationArgs{
    			SubnetId:                        subnet1.ID(),
    			TransitGatewayAttachmentId:      attachment1.ID(),
    			TransitGatewayMulticastDomainId: domain.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ec2transitgateway.NewMulticastDomainAssociation(ctx, "association2", &ec2transitgateway.MulticastDomainAssociationArgs{
    			SubnetId:                        subnet2.ID(),
    			TransitGatewayAttachmentId:      attachment2.ID(),
    			TransitGatewayMulticastDomainId: domain.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ec2transitgateway.NewMulticastGroupMember(ctx, "member1", &ec2transitgateway.MulticastGroupMemberArgs{
    			GroupIpAddress:                  pulumi.String("224.0.0.1"),
    			NetworkInterfaceId:              instance1.PrimaryNetworkInterfaceId,
    			TransitGatewayMulticastDomainId: association1.TransitGatewayMulticastDomainId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ec2transitgateway.NewMulticastGroupMember(ctx, "member2", &ec2transitgateway.MulticastGroupMemberArgs{
    			GroupIpAddress:                  pulumi.String("224.0.0.1"),
    			NetworkInterfaceId:              instance2.PrimaryNetworkInterfaceId,
    			TransitGatewayMulticastDomainId: association1.TransitGatewayMulticastDomainId,
    		})
    		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 available = Aws.GetAvailabilityZones.Invoke(new()
        {
            State = "available",
        });
    
        var amazonLinux = Aws.Ec2.GetAmi.Invoke(new()
        {
            MostRecent = true,
            Owners = new[]
            {
                "amazon",
            },
            Filters = new[]
            {
                new Aws.Ec2.Inputs.GetAmiFilterInputArgs
                {
                    Name = "name",
                    Values = new[]
                    {
                        "amzn-ami-hvm-*-x86_64-gp2",
                    },
                },
                new Aws.Ec2.Inputs.GetAmiFilterInputArgs
                {
                    Name = "owner-alias",
                    Values = new[]
                    {
                        "amazon",
                    },
                },
            },
        });
    
        var vpc1 = new Aws.Ec2.Vpc("vpc1", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var vpc2 = new Aws.Ec2.Vpc("vpc2", new()
        {
            CidrBlock = "10.1.0.0/16",
        });
    
        var subnet1 = new Aws.Ec2.Subnet("subnet1", new()
        {
            VpcId = vpc1.Id,
            CidrBlock = "10.0.1.0/24",
            AvailabilityZone = available.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Names[0]),
        });
    
        var subnet2 = new Aws.Ec2.Subnet("subnet2", new()
        {
            VpcId = vpc1.Id,
            CidrBlock = "10.0.2.0/24",
            AvailabilityZone = available.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Names[1]),
        });
    
        var subnet3 = new Aws.Ec2.Subnet("subnet3", new()
        {
            VpcId = vpc2.Id,
            CidrBlock = "10.1.1.0/24",
            AvailabilityZone = available.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Names[0]),
        });
    
        var instance1 = new Aws.Ec2.Instance("instance1", new()
        {
            Ami = amazonLinux.Apply(getAmiResult => getAmiResult.Id),
            InstanceType = Aws.Ec2.InstanceType.T2_Micro,
            SubnetId = subnet1.Id,
        });
    
        var instance2 = new Aws.Ec2.Instance("instance2", new()
        {
            Ami = amazonLinux.Apply(getAmiResult => getAmiResult.Id),
            InstanceType = Aws.Ec2.InstanceType.T2_Micro,
            SubnetId = subnet2.Id,
        });
    
        var instance3 = new Aws.Ec2.Instance("instance3", new()
        {
            Ami = amazonLinux.Apply(getAmiResult => getAmiResult.Id),
            InstanceType = Aws.Ec2.InstanceType.T2_Micro,
            SubnetId = subnet3.Id,
        });
    
        var tgw = new Aws.Ec2TransitGateway.TransitGateway("tgw", new()
        {
            MulticastSupport = "enable",
        });
    
        var attachment1 = new Aws.Ec2TransitGateway.VpcAttachment("attachment1", new()
        {
            SubnetIds = new[]
            {
                subnet1.Id,
                subnet2.Id,
            },
            TransitGatewayId = tgw.Id,
            VpcId = vpc1.Id,
        });
    
        var attachment2 = new Aws.Ec2TransitGateway.VpcAttachment("attachment2", new()
        {
            SubnetIds = new[]
            {
                subnet3.Id,
            },
            TransitGatewayId = tgw.Id,
            VpcId = vpc2.Id,
        });
    
        var domain = new Aws.Ec2TransitGateway.MulticastDomain("domain", new()
        {
            TransitGatewayId = tgw.Id,
            StaticSourcesSupport = "enable",
            Tags = 
            {
                { "Name", "Transit_Gateway_Multicast_Domain_Example" },
            },
        });
    
        var association3 = new Aws.Ec2TransitGateway.MulticastDomainAssociation("association3", new()
        {
            SubnetId = subnet3.Id,
            TransitGatewayAttachmentId = attachment2.Id,
            TransitGatewayMulticastDomainId = domain.Id,
        });
    
        var source = new Aws.Ec2TransitGateway.MulticastGroupSource("source", new()
        {
            GroupIpAddress = "224.0.0.1",
            NetworkInterfaceId = instance3.PrimaryNetworkInterfaceId,
            TransitGatewayMulticastDomainId = association3.TransitGatewayMulticastDomainId,
        });
    
        var association1 = new Aws.Ec2TransitGateway.MulticastDomainAssociation("association1", new()
        {
            SubnetId = subnet1.Id,
            TransitGatewayAttachmentId = attachment1.Id,
            TransitGatewayMulticastDomainId = domain.Id,
        });
    
        var association2 = new Aws.Ec2TransitGateway.MulticastDomainAssociation("association2", new()
        {
            SubnetId = subnet2.Id,
            TransitGatewayAttachmentId = attachment2.Id,
            TransitGatewayMulticastDomainId = domain.Id,
        });
    
        var member1 = new Aws.Ec2TransitGateway.MulticastGroupMember("member1", new()
        {
            GroupIpAddress = "224.0.0.1",
            NetworkInterfaceId = instance1.PrimaryNetworkInterfaceId,
            TransitGatewayMulticastDomainId = association1.TransitGatewayMulticastDomainId,
        });
    
        var member2 = new Aws.Ec2TransitGateway.MulticastGroupMember("member2", new()
        {
            GroupIpAddress = "224.0.0.1",
            NetworkInterfaceId = instance2.PrimaryNetworkInterfaceId,
            TransitGatewayMulticastDomainId = association1.TransitGatewayMulticastDomainId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.AwsFunctions;
    import com.pulumi.aws.inputs.GetAvailabilityZonesArgs;
    import com.pulumi.aws.ec2.Ec2Functions;
    import com.pulumi.aws.ec2.inputs.GetAmiArgs;
    import com.pulumi.aws.ec2.Vpc;
    import com.pulumi.aws.ec2.VpcArgs;
    import com.pulumi.aws.ec2.Subnet;
    import com.pulumi.aws.ec2.SubnetArgs;
    import com.pulumi.aws.ec2.Instance;
    import com.pulumi.aws.ec2.InstanceArgs;
    import com.pulumi.aws.ec2transitgateway.TransitGateway;
    import com.pulumi.aws.ec2transitgateway.TransitGatewayArgs;
    import com.pulumi.aws.ec2transitgateway.VpcAttachment;
    import com.pulumi.aws.ec2transitgateway.VpcAttachmentArgs;
    import com.pulumi.aws.ec2transitgateway.MulticastDomain;
    import com.pulumi.aws.ec2transitgateway.MulticastDomainArgs;
    import com.pulumi.aws.ec2transitgateway.MulticastDomainAssociation;
    import com.pulumi.aws.ec2transitgateway.MulticastDomainAssociationArgs;
    import com.pulumi.aws.ec2transitgateway.MulticastGroupSource;
    import com.pulumi.aws.ec2transitgateway.MulticastGroupSourceArgs;
    import com.pulumi.aws.ec2transitgateway.MulticastGroupMember;
    import com.pulumi.aws.ec2transitgateway.MulticastGroupMemberArgs;
    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) {
            final var available = AwsFunctions.getAvailabilityZones(GetAvailabilityZonesArgs.builder()
                .state("available")
                .build());
    
            final var amazonLinux = Ec2Functions.getAmi(GetAmiArgs.builder()
                .mostRecent(true)
                .owners("amazon")
                .filters(            
                    GetAmiFilterArgs.builder()
                        .name("name")
                        .values("amzn-ami-hvm-*-x86_64-gp2")
                        .build(),
                    GetAmiFilterArgs.builder()
                        .name("owner-alias")
                        .values("amazon")
                        .build())
                .build());
    
            var vpc1 = new Vpc("vpc1", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var vpc2 = new Vpc("vpc2", VpcArgs.builder()
                .cidrBlock("10.1.0.0/16")
                .build());
    
            var subnet1 = new Subnet("subnet1", SubnetArgs.builder()
                .vpcId(vpc1.id())
                .cidrBlock("10.0.1.0/24")
                .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0]))
                .build());
    
            var subnet2 = new Subnet("subnet2", SubnetArgs.builder()
                .vpcId(vpc1.id())
                .cidrBlock("10.0.2.0/24")
                .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[1]))
                .build());
    
            var subnet3 = new Subnet("subnet3", SubnetArgs.builder()
                .vpcId(vpc2.id())
                .cidrBlock("10.1.1.0/24")
                .availabilityZone(available.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0]))
                .build());
    
            var instance1 = new Instance("instance1", InstanceArgs.builder()
                .ami(amazonLinux.applyValue(getAmiResult -> getAmiResult.id()))
                .instanceType("t2.micro")
                .subnetId(subnet1.id())
                .build());
    
            var instance2 = new Instance("instance2", InstanceArgs.builder()
                .ami(amazonLinux.applyValue(getAmiResult -> getAmiResult.id()))
                .instanceType("t2.micro")
                .subnetId(subnet2.id())
                .build());
    
            var instance3 = new Instance("instance3", InstanceArgs.builder()
                .ami(amazonLinux.applyValue(getAmiResult -> getAmiResult.id()))
                .instanceType("t2.micro")
                .subnetId(subnet3.id())
                .build());
    
            var tgw = new TransitGateway("tgw", TransitGatewayArgs.builder()
                .multicastSupport("enable")
                .build());
    
            var attachment1 = new VpcAttachment("attachment1", VpcAttachmentArgs.builder()
                .subnetIds(            
                    subnet1.id(),
                    subnet2.id())
                .transitGatewayId(tgw.id())
                .vpcId(vpc1.id())
                .build());
    
            var attachment2 = new VpcAttachment("attachment2", VpcAttachmentArgs.builder()
                .subnetIds(subnet3.id())
                .transitGatewayId(tgw.id())
                .vpcId(vpc2.id())
                .build());
    
            var domain = new MulticastDomain("domain", MulticastDomainArgs.builder()
                .transitGatewayId(tgw.id())
                .staticSourcesSupport("enable")
                .tags(Map.of("Name", "Transit_Gateway_Multicast_Domain_Example"))
                .build());
    
            var association3 = new MulticastDomainAssociation("association3", MulticastDomainAssociationArgs.builder()
                .subnetId(subnet3.id())
                .transitGatewayAttachmentId(attachment2.id())
                .transitGatewayMulticastDomainId(domain.id())
                .build());
    
            var source = new MulticastGroupSource("source", MulticastGroupSourceArgs.builder()
                .groupIpAddress("224.0.0.1")
                .networkInterfaceId(instance3.primaryNetworkInterfaceId())
                .transitGatewayMulticastDomainId(association3.transitGatewayMulticastDomainId())
                .build());
    
            var association1 = new MulticastDomainAssociation("association1", MulticastDomainAssociationArgs.builder()
                .subnetId(subnet1.id())
                .transitGatewayAttachmentId(attachment1.id())
                .transitGatewayMulticastDomainId(domain.id())
                .build());
    
            var association2 = new MulticastDomainAssociation("association2", MulticastDomainAssociationArgs.builder()
                .subnetId(subnet2.id())
                .transitGatewayAttachmentId(attachment2.id())
                .transitGatewayMulticastDomainId(domain.id())
                .build());
    
            var member1 = new MulticastGroupMember("member1", MulticastGroupMemberArgs.builder()
                .groupIpAddress("224.0.0.1")
                .networkInterfaceId(instance1.primaryNetworkInterfaceId())
                .transitGatewayMulticastDomainId(association1.transitGatewayMulticastDomainId())
                .build());
    
            var member2 = new MulticastGroupMember("member2", MulticastGroupMemberArgs.builder()
                .groupIpAddress("224.0.0.1")
                .networkInterfaceId(instance2.primaryNetworkInterfaceId())
                .transitGatewayMulticastDomainId(association1.transitGatewayMulticastDomainId())
                .build());
    
        }
    }
    
    resources:
      vpc1:
        type: aws:ec2:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      vpc2:
        type: aws:ec2:Vpc
        properties:
          cidrBlock: 10.1.0.0/16
      subnet1:
        type: aws:ec2:Subnet
        properties:
          vpcId: ${vpc1.id}
          cidrBlock: 10.0.1.0/24
          availabilityZone: ${available.names[0]}
      subnet2:
        type: aws:ec2:Subnet
        properties:
          vpcId: ${vpc1.id}
          cidrBlock: 10.0.2.0/24
          availabilityZone: ${available.names[1]}
      subnet3:
        type: aws:ec2:Subnet
        properties:
          vpcId: ${vpc2.id}
          cidrBlock: 10.1.1.0/24
          availabilityZone: ${available.names[0]}
      instance1:
        type: aws:ec2:Instance
        properties:
          ami: ${amazonLinux.id}
          instanceType: t2.micro
          subnetId: ${subnet1.id}
      instance2:
        type: aws:ec2:Instance
        properties:
          ami: ${amazonLinux.id}
          instanceType: t2.micro
          subnetId: ${subnet2.id}
      instance3:
        type: aws:ec2:Instance
        properties:
          ami: ${amazonLinux.id}
          instanceType: t2.micro
          subnetId: ${subnet3.id}
      tgw:
        type: aws:ec2transitgateway:TransitGateway
        properties:
          multicastSupport: enable
      attachment1:
        type: aws:ec2transitgateway:VpcAttachment
        properties:
          subnetIds:
            - ${subnet1.id}
            - ${subnet2.id}
          transitGatewayId: ${tgw.id}
          vpcId: ${vpc1.id}
      attachment2:
        type: aws:ec2transitgateway:VpcAttachment
        properties:
          subnetIds:
            - ${subnet3.id}
          transitGatewayId: ${tgw.id}
          vpcId: ${vpc2.id}
      domain:
        type: aws:ec2transitgateway:MulticastDomain
        properties:
          transitGatewayId: ${tgw.id}
          staticSourcesSupport: enable
          tags:
            Name: Transit_Gateway_Multicast_Domain_Example
      association3:
        type: aws:ec2transitgateway:MulticastDomainAssociation
        properties:
          subnetId: ${subnet3.id}
          transitGatewayAttachmentId: ${attachment2.id}
          transitGatewayMulticastDomainId: ${domain.id}
      source:
        type: aws:ec2transitgateway:MulticastGroupSource
        properties:
          groupIpAddress: 224.0.0.1
          networkInterfaceId: ${instance3.primaryNetworkInterfaceId}
          transitGatewayMulticastDomainId: ${association3.transitGatewayMulticastDomainId}
      association1:
        type: aws:ec2transitgateway:MulticastDomainAssociation
        properties:
          subnetId: ${subnet1.id}
          transitGatewayAttachmentId: ${attachment1.id}
          transitGatewayMulticastDomainId: ${domain.id}
      association2:
        type: aws:ec2transitgateway:MulticastDomainAssociation
        properties:
          subnetId: ${subnet2.id}
          transitGatewayAttachmentId: ${attachment2.id}
          transitGatewayMulticastDomainId: ${domain.id}
      member1:
        type: aws:ec2transitgateway:MulticastGroupMember
        properties:
          groupIpAddress: 224.0.0.1
          networkInterfaceId: ${instance1.primaryNetworkInterfaceId}
          transitGatewayMulticastDomainId: ${association1.transitGatewayMulticastDomainId}
      member2:
        type: aws:ec2transitgateway:MulticastGroupMember
        properties:
          groupIpAddress: 224.0.0.1
          networkInterfaceId: ${instance2.primaryNetworkInterfaceId}
          transitGatewayMulticastDomainId: ${association1.transitGatewayMulticastDomainId}
    variables:
      available:
        fn::invoke:
          Function: aws:getAvailabilityZones
          Arguments:
            state: available
      amazonLinux:
        fn::invoke:
          Function: aws:ec2:getAmi
          Arguments:
            mostRecent: true
            owners:
              - amazon
            filters:
              - name: name
                values:
                  - amzn-ami-hvm-*-x86_64-gp2
              - name: owner-alias
                values:
                  - amazon
    

    Create MulticastDomain Resource

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

    Constructor syntax

    new MulticastDomain(name: string, args: MulticastDomainArgs, opts?: CustomResourceOptions);
    @overload
    def MulticastDomain(resource_name: str,
                        args: MulticastDomainArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def MulticastDomain(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        transit_gateway_id: Optional[str] = None,
                        auto_accept_shared_associations: Optional[str] = None,
                        igmpv2_support: Optional[str] = None,
                        static_sources_support: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None)
    func NewMulticastDomain(ctx *Context, name string, args MulticastDomainArgs, opts ...ResourceOption) (*MulticastDomain, error)
    public MulticastDomain(string name, MulticastDomainArgs args, CustomResourceOptions? opts = null)
    public MulticastDomain(String name, MulticastDomainArgs args)
    public MulticastDomain(String name, MulticastDomainArgs args, CustomResourceOptions options)
    
    type: aws:ec2transitgateway:MulticastDomain
    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 MulticastDomainArgs
    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 MulticastDomainArgs
    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 MulticastDomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MulticastDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MulticastDomainArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var multicastDomainResource = new Aws.Ec2TransitGateway.MulticastDomain("multicastDomainResource", new()
    {
        TransitGatewayId = "string",
        AutoAcceptSharedAssociations = "string",
        Igmpv2Support = "string",
        StaticSourcesSupport = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := ec2transitgateway.NewMulticastDomain(ctx, "multicastDomainResource", &ec2transitgateway.MulticastDomainArgs{
    	TransitGatewayId:             pulumi.String("string"),
    	AutoAcceptSharedAssociations: pulumi.String("string"),
    	Igmpv2Support:                pulumi.String("string"),
    	StaticSourcesSupport:         pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var multicastDomainResource = new MulticastDomain("multicastDomainResource", MulticastDomainArgs.builder()
        .transitGatewayId("string")
        .autoAcceptSharedAssociations("string")
        .igmpv2Support("string")
        .staticSourcesSupport("string")
        .tags(Map.of("string", "string"))
        .build());
    
    multicast_domain_resource = aws.ec2transitgateway.MulticastDomain("multicastDomainResource",
        transit_gateway_id="string",
        auto_accept_shared_associations="string",
        igmpv2_support="string",
        static_sources_support="string",
        tags={
            "string": "string",
        })
    
    const multicastDomainResource = new aws.ec2transitgateway.MulticastDomain("multicastDomainResource", {
        transitGatewayId: "string",
        autoAcceptSharedAssociations: "string",
        igmpv2Support: "string",
        staticSourcesSupport: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:ec2transitgateway:MulticastDomain
    properties:
        autoAcceptSharedAssociations: string
        igmpv2Support: string
        staticSourcesSupport: string
        tags:
            string: string
        transitGatewayId: string
    

    MulticastDomain Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MulticastDomain resource accepts the following input properties:

    TransitGatewayId string
    EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled.
    AutoAcceptSharedAssociations string
    Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    Igmpv2Support string
    Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    StaticSourcesSupport string
    Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    Tags Dictionary<string, string>
    Key-value tags for the EC2 Transit Gateway Multicast Domain. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TransitGatewayId string
    EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled.
    AutoAcceptSharedAssociations string
    Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    Igmpv2Support string
    Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    StaticSourcesSupport string
    Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    Tags map[string]string
    Key-value tags for the EC2 Transit Gateway Multicast Domain. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    transitGatewayId String
    EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled.
    autoAcceptSharedAssociations String
    Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    igmpv2Support String
    Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    staticSourcesSupport String
    Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    tags Map<String,String>
    Key-value tags for the EC2 Transit Gateway Multicast Domain. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    transitGatewayId string
    EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled.
    autoAcceptSharedAssociations string
    Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    igmpv2Support string
    Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    staticSourcesSupport string
    Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    tags {[key: string]: string}
    Key-value tags for the EC2 Transit Gateway Multicast Domain. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    transit_gateway_id str
    EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled.
    auto_accept_shared_associations str
    Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    igmpv2_support str
    Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    static_sources_support str
    Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    tags Mapping[str, str]
    Key-value tags for the EC2 Transit Gateway Multicast Domain. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    transitGatewayId String
    EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled.
    autoAcceptSharedAssociations String
    Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    igmpv2Support String
    Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    staticSourcesSupport String
    Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    tags Map<String>
    Key-value tags for the EC2 Transit Gateway Multicast Domain. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

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

    Arn string
    EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN).
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN).
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN).
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN).
    id string
    The provider-assigned unique ID for this managed resource.
    ownerId string
    Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN).
    id str
    The provider-assigned unique ID for this managed resource.
    owner_id str
    Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN).
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing MulticastDomain Resource

    Get an existing MulticastDomain 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?: MulticastDomainState, opts?: CustomResourceOptions): MulticastDomain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            auto_accept_shared_associations: Optional[str] = None,
            igmpv2_support: Optional[str] = None,
            owner_id: Optional[str] = None,
            static_sources_support: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            transit_gateway_id: Optional[str] = None) -> MulticastDomain
    func GetMulticastDomain(ctx *Context, name string, id IDInput, state *MulticastDomainState, opts ...ResourceOption) (*MulticastDomain, error)
    public static MulticastDomain Get(string name, Input<string> id, MulticastDomainState? state, CustomResourceOptions? opts = null)
    public static MulticastDomain get(String name, Output<String> id, MulticastDomainState 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:
    Arn string
    EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN).
    AutoAcceptSharedAssociations string
    Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    Igmpv2Support string
    Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    OwnerId string
    Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
    StaticSourcesSupport string
    Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    Tags Dictionary<string, string>
    Key-value tags for the EC2 Transit Gateway Multicast Domain. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    TransitGatewayId string
    EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled.
    Arn string
    EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN).
    AutoAcceptSharedAssociations string
    Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    Igmpv2Support string
    Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    OwnerId string
    Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
    StaticSourcesSupport string
    Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    Tags map[string]string
    Key-value tags for the EC2 Transit Gateway Multicast Domain. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    TransitGatewayId string
    EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled.
    arn String
    EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN).
    autoAcceptSharedAssociations String
    Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    igmpv2Support String
    Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    ownerId String
    Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
    staticSourcesSupport String
    Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    tags Map<String,String>
    Key-value tags for the EC2 Transit Gateway Multicast Domain. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    transitGatewayId String
    EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled.
    arn string
    EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN).
    autoAcceptSharedAssociations string
    Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    igmpv2Support string
    Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    ownerId string
    Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
    staticSourcesSupport string
    Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    tags {[key: string]: string}
    Key-value tags for the EC2 Transit Gateway Multicast Domain. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    transitGatewayId string
    EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled.
    arn str
    EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN).
    auto_accept_shared_associations str
    Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    igmpv2_support str
    Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    owner_id str
    Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
    static_sources_support str
    Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    tags Mapping[str, str]
    Key-value tags for the EC2 Transit Gateway Multicast Domain. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    transit_gateway_id str
    EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled.
    arn String
    EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN).
    autoAcceptSharedAssociations String
    Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    igmpv2Support String
    Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    ownerId String
    Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
    staticSourcesSupport String
    Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. Valid values: disable, enable. Default value: disable.
    tags Map<String>
    Key-value tags for the EC2 Transit Gateway Multicast Domain. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    transitGatewayId String
    EC2 Transit Gateway identifier. The EC2 Transit Gateway must have multicast_support enabled.

    Import

    Using pulumi import, import aws_ec2_transit_gateway_multicast_domain using the EC2 Transit Gateway Multicast Domain identifier. For example:

    $ pulumi import aws:ec2transitgateway/multicastDomain:MulticastDomain example tgw-mcast-domain-12345
    

    To learn more about importing existing cloud resources, see Importing resources.

    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
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi