alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

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:

AppId string

The target application ID that needs to be bound to the SLB.

Internets List<Pulumi.AliCloud.Sae.Inputs.LoadBalancerInternetInternetArgs>

The bound private network SLB. See the following Block internet.

InternetSlbId string

The internet SLB ID.

AppId string

The target application ID that needs to be bound to the SLB.

Internets []LoadBalancerInternetInternetArgs

The bound private network SLB. See the following Block internet.

InternetSlbId string

The internet SLB ID.

appId String

The target application ID that needs to be bound to the SLB.

internets List<LoadBalancerInternetInternetArgs>

The bound private network SLB. See the following Block internet.

internetSlbId String

The internet SLB ID.

appId string

The target application ID that needs to be bound to the SLB.

internets LoadBalancerInternetInternetArgs[]

The bound private network SLB. See the following Block internet.

internetSlbId string

The internet SLB ID.

app_id str

The target application ID that needs to be bound to the SLB.

internets Sequence[LoadBalancerInternetInternetArgs]

The bound private network SLB. See the following Block internet.

internet_slb_id str

The internet SLB ID.

appId 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.

internetSlbId String

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.

InternetIp 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.

InternetIp 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.

internetIp 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.

internetIp 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.

internetIp 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.
The following state arguments are supported:
AppId string

The target application ID that needs to be bound to the SLB.

InternetIp string

Use designated public network SLBs that have been purchased to support non-shared instances.

InternetSlbId string

The internet SLB ID.

Internets List<Pulumi.AliCloud.Sae.Inputs.LoadBalancerInternetInternetArgs>

The bound private network SLB. See the following Block internet.

AppId string

The target application ID that needs to be bound to the SLB.

InternetIp string

Use designated public network SLBs that have been purchased to support non-shared instances.

InternetSlbId string

The internet SLB ID.

Internets []LoadBalancerInternetInternetArgs

The bound private network SLB. See the following Block internet.

appId String

The target application ID that needs to be bound to the SLB.

internetIp String

Use designated public network SLBs that have been purchased to support non-shared instances.

internetSlbId String

The internet SLB ID.

internets List<LoadBalancerInternetInternetArgs>

The bound private network SLB. See the following Block internet.

appId string

The target application ID that needs to be bound to the SLB.

internetIp string

Use designated public network SLBs that have been purchased to support non-shared instances.

internetSlbId string

The internet SLB ID.

internets LoadBalancerInternetInternetArgs[]

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_id str

The internet SLB ID.

internets Sequence[LoadBalancerInternetInternetArgs]

The bound private network SLB. See the following Block internet.

appId String

The target application ID that needs to be bound to the SLB.

internetIp String

Use designated public network SLBs that have been purchased to support non-shared instances.

internetSlbId String

The internet SLB ID.

internets List<Property Map>

The bound private network SLB. See the following Block internet.

Supporting Types

LoadBalancerInternetInternet

HttpsCertId string

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.

TargetPort int

The Container port.

HttpsCertId string

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.

TargetPort int

The Container port.

httpsCertId String

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.

targetPort Integer

The Container port.

httpsCertId string

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.

targetPort number

The Container port.

https_cert_id str

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.

httpsCertId String

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.

targetPort 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.