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

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

test = openstack.database.Configuration("test",
    configurations=[{
        "name": "max_connections",
        "value": 200,
    }],
    datastore={
        "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",
});

Create a Configuration Resource

def Configuration(resource_name, opts=None, configurations=None, datastore=None, description=None, name=None, region=None, __props__=None);
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.
opts ResourceOptions
A bag of options that control this 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.

Configuration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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 ConfigurationDatastore

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 []ConfigurationConfiguration

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 ConfigurationDatastore

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 ConfigurationConfiguration[]

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 Dict[ConfigurationDatastore]

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 List[ConfigurationConfiguration]

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.

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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
static get(resource_name, id, opts=None, configurations=None, datastore=None, description=None, name=None, region=None, __props__=None);
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)
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.

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 []ConfigurationConfiguration

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

Datastore ConfigurationDatastore

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 ConfigurationConfiguration[]

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

datastore ConfigurationDatastore

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[ConfigurationConfiguration]

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

datastore Dict[ConfigurationDatastore]

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.

Supporting Types

ConfigurationConfiguration

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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.

ConfigurationDatastore

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.