alicloud.esa.TransportLayerApplication
Explore with Pulumi AI
Import
ESA Transport Layer Application can be imported using the id, e.g.
$ pulumi import alicloud:esa/transportLayerApplication:TransportLayerApplication example <site_id>:<application_id>
Create TransportLayerApplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TransportLayerApplication(name: string, args: TransportLayerApplicationArgs, opts?: CustomResourceOptions);
@overload
def TransportLayerApplication(resource_name: str,
args: TransportLayerApplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TransportLayerApplication(resource_name: str,
opts: Optional[ResourceOptions] = None,
record_name: Optional[str] = None,
rules: Optional[Sequence[TransportLayerApplicationRuleArgs]] = None,
site_id: Optional[int] = None,
cross_border_optimization: Optional[str] = None,
ip_access_rule: Optional[str] = None,
ipv6: Optional[str] = None)
func NewTransportLayerApplication(ctx *Context, name string, args TransportLayerApplicationArgs, opts ...ResourceOption) (*TransportLayerApplication, error)
public TransportLayerApplication(string name, TransportLayerApplicationArgs args, CustomResourceOptions? opts = null)
public TransportLayerApplication(String name, TransportLayerApplicationArgs args)
public TransportLayerApplication(String name, TransportLayerApplicationArgs args, CustomResourceOptions options)
type: alicloud:esa:TransportLayerApplication
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 TransportLayerApplicationArgs
- 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 TransportLayerApplicationArgs
- 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 TransportLayerApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransportLayerApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TransportLayerApplicationArgs
- 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 transportLayerApplicationResource = new AliCloud.Esa.TransportLayerApplication("transportLayerApplicationResource", new()
{
RecordName = "string",
Rules = new[]
{
new AliCloud.Esa.Inputs.TransportLayerApplicationRuleArgs
{
ClientIpPassThroughMode = "string",
EdgePort = "string",
Protocol = "string",
Source = "string",
SourcePort = "string",
SourceType = "string",
Comment = "string",
RuleId = 0,
},
},
SiteId = 0,
CrossBorderOptimization = "string",
IpAccessRule = "string",
Ipv6 = "string",
});
example, err := esa.NewTransportLayerApplication(ctx, "transportLayerApplicationResource", &esa.TransportLayerApplicationArgs{
RecordName: pulumi.String("string"),
Rules: esa.TransportLayerApplicationRuleArray{
&esa.TransportLayerApplicationRuleArgs{
ClientIpPassThroughMode: pulumi.String("string"),
EdgePort: pulumi.String("string"),
Protocol: pulumi.String("string"),
Source: pulumi.String("string"),
SourcePort: pulumi.String("string"),
SourceType: pulumi.String("string"),
Comment: pulumi.String("string"),
RuleId: pulumi.Int(0),
},
},
SiteId: pulumi.Int(0),
CrossBorderOptimization: pulumi.String("string"),
IpAccessRule: pulumi.String("string"),
Ipv6: pulumi.String("string"),
})
var transportLayerApplicationResource = new TransportLayerApplication("transportLayerApplicationResource", TransportLayerApplicationArgs.builder()
.recordName("string")
.rules(TransportLayerApplicationRuleArgs.builder()
.clientIpPassThroughMode("string")
.edgePort("string")
.protocol("string")
.source("string")
.sourcePort("string")
.sourceType("string")
.comment("string")
.ruleId(0)
.build())
.siteId(0)
.crossBorderOptimization("string")
.ipAccessRule("string")
.ipv6("string")
.build());
transport_layer_application_resource = alicloud.esa.TransportLayerApplication("transportLayerApplicationResource",
record_name="string",
rules=[{
"client_ip_pass_through_mode": "string",
"edge_port": "string",
"protocol": "string",
"source": "string",
"source_port": "string",
"source_type": "string",
"comment": "string",
"rule_id": 0,
}],
site_id=0,
cross_border_optimization="string",
ip_access_rule="string",
ipv6="string")
const transportLayerApplicationResource = new alicloud.esa.TransportLayerApplication("transportLayerApplicationResource", {
recordName: "string",
rules: [{
clientIpPassThroughMode: "string",
edgePort: "string",
protocol: "string",
source: "string",
sourcePort: "string",
sourceType: "string",
comment: "string",
ruleId: 0,
}],
siteId: 0,
crossBorderOptimization: "string",
ipAccessRule: "string",
ipv6: "string",
});
type: alicloud:esa:TransportLayerApplication
properties:
crossBorderOptimization: string
ipAccessRule: string
ipv6: string
recordName: string
rules:
- clientIpPassThroughMode: string
comment: string
edgePort: string
protocol: string
ruleId: 0
source: string
sourcePort: string
sourceType: string
siteId: 0
TransportLayerApplication 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 TransportLayerApplication resource accepts the following input properties:
- Record
Name string - Domain name of the transport layer application
- Rules
List<Pulumi.
Ali Cloud. Esa. Inputs. Transport Layer Application Rule> - The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See
rules
below. - Site
Id int - Site ID.
- Cross
Border stringOptimization - Whether to enable China mainland network access optimization, default is disabled. Value range:
- Ip
Access stringRule - IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
- Ipv6 string
- IPv6 switch.
- Record
Name string - Domain name of the transport layer application
- Rules
[]Transport
Layer Application Rule Args - The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See
rules
below. - Site
Id int - Site ID.
- Cross
Border stringOptimization - Whether to enable China mainland network access optimization, default is disabled. Value range:
- Ip
Access stringRule - IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
- Ipv6 string
- IPv6 switch.
- record
Name String - Domain name of the transport layer application
- rules
List<Transport
Layer Application Rule> - The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See
rules
below. - site
Id Integer - Site ID.
- cross
Border StringOptimization - Whether to enable China mainland network access optimization, default is disabled. Value range:
- ip
Access StringRule - IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
- ipv6 String
- IPv6 switch.
- record
Name string - Domain name of the transport layer application
- rules
Transport
Layer Application Rule[] - The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See
rules
below. - site
Id number - Site ID.
- cross
Border stringOptimization - Whether to enable China mainland network access optimization, default is disabled. Value range:
- ip
Access stringRule - IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
- ipv6 string
- IPv6 switch.
- record_
name str - Domain name of the transport layer application
- rules
Sequence[Transport
Layer Application Rule Args] - The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See
rules
below. - site_
id int - Site ID.
- cross_
border_ stroptimization - Whether to enable China mainland network access optimization, default is disabled. Value range:
- ip_
access_ strrule - IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
- ipv6 str
- IPv6 switch.
- record
Name String - Domain name of the transport layer application
- rules List<Property Map>
- The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See
rules
below. - site
Id Number - Site ID.
- cross
Border StringOptimization - Whether to enable China mainland network access optimization, default is disabled. Value range:
- ip
Access StringRule - IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
- ipv6 String
- IPv6 switch.
Outputs
All input properties are implicitly available as output properties. Additionally, the TransportLayerApplication resource produces the following output properties:
- Application
Id int - Layer 4 application ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Status of the transport layer application, modification and deletion are not allowed.
- Application
Id int - Layer 4 application ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Status of the transport layer application, modification and deletion are not allowed.
- application
Id Integer - Layer 4 application ID.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Status of the transport layer application, modification and deletion are not allowed.
- application
Id number - Layer 4 application ID.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Status of the transport layer application, modification and deletion are not allowed.
- application_
id int - Layer 4 application ID.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Status of the transport layer application, modification and deletion are not allowed.
- application
Id Number - Layer 4 application ID.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Status of the transport layer application, modification and deletion are not allowed.
Look up Existing TransportLayerApplication Resource
Get an existing TransportLayerApplication 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?: TransportLayerApplicationState, opts?: CustomResourceOptions): TransportLayerApplication
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[int] = None,
cross_border_optimization: Optional[str] = None,
ip_access_rule: Optional[str] = None,
ipv6: Optional[str] = None,
record_name: Optional[str] = None,
rules: Optional[Sequence[TransportLayerApplicationRuleArgs]] = None,
site_id: Optional[int] = None,
status: Optional[str] = None) -> TransportLayerApplication
func GetTransportLayerApplication(ctx *Context, name string, id IDInput, state *TransportLayerApplicationState, opts ...ResourceOption) (*TransportLayerApplication, error)
public static TransportLayerApplication Get(string name, Input<string> id, TransportLayerApplicationState? state, CustomResourceOptions? opts = null)
public static TransportLayerApplication get(String name, Output<String> id, TransportLayerApplicationState state, CustomResourceOptions options)
resources: _: type: alicloud:esa:TransportLayerApplication 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.
- Application
Id int - Layer 4 application ID.
- Cross
Border stringOptimization - Whether to enable China mainland network access optimization, default is disabled. Value range:
- Ip
Access stringRule - IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
- Ipv6 string
- IPv6 switch.
- Record
Name string - Domain name of the transport layer application
- Rules
List<Pulumi.
Ali Cloud. Esa. Inputs. Transport Layer Application Rule> - The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See
rules
below. - Site
Id int - Site ID.
- Status string
- Status of the transport layer application, modification and deletion are not allowed.
- Application
Id int - Layer 4 application ID.
- Cross
Border stringOptimization - Whether to enable China mainland network access optimization, default is disabled. Value range:
- Ip
Access stringRule - IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
- Ipv6 string
- IPv6 switch.
- Record
Name string - Domain name of the transport layer application
- Rules
[]Transport
Layer Application Rule Args - The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See
rules
below. - Site
Id int - Site ID.
- Status string
- Status of the transport layer application, modification and deletion are not allowed.
- application
Id Integer - Layer 4 application ID.
- cross
Border StringOptimization - Whether to enable China mainland network access optimization, default is disabled. Value range:
- ip
Access StringRule - IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
- ipv6 String
- IPv6 switch.
- record
Name String - Domain name of the transport layer application
- rules
List<Transport
Layer Application Rule> - The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See
rules
below. - site
Id Integer - Site ID.
- status String
- Status of the transport layer application, modification and deletion are not allowed.
- application
Id number - Layer 4 application ID.
- cross
Border stringOptimization - Whether to enable China mainland network access optimization, default is disabled. Value range:
- ip
Access stringRule - IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
- ipv6 string
- IPv6 switch.
- record
Name string - Domain name of the transport layer application
- rules
Transport
Layer Application Rule[] - The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See
rules
below. - site
Id number - Site ID.
- status string
- Status of the transport layer application, modification and deletion are not allowed.
- application_
id int - Layer 4 application ID.
- cross_
border_ stroptimization - Whether to enable China mainland network access optimization, default is disabled. Value range:
- ip_
access_ strrule - IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
- ipv6 str
- IPv6 switch.
- record_
name str - Domain name of the transport layer application
- rules
Sequence[Transport
Layer Application Rule Args] - The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See
rules
below. - site_
id int - Site ID.
- status str
- Status of the transport layer application, modification and deletion are not allowed.
- application
Id Number - Layer 4 application ID.
- cross
Border StringOptimization - Whether to enable China mainland network access optimization, default is disabled. Value range:
- ip
Access StringRule - IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
- ipv6 String
- IPv6 switch.
- record
Name String - Domain name of the transport layer application
- rules List<Property Map>
- The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See
rules
below. - site
Id Number - Site ID.
- status String
- Status of the transport layer application, modification and deletion are not allowed.
Supporting Types
TransportLayerApplicationRule, TransportLayerApplicationRuleArgs
- Client
Ip stringPass Through Mode - Client IP pass-through protocol, supporting:
- Edge
Port string Edge port. Supports:
- A single port, such as 80.
- Port range, such as 81-85, representing ports 81, 82, 83, 84, and 85.
- Combination of ports and port ranges, separated by commas, such as 80,81-85,90, representing ports 80, 81, 82, 83, 84, 85, and 90.
Edge ports within a single rule and between multiple rules must not overlap.
- Protocol string
- Forwarding rule protocol, with values:
TCP
: TCP protocol.UDP
: UDP protocol.
- Source string
- Specific value of the origin, which needs to match the origin type.
- Source
Port string - Source Port
- Source
Type string - Origin type, supporting:
- Comment string
- Comment information for the rule (optional).
- Rule
Id int - Rule ID
- Client
Ip stringPass Through Mode - Client IP pass-through protocol, supporting:
- Edge
Port string Edge port. Supports:
- A single port, such as 80.
- Port range, such as 81-85, representing ports 81, 82, 83, 84, and 85.
- Combination of ports and port ranges, separated by commas, such as 80,81-85,90, representing ports 80, 81, 82, 83, 84, 85, and 90.
Edge ports within a single rule and between multiple rules must not overlap.
- Protocol string
- Forwarding rule protocol, with values:
TCP
: TCP protocol.UDP
: UDP protocol.
- Source string
- Specific value of the origin, which needs to match the origin type.
- Source
Port string - Source Port
- Source
Type string - Origin type, supporting:
- Comment string
- Comment information for the rule (optional).
- Rule
Id int - Rule ID
- client
Ip StringPass Through Mode - Client IP pass-through protocol, supporting:
- edge
Port String Edge port. Supports:
- A single port, such as 80.
- Port range, such as 81-85, representing ports 81, 82, 83, 84, and 85.
- Combination of ports and port ranges, separated by commas, such as 80,81-85,90, representing ports 80, 81, 82, 83, 84, 85, and 90.
Edge ports within a single rule and between multiple rules must not overlap.
- protocol String
- Forwarding rule protocol, with values:
TCP
: TCP protocol.UDP
: UDP protocol.
- source String
- Specific value of the origin, which needs to match the origin type.
- source
Port String - Source Port
- source
Type String - Origin type, supporting:
- comment String
- Comment information for the rule (optional).
- rule
Id Integer - Rule ID
- client
Ip stringPass Through Mode - Client IP pass-through protocol, supporting:
- edge
Port string Edge port. Supports:
- A single port, such as 80.
- Port range, such as 81-85, representing ports 81, 82, 83, 84, and 85.
- Combination of ports and port ranges, separated by commas, such as 80,81-85,90, representing ports 80, 81, 82, 83, 84, 85, and 90.
Edge ports within a single rule and between multiple rules must not overlap.
- protocol string
- Forwarding rule protocol, with values:
TCP
: TCP protocol.UDP
: UDP protocol.
- source string
- Specific value of the origin, which needs to match the origin type.
- source
Port string - Source Port
- source
Type string - Origin type, supporting:
- comment string
- Comment information for the rule (optional).
- rule
Id number - Rule ID
- client_
ip_ strpass_ through_ mode - Client IP pass-through protocol, supporting:
- edge_
port str Edge port. Supports:
- A single port, such as 80.
- Port range, such as 81-85, representing ports 81, 82, 83, 84, and 85.
- Combination of ports and port ranges, separated by commas, such as 80,81-85,90, representing ports 80, 81, 82, 83, 84, 85, and 90.
Edge ports within a single rule and between multiple rules must not overlap.
- protocol str
- Forwarding rule protocol, with values:
TCP
: TCP protocol.UDP
: UDP protocol.
- source str
- Specific value of the origin, which needs to match the origin type.
- source_
port str - Source Port
- source_
type str - Origin type, supporting:
- comment str
- Comment information for the rule (optional).
- rule_
id int - Rule ID
- client
Ip StringPass Through Mode - Client IP pass-through protocol, supporting:
- edge
Port String Edge port. Supports:
- A single port, such as 80.
- Port range, such as 81-85, representing ports 81, 82, 83, 84, and 85.
- Combination of ports and port ranges, separated by commas, such as 80,81-85,90, representing ports 80, 81, 82, 83, 84, 85, and 90.
Edge ports within a single rule and between multiple rules must not overlap.
- protocol String
- Forwarding rule protocol, with values:
TCP
: TCP protocol.UDP
: UDP protocol.
- source String
- Specific value of the origin, which needs to match the origin type.
- source
Port String - Source Port
- source
Type String - Origin type, supporting:
- comment String
- Comment information for the rule (optional).
- rule
Id Number - Rule ID
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.