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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDrgRouteDistributionStatement = new oci.core.DrgRouteDistributionStatement("test_drg_route_distribution_statement", {
drgRouteDistributionId: testDrgRouteDistribution.id,
action: drgRouteDistributionStatementStatementsAction,
matchCriteria: {
matchType: drgRouteDistributionStatementStatementsMatchCriteriaMatchType,
attachmentType: drgRouteDistributionStatementStatementsMatchCriteriaAttachmentType,
drgAttachmentId: testDrgAttachment.id,
},
priority: drgRouteDistributionStatementStatementsPriority,
});
import pulumi
import pulumi_oci as oci
test_drg_route_distribution_statement = oci.core.DrgRouteDistributionStatement("test_drg_route_distribution_statement",
drg_route_distribution_id=test_drg_route_distribution["id"],
action=drg_route_distribution_statement_statements_action,
match_criteria={
"match_type": drg_route_distribution_statement_statements_match_criteria_match_type,
"attachment_type": drg_route_distribution_statement_statements_match_criteria_attachment_type,
"drg_attachment_id": test_drg_attachment["id"],
},
priority=drg_route_distribution_statement_statements_priority)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.NewDrgRouteDistributionStatement(ctx, "test_drg_route_distribution_statement", &Core.DrgRouteDistributionStatementArgs{
DrgRouteDistributionId: pulumi.Any(testDrgRouteDistribution.Id),
Action: pulumi.Any(drgRouteDistributionStatementStatementsAction),
MatchCriteria: &core.DrgRouteDistributionStatementMatchCriteriaArgs{
MatchType: pulumi.Any(drgRouteDistributionStatementStatementsMatchCriteriaMatchType),
AttachmentType: pulumi.Any(drgRouteDistributionStatementStatementsMatchCriteriaAttachmentType),
DrgAttachmentId: pulumi.Any(testDrgAttachment.Id),
},
Priority: pulumi.Any(drgRouteDistributionStatementStatementsPriority),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDrgRouteDistributionStatement = new Oci.Core.DrgRouteDistributionStatement("test_drg_route_distribution_statement", new()
{
DrgRouteDistributionId = testDrgRouteDistribution.Id,
Action = drgRouteDistributionStatementStatementsAction,
MatchCriteria = new Oci.Core.Inputs.DrgRouteDistributionStatementMatchCriteriaArgs
{
MatchType = drgRouteDistributionStatementStatementsMatchCriteriaMatchType,
AttachmentType = drgRouteDistributionStatementStatementsMatchCriteriaAttachmentType,
DrgAttachmentId = testDrgAttachment.Id,
},
Priority = drgRouteDistributionStatementStatementsPriority,
});
});
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(testDrgRouteDistribution.id())
.action(drgRouteDistributionStatementStatementsAction)
.matchCriteria(DrgRouteDistributionStatementMatchCriteriaArgs.builder()
.matchType(drgRouteDistributionStatementStatementsMatchCriteriaMatchType)
.attachmentType(drgRouteDistributionStatementStatementsMatchCriteriaAttachmentType)
.drgAttachmentId(testDrgAttachment.id())
.build())
.priority(drgRouteDistributionStatementStatementsPriority)
.build());
}
}
resources:
testDrgRouteDistributionStatement:
type: oci:Core:DrgRouteDistributionStatement
name: test_drg_route_distribution_statement
properties:
drgRouteDistributionId: ${testDrgRouteDistribution.id}
action: ${drgRouteDistributionStatementStatementsAction}
matchCriteria:
matchType: ${drgRouteDistributionStatementStatementsMatchCriteriaMatchType}
attachmentType: ${drgRouteDistributionStatementStatementsMatchCriteriaAttachmentType}
drgAttachmentId: ${testDrgAttachment.id}
priority: ${drgRouteDistributionStatementStatementsPriority}
Create DrgRouteDistributionStatement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DrgRouteDistributionStatement(name: string, args: DrgRouteDistributionStatementArgs, opts?: CustomResourceOptions);
@overload
def DrgRouteDistributionStatement(resource_name: str,
args: DrgRouteDistributionStatementArgs,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var drgRouteDistributionStatementResource = new Oci.Core.DrgRouteDistributionStatement("drgRouteDistributionStatementResource", new()
{
Action = "string",
DrgRouteDistributionId = "string",
MatchCriteria = new Oci.Core.Inputs.DrgRouteDistributionStatementMatchCriteriaArgs
{
AttachmentType = "string",
DrgAttachmentId = "string",
MatchType = "string",
},
Priority = 0,
});
example, err := Core.NewDrgRouteDistributionStatement(ctx, "drgRouteDistributionStatementResource", &Core.DrgRouteDistributionStatementArgs{
Action: pulumi.String("string"),
DrgRouteDistributionId: pulumi.String("string"),
MatchCriteria: &core.DrgRouteDistributionStatementMatchCriteriaArgs{
AttachmentType: pulumi.String("string"),
DrgAttachmentId: pulumi.String("string"),
MatchType: pulumi.String("string"),
},
Priority: pulumi.Int(0),
})
var drgRouteDistributionStatementResource = new DrgRouteDistributionStatement("drgRouteDistributionStatementResource", DrgRouteDistributionStatementArgs.builder()
.action("string")
.drgRouteDistributionId("string")
.matchCriteria(DrgRouteDistributionStatementMatchCriteriaArgs.builder()
.attachmentType("string")
.drgAttachmentId("string")
.matchType("string")
.build())
.priority(0)
.build());
drg_route_distribution_statement_resource = oci.core.DrgRouteDistributionStatement("drgRouteDistributionStatementResource",
action="string",
drg_route_distribution_id="string",
match_criteria={
"attachment_type": "string",
"drg_attachment_id": "string",
"match_type": "string",
},
priority=0)
const drgRouteDistributionStatementResource = new oci.core.DrgRouteDistributionStatement("drgRouteDistributionStatementResource", {
action: "string",
drgRouteDistributionId: "string",
matchCriteria: {
attachmentType: "string",
drgAttachmentId: "string",
matchType: "string",
},
priority: 0,
});
type: oci:Core:DrgRouteDistributionStatement
properties:
action: string
drgRouteDistributionId: string
matchCriteria:
attachmentType: string
drgAttachmentId: string
matchType: string
priority: 0
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DrgRouteDistributionStatement resource accepts the following input properties:
- Action string
- Accept: import/export the route "as is"
- Drg
Route stringDistribution Id - The OCID of the route distribution.
- Match
Criteria DrgRoute Distribution Statement Match Criteria - (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"
- Drg
Route stringDistribution Id - The OCID of the route distribution.
- Match
Criteria DrgRoute Distribution Statement Match Criteria Args - (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"
- drg
Route StringDistribution Id - The OCID of the route distribution.
- match
Criteria DrgRoute Distribution Statement Match Criteria - (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"
- drg
Route stringDistribution Id - The OCID of the route distribution.
- match
Criteria DrgRoute Distribution Statement Match Criteria - (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_ strdistribution_ id - The OCID of the route distribution.
- match_
criteria core.Drg Route Distribution Statement Match Criteria Args - (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"
- drg
Route StringDistribution Id - The OCID of the route distribution.
- match
Criteria 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.
- Action string
- Accept: import/export the route "as is"
- Drg
Route stringDistribution Id - The OCID of the route distribution.
- Match
Criteria DrgRoute Distribution Statement Match Criteria - (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"
- Drg
Route stringDistribution Id - The OCID of the route distribution.
- Match
Criteria DrgRoute Distribution Statement Match Criteria Args - (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"
- drg
Route StringDistribution Id - The OCID of the route distribution.
- match
Criteria DrgRoute Distribution Statement Match Criteria - (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"
- drg
Route stringDistribution Id - The OCID of the route distribution.
- match
Criteria DrgRoute Distribution Statement Match Criteria - (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_ strdistribution_ id - The OCID of the route distribution.
- match_
criteria core.Drg Route Distribution Statement Match Criteria Args - (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"
- drg
Route StringDistribution Id - The OCID of the route distribution.
- match
Criteria 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, DrgRouteDistributionStatementMatchCriteriaArgs
- Attachment
Type 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.
- Drg
Attachment stringId - The OCID of the DRG attachment.
- Match
Type string - (Updatable) The type of the match criteria for a route distribution statement.
- Attachment
Type 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.
- Drg
Attachment stringId - The OCID of the DRG attachment.
- Match
Type string - (Updatable) The type of the match criteria for a route distribution statement.
- attachment
Type 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.
- drg
Attachment StringId - The OCID of the DRG attachment.
- match
Type String - (Updatable) The type of the match criteria for a route distribution statement.
- attachment
Type 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.
- drg
Attachment stringId - The OCID of the DRG attachment.
- match
Type 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_ strid - The OCID of the DRG attachment.
- match_
type str - (Updatable) The type of the match criteria for a route distribution statement.
- attachment
Type 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.
- drg
Attachment StringId - The OCID of the DRG attachment.
- match
Type 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}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.