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

aviatrix.AviatrixControllerGatewayKeepaliveConfig

Explore with Pulumi AI

The aviatrix_controller_gateway_keepalive_config resource allows management of an Aviatrix Controller’s gateway keepalive template configuration. This resource is available as of provider version R2.19.2+.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an Aviatrix Controller Gateway Keepalive config
    var testGatewayKeepalive = new Aviatrix.AviatrixControllerGatewayKeepaliveConfig("testGatewayKeepalive", new()
    {
        KeepaliveSpeed = "medium",
    });

});
Copy
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.NewAviatrixControllerGatewayKeepaliveConfig(ctx, "testGatewayKeepalive", &aviatrix.AviatrixControllerGatewayKeepaliveConfigArgs{
			KeepaliveSpeed: pulumi.String("medium"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aviatrix.AviatrixControllerGatewayKeepaliveConfig;
import com.pulumi.aviatrix.AviatrixControllerGatewayKeepaliveConfigArgs;
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 testGatewayKeepalive = new AviatrixControllerGatewayKeepaliveConfig("testGatewayKeepalive", AviatrixControllerGatewayKeepaliveConfigArgs.builder()        
            .keepaliveSpeed("medium")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Aviatrix Controller Gateway Keepalive config
const testGatewayKeepalive = new aviatrix.AviatrixControllerGatewayKeepaliveConfig("test_gateway_keepalive", {
    keepaliveSpeed: "medium",
});
Copy
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Aviatrix Controller Gateway Keepalive config
test_gateway_keepalive = aviatrix.AviatrixControllerGatewayKeepaliveConfig("testGatewayKeepalive", keepalive_speed="medium")
Copy
resources:
  # Create an Aviatrix Controller Gateway Keepalive config
  testGatewayKeepalive:
    type: aviatrix:AviatrixControllerGatewayKeepaliveConfig
    properties:
      keepaliveSpeed: medium
Copy

Create AviatrixControllerGatewayKeepaliveConfig Resource

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

Constructor syntax

new AviatrixControllerGatewayKeepaliveConfig(name: string, args: AviatrixControllerGatewayKeepaliveConfigArgs, opts?: CustomResourceOptions);
@overload
def AviatrixControllerGatewayKeepaliveConfig(resource_name: str,
                                             args: AviatrixControllerGatewayKeepaliveConfigArgs,
                                             opts: Optional[ResourceOptions] = None)

@overload
def AviatrixControllerGatewayKeepaliveConfig(resource_name: str,
                                             opts: Optional[ResourceOptions] = None,
                                             keepalive_speed: Optional[str] = None)
func NewAviatrixControllerGatewayKeepaliveConfig(ctx *Context, name string, args AviatrixControllerGatewayKeepaliveConfigArgs, opts ...ResourceOption) (*AviatrixControllerGatewayKeepaliveConfig, error)
public AviatrixControllerGatewayKeepaliveConfig(string name, AviatrixControllerGatewayKeepaliveConfigArgs args, CustomResourceOptions? opts = null)
public AviatrixControllerGatewayKeepaliveConfig(String name, AviatrixControllerGatewayKeepaliveConfigArgs args)
public AviatrixControllerGatewayKeepaliveConfig(String name, AviatrixControllerGatewayKeepaliveConfigArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixControllerGatewayKeepaliveConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AviatrixControllerGatewayKeepaliveConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AviatrixControllerGatewayKeepaliveConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AviatrixControllerGatewayKeepaliveConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AviatrixControllerGatewayKeepaliveConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AviatrixControllerGatewayKeepaliveConfigArgs
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 aviatrixControllerGatewayKeepaliveConfigResource = new Aviatrix.AviatrixControllerGatewayKeepaliveConfig("aviatrixControllerGatewayKeepaliveConfigResource", new()
{
    KeepaliveSpeed = "string",
});
Copy
example, err := aviatrix.NewAviatrixControllerGatewayKeepaliveConfig(ctx, "aviatrixControllerGatewayKeepaliveConfigResource", &aviatrix.AviatrixControllerGatewayKeepaliveConfigArgs{
	KeepaliveSpeed: pulumi.String("string"),
})
Copy
var aviatrixControllerGatewayKeepaliveConfigResource = new AviatrixControllerGatewayKeepaliveConfig("aviatrixControllerGatewayKeepaliveConfigResource", AviatrixControllerGatewayKeepaliveConfigArgs.builder()
    .keepaliveSpeed("string")
    .build());
Copy
aviatrix_controller_gateway_keepalive_config_resource = aviatrix.AviatrixControllerGatewayKeepaliveConfig("aviatrixControllerGatewayKeepaliveConfigResource", keepalive_speed="string")
Copy
const aviatrixControllerGatewayKeepaliveConfigResource = new aviatrix.AviatrixControllerGatewayKeepaliveConfig("aviatrixControllerGatewayKeepaliveConfigResource", {keepaliveSpeed: "string"});
Copy
type: aviatrix:AviatrixControllerGatewayKeepaliveConfig
properties:
    keepaliveSpeed: string
Copy

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

KeepaliveSpeed This property is required. string
The gateway keepalive template name. Must be one of "slow", "medium" or "fast". Visit here for the complete documentation about the gateway keepalive configuration.
KeepaliveSpeed This property is required. string
The gateway keepalive template name. Must be one of "slow", "medium" or "fast". Visit here for the complete documentation about the gateway keepalive configuration.
keepaliveSpeed This property is required. String
The gateway keepalive template name. Must be one of "slow", "medium" or "fast". Visit here for the complete documentation about the gateway keepalive configuration.
keepaliveSpeed This property is required. string
The gateway keepalive template name. Must be one of "slow", "medium" or "fast". Visit here for the complete documentation about the gateway keepalive configuration.
keepalive_speed This property is required. str
The gateway keepalive template name. Must be one of "slow", "medium" or "fast". Visit here for the complete documentation about the gateway keepalive configuration.
keepaliveSpeed This property is required. String
The gateway keepalive template name. Must be one of "slow", "medium" or "fast". Visit here for the complete documentation about the gateway keepalive configuration.

Outputs

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

Get an existing AviatrixControllerGatewayKeepaliveConfig 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?: AviatrixControllerGatewayKeepaliveConfigState, opts?: CustomResourceOptions): AviatrixControllerGatewayKeepaliveConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        keepalive_speed: Optional[str] = None) -> AviatrixControllerGatewayKeepaliveConfig
func GetAviatrixControllerGatewayKeepaliveConfig(ctx *Context, name string, id IDInput, state *AviatrixControllerGatewayKeepaliveConfigState, opts ...ResourceOption) (*AviatrixControllerGatewayKeepaliveConfig, error)
public static AviatrixControllerGatewayKeepaliveConfig Get(string name, Input<string> id, AviatrixControllerGatewayKeepaliveConfigState? state, CustomResourceOptions? opts = null)
public static AviatrixControllerGatewayKeepaliveConfig get(String name, Output<String> id, AviatrixControllerGatewayKeepaliveConfigState state, CustomResourceOptions options)
resources:  _:    type: aviatrix:AviatrixControllerGatewayKeepaliveConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
KeepaliveSpeed string
The gateway keepalive template name. Must be one of "slow", "medium" or "fast". Visit here for the complete documentation about the gateway keepalive configuration.
KeepaliveSpeed string
The gateway keepalive template name. Must be one of "slow", "medium" or "fast". Visit here for the complete documentation about the gateway keepalive configuration.
keepaliveSpeed String
The gateway keepalive template name. Must be one of "slow", "medium" or "fast". Visit here for the complete documentation about the gateway keepalive configuration.
keepaliveSpeed string
The gateway keepalive template name. Must be one of "slow", "medium" or "fast". Visit here for the complete documentation about the gateway keepalive configuration.
keepalive_speed str
The gateway keepalive template name. Must be one of "slow", "medium" or "fast". Visit here for the complete documentation about the gateway keepalive configuration.
keepaliveSpeed String
The gateway keepalive template name. Must be one of "slow", "medium" or "fast". Visit here for the complete documentation about the gateway keepalive configuration.

Import

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

 $ pulumi import aviatrix:index/aviatrixControllerGatewayKeepaliveConfig:AviatrixControllerGatewayKeepaliveConfig test_gateway_keepalive 10-11-12-13
Copy

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.