volcengine.rds.IpList
Explore with Pulumi AI
(Deprecated! Recommend use volcengine_rds_mysql_*** replace) Provides a resource to manage rds ip list
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Rds.IpList("foo", new()
{
GroupName = "foo",
InstanceId = "mysql-0fdd3bab2e7c",
IpLists = new[]
{
"1.1.1.1",
"2.2.2.2",
},
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds.NewIpList(ctx, "foo", &rds.IpListArgs{
GroupName: pulumi.String("foo"),
InstanceId: pulumi.String("mysql-0fdd3bab2e7c"),
IpLists: pulumi.StringArray{
pulumi.String("1.1.1.1"),
pulumi.String("2.2.2.2"),
},
})
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.volcengine.rds.IpList;
import com.pulumi.volcengine.rds.IpListArgs;
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 foo = new IpList("foo", IpListArgs.builder()
.groupName("foo")
.instanceId("mysql-0fdd3bab2e7c")
.ipLists(
"1.1.1.1",
"2.2.2.2")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.rds.IpList("foo",
group_name="foo",
instance_id="mysql-0fdd3bab2e7c",
ip_lists=[
"1.1.1.1",
"2.2.2.2",
])
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.rds.IpList("foo", {
groupName: "foo",
instanceId: "mysql-0fdd3bab2e7c",
ipLists: [
"1.1.1.1",
"2.2.2.2",
],
});
resources:
foo:
type: volcengine:rds:IpList
properties:
groupName: foo
instanceId: mysql-0fdd3bab2e7c
ipLists:
- 1.1.1.1
- 2.2.2.2
Create IpList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpList(name: string, args: IpListArgs, opts?: CustomResourceOptions);
@overload
def IpList(resource_name: str,
args: IpListArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IpList(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_name: Optional[str] = None,
instance_id: Optional[str] = None,
ip_lists: Optional[Sequence[str]] = None)
func NewIpList(ctx *Context, name string, args IpListArgs, opts ...ResourceOption) (*IpList, error)
public IpList(string name, IpListArgs args, CustomResourceOptions? opts = null)
public IpList(String name, IpListArgs args)
public IpList(String name, IpListArgs args, CustomResourceOptions options)
type: volcengine:rds:IpList
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 IpListArgs
- 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 IpListArgs
- 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 IpListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpListArgs
- 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 ipListResource = new Volcengine.Rds.IpList("ipListResource", new()
{
GroupName = "string",
InstanceId = "string",
IpLists = new[]
{
"string",
},
});
example, err := rds.NewIpList(ctx, "ipListResource", &rds.IpListArgs{
GroupName: pulumi.String("string"),
InstanceId: pulumi.String("string"),
IpLists: pulumi.StringArray{
pulumi.String("string"),
},
})
var ipListResource = new IpList("ipListResource", IpListArgs.builder()
.groupName("string")
.instanceId("string")
.ipLists("string")
.build());
ip_list_resource = volcengine.rds.IpList("ipListResource",
group_name="string",
instance_id="string",
ip_lists=["string"])
const ipListResource = new volcengine.rds.IpList("ipListResource", {
groupName: "string",
instanceId: "string",
ipLists: ["string"],
});
type: volcengine:rds:IpList
properties:
groupName: string
instanceId: string
ipLists:
- string
IpList 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 IpList resource accepts the following input properties:
- Group
Name string - The name of the RDS ip list.
- Instance
Id string - The ID of the RDS instance.
- Ip
Lists List<string> - The list of IP address.
- Group
Name string - The name of the RDS ip list.
- Instance
Id string - The ID of the RDS instance.
- Ip
Lists []string - The list of IP address.
- group
Name String - The name of the RDS ip list.
- instance
Id String - The ID of the RDS instance.
- ip
Lists List<String> - The list of IP address.
- group
Name string - The name of the RDS ip list.
- instance
Id string - The ID of the RDS instance.
- ip
Lists string[] - The list of IP address.
- group_
name str - The name of the RDS ip list.
- instance_
id str - The ID of the RDS instance.
- ip_
lists Sequence[str] - The list of IP address.
- group
Name String - The name of the RDS ip list.
- instance
Id String - The ID of the RDS instance.
- ip
Lists List<String> - The list of IP address.
Outputs
All input properties are implicitly available as output properties. Additionally, the IpList 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 IpList Resource
Get an existing IpList 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?: IpListState, opts?: CustomResourceOptions): IpList
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
group_name: Optional[str] = None,
instance_id: Optional[str] = None,
ip_lists: Optional[Sequence[str]] = None) -> IpList
func GetIpList(ctx *Context, name string, id IDInput, state *IpListState, opts ...ResourceOption) (*IpList, error)
public static IpList Get(string name, Input<string> id, IpListState? state, CustomResourceOptions? opts = null)
public static IpList get(String name, Output<String> id, IpListState 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.
- Group
Name string - The name of the RDS ip list.
- Instance
Id string - The ID of the RDS instance.
- Ip
Lists List<string> - The list of IP address.
- Group
Name string - The name of the RDS ip list.
- Instance
Id string - The ID of the RDS instance.
- Ip
Lists []string - The list of IP address.
- group
Name String - The name of the RDS ip list.
- instance
Id String - The ID of the RDS instance.
- ip
Lists List<String> - The list of IP address.
- group
Name string - The name of the RDS ip list.
- instance
Id string - The ID of the RDS instance.
- ip
Lists string[] - The list of IP address.
- group_
name str - The name of the RDS ip list.
- instance_
id str - The ID of the RDS instance.
- ip_
lists Sequence[str] - The list of IP address.
- group
Name String - The name of the RDS ip list.
- instance
Id String - The ID of the RDS instance.
- ip
Lists List<String> - The list of IP address.
Import
RDSIPList can be imported using the id, e.g.
$ pulumi import volcengine:rds/ipList:IpList default mysql-42b38c769c4b:group_name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.