1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. DrgRouteDistributionStatement
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Core.DrgRouteDistributionStatement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    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=oci.core.DrgRouteDistributionStatementMatchCriteriaArgs(
            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

    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 DrgRouteDistributionStatementMatchCriteria
    (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 DrgRouteDistributionStatementMatchCriteria
    (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 DrgRouteDistributionStatementMatchCriteria
    (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 core.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 DrgRouteDistributionStatementMatchCriteria
    (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 DrgRouteDistributionStatementMatchCriteria
    (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 DrgRouteDistributionStatementMatchCriteria
    (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 core.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, DrgRouteDistributionStatementMatchCriteriaArgs

    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}"
    

    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.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi