oci logo
Oracle Cloud Infrastructure v0.20.0, May 31 23

oci.Core.DrgRouteDistributionStatement

Explore with Pulumi AI

This resource provides the Drg Route Distribution Statement resource in Oracle Cloud Infrastructure Core service.

Adds one route distribution statement to the specified route distribution.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testDrgRouteDistributionStatement = new Oci.Core.DrgRouteDistributionStatement("testDrgRouteDistributionStatement", new()
    {
        DrgRouteDistributionId = oci_core_drg_route_distribution.Test_drg_route_distribution.Id,
        Action = @var.Drg_route_distribution_statement_statements_action,
        MatchCriteria = new Oci.Core.Inputs.DrgRouteDistributionStatementMatchCriteriaArgs
        {
            MatchType = @var.Drg_route_distribution_statement_statements_match_criteria_match_type,
            AttachmentType = @var.Drg_route_distribution_statement_statements_match_criteria_attachment_type,
            DrgAttachmentId = oci_core_drg_attachment.Test_drg_attachment.Id,
        },
        Priority = @var.Drg_route_distribution_statement_statements_priority,
    });

});
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.NewDrgRouteDistributionStatement(ctx, "testDrgRouteDistributionStatement", &Core.DrgRouteDistributionStatementArgs{
			DrgRouteDistributionId: pulumi.Any(oci_core_drg_route_distribution.Test_drg_route_distribution.Id),
			Action:                 pulumi.Any(_var.Drg_route_distribution_statement_statements_action),
			MatchCriteria: &core.DrgRouteDistributionStatementMatchCriteriaArgs{
				MatchType:       pulumi.Any(_var.Drg_route_distribution_statement_statements_match_criteria_match_type),
				AttachmentType:  pulumi.Any(_var.Drg_route_distribution_statement_statements_match_criteria_attachment_type),
				DrgAttachmentId: pulumi.Any(oci_core_drg_attachment.Test_drg_attachment.Id),
			},
			Priority: pulumi.Any(_var.Drg_route_distribution_statement_statements_priority),
		})
		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.DrgRouteDistributionStatement;
