Skip to main content

transit_gateway_multicast_groups

Creates, updates, deletes, gets or lists a transit_gateway_multicast_groups resource.

Overview

Nametransit_gateway_multicast_groups
TypeResource
Idaws.ec2.transit_gateway_multicast_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
group_ip_addressstringThe IP address assigned to the transit gateway multicast group.
group_memberbooleanIndicates that the resource is a transit gateway multicast group member.
group_sourcebooleanIndicates that the resource is a transit gateway multicast group member.
member_typestringThe member type (for example, static).
network_interface_idstringThe ID of the transit gateway attachment.
resource_idstringThe ID of the resource.
resource_owner_idstringThe ID of the Amazon Web Services account that owns the transit gateway multicast domain group resource.
resource_typestringThe type of resource, for example a VPC attachment.
source_typestringThe source type.
subnet_idstringThe ID of the subnet.
transit_gateway_attachment_idstringThe ID of the transit gateway attachment.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
search_transit_gateway_multicast_groupsselectTransitGatewayMulticastDomainId, regionFilter, MaxResults, NextToken, DryRunSearches one or more transit gateway multicast groups and returns the group membership information.
register_transit_gateway_multicast_group_membersinsertTransitGatewayMulticastDomainId, NetworkInterfaceIds, regionGroupIpAddress, DryRunRegisters members (network interfaces) with the transit gateway multicast group. A member is a network interface associated with a supported EC2 instance that receives multicast traffic. For more information, see Multicast on transit gateways in the Amazon Web Services Transit Gateways Guide. After you add the members, use SearchTransitGatewayMulticastGroups to verify that the members were added to the transit gateway multicast group.
deregister_transit_gateway_multicast_group_membersdeleteregionTransitGatewayMulticastDomainId, GroupIpAddress, NetworkInterfaceIds, DryRunDeregisters the specified members (network interfaces) from the transit gateway multicast group.
deregister_transit_gateway_multicast_group_sourcesexecregionTransitGatewayMulticastDomainId, GroupIpAddress, NetworkInterfaceIds, DryRunDeregisters the specified sources (network interfaces) from the transit gateway multicast group.
register_transit_gateway_multicast_group_sourcesexecTransitGatewayMulticastDomainId, NetworkInterfaceIds, regionGroupIpAddress, DryRunRegisters sources (network interfaces) with the specified transit gateway multicast group. A multicast source is a network interface attached to a supported instance that sends multicast traffic. For more information about supported instances, see Multicast on transit gateways in the Amazon Web Services Transit Gateways Guide. After you add the source, use SearchTransitGatewayMulticastGroups to verify that the source was added to the multicast group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
NetworkInterfaceIdsarrayThe group sources' network interface IDs to register with the transit gateway multicast group.
TransitGatewayMulticastDomainIdstringThe ID of the transit gateway multicast domain.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayOne or more filters. The possible values are: group-ip-address - The IP address of the transit gateway multicast group. is-group-member - The resource is a group member. Valid values are true | false. is-group-source - The resource is a group source. Valid values are true | false. member-type - The member type. Valid values are igmp | static. resource-id - The ID of the resource. resource-type - The type of resource. Valid values are vpc | vpn | direct-connect-gateway | tgw-peering. source-type - The source type. Valid values are igmp | static. subnet-id - The ID of the subnet. transit-gateway-attachment-id - The id of the transit gateway attachment.
GroupIpAddressstringThe IP address assigned to the transit gateway multicast group.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NetworkInterfaceIdsarrayThe IDs of the group sources' network interfaces.
NextTokenstringThe token for the next page of results.
TransitGatewayMulticastDomainIdstringThe ID of the transit gateway multicast domain.

SELECT examples

Searches one or more transit gateway multicast groups and returns the group membership information.

SELECT
group_ip_address,
group_member,
group_source,
member_type,
network_interface_id,
resource_id,
resource_owner_id,
resource_type,
source_type,
subnet_id,
transit_gateway_attachment_id
FROM aws.ec2.transit_gateway_multicast_groups
WHERE TransitGatewayMulticastDomainId = '{{ TransitGatewayMulticastDomainId }}' -- required
AND region = '{{ region }}' -- required
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Registers members (network interfaces) with the transit gateway multicast group. A member is a network interface associated with a supported EC2 instance that receives multicast traffic. For more information, see Multicast on transit gateways in the Amazon Web Services Transit Gateways Guide. After you add the members, use SearchTransitGatewayMulticastGroups to verify that the members were added to the transit gateway multicast group.

INSERT INTO aws.ec2.transit_gateway_multicast_groups (
TransitGatewayMulticastDomainId,
NetworkInterfaceIds,
region,
GroupIpAddress,
DryRun
)
SELECT
'{{ TransitGatewayMulticastDomainId }}',
'{{ NetworkInterfaceIds }}',
'{{ region }}',
'{{ GroupIpAddress }}',
'{{ DryRun }}'
RETURNING
group_ip_address,
registered_network_interface_ids,
transit_gateway_multicast_domain_id
;

DELETE examples

Deregisters the specified members (network interfaces) from the transit gateway multicast group.

DELETE FROM aws.ec2.transit_gateway_multicast_groups
WHERE region = '{{ region }}' --required
AND TransitGatewayMulticastDomainId = '{{ TransitGatewayMulticastDomainId }}'
AND GroupIpAddress = '{{ GroupIpAddress }}'
AND NetworkInterfaceIds = '{{ NetworkInterfaceIds }}'
AND DryRun = '{{ DryRun }}'
;

Lifecycle Methods

Deregisters the specified sources (network interfaces) from the transit gateway multicast group.

EXEC aws.ec2.transit_gateway_multicast_groups.deregister_transit_gateway_multicast_group_sources
@region='{{ region }}' --required,
@TransitGatewayMulticastDomainId='{{ TransitGatewayMulticastDomainId }}',
@GroupIpAddress='{{ GroupIpAddress }}',
@NetworkInterfaceIds='{{ NetworkInterfaceIds }}',
@DryRun={{ DryRun }}
;