alicloud.sae.LoadBalancerInternet
Provides an Alicloud Serverless App Engine (SAE) Application Load Balancer Attachment resource.
For information about Serverless App Engine (SAE) Load Balancer Internet Attachment and how to use it, see alicloud.sae.LoadBalancerInternet.
NOTE: Available in v1.164.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Sae.LoadBalancerInternet("example", new()
{
AppId = "your_application_id",
Internets = new[]
{
new AliCloud.Sae.Inputs.LoadBalancerInternetInternetArgs
{
Port = 80,
Protocol = "TCP",
TargetPort = 8080,
},
},
InternetSlbId = "your_internet_slb_id",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sae.NewLoadBalancerInternet(ctx, "example", &sae.LoadBalancerInternetArgs{
AppId: pulumi.String("your_application_id"),
Internets: sae.LoadBalancerInternetInternetArray{
&sae.LoadBalancerInternetInternetArgs{
Port: pulumi.Int(80),
Protocol: pulumi.String("TCP"),
TargetPort: pulumi.Int(8080),
},
},
InternetSlbId: pulumi.String("your_internet_slb_id"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.sae.LoadBalancerInternet;
import com.pulumi.alicloud.sae.LoadBalancerInternetArgs;
import com.pulumi.alicloud.sae.inputs.LoadBalancerInternetInternetArgs;
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 example = new LoadBalancerInternet("example", LoadBalancerInternetArgs.builder()
.appId("your_application_id")
.internets(LoadBalancerInternetInternetArgs.builder()
.port(80)
.protocol("TCP")
.targetPort(8080)
.build())
.internetSlbId("your_internet_slb_id")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.sae.LoadBalancerInternet("example",
app_id="your_application_id",
internets=[alicloud.sae.LoadBalancerInternetInternetArgs(
port=80,
protocol="TCP",
target_port=8080,
)],
internet_slb_id="your_internet_slb_id")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.sae.LoadBalancerInternet("example", {
appId: "your_application_id",
internets: [{
port: 80,
protocol: "TCP",
targetPort: 8080,
}],
internetSlbId: "your_internet_slb_id",
});
resources:
example:
type: alicloud:sae:LoadBalancerInternet
properties:
appId: your_application_id
internets:
- port: 80
protocol: TCP
targetPort: 8080
internetSlbId: your_internet_slb_id
Create LoadBalancerInternet Resource
new LoadBalancerInternet(name: string, args: LoadBalancerInternetArgs, opts?: CustomResourceOptions);
@overload
def LoadBalancerInternet(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
internet_slb_id: Optional[str] = None,
internets: Optional[Sequence[LoadBalancerInternetInternetArgs]] = None)
@overload
def LoadBalancerInternet(resource_name: str,
args: LoadBalancerInternetArgs,
opts: Optional[ResourceOptions] = None)
func NewLoadBalancerInternet(ctx *Context, name string, args LoadBalancerInternetArgs, opts ...ResourceOption) (*LoadBalancerInternet, error)
public LoadBalancerInternet(string name, LoadBalancerInternetArgs args, CustomResourceOptions? opts = null)
public LoadBalancerInternet(String name, LoadBalancerInternetArgs args)
public LoadBalancerInternet(String name, LoadBalancerInternetArgs args, CustomResourceOptions options)
type: alicloud:sae:LoadBalancerInternet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadBalancerInternetArgs
- 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 LoadBalancerInternetArgs
- 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 LoadBalancerInternetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadBalancerInternetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoadBalancerInternetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LoadBalancerInternet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The LoadBalancerInternet resource accepts the following input properties:
- App
Id string The target application ID that needs to be bound to the SLB.
- Internets
List<Pulumi.
Ali Cloud. Sae. Inputs. Load Balancer Internet Internet Args> The bound private network SLB. See the following
Block internet
.- Internet
Slb stringId The internet SLB ID.
- App
Id string The target application ID that needs to be bound to the SLB.
- Internets
[]Load
Balancer Internet Internet Args The bound private network SLB. See the following
Block internet
.- Internet
Slb stringId The internet SLB ID.
- app
Id String The target application ID that needs to be bound to the SLB.
- internets
List<Load
Balancer Internet Internet Args> The bound private network SLB. See the following
Block internet
.- internet
Slb StringId The internet SLB ID.
- app
Id string The target application ID that needs to be bound to the SLB.
- internets
Load
Balancer Internet Internet Args[] The bound private network SLB. See the following
Block internet
.- internet
Slb stringId The internet SLB ID.
- app_
id str The target application ID that needs to be bound to the SLB.
- internets
Sequence[Load
Balancer Internet Internet Args] The bound private network SLB. See the following
Block internet
.- internet_
slb_ strid The internet SLB ID.
- app
Id String The target application ID that needs to be bound to the SLB.
- internets List<Property Map>
The bound private network SLB. See the following
Block internet
.- internet
Slb StringId The internet SLB ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadBalancerInternet resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Internet
Ip string Use designated public network SLBs that have been purchased to support non-shared instances.
- Id string
The provider-assigned unique ID for this managed resource.
- Internet
Ip string Use designated public network SLBs that have been purchased to support non-shared instances.
- id String
The provider-assigned unique ID for this managed resource.
- internet
Ip String Use designated public network SLBs that have been purchased to support non-shared instances.
- id string
The provider-assigned unique ID for this managed resource.
- internet
Ip string Use designated public network SLBs that have been purchased to support non-shared instances.
- id str
The provider-assigned unique ID for this managed resource.
- internet_
ip str Use designated public network SLBs that have been purchased to support non-shared instances.
- id String
The provider-assigned unique ID for this managed resource.
- internet
Ip String Use designated public network SLBs that have been purchased to support non-shared instances.
Look up Existing LoadBalancerInternet Resource
Get an existing LoadBalancerInternet 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?: LoadBalancerInternetState, opts?: CustomResourceOptions): LoadBalancerInternet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
internet_ip: Optional[str] = None,
internet_slb_id: Optional[str] = None,
internets: Optional[Sequence[LoadBalancerInternetInternetArgs]] = None) -> LoadBalancerInternet
func GetLoadBalancerInternet(ctx *Context, name string, id IDInput, state *LoadBalancerInternetState, opts ...ResourceOption) (*LoadBalancerInternet, error)
public static LoadBalancerInternet Get(string name, Input<string> id, LoadBalancerInternetState? state, CustomResourceOptions? opts = null)
public static LoadBalancerInternet get(String name, Output<String> id, LoadBalancerInternetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- App
Id string The target application ID that needs to be bound to the SLB.
- Internet
Ip string Use designated public network SLBs that have been purchased to support non-shared instances.
- Internet
Slb stringId The internet SLB ID.
- Internets
List<Pulumi.
Ali Cloud. Sae. Inputs. Load Balancer Internet Internet Args> The bound private network SLB. See the following
Block internet
.
- App
Id string The target application ID that needs to be bound to the SLB.
- Internet
Ip string Use designated public network SLBs that have been purchased to support non-shared instances.
- Internet
Slb stringId The internet SLB ID.
- Internets
[]Load
Balancer Internet Internet Args The bound private network SLB. See the following
Block internet
.
- app
Id String The target application ID that needs to be bound to the SLB.
- internet
Ip String Use designated public network SLBs that have been purchased to support non-shared instances.
- internet
Slb StringId The internet SLB ID.
- internets
List<Load
Balancer Internet Internet Args> The bound private network SLB. See the following
Block internet
.
- app
Id string The target application ID that needs to be bound to the SLB.
- internet
Ip string Use designated public network SLBs that have been purchased to support non-shared instances.
- internet
Slb stringId The internet SLB ID.
- internets
Load
Balancer Internet Internet Args[] The bound private network SLB. See the following
Block internet
.
- app_
id str The target application ID that needs to be bound to the SLB.
- internet_
ip str Use designated public network SLBs that have been purchased to support non-shared instances.
- internet_
slb_ strid The internet SLB ID.
- internets
Sequence[Load
Balancer Internet Internet Args] The bound private network SLB. See the following
Block internet
.
- app
Id String The target application ID that needs to be bound to the SLB.
- internet
Ip String Use designated public network SLBs that have been purchased to support non-shared instances.
- internet
Slb StringId The internet SLB ID.
- internets List<Property Map>
The bound private network SLB. See the following
Block internet
.
Supporting Types
LoadBalancerInternetInternet
- Https
Cert stringId The SSL certificate.
https_cert_id
is required when HTTPS is selected- Port int
The SLB Port.
- Protocol string
The Network protocol. Valid values:
TCP
,HTTP
,HTTPS
.- Target
Port int The Container port.
- Https
Cert stringId The SSL certificate.
https_cert_id
is required when HTTPS is selected- Port int
The SLB Port.
- Protocol string
The Network protocol. Valid values:
TCP
,HTTP
,HTTPS
.- Target
Port int The Container port.
- https
Cert StringId The SSL certificate.
https_cert_id
is required when HTTPS is selected- port Integer
The SLB Port.
- protocol String
The Network protocol. Valid values:
TCP
,HTTP
,HTTPS
.- target
Port Integer The Container port.
- https
Cert stringId The SSL certificate.
https_cert_id
is required when HTTPS is selected- port number
The SLB Port.
- protocol string
The Network protocol. Valid values:
TCP
,HTTP
,HTTPS
.- target
Port number The Container port.
- https_
cert_ strid The SSL certificate.
https_cert_id
is required when HTTPS is selected- port int
The SLB Port.
- protocol str
The Network protocol. Valid values:
TCP
,HTTP
,HTTPS
.- target_
port int The Container port.
- https
Cert StringId The SSL certificate.
https_cert_id
is required when HTTPS is selected- port Number
The SLB Port.
- protocol String
The Network protocol. Valid values:
TCP
,HTTP
,HTTPS
.- target
Port Number The Container port.
Import
The resource can be imported using the id, e.g.
$ pulumi import alicloud:sae/loadBalancerInternet:LoadBalancerInternet example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.