1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cen
  5. TransitRouterMulticastDomainMember
Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi

alicloud.cen.TransitRouterMulticastDomainMember

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi

    Provides a Cen Transit Router Multicast Domain Member resource.

    For information about Cen Transit Router Multicast Domain Member and how to use it, see What is Transit Router Multicast Domain Member.

    NOTE: Available since v1.195.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as std from "@pulumi/std";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf_example";
    const _default = alicloud.cen.getTransitRouterAvailableResources({});
    const zone = _default.then(_default => _default.resources?.[0]?.masterZones?.[1]);
    const example = new alicloud.vpc.Network("example", {
        vpcName: name,
        cidrBlock: "192.168.0.0/16",
    });
    const exampleSwitch = new alicloud.vpc.Switch("example", {
        vswitchName: name,
        cidrBlock: "192.168.1.0/24",
        vpcId: example.id,
        zoneId: zone,
    });
    const exampleSecurityGroup = new alicloud.ecs.SecurityGroup("example", {
        name: name,
        vpcId: example.id,
    });
    const exampleEcsNetworkInterface = new alicloud.ecs.EcsNetworkInterface("example", {
        networkInterfaceName: name,
        vswitchId: exampleSwitch.id,
        primaryIpAddress: exampleSwitch.cidrBlock.apply(cidrBlock => std.cidrhostOutput({
            input: cidrBlock,
            host: 100,
        })).apply(invoke => invoke.result),
        securityGroupIds: [exampleSecurityGroup.id],
    });
    const exampleInstance = new alicloud.cen.Instance("example", {cenInstanceName: name});
    const exampleTransitRouter = new alicloud.cen.TransitRouter("example", {
        transitRouterName: name,
        cenId: exampleInstance.id,
        supportMulticast: true,
    });
    const exampleTransitRouterMulticastDomain = new alicloud.cen.TransitRouterMulticastDomain("example", {
        transitRouterId: exampleTransitRouter.transitRouterId,
        transitRouterMulticastDomainName: name,
    });
    const exampleTransitRouterVpcAttachment = new alicloud.cen.TransitRouterVpcAttachment("example", {
        cenId: exampleTransitRouter.cenId,
        transitRouterId: exampleTransitRouterMulticastDomain.transitRouterId,
        vpcId: example.id,
        zoneMappings: [{
            zoneId: zone,
            vswitchId: exampleSwitch.id,
        }],
    });
    const exampleTransitRouterMulticastDomainAssociation = new alicloud.cen.TransitRouterMulticastDomainAssociation("example", {
        transitRouterMulticastDomainId: exampleTransitRouterMulticastDomain.id,
        transitRouterAttachmentId: exampleTransitRouterVpcAttachment.transitRouterAttachmentId,
        vswitchId: exampleSwitch.id,
    });
    const exampleTransitRouterMulticastDomainMember = new alicloud.cen.TransitRouterMulticastDomainMember("example", {
        vpcId: example.id,
        transitRouterMulticastDomainId: exampleTransitRouterMulticastDomainAssociation.transitRouterMulticastDomainId,
        networkInterfaceId: exampleEcsNetworkInterface.id,
        groupIpAddress: "239.1.1.1",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_std as std
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf_example"
    default = alicloud.cen.get_transit_router_available_resources()
    zone = default.resources[0].master_zones[1]
    example = alicloud.vpc.Network("example",
        vpc_name=name,
        cidr_block="192.168.0.0/16")
    example_switch = alicloud.vpc.Switch("example",
        vswitch_name=name,
        cidr_block="192.168.1.0/24",
        vpc_id=example.id,
        zone_id=zone)
    example_security_group = alicloud.ecs.SecurityGroup("example",
        name=name,
        vpc_id=example.id)
    example_ecs_network_interface = alicloud.ecs.EcsNetworkInterface("example",
        network_interface_name=name,
        vswitch_id=example_switch.id,
        primary_ip_address=example_switch.cidr_block.apply(lambda cidr_block: std.cidrhost_output(input=cidr_block,
            host=100)).apply(lambda invoke: invoke.result),
        security_group_ids=[example_security_group.id])
    example_instance = alicloud.cen.Instance("example", cen_instance_name=name)
    example_transit_router = alicloud.cen.TransitRouter("example",
        transit_router_name=name,
        cen_id=example_instance.id,
        support_multicast=True)
    example_transit_router_multicast_domain = alicloud.cen.TransitRouterMulticastDomain("example",
        transit_router_id=example_transit_router.transit_router_id,
        transit_router_multicast_domain_name=name)
    example_transit_router_vpc_attachment = alicloud.cen.TransitRouterVpcAttachment("example",
        cen_id=example_transit_router.cen_id,
        transit_router_id=example_transit_router_multicast_domain.transit_router_id,
        vpc_id=example.id,
        zone_mappings=[{
            "zone_id": zone,
            "vswitch_id": example_switch.id,
        }])
    example_transit_router_multicast_domain_association = alicloud.cen.TransitRouterMulticastDomainAssociation("example",
        transit_router_multicast_domain_id=example_transit_router_multicast_domain.id,
        transit_router_attachment_id=example_transit_router_vpc_attachment.transit_router_attachment_id,
        vswitch_id=example_switch.id)
    example_transit_router_multicast_domain_member = alicloud.cen.TransitRouterMulticastDomainMember("example",
        vpc_id=example.id,
        transit_router_multicast_domain_id=example_transit_router_multicast_domain_association.transit_router_multicast_domain_id,
        network_interface_id=example_ecs_network_interface.id,
        group_ip_address="239.1.1.1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi-std/sdk/go/std"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf_example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := cen.GetTransitRouterAvailableResources(ctx, &cen.GetTransitRouterAvailableResourcesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		zone := _default.Resources[0].MasterZones[1]
    		example, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("192.168.1.0/24"),
    			VpcId:       example.ID(),
    			ZoneId:      pulumi.String(zone),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSecurityGroup, err := ecs.NewSecurityGroup(ctx, "example", &ecs.SecurityGroupArgs{
    			Name:  pulumi.String(name),
    			VpcId: example.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleEcsNetworkInterface, err := ecs.NewEcsNetworkInterface(ctx, "example", &ecs.EcsNetworkInterfaceArgs{
    			NetworkInterfaceName: pulumi.String(name),
    			VswitchId:            exampleSwitch.ID(),
    			PrimaryIpAddress: pulumi.String(exampleSwitch.CidrBlock.ApplyT(func(cidrBlock string) (std.CidrhostResult, error) {
    				return std.CidrhostResult(interface{}(std.CidrhostOutput(ctx, std.CidrhostOutputArgs{
    					Input: cidrBlock,
    					Host:  100,
    				}, nil))), nil
    			}).(std.CidrhostResultOutput).ApplyT(func(invoke std.CidrhostResult) (*string, error) {
    				return invoke.Result, nil
    			}).(pulumi.StringPtrOutput)),
    			SecurityGroupIds: pulumi.StringArray{
    				exampleSecurityGroup.ID(),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleInstance, err := cen.NewInstance(ctx, "example", &cen.InstanceArgs{
    			CenInstanceName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTransitRouter, err := cen.NewTransitRouter(ctx, "example", &cen.TransitRouterArgs{
    			TransitRouterName: pulumi.String(name),
    			CenId:             exampleInstance.ID(),
    			SupportMulticast:  pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTransitRouterMulticastDomain, err := cen.NewTransitRouterMulticastDomain(ctx, "example", &cen.TransitRouterMulticastDomainArgs{
    			TransitRouterId:                  exampleTransitRouter.TransitRouterId,
    			TransitRouterMulticastDomainName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTransitRouterVpcAttachment, err := cen.NewTransitRouterVpcAttachment(ctx, "example", &cen.TransitRouterVpcAttachmentArgs{
    			CenId:           exampleTransitRouter.CenId,
    			TransitRouterId: exampleTransitRouterMulticastDomain.TransitRouterId,
    			VpcId:           example.ID(),
    			ZoneMappings: cen.TransitRouterVpcAttachmentZoneMappingArray{
    				&cen.TransitRouterVpcAttachmentZoneMappingArgs{
    					ZoneId:    pulumi.String(zone),
    					VswitchId: exampleSwitch.ID(),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleTransitRouterMulticastDomainAssociation, err := cen.NewTransitRouterMulticastDomainAssociation(ctx, "example", &cen.TransitRouterMulticastDomainAssociationArgs{
    			TransitRouterMulticastDomainId: exampleTransitRouterMulticastDomain.ID(),
    			TransitRouterAttachmentId:      exampleTransitRouterVpcAttachment.TransitRouterAttachmentId,
    			VswitchId:                      exampleSwitch.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewTransitRouterMulticastDomainMember(ctx, "example", &cen.TransitRouterMulticastDomainMemberArgs{
    			VpcId:                          example.ID(),
    			TransitRouterMulticastDomainId: exampleTransitRouterMulticastDomainAssociation.TransitRouterMulticastDomainId,
    			NetworkInterfaceId:             exampleEcsNetworkInterface.ID(),
    			GroupIpAddress:                 pulumi.String("239.1.1.1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Std = Pulumi.Std;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf_example";
        var @default = AliCloud.Cen.GetTransitRouterAvailableResources.Invoke();
    
        var zone = @default.Apply(@default => @default.Apply(getTransitRouterAvailableResourcesResult => getTransitRouterAvailableResourcesResult.Resources[0]?.MasterZones[1]));
    
        var example = new AliCloud.Vpc.Network("example", new()
        {
            VpcName = name,
            CidrBlock = "192.168.0.0/16",
        });
    
        var exampleSwitch = new AliCloud.Vpc.Switch("example", new()
        {
            VswitchName = name,
            CidrBlock = "192.168.1.0/24",
            VpcId = example.Id,
            ZoneId = zone,
        });
    
        var exampleSecurityGroup = new AliCloud.Ecs.SecurityGroup("example", new()
        {
            Name = name,
            VpcId = example.Id,
        });
    
        var exampleEcsNetworkInterface = new AliCloud.Ecs.EcsNetworkInterface("example", new()
        {
            NetworkInterfaceName = name,
            VswitchId = exampleSwitch.Id,
            PrimaryIpAddress = exampleSwitch.CidrBlock.Apply(cidrBlock => Std.Cidrhost.Invoke(new()
            {
                Input = cidrBlock,
                Host = 100,
            })).Apply(invoke => invoke.Result),
            SecurityGroupIds = new[]
            {
                exampleSecurityGroup.Id,
            },
        });
    
        var exampleInstance = new AliCloud.Cen.Instance("example", new()
        {
            CenInstanceName = name,
        });
    
        var exampleTransitRouter = new AliCloud.Cen.TransitRouter("example", new()
        {
            TransitRouterName = name,
            CenId = exampleInstance.Id,
            SupportMulticast = true,
        });
    
        var exampleTransitRouterMulticastDomain = new AliCloud.Cen.TransitRouterMulticastDomain("example", new()
        {
            TransitRouterId = exampleTransitRouter.TransitRouterId,
            TransitRouterMulticastDomainName = name,
        });
    
        var exampleTransitRouterVpcAttachment = new AliCloud.Cen.TransitRouterVpcAttachment("example", new()
        {
            CenId = exampleTransitRouter.CenId,
            TransitRouterId = exampleTransitRouterMulticastDomain.TransitRouterId,
            VpcId = example.Id,
            ZoneMappings = new[]
            {
                new AliCloud.Cen.Inputs.TransitRouterVpcAttachmentZoneMappingArgs
                {
                    ZoneId = zone,
                    VswitchId = exampleSwitch.Id,
                },
            },
        });
    
        var exampleTransitRouterMulticastDomainAssociation = new AliCloud.Cen.TransitRouterMulticastDomainAssociation("example", new()
        {
            TransitRouterMulticastDomainId = exampleTransitRouterMulticastDomain.Id,
            TransitRouterAttachmentId = exampleTransitRouterVpcAttachment.TransitRouterAttachmentId,
            VswitchId = exampleSwitch.Id,
        });
    
        var exampleTransitRouterMulticastDomainMember = new AliCloud.Cen.TransitRouterMulticastDomainMember("example", new()
        {
            VpcId = example.Id,
            TransitRouterMulticastDomainId = exampleTransitRouterMulticastDomainAssociation.TransitRouterMulticastDomainId,
            NetworkInterfaceId = exampleEcsNetworkInterface.Id,
            GroupIpAddress = "239.1.1.1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cen.CenFunctions;
    import com.pulumi.alicloud.cen.inputs.GetTransitRouterAvailableResourcesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.ecs.SecurityGroup;
    import com.pulumi.alicloud.ecs.SecurityGroupArgs;
    import com.pulumi.alicloud.ecs.EcsNetworkInterface;
    import com.pulumi.alicloud.ecs.EcsNetworkInterfaceArgs;
    import com.pulumi.std.StdFunctions;
    import com.pulumi.std.inputs.CidrhostArgs;
    import com.pulumi.alicloud.cen.Instance;
    import com.pulumi.alicloud.cen.InstanceArgs;
    import com.pulumi.alicloud.cen.TransitRouter;
    import com.pulumi.alicloud.cen.TransitRouterArgs;
    import com.pulumi.alicloud.cen.TransitRouterMulticastDomain;
    import com.pulumi.alicloud.cen.TransitRouterMulticastDomainArgs;
    import com.pulumi.alicloud.cen.TransitRouterVpcAttachment;
    import com.pulumi.alicloud.cen.TransitRouterVpcAttachmentArgs;
    import com.pulumi.alicloud.cen.inputs.TransitRouterVpcAttachmentZoneMappingArgs;
    import com.pulumi.alicloud.cen.TransitRouterMulticastDomainAssociation;
    import com.pulumi.alicloud.cen.TransitRouterMulticastDomainAssociationArgs;
    import com.pulumi.alicloud.cen.TransitRouterMulticastDomainMember;
    import com.pulumi.alicloud.cen.TransitRouterMulticastDomainMemberArgs;
    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 config = ctx.config();
            final var name = config.get("name").orElse("tf_example");
            final var default = CenFunctions.getTransitRouterAvailableResources(GetTransitRouterAvailableResourcesArgs.builder()
                .build());
    
            final var zone = default_.resources()[0].masterZones()[1];
    
            var example = new Network("example", NetworkArgs.builder()
                .vpcName(name)
                .cidrBlock("192.168.0.0/16")
                .build());
    
            var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
                .vswitchName(name)
                .cidrBlock("192.168.1.0/24")
                .vpcId(example.id())
                .zoneId(zone)
                .build());
    
            var exampleSecurityGroup = new SecurityGroup("exampleSecurityGroup", SecurityGroupArgs.builder()
                .name(name)
                .vpcId(example.id())
                .build());
    
            var exampleEcsNetworkInterface = new EcsNetworkInterface("exampleEcsNetworkInterface", EcsNetworkInterfaceArgs.builder()
                .networkInterfaceName(name)
                .vswitchId(exampleSwitch.id())
                .primaryIpAddress(exampleSwitch.cidrBlock().applyValue(_cidrBlock -> StdFunctions.cidrhost(CidrhostArgs.builder()
                    .input(_cidrBlock)
                    .host(100)
                    .build())).applyValue(_invoke -> _invoke.result()))
                .securityGroupIds(exampleSecurityGroup.id())
                .build());
    
            var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
                .cenInstanceName(name)
                .build());
    
            var exampleTransitRouter = new TransitRouter("exampleTransitRouter", TransitRouterArgs.builder()
                .transitRouterName(name)
                .cenId(exampleInstance.id())
                .supportMulticast(true)
                .build());
    
            var exampleTransitRouterMulticastDomain = new TransitRouterMulticastDomain("exampleTransitRouterMulticastDomain", TransitRouterMulticastDomainArgs.builder()
                .transitRouterId(exampleTransitRouter.transitRouterId())
                .transitRouterMulticastDomainName(name)
                .build());
    
            var exampleTransitRouterVpcAttachment = new TransitRouterVpcAttachment("exampleTransitRouterVpcAttachment", TransitRouterVpcAttachmentArgs.builder()
                .cenId(exampleTransitRouter.cenId())
                .transitRouterId(exampleTransitRouterMulticastDomain.transitRouterId())
                .vpcId(example.id())
                .zoneMappings(TransitRouterVpcAttachmentZoneMappingArgs.builder()
                    .zoneId(zone)
                    .vswitchId(exampleSwitch.id())
                    .build())
                .build());
    
            var exampleTransitRouterMulticastDomainAssociation = new TransitRouterMulticastDomainAssociation("exampleTransitRouterMulticastDomainAssociation", TransitRouterMulticastDomainAssociationArgs.builder()
                .transitRouterMulticastDomainId(exampleTransitRouterMulticastDomain.id())
                .transitRouterAttachmentId(exampleTransitRouterVpcAttachment.transitRouterAttachmentId())
                .vswitchId(exampleSwitch.id())
                .build());
    
            var exampleTransitRouterMulticastDomainMember = new TransitRouterMulticastDomainMember("exampleTransitRouterMulticastDomainMember", TransitRouterMulticastDomainMemberArgs.builder()
                .vpcId(example.id())
                .transitRouterMulticastDomainId(exampleTransitRouterMulticastDomainAssociation.transitRouterMulticastDomainId())
                .networkInterfaceId(exampleEcsNetworkInterface.id())
                .groupIpAddress("239.1.1.1")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_example
    resources:
      example:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 192.168.0.0/16
      exampleSwitch:
        type: alicloud:vpc:Switch
        name: example
        properties:
          vswitchName: ${name}
          cidrBlock: 192.168.1.0/24
          vpcId: ${example.id}
          zoneId: ${zone}
      exampleSecurityGroup:
        type: alicloud:ecs:SecurityGroup
        name: example
        properties:
          name: ${name}
          vpcId: ${example.id}
      exampleEcsNetworkInterface:
        type: alicloud:ecs:EcsNetworkInterface
        name: example
        properties:
          networkInterfaceName: ${name}
          vswitchId: ${exampleSwitch.id}
          primaryIpAddress:
            fn::invoke:
              function: std:cidrhost
              arguments:
                input: ${exampleSwitch.cidrBlock}
                host: 100
              return: result
          securityGroupIds:
            - ${exampleSecurityGroup.id}
      exampleInstance:
        type: alicloud:cen:Instance
        name: example
        properties:
          cenInstanceName: ${name}
      exampleTransitRouter:
        type: alicloud:cen:TransitRouter
        name: example
        properties:
          transitRouterName: ${name}
          cenId: ${exampleInstance.id}
          supportMulticast: true
      exampleTransitRouterMulticastDomain:
        type: alicloud:cen:TransitRouterMulticastDomain
        name: example
        properties:
          transitRouterId: ${exampleTransitRouter.transitRouterId}
          transitRouterMulticastDomainName: ${name}
      exampleTransitRouterVpcAttachment:
        type: alicloud:cen:TransitRouterVpcAttachment
        name: example
        properties:
          cenId: ${exampleTransitRouter.cenId}
          transitRouterId: ${exampleTransitRouterMulticastDomain.transitRouterId}
          vpcId: ${example.id}
          zoneMappings:
            - zoneId: ${zone}
              vswitchId: ${exampleSwitch.id}
      exampleTransitRouterMulticastDomainAssociation:
        type: alicloud:cen:TransitRouterMulticastDomainAssociation
        name: example
        properties:
          transitRouterMulticastDomainId: ${exampleTransitRouterMulticastDomain.id}
          transitRouterAttachmentId: ${exampleTransitRouterVpcAttachment.transitRouterAttachmentId}
          vswitchId: ${exampleSwitch.id}
      exampleTransitRouterMulticastDomainMember:
        type: alicloud:cen:TransitRouterMulticastDomainMember
        name: example
        properties:
          vpcId: ${example.id}
          transitRouterMulticastDomainId: ${exampleTransitRouterMulticastDomainAssociation.transitRouterMulticastDomainId}
          networkInterfaceId: ${exampleEcsNetworkInterface.id}
          groupIpAddress: 239.1.1.1
    variables:
      default:
        fn::invoke:
          function: alicloud:cen:getTransitRouterAvailableResources
          arguments: {}
      zone: ${default.resources[0].masterZones[1]}
    

    Create TransitRouterMulticastDomainMember Resource

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

    Constructor syntax

    new TransitRouterMulticastDomainMember(name: string, args: TransitRouterMulticastDomainMemberArgs, opts?: CustomResourceOptions);
    @overload
    def TransitRouterMulticastDomainMember(resource_name: str,
                                           args: TransitRouterMulticastDomainMemberArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def TransitRouterMulticastDomainMember(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           group_ip_address: Optional[str] = None,
                                           network_interface_id: Optional[str] = None,
                                           transit_router_multicast_domain_id: Optional[str] = None,
                                           dry_run: Optional[bool] = None,
                                           vpc_id: Optional[str] = None)
    func NewTransitRouterMulticastDomainMember(ctx *Context, name string, args TransitRouterMulticastDomainMemberArgs, opts ...ResourceOption) (*TransitRouterMulticastDomainMember, error)
    public TransitRouterMulticastDomainMember(string name, TransitRouterMulticastDomainMemberArgs args, CustomResourceOptions? opts = null)
    public TransitRouterMulticastDomainMember(String name, TransitRouterMulticastDomainMemberArgs args)
    public TransitRouterMulticastDomainMember(String name, TransitRouterMulticastDomainMemberArgs args, CustomResourceOptions options)
    
    type: alicloud:cen:TransitRouterMulticastDomainMember
    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 TransitRouterMulticastDomainMemberArgs
    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 TransitRouterMulticastDomainMemberArgs
    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 TransitRouterMulticastDomainMemberArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TransitRouterMulticastDomainMemberArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TransitRouterMulticastDomainMemberArgs
    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 transitRouterMulticastDomainMemberResource = new AliCloud.Cen.TransitRouterMulticastDomainMember("transitRouterMulticastDomainMemberResource", new()
    {
        GroupIpAddress = "string",
        NetworkInterfaceId = "string",
        TransitRouterMulticastDomainId = "string",
        DryRun = false,
        VpcId = "string",
    });
    
    example, err := cen.NewTransitRouterMulticastDomainMember(ctx, "transitRouterMulticastDomainMemberResource", &cen.TransitRouterMulticastDomainMemberArgs{
    	GroupIpAddress:                 pulumi.String("string"),
    	NetworkInterfaceId:             pulumi.String("string"),
    	TransitRouterMulticastDomainId: pulumi.String("string"),
    	DryRun:                         pulumi.Bool(false),
    	VpcId:                          pulumi.String("string"),
    })
    
    var transitRouterMulticastDomainMemberResource = new TransitRouterMulticastDomainMember("transitRouterMulticastDomainMemberResource", TransitRouterMulticastDomainMemberArgs.builder()
        .groupIpAddress("string")
        .networkInterfaceId("string")
        .transitRouterMulticastDomainId("string")
        .dryRun(false)
        .vpcId("string")
        .build());
    
    transit_router_multicast_domain_member_resource = alicloud.cen.TransitRouterMulticastDomainMember("transitRouterMulticastDomainMemberResource",
        group_ip_address="string",
        network_interface_id="string",
        transit_router_multicast_domain_id="string",
        dry_run=False,
        vpc_id="string")
    
    const transitRouterMulticastDomainMemberResource = new alicloud.cen.TransitRouterMulticastDomainMember("transitRouterMulticastDomainMemberResource", {
        groupIpAddress: "string",
        networkInterfaceId: "string",
        transitRouterMulticastDomainId: "string",
        dryRun: false,
        vpcId: "string",
    });
    
    type: alicloud:cen:TransitRouterMulticastDomainMember
    properties:
        dryRun: false
        groupIpAddress: string
        networkInterfaceId: string
        transitRouterMulticastDomainId: string
        vpcId: string
    

    TransitRouterMulticastDomainMember 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 TransitRouterMulticastDomainMember resource accepts the following input properties:

    GroupIpAddress string
    The IP address of the multicast group to which the multicast member belongs. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you in the current multicast domain.
    NetworkInterfaceId string
    The ID of the ENI.
    TransitRouterMulticastDomainId string
    The ID of the multicast domain to which the multicast member belongs.
    DryRun bool
    Specifies whether only to precheck the request.
    VpcId string
    The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts.
    GroupIpAddress string
    The IP address of the multicast group to which the multicast member belongs. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you in the current multicast domain.
    NetworkInterfaceId string
    The ID of the ENI.
    TransitRouterMulticastDomainId string
    The ID of the multicast domain to which the multicast member belongs.
    DryRun bool
    Specifies whether only to precheck the request.
    VpcId string
    The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts.
    groupIpAddress String
    The IP address of the multicast group to which the multicast member belongs. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you in the current multicast domain.
    networkInterfaceId String
    The ID of the ENI.
    transitRouterMulticastDomainId String
    The ID of the multicast domain to which the multicast member belongs.
    dryRun Boolean
    Specifies whether only to precheck the request.
    vpcId String
    The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts.
    groupIpAddress string
    The IP address of the multicast group to which the multicast member belongs. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you in the current multicast domain.
    networkInterfaceId string
    The ID of the ENI.
    transitRouterMulticastDomainId string
    The ID of the multicast domain to which the multicast member belongs.
    dryRun boolean
    Specifies whether only to precheck the request.
    vpcId string
    The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts.
    group_ip_address str
    The IP address of the multicast group to which the multicast member belongs. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you in the current multicast domain.
    network_interface_id str
    The ID of the ENI.
    transit_router_multicast_domain_id str
    The ID of the multicast domain to which the multicast member belongs.
    dry_run bool
    Specifies whether only to precheck the request.
    vpc_id str
    The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts.
    groupIpAddress String
    The IP address of the multicast group to which the multicast member belongs. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you in the current multicast domain.
    networkInterfaceId String
    The ID of the ENI.
    transitRouterMulticastDomainId String
    The ID of the multicast domain to which the multicast member belongs.
    dryRun Boolean
    Specifies whether only to precheck the request.
    vpcId String
    The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Transit Router Multicast Domain Member.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Transit Router Multicast Domain Member.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Transit Router Multicast Domain Member.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the Transit Router Multicast Domain Member.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the Transit Router Multicast Domain Member.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Transit Router Multicast Domain Member.

    Look up Existing TransitRouterMulticastDomainMember Resource

    Get an existing TransitRouterMulticastDomainMember 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?: TransitRouterMulticastDomainMemberState, opts?: CustomResourceOptions): TransitRouterMulticastDomainMember
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dry_run: Optional[bool] = None,
            group_ip_address: Optional[str] = None,
            network_interface_id: Optional[str] = None,
            status: Optional[str] = None,
            transit_router_multicast_domain_id: Optional[str] = None,
            vpc_id: Optional[str] = None) -> TransitRouterMulticastDomainMember
    func GetTransitRouterMulticastDomainMember(ctx *Context, name string, id IDInput, state *TransitRouterMulticastDomainMemberState, opts ...ResourceOption) (*TransitRouterMulticastDomainMember, error)
    public static TransitRouterMulticastDomainMember Get(string name, Input<string> id, TransitRouterMulticastDomainMemberState? state, CustomResourceOptions? opts = null)
    public static TransitRouterMulticastDomainMember get(String name, Output<String> id, TransitRouterMulticastDomainMemberState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:cen:TransitRouterMulticastDomainMember    get:      id: ${id}
    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:
    DryRun bool
    Specifies whether only to precheck the request.
    GroupIpAddress string
    The IP address of the multicast group to which the multicast member belongs. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you in the current multicast domain.
    NetworkInterfaceId string
    The ID of the ENI.
    Status string
    The status of the Transit Router Multicast Domain Member.
    TransitRouterMulticastDomainId string
    The ID of the multicast domain to which the multicast member belongs.
    VpcId string
    The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts.
    DryRun bool
    Specifies whether only to precheck the request.
    GroupIpAddress string
    The IP address of the multicast group to which the multicast member belongs. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you in the current multicast domain.
    NetworkInterfaceId string
    The ID of the ENI.
    Status string
    The status of the Transit Router Multicast Domain Member.
    TransitRouterMulticastDomainId string
    The ID of the multicast domain to which the multicast member belongs.
    VpcId string
    The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts.
    dryRun Boolean
    Specifies whether only to precheck the request.
    groupIpAddress String
    The IP address of the multicast group to which the multicast member belongs. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you in the current multicast domain.
    networkInterfaceId String
    The ID of the ENI.
    status String
    The status of the Transit Router Multicast Domain Member.
    transitRouterMulticastDomainId String
    The ID of the multicast domain to which the multicast member belongs.
    vpcId String
    The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts.
    dryRun boolean
    Specifies whether only to precheck the request.
    groupIpAddress string
    The IP address of the multicast group to which the multicast member belongs. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you in the current multicast domain.
    networkInterfaceId string
    The ID of the ENI.
    status string
    The status of the Transit Router Multicast Domain Member.
    transitRouterMulticastDomainId string
    The ID of the multicast domain to which the multicast member belongs.
    vpcId string
    The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts.
    dry_run bool
    Specifies whether only to precheck the request.
    group_ip_address str
    The IP address of the multicast group to which the multicast member belongs. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you in the current multicast domain.
    network_interface_id str
    The ID of the ENI.
    status str
    The status of the Transit Router Multicast Domain Member.
    transit_router_multicast_domain_id str
    The ID of the multicast domain to which the multicast member belongs.
    vpc_id str
    The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts.
    dryRun Boolean
    Specifies whether only to precheck the request.
    groupIpAddress String
    The IP address of the multicast group to which the multicast member belongs. If the multicast group you specified does not exist in the current multicast domain, the system will automatically create a new multicast group for you in the current multicast domain.
    networkInterfaceId String
    The ID of the ENI.
    status String
    The status of the Transit Router Multicast Domain Member.
    transitRouterMulticastDomainId String
    The ID of the multicast domain to which the multicast member belongs.
    vpcId String
    The VPC to which the ENI of the multicast member belongs. This field is mandatory for VPCs owned by another accounts.

    Import

    Cen Transit Router Multicast Domain Member can be imported using the id, e.g.

    $ pulumi import alicloud:cen/transitRouterMulticastDomainMember:TransitRouterMulticastDomainMember example <transit_router_multicast_domain_id>:<group_ip_address>:<network_interface_id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi
      AI Agentic Workflows: Register now