flexibleengine.ElbBackend
Explore with Pulumi AI
!> Warning: Classic load balancers are no longer provided, using elastic load balancers instead.
Manages a classic lb backend resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const backend = new flexibleengine.ElbBackend("backend", {
listenerId: flexibleengine_elb_listener.listener.id,
serverId: "8f7a32f1-f66c-4d13-9b17-3a13f9f0bb8d",
address: "192.168.0.211",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
backend = flexibleengine.ElbBackend("backend",
listener_id=flexibleengine_elb_listener["listener"]["id"],
server_id="8f7a32f1-f66c-4d13-9b17-3a13f9f0bb8d",
address="192.168.0.211")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewElbBackend(ctx, "backend", &flexibleengine.ElbBackendArgs{
ListenerId: pulumi.Any(flexibleengine_elb_listener.Listener.Id),
ServerId: pulumi.String("8f7a32f1-f66c-4d13-9b17-3a13f9f0bb8d"),
Address: pulumi.String("192.168.0.211"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var backend = new Flexibleengine.ElbBackend("backend", new()
{
ListenerId = flexibleengine_elb_listener.Listener.Id,
ServerId = "8f7a32f1-f66c-4d13-9b17-3a13f9f0bb8d",
Address = "192.168.0.211",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ElbBackend;
import com.pulumi.flexibleengine.ElbBackendArgs;
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 backend = new ElbBackend("backend", ElbBackendArgs.builder()
.listenerId(flexibleengine_elb_listener.listener().id())
.serverId("8f7a32f1-f66c-4d13-9b17-3a13f9f0bb8d")
.address("192.168.0.211")
.build());
}
}
resources:
backend:
type: flexibleengine:ElbBackend
properties:
listenerId: ${flexibleengine_elb_listener.listener.id}
serverId: 8f7a32f1-f66c-4d13-9b17-3a13f9f0bb8d
address: 192.168.0.211
Create ElbBackend Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElbBackend(name: string, args: ElbBackendArgs, opts?: CustomResourceOptions);
@overload
def ElbBackend(resource_name: str,
args: ElbBackendArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ElbBackend(resource_name: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
listener_id: Optional[str] = None,
server_id: Optional[str] = None,
elb_backend_id: Optional[str] = None,
timeouts: Optional[ElbBackendTimeoutsArgs] = None)
func NewElbBackend(ctx *Context, name string, args ElbBackendArgs, opts ...ResourceOption) (*ElbBackend, error)
public ElbBackend(string name, ElbBackendArgs args, CustomResourceOptions? opts = null)
public ElbBackend(String name, ElbBackendArgs args)
public ElbBackend(String name, ElbBackendArgs args, CustomResourceOptions options)
type: flexibleengine:ElbBackend
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 ElbBackendArgs
- 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 ElbBackendArgs
- 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 ElbBackendArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElbBackendArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElbBackendArgs
- 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 elbBackendResource = new Flexibleengine.ElbBackend("elbBackendResource", new()
{
Address = "string",
ListenerId = "string",
ServerId = "string",
ElbBackendId = "string",
Timeouts = new Flexibleengine.Inputs.ElbBackendTimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := flexibleengine.NewElbBackend(ctx, "elbBackendResource", &flexibleengine.ElbBackendArgs{
Address: pulumi.String("string"),
ListenerId: pulumi.String("string"),
ServerId: pulumi.String("string"),
ElbBackendId: pulumi.String("string"),
Timeouts: &flexibleengine.ElbBackendTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var elbBackendResource = new ElbBackend("elbBackendResource", ElbBackendArgs.builder()
.address("string")
.listenerId("string")
.serverId("string")
.elbBackendId("string")
.timeouts(ElbBackendTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
elb_backend_resource = flexibleengine.ElbBackend("elbBackendResource",
address="string",
listener_id="string",
server_id="string",
elb_backend_id="string",
timeouts={
"create": "string",
"delete": "string",
})
const elbBackendResource = new flexibleengine.ElbBackend("elbBackendResource", {
address: "string",
listenerId: "string",
serverId: "string",
elbBackendId: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: flexibleengine:ElbBackend
properties:
address: string
elbBackendId: string
listenerId: string
serverId: string
timeouts:
create: string
delete: string
ElbBackend 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 ElbBackend resource accepts the following input properties:
- Address string
- Specifies the private IP address of the backend member. Changing this will create a new resource.
- Listener
Id string - Specifies the listener ID. Changing this will create a new resource.
- Server
Id string - Specifies the backend member ID. Changing this will create a new resource.
- Elb
Backend stringId - Timeouts
Elb
Backend Timeouts
- Address string
- Specifies the private IP address of the backend member. Changing this will create a new resource.
- Listener
Id string - Specifies the listener ID. Changing this will create a new resource.
- Server
Id string - Specifies the backend member ID. Changing this will create a new resource.
- Elb
Backend stringId - Timeouts
Elb
Backend Timeouts Args
- address String
- Specifies the private IP address of the backend member. Changing this will create a new resource.
- listener
Id String - Specifies the listener ID. Changing this will create a new resource.
- server
Id String - Specifies the backend member ID. Changing this will create a new resource.
- elb
Backend StringId - timeouts
Elb
Backend Timeouts
- address string
- Specifies the private IP address of the backend member. Changing this will create a new resource.
- listener
Id string - Specifies the listener ID. Changing this will create a new resource.
- server
Id string - Specifies the backend member ID. Changing this will create a new resource.
- elb
Backend stringId - timeouts
Elb
Backend Timeouts
- address str
- Specifies the private IP address of the backend member. Changing this will create a new resource.
- listener_
id str - Specifies the listener ID. Changing this will create a new resource.
- server_
id str - Specifies the backend member ID. Changing this will create a new resource.
- elb_
backend_ strid - timeouts
Elb
Backend Timeouts Args
- address String
- Specifies the private IP address of the backend member. Changing this will create a new resource.
- listener
Id String - Specifies the listener ID. Changing this will create a new resource.
- server
Id String - Specifies the backend member ID. Changing this will create a new resource.
- elb
Backend StringId - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ElbBackend resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ElbBackend Resource
Get an existing ElbBackend 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?: ElbBackendState, opts?: CustomResourceOptions): ElbBackend
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
elb_backend_id: Optional[str] = None,
listener_id: Optional[str] = None,
server_id: Optional[str] = None,
timeouts: Optional[ElbBackendTimeoutsArgs] = None) -> ElbBackend
func GetElbBackend(ctx *Context, name string, id IDInput, state *ElbBackendState, opts ...ResourceOption) (*ElbBackend, error)
public static ElbBackend Get(string name, Input<string> id, ElbBackendState? state, CustomResourceOptions? opts = null)
public static ElbBackend get(String name, Output<String> id, ElbBackendState state, CustomResourceOptions options)
resources: _: type: flexibleengine:ElbBackend 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.
- Address string
- Specifies the private IP address of the backend member. Changing this will create a new resource.
- Elb
Backend stringId - Listener
Id string - Specifies the listener ID. Changing this will create a new resource.
- Server
Id string - Specifies the backend member ID. Changing this will create a new resource.
- Timeouts
Elb
Backend Timeouts
- Address string
- Specifies the private IP address of the backend member. Changing this will create a new resource.
- Elb
Backend stringId - Listener
Id string - Specifies the listener ID. Changing this will create a new resource.
- Server
Id string - Specifies the backend member ID. Changing this will create a new resource.
- Timeouts
Elb
Backend Timeouts Args
- address String
- Specifies the private IP address of the backend member. Changing this will create a new resource.
- elb
Backend StringId - listener
Id String - Specifies the listener ID. Changing this will create a new resource.
- server
Id String - Specifies the backend member ID. Changing this will create a new resource.
- timeouts
Elb
Backend Timeouts
- address string
- Specifies the private IP address of the backend member. Changing this will create a new resource.
- elb
Backend stringId - listener
Id string - Specifies the listener ID. Changing this will create a new resource.
- server
Id string - Specifies the backend member ID. Changing this will create a new resource.
- timeouts
Elb
Backend Timeouts
- address str
- Specifies the private IP address of the backend member. Changing this will create a new resource.
- elb_
backend_ strid - listener_
id str - Specifies the listener ID. Changing this will create a new resource.
- server_
id str - Specifies the backend member ID. Changing this will create a new resource.
- timeouts
Elb
Backend Timeouts Args
- address String
- Specifies the private IP address of the backend member. Changing this will create a new resource.
- elb
Backend StringId - listener
Id String - Specifies the listener ID. Changing this will create a new resource.
- server
Id String - Specifies the backend member ID. Changing this will create a new resource.
- timeouts Property Map
Supporting Types
ElbBackendTimeouts, ElbBackendTimeoutsArgs
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.