OpenStack

v3.9.0 published on Thursday, Aug 4, 2022 by Pulumi

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",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.NewConfiguration(ctx, "test", &database.ConfigurationArgs{
			Configurations: database.ConfigurationConfigurationArray{
				&database.ConfigurationConfigurationArgs{
					Name:  pulumi.String("max_connections"),
					Value: pulumi.String("200"),
				},
			},
			Datastore: &database.ConfigurationDatastoreArgs{
				Type:    pulumi.String("mysql"),
				Version: pulumi.String("mysql-5.7"),
			},
			Description: pulumi.String("description"),
		})
		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.openstack.database.Configuration;
import com.pulumi.openstack.database.ConfigurationArgs;
import com.pulumi.openstack.database.inputs.ConfigurationConfigurationArgs;
import com.pulumi.openstack.database.inputs.ConfigurationDatastoreArgs;
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 test = new Configuration("test", ConfigurationArgs.builder()        
            .configurations(ConfigurationConfigurationArgs.builder()
                .name("max_connections")
                .value(200)
                .build())
            .datastore(ConfigurationDatastoreArgs.builder()
                .type("mysql")
                .version("mysql-5.7")
                .build())
            .description("description")
            .build());

    }
}
import pulumi
import pulumi_openstack as openstack

test = openstack.database.Configuration("test",
    configurations=[openstack.database.ConfigurationConfigurationArgs(
        name="max_connections",
        value="200",
    )],
    datastore=openstack.database.ConfigurationDatastoreArgs(
        type="mysql",
        version="mysql-5.7",
    ),
    description="description")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const test = new openstack.database.Configuration("test", {
    configurations: [{
        name: "max_connections",
        value: "200",
    }],
    datastore: {
        type: "mysql",
        version: "mysql-5.7",
    },
    description: "description",
});
resources:
  test:
    type: openstack:database:Configuration
    properties:
      configurations:
        - name: max_connections
          value: 200
      datastore:
        type: mysql
        version: mysql-5.7
      description: description

Create Configuration Resource

new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);
@overload
def Configuration(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  configurations: Optional[Sequence[ConfigurationConfigurationArgs]] = None,
                  datastore: Optional[ConfigurationDatastoreArgs] = None,
                  description: Optional[str] = None,
                  name: Optional[str] = None,
                  region: Optional[str] = None)
@overload
def Configuration(resource_name: str,
                  args: ConfigurationArgs,
                  opts: Optional[ResourceOptions] = None)
func NewConfiguration(ctx *Context, name string, args ConfigurationArgs, opts ...ResourceOption) (*Configuration, error)
public Configuration(string name, ConfigurationArgs args, CustomResourceOptions? opts = null)
public Configuration(String name, ConfigurationArgs args)
public Configuration(String name, ConfigurationArgs args, CustomResourceOptions options)
type: openstack:database:Configuration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ConfigurationArgs
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 ConfigurationArgs
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 ConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ConfigurationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Configuration 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 Configuration resource accepts the following input properties:

Datastore Pulumi.OpenStack.Database.Inputs.ConfigurationDatastoreArgs

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

Description string

Description of the resource.

Configurations List<Pulumi.OpenStack.Database.Inputs.ConfigurationConfigurationArgs>

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

Name string

Configuration parameter name. Changing this creates a new resource.

Region string

The region in which to create the db instance. Changing this creates a new instance.

Datastore ConfigurationDatastoreArgs

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

Description string

Description of the resource.

Configurations []ConfigurationConfigurationArgs

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

Name string

Configuration parameter name. Changing this creates a new resource.

Region string

The region in which to create the db instance. Changing this creates a new instance.

datastore ConfigurationDatastoreArgs

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

description String

Description of the resource.

configurations List<ConfigurationConfigurationArgs>

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

name String

Configuration parameter name. Changing this creates a new resource.

region String

The region in which to create the db instance. Changing this creates a new instance.

datastore ConfigurationDatastoreArgs

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

description string

Description of the resource.

configurations ConfigurationConfigurationArgs[]

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

name string

Configuration parameter name. Changing this creates a new resource.

region string

The region in which to create the db instance. Changing this creates a new instance.

datastore ConfigurationDatastoreArgs

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

description str

Description of the resource.

configurations Sequence[ConfigurationConfigurationArgs]

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

name str

Configuration parameter name. Changing this creates a new resource.

region str

The region in which to create the db instance. Changing this creates a new instance.

datastore Property Map

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

