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:
- Cen
Id string The ID of the CEN instance.
- Child
Instance stringRoute Table Id The first ID of the resource
- Destination
Cidr stringBlock DestinationCidrBlock
- Transit
Router stringAttachment Id TransitRouterAttachmentId
- Dry
Run bool Whether to perform pre-check on this request, including permission and instance status verification.
- Cen
Id string The ID of the CEN instance.
- Child
Instance stringRoute Table Id The first ID of the resource
- Destination
Cidr stringBlock DestinationCidrBlock
- Transit
Router stringAttachment Id TransitRouterAttachmentId
- Dry
Run bool Whether to perform pre-check on this request, including permission and instance status verification.
- cen
Id String The ID of the CEN instance.
- child
Instance StringRoute Table Id The first ID of the resource
- destination
Cidr StringBlock DestinationCidrBlock
- transit
Router StringAttachment Id TransitRouterAttachmentId
- dry
Run Boolean Whether to perform pre-check on this request, including permission and instance status verification.
- cen
Id string The ID of the CEN instance.
- child
Instance stringRoute Table Id The first ID of the resource
- destination
Cidr stringBlock DestinationCidrBlock
- transit
Router stringAttachment Id TransitRouterAttachmentId
- dry
Run 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_ strroute_ table_ id The first ID of the resource
- destination_
cidr_ strblock DestinationCidrBlock
- transit_
router_ strattachment_ id TransitRouterAttachmentId
- dry_
run bool Whether to perform pre-check on this request, including permission and instance status verification.
- cen
Id String The ID of the CEN instance.
- child
Instance StringRoute Table Id The first ID of the resource
- destination
Cidr StringBlock DestinationCidrBlock
- transit
Router StringAttachment Id TransitRouterAttachmentId
- dry
Run 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.
- Service
Type string ServiceType
- Status string
The status of the resource
- Id string
The provider-assigned unique ID for this managed resource.
- Service
Type string ServiceType
- Status string
The status of the resource
- id String
The provider-assigned unique ID for this managed resource.
- service
Type String ServiceType
- status String
The status of the resource
- id string
The provider-assigned unique ID for this managed resource.
- service
Type 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.
- service
Type 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.
- Cen
Id string The ID of the CEN instance.
- Child
Instance stringRoute Table Id The first ID of the resource
- Destination
Cidr stringBlock DestinationCidrBlock
- Dry
Run bool Whether to perform pre-check on this request, including permission and instance status verification.
- 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
- Dry
Run bool Whether to perform pre-check on this request, including permission and instance status verification.
- 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
- dry
Run Boolean Whether to perform pre-check on this request, including permission and instance status verification.
- 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
- dry
Run boolean Whether to perform pre-check on this request, including permission and instance status verification.
- 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
- 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_ 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
- dry
Run Boolean Whether to perform pre-check on this request, including permission and instance status verification.
- service
Type String ServiceType
- status String
The status of the resource
- transit
Router StringAttachment Id 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.