Oracle Cloud Infrastructure

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

DrgRouteDistributionStatement

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 Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDrgRouteDistributionStatement = new Oci.Core.DrgRouteDistributionStatement("testDrgRouteDistributionStatement", new Oci.Core.DrgRouteDistributionStatementArgs
        {
            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
	})
}

Coming soon!

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=var["drg_route_distribution_statement_statements_match_criteria_match_type"],
        attachment_type=var["drg_route_distribution_statement_statements_match_criteria_attachment_type"],
        drg_attachment_id=oci_core_drg_attachment["test_drg_attachment"]["id"],
    ),
    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,
});

Coming soon!

Create a 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.

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.

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.

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.

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.

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.

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 an 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.

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.

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.

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.

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.

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.

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.