Class Configuration
Manages a V1 DB configuration resource within OpenStack.
Example Usage
Configuration
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var test = new OpenStack.Database.Configuration("test", new OpenStack.Database.ConfigurationArgs
{
Configurations =
{
new OpenStack.Database.Inputs.ConfigurationConfigurationArgs
{
Name = "max_connections",
Value = 200,
},
},
Datastore = new OpenStack.Database.Inputs.ConfigurationDatastoreArgs
{
Type = "mysql",
Version = "mysql-5.7",
},
Description = "description",
});
}
}
Inherited Members
Namespace: Pulumi.OpenStack.Database
Assembly: Pulumi.OpenStack.dll
Syntax
public class Configuration : CustomResource
Constructors
View SourceConfiguration(String, ConfigurationArgs, CustomResourceOptions)
Create a Configuration resource with the given unique name, arguments, and options.
Declaration
public Configuration(string name, ConfigurationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ConfigurationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceConfigurations
An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
Declaration
public Output<ImmutableArray<ConfigurationConfiguration>> Configurations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ConfigurationConfiguration>> |
Datastore
An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.
Declaration
public Output<ConfigurationDatastore> Datastore { get; }
Property Value
| Type | Description |
|---|---|
| Output<ConfigurationDatastore> |
Description
Description of the resource.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Configuration parameter name. Changing this creates a new resource.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
The region in which to create the db instance. Changing this creates a new instance.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ConfigurationState, CustomResourceOptions)
Get an existing Configuration resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Configuration Get(string name, Input<string> id, ConfigurationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ConfigurationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Configuration |