OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi
openstack.database.Configuration
Explore with Pulumi AI
Create Configuration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);
@overload
def Configuration(resource_name: str,
args: ConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Configuration(resource_name: str,
opts: Optional[ResourceOptions] = None,
datastore: Optional[ConfigurationDatastoreArgs] = None,
description: Optional[str] = None,
configurations: Optional[Sequence[ConfigurationConfigurationArgs]] = None,
name: Optional[str] = None,
region: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var configurationResource = new OpenStack.Database.Configuration("configurationResource", new()
{
Datastore = new OpenStack.Database.Inputs.ConfigurationDatastoreArgs
{
Type = "string",
Version = "string",
},
Description = "string",
Configurations = new[]
{
new OpenStack.Database.Inputs.ConfigurationConfigurationArgs
{
Name = "string",
Value = "string",
StringType = false,
},
},
Name = "string",
Region = "string",
});
example, err := database.NewConfiguration(ctx, "configurationResource", &database.ConfigurationArgs{
Datastore: &database.ConfigurationDatastoreArgs{
Type: pulumi.String("string"),
Version: pulumi.String("string"),
},
Description: pulumi.String("string"),
Configurations: database.ConfigurationConfigurationArray{
&database.ConfigurationConfigurationArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
StringType: pulumi.Bool(false),
},
},
Name: pulumi.String("string"),
Region: pulumi.String("string"),
})
var configurationResource = new Configuration("configurationResource", ConfigurationArgs.builder()
.datastore(ConfigurationDatastoreArgs.builder()
.type("string")
.version("string")
.build())
.description("string")
.configurations(ConfigurationConfigurationArgs.builder()
.name("string")
.value("string")
.stringType(false)
.build())
.name("string")
.region("string")
.build());
configuration_resource = openstack.database.Configuration("configurationResource",
datastore=openstack.database.ConfigurationDatastoreArgs(
type="string",
version="string",
),
description="string",
configurations=[openstack.database.ConfigurationConfigurationArgs(
name="string",
value="string",
string_type=False,
)],
name="string",
region="string")
const configurationResource = new openstack.database.Configuration("configurationResource", {
datastore: {
type: "string",
version: "string",
},
description: "string",
configurations: [{
name: "string",
value: "string",
stringType: false,
}],
name: "string",
region: "string",
});
type: openstack:database:Configuration
properties:
configurations:
- name: string
stringType: false
value: string
datastore:
type: string
version: string
description: string
name: string
region: string
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.
Open Stack. Database. Inputs. 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
List<Pulumi.
Open Stack. Database. Inputs. Configuration Configuration> - An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
- Name string
- A unique name for the resource.
- Region string
- The region in which to create the db instance. Changing this creates a new instance.
- Datastore
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
[]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
- A unique name for the 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
List<Configuration
Configuration> - An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
- name String
- A unique name for the 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
- A unique name for the resource.
- region string
- The region in which to create the db instance. Changing this creates a new instance.
- datastore
Configuration
Datastore Args - 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[Configuration
Configuration Args] - An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
- name str
- A unique name for the 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
- A unique name for the 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.
- Configurations
List<Pulumi.
Open Stack. Database. Inputs. Configuration Configuration> - 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 - 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
- A unique name for the resource.
- Region string
- The region in which to create the db instance. Changing this creates a new instance.
- Configurations
[]Configuration
Configuration Args - An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
- Datastore
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
- A unique name for the 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
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
- A unique name for the 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
- A unique name for the resource.
- region string
- The region in which to create the db instance. Changing this creates a new instance.
- configurations
Sequence[Configuration
Configuration Args] - An array of configuration parameter name and value. Can be specified multiple times. The configuration object structure is documented below.
- datastore
Configuration
Datastore Args - 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
- A unique name for the 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
- A unique name for the resource.
- region String
- The region in which to create the db instance. Changing this creates a new instance.
Supporting Types
ConfigurationConfiguration, ConfigurationConfigurationArgs
- Name string
- Configuration parameter name. Changing this creates a new resource.
- Value string
- Configuration parameter value. Changing this creates a new resource.
- String
Type bool - Whether or not to store configuration parameter value as string. Changing this creates a new resource. See the below note for more information.
- Name string
- Configuration parameter name. Changing this creates a new resource.
- Value string
- Configuration parameter value. Changing this creates a new resource.
- String
Type bool - Whether or not to store configuration parameter value as string. Changing this creates a new resource. See the below note for more information.
- name String
- Configuration parameter name. Changing this creates a new resource.
- value String
- Configuration parameter value. Changing this creates a new resource.
- string
Type Boolean - Whether or not to store configuration parameter value as string. Changing this creates a new resource. See the below note for more information.
- name string
- Configuration parameter name. Changing this creates a new resource.
- value string
- Configuration parameter value. Changing this creates a new resource.
- string
Type boolean - Whether or not to store configuration parameter value as string. Changing this creates a new resource. See the below note for more information.
- name str
- Configuration parameter name. Changing this creates a new resource.
- value str
- Configuration parameter value. Changing this creates a new resource.
- string_
type bool - Whether or not to store configuration parameter value as string. Changing this creates a new resource. See the below note for more information.
- name String
- Configuration parameter name. Changing this creates a new resource.
- value String
- Configuration parameter value. Changing this creates a new resource.
- string
Type Boolean - Whether or not to store configuration parameter value as string. Changing this creates a new resource. See the below note for more information.
ConfigurationDatastore, ConfigurationDatastoreArgs
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.