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:
- App
Id string The target application ID that needs to be bound to the SLB.
- Intranets
List<Pulumi.
Ali Cloud. Sae. Inputs. Load Balancer Intranet Intranet Args> The bound private network SLB. See the following
Block intranet
.- Intranet
Slb stringId The intranet SLB ID.
- App
Id string The target application ID that needs to be bound to the SLB.
- Intranets
[]Load
Balancer Intranet Intranet Args The bound private network SLB. See the following
Block intranet
.- Intranet
Slb stringId The intranet SLB ID.
- app
Id String The target application ID that needs to be bound to the SLB.
- intranets
List<Load
Balancer Intranet Intranet Args> The bound private network SLB. See the following
Block intranet
.- intranet
Slb StringId The intranet SLB ID.
- app
Id string The target application ID that needs to be bound to the SLB.
- intranets
Load
Balancer Intranet Intranet Args[] The bound private network SLB. See the following
Block intranet
.- intranet
Slb stringId The intranet SLB ID.
- app_
id str The target application ID that needs to be bound to the SLB.
- intranets
Sequence[Load
Balancer Intranet Intranet Args] The bound private network SLB. See the following
Block intranet
.- intranet_
slb_ strid The intranet SLB ID.
- app
Id 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
.- intranet
Slb StringId 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.
- Intranet
Ip 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.
- Intranet
Ip 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.
- intranet
Ip 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.
- intranet
Ip 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.
- intranet
Ip 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.
- App
Id string The target application ID that needs to be bound to the SLB.
- Intranet
Ip string Use designated private network SLBs that have been purchased to support non-shared instances.
- Intranet
Slb stringId The intranet SLB ID.
- Intranets
List<Pulumi.
Ali Cloud. Sae. Inputs. Load Balancer Intranet Intranet Args> The bound private network SLB. See the following
Block intranet
.
- App
Id string The target application ID that needs to be bound to the SLB.
- Intranet
Ip string Use designated private network SLBs that have been purchased to support non-shared instances.
- Intranet
Slb stringId The intranet SLB ID.
- Intranets
[]Load
Balancer Intranet Intranet Args The bound private network SLB. See the following
Block intranet
.
- app
Id String The target application ID that needs to be bound to the SLB.
- intranet
Ip String Use designated private network SLBs that have been purchased to support non-shared instances.
- intranet
Slb StringId The intranet SLB ID.
- intranets
List<Load
Balancer Intranet Intranet Args> The bound private network SLB. See the following
Block intranet
.
- app
Id string The target application ID that needs to be bound to the SLB.
- intranet
Ip string Use designated private network SLBs that have been purchased to support non-shared instances.
- intranet
Slb stringId The intranet SLB ID.
- intranets
Load
Balancer Intranet Intranet Args[] 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_ strid The intranet SLB ID.
- intranets
Sequence[Load
Balancer Intranet Intranet Args] The bound private network SLB. See the following
Block intranet
.
- app
Id String The target application ID that needs to be bound to the SLB.
- intranet
Ip String Use designated private network SLBs that have been purchased to support non-shared instances.
- intranet
Slb StringId The intranet SLB ID.
- intranets List<Property Map>
The bound private network SLB. See the following
Block intranet
.
Supporting Types
LoadBalancerIntranetIntranet
- 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/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.