alicloud.cen.getChildInstanceRouteEntryToAttachments

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

using System.Collections.Generic;
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(getChildInstanceRouteEntryToAttachmentsResult => getChildInstanceRouteEntryToAttachmentsResult).Apply(@default => @default.Apply(getChildInstanceRouteEntryToAttachmentsResult => getChildInstanceRouteEntryToAttachmentsResult.Attachments[0]?.Id)),
    };
});
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
	})
}
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());
    }
}
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)
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);
variables:
  default:
    fn::invoke:
      Function: alicloud:cen:getChildInstanceRouteEntryToAttachments
      Arguments:
        childInstanceRouteTableId: vtb-t4nt0z5xxbti85c78nkzy
        transitRouterAttachmentId: tr-attach-f1fd1y50rql00emvej
outputs:
  alicloudCenChildInstanceRouteEntryToAttachmentExampleId: ${default.attachments[0].id}

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>
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]
func GetChildInstanceRouteEntryToAttachments(ctx *Context, args *GetChildInstanceRouteEntryToAttachmentsArgs, opts ...InvokeOption) (*GetChildInstanceRouteEntryToAttachmentsResult, error)
func GetChildInstanceRouteEntryToAttachmentsOutput(ctx *Context, args *GetChildInstanceRouteEntryToAttachmentsOutputArgs, opts ...InvokeOption) GetChildInstanceRouteEntryToAttachmentsResultOutput

> 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)
}
public static CompletableFuture<GetChildInstanceRouteEntryToAttachmentsResult> getChildInstanceRouteEntryToAttachments(GetChildInstanceRouteEntryToAttachmentsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:cen/getChildInstanceRouteEntryToAttachments:getChildInstanceRouteEntryToAttachments
  arguments:
    # arguments dictionary

The following arguments are supported:

ChildInstanceRouteTableId string

The first ID of the resource

TransitRouterAttachmentId string

TransitRouterAttachmentId

CenId 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
ServiceType string

ServiceType

ChildInstanceRouteTableId string

The first ID of the resource

TransitRouterAttachmentId string

TransitRouterAttachmentId

CenId 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
ServiceType string

ServiceType

childInstanceRouteTableId String

The first ID of the resource

transitRouterAttachmentId String

TransitRouterAttachmentId

cenId 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
serviceType String

ServiceType

childInstanceRouteTableId string

The first ID of the resource

transitRouterAttachmentId string

TransitRouterAttachmentId

cenId 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
serviceType string

ServiceType

child_instance_route_table_id str

The first ID of the resource

transit_router_attachment_id str

TransitRouterAttachmentId

cen_id 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
service_type str

ServiceType

childInstanceRouteTableId String

The first ID of the resource

transitRouterAttachmentId String

TransitRouterAttachmentId

cenId 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
serviceType 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 string

The ID of the CEN instance.

ChildInstanceRouteTableId string

The first ID of the resource

DestinationCidrBlock string

DestinationCidrBlock

Id 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 string

ServiceType

Status string

The status of the resource

TransitRouterAttachmentId string

TransitRouterAttachmentId

CenId string

The ID of the CEN instance.

ChildInstanceRouteTableId string

The first ID of the resource

DestinationCidrBlock string

DestinationCidrBlock

Id 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 string

ServiceType

Status string

The status of the resource

TransitRouterAttachmentId string

TransitRouterAttachmentId

cenId String

The ID of the CEN instance.

childInstanceRouteTableId String

The first ID of the resource

destinationCidrBlock String

DestinationCidrBlock

id 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 String

ServiceType

status String

The status of the resource

transitRouterAttachmentId String

TransitRouterAttachmentId

cenId string

The ID of the CEN instance.

childInstanceRouteTableId string

The first ID of the resource

destinationCidrBlock string

DestinationCidrBlock

id 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 string

ServiceType

status string

The status of the resource

transitRouterAttachmentId string

TransitRouterAttachmentId

cen_id str

The ID of the CEN instance.

child_instance_route_table_id str

The first ID of the resource

destination_cidr_block str

DestinationCidrBlock

id 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 str

ServiceType

status str

The status of the resource

transit_router_attachment_id str

TransitRouterAttachmentId

cenId String

The ID of the CEN instance.

childInstanceRouteTableId String

The first ID of the resource

destinationCidrBlock String

DestinationCidrBlock

id 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 String

ServiceType

status String

The status of the resource

transitRouterAttachmentId 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.