1. Packages
  2. Aviatrix
  3. API Docs
  4. AviatrixControllerBgpMaxAsLimitConfig
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

aviatrix.AviatrixControllerBgpMaxAsLimitConfig

Explore with Pulumi AI

aviatrix logo
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

    The aviatrix_controller_bgp_max_as_limit_config resource allows management of an Aviatrix Controller’s BGP max AS limit for transit gateways. This resource is available as of provider version R2.18.1+.

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Aviatrix = Pulumi.Aviatrix;
    
    return await Deployment.RunAsync(() => 
    {
        // Create an Aviatrix Controller BGP max AS limit config
        var testMaxAsLimit = new Aviatrix.AviatrixControllerBgpMaxAsLimitConfig("testMaxAsLimit", new()
        {
            MaxAsLimit = 1,
        });
    
    });
    
    package main
    
    import (
    	"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aviatrix.NewAviatrixControllerBgpMaxAsLimitConfig(ctx, "testMaxAsLimit", &aviatrix.AviatrixControllerBgpMaxAsLimitConfigArgs{
    			MaxAsLimit: pulumi.Int(1),
    		})
    		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.aviatrix.AviatrixControllerBgpMaxAsLimitConfig;
    import com.pulumi.aviatrix.AviatrixControllerBgpMaxAsLimitConfigArgs;
    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 testMaxAsLimit = new AviatrixControllerBgpMaxAsLimitConfig("testMaxAsLimit", AviatrixControllerBgpMaxAsLimitConfigArgs.builder()        
                .maxAsLimit(1)
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aviatrix as aviatrix
    
    # Create an Aviatrix Controller BGP max AS limit config
    test_max_as_limit = aviatrix.AviatrixControllerBgpMaxAsLimitConfig("testMaxAsLimit", max_as_limit=1)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aviatrix from "@pulumi/aviatrix";
    
    // Create an Aviatrix Controller BGP max AS limit config
    const testMaxAsLimit = new aviatrix.AviatrixControllerBgpMaxAsLimitConfig("test_max_as_limit", {
        maxAsLimit: 1,
    });
    
    resources:
      # Create an Aviatrix Controller BGP max AS limit config
      testMaxAsLimit:
        type: aviatrix:AviatrixControllerBgpMaxAsLimitConfig
        properties:
          maxAsLimit: 1
    

    Create AviatrixControllerBgpMaxAsLimitConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AviatrixControllerBgpMaxAsLimitConfig(name: string, args: AviatrixControllerBgpMaxAsLimitConfigArgs, opts?: CustomResourceOptions);
    @overload
    def AviatrixControllerBgpMaxAsLimitConfig(resource_name: str,
                                              args: AviatrixControllerBgpMaxAsLimitConfigArgs,
                                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def AviatrixControllerBgpMaxAsLimitConfig(resource_name: str,
                                              opts: Optional[ResourceOptions] = None,
                                              max_as_limit: Optional[int] = None)
    func NewAviatrixControllerBgpMaxAsLimitConfig(ctx *Context, name string, args AviatrixControllerBgpMaxAsLimitConfigArgs, opts ...ResourceOption) (*AviatrixControllerBgpMaxAsLimitConfig, error)
    public AviatrixControllerBgpMaxAsLimitConfig(string name, AviatrixControllerBgpMaxAsLimitConfigArgs args, CustomResourceOptions? opts = null)
    public AviatrixControllerBgpMaxAsLimitConfig(String name, AviatrixControllerBgpMaxAsLimitConfigArgs args)
    public AviatrixControllerBgpMaxAsLimitConfig(String name, AviatrixControllerBgpMaxAsLimitConfigArgs args, CustomResourceOptions options)
    
    type: aviatrix:AviatrixControllerBgpMaxAsLimitConfig
    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 AviatrixControllerBgpMaxAsLimitConfigArgs
    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 AviatrixControllerBgpMaxAsLimitConfigArgs
    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 AviatrixControllerBgpMaxAsLimitConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AviatrixControllerBgpMaxAsLimitConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AviatrixControllerBgpMaxAsLimitConfigArgs
    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 aviatrixControllerBgpMaxAsLimitConfigResource = new Aviatrix.AviatrixControllerBgpMaxAsLimitConfig("aviatrixControllerBgpMaxAsLimitConfigResource", new()
    {
        MaxAsLimit = 0,
    });
    
    example, err := aviatrix.NewAviatrixControllerBgpMaxAsLimitConfig(ctx, "aviatrixControllerBgpMaxAsLimitConfigResource", &aviatrix.AviatrixControllerBgpMaxAsLimitConfigArgs{
    	MaxAsLimit: pulumi.Int(0),
    })
    
    var aviatrixControllerBgpMaxAsLimitConfigResource = new AviatrixControllerBgpMaxAsLimitConfig("aviatrixControllerBgpMaxAsLimitConfigResource", AviatrixControllerBgpMaxAsLimitConfigArgs.builder()
        .maxAsLimit(0)
        .build());
    
    aviatrix_controller_bgp_max_as_limit_config_resource = aviatrix.AviatrixControllerBgpMaxAsLimitConfig("aviatrixControllerBgpMaxAsLimitConfigResource", max_as_limit=0)
    
    const aviatrixControllerBgpMaxAsLimitConfigResource = new aviatrix.AviatrixControllerBgpMaxAsLimitConfig("aviatrixControllerBgpMaxAsLimitConfigResource", {maxAsLimit: 0});
    
    type: aviatrix:AviatrixControllerBgpMaxAsLimitConfig
    properties:
        maxAsLimit: 0
    

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

    MaxAsLimit int
    The maximum AS path limit allowed by transit gateways when handling BGP/Peering route propagation. Must be a number in the range [1-254].
    MaxAsLimit int
    The maximum AS path limit allowed by transit gateways when handling BGP/Peering route propagation. Must be a number in the range [1-254].
    maxAsLimit Integer
    The maximum AS path limit allowed by transit gateways when handling BGP/Peering route propagation. Must be a number in the range [1-254].
    maxAsLimit number
    The maximum AS path limit allowed by transit gateways when handling BGP/Peering route propagation. Must be a number in the range [1-254].
    max_as_limit int
    The maximum AS path limit allowed by transit gateways when handling BGP/Peering route propagation. Must be a number in the range [1-254].
    maxAsLimit Number
    The maximum AS path limit allowed by transit gateways when handling BGP/Peering route propagation. Must be a number in the range [1-254].

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AviatrixControllerBgpMaxAsLimitConfig 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 AviatrixControllerBgpMaxAsLimitConfig Resource

    Get an existing AviatrixControllerBgpMaxAsLimitConfig 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?: AviatrixControllerBgpMaxAsLimitConfigState, opts?: CustomResourceOptions): AviatrixControllerBgpMaxAsLimitConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            max_as_limit: Optional[int] = None) -> AviatrixControllerBgpMaxAsLimitConfig
    func GetAviatrixControllerBgpMaxAsLimitConfig(ctx *Context, name string, id IDInput, state *AviatrixControllerBgpMaxAsLimitConfigState, opts ...ResourceOption) (*AviatrixControllerBgpMaxAsLimitConfig, error)
    public static AviatrixControllerBgpMaxAsLimitConfig Get(string name, Input<string> id, AviatrixControllerBgpMaxAsLimitConfigState? state, CustomResourceOptions? opts = null)
    public static AviatrixControllerBgpMaxAsLimitConfig get(String name, Output<String> id, AviatrixControllerBgpMaxAsLimitConfigState 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:
    MaxAsLimit int
    The maximum AS path limit allowed by transit gateways when handling BGP/Peering route propagation. Must be a number in the range [1-254].
    MaxAsLimit int
    The maximum AS path limit allowed by transit gateways when handling BGP/Peering route propagation. Must be a number in the range [1-254].
    maxAsLimit Integer
    The maximum AS path limit allowed by transit gateways when handling BGP/Peering route propagation. Must be a number in the range [1-254].
    maxAsLimit number
    The maximum AS path limit allowed by transit gateways when handling BGP/Peering route propagation. Must be a number in the range [1-254].
    max_as_limit int
    The maximum AS path limit allowed by transit gateways when handling BGP/Peering route propagation. Must be a number in the range [1-254].
    maxAsLimit Number
    The maximum AS path limit allowed by transit gateways when handling BGP/Peering route propagation. Must be a number in the range [1-254].

    Import

    aviatrix_controller_bgp_max_as_limit_config can be imported using controller IP, e.g. controller IP is 10.11.12.13

     $ pulumi import aviatrix:index/aviatrixControllerBgpMaxAsLimitConfig:AviatrixControllerBgpMaxAsLimitConfig test_max_as_limit 10-11-12-13
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    aviatrix astipkovits/pulumi-aviatrix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aviatrix Terraform Provider.
    aviatrix logo
    Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix