ibm.IsSubnetRoutingTableAttachment
Explore with Pulumi AI
Create, update, or delete a subnet routing table attachment resource. For more information, about subnet routing table attachment, see setting up routing tables.
Note:
VPC infrastructure services are a regional specific based endpoint, by default targets to us-south
. Please make sure to target right region in the provider block as shown in the provider.tf
file, if VPC service is created in region other than us-south
.
provider.tf
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
}
}
{}
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {});
const exampleIsVpcRoutingTable = new ibm.IsVpcRoutingTable("exampleIsVpcRoutingTable", {vpc: exampleIsVpc.isVpcId});
const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", {
vpc: exampleIsVpc.isVpcId,
zone: "eu-gb-1",
totalIpv4AddressCount: 16,
});
const exampleIsSubnetRoutingTableAttachment = new ibm.IsSubnetRoutingTableAttachment("exampleIsSubnetRoutingTableAttachment", {
subnet: exampleIsSubnet.isSubnetId,
routingTable: exampleIsVpcRoutingTable.routingTable,
});
import pulumi
import pulumi_ibm as ibm
example_is_vpc = ibm.IsVpc("exampleIsVpc")
example_is_vpc_routing_table = ibm.IsVpcRoutingTable("exampleIsVpcRoutingTable", vpc=example_is_vpc.is_vpc_id)
example_is_subnet = ibm.IsSubnet("exampleIsSubnet",
vpc=example_is_vpc.is_vpc_id,
zone="eu-gb-1",
total_ipv4_address_count=16)
example_is_subnet_routing_table_attachment = ibm.IsSubnetRoutingTableAttachment("exampleIsSubnetRoutingTableAttachment",
subnet=example_is_subnet.is_subnet_id,
routing_table=example_is_vpc_routing_table.routing_table)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil)
if err != nil {
return err
}
exampleIsVpcRoutingTable, err := ibm.NewIsVpcRoutingTable(ctx, "exampleIsVpcRoutingTable", &ibm.IsVpcRoutingTableArgs{
Vpc: exampleIsVpc.IsVpcId,
})
if err != nil {
return err
}
exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{
Vpc: exampleIsVpc.IsVpcId,
Zone: pulumi.String("eu-gb-1"),
TotalIpv4AddressCount: pulumi.Float64(16),
})
if err != nil {
return err
}
_, err = ibm.NewIsSubnetRoutingTableAttachment(ctx, "exampleIsSubnetRoutingTableAttachment", &ibm.IsSubnetRoutingTableAttachmentArgs{
Subnet: exampleIsSubnet.IsSubnetId,
RoutingTable: exampleIsVpcRoutingTable.RoutingTable,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var exampleIsVpc = new Ibm.IsVpc("exampleIsVpc");
var exampleIsVpcRoutingTable = new Ibm.IsVpcRoutingTable("exampleIsVpcRoutingTable", new()
{
Vpc = exampleIsVpc.IsVpcId,
});
var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new()
{
Vpc = exampleIsVpc.IsVpcId,
Zone = "eu-gb-1",
TotalIpv4AddressCount = 16,
});
var exampleIsSubnetRoutingTableAttachment = new Ibm.IsSubnetRoutingTableAttachment("exampleIsSubnetRoutingTableAttachment", new()
{
Subnet = exampleIsSubnet.IsSubnetId,
RoutingTable = exampleIsVpcRoutingTable.RoutingTable,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsVpc;
import com.pulumi.ibm.IsVpcRoutingTable;
import com.pulumi.ibm.IsVpcRoutingTableArgs;
import com.pulumi.ibm.IsSubnet;
import com.pulumi.ibm.IsSubnetArgs;
import com.pulumi.ibm.IsSubnetRoutingTableAttachment;
import com.pulumi.ibm.IsSubnetRoutingTableAttachmentArgs;
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 exampleIsVpc = new IsVpc("exampleIsVpc");
var exampleIsVpcRoutingTable = new IsVpcRoutingTable("exampleIsVpcRoutingTable", IsVpcRoutingTableArgs.builder()
.vpc(exampleIsVpc.isVpcId())
.build());
var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
.vpc(exampleIsVpc.isVpcId())
.zone("eu-gb-1")
.totalIpv4AddressCount(16)
.build());
var exampleIsSubnetRoutingTableAttachment = new IsSubnetRoutingTableAttachment("exampleIsSubnetRoutingTableAttachment", IsSubnetRoutingTableAttachmentArgs.builder()
.subnet(exampleIsSubnet.isSubnetId())
.routingTable(exampleIsVpcRoutingTable.routingTable())
.build());
}
}
resources:
exampleIsVpc:
type: ibm:IsVpc
exampleIsVpcRoutingTable:
type: ibm:IsVpcRoutingTable
properties:
vpc: ${exampleIsVpc.isVpcId}
exampleIsSubnet:
type: ibm:IsSubnet
properties:
vpc: ${exampleIsVpc.isVpcId}
zone: eu-gb-1
totalIpv4AddressCount: 16
exampleIsSubnetRoutingTableAttachment:
type: ibm:IsSubnetRoutingTableAttachment
properties:
subnet: ${exampleIsSubnet.isSubnetId}
routingTable: ${exampleIsVpcRoutingTable.routingTable}
Create IsSubnetRoutingTableAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsSubnetRoutingTableAttachment(name: string, args: IsSubnetRoutingTableAttachmentArgs, opts?: CustomResourceOptions);
@overload
def IsSubnetRoutingTableAttachment(resource_name: str,
args: IsSubnetRoutingTableAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsSubnetRoutingTableAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
subnet: Optional[str] = None,
is_subnet_routing_table_attachment_id: Optional[str] = None,
routing_table: Optional[str] = None,
routing_table_crn: Optional[str] = None,
timeouts: Optional[IsSubnetRoutingTableAttachmentTimeoutsArgs] = None)
func NewIsSubnetRoutingTableAttachment(ctx *Context, name string, args IsSubnetRoutingTableAttachmentArgs, opts ...ResourceOption) (*IsSubnetRoutingTableAttachment, error)
public IsSubnetRoutingTableAttachment(string name, IsSubnetRoutingTableAttachmentArgs args, CustomResourceOptions? opts = null)
public IsSubnetRoutingTableAttachment(String name, IsSubnetRoutingTableAttachmentArgs args)
public IsSubnetRoutingTableAttachment(String name, IsSubnetRoutingTableAttachmentArgs args, CustomResourceOptions options)
type: ibm:IsSubnetRoutingTableAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IsSubnetRoutingTableAttachmentArgs
- 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 IsSubnetRoutingTableAttachmentArgs
- 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 IsSubnetRoutingTableAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsSubnetRoutingTableAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsSubnetRoutingTableAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var isSubnetRoutingTableAttachmentResource = new Ibm.IsSubnetRoutingTableAttachment("isSubnetRoutingTableAttachmentResource", new()
{
Subnet = "string",
IsSubnetRoutingTableAttachmentId = "string",
RoutingTable = "string",
RoutingTableCrn = "string",
Timeouts = new Ibm.Inputs.IsSubnetRoutingTableAttachmentTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := ibm.NewIsSubnetRoutingTableAttachment(ctx, "isSubnetRoutingTableAttachmentResource", &ibm.IsSubnetRoutingTableAttachmentArgs{
Subnet: pulumi.String("string"),
IsSubnetRoutingTableAttachmentId: pulumi.String("string"),
RoutingTable: pulumi.String("string"),
RoutingTableCrn: pulumi.String("string"),
Timeouts: &ibm.IsSubnetRoutingTableAttachmentTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var isSubnetRoutingTableAttachmentResource = new IsSubnetRoutingTableAttachment("isSubnetRoutingTableAttachmentResource", IsSubnetRoutingTableAttachmentArgs.builder()
.subnet("string")
.isSubnetRoutingTableAttachmentId("string")
.routingTable("string")
.routingTableCrn("string")
.timeouts(IsSubnetRoutingTableAttachmentTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
is_subnet_routing_table_attachment_resource = ibm.IsSubnetRoutingTableAttachment("isSubnetRoutingTableAttachmentResource",
subnet="string",
is_subnet_routing_table_attachment_id="string",
routing_table="string",
routing_table_crn="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const isSubnetRoutingTableAttachmentResource = new ibm.IsSubnetRoutingTableAttachment("isSubnetRoutingTableAttachmentResource", {
subnet: "string",
isSubnetRoutingTableAttachmentId: "string",
routingTable: "string",
routingTableCrn: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: ibm:IsSubnetRoutingTableAttachment
properties:
isSubnetRoutingTableAttachmentId: string
routingTable: string
routingTableCrn: string
subnet: string
timeouts:
create: string
delete: string
update: string
IsSubnetRoutingTableAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IsSubnetRoutingTableAttachment resource accepts the following input properties:
- Subnet string
- The subnet identifier.
- Is
Subnet stringRouting Table Attachment Id - (String) The unique identifier for this subnet.
- Routing
Table string - The routing table identity.
- Routing
Table stringCrn The routing table crn associated with the subnet.
Note
routing_table
androuting_table_crn
are mutually exclusive.- Timeouts
Is
Subnet Routing Table Attachment Timeouts
- Subnet string
- The subnet identifier.
- Is
Subnet stringRouting Table Attachment Id - (String) The unique identifier for this subnet.
- Routing
Table string - The routing table identity.
- Routing
Table stringCrn The routing table crn associated with the subnet.
Note
routing_table
androuting_table_crn
are mutually exclusive.- Timeouts
Is
Subnet Routing Table Attachment Timeouts Args
- subnet String
- The subnet identifier.
- is
Subnet StringRouting Table Attachment Id - (String) The unique identifier for this subnet.
- routing
Table String - The routing table identity.
- routing
Table StringCrn The routing table crn associated with the subnet.
Note
routing_table
androuting_table_crn
are mutually exclusive.- timeouts
Is
Subnet Routing Table Attachment Timeouts
- subnet string
- The subnet identifier.
- is
Subnet stringRouting Table Attachment Id - (String) The unique identifier for this subnet.
- routing
Table string - The routing table identity.
- routing
Table stringCrn The routing table crn associated with the subnet.
Note
routing_table
androuting_table_crn
are mutually exclusive.- timeouts
Is
Subnet Routing Table Attachment Timeouts
- subnet str
- The subnet identifier.
- is_
subnet_ strrouting_ table_ attachment_ id - (String) The unique identifier for this subnet.
- routing_
table str - The routing table identity.
- routing_
table_ strcrn The routing table crn associated with the subnet.
Note
routing_table
androuting_table_crn
are mutually exclusive.- timeouts
Is
Subnet Routing Table Attachment Timeouts Args
- subnet String
- The subnet identifier.
- is
Subnet StringRouting Table Attachment Id - (String) The unique identifier for this subnet.
- routing
Table String - The routing table identity.
- routing
Table StringCrn The routing table crn associated with the subnet.
Note
routing_table
androuting_table_crn
are mutually exclusive.- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the IsSubnetRoutingTableAttachment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - (Boolean) Indicates whether this is the default routing table for this VPC.
- Lifecycle
State string - (String) The lifecycle state of the routing table.
- Name string
- (String) The user-defined name for this subnet.
- Resource
Groups List<IsSubnet Routing Table Attachment Resource Group> - The resource group for this volume.
- Resource
Type string - (String) The resource type.
- Route
Direct boolLink Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- Route
Transit boolGateway Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
- Route
Vpc boolZone Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- Routes
List<Is
Subnet Routing Table Attachment Route> - (List) The routes for this routing table.
- Subnets
List<Is
Subnet Routing Table Attachment Subnet> - (List) The subnets to which this routing table is attached.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - (Boolean) Indicates whether this is the default routing table for this VPC.
- Lifecycle
State string - (String) The lifecycle state of the routing table.
- Name string
- (String) The user-defined name for this subnet.
- Resource
Groups []IsSubnet Routing Table Attachment Resource Group - The resource group for this volume.
- Resource
Type string - (String) The resource type.
- Route
Direct boolLink Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- Route
Transit boolGateway Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
- Route
Vpc boolZone Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- Routes
[]Is
Subnet Routing Table Attachment Route - (List) The routes for this routing table.
- Subnets
[]Is
Subnet Routing Table Attachment Subnet - (List) The subnets to which this routing table is attached.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - (Boolean) Indicates whether this is the default routing table for this VPC.
- lifecycle
State String - (String) The lifecycle state of the routing table.
- name String
- (String) The user-defined name for this subnet.
- resource
Groups List<IsSubnet Routing Table Attachment Resource Group> - The resource group for this volume.
- resource
Type String - (String) The resource type.
- route
Direct BooleanLink Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- route
Transit BooleanGateway Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
- route
Vpc BooleanZone Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- routes
List<Is
Subnet Routing Table Attachment Route> - (List) The routes for this routing table.
- subnets
List<Is
Subnet Routing Table Attachment Subnet> - (List) The subnets to which this routing table is attached.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Default boolean - (Boolean) Indicates whether this is the default routing table for this VPC.
- lifecycle
State string - (String) The lifecycle state of the routing table.
- name string
- (String) The user-defined name for this subnet.
- resource
Groups IsSubnet Routing Table Attachment Resource Group[] - The resource group for this volume.
- resource
Type string - (String) The resource type.
- route
Direct booleanLink Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- route
Transit booleanGateway Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
- route
Vpc booleanZone Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- routes
Is
Subnet Routing Table Attachment Route[] - (List) The routes for this routing table.
- subnets
Is
Subnet Routing Table Attachment Subnet[] - (List) The subnets to which this routing table is attached.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
default bool - (Boolean) Indicates whether this is the default routing table for this VPC.
- lifecycle_
state str - (String) The lifecycle state of the routing table.
- name str
- (String) The user-defined name for this subnet.
- resource_
groups Sequence[IsSubnet Routing Table Attachment Resource Group] - The resource group for this volume.
- resource_
type str - (String) The resource type.
- route_
direct_ boollink_ ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- route_
transit_ boolgateway_ ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
- route_
vpc_ boolzone_ ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- routes
Sequence[Is
Subnet Routing Table Attachment Route] - (List) The routes for this routing table.
- subnets
Sequence[Is
Subnet Routing Table Attachment Subnet] - (List) The subnets to which this routing table is attached.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - (Boolean) Indicates whether this is the default routing table for this VPC.
- lifecycle
State String - (String) The lifecycle state of the routing table.
- name String
- (String) The user-defined name for this subnet.
- resource
Groups List<Property Map> - The resource group for this volume.
- resource
Type String - (String) The resource type.
- route
Direct BooleanLink Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- route
Transit BooleanGateway Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
- route
Vpc BooleanZone Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- routes List<Property Map>
- (List) The routes for this routing table.
- subnets List<Property Map>
- (List) The subnets to which this routing table is attached.
Look up Existing IsSubnetRoutingTableAttachment Resource
Get an existing IsSubnetRoutingTableAttachment 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?: IsSubnetRoutingTableAttachmentState, opts?: CustomResourceOptions): IsSubnetRoutingTableAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
is_default: Optional[bool] = None,
is_subnet_routing_table_attachment_id: Optional[str] = None,
lifecycle_state: Optional[str] = None,
name: Optional[str] = None,
resource_groups: Optional[Sequence[IsSubnetRoutingTableAttachmentResourceGroupArgs]] = None,
resource_type: Optional[str] = None,
route_direct_link_ingress: Optional[bool] = None,
route_transit_gateway_ingress: Optional[bool] = None,
route_vpc_zone_ingress: Optional[bool] = None,
routes: Optional[Sequence[IsSubnetRoutingTableAttachmentRouteArgs]] = None,
routing_table: Optional[str] = None,
routing_table_crn: Optional[str] = None,
subnet: Optional[str] = None,
subnets: Optional[Sequence[IsSubnetRoutingTableAttachmentSubnetArgs]] = None,
timeouts: Optional[IsSubnetRoutingTableAttachmentTimeoutsArgs] = None) -> IsSubnetRoutingTableAttachment
func GetIsSubnetRoutingTableAttachment(ctx *Context, name string, id IDInput, state *IsSubnetRoutingTableAttachmentState, opts ...ResourceOption) (*IsSubnetRoutingTableAttachment, error)
public static IsSubnetRoutingTableAttachment Get(string name, Input<string> id, IsSubnetRoutingTableAttachmentState? state, CustomResourceOptions? opts = null)
public static IsSubnetRoutingTableAttachment get(String name, Output<String> id, IsSubnetRoutingTableAttachmentState state, CustomResourceOptions options)
resources: _: type: ibm:IsSubnetRoutingTableAttachment get: id: ${id}
- 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.
- Is
Default bool - (Boolean) Indicates whether this is the default routing table for this VPC.
- Is
Subnet stringRouting Table Attachment Id - (String) The unique identifier for this subnet.
- Lifecycle
State string - (String) The lifecycle state of the routing table.
- Name string
- (String) The user-defined name for this subnet.
- Resource
Groups List<IsSubnet Routing Table Attachment Resource Group> - The resource group for this volume.
- Resource
Type string - (String) The resource type.
- Route
Direct boolLink Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- Route
Transit boolGateway Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
- Route
Vpc boolZone Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- Routes
List<Is
Subnet Routing Table Attachment Route> - (List) The routes for this routing table.
- Routing
Table string - The routing table identity.
- Routing
Table stringCrn The routing table crn associated with the subnet.
Note
routing_table
androuting_table_crn
are mutually exclusive.- Subnet string
- The subnet identifier.
- Subnets
List<Is
Subnet Routing Table Attachment Subnet> - (List) The subnets to which this routing table is attached.
- Timeouts
Is
Subnet Routing Table Attachment Timeouts
- Is
Default bool - (Boolean) Indicates whether this is the default routing table for this VPC.
- Is
Subnet stringRouting Table Attachment Id - (String) The unique identifier for this subnet.
- Lifecycle
State string - (String) The lifecycle state of the routing table.
- Name string
- (String) The user-defined name for this subnet.
- Resource
Groups []IsSubnet Routing Table Attachment Resource Group Args - The resource group for this volume.
- Resource
Type string - (String) The resource type.
- Route
Direct boolLink Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- Route
Transit boolGateway Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
- Route
Vpc boolZone Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- Routes
[]Is
Subnet Routing Table Attachment Route Args - (List) The routes for this routing table.
- Routing
Table string - The routing table identity.
- Routing
Table stringCrn The routing table crn associated with the subnet.
Note
routing_table
androuting_table_crn
are mutually exclusive.- Subnet string
- The subnet identifier.
- Subnets
[]Is
Subnet Routing Table Attachment Subnet Args - (List) The subnets to which this routing table is attached.
- Timeouts
Is
Subnet Routing Table Attachment Timeouts Args
- is
Default Boolean - (Boolean) Indicates whether this is the default routing table for this VPC.
- is
Subnet StringRouting Table Attachment Id - (String) The unique identifier for this subnet.
- lifecycle
State String - (String) The lifecycle state of the routing table.
- name String
- (String) The user-defined name for this subnet.
- resource
Groups List<IsSubnet Routing Table Attachment Resource Group> - The resource group for this volume.
- resource
Type String - (String) The resource type.
- route
Direct BooleanLink Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- route
Transit BooleanGateway Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
- route
Vpc BooleanZone Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- routes
List<Is
Subnet Routing Table Attachment Route> - (List) The routes for this routing table.
- routing
Table String - The routing table identity.
- routing
Table StringCrn The routing table crn associated with the subnet.
Note
routing_table
androuting_table_crn
are mutually exclusive.- subnet String
- The subnet identifier.
- subnets
List<Is
Subnet Routing Table Attachment Subnet> - (List) The subnets to which this routing table is attached.
- timeouts
Is
Subnet Routing Table Attachment Timeouts
- is
Default boolean - (Boolean) Indicates whether this is the default routing table for this VPC.
- is
Subnet stringRouting Table Attachment Id - (String) The unique identifier for this subnet.
- lifecycle
State string - (String) The lifecycle state of the routing table.
- name string
- (String) The user-defined name for this subnet.
- resource
Groups IsSubnet Routing Table Attachment Resource Group[] - The resource group for this volume.
- resource
Type string - (String) The resource type.
- route
Direct booleanLink Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- route
Transit booleanGateway Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
- route
Vpc booleanZone Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- routes
Is
Subnet Routing Table Attachment Route[] - (List) The routes for this routing table.
- routing
Table string - The routing table identity.
- routing
Table stringCrn The routing table crn associated with the subnet.
Note
routing_table
androuting_table_crn
are mutually exclusive.- subnet string
- The subnet identifier.
- subnets
Is
Subnet Routing Table Attachment Subnet[] - (List) The subnets to which this routing table is attached.
- timeouts
Is
Subnet Routing Table Attachment Timeouts
- is_
default bool - (Boolean) Indicates whether this is the default routing table for this VPC.
- is_
subnet_ strrouting_ table_ attachment_ id - (String) The unique identifier for this subnet.
- lifecycle_
state str - (String) The lifecycle state of the routing table.
- name str
- (String) The user-defined name for this subnet.
- resource_
groups Sequence[IsSubnet Routing Table Attachment Resource Group Args] - The resource group for this volume.
- resource_
type str - (String) The resource type.
- route_
direct_ boollink_ ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- route_
transit_ boolgateway_ ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
- route_
vpc_ boolzone_ ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- routes
Sequence[Is
Subnet Routing Table Attachment Route Args] - (List) The routes for this routing table.
- routing_
table str - The routing table identity.
- routing_
table_ strcrn The routing table crn associated with the subnet.
Note
routing_table
androuting_table_crn
are mutually exclusive.- subnet str
- The subnet identifier.
- subnets
Sequence[Is
Subnet Routing Table Attachment Subnet Args] - (List) The subnets to which this routing table is attached.
- timeouts
Is
Subnet Routing Table Attachment Timeouts Args
- is
Default Boolean - (Boolean) Indicates whether this is the default routing table for this VPC.
- is
Subnet StringRouting Table Attachment Id - (String) The unique identifier for this subnet.
- lifecycle
State String - (String) The lifecycle state of the routing table.
- name String
- (String) The user-defined name for this subnet.
- resource
Groups List<Property Map> - The resource group for this volume.
- resource
Type String - (String) The resource type.
- route
Direct BooleanLink Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from Direct Link to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- route
Transit BooleanGateway Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from from Transit Gateway to this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped.
- route
Vpc BooleanZone Ingress - (Boolean) Indicates whether this routing table is used to route traffic that originates from subnets in other zones in this VPC. Incoming traffic will be routed according to the routing table with one exception: routes with an action of deliver are treated as drop unless the next_hop is an IP address within the VPC's address prefix ranges. Therefore, if an incoming packet matches a route with a next_hop of an internet-bound IP address or a VPN gateway connection, the packet will be dropped..
- routes List<Property Map>
- (List) The routes for this routing table.
- routing
Table String - The routing table identity.
- routing
Table StringCrn The routing table crn associated with the subnet.
Note
routing_table
androuting_table_crn
are mutually exclusive.- subnet String
- The subnet identifier.
- subnets List<Property Map>
- (List) The subnets to which this routing table is attached.
- timeouts Property Map
Supporting Types
IsSubnetRoutingTableAttachmentResourceGroup, IsSubnetRoutingTableAttachmentResourceGroupArgs
IsSubnetRoutingTableAttachmentRoute, IsSubnetRoutingTableAttachmentRouteArgs
IsSubnetRoutingTableAttachmentSubnet, IsSubnetRoutingTableAttachmentSubnetArgs
IsSubnetRoutingTableAttachmentTimeouts, IsSubnetRoutingTableAttachmentTimeoutsArgs
Import
The ibm_is_subnet_routing_table_attachment
resource can be imported by using the subnet ID.
Syntax
$ pulumi import ibm:index/isSubnetRoutingTableAttachment:IsSubnetRoutingTableAttachment example <subnet_ID>
Example
$ pulumi import ibm:index/isSubnetRoutingTableAttachment:IsSubnetRoutingTableAttachment example d7bec597-4726-451f-8a63-1111e6f19c32c
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.