flexibleengine.ElbIpgroup
Explore with Pulumi AI
Manages an ELB IP Group resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const basic = new flexibleengine.ElbIpgroup("basic", {
description: "basic example",
ipLists: [{
description: "ECS01",
ip: "192.168.10.10",
}],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
basic = flexibleengine.ElbIpgroup("basic",
description="basic example",
ip_lists=[{
"description": "ECS01",
"ip": "192.168.10.10",
}])
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.NewElbIpgroup(ctx, "basic", &flexibleengine.ElbIpgroupArgs{
Description: pulumi.String("basic example"),
IpLists: flexibleengine.ElbIpgroupIpListArray{
&flexibleengine.ElbIpgroupIpListArgs{
Description: pulumi.String("ECS01"),
Ip: pulumi.String("192.168.10.10"),
},
},
})
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 basic = new Flexibleengine.ElbIpgroup("basic", new()
{
Description = "basic example",
IpLists = new[]
{
new Flexibleengine.Inputs.ElbIpgroupIpListArgs
{
Description = "ECS01",
Ip = "192.168.10.10",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ElbIpgroup;
import com.pulumi.flexibleengine.ElbIpgroupArgs;
import com.pulumi.flexibleengine.inputs.ElbIpgroupIpListArgs;
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 basic = new ElbIpgroup("basic", ElbIpgroupArgs.builder()
.description("basic example")
.ipLists(ElbIpgroupIpListArgs.builder()
.description("ECS01")
.ip("192.168.10.10")
.build())
.build());
}
}
resources:
basic:
type: flexibleengine:ElbIpgroup
properties:
description: basic example
ipLists:
- description: ECS01
ip: 192.168.10.10
Create ElbIpgroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElbIpgroup(name: string, args: ElbIpgroupArgs, opts?: CustomResourceOptions);
@overload
def ElbIpgroup(resource_name: str,
args: ElbIpgroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ElbIpgroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip_lists: Optional[Sequence[ElbIpgroupIpListArgs]] = None,
description: Optional[str] = None,
elb_ipgroup_id: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None)
func NewElbIpgroup(ctx *Context, name string, args ElbIpgroupArgs, opts ...ResourceOption) (*ElbIpgroup, error)
public ElbIpgroup(string name, ElbIpgroupArgs args, CustomResourceOptions? opts = null)
public ElbIpgroup(String name, ElbIpgroupArgs args)
public ElbIpgroup(String name, ElbIpgroupArgs args, CustomResourceOptions options)
type: flexibleengine:ElbIpgroup
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 ElbIpgroupArgs
- 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 ElbIpgroupArgs
- 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 ElbIpgroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElbIpgroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElbIpgroupArgs
- 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 elbIpgroupResource = new Flexibleengine.ElbIpgroup("elbIpgroupResource", new()
{
IpLists = new[]
{
new Flexibleengine.Inputs.ElbIpgroupIpListArgs
{
Ip = "string",
Description = "string",
},
},
Description = "string",
ElbIpgroupId = "string",
EnterpriseProjectId = "string",
Name = "string",
Region = "string",
});
example, err := flexibleengine.NewElbIpgroup(ctx, "elbIpgroupResource", &flexibleengine.ElbIpgroupArgs{
IpLists: flexibleengine.ElbIpgroupIpListArray{
&flexibleengine.ElbIpgroupIpListArgs{
Ip: pulumi.String("string"),
Description: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
ElbIpgroupId: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
})
var elbIpgroupResource = new ElbIpgroup("elbIpgroupResource", ElbIpgroupArgs.builder()
.ipLists(ElbIpgroupIpListArgs.builder()
.ip("string")
.description("string")
.build())
.description("string")
.elbIpgroupId("string")
.enterpriseProjectId("string")
.name("string")
.region("string")
.build());
elb_ipgroup_resource = flexibleengine.ElbIpgroup("elbIpgroupResource",
ip_lists=[{
"ip": "string",
"description": "string",
}],
description="string",
elb_ipgroup_id="string",
enterprise_project_id="string",
name="string",
region="string")
const elbIpgroupResource = new flexibleengine.ElbIpgroup("elbIpgroupResource", {
ipLists: [{
ip: "string",
description: "string",
}],
description: "string",
elbIpgroupId: "string",
enterpriseProjectId: "string",
name: "string",
region: "string",
});
type: flexibleengine:ElbIpgroup
properties:
description: string
elbIpgroupId: string
enterpriseProjectId: string
ipLists:
- description: string
ip: string
name: string
region: string
ElbIpgroup 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 ElbIpgroup resource accepts the following input properties:
- Ip
Lists List<ElbIpgroup Ip List> Specifies an array of one or more ip addresses. The ip_list object structure is documented below.
The
ip_list
block supports:- Description string
- Human-readable description for the ip.
- Elb
Ipgroup stringId - The uuid of the ip group.
- Enterprise
Project stringId - Name string
- Specifies the name of the ip group.
- Region string
- The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
- Ip
Lists []ElbIpgroup Ip List Args Specifies an array of one or more ip addresses. The ip_list object structure is documented below.
The
ip_list
block supports:- Description string
- Human-readable description for the ip.
- Elb
Ipgroup stringId - The uuid of the ip group.
- Enterprise
Project stringId - Name string
- Specifies the name of the ip group.
- Region string
- The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
- ip
Lists List<ElbIpgroup Ip List> Specifies an array of one or more ip addresses. The ip_list object structure is documented below.
The
ip_list
block supports:- description String
- Human-readable description for the ip.
- elb
Ipgroup StringId - The uuid of the ip group.
- enterprise
Project StringId - name String
- Specifies the name of the ip group.
- region String
- The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
- ip
Lists ElbIpgroup Ip List[] Specifies an array of one or more ip addresses. The ip_list object structure is documented below.
The
ip_list
block supports:- description string
- Human-readable description for the ip.
- elb
Ipgroup stringId - The uuid of the ip group.
- enterprise
Project stringId - name string
- Specifies the name of the ip group.
- region string
- The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
- ip_
lists Sequence[ElbIpgroup Ip List Args] Specifies an array of one or more ip addresses. The ip_list object structure is documented below.
The
ip_list
block supports:- description str
- Human-readable description for the ip.
- elb_
ipgroup_ strid - The uuid of the ip group.
- enterprise_
project_ strid - name str
- Specifies the name of the ip group.
- region str
- The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
- ip
Lists List<Property Map> Specifies an array of one or more ip addresses. The ip_list object structure is documented below.
The
ip_list
block supports:- description String
- Human-readable description for the ip.
- elb
Ipgroup StringId - The uuid of the ip group.
- enterprise
Project StringId - name String
- Specifies the name of the ip group.
- region String
- The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
Outputs
All input properties are implicitly available as output properties. Additionally, the ElbIpgroup 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 ElbIpgroup Resource
Get an existing ElbIpgroup 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?: ElbIpgroupState, opts?: CustomResourceOptions): ElbIpgroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
elb_ipgroup_id: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
ip_lists: Optional[Sequence[ElbIpgroupIpListArgs]] = None,
name: Optional[str] = None,
region: Optional[str] = None) -> ElbIpgroup
func GetElbIpgroup(ctx *Context, name string, id IDInput, state *ElbIpgroupState, opts ...ResourceOption) (*ElbIpgroup, error)
public static ElbIpgroup Get(string name, Input<string> id, ElbIpgroupState? state, CustomResourceOptions? opts = null)
public static ElbIpgroup get(String name, Output<String> id, ElbIpgroupState state, CustomResourceOptions options)
resources: _: type: flexibleengine:ElbIpgroup 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.
- Description string
- Human-readable description for the ip.
- Elb
Ipgroup stringId - The uuid of the ip group.
- Enterprise
Project stringId - Ip
Lists List<ElbIpgroup Ip List> Specifies an array of one or more ip addresses. The ip_list object structure is documented below.
The
ip_list
block supports:- Name string
- Specifies the name of the ip group.
- Region string
- The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
- Description string
- Human-readable description for the ip.
- Elb
Ipgroup stringId - The uuid of the ip group.
- Enterprise
Project stringId - Ip
Lists []ElbIpgroup Ip List Args Specifies an array of one or more ip addresses. The ip_list object structure is documented below.
The
ip_list
block supports:- Name string
- Specifies the name of the ip group.
- Region string
- The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
- description String
- Human-readable description for the ip.
- elb
Ipgroup StringId - The uuid of the ip group.
- enterprise
Project StringId - ip
Lists List<ElbIpgroup Ip List> Specifies an array of one or more ip addresses. The ip_list object structure is documented below.
The
ip_list
block supports:- name String
- Specifies the name of the ip group.
- region String
- The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
- description string
- Human-readable description for the ip.
- elb
Ipgroup stringId - The uuid of the ip group.
- enterprise
Project stringId - ip
Lists ElbIpgroup Ip List[] Specifies an array of one or more ip addresses. The ip_list object structure is documented below.
The
ip_list
block supports:- name string
- Specifies the name of the ip group.
- region string
- The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
- description str
- Human-readable description for the ip.
- elb_
ipgroup_ strid - The uuid of the ip group.
- enterprise_
project_ strid - ip_
lists Sequence[ElbIpgroup Ip List Args] Specifies an array of one or more ip addresses. The ip_list object structure is documented below.
The
ip_list
block supports:- name str
- Specifies the name of the ip group.
- region str
- The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
- description String
- Human-readable description for the ip.
- elb
Ipgroup StringId - The uuid of the ip group.
- enterprise
Project StringId - ip
Lists List<Property Map> Specifies an array of one or more ip addresses. The ip_list object structure is documented below.
The
ip_list
block supports:- name String
- Specifies the name of the ip group.
- region String
- The region in which to create the ip group resource. If omitted, the provider-level region will be used. Changing this creates a new ip group.
Supporting Types
ElbIpgroupIpList, ElbIpgroupIpListArgs
- Ip string
- IP address or CIDR block.
- Description string
- Human-readable description for the ip.
- Ip string
- IP address or CIDR block.
- Description string
- Human-readable description for the ip.
- ip String
- IP address or CIDR block.
- description String
- Human-readable description for the ip.
- ip string
- IP address or CIDR block.
- description string
- Human-readable description for the ip.
- ip str
- IP address or CIDR block.
- description str
- Human-readable description for the ip.
- ip String
- IP address or CIDR block.
- description String
- Human-readable description for the ip.
Import
ELB IP group can be imported using the IP group ID, e.g.
$ pulumi import flexibleengine:index/elbIpgroup:ElbIpgroup group_1 5c20fdad-7288-11eb-b817-0255ac10158b
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.