oci.Psql.Configuration
Explore with Pulumi AI
This resource provides the Configuration resource in Oracle Cloud Infrastructure Psql service.
Creates a new configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConfiguration = new oci.psql.Configuration("test_configuration", {
compartmentId: compartmentId,
dbConfigurationOverrides: {
items: [{
configKey: configurationDbConfigurationOverridesItemsConfigKey,
overridenConfigValue: configurationDbConfigurationOverridesItemsOverridenConfigValue,
}],
},
dbVersion: configurationDbVersion,
displayName: configurationDisplayName,
instanceMemorySizeInGbs: configurationInstanceMemorySizeInGbs,
instanceOcpuCount: configurationInstanceOcpuCount,
shape: configurationShape,
definedTags: {
"foo-namespace.bar-key": "value",
},
description: configurationDescription,
freeformTags: {
"bar-key": "value",
},
systemTags: configurationSystemTags,
});
import pulumi
import pulumi_oci as oci
test_configuration = oci.psql.Configuration("test_configuration",
compartment_id=compartment_id,
db_configuration_overrides=oci.psql.ConfigurationDbConfigurationOverridesArgs(
items=[oci.psql.ConfigurationDbConfigurationOverridesItemArgs(
config_key=configuration_db_configuration_overrides_items_config_key,
overriden_config_value=configuration_db_configuration_overrides_items_overriden_config_value,
)],
),
db_version=configuration_db_version,
display_name=configuration_display_name,
instance_memory_size_in_gbs=configuration_instance_memory_size_in_gbs,
instance_ocpu_count=configuration_instance_ocpu_count,
shape=configuration_shape,
defined_tags={
"foo-namespace.bar-key": "value",
},
description=configuration_description,
freeform_tags={
"bar-key": "value",
},
system_tags=configuration_system_tags)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Psql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Psql.NewConfiguration(ctx, "test_configuration", &Psql.ConfigurationArgs{
CompartmentId: pulumi.Any(compartmentId),
DbConfigurationOverrides: &psql.ConfigurationDbConfigurationOverridesArgs{
Items: psql.ConfigurationDbConfigurationOverridesItemArray{
&psql.ConfigurationDbConfigurationOverridesItemArgs{
ConfigKey: pulumi.Any(configurationDbConfigurationOverridesItemsConfigKey),
OverridenConfigValue: pulumi.Any(configurationDbConfigurationOverridesItemsOverridenConfigValue),
},
},
},
DbVersion: pulumi.Any(configurationDbVersion),
DisplayName: pulumi.Any(configurationDisplayName),
InstanceMemorySizeInGbs: pulumi.Any(configurationInstanceMemorySizeInGbs),
InstanceOcpuCount: pulumi.Any(configurationInstanceOcpuCount),
Shape: pulumi.Any(configurationShape),
DefinedTags: pulumi.Map{
"foo-namespace.bar-key": pulumi.Any("value"),
},
Description: pulumi.Any(configurationDescription),
FreeformTags: pulumi.Map{
"bar-key": pulumi.Any("value"),
},
SystemTags: pulumi.Any(configurationSystemTags),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testConfiguration = new Oci.Psql.Configuration("test_configuration", new()
{
CompartmentId = compartmentId,
DbConfigurationOverrides = new Oci.Psql.Inputs.ConfigurationDbConfigurationOverridesArgs
{
Items = new[]
{
new Oci.Psql.Inputs.ConfigurationDbConfigurationOverridesItemArgs
{
ConfigKey = configurationDbConfigurationOverridesItemsConfigKey,
OverridenConfigValue = configurationDbConfigurationOverridesItemsOverridenConfigValue,
},
},
},
DbVersion = configurationDbVersion,
DisplayName = configurationDisplayName,
InstanceMemorySizeInGbs = configurationInstanceMemorySizeInGbs,
InstanceOcpuCount = configurationInstanceOcpuCount,
Shape = configurationShape,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
Description = configurationDescription,
FreeformTags =
{
{ "bar-key", "value" },
},
SystemTags = configurationSystemTags,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Psql.Configuration;
import com.pulumi.oci.Psql.ConfigurationArgs;
import com.pulumi.oci.Psql.inputs.ConfigurationDbConfigurationOverridesArgs;
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 testConfiguration = new Configuration("testConfiguration", ConfigurationArgs.builder()
.compartmentId(compartmentId)
.dbConfigurationOverrides(ConfigurationDbConfigurationOverridesArgs.builder()
.items(ConfigurationDbConfigurationOverridesItemArgs.builder()
.configKey(configurationDbConfigurationOverridesItemsConfigKey)
.overridenConfigValue(configurationDbConfigurationOverridesItemsOverridenConfigValue)
.build())
.build())
.dbVersion(configurationDbVersion)
.displayName(configurationDisplayName)
.instanceMemorySizeInGbs(configurationInstanceMemorySizeInGbs)
.instanceOcpuCount(configurationInstanceOcpuCount)
.shape(configurationShape)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.description(configurationDescription)
.freeformTags(Map.of("bar-key", "value"))
.systemTags(configurationSystemTags)
.build());
}
}
resources:
testConfiguration:
type: oci:Psql:Configuration
name: test_configuration
properties:
compartmentId: ${compartmentId}
dbConfigurationOverrides:
items:
- configKey: ${configurationDbConfigurationOverridesItemsConfigKey}
overridenConfigValue: ${configurationDbConfigurationOverridesItemsOverridenConfigValue}
dbVersion: ${configurationDbVersion}
displayName: ${configurationDisplayName}
instanceMemorySizeInGbs: ${configurationInstanceMemorySizeInGbs}
instanceOcpuCount: ${configurationInstanceOcpuCount}
shape: ${configurationShape}
definedTags:
foo-namespace.bar-key: value
description: ${configurationDescription}
freeformTags:
bar-key: value
systemTags: ${configurationSystemTags}
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,
compartment_id: Optional[str] = None,
db_configuration_overrides: Optional[_psql.ConfigurationDbConfigurationOverridesArgs] = None,
db_version: Optional[str] = None,
display_name: Optional[str] = None,
instance_memory_size_in_gbs: Optional[int] = None,
instance_ocpu_count: Optional[int] = None,
shape: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
system_tags: Optional[Mapping[str, Any]] = 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: oci:Psql: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 exampleconfigurationResourceResourceFromPsqlconfiguration = new Oci.Psql.Configuration("exampleconfigurationResourceResourceFromPsqlconfiguration", new()
{
CompartmentId = "string",
DbConfigurationOverrides = new Oci.Psql.Inputs.ConfigurationDbConfigurationOverridesArgs
{
Items = new[]
{
new Oci.Psql.Inputs.ConfigurationDbConfigurationOverridesItemArgs
{
ConfigKey = "string",
OverridenConfigValue = "string",
},
},
},
DbVersion = "string",
DisplayName = "string",
InstanceMemorySizeInGbs = 0,
InstanceOcpuCount = 0,
Shape = "string",
DefinedTags =
{
{ "string", "any" },
},
Description = "string",
FreeformTags =
{
{ "string", "any" },
},
SystemTags =
{
{ "string", "any" },
},
});
example, err := Psql.NewConfiguration(ctx, "exampleconfigurationResourceResourceFromPsqlconfiguration", &Psql.ConfigurationArgs{
CompartmentId: pulumi.String("string"),
DbConfigurationOverrides: &psql.ConfigurationDbConfigurationOverridesArgs{
Items: psql.ConfigurationDbConfigurationOverridesItemArray{
&psql.ConfigurationDbConfigurationOverridesItemArgs{
ConfigKey: pulumi.String("string"),
OverridenConfigValue: pulumi.String("string"),
},
},
},
DbVersion: pulumi.String("string"),
DisplayName: pulumi.String("string"),
InstanceMemorySizeInGbs: pulumi.Int(0),
InstanceOcpuCount: pulumi.Int(0),
Shape: pulumi.String("string"),
DefinedTags: pulumi.Map{
"string": pulumi.Any("any"),
},
Description: pulumi.String("string"),
FreeformTags: pulumi.Map{
"string": pulumi.Any("any"),
},
SystemTags: pulumi.Map{
"string": pulumi.Any("any"),
},
})
var exampleconfigurationResourceResourceFromPsqlconfiguration = new Configuration("exampleconfigurationResourceResourceFromPsqlconfiguration", ConfigurationArgs.builder()
.compartmentId("string")
.dbConfigurationOverrides(ConfigurationDbConfigurationOverridesArgs.builder()
.items(ConfigurationDbConfigurationOverridesItemArgs.builder()
.configKey("string")
.overridenConfigValue("string")
.build())
.build())
.dbVersion("string")
.displayName("string")
.instanceMemorySizeInGbs(0)
.instanceOcpuCount(0)
.shape("string")
.definedTags(Map.of("string", "any"))
.description("string")
.freeformTags(Map.of("string", "any"))
.systemTags(Map.of("string", "any"))
.build());
exampleconfiguration_resource_resource_from_psqlconfiguration = oci.psql.Configuration("exampleconfigurationResourceResourceFromPsqlconfiguration",
compartment_id="string",
db_configuration_overrides=oci.psql.ConfigurationDbConfigurationOverridesArgs(
items=[oci.psql.ConfigurationDbConfigurationOverridesItemArgs(
config_key="string",
overriden_config_value="string",
)],
),
db_version="string",
display_name="string",
instance_memory_size_in_gbs=0,
instance_ocpu_count=0,
shape="string",
defined_tags={
"string": "any",
},
description="string",
freeform_tags={
"string": "any",
},
system_tags={
"string": "any",
})
const exampleconfigurationResourceResourceFromPsqlconfiguration = new oci.psql.Configuration("exampleconfigurationResourceResourceFromPsqlconfiguration", {
compartmentId: "string",
dbConfigurationOverrides: {
items: [{
configKey: "string",
overridenConfigValue: "string",
}],
},
dbVersion: "string",
displayName: "string",
instanceMemorySizeInGbs: 0,
instanceOcpuCount: 0,
shape: "string",
definedTags: {
string: "any",
},
description: "string",
freeformTags: {
string: "any",
},
systemTags: {
string: "any",
},
});
type: oci:Psql:Configuration
properties:
compartmentId: string
dbConfigurationOverrides:
items:
- configKey: string
overridenConfigValue: string
dbVersion: string
definedTags:
string: any
description: string
displayName: string
freeformTags:
string: any
instanceMemorySizeInGbs: 0
instanceOcpuCount: 0
shape: string
systemTags:
string: any
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:
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the configuration.
- Db
Configuration ConfigurationOverrides Db Configuration Overrides - Configuration overrides for a PostgreSQL instance.
- Db
Version string - Version of the PostgreSQL database.
- Display
Name string - (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
- Instance
Memory intSize In Gbs - Memory size in gigabytes with 1GB increment.
- Instance
Ocpu intCount - CPU core count.
- Shape string
- The name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) Details about the configuration set.
- Dictionary<string, object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Dictionary<string, object>
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the configuration.
- Db
Configuration ConfigurationOverrides Db Configuration Overrides Args - Configuration overrides for a PostgreSQL instance.
- Db
Version string - Version of the PostgreSQL database.
- Display
Name string - (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
- Instance
Memory intSize In Gbs - Memory size in gigabytes with 1GB increment.
- Instance
Ocpu intCount - CPU core count.
- Shape string
- The name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) Details about the configuration set.
- map[string]interface{}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- map[string]interface{}
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String - (Updatable) The OCID of the compartment that contains the configuration.
- db
Configuration ConfigurationOverrides Db Configuration Overrides - Configuration overrides for a PostgreSQL instance.
- db
Version String - Version of the PostgreSQL database.
- display
Name String - (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
- instance
Memory IntegerSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu IntegerCount - CPU core count.
- shape String
- The name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) Details about the configuration set.
- Map<String,Object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Map<String,Object>
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id string - (Updatable) The OCID of the compartment that contains the configuration.
- db
Configuration ConfigurationOverrides Db Configuration Overrides - Configuration overrides for a PostgreSQL instance.
- db
Version string - Version of the PostgreSQL database.
- display
Name string - (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
- instance
Memory numberSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu numberCount - CPU core count.
- shape string
- The name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) Details about the configuration set.
- {[key: string]: any}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- {[key: string]: any}
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment_
id str - (Updatable) The OCID of the compartment that contains the configuration.
- db_
configuration_ psql.overrides Configuration Db Configuration Overrides Args - Configuration overrides for a PostgreSQL instance.
- db_
version str - Version of the PostgreSQL database.
- display_
name str - (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
- instance_
memory_ intsize_ in_ gbs - Memory size in gigabytes with 1GB increment.
- instance_
ocpu_ intcount - CPU core count.
- shape str
- The name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) Details about the configuration set.
- Mapping[str, Any]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Mapping[str, Any]
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String - (Updatable) The OCID of the compartment that contains the configuration.
- db
Configuration Property MapOverrides - Configuration overrides for a PostgreSQL instance.
- db
Version String - Version of the PostgreSQL database.
- display
Name String - (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
- instance
Memory NumberSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu NumberCount - CPU core count.
- shape String
- The name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) Details about the configuration set.
- Map<Any>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Map<Any>
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the Configuration resource produces the following output properties:
- Configuration
Details List<ConfigurationConfiguration Detail> - List of configuration details.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- State string
- The current state of the configuration.
- Time
Created string - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Configuration
Details []ConfigurationConfiguration Detail - List of configuration details.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- State string
- The current state of the configuration.
- Time
Created string - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- configuration
Details List<ConfigurationConfiguration Detail> - List of configuration details.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- state String
- The current state of the configuration.
- time
Created String - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- configuration
Details ConfigurationConfiguration Detail[] - List of configuration details.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- state string
- The current state of the configuration.
- time
Created string - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- configuration_
details Sequence[psql.Configuration Configuration Detail] - List of configuration details.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- state str
- The current state of the configuration.
- time_
created str - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- configuration
Details List<Property Map> - List of configuration details.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- state String
- The current state of the configuration.
- time
Created String - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
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,
compartment_id: Optional[str] = None,
configuration_details: Optional[Sequence[_psql.ConfigurationConfigurationDetailArgs]] = None,
db_configuration_overrides: Optional[_psql.ConfigurationDbConfigurationOverridesArgs] = None,
db_version: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
instance_memory_size_in_gbs: Optional[int] = None,
instance_ocpu_count: Optional[int] = None,
lifecycle_details: Optional[str] = None,
shape: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, Any]] = None,
time_created: 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.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the configuration.
- Configuration
Details List<ConfigurationConfiguration Detail> - List of configuration details.
- Db
Configuration ConfigurationOverrides Db Configuration Overrides - Configuration overrides for a PostgreSQL instance.
- Db
Version string - Version of the PostgreSQL database.
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) Details about the configuration set.
- Display
Name string - (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
- Dictionary<string, object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Instance
Memory intSize In Gbs - Memory size in gigabytes with 1GB increment.
- Instance
Ocpu intCount - CPU core count.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Shape string
- The name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- State string
- The current state of the configuration.
- Dictionary<string, object>
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Time
Created string - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the configuration.
- Configuration
Details []ConfigurationConfiguration Detail Args - List of configuration details.
- Db
Configuration ConfigurationOverrides Db Configuration Overrides Args - Configuration overrides for a PostgreSQL instance.
- Db
Version string - Version of the PostgreSQL database.
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) Details about the configuration set.
- Display
Name string - (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
- map[string]interface{}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Instance
Memory intSize In Gbs - Memory size in gigabytes with 1GB increment.
- Instance
Ocpu intCount - CPU core count.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Shape string
- The name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- State string
- The current state of the configuration.
- map[string]interface{}
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Time
Created string - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - (Updatable) The OCID of the compartment that contains the configuration.
- configuration
Details List<ConfigurationConfiguration Detail> - List of configuration details.
- db
Configuration ConfigurationOverrides Db Configuration Overrides - Configuration overrides for a PostgreSQL instance.
- db
Version String - Version of the PostgreSQL database.
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) Details about the configuration set.
- display
Name String - (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
- Map<String,Object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- instance
Memory IntegerSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu IntegerCount - CPU core count.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- shape String
- The name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- state String
- The current state of the configuration.
- Map<String,Object>
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time
Created String - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- compartment
Id string - (Updatable) The OCID of the compartment that contains the configuration.
- configuration
Details ConfigurationConfiguration Detail[] - List of configuration details.
- db
Configuration ConfigurationOverrides Db Configuration Overrides - Configuration overrides for a PostgreSQL instance.
- db
Version string - Version of the PostgreSQL database.
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) Details about the configuration set.
- display
Name string - (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
- {[key: string]: any}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- instance
Memory numberSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu numberCount - CPU core count.
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- shape string
- The name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- state string
- The current state of the configuration.
- {[key: string]: any}
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time
Created string - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- compartment_
id str - (Updatable) The OCID of the compartment that contains the configuration.
- configuration_
details Sequence[psql.Configuration Configuration Detail Args] - List of configuration details.
- db_
configuration_ psql.overrides Configuration Db Configuration Overrides Args - Configuration overrides for a PostgreSQL instance.
- db_
version str - Version of the PostgreSQL database.
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) Details about the configuration set.
- display_
name str - (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
- Mapping[str, Any]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- instance_
memory_ intsize_ in_ gbs - Memory size in gigabytes with 1GB increment.
- instance_
ocpu_ intcount - CPU core count.
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- shape str
- The name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- state str
- The current state of the configuration.
- Mapping[str, Any]
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time_
created str - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - (Updatable) The OCID of the compartment that contains the configuration.
- configuration
Details List<Property Map> - List of configuration details.
- db
Configuration Property MapOverrides - Configuration overrides for a PostgreSQL instance.
- db
Version String - Version of the PostgreSQL database.
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) Details about the configuration set.
- display
Name String - (Updatable) A user-friendly display name for the configuration. Avoid entering confidential information.
- Map<Any>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- instance
Memory NumberSize In Gbs - Memory size in gigabytes with 1GB increment.
- instance
Ocpu NumberCount - CPU core count.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- shape String
- The name of the shape for the configuration. Example:
VM.Standard.E4.Flex
- state String
- The current state of the configuration.
- Map<Any>
System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time
Created String - The date and time that the configuration was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
Supporting Types
ConfigurationConfigurationDetail, ConfigurationConfigurationDetailArgs
- Items
List<Configuration
Configuration Detail Item> - List of ConfigParms object.
- Items
[]Configuration
Configuration Detail Item - List of ConfigParms object.
- items
List<Configuration
Configuration Detail Item> - List of ConfigParms object.
- items
Configuration
Configuration Detail Item[] - List of ConfigParms object.
- items
Sequence[psql.
Configuration Configuration Detail Item] - List of ConfigParms object.
- items List<Property Map>
- List of ConfigParms object.
ConfigurationConfigurationDetailItem, ConfigurationConfigurationDetailItemArgs
- Allowed
Values string - Range or list of allowed values.
- Config
Key string - The configuration variable name.
- Data
Type string - Data type of the variable.
- Default
Config stringValue - Default value for the configuration variable.
- Description string
- (Updatable) Details about the configuration set.
- Is
Overridable bool - Whether the value can be overridden or not.
- Is
Restart boolRequired - If true, modifying this configuration value will require a restart of the database.
- Overriden
Config stringValue - User-selected configuration variable value.
- Allowed
Values string - Range or list of allowed values.
- Config
Key string - The configuration variable name.
- Data
Type string - Data type of the variable.
- Default
Config stringValue - Default value for the configuration variable.
- Description string
- (Updatable) Details about the configuration set.
- Is
Overridable bool - Whether the value can be overridden or not.
- Is
Restart boolRequired - If true, modifying this configuration value will require a restart of the database.
- Overriden
Config stringValue - User-selected configuration variable value.
- allowed
Values String - Range or list of allowed values.
- config
Key String - The configuration variable name.
- data
Type String - Data type of the variable.
- default
Config StringValue - Default value for the configuration variable.
- description String
- (Updatable) Details about the configuration set.
- is
Overridable Boolean - Whether the value can be overridden or not.
- is
Restart BooleanRequired - If true, modifying this configuration value will require a restart of the database.
- overriden
Config StringValue - User-selected configuration variable value.
- allowed
Values string - Range or list of allowed values.
- config
Key string - The configuration variable name.
- data
Type string - Data type of the variable.
- default
Config stringValue - Default value for the configuration variable.
- description string
- (Updatable) Details about the configuration set.
- is
Overridable boolean - Whether the value can be overridden or not.
- is
Restart booleanRequired - If true, modifying this configuration value will require a restart of the database.
- overriden
Config stringValue - User-selected configuration variable value.
- allowed_
values str - Range or list of allowed values.
- config_
key str - The configuration variable name.
- data_
type str - Data type of the variable.
- default_
config_ strvalue - Default value for the configuration variable.
- description str
- (Updatable) Details about the configuration set.
- is_
overridable bool - Whether the value can be overridden or not.
- is_
restart_ boolrequired - If true, modifying this configuration value will require a restart of the database.
- overriden_
config_ strvalue - User-selected configuration variable value.
- allowed
Values String - Range or list of allowed values.
- config
Key String - The configuration variable name.
- data
Type String - Data type of the variable.
- default
Config StringValue - Default value for the configuration variable.
- description String
- (Updatable) Details about the configuration set.
- is
Overridable Boolean - Whether the value can be overridden or not.
- is
Restart BooleanRequired - If true, modifying this configuration value will require a restart of the database.
- overriden
Config StringValue - User-selected configuration variable value.
ConfigurationDbConfigurationOverrides, ConfigurationDbConfigurationOverridesArgs
- Items
List<Configuration
Db Configuration Overrides Item> - List of configuration overridden values.
- Items
[]Configuration
Db Configuration Overrides Item - List of configuration overridden values.
- items
List<Configuration
Db Configuration Overrides Item> - List of configuration overridden values.
- items
Configuration
Db Configuration Overrides Item[] - List of configuration overridden values.
- items
Sequence[psql.
Configuration Db Configuration Overrides Item] - List of configuration overridden values.
- items List<Property Map>
- List of configuration overridden values.
ConfigurationDbConfigurationOverridesItem, ConfigurationDbConfigurationOverridesItemArgs
- Config
Key string - Configuration variable name.
- Overriden
Config stringValue - User-selected variable value.
- Config
Key string - Configuration variable name.
- Overriden
Config stringValue - User-selected variable value.
- config
Key String - Configuration variable name.
- overriden
Config StringValue - User-selected variable value.
- config
Key string - Configuration variable name.
- overriden
Config stringValue - User-selected variable value.
- config_
key str - Configuration variable name.
- overriden_
config_ strvalue - User-selected variable value.
- config
Key String - Configuration variable name.
- overriden
Config StringValue - User-selected variable value.
Import
Configurations can be imported using the id
, e.g.
$ pulumi import oci:Psql/configuration:Configuration test_configuration "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.