AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.ec2transitgateway.getMulticastDomain
Explore with Pulumi AI
Get information on an EC2 Transit Gateway Multicast Domain.
Example Usage
By Filter
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.ec2transitgateway.getMulticastDomain({
    filters: [{
        name: "transit-gateway-multicast-domain-id",
        values: ["tgw-mcast-domain-12345678"],
    }],
});
import pulumi
import pulumi_aws as aws
example = aws.ec2transitgateway.get_multicast_domain(filters=[{
    "name": "transit-gateway-multicast-domain-id",
    "values": ["tgw-mcast-domain-12345678"],
}])
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.LookupMulticastDomain(ctx, &ec2transitgateway.LookupMulticastDomainArgs{
			Filters: []ec2transitgateway.GetMulticastDomainFilter{
				{
					Name: "transit-gateway-multicast-domain-id",
					Values: []string{
						"tgw-mcast-domain-12345678",
					},
				},
			},
		}, nil)
		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 = Aws.Ec2TransitGateway.GetMulticastDomain.Invoke(new()
    {
        Filters = new[]
        {
            new Aws.Ec2TransitGateway.Inputs.GetMulticastDomainFilterInputArgs
            {
                Name = "transit-gateway-multicast-domain-id",
                Values = new[]
                {
                    "tgw-mcast-domain-12345678",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.Ec2transitgatewayFunctions;
import com.pulumi.aws.ec2transitgateway.inputs.GetMulticastDomainArgs;
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 example = Ec2transitgatewayFunctions.getMulticastDomain(GetMulticastDomainArgs.builder()
            .filters(GetMulticastDomainFilterArgs.builder()
                .name("transit-gateway-multicast-domain-id")
                .values("tgw-mcast-domain-12345678")
                .build())
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:ec2transitgateway:getMulticastDomain
      arguments:
        filters:
          - name: transit-gateway-multicast-domain-id
            values:
              - tgw-mcast-domain-12345678
By Identifier
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.ec2transitgateway.getMulticastDomain({
    transitGatewayMulticastDomainId: "tgw-mcast-domain-12345678",
});
import pulumi
import pulumi_aws as aws
example = aws.ec2transitgateway.get_multicast_domain(transit_gateway_multicast_domain_id="tgw-mcast-domain-12345678")
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.LookupMulticastDomain(ctx, &ec2transitgateway.LookupMulticastDomainArgs{
			TransitGatewayMulticastDomainId: pulumi.StringRef("tgw-mcast-domain-12345678"),
		}, nil)
		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 = Aws.Ec2TransitGateway.GetMulticastDomain.Invoke(new()
    {
        TransitGatewayMulticastDomainId = "tgw-mcast-domain-12345678",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.Ec2transitgatewayFunctions;
import com.pulumi.aws.ec2transitgateway.inputs.GetMulticastDomainArgs;
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 example = Ec2transitgatewayFunctions.getMulticastDomain(GetMulticastDomainArgs.builder()
            .transitGatewayMulticastDomainId("tgw-mcast-domain-12345678")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:ec2transitgateway:getMulticastDomain
      arguments:
        transitGatewayMulticastDomainId: tgw-mcast-domain-12345678
Using getMulticastDomain
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMulticastDomain(args: GetMulticastDomainArgs, opts?: InvokeOptions): Promise<GetMulticastDomainResult>
function getMulticastDomainOutput(args: GetMulticastDomainOutputArgs, opts?: InvokeOptions): Output<GetMulticastDomainResult>def get_multicast_domain(filters: Optional[Sequence[GetMulticastDomainFilter]] = None,
                         tags: Optional[Mapping[str, str]] = None,
                         transit_gateway_multicast_domain_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetMulticastDomainResult
def get_multicast_domain_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetMulticastDomainFilterArgs]]]] = None,
                         tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                         transit_gateway_multicast_domain_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetMulticastDomainResult]func LookupMulticastDomain(ctx *Context, args *LookupMulticastDomainArgs, opts ...InvokeOption) (*LookupMulticastDomainResult, error)
func LookupMulticastDomainOutput(ctx *Context, args *LookupMulticastDomainOutputArgs, opts ...InvokeOption) LookupMulticastDomainResultOutput> Note: This function is named LookupMulticastDomain in the Go SDK.
public static class GetMulticastDomain 
{
    public static Task<GetMulticastDomainResult> InvokeAsync(GetMulticastDomainArgs args, InvokeOptions? opts = null)
    public static Output<GetMulticastDomainResult> Invoke(GetMulticastDomainInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMulticastDomainResult> getMulticastDomain(GetMulticastDomainArgs args, InvokeOptions options)
public static Output<GetMulticastDomainResult> getMulticastDomain(GetMulticastDomainArgs args, InvokeOptions options)
fn::invoke:
  function: aws:ec2transitgateway/getMulticastDomain:getMulticastDomain
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetMulticast Domain Filter> 
- One or more configuration blocks containing name-values filters. Detailed below.
- Dictionary<string, string>
- Key-value tags for the EC2 Transit Gateway Multicast Domain.
- TransitGateway stringMulticast Domain Id 
- Identifier of the EC2 Transit Gateway Multicast Domain.
- Filters
[]GetMulticast Domain Filter 
- One or more configuration blocks containing name-values filters. Detailed below.
- map[string]string
- Key-value tags for the EC2 Transit Gateway Multicast Domain.
- TransitGateway stringMulticast Domain Id 
- Identifier of the EC2 Transit Gateway Multicast Domain.
- filters
List<GetMulticast Domain Filter> 
- One or more configuration blocks containing name-values filters. Detailed below.
- Map<String,String>
- Key-value tags for the EC2 Transit Gateway Multicast Domain.
- transitGateway StringMulticast Domain Id 
- Identifier of the EC2 Transit Gateway Multicast Domain.
- filters
GetMulticast Domain Filter[] 
- One or more configuration blocks containing name-values filters. Detailed below.
- {[key: string]: string}
- Key-value tags for the EC2 Transit Gateway Multicast Domain.
- transitGateway stringMulticast Domain Id 
- Identifier of the EC2 Transit Gateway Multicast Domain.
- filters
Sequence[GetMulticast Domain Filter] 
- One or more configuration blocks containing name-values filters. Detailed below.
- Mapping[str, str]
- Key-value tags for the EC2 Transit Gateway Multicast Domain.
- transit_gateway_ strmulticast_ domain_ id 
- Identifier of the EC2 Transit Gateway Multicast Domain.
- filters List<Property Map>
- One or more configuration blocks containing name-values filters. Detailed below.
- Map<String>
- Key-value tags for the EC2 Transit Gateway Multicast Domain.
- transitGateway StringMulticast Domain Id 
- Identifier of the EC2 Transit Gateway Multicast Domain.
getMulticastDomain Result
The following output properties are available:
- Arn string
- EC2 Transit Gateway Multicast Domain ARN.
- Associations
List<GetMulticast Domain Association> 
- EC2 Transit Gateway Multicast Domain Associations
- string
- Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Igmpv2Support string
- Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain.
- Members
List<GetMulticast Domain Member> 
- EC2 Multicast Domain Group Members
- OwnerId string
- Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
- Sources
List<GetMulticast Domain Source> 
- EC2 Multicast Domain Group Sources
- State string
- StaticSources stringSupport 
- Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain.
- Dictionary<string, string>
- Key-value tags for the EC2 Transit Gateway Multicast Domain.
- TransitGateway stringAttachment Id 
- The ID of the transit gateway attachment.
- TransitGateway stringId 
- EC2 Transit Gateway identifier.
- TransitGateway stringMulticast Domain Id 
- Filters
List<GetMulticast Domain Filter> 
- Arn string
- EC2 Transit Gateway Multicast Domain ARN.
- Associations
[]GetMulticast Domain Association Type 
- EC2 Transit Gateway Multicast Domain Associations
- string
- Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Igmpv2Support string
- Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain.
- Members
[]GetMulticast Domain Member 
- EC2 Multicast Domain Group Members
- OwnerId string
- Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
- Sources
[]GetMulticast Domain Source 
- EC2 Multicast Domain Group Sources
- State string
- StaticSources stringSupport 
- Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain.
- map[string]string
- Key-value tags for the EC2 Transit Gateway Multicast Domain.
- TransitGateway stringAttachment Id 
- The ID of the transit gateway attachment.
- TransitGateway stringId 
- EC2 Transit Gateway identifier.
- TransitGateway stringMulticast Domain Id 
- Filters
[]GetMulticast Domain Filter 
- arn String
- EC2 Transit Gateway Multicast Domain ARN.
- associations
List<GetMulticast Domain Association> 
- EC2 Transit Gateway Multicast Domain Associations
- String
- Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain.
- id String
- The provider-assigned unique ID for this managed resource.
- igmpv2Support String
- Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain.
- members
List<GetMulticast Domain Member> 
- EC2 Multicast Domain Group Members
- ownerId String
- Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
- sources
List<GetMulticast Domain Source> 
- EC2 Multicast Domain Group Sources
- state String
- staticSources StringSupport 
- Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain.
- Map<String,String>
- Key-value tags for the EC2 Transit Gateway Multicast Domain.
- transitGateway StringAttachment Id 
- The ID of the transit gateway attachment.
- transitGateway StringId 
- EC2 Transit Gateway identifier.
- transitGateway StringMulticast Domain Id 
- filters
List<GetMulticast Domain Filter> 
- arn string
- EC2 Transit Gateway Multicast Domain ARN.
- associations
GetMulticast Domain Association[] 
- EC2 Transit Gateway Multicast Domain Associations
- string
- Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain.
- id string
- The provider-assigned unique ID for this managed resource.
- igmpv2Support string
- Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain.
- members
GetMulticast Domain Member[] 
- EC2 Multicast Domain Group Members
- ownerId string
- Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
- sources
GetMulticast Domain Source[] 
- EC2 Multicast Domain Group Sources
- state string
- staticSources stringSupport 
- Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain.
- {[key: string]: string}
- Key-value tags for the EC2 Transit Gateway Multicast Domain.
- transitGateway stringAttachment Id 
- The ID of the transit gateway attachment.
- transitGateway stringId 
- EC2 Transit Gateway identifier.
- transitGateway stringMulticast Domain Id 
- filters
GetMulticast Domain Filter[] 
- arn str
- EC2 Transit Gateway Multicast Domain ARN.
- associations
Sequence[GetMulticast Domain Association] 
- EC2 Transit Gateway Multicast Domain Associations
- str
- Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain.
- id str
- The provider-assigned unique ID for this managed resource.
- igmpv2_support str
- Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain.
- members
Sequence[GetMulticast Domain Member] 
- EC2 Multicast Domain Group Members
- owner_id str
- Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
- sources
Sequence[GetMulticast Domain Source] 
- EC2 Multicast Domain Group Sources
- state str
- static_sources_ strsupport 
- Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain.
- Mapping[str, str]
- Key-value tags for the EC2 Transit Gateway Multicast Domain.
- transit_gateway_ strattachment_ id 
- The ID of the transit gateway attachment.
- transit_gateway_ strid 
- EC2 Transit Gateway identifier.
- transit_gateway_ strmulticast_ domain_ id 
- filters
Sequence[GetMulticast Domain Filter] 
- arn String
- EC2 Transit Gateway Multicast Domain ARN.
- associations List<Property Map>
- EC2 Transit Gateway Multicast Domain Associations
- String
- Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain.
- id String
- The provider-assigned unique ID for this managed resource.
- igmpv2Support String
- Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain.
- members List<Property Map>
- EC2 Multicast Domain Group Members
- ownerId String
- Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain.
- sources List<Property Map>
- EC2 Multicast Domain Group Sources
- state String
- staticSources StringSupport 
- Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain.
- Map<String>
- Key-value tags for the EC2 Transit Gateway Multicast Domain.
- transitGateway StringAttachment Id 
- The ID of the transit gateway attachment.
- transitGateway StringId 
- EC2 Transit Gateway identifier.
- transitGateway StringMulticast Domain Id 
- filters List<Property Map>
Supporting Types
GetMulticastDomainAssociation   
- SubnetId string
- The ID of the subnet associated with the transit gateway multicast domain.
- TransitGateway stringAttachment Id 
- The ID of the transit gateway attachment.
- SubnetId string
- The ID of the subnet associated with the transit gateway multicast domain.
- TransitGateway stringAttachment Id 
- The ID of the transit gateway attachment.
- subnetId String
- The ID of the subnet associated with the transit gateway multicast domain.
- transitGateway StringAttachment Id 
- The ID of the transit gateway attachment.
- subnetId string
- The ID of the subnet associated with the transit gateway multicast domain.
- transitGateway stringAttachment Id 
- The ID of the transit gateway attachment.
- subnet_id str
- The ID of the subnet associated with the transit gateway multicast domain.
- transit_gateway_ strattachment_ id 
- The ID of the transit gateway attachment.
- subnetId String
- The ID of the subnet associated with the transit gateway multicast domain.
- transitGateway StringAttachment Id 
- The ID of the transit gateway attachment.
GetMulticastDomainFilter   
- Name string
- Name of the field to filter by, as defined by the underlying AWS API.
- Values List<string>
- Set of values that are accepted for the given field. A multicast domain will be selected if any one of the given values matches.
- Name string
- Name of the field to filter by, as defined by the underlying AWS API.
- Values []string
- Set of values that are accepted for the given field. A multicast domain will be selected if any one of the given values matches.
- name String
- Name of the field to filter by, as defined by the underlying AWS API.
- values List<String>
- Set of values that are accepted for the given field. A multicast domain will be selected if any one of the given values matches.
- name string
- Name of the field to filter by, as defined by the underlying AWS API.
- values string[]
- Set of values that are accepted for the given field. A multicast domain will be selected if any one of the given values matches.
- name str
- Name of the field to filter by, as defined by the underlying AWS API.
- values Sequence[str]
- Set of values that are accepted for the given field. A multicast domain will be selected if any one of the given values matches.
- name String
- Name of the field to filter by, as defined by the underlying AWS API.
- values List<String>
- Set of values that are accepted for the given field. A multicast domain will be selected if any one of the given values matches.
GetMulticastDomainMember   
- GroupIp stringAddress 
- The IP address assigned to the transit gateway multicast group.
- NetworkInterface stringId 
- The group members' network interface ID.
- GroupIp stringAddress 
- The IP address assigned to the transit gateway multicast group.
- NetworkInterface stringId 
- The group members' network interface ID.
- groupIp StringAddress 
- The IP address assigned to the transit gateway multicast group.
- networkInterface StringId 
- The group members' network interface ID.
- groupIp stringAddress 
- The IP address assigned to the transit gateway multicast group.
- networkInterface stringId 
- The group members' network interface ID.
- group_ip_ straddress 
- The IP address assigned to the transit gateway multicast group.
- network_interface_ strid 
- The group members' network interface ID.
- groupIp StringAddress 
- The IP address assigned to the transit gateway multicast group.
- networkInterface StringId 
- The group members' network interface ID.
GetMulticastDomainSource   
- GroupIp stringAddress 
- The IP address assigned to the transit gateway multicast group.
- NetworkInterface stringId 
- The group members' network interface ID.
- GroupIp stringAddress 
- The IP address assigned to the transit gateway multicast group.
- NetworkInterface stringId 
- The group members' network interface ID.
- groupIp StringAddress 
- The IP address assigned to the transit gateway multicast group.
- networkInterface StringId 
- The group members' network interface ID.
- groupIp stringAddress 
- The IP address assigned to the transit gateway multicast group.
- networkInterface stringId 
- The group members' network interface ID.
- group_ip_ straddress 
- The IP address assigned to the transit gateway multicast group.
- network_interface_ strid 
- The group members' network interface ID.
- groupIp StringAddress 
- The IP address assigned to the transit gateway multicast group.
- networkInterface StringId 
- The group members' network interface ID.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.