description String

Description of the resource.

configurations List<Property Map>

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

name String

Configuration parameter name. Changing this creates a new resource.

region String

The region in which to create the db instance. Changing this creates a new instance.

Outputs

All input properties are implicitly available as output properties. Additionally, the Configuration 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 Configuration Resource

Get an existing Configuration 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?: ConfigurationState, opts?: CustomResourceOptions): Configuration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        configurations: Optional[Sequence[ConfigurationConfigurationArgs]] = None,
        datastore: Optional[ConfigurationDatastoreArgs] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        region: Optional[str] = None) -> Configuration
func GetConfiguration(ctx *Context, name string, id IDInput, state *ConfigurationState, opts ...ResourceOption) (*Configuration, error)
public static Configuration Get(string name, Input<string> id, ConfigurationState? state, CustomResourceOptions? opts = null)
public static Configuration get(String name, Output<String> id, ConfigurationState 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.
The following state arguments are supported:
Configurations List<Pulumi.OpenStack.Database.Inputs.ConfigurationConfigurationArgs>

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

Datastore Pulumi.OpenStack.Database.Inputs.ConfigurationDatastoreArgs

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

Description string

Description of the resource.

Name string

Configuration parameter name. Changing this creates a new resource.

Region string

The region in which to create the db instance. Changing this creates a new instance.

Configurations []ConfigurationConfigurationArgs

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

Datastore ConfigurationDatastoreArgs

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

Description string

Description of the resource.

Name string

Configuration parameter name. Changing this creates a new resource.

Region string

The region in which to create the db instance. Changing this creates a new instance.

configurations List<ConfigurationConfigurationArgs>

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

datastore ConfigurationDatastoreArgs

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

description String

Description of the resource.

name String

Configuration parameter name. Changing this creates a new resource.

region String

The region in which to create the db instance. Changing this creates a new instance.

configurations ConfigurationConfigurationArgs[]

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

datastore ConfigurationDatastoreArgs

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

description string

Description of the resource.

name string

Configuration parameter name. Changing this creates a new resource.

region string

The region in which to create the db instance. Changing this creates a new instance.

configurations Sequence[ConfigurationConfigurationArgs]

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

datastore ConfigurationDatastoreArgs

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

description str

Description of the resource.

name str

Configuration parameter name. Changing this creates a new resource.

region str

The region in which to create the db instance. Changing this creates a new instance.

configurations List<Property Map>

An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.

datastore Property Map

An array of database engine type and version. The datastore object structure is documented below. Changing this creates resource.

description String

Description of the resource.

name String

Configuration parameter name. Changing this creates a new resource.

region String

The region in which to create the db instance. Changing this creates a new instance.

Supporting Types

ConfigurationConfiguration

Name string

Configuration parameter name. Changing this creates a new resource.

Value string

Configuration parameter value. Changing this creates a new resource.

Name string

Configuration parameter name. Changing this creates a new resource.

Value string

Configuration parameter value. Changing this creates a new resource.

name String

Configuration parameter name. Changing this creates a new resource.

value String

Configuration parameter value. Changing this creates a new resource.

name string

Configuration parameter name. Changing this creates a new resource.

value string

Configuration parameter value. Changing this creates a new resource.

name str

Configuration parameter name. Changing this creates a new resource.

value str

Configuration parameter value. Changing this creates a new resource.

name String

Configuration parameter name. Changing this creates a new resource.

value String

Configuration parameter value. Changing this creates a new resource.

ConfigurationDatastore

Type string

Database engine type to be used with this configuration. Changing this creates a new resource.

Version string

Version of database engine type to be used with this configuration. Changing this creates a new resource.

Type string

Database engine type to be used with this configuration. Changing this creates a new resource.

Version string

Version of database engine type to be used with this configuration. Changing this creates a new resource.

type String

Database engine type to be used with this configuration. Changing this creates a new resource.

version String

Version of database engine type to be used with this configuration. Changing this creates a new resource.

type string

Database engine type to be used with this configuration. Changing this creates a new resource.

version string

Version of database engine type to be used with this configuration. Changing this creates a new resource.

type str

Database engine type to be used with this configuration. Changing this creates a new resource.

version str

Version of database engine type to be used with this configuration. Changing this creates a new resource.

type String

Database engine type to be used with this configuration. Changing this creates a new resource.

version String

Version of database engine type to be used with this configuration. Changing this creates a new resource.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes

This Pulumi package is based on the openstack Terraform Provider.