1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cen
  5. getChildInstanceRouteEntryToAttachments
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

alicloud.cen.getChildInstanceRouteEntryToAttachments

Explore with Pulumi AI

This data source provides Cen Child Instance Route Entry To Attachment available to the user.What is Child Instance Route Entry To Attachment

NOTE: Available in 1.195.0+

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = alicloud.cen.getChildInstanceRouteEntryToAttachments({
    childInstanceRouteTableId: "vtb-t4nt0z5xxbti85c78nkzy",
    transitRouterAttachmentId: "tr-attach-f1fd1y50rql00emvej",
});
export const alicloudCenChildInstanceRouteEntryToAttachmentExampleId = _default.then(_default => _default.attachments?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.cen.get_child_instance_route_entry_to_attachments(child_instance_route_table_id="vtb-t4nt0z5xxbti85c78nkzy",
    transit_router_attachment_id="tr-attach-f1fd1y50rql00emvej")
pulumi.export("alicloudCenChildInstanceRouteEntryToAttachmentExampleId", default.attachments[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := cen.GetChildInstanceRouteEntryToAttachments(ctx, &cen.GetChildInstanceRouteEntryToAttachmentsArgs{
			ChildInstanceRouteTableId: "vtb-t4nt0z5xxbti85c78nkzy",
			TransitRouterAttachmentId: "tr-attach-f1fd1y50rql00emvej",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("alicloudCenChildInstanceRouteEntryToAttachmentExampleId", _default.Attachments[0].Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.Cen.GetChildInstanceRouteEntryToAttachments.Invoke(new()
    {
        ChildInstanceRouteTableId = "vtb-t4nt0z5xxbti85c78nkzy",
        TransitRouterAttachmentId = "tr-attach-f1fd1y50rql00emvej",
    });

    return new Dictionary<string, object?>
    {
        ["alicloudCenChildInstanceRouteEntryToAttachmentExampleId"] = @default.Apply(@default => @default.Apply(getChildInstanceRouteEntryToAttachmentsResult => getChildInstanceRouteEntryToAttachmentsResult.Attachments[0]?.Id)),
    };
});
Copy
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.GetChildInstanceRouteEntryToAttachmentsArgs;
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 default = CenFunctions.getChildInstanceRouteEntryToAttachments(GetChildInstanceRouteEntryToAttachmentsArgs.builder()
            .childInstanceRouteTableId("vtb-t4nt0z5xxbti85c78nkzy")
            .transitRouterAttachmentId("tr-attach-f1fd1y50rql00emvej")
            .build());

        ctx.export("alicloudCenChildInstanceRouteEntryToAttachmentExampleId", default_.attachments()[0].id());
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:cen:getChildInstanceRouteEntryToAttachments
      arguments:
        childInstanceRouteTableId: vtb-t4nt0z5xxbti85c78nkzy
        transitRouterAttachmentId: tr-attach-f1fd1y50rql00emvej
outputs:
  alicloudCenChildInstanceRouteEntryToAttachmentExampleId: ${default.attachments[0].id}
Copy

Using getChildInstanceRouteEntryToAttachments

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 getChildInstanceRouteEntryToAttachments(args: GetChildInstanceRouteEntryToAttachmentsArgs, opts?: InvokeOptions): Promise<GetChildInstanceRouteEntryToAttachmentsResult>
function getChildInstanceRouteEntryToAttachmentsOutput(args: GetChildInstanceRouteEntryToAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetChildInstanceRouteEntryToAttachmentsResult>
Copy
def get_child_instance_route_entry_to_attachments(cen_id: Optional[str] = None,
                                                  child_instance_route_table_id: Optional[str] = None,
                                                  ids: Optional[Sequence[str]] = None,
                                                  output_file: Optional[str] = None,
                                                  service_type: Optional[str] = None,
                                                  transit_router_attachment_id: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetChildInstanceRouteEntryToAttachmentsResult
def get_child_instance_route_entry_to_attachments_output(cen_id: Optional[pulumi.Input[str]] = None,
                                                  child_instance_route_table_id: Optional[pulumi.Input[str]] = None,
                                                  ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                  output_file: Optional[pulumi.Input[str]] = None,
                                                  service_type: Optional[pulumi.Input[str]] = None,
                                                  transit_router_attachment_id: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetChildInstanceRouteEntryToAttachmentsResult]
Copy
func GetChildInstanceRouteEntryToAttachments(ctx *Context, args *GetChildInstanceRouteEntryToAttachmentsArgs, opts ...InvokeOption) (*GetChildInstanceRouteEntryToAttachmentsResult, error)
func GetChildInstanceRouteEntryToAttachmentsOutput(ctx *Context, args *GetChildInstanceRouteEntryToAttachmentsOutputArgs, opts ...InvokeOption) GetChildInstanceRouteEntryToAttachmentsResultOutput
Copy

> Note: This function is named GetChildInstanceRouteEntryToAttachments in the Go SDK.

public static class GetChildInstanceRouteEntryToAttachments 
{
    public static Task<GetChildInstanceRouteEntryToAttachmentsResult> InvokeAsync(GetChildInstanceRouteEntryToAttachmentsArgs args, InvokeOptions? opts = null)
    public static Output<GetChildInstanceRouteEntryToAttachmentsResult> Invoke(GetChildInstanceRouteEntryToAttachmentsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetChildInstanceRouteEntryToAttachmentsResult> getChildInstanceRouteEntryToAttachments(GetChildInstanceRouteEntryToAttachmentsArgs args, InvokeOptions options)
public static Output<GetChildInstanceRouteEntryToAttachmentsResult> getChildInstanceRouteEntryToAttachments(GetChildInstanceRouteEntryToAttachmentsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cen/getChildInstanceRouteEntryToAttachments:getChildInstanceRouteEntryToAttachments
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ChildInstanceRouteTableId
This property is required.
Changes to this property will trigger replacement.
string
The first ID of the resource
TransitRouterAttachmentId
This property is required.
Changes to this property will trigger replacement.
string
TransitRouterAttachmentId
CenId Changes to this property will trigger replacement. string
The ID of the CEN instance.
Ids List<string>
Limit search to a list of specific IDs.The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
OutputFile string
File name where to save data source results (after running pulumi preview).
ServiceType Changes to this property will trigger replacement. string
ServiceType
ChildInstanceRouteTableId
This property is required.
Changes to this property will trigger replacement.
string
The first ID of the resource
TransitRouterAttachmentId
This property is required.
Changes to this property will trigger replacement.
string
TransitRouterAttachmentId
CenId Changes to this property will trigger replacement. string
The ID of the CEN instance.
Ids []string
Limit search to a list of specific IDs.The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
OutputFile string
File name where to save data source results (after running pulumi preview).
ServiceType Changes to this property will trigger replacement. string
ServiceType
childInstanceRouteTableId
This property is required.
Changes to this property will trigger replacement.
String
The first ID of the resource
transitRouterAttachmentId
This property is required.
Changes to this property will trigger replacement.
String
TransitRouterAttachmentId
cenId Changes to this property will trigger replacement. String
The ID of the CEN instance.
ids List<String>
Limit search to a list of specific IDs.The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
outputFile String
File name where to save data source results (after running pulumi preview).
serviceType Changes to this property will trigger replacement. String
ServiceType
childInstanceRouteTableId
This property is required.
Changes to this property will trigger replacement.
string
The first ID of the resource
transitRouterAttachmentId
This property is required.
Changes to this property will trigger replacement.
string
TransitRouterAttachmentId
cenId Changes to this property will trigger replacement. string
The ID of the CEN instance.
ids string[]
Limit search to a list of specific IDs.The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
outputFile string
File name where to save data source results (after running pulumi preview).
serviceType Changes to this property will trigger replacement. string
ServiceType
child_instance_route_table_id
This property is required.
Changes to this property will trigger replacement.
str
The first ID of the resource
transit_router_attachment_id
This property is required.
Changes to this property will trigger replacement.
str
TransitRouterAttachmentId
cen_id Changes to this property will trigger replacement. str
The ID of the CEN instance.
ids Sequence[str]
Limit search to a list of specific IDs.The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
output_file str
File name where to save data source results (after running pulumi preview).
service_type Changes to this property will trigger replacement. str
ServiceType
childInstanceRouteTableId
This property is required.
Changes to this property will trigger replacement.
String
The first ID of the resource
transitRouterAttachmentId
This property is required.
Changes to this property will trigger replacement.
String
TransitRouterAttachmentId
cenId Changes to this property will trigger replacement. String
The ID of the CEN instance.
ids List<String>
Limit search to a list of specific IDs.The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
outputFile String
File name where to save data source results (after running pulumi preview).
serviceType Changes to this property will trigger replacement. String
ServiceType

getChildInstanceRouteEntryToAttachments Result

The following output properties are available:

Attachments List<Pulumi.AliCloud.Cen.Outputs.GetChildInstanceRouteEntryToAttachmentsAttachment>
A list of Child Instance Route Entry To Attachment Entries. Each element contains the following attributes:
ChildInstanceRouteTableId string
The first ID of the resource
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Limit search to a list of specific IDs.The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
TransitRouterAttachmentId string
TransitRouterAttachmentId
CenId string
The ID of the CEN instance.
OutputFile string
ServiceType string
ServiceType
Attachments []GetChildInstanceRouteEntryToAttachmentsAttachment
A list of Child Instance Route Entry To Attachment Entries. Each element contains the following attributes:
ChildInstanceRouteTableId string
The first ID of the resource
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Limit search to a list of specific IDs.The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
TransitRouterAttachmentId string
TransitRouterAttachmentId
CenId string
The ID of the CEN instance.
OutputFile string
ServiceType string
ServiceType
attachments List<GetChildInstanceRouteEntryToAttachmentsAttachment>
A list of Child Instance Route Entry To Attachment Entries. Each element contains the following attributes:
childInstanceRouteTableId String
The first ID of the resource
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
Limit search to a list of specific IDs.The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
transitRouterAttachmentId String
TransitRouterAttachmentId
cenId String
The ID of the CEN instance.
outputFile String
serviceType String
ServiceType
attachments GetChildInstanceRouteEntryToAttachmentsAttachment[]
A list of Child Instance Route Entry To Attachment Entries. Each element contains the following attributes:
childInstanceRouteTableId string
The first ID of the resource
id string
The provider-assigned unique ID for this managed resource.
ids string[]
Limit search to a list of specific IDs.The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
transitRouterAttachmentId string
TransitRouterAttachmentId
cenId string
The ID of the CEN instance.
outputFile string
serviceType string
ServiceType
attachments Sequence[GetChildInstanceRouteEntryToAttachmentsAttachment]
A list of Child Instance Route Entry To Attachment Entries. Each element contains the following attributes:
child_instance_route_table_id str
The first ID of the resource
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
Limit search to a list of specific IDs.The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
transit_router_attachment_id str
TransitRouterAttachmentId
cen_id str
The ID of the CEN instance.
output_file str
service_type str
ServiceType
attachments List<Property Map>
A list of Child Instance Route Entry To Attachment Entries. Each element contains the following attributes:
childInstanceRouteTableId String
The first ID of the resource
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
Limit search to a list of specific IDs.The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
transitRouterAttachmentId String
TransitRouterAttachmentId
cenId String
The ID of the CEN instance.
outputFile String
serviceType String
ServiceType

Supporting Types

GetChildInstanceRouteEntryToAttachmentsAttachment

CenId This property is required. string
The ID of the CEN instance.
ChildInstanceRouteTableId This property is required. string
The first ID of the resource
DestinationCidrBlock This property is required. string
DestinationCidrBlock
Id This property is required. string
The ID of the resource. The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
ServiceType This property is required. string
ServiceType
Status This property is required. string
The status of the resource
TransitRouterAttachmentId This property is required. string
TransitRouterAttachmentId
CenId This property is required. string
The ID of the CEN instance.
ChildInstanceRouteTableId This property is required. string
The first ID of the resource
DestinationCidrBlock This property is required. string
DestinationCidrBlock
Id This property is required. string
The ID of the resource. The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
ServiceType This property is required. string
ServiceType
Status This property is required. string
The status of the resource
TransitRouterAttachmentId This property is required. string
TransitRouterAttachmentId
cenId This property is required. String
The ID of the CEN instance.
childInstanceRouteTableId This property is required. String
The first ID of the resource
destinationCidrBlock This property is required. String
DestinationCidrBlock
id This property is required. String
The ID of the resource. The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
serviceType This property is required. String
ServiceType
status This property is required. String
The status of the resource
transitRouterAttachmentId This property is required. String
TransitRouterAttachmentId
cenId This property is required. string
The ID of the CEN instance.
childInstanceRouteTableId This property is required. string
The first ID of the resource
destinationCidrBlock This property is required. string
DestinationCidrBlock
id This property is required. string
The ID of the resource. The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
serviceType This property is required. string
ServiceType
status This property is required. string
The status of the resource
transitRouterAttachmentId This property is required. string
TransitRouterAttachmentId
cen_id This property is required. str
The ID of the CEN instance.
child_instance_route_table_id This property is required. str
The first ID of the resource
destination_cidr_block This property is required. str
DestinationCidrBlock
id This property is required. str
The ID of the resource. The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
service_type This property is required. str
ServiceType
status This property is required. str
The status of the resource
transit_router_attachment_id This property is required. str
TransitRouterAttachmentId
cenId This property is required. String
The ID of the CEN instance.
childInstanceRouteTableId This property is required. String
The first ID of the resource
destinationCidrBlock This property is required. String
DestinationCidrBlock
id This property is required. String
The ID of the resource. The value is formulated as <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>.
serviceType This property is required. String
ServiceType
status This property is required. String
The status of the resource
transitRouterAttachmentId This property is required. String
TransitRouterAttachmentId

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.