import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Drg Route Distribution Statement resource in Oracle Cloud Infrastructure Core service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/iaas/latest/DrgRouteDistributionStatement * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/ * * Adds one route distribution statement to the specified route distribution. * * ## Example Usage * * ```typescript * 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: Number(drgRouteDistributionStatementStatementsPriority), * }); * ``` * * ## Import * * DrgRouteDistributionStatement can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Core/drgRouteDistributionStatement:DrgRouteDistributionStatement test_drg_route_distribution_statement "drgRouteDistributions/{drgRouteDistributionId}/statements/{id}" * ``` */ export declare class DrgRouteDistributionStatement extends pulumi.CustomResource { /** * Get an existing DrgRouteDistributionStatement resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: DrgRouteDistributionStatementState, opts?: pulumi.CustomResourceOptions): DrgRouteDistributionStatement; /** * Returns true if the given object is an instance of DrgRouteDistributionStatement. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DrgRouteDistributionStatement; /** * Accept: import/export the route "as is" */ readonly action: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. */ readonly drgRouteDistributionId: pulumi.Output; /** * (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. */ readonly matchCriteria: pulumi.Output; /** * (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 */ readonly priority: pulumi.Output; /** * Create a DrgRouteDistributionStatement resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DrgRouteDistributionStatementArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DrgRouteDistributionStatement resources. */ export interface DrgRouteDistributionStatementState { /** * Accept: import/export the route "as is" */ action?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. */ drgRouteDistributionId?: pulumi.Input; /** * (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. */ matchCriteria?: pulumi.Input; /** * (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 */ priority?: pulumi.Input; } /** * The set of arguments for constructing a DrgRouteDistributionStatement resource. */ export interface DrgRouteDistributionStatementArgs { /** * Accept: import/export the route "as is" */ action: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. */ drgRouteDistributionId: pulumi.Input; /** * (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. */ matchCriteria: pulumi.Input; /** * (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 */ priority: pulumi.Input; } //# sourceMappingURL=drgRouteDistributionStatement.d.ts.map