Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

DrgRouteTableRouteRule

This resource provides the Drg Route Table Route Rule resource in Oracle Cloud Infrastructure Core service.

Adds one static route rule to the specified DRG route table.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDrgRouteTableRouteRule = new Oci.Core.DrgRouteTableRouteRule("testDrgRouteTableRouteRule", new()
    {
        DrgRouteTableId = oci_core_drg_route_table.Test_drg_route_table.Id,
        Destination = @var.Drg_route_table_route_rule_route_rules_destination,
        DestinationType = @var.Drg_route_table_route_rule_route_rules_destination_type,
        NextHopDrgAttachmentId = oci_core_drg_attachment.Test_drg_attachment.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Core.NewDrgRouteTableRouteRule(ctx, "testDrgRouteTableRouteRule", &Core.DrgRouteTableRouteRuleArgs{
			DrgRouteTableId:        pulumi.Any(oci_core_drg_route_table.Test_drg_route_table.Id),
			Destination:            pulumi.Any(_var.Drg_route_table_route_rule_route_rules_destination),
			DestinationType:        pulumi.Any(_var.Drg_route_table_route_rule_route_rules_destination_type),
			NextHopDrgAttachmentId: pulumi.Any(oci_core_drg_attachment.Test_drg_attachment.Id),
		})
		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.oci.Core.DrgRouteTableRouteRule;
import com.pulumi.oci.Core.DrgRouteTableRouteRuleArgs;
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 testDrgRouteTableRouteRule = new DrgRouteTableRouteRule("testDrgRouteTableRouteRule", DrgRouteTableRouteRuleArgs.builder()        
            .drgRouteTableId(oci_core_drg_route_table.test_drg_route_table().id())
            .destination(var_.drg_route_table_route_rule_route_rules_destination())
            .destinationType(var_.drg_route_table_route_rule_route_rules_destination_type())
            .nextHopDrgAttachmentId(oci_core_drg_attachment.test_drg_attachment().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_drg_route_table_route_rule = oci.core.DrgRouteTableRouteRule("testDrgRouteTableRouteRule",
    drg_route_table_id=oci_core_drg_route_table["test_drg_route_table"]["id"],
    destination=var["drg_route_table_route_rule_route_rules_destination"],
    destination_type=var["drg_route_table_route_rule_route_rules_destination_type"],
    next_hop_drg_attachment_id=oci_core_drg_attachment["test_drg_attachment"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDrgRouteTableRouteRule = new oci.core.DrgRouteTableRouteRule("testDrgRouteTableRouteRule", {
    drgRouteTableId: oci_core_drg_route_table.test_drg_route_table.id,
    destination: _var.drg_route_table_route_rule_route_rules_destination,
    destinationType: _var.drg_route_table_route_rule_route_rules_destination_type,
    nextHopDrgAttachmentId: oci_core_drg_attachment.test_drg_attachment.id,
});
resources:
  testDrgRouteTableRouteRule:
    type: oci:Core:DrgRouteTableRouteRule
    properties:
      #Required
      drgRouteTableId: ${oci_core_drg_route_table.test_drg_route_table.id}
      destination: ${var.drg_route_table_route_rule_route_rules_destination}
      destinationType: ${var.drg_route_table_route_rule_route_rules_destination_type}
      nextHopDrgAttachmentId: ${oci_core_drg_attachment.test_drg_attachment.id}

Create a DrgRouteTableRouteRule Resource

new DrgRouteTableRouteRule(name: string, args: DrgRouteTableRouteRuleArgs, opts?: CustomResourceOptions);
@overload
def DrgRouteTableRouteRule(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           destination: Optional[str] = None,
                           destination_type: Optional[str] = None,
                           drg_route_table_id: Optional[str] = None,
                           next_hop_drg_attachment_id: Optional[str] = None)
@overload
def DrgRouteTableRouteRule(resource_name: str,
                           args: DrgRouteTableRouteRuleArgs,
                           opts: Optional[ResourceOptions] = None)
func NewDrgRouteTableRouteRule(ctx *Context, name string, args DrgRouteTableRouteRuleArgs, opts ...ResourceOption) (*DrgRouteTableRouteRule, error)
public DrgRouteTableRouteRule(string name, DrgRouteTableRouteRuleArgs args, CustomResourceOptions? opts = null)
public DrgRouteTableRouteRule(String name, DrgRouteTableRouteRuleArgs args)
public DrgRouteTableRouteRule(String name, DrgRouteTableRouteRuleArgs args, CustomResourceOptions options)
type: oci:Core:DrgRouteTableRouteRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

DrgRouteTableRouteRule 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 DrgRouteTableRouteRule resource accepts the following input properties:

Destination string

(Updatable) This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.

DestinationType string

(Updatable) Type of destination for the rule. Required if direction = EGRESS. Allowed values:

  • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
DrgRouteTableId string

The OCID of the DRG route table.

NextHopDrgAttachmentId string

(Updatable) The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.

Destination string

(Updatable) This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.

DestinationType string

(Updatable) Type of destination for the rule. Required if direction = EGRESS. Allowed values:

  • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
DrgRouteTableId string

The OCID of the DRG route table.

NextHopDrgAttachmentId string

(Updatable) The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.

destination String

(Updatable) This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.

destinationType String

(Updatable) Type of destination for the rule. Required if direction = EGRESS. Allowed values:

  • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
drgRouteTableId String

The OCID of the DRG route table.

nextHopDrgAttachmentId String

(Updatable) The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.

destination string

(Updatable) This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.

destinationType string

(Updatable) Type of destination for the rule. Required if direction = EGRESS. Allowed values:

  • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
drgRouteTableId string

The OCID of the DRG route table.

nextHopDrgAttachmentId string

(Updatable) The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.

destination str

(Updatable) This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.

destination_type str

(Updatable) Type of destination for the rule. Required if direction = EGRESS. Allowed values:

  • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
drg_route_table_id str

The OCID of the DRG route table.

next_hop_drg_attachment_id str

(Updatable) The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.

destination String

(Updatable) This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.

destinationType String

(Updatable) Type of destination for the rule. Required if direction = EGRESS. Allowed values:

  • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
drgRouteTableId String

The OCID of the DRG route table.

nextHopDrgAttachmentId String

(Updatable) The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.

Outputs

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

Attributes Dictionary<string, object>

Additional properties for the route, computed by the service.

Id string

The provider-assigned unique ID for this managed resource.

IsBlackhole bool

Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.

IsConflict bool

Indicates that the route was not imported due to a conflict between route rules.

RouteProvenance string

The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

RouteType string

You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.

Attributes map[string]interface{}

Additional properties for the route, computed by the service.

Id string

The provider-assigned unique ID for this managed resource.

IsBlackhole bool

Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.

IsConflict bool

Indicates that the route was not imported due to a conflict between route rules.

RouteProvenance string

The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

RouteType string

You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.

attributes Map<String,Object>

Additional properties for the route, computed by the service.

id String

The provider-assigned unique ID for this managed resource.

isBlackhole Boolean

Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.

isConflict Boolean

Indicates that the route was not imported due to a conflict between route rules.

routeProvenance String

The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

routeType String

You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.

attributes {[key: string]: any}

Additional properties for the route, computed by the service.

id string

The provider-assigned unique ID for this managed resource.

isBlackhole boolean

Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.

isConflict boolean

Indicates that the route was not imported due to a conflict between route rules.

routeProvenance string

The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

routeType string

You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.

attributes Mapping[str, Any]

Additional properties for the route, computed by the service.

id str

The provider-assigned unique ID for this managed resource.

is_blackhole bool

Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.

is_conflict bool

Indicates that the route was not imported due to a conflict between route rules.

route_provenance str

The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

route_type str

You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.

attributes Map<Any>

Additional properties for the route, computed by the service.

id String

The provider-assigned unique ID for this managed resource.

isBlackhole Boolean

Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.

isConflict Boolean

Indicates that the route was not imported due to a conflict between route rules.

routeProvenance String

The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

routeType String

You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.

Look up an Existing DrgRouteTableRouteRule Resource

Get an existing DrgRouteTableRouteRule 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?: DrgRouteTableRouteRuleState, opts?: CustomResourceOptions): DrgRouteTableRouteRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        attributes: Optional[Mapping[str, Any]] = None,
        destination: Optional[str] = None,
        destination_type: Optional[str] = None,
        drg_route_table_id: Optional[str] = None,
        is_blackhole: Optional[bool] = None,
        is_conflict: Optional[bool] = None,
        next_hop_drg_attachment_id: Optional[str] = None,
        route_provenance: Optional[str] = None,
        route_type: Optional[str] = None) -> DrgRouteTableRouteRule
func GetDrgRouteTableRouteRule(ctx *Context, name string, id IDInput, state *DrgRouteTableRouteRuleState, opts ...ResourceOption) (*DrgRouteTableRouteRule, error)
public static DrgRouteTableRouteRule Get(string name, Input<string> id, DrgRouteTableRouteRuleState? state, CustomResourceOptions? opts = null)
public static DrgRouteTableRouteRule get(String name, Output<String> id, DrgRouteTableRouteRuleState 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:
Attributes Dictionary<string, object>

Additional properties for the route, computed by the service.

Destination string

(Updatable) This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.

DestinationType string

(Updatable) Type of destination for the rule. Required if direction = EGRESS. Allowed values:

  • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
DrgRouteTableId string

The OCID of the DRG route table.

IsBlackhole bool

Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.

IsConflict bool

Indicates that the route was not imported due to a conflict between route rules.

NextHopDrgAttachmentId string

(Updatable) The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.

RouteProvenance string

The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

RouteType string

You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.

Attributes map[string]interface{}

Additional properties for the route, computed by the service.

Destination string

(Updatable) This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.

DestinationType string

(Updatable) Type of destination for the rule. Required if direction = EGRESS. Allowed values:

  • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
DrgRouteTableId string

The OCID of the DRG route table.

IsBlackhole bool

Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.

IsConflict bool

Indicates that the route was not imported due to a conflict between route rules.

NextHopDrgAttachmentId string

(Updatable) The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.

RouteProvenance string

The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

RouteType string

You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.

attributes Map<String,Object>

Additional properties for the route, computed by the service.

destination String

(Updatable) This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.

destinationType String

(Updatable) Type of destination for the rule. Required if direction = EGRESS. Allowed values:

  • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
drgRouteTableId String

The OCID of the DRG route table.

isBlackhole Boolean

Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.

isConflict Boolean

Indicates that the route was not imported due to a conflict between route rules.

nextHopDrgAttachmentId String

(Updatable) The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.

routeProvenance String

The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

routeType String

You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.

attributes {[key: string]: any}

Additional properties for the route, computed by the service.

destination string

(Updatable) This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.

destinationType string

(Updatable) Type of destination for the rule. Required if direction = EGRESS. Allowed values:

  • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
drgRouteTableId string

The OCID of the DRG route table.

isBlackhole boolean

Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.

isConflict boolean

Indicates that the route was not imported due to a conflict between route rules.

nextHopDrgAttachmentId string

(Updatable) The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.

routeProvenance string

The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

routeType string

You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.

attributes Mapping[str, Any]

Additional properties for the route, computed by the service.

destination str

(Updatable) This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.

destination_type str

(Updatable) Type of destination for the rule. Required if direction = EGRESS. Allowed values:

  • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
drg_route_table_id str

The OCID of the DRG route table.

is_blackhole bool

Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.

is_conflict bool

Indicates that the route was not imported due to a conflict between route rules.

next_hop_drg_attachment_id str

(Updatable) The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.

route_provenance str

The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

route_type str

You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.

attributes Map<Any>

Additional properties for the route, computed by the service.

destination String

(Updatable) This is the range of IP addresses used for matching when routing traffic. Only CIDR_BLOCK values are allowed.

destinationType String

(Updatable) Type of destination for the rule. Required if direction = EGRESS. Allowed values:

  • CIDR_BLOCK: If the rule's destination is an IP address range in CIDR notation.
drgRouteTableId String

The OCID of the DRG route table.

isBlackhole Boolean

Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.

isConflict Boolean

Indicates that the route was not imported due to a conflict between route rules.

nextHopDrgAttachmentId String

(Updatable) The OCID of the next hop DRG attachment. The next hop DRG attachment is responsible for reaching the network destination.

routeProvenance String

The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains IPSEC_TUNNEL, because that is the earliest origin.

routeType String

You can specify static routes for the DRG route table using the API. The DRG learns dynamic routes from the DRG attachments using various routing protocols.

Import

DrgRouteTableRouteRule can be imported using the id, e.g.

 $ pulumi import oci:Core/drgRouteTableRouteRule:DrgRouteTableRouteRule test_drg_route_table_route_rule "drgRouteTables/{drgRouteTableId}/routeRules/{id}"

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.