alicloud.cen.ChildInstanceRouteEntryToAttachment

Explore with Pulumi AI

Provides a Cen Child Instance Route Entry To Attachment resource.

For information about Cen Child Instance Route Entry To Attachment and how to use it, see What is Child Instance Route Entry To Attachment.

NOTE: Available in v1.195.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = new AliCloud.Cen.ChildInstanceRouteEntryToAttachment("default", new()
    {
        CenId = "cen-3sgjn0u745c3i0o3dk",
        ChildInstanceRouteTableId = "vtb-t4nt0z5xxbti85c78nkzy",
        DestinationCidrBlock = "10.0.0.0/24",
        TransitRouterAttachmentId = "tr-attach-f1fd1y50rql00emvej",
    });

});
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 {
		_, err := cen.NewChildInstanceRouteEntryToAttachment(ctx, "default", &cen.ChildInstanceRouteEntryToAttachmentArgs{
			CenId:                     pulumi.String("cen-3sgjn0u745c3i0o3dk"),
			ChildInstanceRouteTableId: pulumi.String("vtb-t4nt0z5xxbti85c78nkzy"),
			DestinationCidrBlock:      pulumi.String("10.0.0.0/24"),
			TransitRouterAttachmentId: pulumi.String("tr-attach-f1fd1y50rql00emvej"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cen.ChildInstanceRouteEntryToAttachment;
import com.pulumi.alicloud.cen.ChildInstanceRouteEntryToAttachmentArgs;
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) {
        var default_ = new ChildInstanceRouteEntryToAttachment("default", ChildInstanceRouteEntryToAttachmentArgs.builder()        
            .cenId("cen-3sgjn0u745c3i0o3dk")
            .childInstanceRouteTableId("vtb-t4nt0z5xxbti85c78nkzy")
            .destinationCidrBlock("10.0.0.0/24")
            .transitRouterAttachmentId("tr-attach-f1fd1y50rql00emvej")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.cen.ChildInstanceRouteEntryToAttachment("default",
    cen_id="cen-3sgjn0u745c3i0o3dk",
    child_instance_route_table_id="vtb-t4nt0z5xxbti85c78nkzy",
    destination_cidr_block="10.0.0.0/24",
    transit_router_attachment_id="tr-attach-f1fd1y50rql00emvej")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.cen.ChildInstanceRouteEntryToAttachment("default", {
    cenId: "cen-3sgjn0u745c3i0o3dk",
    childInstanceRouteTableId: "vtb-t4nt0z5xxbti85c78nkzy",
    destinationCidrBlock: "10.0.0.0/24",
    transitRouterAttachmentId: "tr-attach-f1fd1y50rql00emvej",
});
resources:
  default:
    type: alicloud:cen:ChildInstanceRouteEntryToAttachment
    properties:
      cenId: cen-3sgjn0u745c3i0o3dk
      childInstanceRouteTableId: vtb-t4nt0z5xxbti85c78nkzy
      destinationCidrBlock: 10.0.0.0/24
      transitRouterAttachmentId: tr-attach-f1fd1y50rql00emvej

Create ChildInstanceRouteEntryToAttachment Resource

new ChildInstanceRouteEntryToAttachment(name: string, args: ChildInstanceRouteEntryToAttachmentArgs, opts?: CustomResourceOptions);
@overload
def ChildInstanceRouteEntryToAttachment(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        cen_id: Optional[str] = None,
                                        child_instance_route_table_id: Optional[str] = None,
                                        destination_cidr_block: Optional[str] = None,
                                        dry_run: Optional[bool] = None,
                                        transit_router_attachment_id: Optional[str] = None)
@overload
def ChildInstanceRouteEntryToAttachment(resource_name: str,
                                        args: ChildInstanceRouteEntryToAttachmentArgs,
                                        opts: Optional[ResourceOptions] = None)
func NewChildInstanceRouteEntryToAttachment(ctx *Context, name string, args ChildInstanceRouteEntryToAttachmentArgs, opts ...ResourceOption) (*ChildInstanceRouteEntryToAttachment, error)
public ChildInstanceRouteEntryToAttachment(string name, ChildInstanceRouteEntryToAttachmentArgs args, CustomResourceOptions? opts = null)
public ChildInstanceRouteEntryToAttachment(String name, ChildInstanceRouteEntryToAttachmentArgs args)
public ChildInstanceRouteEntryToAttachment(String name, ChildInstanceRouteEntryToAttachmentArgs args, CustomResourceOptions options)
type: alicloud:cen:ChildInstanceRouteEntryToAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ChildInstanceRouteEntryToAttachmentArgs
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 ChildInstanceRouteEntryToAttachmentArgs
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 ChildInstanceRouteEntryToAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ChildInstanceRouteEntryToAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ChildInstanceRouteEntryToAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ChildInstanceRouteEntryToAttachment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ChildInstanceRouteEntryToAttachment resource accepts the following input properties:

CenId string

The ID of the CEN instance.

ChildInstanceRouteTableId string

The first ID of the resource

DestinationCidrBlock string

DestinationCidrBlock

TransitRouterAttachmentId string

TransitRouterAttachmentId

DryRun bool

Whether to perform pre-check on this request, including permission and instance status verification.

CenId string

The ID of the CEN instance.

ChildInstanceRouteTableId string

The first ID of the resource

DestinationCidrBlock string

DestinationCidrBlock

TransitRouterAttachmentId string

TransitRouterAttachmentId

DryRun bool

Whether to perform pre-check on this request, including permission and instance status verification.

cenId String

The ID of the CEN instance.

childInstanceRouteTableId String

The first ID of the resource

destinationCidrBlock String

DestinationCidrBlock

transitRouterAttachmentId String

TransitRouterAttachmentId

dryRun Boolean

Whether to perform pre-check on this request, including permission and instance status verification.

cenId string

The ID of the CEN instance.

childInstanceRouteTableId string

The first ID of the resource

destinationCidrBlock string

DestinationCidrBlock

transitRouterAttachmentId string

TransitRouterAttachmentId

dryRun boolean

Whether to perform pre-check on this request, including permission and instance status verification.

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

transit_router_attachment_id str

TransitRouterAttachmentId

dry_run bool

Whether to perform pre-check on this request, including permission and instance status verification.

cenId String

The ID of the CEN instance.

childInstanceRouteTableId String

The first ID of the resource

destinationCidrBlock String

DestinationCidrBlock

transitRouterAttachmentId String

TransitRouterAttachmentId

dryRun Boolean

Whether to perform pre-check on this request, including permission and instance status verification.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

ServiceType string

ServiceType

Status string

The status of the resource

Id string

The provider-assigned unique ID for this managed resource.

ServiceType string

ServiceType

Status string

The status of the resource

id String

The provider-assigned unique ID for this managed resource.

serviceType String

ServiceType

status String

The status of the resource

id string

The provider-assigned unique ID for this managed resource.

serviceType string

ServiceType

status string

The status of the resource

id str

The provider-assigned unique ID for this managed resource.

service_type str

ServiceType

status str

The status of the resource

id String

The provider-assigned unique ID for this managed resource.

serviceType String

ServiceType

status String

The status of the resource

Look up Existing ChildInstanceRouteEntryToAttachment Resource

Get an existing ChildInstanceRouteEntryToAttachment 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?: ChildInstanceRouteEntryToAttachmentState, opts?: CustomResourceOptions): ChildInstanceRouteEntryToAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cen_id: Optional[str] = None,
        child_instance_route_table_id: Optional[str] = None,
        destination_cidr_block: Optional[str] = None,
        dry_run: Optional[bool] = None,
        service_type: Optional[str] = None,
        status: Optional[str] = None,
        transit_router_attachment_id: Optional[str] = None) -> ChildInstanceRouteEntryToAttachment
func GetChildInstanceRouteEntryToAttachment(ctx *Context, name string, id IDInput, state *ChildInstanceRouteEntryToAttachmentState, opts ...ResourceOption) (*ChildInstanceRouteEntryToAttachment, error)
public static ChildInstanceRouteEntryToAttachment Get(string name, Input<string> id, ChildInstanceRouteEntryToAttachmentState? state, CustomResourceOptions? opts = null)
public static ChildInstanceRouteEntryToAttachment get(String name, Output<String> id, ChildInstanceRouteEntryToAttachmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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:
CenId string

The ID of the CEN instance.

ChildInstanceRouteTableId string

The first ID of the resource

DestinationCidrBlock string

DestinationCidrBlock

DryRun bool

Whether to perform pre-check on this request, including permission and instance status verification.

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

DryRun bool

Whether to perform pre-check on this request, including permission and instance status verification.

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

dryRun Boolean

Whether to perform pre-check on this request, including permission and instance status verification.

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

dryRun boolean

Whether to perform pre-check on this request, including permission and instance status verification.

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

dry_run bool

Whether to perform pre-check on this request, including permission and instance status verification.

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

dryRun Boolean

Whether to perform pre-check on this request, including permission and instance status verification.

serviceType String

ServiceType

status String

The status of the resource

transitRouterAttachmentId String

TransitRouterAttachmentId

Import

Cen Child Instance Route Entry To Attachment can be imported using the id, e.g.

 $ pulumi import alicloud:cen/childInstanceRouteEntryToAttachment:ChildInstanceRouteEntryToAttachment example <cen_id>:<child_instance_route_table_id>:<transit_router_attachment_id>:<destination_cidr_block>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.