Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 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);
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)
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
	})
}
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)),
    };
});
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());
    }
}
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 dictionaryThe following arguments are supported:
- Child
Instance stringRoute Table Id  - The first ID of the resource
 - Transit
Router stringAttachment Id  - TransitRouterAttachmentId
 - Cen
Id 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>. - Output
File string - File name where to save data source results (after running 
pulumi preview). - Service
Type string - ServiceType
 
- Child
Instance stringRoute Table Id  - The first ID of the resource
 - Transit
Router stringAttachment Id  - TransitRouterAttachmentId
 - Cen
Id 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>. - Output
File string - File name where to save data source results (after running 
pulumi preview). - Service
Type string - ServiceType
 
- child
Instance StringRoute Table Id  - The first ID of the resource
 - transit
Router StringAttachment Id  - TransitRouterAttachmentId
 - cen
Id 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>. - output
File String - File name where to save data source results (after running 
pulumi preview). - service
Type String - ServiceType
 
- child
Instance stringRoute Table Id  - The first ID of the resource
 - transit
Router stringAttachment Id  - TransitRouterAttachmentId
 - cen
Id 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>. - output
File string - File name where to save data source results (after running 
pulumi preview). - service
Type string - ServiceType
 
- child_
instance_ strroute_ table_ id  - The first ID of the resource
 - transit_
router_ strattachment_ id  - 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 - File name where to save data source results (after running 
pulumi preview). - service_
type str - ServiceType
 
- child
Instance StringRoute Table Id  - The first ID of the resource
 - transit
Router StringAttachment Id  - TransitRouterAttachmentId
 - cen
Id 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>. - output
File String - File name where to save data source results (after running 
pulumi preview). - service
Type String - ServiceType
 
getChildInstanceRouteEntryToAttachments Result
The following output properties are available:
- Attachments
List<Pulumi.
Ali Cloud. Cen. Outputs. Get Child Instance Route Entry To Attachments Attachment>  - A list of Child Instance Route Entry To Attachment Entries. Each element contains the following attributes:
 - Child
Instance stringRoute Table Id  - 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>. - Transit
Router stringAttachment Id  - TransitRouterAttachmentId
 - Cen
Id string - The ID of the CEN instance.
 - Output
File string - Service
Type string - ServiceType
 
- Attachments
[]Get
Child Instance Route Entry To Attachments Attachment  - A list of Child Instance Route Entry To Attachment Entries. Each element contains the following attributes:
 - Child
Instance stringRoute Table Id  - 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>. - Transit
Router stringAttachment Id  - TransitRouterAttachmentId
 - Cen
Id string - The ID of the CEN instance.
 - Output
File string - Service
Type string - ServiceType
 
- attachments
List<Get
Child Instance Route Entry To Attachments Attachment>  - A list of Child Instance Route Entry To Attachment Entries. Each element contains the following attributes:
 - child
Instance StringRoute Table Id  - 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>. - transit
Router StringAttachment Id  - TransitRouterAttachmentId
 - cen
Id String - The ID of the CEN instance.
 - output
File String - service
Type String - ServiceType
 
- attachments
Get
Child Instance Route Entry To Attachments Attachment[]  - A list of Child Instance Route Entry To Attachment Entries. Each element contains the following attributes:
 - child
Instance stringRoute Table Id  - 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>. - transit
Router stringAttachment Id  - TransitRouterAttachmentId
 - cen
Id string - The ID of the CEN instance.
 - output
File string - service
Type string - ServiceType
 
- attachments
Sequence[Get
Child Instance Route Entry To Attachments Attachment]  - A list of Child Instance Route Entry To Attachment Entries. Each element contains the following attributes:
 - child_
instance_ strroute_ table_ id  - 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_ strattachment_ id  - 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:
 - child
Instance StringRoute Table Id  - 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>. - transit
Router StringAttachment Id  - TransitRouterAttachmentId
 - cen
Id String - The ID of the CEN instance.
 - output
File String - service
Type String - ServiceType
 
Supporting Types
GetChildInstanceRouteEntryToAttachmentsAttachment       
- Cen
Id string - The ID of the CEN instance.
 - Child
Instance stringRoute Table Id  - The first ID of the resource
 - Destination
Cidr stringBlock  - 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>. - Service
Type string - ServiceType
 - Status string
 - The status of the resource
 - Transit
Router stringAttachment Id  - TransitRouterAttachmentId
 
- Cen
Id string - The ID of the CEN instance.
 - Child
Instance stringRoute Table Id  - The first ID of the resource
 - Destination
Cidr stringBlock  - 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>. - Service
Type string - ServiceType
 - Status string
 - The status of the resource
 - Transit
Router stringAttachment Id  - TransitRouterAttachmentId
 
- cen
Id String - The ID of the CEN instance.
 - child
Instance StringRoute Table Id  - The first ID of the resource
 - destination
Cidr StringBlock  - 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>. - service
Type String - ServiceType
 - status String
 - The status of the resource
 - transit
Router StringAttachment Id  - TransitRouterAttachmentId
 
- cen
Id string - The ID of the CEN instance.
 - child
Instance stringRoute Table Id  - The first ID of the resource
 - destination
Cidr stringBlock  - 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>. - service
Type string - ServiceType
 - status string
 - The status of the resource
 - transit
Router stringAttachment Id  - TransitRouterAttachmentId
 
- cen_
id str - The ID of the CEN instance.
 - child_
instance_ strroute_ table_ id  - The first ID of the resource
 - destination_
cidr_ strblock  - 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_ strattachment_ id  - TransitRouterAttachmentId
 
- cen
Id String - The ID of the CEN instance.
 - child
Instance StringRoute Table Id  - The first ID of the resource
 - destination
Cidr StringBlock  - 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>. - service
Type String - ServiceType
 - status String
 - The status of the resource
 - transit
Router StringAttachment Id  - TransitRouterAttachmentId
 
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.