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
new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);def Configuration(resource_name, opts=None, configurations=None, datastore=None, description=None, name=None, region=None, __props__=None);func NewConfiguration(ctx *Context, name string, args ConfigurationArgs, opts ...ResourceOption) (*Configuration, error)public Configuration(string name, ConfigurationArgs args, CustomResourceOptions? opts = null)- 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.
Open Stack. Database. Inputs. Configuration Datastore Args 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.
Open Stack. Database. Inputs. Configuration Configuration Args> 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
Configuration
Datastore 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
[]Configuration
Configuration 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
Configuration
Datastore 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
Configuration
Configuration[] 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[Configuration
Datastore] 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[Configuration
Configuration] 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:
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): Configurationstatic 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.
Open Stack. Database. Inputs. Configuration Configuration Args> An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
- Datastore
Pulumi.
Open Stack. Database. Inputs. Configuration Datastore Args 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
[]Configuration
Configuration An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
- Datastore
Configuration
Datastore 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
Configuration
Configuration[] An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
- datastore
Configuration
Datastore 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[Configuration
Configuration] An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
- datastore
Dict[Configuration
Datastore] 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
ConfigurationDatastore
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.