1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. esa
  5. TransportLayerApplication
Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi

alicloud.esa.TransportLayerApplication

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi

    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:

    RecordName string
    Domain name of the transport layer application
    Rules List<Pulumi.AliCloud.Esa.Inputs.TransportLayerApplicationRule>
    The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See rules below.
    SiteId int
    Site ID.
    CrossBorderOptimization string
    Whether to enable China mainland network access optimization, default is disabled. Value range:
    IpAccessRule string
    IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
    Ipv6 string
    IPv6 switch.
    RecordName string
    Domain name of the transport layer application
    Rules []TransportLayerApplicationRuleArgs
    The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See rules below.
    SiteId int
    Site ID.
    CrossBorderOptimization string
    Whether to enable China mainland network access optimization, default is disabled. Value range:
    IpAccessRule string
    IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
    Ipv6 string
    IPv6 switch.
    recordName String
    Domain name of the transport layer application
    rules List<TransportLayerApplicationRule>
    The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See rules below.
    siteId Integer
    Site ID.
    crossBorderOptimization String
    Whether to enable China mainland network access optimization, default is disabled. Value range:
    ipAccessRule String
    IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
    ipv6 String
    IPv6 switch.
    recordName string
    Domain name of the transport layer application
    rules TransportLayerApplicationRule[]
    The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See rules below.
    siteId number
    Site ID.
    crossBorderOptimization string
    Whether to enable China mainland network access optimization, default is disabled. Value range:
    ipAccessRule string
    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[TransportLayerApplicationRuleArgs]
    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_optimization str
    Whether to enable China mainland network access optimization, default is disabled. Value range:
    ip_access_rule str
    IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
    ipv6 str
    IPv6 switch.
    recordName 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.
    siteId Number
    Site ID.
    crossBorderOptimization String
    Whether to enable China mainland network access optimization, default is disabled. Value range:
    ipAccessRule String
    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:

    ApplicationId 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.
    ApplicationId 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.
    applicationId 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.
    applicationId 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.
    applicationId 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.
    The following state arguments are supported:
    ApplicationId int
    Layer 4 application ID.
    CrossBorderOptimization string
    Whether to enable China mainland network access optimization, default is disabled. Value range:
    IpAccessRule string
    IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
    Ipv6 string
    IPv6 switch.
    RecordName string
    Domain name of the transport layer application
    Rules List<Pulumi.AliCloud.Esa.Inputs.TransportLayerApplicationRule>
    The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See rules below.
    SiteId int
    Site ID.
    Status string
    Status of the transport layer application, modification and deletion are not allowed.
    ApplicationId int
    Layer 4 application ID.
    CrossBorderOptimization string
    Whether to enable China mainland network access optimization, default is disabled. Value range:
    IpAccessRule string
    IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
    Ipv6 string
    IPv6 switch.
    RecordName string
    Domain name of the transport layer application
    Rules []TransportLayerApplicationRuleArgs
    The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See rules below.
    SiteId int
    Site ID.
    Status string
    Status of the transport layer application, modification and deletion are not allowed.
    applicationId Integer
    Layer 4 application ID.
    crossBorderOptimization String
    Whether to enable China mainland network access optimization, default is disabled. Value range:
    ipAccessRule String
    IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
    ipv6 String
    IPv6 switch.
    recordName String
    Domain name of the transport layer application
    rules List<TransportLayerApplicationRule>
    The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See rules below.
    siteId Integer
    Site ID.
    status String
    Status of the transport layer application, modification and deletion are not allowed.
    applicationId number
    Layer 4 application ID.
    crossBorderOptimization string
    Whether to enable China mainland network access optimization, default is disabled. Value range:
    ipAccessRule string
    IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
    ipv6 string
    IPv6 switch.
    recordName string
    Domain name of the transport layer application
    rules TransportLayerApplicationRule[]
    The list of forwarding rules. Rule details. For each rule, other parameters are required except comments. See rules below.
    siteId 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_optimization str
    Whether to enable China mainland network access optimization, default is disabled. Value range:
    ip_access_rule str
    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[TransportLayerApplicationRuleArgs]
    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.
    applicationId Number
    Layer 4 application ID.
    crossBorderOptimization String
    Whether to enable China mainland network access optimization, default is disabled. Value range:
    ipAccessRule String
    IP access rule switch. When enabled, the WAF's IP access rules apply to the transport layer application.
    ipv6 String
    IPv6 switch.
    recordName 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.
    siteId Number
    Site ID.
    status String
    Status of the transport layer application, modification and deletion are not allowed.

    Supporting Types

    TransportLayerApplicationRule, TransportLayerApplicationRuleArgs

    ClientIpPassThroughMode string
    Client IP pass-through protocol, supporting:
    EdgePort 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.
    SourcePort string
    Source Port
    SourceType string
    Origin type, supporting:
    Comment string
    Comment information for the rule (optional).
    RuleId int
    Rule ID
    ClientIpPassThroughMode string
    Client IP pass-through protocol, supporting:
    EdgePort 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.
    SourcePort string
    Source Port
    SourceType string
    Origin type, supporting:
    Comment string
    Comment information for the rule (optional).
    RuleId int
    Rule ID
    clientIpPassThroughMode String
    Client IP pass-through protocol, supporting:
    edgePort 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.
    sourcePort String
    Source Port
    sourceType String
    Origin type, supporting:
    comment String
    Comment information for the rule (optional).
    ruleId Integer
    Rule ID
    clientIpPassThroughMode string
    Client IP pass-through protocol, supporting:
    edgePort 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.
    sourcePort string
    Source Port
    sourceType string
    Origin type, supporting:
    comment string
    Comment information for the rule (optional).
    ruleId number
    Rule ID
    client_ip_pass_through_mode str
    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
    clientIpPassThroughMode String
    Client IP pass-through protocol, supporting:
    edgePort 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.
    sourcePort String
    Source Port
    sourceType String
    Origin type, supporting:
    comment String
    Comment information for the rule (optional).
    ruleId 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.
    alicloud logo
    Alibaba Cloud v3.86.1 published on Saturday, Sep 27, 2025 by Pulumi
      AI Agentic Workflows: Register now