VpnSetting resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const tcpExample = new scm.VpnSetting("tcp_example", {
folder: "All",
vpn: {
ikev2: {
cookieThreshold: 500,
maxHalfOpenedSa: 65535,
certificateCacheSize: 122,
},
},
});
import pulumi
import pulumi_scm as scm
tcp_example = scm.VpnSetting("tcp_example",
folder="All",
vpn={
"ikev2": {
"cookie_threshold": 500,
"max_half_opened_sa": 65535,
"certificate_cache_size": 122,
},
})
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scm.NewVpnSetting(ctx, "tcp_example", &scm.VpnSettingArgs{
Folder: pulumi.String("All"),
Vpn: &scm.VpnSettingVpnArgs{
Ikev2: &scm.VpnSettingVpnIkev2Args{
CookieThreshold: pulumi.Int(500),
MaxHalfOpenedSa: pulumi.Int(65535),
CertificateCacheSize: pulumi.Int(122),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var tcpExample = new Scm.VpnSetting("tcp_example", new()
{
Folder = "All",
Vpn = new Scm.Inputs.VpnSettingVpnArgs
{
Ikev2 = new Scm.Inputs.VpnSettingVpnIkev2Args
{
CookieThreshold = 500,
MaxHalfOpenedSa = 65535,
CertificateCacheSize = 122,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.VpnSetting;
import com.pulumi.scm.VpnSettingArgs;
import com.pulumi.scm.inputs.VpnSettingVpnArgs;
import com.pulumi.scm.inputs.VpnSettingVpnIkev2Args;
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 tcpExample = new VpnSetting("tcpExample", VpnSettingArgs.builder()
.folder("All")
.vpn(VpnSettingVpnArgs.builder()
.ikev2(VpnSettingVpnIkev2Args.builder()
.cookieThreshold(500)
.maxHalfOpenedSa(65535)
.certificateCacheSize(122)
.build())
.build())
.build());
}
}
resources:
tcpExample:
type: scm:VpnSetting
name: tcp_example
properties:
folder: All
vpn:
ikev2:
cookieThreshold: 500
maxHalfOpenedSa: 65535
certificateCacheSize: 122
Create VpnSetting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpnSetting(name: string, args?: VpnSettingArgs, opts?: CustomResourceOptions);@overload
def VpnSetting(resource_name: str,
args: Optional[VpnSettingArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def VpnSetting(resource_name: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
snippet: Optional[str] = None,
vpn: Optional[VpnSettingVpnArgs] = None)func NewVpnSetting(ctx *Context, name string, args *VpnSettingArgs, opts ...ResourceOption) (*VpnSetting, error)public VpnSetting(string name, VpnSettingArgs? args = null, CustomResourceOptions? opts = null)
public VpnSetting(String name, VpnSettingArgs args)
public VpnSetting(String name, VpnSettingArgs args, CustomResourceOptions options)
type: scm:VpnSetting
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 VpnSettingArgs
- 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 VpnSettingArgs
- 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 VpnSettingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpnSettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpnSettingArgs
- 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 vpnSettingResource = new Scm.VpnSetting("vpnSettingResource", new()
{
Device = "string",
Folder = "string",
Snippet = "string",
Vpn = new Scm.Inputs.VpnSettingVpnArgs
{
Ikev2 = new Scm.Inputs.VpnSettingVpnIkev2Args
{
CertificateCacheSize = 0,
CookieThreshold = 0,
MaxHalfOpenedSa = 0,
},
},
});
example, err := scm.NewVpnSetting(ctx, "vpnSettingResource", &scm.VpnSettingArgs{
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Snippet: pulumi.String("string"),
Vpn: &scm.VpnSettingVpnArgs{
Ikev2: &scm.VpnSettingVpnIkev2Args{
CertificateCacheSize: pulumi.Int(0),
CookieThreshold: pulumi.Int(0),
MaxHalfOpenedSa: pulumi.Int(0),
},
},
})
var vpnSettingResource = new VpnSetting("vpnSettingResource", VpnSettingArgs.builder()
.device("string")
.folder("string")
.snippet("string")
.vpn(VpnSettingVpnArgs.builder()
.ikev2(VpnSettingVpnIkev2Args.builder()
.certificateCacheSize(0)
.cookieThreshold(0)
.maxHalfOpenedSa(0)
.build())
.build())
.build());
vpn_setting_resource = scm.VpnSetting("vpnSettingResource",
device="string",
folder="string",
snippet="string",
vpn={
"ikev2": {
"certificate_cache_size": 0,
"cookie_threshold": 0,
"max_half_opened_sa": 0,
},
})
const vpnSettingResource = new scm.VpnSetting("vpnSettingResource", {
device: "string",
folder: "string",
snippet: "string",
vpn: {
ikev2: {
certificateCacheSize: 0,
cookieThreshold: 0,
maxHalfOpenedSa: 0,
},
},
});
type: scm:VpnSetting
properties:
device: string
folder: string
snippet: string
vpn:
ikev2:
certificateCacheSize: 0
cookieThreshold: 0
maxHalfOpenedSa: 0
VpnSetting 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 VpnSetting resource accepts the following input properties:
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Vpn
Vpn
Setting Vpn - Vpn
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Vpn
Vpn
Setting Vpn Args - Vpn
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- vpn
Vpn
Setting Vpn - Vpn
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- vpn
Vpn
Setting Vpn - Vpn
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- vpn
Vpn
Setting Vpn Args - Vpn
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- vpn Property Map
- Vpn
Outputs
All input properties are implicitly available as output properties. Additionally, the VpnSetting resource produces the following output properties:
Look up Existing VpnSetting Resource
Get an existing VpnSetting 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?: VpnSettingState, opts?: CustomResourceOptions): VpnSetting@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None,
vpn: Optional[VpnSettingVpnArgs] = None) -> VpnSettingfunc GetVpnSetting(ctx *Context, name string, id IDInput, state *VpnSettingState, opts ...ResourceOption) (*VpnSetting, error)public static VpnSetting Get(string name, Input<string> id, VpnSettingState? state, CustomResourceOptions? opts = null)public static VpnSetting get(String name, Output<String> id, VpnSettingState state, CustomResourceOptions options)resources: _: type: scm:VpnSetting get: id: ${id}- 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.
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- Vpn
Vpn
Setting Vpn - Vpn
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- Vpn
Vpn
Setting Vpn Args - Vpn
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
- vpn
Vpn
Setting Vpn - Vpn
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid string
- vpn
Vpn
Setting Vpn - Vpn
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid str
- vpn
Vpn
Setting Vpn Args - Vpn
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
- vpn Property Map
- Vpn
Supporting Types
VpnSettingVpn, VpnSettingVpnArgs
- Ikev2
Vpn
Setting Vpn Ikev2 - Ikev2
- Ikev2
Vpn
Setting Vpn Ikev2 - Ikev2
- ikev2
Vpn
Setting Vpn Ikev2 - Ikev2
- ikev2
Vpn
Setting Vpn Ikev2 - Ikev2
- ikev2
Vpn
Setting Vpn Ikev2 - Ikev2
- ikev2 Property Map
- Ikev2
VpnSettingVpnIkev2, VpnSettingVpnIkev2Args
- Certificate
Cache intSize - Maximum cached certificates
- int
- Cookie activation threshold
- Max
Half intOpened Sa - Maximum half-opened SA
- Certificate
Cache intSize - Maximum cached certificates
- int
- Cookie activation threshold
- Max
Half intOpened Sa - Maximum half-opened SA
- certificate
Cache IntegerSize - Maximum cached certificates
- Integer
- Cookie activation threshold
- max
Half IntegerOpened Sa - Maximum half-opened SA
- certificate
Cache numberSize - Maximum cached certificates
- number
- Cookie activation threshold
- max
Half numberOpened Sa - Maximum half-opened SA
- certificate_
cache_ intsize - Maximum cached certificates
- int
- Cookie activation threshold
- max_
half_ intopened_ sa - Maximum half-opened SA
- certificate
Cache NumberSize - Maximum cached certificates
- Number
- Cookie activation threshold
- max
Half NumberOpened Sa - Maximum half-opened SA
Import
The following command can be used to import a resource not managed by Terraform:
bash
$ pulumi import scm:index/vpnSetting:VpnSetting example folder:::id
or
bash
$ pulumi import scm:index/vpnSetting:VpnSetting example :snippet::id
or
bash
$ pulumi import scm:index/vpnSetting:VpnSetting example ::device:id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