import com.pulumi.oci.Core.DrgRouteDistributionStatementArgs;
import com.pulumi.oci.Core.inputs.DrgRouteDistributionStatementMatchCriteriaArgs;
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 testDrgRouteDistributionStatement = new DrgRouteDistributionStatement("testDrgRouteDistributionStatement", DrgRouteDistributionStatementArgs.builder()        
            .drgRouteDistributionId(oci_core_drg_route_distribution.test_drg_route_distribution().id())
            .action(var_.drg_route_distribution_statement_statements_action())
            .matchCriteria(DrgRouteDistributionStatementMatchCriteriaArgs.builder()
                .matchType(var_.drg_route_distribution_statement_statements_match_criteria_match_type())
                .attachmentType(var_.drg_route_distribution_statement_statements_match_criteria_attachment_type())
                .drgAttachmentId(oci_core_drg_attachment.test_drg_attachment().id())
                .build())
            .priority(var_.drg_route_distribution_statement_statements_priority())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_drg_route_distribution_statement = oci.core.DrgRouteDistributionStatement("testDrgRouteDistributionStatement",
    drg_route_distribution_id=oci_core_drg_route_distribution["test_drg_route_distribution"]["id"],
    action=var["drg_route_distribution_statement_statements_action"],
    match_criteria=oci.core.DrgRouteDistributionStatementMatchCriteriaArgs(
        match_type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
        attachment_type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
        drg_attachment_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
    ),
    priority=var["drg_route_distribution_statement_statements_priority"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDrgRouteDistributionStatement = new oci.core.DrgRouteDistributionStatement("testDrgRouteDistributionStatement", {
    drgRouteDistributionId: oci_core_drg_route_distribution.test_drg_route_distribution.id,
    action: _var.drg_route_distribution_statement_statements_action,
    matchCriteria: {
        matchType: _var.drg_route_distribution_statement_statements_match_criteria_match_type,
        attachmentType: _var.drg_route_distribution_statement_statements_match_criteria_attachment_type,
        drgAttachmentId: oci_core_drg_attachment.test_drg_attachment.id,
    },
    priority: _var.drg_route_distribution_statement_statements_priority,
});
resources:
  testDrgRouteDistributionStatement:
    type: oci:Core:DrgRouteDistributionStatement
    properties:
      #Required
      drgRouteDistributionId: ${oci_core_drg_route_distribution.test_drg_route_distribution.id}
      action: ${var.drg_route_distribution_statement_statements_action}
      matchCriteria:
        matchType: ${var.drg_route_distribution_statement_statements_match_criteria_match_type}
        attachmentType: ${var.drg_route_distribution_statement_statements_match_criteria_attachment_type}
        drgAttachmentId: ${oci_core_drg_attachment.test_drg_attachment.id}
      priority: ${var.drg_route_distribution_statement_statements_priority}

Create DrgRouteDistributionStatement Resource

new DrgRouteDistributionStatement(name: string, args: DrgRouteDistributionStatementArgs, opts?: CustomResourceOptions);
@overload
def DrgRouteDistributionStatement(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  action: Optional[str] = None,
                                  drg_route_distribution_id: Optional[str] = None,
                                  match_criteria: Optional[_core.DrgRouteDistributionStatementMatchCriteriaArgs] = None,
                                  priority: Optional[int] = None)
@overload
def DrgRouteDistributionStatement(resource_name: str,
                                  args: DrgRouteDistributionStatementArgs,
                                  opts: Optional[ResourceOptions] = None)
func NewDrgRouteDistributionStatement(ctx *Context, name string, args DrgRouteDistributionStatementArgs, opts ...ResourceOption) (*DrgRouteDistributionStatement, error)
public DrgRouteDistributionStatement(string name, DrgRouteDistributionStatementArgs args, CustomResourceOptions? opts = null)
public DrgRouteDistributionStatement(String name, DrgRouteDistributionStatementArgs args)
public DrgRouteDistributionStatement(String name, DrgRouteDistributionStatementArgs args, CustomResourceOptions options)
type: oci:Core:DrgRouteDistributionStatement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

Action string

Accept: import/export the route "as is"

DrgRouteDistributionId string

The OCID of the route distribution.

MatchCriteria DrgRouteDistributionStatementMatchCriteriaArgs

(Updatable) The action is applied only if all of the match criteria are met. MATCH_ALL match type implies any input is considered a match.

Priority int

(Updatable) This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Action string

Accept: import/export the route "as is"

DrgRouteDistributionId string

The OCID of the route distribution.

MatchCriteria DrgRouteDistributionStatementMatchCriteriaArgs

(Updatable) The action is applied only if all of the match criteria are met. MATCH_ALL match type implies any input is considered a match.

Priority int

(Updatable) This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

action String

Accept: import/export the route "as is"

drgRouteDistributionId String

The OCID of the route distribution.

matchCriteria DrgRouteDistributionStatementMatchCriteriaArgs

(Updatable) The action is applied only if all of the match criteria are met. MATCH_ALL match type implies any input is considered a match.

priority Integer

(Updatable) This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

action string

Accept: import/export the route "as is"

drgRouteDistributionId string

The OCID of the route distribution.

matchCriteria DrgRouteDistributionStatementMatchCriteriaArgs

(Updatable) The action is applied only if all of the match criteria are met. MATCH_ALL match type implies any input is considered a match.

priority number

(Updatable) This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

action str

Accept: import/export the route "as is"

drg_route_distribution_id str

The OCID of the route distribution.

match_criteria DrgRouteDistributionStatementMatchCriteriaArgs

(Updatable) The action is applied only if all of the match criteria are met. MATCH_ALL match type implies any input is considered a match.

priority int

(Updatable) This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

action String

Accept: import/export the route "as is"

drgRouteDistributionId String

The OCID of the route distribution.

matchCriteria Property Map

(Updatable) The action is applied only if all of the match criteria are met. MATCH_ALL match type implies any input is considered a match.

priority Number

(Updatable) This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing DrgRouteDistributionStatement Resource

Get an existing DrgRouteDistributionStatement 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?: DrgRouteDistributionStatementState, opts?: CustomResourceOptions): DrgRouteDistributionStatement
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        drg_route_distribution_id: Optional[str] = None,
        match_criteria: Optional[_core.DrgRouteDistributionStatementMatchCriteriaArgs] = None,
        priority: Optional[int] = None) -> DrgRouteDistributionStatement
func GetDrgRouteDistributionStatement(ctx *Context, name string, id IDInput, state *DrgRouteDistributionStatementState, opts ...ResourceOption) (*DrgRouteDistributionStatement, error)
public static DrgRouteDistributionStatement Get(string name, Input<string> id, DrgRouteDistributionStatementState? state, CustomResourceOptions? opts = null)
public static DrgRouteDistributionStatement get(String name, Output<String> id, DrgRouteDistributionStatementState 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:
Action string

Accept: import/export the route "as is"

DrgRouteDistributionId string

The OCID of the route distribution.

MatchCriteria DrgRouteDistributionStatementMatchCriteriaArgs

(Updatable) The action is applied only if all of the match criteria are met. MATCH_ALL match type implies any input is considered a match.

Priority int

(Updatable) This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Action string

Accept: import/export the route "as is"

DrgRouteDistributionId string

The OCID of the route distribution.

MatchCriteria DrgRouteDistributionStatementMatchCriteriaArgs

(Updatable) The action is applied only if all of the match criteria are met. MATCH_ALL match type implies any input is considered a match.

Priority int

(Updatable) This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

action String

Accept: import/export the route "as is"

drgRouteDistributionId String

The OCID of the route distribution.

matchCriteria DrgRouteDistributionStatementMatchCriteriaArgs

(Updatable) The action is applied only if all of the match criteria are met. MATCH_ALL match type implies any input is considered a match.

priority Integer

(Updatable) This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

action string

Accept: import/export the route "as is"

drgRouteDistributionId string

The OCID of the route distribution.

matchCriteria DrgRouteDistributionStatementMatchCriteriaArgs

(Updatable) The action is applied only if all of the match criteria are met. MATCH_ALL match type implies any input is considered a match.

priority number

(Updatable) This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

action str

Accept: import/export the route "as is"

drg_route_distribution_id str

The OCID of the route distribution.

match_criteria DrgRouteDistributionStatementMatchCriteriaArgs

(Updatable) The action is applied only if all of the match criteria are met. MATCH_ALL match type implies any input is considered a match.

priority int

(Updatable) This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

action String

Accept: import/export the route "as is"

drgRouteDistributionId String

The OCID of the route distribution.

matchCriteria Property Map

(Updatable) The action is applied only if all of the match criteria are met. MATCH_ALL match type implies any input is considered a match.

priority Number

(Updatable) This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Supporting Types

DrgRouteDistributionStatementMatchCriteria

AttachmentType string

The type of the network resource to be included in this match. A match for a network type implies that all DRG attachments of that type insert routes into the table.

DrgAttachmentId string

The OCID of the DRG attachment.

MatchType string

(Updatable) The type of the match criteria for a route distribution statement.

AttachmentType string

The type of the network resource to be included in this match. A match for a network type implies that all DRG attachments of that type insert routes into the table.

DrgAttachmentId string

The OCID of the DRG attachment.

MatchType string

(Updatable) The type of the match criteria for a route distribution statement.

attachmentType String

The type of the network resource to be included in this match. A match for a network type implies that all DRG attachments of that type insert routes into the table.

drgAttachmentId String

The OCID of the DRG attachment.

matchType String

(Updatable) The type of the match criteria for a route distribution statement.

attachmentType string

The type of the network resource to be included in this match. A match for a network type implies that all DRG attachments of that type insert routes into the table.

drgAttachmentId string

The OCID of the DRG attachment.

matchType string

(Updatable) The type of the match criteria for a route distribution statement.

attachment_type str

The type of the network resource to be included in this match. A match for a network type implies that all DRG attachments of that type insert routes into the table.

drg_attachment_id str

The OCID of the DRG attachment.

match_type str

(Updatable) The type of the match criteria for a route distribution statement.

attachmentType String

The type of the network resource to be included in this match. A match for a network type implies that all DRG attachments of that type insert routes into the table.

drgAttachmentId String

The OCID of the DRG attachment.

matchType String

(Updatable) The type of the match criteria for a route distribution statement.

Import

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

 $ pulumi import oci:Core/drgRouteDistributionStatement:DrgRouteDistributionStatement test_drg_route_distribution_statement "drgRouteDistributions/{drgRouteDistributionId}/statements/{id}"

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.