Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

DrgAttachment

This resource provides the Drg Attachment resource in Oracle Cloud Infrastructure Core service.

Attaches the specified DRG to the specified network resource. A VCN can be attached to only one DRG at a time, but a DRG can be attached to more than one VCN. The response includes a DrgAttachment object with its own OCID. For more information about DRGs, see Dynamic Routing Gateways (DRGs).

You may optionally specify a display name for the attachment, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.

For the purposes of access control, the DRG attachment is automatically placed into the currently selected compartment. For more information about compartments and access control, see Overview of the IAM Service.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDrgAttachment = new Oci.Core.DrgAttachment("testDrgAttachment", new Oci.Core.DrgAttachmentArgs
        {
            DrgId = oci_core_drg.Test_drg.Id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = @var.Drg_attachment_display_name,
            DrgRouteTableId = oci_core_drg_route_table.Test_drg_route_table.Id,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            NetworkDetails = new Oci.Core.Inputs.DrgAttachmentNetworkDetailsArgs
            {
                Id = oci_core_vcn.Test_vcn.Id,
                Type = @var.Drg_attachment_network_details_type,
                RouteTableId = oci_core_route_table.Test_route_table.Id,
                VcnRouteType = @var.Drg_attachment_network_details_vcn_route_type,
            },
        });
    }

}
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.NewDrgAttachment(ctx, "testDrgAttachment", &Core.DrgAttachmentArgs{
			DrgId: pulumi.Any(oci_core_drg.Test_drg.Id),
			DefinedTags: pulumi.AnyMap{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			DisplayName:     pulumi.Any(_var.Drg_attachment_display_name),
			DrgRouteTableId: pulumi.Any(oci_core_drg_route_table.Test_drg_route_table.Id),
			FreeformTags: pulumi.AnyMap{
				"Department": pulumi.Any("Finance"),
			},
			NetworkDetails: &core.DrgAttachmentNetworkDetailsArgs{
				Id:           pulumi.Any(oci_core_vcn.Test_vcn.Id),
				Type:         pulumi.Any(_var.Drg_attachment_network_details_type),
				RouteTableId: pulumi.Any(oci_core_route_table.Test_route_table.Id),
				VcnRouteType: pulumi.Any(_var.Drg_attachment_network_details_vcn_route_type),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_drg_attachment = oci.core.DrgAttachment("testDrgAttachment",
    drg_id=oci_core_drg["test_drg"]["id"],
    defined_tags={
        "Operations.CostCenter": "42",
    },
    display_name=var["drg_attachment_display_name"],
    drg_route_table_id=oci_core_drg_route_table["test_drg_route_table"]["id"],
    freeform_tags={
        "Department": "Finance",
    },
    network_details=oci.core.DrgAttachmentNetworkDetailsArgs(
        id=oci_core_vcn["test_vcn"]["id"],
        type=var["drg_attachment_network_details_type"],
        route_table_id=oci_core_route_table["test_route_table"]["id"],
        vcn_route_type=var["drg_attachment_network_details_vcn_route_type"],
    ))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDrgAttachment = new oci.core.DrgAttachment("testDrgAttachment", {
    drgId: oci_core_drg.test_drg.id,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    displayName: _var.drg_attachment_display_name,
    drgRouteTableId: oci_core_drg_route_table.test_drg_route_table.id,
    freeformTags: {
        Department: "Finance",
    },
    networkDetails: {
        id: oci_core_vcn.test_vcn.id,
        type: _var.drg_attachment_network_details_type,
        routeTableId: oci_core_route_table.test_route_table.id,
        vcnRouteType: _var.drg_attachment_network_details_vcn_route_type,
    },
});

Coming soon!

Create a DrgAttachment Resource

new DrgAttachment(name: string, args: DrgAttachmentArgs, opts?: CustomResourceOptions);
@overload
def DrgAttachment(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  defined_tags: Optional[Mapping[str, Any]] = None,
                  display_name: Optional[str] = None,
                  drg_id: Optional[str] = None,
                  drg_route_table_id: Optional[str] = None,
                  export_drg_route_distribution_id: Optional[str] = None,
                  freeform_tags: Optional[Mapping[str, Any]] = None,
                  network_details: Optional[_core.DrgAttachmentNetworkDetailsArgs] = None,
                  remove_export_drg_route_distribution_trigger: Optional[bool] = None,
                  route_table_id: Optional[str] = None,
                  vcn_id: Optional[str] = None)
@overload
def DrgAttachment(resource_name: str,
                  args: DrgAttachmentArgs,
                  opts: Optional[ResourceOptions] = None)
func NewDrgAttachment(ctx *Context, name string, args DrgAttachmentArgs, opts ...ResourceOption) (*DrgAttachment, error)
public DrgAttachment(string name, DrgAttachmentArgs args, CustomResourceOptions? opts = null)
public DrgAttachment(String name, DrgAttachmentArgs args)
public DrgAttachment(String name, DrgAttachmentArgs args, CustomResourceOptions options)
type: oci:Core:DrgAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

DrgId string

The OCID of the DRG.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

DrgRouteTableId string

(Updatable) The OCID of the DRG route table that is assigned to this attachment.

ExportDrgRouteDistributionId string

(Updatable) The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.

FreeformTags Dictionary<string, object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

NetworkDetails DrgAttachmentNetworkDetailsArgs

(Updatable)

RemoveExportDrgRouteDistributionTrigger bool

(Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.

RouteTableId string

(Updatable) The OCID of the route table used by the DRG attachment.

VcnId string

(Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

DrgId string

The OCID of the DRG.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

DrgRouteTableId string

(Updatable) The OCID of the DRG route table that is assigned to this attachment.

ExportDrgRouteDistributionId string

(Updatable) The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.

FreeformTags map[string]interface{}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

NetworkDetails DrgAttachmentNetworkDetailsArgs

(Updatable)

RemoveExportDrgRouteDistributionTrigger bool

(Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.

RouteTableId string

(Updatable) The OCID of the route table used by the DRG attachment.

VcnId string

(Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

drgId String

The OCID of the DRG.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

drgRouteTableId String

(Updatable) The OCID of the DRG route table that is assigned to this attachment.

exportDrgRouteDistributionId String

(Updatable) The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.

freeformTags Map<String,Object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

networkDetails DrgAttachmentNetworkDetailsArgs

(Updatable)

removeExportDrgRouteDistributionTrigger Boolean

(Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.

routeTableId String

(Updatable) The OCID of the route table used by the DRG attachment.

vcnId String

(Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

drgId string

The OCID of the DRG.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName string

(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

drgRouteTableId string

(Updatable) The OCID of the DRG route table that is assigned to this attachment.

exportDrgRouteDistributionId string

(Updatable) The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.

freeformTags {[key: string]: any}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

networkDetails DrgAttachmentNetworkDetailsArgs

(Updatable)

removeExportDrgRouteDistributionTrigger boolean

(Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.

routeTableId string

(Updatable) The OCID of the route table used by the DRG attachment.

vcnId string

(Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

drg_id str

The OCID of the DRG.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

display_name str

(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

drg_route_table_id str

(Updatable) The OCID of the DRG route table that is assigned to this attachment.

export_drg_route_distribution_id str

(Updatable) The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.

freeform_tags Mapping[str, Any]

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

network_details DrgAttachmentNetworkDetailsArgs

(Updatable)

remove_export_drg_route_distribution_trigger bool

(Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.

route_table_id str

(Updatable) The OCID of the route table used by the DRG attachment.

vcn_id str

(Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

drgId String

The OCID of the DRG.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

drgRouteTableId String

(Updatable) The OCID of the DRG route table that is assigned to this attachment.

exportDrgRouteDistributionId String

(Updatable) The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.

freeformTags Map<Any>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

networkDetails Property Map

(Updatable)

removeExportDrgRouteDistributionTrigger Boolean

(Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.

routeTableId String

(Updatable) The OCID of the route table used by the DRG attachment.

vcnId String

(Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

Outputs

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

CompartmentId string

The OCID of the compartment containing the DRG attachment.

Id string

The provider-assigned unique ID for this managed resource.

IsCrossTenancy bool

Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false

State string

The DRG attachment's current state.

TimeCreated string

The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

CompartmentId string

The OCID of the compartment containing the DRG attachment.

Id string

The provider-assigned unique ID for this managed resource.

IsCrossTenancy bool

Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false

State string

The DRG attachment's current state.

TimeCreated string

The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

compartmentId String

The OCID of the compartment containing the DRG attachment.

id String

The provider-assigned unique ID for this managed resource.

isCrossTenancy Boolean

Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false

state String

The DRG attachment's current state.

timeCreated String

The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

compartmentId string

The OCID of the compartment containing the DRG attachment.

id string

The provider-assigned unique ID for this managed resource.

isCrossTenancy boolean

Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false

state string

The DRG attachment's current state.

timeCreated string

The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

compartment_id str

The OCID of the compartment containing the DRG attachment.

id str

The provider-assigned unique ID for this managed resource.

is_cross_tenancy bool

Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false

state str

The DRG attachment's current state.

time_created str

The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

compartmentId String

The OCID of the compartment containing the DRG attachment.

id String

The provider-assigned unique ID for this managed resource.

isCrossTenancy Boolean

Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false

state String

The DRG attachment's current state.

timeCreated String

The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

Look up an Existing DrgAttachment Resource

Get an existing DrgAttachment 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?: DrgAttachmentState, opts?: CustomResourceOptions): DrgAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        display_name: Optional[str] = None,
        drg_id: Optional[str] = None,
        drg_route_table_id: Optional[str] = None,
        export_drg_route_distribution_id: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        is_cross_tenancy: Optional[bool] = None,
        network_details: Optional[_core.DrgAttachmentNetworkDetailsArgs] = None,
        remove_export_drg_route_distribution_trigger: Optional[bool] = None,
        route_table_id: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        vcn_id: Optional[str] = None) -> DrgAttachment
func GetDrgAttachment(ctx *Context, name string, id IDInput, state *DrgAttachmentState, opts ...ResourceOption) (*DrgAttachment, error)
public static DrgAttachment Get(string name, Input<string> id, DrgAttachmentState? state, CustomResourceOptions? opts = null)
public static DrgAttachment get(String name, Output<String> id, DrgAttachmentState 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:
CompartmentId string

The OCID of the compartment containing the DRG attachment.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

DrgId string

The OCID of the DRG.

DrgRouteTableId string

(Updatable) The OCID of the DRG route table that is assigned to this attachment.

ExportDrgRouteDistributionId string

(Updatable) The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.

FreeformTags Dictionary<string, object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

IsCrossTenancy bool

Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false

NetworkDetails DrgAttachmentNetworkDetailsArgs

(Updatable)

RemoveExportDrgRouteDistributionTrigger bool

(Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.

RouteTableId string

(Updatable) The OCID of the route table used by the DRG attachment.

State string

The DRG attachment's current state.

TimeCreated string

The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

VcnId string

(Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

CompartmentId string

The OCID of the compartment containing the DRG attachment.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

DrgId string

The OCID of the DRG.

DrgRouteTableId string

(Updatable) The OCID of the DRG route table that is assigned to this attachment.

ExportDrgRouteDistributionId string

(Updatable) The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.

FreeformTags map[string]interface{}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

IsCrossTenancy bool

Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false

NetworkDetails DrgAttachmentNetworkDetailsArgs

(Updatable)

RemoveExportDrgRouteDistributionTrigger bool

(Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.

RouteTableId string

(Updatable) The OCID of the route table used by the DRG attachment.

State string

The DRG attachment's current state.

TimeCreated string

The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

VcnId string

(Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

compartmentId String

The OCID of the compartment containing the DRG attachment.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

drgId String

The OCID of the DRG.

drgRouteTableId String

(Updatable) The OCID of the DRG route table that is assigned to this attachment.

exportDrgRouteDistributionId String

(Updatable) The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.

freeformTags Map<String,Object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

isCrossTenancy Boolean

Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false

networkDetails DrgAttachmentNetworkDetailsArgs

(Updatable)

removeExportDrgRouteDistributionTrigger Boolean

(Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.

routeTableId String

(Updatable) The OCID of the route table used by the DRG attachment.

state String

The DRG attachment's current state.

timeCreated String

The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

vcnId String

(Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

compartmentId string

The OCID of the compartment containing the DRG attachment.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName string

(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

drgId string

The OCID of the DRG.

drgRouteTableId string

(Updatable) The OCID of the DRG route table that is assigned to this attachment.

exportDrgRouteDistributionId string

(Updatable) The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.

freeformTags {[key: string]: any}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

isCrossTenancy boolean

Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false

networkDetails DrgAttachmentNetworkDetailsArgs

(Updatable)

removeExportDrgRouteDistributionTrigger boolean

(Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.

routeTableId string

(Updatable) The OCID of the route table used by the DRG attachment.

state string

The DRG attachment's current state.

timeCreated string

The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

vcnId string

(Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

compartment_id str

The OCID of the compartment containing the DRG attachment.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

display_name str

(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

drg_id str

The OCID of the DRG.

drg_route_table_id str

(Updatable) The OCID of the DRG route table that is assigned to this attachment.

export_drg_route_distribution_id str

(Updatable) The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.

freeform_tags Mapping[str, Any]

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

is_cross_tenancy bool

Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false

network_details DrgAttachmentNetworkDetailsArgs

(Updatable)

remove_export_drg_route_distribution_trigger bool

(Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.

route_table_id str

(Updatable) The OCID of the route table used by the DRG attachment.

state str

The DRG attachment's current state.

time_created str

The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

vcn_id str

(Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

compartmentId String

The OCID of the compartment containing the DRG attachment.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

drgId String

The OCID of the DRG.

drgRouteTableId String

(Updatable) The OCID of the DRG route table that is assigned to this attachment.

exportDrgRouteDistributionId String

(Updatable) The OCID of the export route distribution used to specify how routes in the assigned DRG route table are advertised to the attachment. If this value is null, no routes are advertised through this attachment. This field cannot be set by the user while creating the resource and gets a default value on creation. This can be only be updated to its default value. If this fields needs to be set to null, remove_export_drg_route_distribution_trigger needs to be used.

freeformTags Map<Any>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

isCrossTenancy Boolean

Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. Example: false

networkDetails Property Map

(Updatable)

removeExportDrgRouteDistributionTrigger Boolean

(Updatable) An optional property when set to true during update disables the export of route Distribution by setting export_drg_route_distribution_id to null.

routeTableId String

(Updatable) The OCID of the route table used by the DRG attachment.

state String

The DRG attachment's current state.

timeCreated String

The date and time the DRG attachment was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

vcnId String

(Optional) The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

Supporting Types

DrgAttachmentNetworkDetails

Id string

The OCID of the network attached to the DRG.

Type string

(Updatable) The type can be one of these values: IPSEC_TUNNEL, REMOTE_PEERING_CONNECTION, VCN, VIRTUAL_CIRCUIT

IpsecConnectionId string

The IPSec connection that contains the attached IPSec tunnel.

RouteTableId string

(Updatable) The OCID of the route table used by the DRG attachment.

VcnRouteType string

(Updatable) Indicates whether the VCN CIDR(s) or the individual Subnet CIDR(s) are imported from the attachment. Routes from the VCN Ingress Route Table are always imported. It can be one of these values: VCN_CIDRS , SUBNET_CIDRS

Id string

The OCID of the network attached to the DRG.

Type string

(Updatable) The type can be one of these values: IPSEC_TUNNEL, REMOTE_PEERING_CONNECTION, VCN, VIRTUAL_CIRCUIT

IpsecConnectionId string

The IPSec connection that contains the attached IPSec tunnel.

RouteTableId string

(Updatable) The OCID of the route table used by the DRG attachment.

VcnRouteType string

(Updatable) Indicates whether the VCN CIDR(s) or the individual Subnet CIDR(s) are imported from the attachment. Routes from the VCN Ingress Route Table are always imported. It can be one of these values: VCN_CIDRS , SUBNET_CIDRS

id String

The OCID of the network attached to the DRG.

type String

(Updatable) The type can be one of these values: IPSEC_TUNNEL, REMOTE_PEERING_CONNECTION, VCN, VIRTUAL_CIRCUIT

ipsecConnectionId String

The IPSec connection that contains the attached IPSec tunnel.

routeTableId String

(Updatable) The OCID of the route table used by the DRG attachment.

vcnRouteType String

(Updatable) Indicates whether the VCN CIDR(s) or the individual Subnet CIDR(s) are imported from the attachment. Routes from the VCN Ingress Route Table are always imported. It can be one of these values: VCN_CIDRS , SUBNET_CIDRS

id string

The OCID of the network attached to the DRG.

type string

(Updatable) The type can be one of these values: IPSEC_TUNNEL, REMOTE_PEERING_CONNECTION, VCN, VIRTUAL_CIRCUIT

ipsecConnectionId string

The IPSec connection that contains the attached IPSec tunnel.

routeTableId string

(Updatable) The OCID of the route table used by the DRG attachment.

vcnRouteType string

(Updatable) Indicates whether the VCN CIDR(s) or the individual Subnet CIDR(s) are imported from the attachment. Routes from the VCN Ingress Route Table are always imported. It can be one of these values: VCN_CIDRS , SUBNET_CIDRS

id str

The OCID of the network attached to the DRG.

type str

(Updatable) The type can be one of these values: IPSEC_TUNNEL, REMOTE_PEERING_CONNECTION, VCN, VIRTUAL_CIRCUIT

ipsec_connection_id str

The IPSec connection that contains the attached IPSec tunnel.

route_table_id str

(Updatable) The OCID of the route table used by the DRG attachment.

vcn_route_type str

(Updatable) Indicates whether the VCN CIDR(s) or the individual Subnet CIDR(s) are imported from the attachment. Routes from the VCN Ingress Route Table are always imported. It can be one of these values: VCN_CIDRS , SUBNET_CIDRS

id String

The OCID of the network attached to the DRG.

type String

(Updatable) The type can be one of these values: IPSEC_TUNNEL, REMOTE_PEERING_CONNECTION, VCN, VIRTUAL_CIRCUIT

ipsecConnectionId String

The IPSec connection that contains the attached IPSec tunnel.

routeTableId String

(Updatable) The OCID of the route table used by the DRG attachment.

vcnRouteType String

(Updatable) Indicates whether the VCN CIDR(s) or the individual Subnet CIDR(s) are imported from the attachment. Routes from the VCN Ingress Route Table are always imported. It can be one of these values: VCN_CIDRS , SUBNET_CIDRS

Import

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

 $ pulumi import oci:Core/drgAttachment:DrgAttachment test_drg_attachment "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.