TcpSetting resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const tcpExample = new scm.TcpSetting("tcp_example", {
folder: "All",
tcp: {
bypassExceedOoQueue: false,
allowChallengeAck: true,
checkTimestampOption: true,
asymmetricPath: "drop",
urgentData: "clear",
dropZeroFlag: true,
stripMptcpOption: true,
siptcpCleartextProxy: "0",
tcpRetransmitScan: true,
},
});
import pulumi
import pulumi_scm as scm
tcp_example = scm.TcpSetting("tcp_example",
folder="All",
tcp={
"bypass_exceed_oo_queue": False,
"allow_challenge_ack": True,
"check_timestamp_option": True,
"asymmetric_path": "drop",
"urgent_data": "clear",
"drop_zero_flag": True,
"strip_mptcp_option": True,
"siptcp_cleartext_proxy": "0",
"tcp_retransmit_scan": True,
})
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.NewTcpSetting(ctx, "tcp_example", &scm.TcpSettingArgs{
Folder: pulumi.String("All"),
Tcp: &scm.TcpSettingTcpArgs{
BypassExceedOoQueue: pulumi.Bool(false),
AllowChallengeAck: pulumi.Bool(true),
CheckTimestampOption: pulumi.Bool(true),
AsymmetricPath: pulumi.String("drop"),
UrgentData: pulumi.String("clear"),
DropZeroFlag: pulumi.Bool(true),
StripMptcpOption: pulumi.Bool(true),
SiptcpCleartextProxy: pulumi.String("0"),
TcpRetransmitScan: pulumi.Bool(true),
},
})
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.TcpSetting("tcp_example", new()
{
Folder = "All",
Tcp = new Scm.Inputs.TcpSettingTcpArgs
{
BypassExceedOoQueue = false,
AllowChallengeAck = true,
CheckTimestampOption = true,
AsymmetricPath = "drop",
UrgentData = "clear",
DropZeroFlag = true,
StripMptcpOption = true,
SiptcpCleartextProxy = "0",
TcpRetransmitScan = true,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.TcpSetting;
import com.pulumi.scm.TcpSettingArgs;
import com.pulumi.scm.inputs.TcpSettingTcpArgs;
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 TcpSetting("tcpExample", TcpSettingArgs.builder()
.folder("All")
.tcp(TcpSettingTcpArgs.builder()
.bypassExceedOoQueue(false)
.allowChallengeAck(true)
.checkTimestampOption(true)
.asymmetricPath("drop")
.urgentData("clear")
.dropZeroFlag(true)
.stripMptcpOption(true)
.siptcpCleartextProxy("0")
.tcpRetransmitScan(true)
.build())
.build());
}
}
resources:
tcpExample:
type: scm:TcpSetting
name: tcp_example
properties:
folder: All
tcp:
bypassExceedOoQueue: false
allowChallengeAck: true
checkTimestampOption: true
asymmetricPath: drop
urgentData: clear
dropZeroFlag: true
stripMptcpOption: true
siptcpCleartextProxy: '0'
tcpRetransmitScan: true
Create TcpSetting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TcpSetting(name: string, args?: TcpSettingArgs, opts?: CustomResourceOptions);@overload
def TcpSetting(resource_name: str,
args: Optional[TcpSettingArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def TcpSetting(resource_name: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
snippet: Optional[str] = None,
tcp: Optional[TcpSettingTcpArgs] = None)func NewTcpSetting(ctx *Context, name string, args *TcpSettingArgs, opts ...ResourceOption) (*TcpSetting, error)public TcpSetting(string name, TcpSettingArgs? args = null, CustomResourceOptions? opts = null)
public TcpSetting(String name, TcpSettingArgs args)
public TcpSetting(String name, TcpSettingArgs args, CustomResourceOptions options)
type: scm:TcpSetting
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 TcpSettingArgs
- 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 TcpSettingArgs
- 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 TcpSettingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TcpSettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TcpSettingArgs
- 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 tcpSettingResource = new Scm.TcpSetting("tcpSettingResource", new()
{
Device = "string",
Folder = "string",
Snippet = "string",
Tcp = new Scm.Inputs.TcpSettingTcpArgs
{
AllowChallengeAck = false,
AsymmetricPath = "string",
BypassExceedOoQueue = false,
CheckTimestampOption = false,
DropZeroFlag = false,
SiptcpCleartextProxy = "string",
StripMptcpOption = false,
TcpRetransmitScan = false,
UrgentData = "string",
},
});
example, err := scm.NewTcpSetting(ctx, "tcpSettingResource", &scm.TcpSettingArgs{
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Snippet: pulumi.String("string"),
Tcp: &scm.TcpSettingTcpArgs{
AllowChallengeAck: pulumi.Bool(false),
AsymmetricPath: pulumi.String("string"),
BypassExceedOoQueue: pulumi.Bool(false),
CheckTimestampOption: pulumi.Bool(false),
DropZeroFlag: pulumi.Bool(false),
SiptcpCleartextProxy: pulumi.String("string"),
StripMptcpOption: pulumi.Bool(false),
TcpRetransmitScan: pulumi.Bool(false),
UrgentData: pulumi.String("string"),
},
})
var tcpSettingResource = new TcpSetting("tcpSettingResource", TcpSettingArgs.builder()
.device("string")
.folder("string")
.snippet("string")
.tcp(TcpSettingTcpArgs.builder()
.allowChallengeAck(false)
.asymmetricPath("string")
.bypassExceedOoQueue(false)
.checkTimestampOption(false)
.dropZeroFlag(false)
.siptcpCleartextProxy("string")
.stripMptcpOption(false)
.tcpRetransmitScan(false)
.urgentData("string")
.build())
.build());
tcp_setting_resource = scm.TcpSetting("tcpSettingResource",
device="string",
folder="string",
snippet="string",
tcp={
"allow_challenge_ack": False,
"asymmetric_path": "string",
"bypass_exceed_oo_queue": False,
"check_timestamp_option": False,
"drop_zero_flag": False,
"siptcp_cleartext_proxy": "string",
"strip_mptcp_option": False,
"tcp_retransmit_scan": False,
"urgent_data": "string",
})
const tcpSettingResource = new scm.TcpSetting("tcpSettingResource", {
device: "string",
folder: "string",
snippet: "string",
tcp: {
allowChallengeAck: false,
asymmetricPath: "string",
bypassExceedOoQueue: false,
checkTimestampOption: false,
dropZeroFlag: false,
siptcpCleartextProxy: "string",
stripMptcpOption: false,
tcpRetransmitScan: false,
urgentData: "string",
},
});
type: scm:TcpSetting
properties:
device: string
folder: string
snippet: string
tcp:
allowChallengeAck: false
asymmetricPath: string
bypassExceedOoQueue: false
checkTimestampOption: false
dropZeroFlag: false
siptcpCleartextProxy: string
stripMptcpOption: false
tcpRetransmitScan: false
urgentData: string
TcpSetting 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 TcpSetting 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.- Tcp
Tcp
Setting Tcp - Tcp
- 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.- Tcp
Tcp
Setting Tcp Args - Tcp
- 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.- tcp
Tcp
Setting Tcp - Tcp
- 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.- tcp
Tcp
Setting Tcp - Tcp
- 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.- tcp
Tcp
Setting Tcp Args - Tcp
- 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.- tcp Property Map
- Tcp
Outputs
All input properties are implicitly available as output properties. Additionally, the TcpSetting resource produces the following output properties:
Look up Existing TcpSetting Resource
Get an existing TcpSetting 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?: TcpSettingState, opts?: CustomResourceOptions): TcpSetting@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
snippet: Optional[str] = None,
tcp: Optional[TcpSettingTcpArgs] = None,
tfid: Optional[str] = None) -> TcpSettingfunc GetTcpSetting(ctx *Context, name string, id IDInput, state *TcpSettingState, opts ...ResourceOption) (*TcpSetting, error)public static TcpSetting Get(string name, Input<string> id, TcpSettingState? state, CustomResourceOptions? opts = null)public static TcpSetting get(String name, Output<String> id, TcpSettingState state, CustomResourceOptions options)resources: _: type: scm:TcpSetting 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.- Tcp
Tcp
Setting Tcp - Tcp
- Tfid string
- 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.- Tcp
Tcp
Setting Tcp Args - Tcp
- Tfid string
- 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.- tcp
Tcp
Setting Tcp - Tcp
- tfid String
- 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.- tcp
Tcp
Setting Tcp - Tcp
- tfid string
- 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.- tcp
Tcp
Setting Tcp Args - Tcp
- tfid str
- 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.- tcp Property Map
- Tcp
- tfid String
Supporting Types
TcpSettingTcp, TcpSettingTcpArgs
- Allow
Challenge boolAck - Allow arbitrary ACK in response to SYN?
- Asymmetric
Path string - Asymmetric path action
- Bypass
Exceed boolOo Queue - Forward segments exceeding TCP out-of-order queue?
- Check
Timestamp boolOption - Drop segments with null timestamp option?
- Drop
Zero boolFlag - Drop segments without flag?
- Siptcp
Cleartext stringProxy - SIP TCP cleartext action (
'0'= Always Off,'1'= Always Enabled,'2'= Automatically enable proxy when needed) - Strip
Mptcp boolOption - Strip MPTCP option?
- Tcp
Retransmit boolScan - TCP retransmit scan?
- Urgent
Data string - Urgent data flag action
- Allow
Challenge boolAck - Allow arbitrary ACK in response to SYN?
- Asymmetric
Path string - Asymmetric path action
- Bypass
Exceed boolOo Queue - Forward segments exceeding TCP out-of-order queue?
- Check
Timestamp boolOption - Drop segments with null timestamp option?
- Drop
Zero boolFlag - Drop segments without flag?
- Siptcp
Cleartext stringProxy - SIP TCP cleartext action (
'0'= Always Off,'1'= Always Enabled,'2'= Automatically enable proxy when needed) - Strip
Mptcp boolOption - Strip MPTCP option?
- Tcp
Retransmit boolScan - TCP retransmit scan?
- Urgent
Data string - Urgent data flag action
- allow
Challenge BooleanAck - Allow arbitrary ACK in response to SYN?
- asymmetric
Path String - Asymmetric path action
- bypass
Exceed BooleanOo Queue - Forward segments exceeding TCP out-of-order queue?
- check
Timestamp BooleanOption - Drop segments with null timestamp option?
- drop
Zero BooleanFlag - Drop segments without flag?
- siptcp
Cleartext StringProxy - SIP TCP cleartext action (
'0'= Always Off,'1'= Always Enabled,'2'= Automatically enable proxy when needed) - strip
Mptcp BooleanOption - Strip MPTCP option?
- tcp
Retransmit BooleanScan - TCP retransmit scan?
- urgent
Data String - Urgent data flag action
- allow
Challenge booleanAck - Allow arbitrary ACK in response to SYN?
- asymmetric
Path string - Asymmetric path action
- bypass
Exceed booleanOo Queue - Forward segments exceeding TCP out-of-order queue?
- check
Timestamp booleanOption - Drop segments with null timestamp option?
- drop
Zero booleanFlag - Drop segments without flag?
- siptcp
Cleartext stringProxy - SIP TCP cleartext action (
'0'= Always Off,'1'= Always Enabled,'2'= Automatically enable proxy when needed) - strip
Mptcp booleanOption - Strip MPTCP option?
- tcp
Retransmit booleanScan - TCP retransmit scan?
- urgent
Data string - Urgent data flag action
- allow_
challenge_ boolack - Allow arbitrary ACK in response to SYN?
- asymmetric_
path str - Asymmetric path action
- bypass_
exceed_ booloo_ queue - Forward segments exceeding TCP out-of-order queue?
- check_
timestamp_ booloption - Drop segments with null timestamp option?
- drop_
zero_ boolflag - Drop segments without flag?
- siptcp_
cleartext_ strproxy - SIP TCP cleartext action (
'0'= Always Off,'1'= Always Enabled,'2'= Automatically enable proxy when needed) - strip_
mptcp_ booloption - Strip MPTCP option?
- tcp_
retransmit_ boolscan - TCP retransmit scan?
- urgent_
data str - Urgent data flag action
- allow
Challenge BooleanAck - Allow arbitrary ACK in response to SYN?
- asymmetric
Path String - Asymmetric path action
- bypass
Exceed BooleanOo Queue - Forward segments exceeding TCP out-of-order queue?
- check
Timestamp BooleanOption - Drop segments with null timestamp option?
- drop
Zero BooleanFlag - Drop segments without flag?
- siptcp
Cleartext StringProxy - SIP TCP cleartext action (
'0'= Always Off,'1'= Always Enabled,'2'= Automatically enable proxy when needed) - strip
Mptcp BooleanOption - Strip MPTCP option?
- tcp
Retransmit BooleanScan - TCP retransmit scan?
- urgent
Data String - Urgent data flag action
Import
The following command can be used to import a resource not managed by Terraform:
bash
$ pulumi import scm:index/tcpSetting:TcpSetting example folder:::id
or
bash
$ pulumi import scm:index/tcpSetting:TcpSetting example :snippet::id
or
bash
$ pulumi import scm:index/tcpSetting:TcpSetting 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.
