alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.sae.LoadBalancerIntranet

Provides an Alicloud Serverless App Engine (SAE) Application Load Balancer Attachment resource.

For information about Serverless App Engine (SAE) Load Balancer Intranet Attachment and how to use it, see alicloud.sae.LoadBalancerIntranet.

NOTE: Available in v1.165.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = new AliCloud.Sae.LoadBalancerIntranet("example", new()
    {
        AppId = "your_application_id",
        Intranets = new[]
        {
            new AliCloud.Sae.Inputs.LoadBalancerIntranetIntranetArgs
            {
                Port = 80,
                Protocol = "TCP",
                TargetPort = 8080,
            },
        },
        IntranetSlbId = "intranet_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.NewLoadBalancerIntranet(ctx, "example", &sae.LoadBalancerIntranetArgs{
			AppId: pulumi.String("your_application_id"),
			Intranets: sae.LoadBalancerIntranetIntranetArray{
				&sae.LoadBalancerIntranetIntranetArgs{
					Port:       pulumi.Int(80),
					Protocol:   pulumi.String("TCP"),
					TargetPort: pulumi.Int(8080),
				},
			},
			IntranetSlbId: pulumi.String("intranet_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.LoadBalancerIntranet;
import com.pulumi.alicloud.sae.LoadBalancerIntranetArgs;
import com.pulumi.alicloud.sae.inputs.LoadBalancerIntranetIntranetArgs;
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 LoadBalancerIntranet("example", LoadBalancerIntranetArgs.builder()        
            .appId("your_application_id")
            .intranets(LoadBalancerIntranetIntranetArgs.builder()
                .port(80)
                .protocol("TCP")
                .targetPort(8080)
                .build())
            .intranetSlbId("intranet_slb_id")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.sae.LoadBalancerIntranet("example",
    app_id="your_application_id",
    intranets=[alicloud.sae.LoadBalancerIntranetIntranetArgs(
        port=80,
        protocol="TCP",
        target_port=8080,
    )],
    intranet_slb_id="intranet_slb_id")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.sae.LoadBalancerIntranet("example", {
    appId: "your_application_id",
    intranets: [{
        port: 80,
        protocol: "TCP",
        targetPort: 8080,
    }],
    intranetSlbId: "intranet_slb_id",
});
resources:
  example:
    type: alicloud:sae:LoadBalancerIntranet
    properties:
      appId: your_application_id
      intranets:
        - port: 80
          protocol: TCP
          targetPort: 8080
      intranetSlbId: intranet_slb_id

Create LoadBalancerIntranet Resource

new LoadBalancerIntranet(name: string, args: LoadBalancerIntranetArgs, opts?: CustomResourceOptions);
@overload
def LoadBalancerIntranet(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         app_id: Optional[str] = None,
                         intranet_slb_id: Optional[str] = None,
                         intranets: Optional[Sequence[LoadBalancerIntranetIntranetArgs]] = None)
@overload
def LoadBalancerIntranet(resource_name: str,
                         args: LoadBalancerIntranetArgs,
                         opts: Optional[ResourceOptions] = None)
func NewLoadBalancerIntranet(ctx *Context, name string, args LoadBalancerIntranetArgs, opts ...ResourceOption) (*LoadBalancerIntranet, error)
public LoadBalancerIntranet(string name, LoadBalancerIntranetArgs args, CustomResourceOptions? opts = null)
public LoadBalancerIntranet(String name, LoadBalancerIntranetArgs args)
public LoadBalancerIntranet(String name, LoadBalancerIntranetArgs args, CustomResourceOptions options)
type: alicloud:sae:LoadBalancerIntranet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args LoadBalancerIntranetArgs
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 LoadBalancerIntranetArgs
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 LoadBalancerIntranetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LoadBalancerIntranetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args LoadBalancerIntranetArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

LoadBalancerIntranet 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 LoadBalancerIntranet resource accepts the following input properties:

AppId string

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

Intranets List<Pulumi.AliCloud.Sae.Inputs.LoadBalancerIntranetIntranetArgs>

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

IntranetSlbId string

The intranet SLB ID.

AppId string

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

Intranets []LoadBalancerIntranetIntranetArgs

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

IntranetSlbId string

The intranet SLB ID.

appId String

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

intranets List<LoadBalancerIntranetIntranetArgs>

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

intranetSlbId String

The intranet SLB ID.

appId string

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

intranets LoadBalancerIntranetIntranetArgs[]

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

intranetSlbId string

The intranet SLB ID.

app_id str

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

intranets Sequence[LoadBalancerIntranetIntranetArgs]

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

intranet_slb_id str

The intranet SLB ID.

appId String

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

intranets List<Property Map>

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

intranetSlbId String

The intranet SLB ID.

Outputs

All input properties are implicitly available as output properties. Additionally, the LoadBalancerIntranet resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

IntranetIp string

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

Id string

The provider-assigned unique ID for this managed resource.

IntranetIp string

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

id String

The provider-assigned unique ID for this managed resource.

intranetIp String

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

id string

The provider-assigned unique ID for this managed resource.

intranetIp string

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

id str

The provider-assigned unique ID for this managed resource.

intranet_ip str

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

id String

The provider-assigned unique ID for this managed resource.

intranetIp String

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

Look up Existing LoadBalancerIntranet Resource

Get an existing LoadBalancerIntranet 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?: LoadBalancerIntranetState, opts?: CustomResourceOptions): LoadBalancerIntranet
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        app_id: Optional[str] = None,
        intranet_ip: Optional[str] = None,
        intranet_slb_id: Optional[str] = None,
        intranets: Optional[Sequence[LoadBalancerIntranetIntranetArgs]] = None) -> LoadBalancerIntranet
func GetLoadBalancerIntranet(ctx *Context, name string, id IDInput, state *LoadBalancerIntranetState, opts ...ResourceOption) (*LoadBalancerIntranet, error)
public static LoadBalancerIntranet Get(string name, Input<string> id, LoadBalancerIntranetState? state, CustomResourceOptions? opts = null)
public static LoadBalancerIntranet get(String name, Output<String> id, LoadBalancerIntranetState 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.

IntranetIp string

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

IntranetSlbId string

The intranet SLB ID.

Intranets List<Pulumi.AliCloud.Sae.Inputs.LoadBalancerIntranetIntranetArgs>

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

AppId string

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

IntranetIp string

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

IntranetSlbId string

The intranet SLB ID.

Intranets []LoadBalancerIntranetIntranetArgs

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

appId String

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

intranetIp String

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

intranetSlbId String

The intranet SLB ID.

intranets List<LoadBalancerIntranetIntranetArgs>

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

appId string

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

intranetIp string

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

intranetSlbId string

The intranet SLB ID.

intranets LoadBalancerIntranetIntranetArgs[]

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

app_id str

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

intranet_ip str

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

intranet_slb_id str

The intranet SLB ID.

intranets Sequence[LoadBalancerIntranetIntranetArgs]

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

appId String

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

intranetIp String

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

intranetSlbId String

The intranet SLB ID.

intranets List<Property Map>

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

Supporting Types

LoadBalancerIntranetIntranet

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/loadBalancerIntranet:LoadBalancerIntranet 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.