aws.rds.OptionGroup
Explore with Pulumi AI
Provides an RDS DB option group resource. Documentation of the available options for various RDS engines can be found at:
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.rds.OptionGroup("example", {
name: "option-group-test",
optionGroupDescription: "Option Group",
engineName: "sqlserver-ee",
majorEngineVersion: "11.00",
options: [
{
optionName: "Timezone",
optionSettings: [{
name: "TIME_ZONE",
value: "UTC",
}],
},
{
optionName: "SQLSERVER_BACKUP_RESTORE",
optionSettings: [{
name: "IAM_ROLE_ARN",
value: exampleAwsIamRole.arn,
}],
},
{
optionName: "TDE",
},
],
});
import pulumi
import pulumi_aws as aws
example = aws.rds.OptionGroup("example",
name="option-group-test",
option_group_description="Option Group",
engine_name="sqlserver-ee",
major_engine_version="11.00",
options=[
{
"option_name": "Timezone",
"option_settings": [{
"name": "TIME_ZONE",
"value": "UTC",
}],
},
{
"option_name": "SQLSERVER_BACKUP_RESTORE",
"option_settings": [{
"name": "IAM_ROLE_ARN",
"value": example_aws_iam_role["arn"],
}],
},
{
"option_name": "TDE",
},
])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds.NewOptionGroup(ctx, "example", &rds.OptionGroupArgs{
Name: pulumi.String("option-group-test"),
OptionGroupDescription: pulumi.String("Option Group"),
EngineName: pulumi.String("sqlserver-ee"),
MajorEngineVersion: pulumi.String("11.00"),
Options: rds.OptionGroupOptionArray{
&rds.OptionGroupOptionArgs{
OptionName: pulumi.String("Timezone"),
OptionSettings: rds.OptionGroupOptionOptionSettingArray{
&rds.OptionGroupOptionOptionSettingArgs{
Name: pulumi.String("TIME_ZONE"),
Value: pulumi.String("UTC"),
},
},
},
&rds.OptionGroupOptionArgs{
OptionName: pulumi.String("SQLSERVER_BACKUP_RESTORE"),
OptionSettings: rds.OptionGroupOptionOptionSettingArray{
&rds.OptionGroupOptionOptionSettingArgs{
Name: pulumi.String("IAM_ROLE_ARN"),
Value: pulumi.Any(exampleAwsIamRole.Arn),
},
},
},
&rds.OptionGroupOptionArgs{
OptionName: pulumi.String("TDE"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Rds.OptionGroup("example", new()
{
Name = "option-group-test",
OptionGroupDescription = "Option Group",
EngineName = "sqlserver-ee",
MajorEngineVersion = "11.00",
Options = new[]
{
new Aws.Rds.Inputs.OptionGroupOptionArgs
{
OptionName = "Timezone",
OptionSettings = new[]
{
new Aws.Rds.Inputs.OptionGroupOptionOptionSettingArgs
{
Name = "TIME_ZONE",
Value = "UTC",
},
},
},
new Aws.Rds.Inputs.OptionGroupOptionArgs
{
OptionName = "SQLSERVER_BACKUP_RESTORE",
OptionSettings = new[]
{
new Aws.Rds.Inputs.OptionGroupOptionOptionSettingArgs
{
Name = "IAM_ROLE_ARN",
Value = exampleAwsIamRole.Arn,
},
},
},
new Aws.Rds.Inputs.OptionGroupOptionArgs
{
OptionName = "TDE",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.OptionGroup;
import com.pulumi.aws.rds.OptionGroupArgs;
import com.pulumi.aws.rds.inputs.OptionGroupOptionArgs;
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 example = new OptionGroup("example", OptionGroupArgs.builder()
.name("option-group-test")
.optionGroupDescription("Option Group")
.engineName("sqlserver-ee")
.majorEngineVersion("11.00")
.options(
OptionGroupOptionArgs.builder()
.optionName("Timezone")
.optionSettings(OptionGroupOptionOptionSettingArgs.builder()
.name("TIME_ZONE")
.value("UTC")
.build())
.build(),
OptionGroupOptionArgs.builder()
.optionName("SQLSERVER_BACKUP_RESTORE")
.optionSettings(OptionGroupOptionOptionSettingArgs.builder()
.name("IAM_ROLE_ARN")
.value(exampleAwsIamRole.arn())
.build())
.build(),
OptionGroupOptionArgs.builder()
.optionName("TDE")
.build())
.build());
}
}
resources:
example:
type: aws:rds:OptionGroup
properties:
name: option-group-test
optionGroupDescription: Option Group
engineName: sqlserver-ee
majorEngineVersion: '11.00'
options:
- optionName: Timezone
optionSettings:
- name: TIME_ZONE
value: UTC
- optionName: SQLSERVER_BACKUP_RESTORE
optionSettings:
- name: IAM_ROLE_ARN
value: ${exampleAwsIamRole.arn}
- optionName: TDE
Note: Any modifications to the
aws.rds.OptionGroup
are set to happen immediately as we default to applying immediately.
WARNING: You can perform a destroy on a
aws.rds.OptionGroup
, as long as it is not associated with any Amazon RDS resource. An option group can be associated with a DB instance, a manual DB snapshot, or an automated DB snapshot.
If you try to delete an option group that is associated with an Amazon RDS resource, an error similar to the following is returned:
An error occurred (InvalidOptionGroupStateFault) when calling the DeleteOptionGroup operation: The option group ‘optionGroupName’ cannot be deleted because it is in use.
More information about this can be found here.
Create OptionGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OptionGroup(name: string, args: OptionGroupArgs, opts?: CustomResourceOptions);
@overload
def OptionGroup(resource_name: str,
args: OptionGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OptionGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
engine_name: Optional[str] = None,
major_engine_version: Optional[str] = None,
name: Optional[str] = None,
name_prefix: Optional[str] = None,
option_group_description: Optional[str] = None,
options: Optional[Sequence[OptionGroupOptionArgs]] = None,
skip_destroy: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None)
func NewOptionGroup(ctx *Context, name string, args OptionGroupArgs, opts ...ResourceOption) (*OptionGroup, error)
public OptionGroup(string name, OptionGroupArgs args, CustomResourceOptions? opts = null)
public OptionGroup(String name, OptionGroupArgs args)
public OptionGroup(String name, OptionGroupArgs args, CustomResourceOptions options)
type: aws:rds:OptionGroup
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 OptionGroupArgs
- 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 OptionGroupArgs
- 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 OptionGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OptionGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OptionGroupArgs
- 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 optionGroupResource = new Aws.Rds.OptionGroup("optionGroupResource", new()
{
EngineName = "string",
MajorEngineVersion = "string",
Name = "string",
NamePrefix = "string",
OptionGroupDescription = "string",
Options = new[]
{
new Aws.Rds.Inputs.OptionGroupOptionArgs
{
OptionName = "string",
DbSecurityGroupMemberships = new[]
{
"string",
},
OptionSettings = new[]
{
new Aws.Rds.Inputs.OptionGroupOptionOptionSettingArgs
{
Name = "string",
Value = "string",
},
},
Port = 0,
Version = "string",
VpcSecurityGroupMemberships = new[]
{
"string",
},
},
},
SkipDestroy = false,
Tags =
{
{ "string", "string" },
},
});
example, err := rds.NewOptionGroup(ctx, "optionGroupResource", &rds.OptionGroupArgs{
EngineName: pulumi.String("string"),
MajorEngineVersion: pulumi.String("string"),
Name: pulumi.String("string"),
NamePrefix: pulumi.String("string"),
OptionGroupDescription: pulumi.String("string"),
Options: rds.OptionGroupOptionArray{
&rds.OptionGroupOptionArgs{
OptionName: pulumi.String("string"),
DbSecurityGroupMemberships: pulumi.StringArray{
pulumi.String("string"),
},
OptionSettings: rds.OptionGroupOptionOptionSettingArray{
&rds.OptionGroupOptionOptionSettingArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Port: pulumi.Int(0),
Version: pulumi.String("string"),
VpcSecurityGroupMemberships: pulumi.StringArray{
pulumi.String("string"),
},
},
},
SkipDestroy: pulumi.Bool(false),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var optionGroupResource = new OptionGroup("optionGroupResource", OptionGroupArgs.builder()
.engineName("string")
.majorEngineVersion("string")
.name("string")
.namePrefix("string")
.optionGroupDescription("string")
.options(OptionGroupOptionArgs.builder()
.optionName("string")
.dbSecurityGroupMemberships("string")
.optionSettings(OptionGroupOptionOptionSettingArgs.builder()
.name("string")
.value("string")
.build())
.port(0)
.version("string")
.vpcSecurityGroupMemberships("string")
.build())
.skipDestroy(false)
.tags(Map.of("string", "string"))
.build());
option_group_resource = aws.rds.OptionGroup("optionGroupResource",
engine_name="string",
major_engine_version="string",
name="string",
name_prefix="string",
option_group_description="string",
options=[{
"optionName": "string",
"dbSecurityGroupMemberships": ["string"],
"optionSettings": [{
"name": "string",
"value": "string",
}],
"port": 0,
"version": "string",
"vpcSecurityGroupMemberships": ["string"],
}],
skip_destroy=False,
tags={
"string": "string",
})
const optionGroupResource = new aws.rds.OptionGroup("optionGroupResource", {
engineName: "string",
majorEngineVersion: "string",
name: "string",
namePrefix: "string",
optionGroupDescription: "string",
options: [{
optionName: "string",
dbSecurityGroupMemberships: ["string"],
optionSettings: [{
name: "string",
value: "string",
}],
port: 0,
version: "string",
vpcSecurityGroupMemberships: ["string"],
}],
skipDestroy: false,
tags: {
string: "string",
},
});
type: aws:rds:OptionGroup
properties:
engineName: string
majorEngineVersion: string
name: string
namePrefix: string
optionGroupDescription: string
options:
- dbSecurityGroupMemberships:
- string
optionName: string
optionSettings:
- name: string
value: string
port: 0
version: string
vpcSecurityGroupMemberships:
- string
skipDestroy: false
tags:
string: string
OptionGroup 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 OptionGroup resource accepts the following input properties:
- Engine
Name string - Specifies the name of the engine that this option group should be associated with.
- Major
Engine stringVersion - Specifies the major version of the engine that this option group should be associated with.
- Name string
- Name of the option group. If omitted, the provider will assign a random, unique name. Must be lowercase, to match as it is stored in AWS.
- Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. Must be lowercase, to match as it is stored in AWS. - Option
Group stringDescription - Description of the option group.
- Options
List<Option
Group Option> - The options to apply. See
option
Block below for more details. - Skip
Destroy bool - Set to true if you do not wish the option group to be deleted at destroy time, and instead just remove the option group from the Pulumi state.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Engine
Name string - Specifies the name of the engine that this option group should be associated with.
- Major
Engine stringVersion - Specifies the major version of the engine that this option group should be associated with.
- Name string
- Name of the option group. If omitted, the provider will assign a random, unique name. Must be lowercase, to match as it is stored in AWS.
- Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. Must be lowercase, to match as it is stored in AWS. - Option
Group stringDescription - Description of the option group.
- Options
[]Option
Group Option Args - The options to apply. See
option
Block below for more details. - Skip
Destroy bool - Set to true if you do not wish the option group to be deleted at destroy time, and instead just remove the option group from the Pulumi state.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- engine
Name String - Specifies the name of the engine that this option group should be associated with.
- major
Engine StringVersion - Specifies the major version of the engine that this option group should be associated with.
- name String
- Name of the option group. If omitted, the provider will assign a random, unique name. Must be lowercase, to match as it is stored in AWS.
- name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. Must be lowercase, to match as it is stored in AWS. - option
Group StringDescription - Description of the option group.
- options
List<Option
Group Option> - The options to apply. See
option
Block below for more details. - skip
Destroy Boolean - Set to true if you do not wish the option group to be deleted at destroy time, and instead just remove the option group from the Pulumi state.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- engine
Name string - Specifies the name of the engine that this option group should be associated with.
- major
Engine stringVersion - Specifies the major version of the engine that this option group should be associated with.
- name string
- Name of the option group. If omitted, the provider will assign a random, unique name. Must be lowercase, to match as it is stored in AWS.
- name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. Must be lowercase, to match as it is stored in AWS. - option
Group stringDescription - Description of the option group.
- options
Option
Group Option[] - The options to apply. See
option
Block below for more details. - skip
Destroy boolean - Set to true if you do not wish the option group to be deleted at destroy time, and instead just remove the option group from the Pulumi state.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- engine_
name str - Specifies the name of the engine that this option group should be associated with.
- major_
engine_ strversion - Specifies the major version of the engine that this option group should be associated with.
- name str
- Name of the option group. If omitted, the provider will assign a random, unique name. Must be lowercase, to match as it is stored in AWS.
- name_
prefix str - Creates a unique name beginning with the specified prefix. Conflicts with
name
. Must be lowercase, to match as it is stored in AWS. - option_
group_ strdescription - Description of the option group.
- options
Sequence[Option
Group Option Args] - The options to apply. See
option
Block below for more details. - skip_
destroy bool - Set to true if you do not wish the option group to be deleted at destroy time, and instead just remove the option group from the Pulumi state.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- engine
Name String - Specifies the name of the engine that this option group should be associated with.
- major
Engine StringVersion - Specifies the major version of the engine that this option group should be associated with.
- name String
- Name of the option group. If omitted, the provider will assign a random, unique name. Must be lowercase, to match as it is stored in AWS.
- name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. Must be lowercase, to match as it is stored in AWS. - option
Group StringDescription - Description of the option group.
- options List<Property Map>
- The options to apply. See
option
Block below for more details. - skip
Destroy Boolean - Set to true if you do not wish the option group to be deleted at destroy time, and instead just remove the option group from the Pulumi state.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the OptionGroup resource produces the following output properties:
Look up Existing OptionGroup Resource
Get an existing OptionGroup 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?: OptionGroupState, opts?: CustomResourceOptions): OptionGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
engine_name: Optional[str] = None,
major_engine_version: Optional[str] = None,
name: Optional[str] = None,
name_prefix: Optional[str] = None,
option_group_description: Optional[str] = None,
options: Optional[Sequence[OptionGroupOptionArgs]] = None,
skip_destroy: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> OptionGroup
func GetOptionGroup(ctx *Context, name string, id IDInput, state *OptionGroupState, opts ...ResourceOption) (*OptionGroup, error)
public static OptionGroup Get(string name, Input<string> id, OptionGroupState? state, CustomResourceOptions? opts = null)
public static OptionGroup get(String name, Output<String> id, OptionGroupState 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.
- Arn string
- ARN of the DB option group.
- Engine
Name string - Specifies the name of the engine that this option group should be associated with.
- Major
Engine stringVersion - Specifies the major version of the engine that this option group should be associated with.
- Name string
- Name of the option group. If omitted, the provider will assign a random, unique name. Must be lowercase, to match as it is stored in AWS.
- Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. Must be lowercase, to match as it is stored in AWS. - Option
Group stringDescription - Description of the option group.
- Options
List<Option
Group Option> - The options to apply. See
option
Block below for more details. - Skip
Destroy bool - Set to true if you do not wish the option group to be deleted at destroy time, and instead just remove the option group from the Pulumi state.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- ARN of the DB option group.
- Engine
Name string - Specifies the name of the engine that this option group should be associated with.
- Major
Engine stringVersion - Specifies the major version of the engine that this option group should be associated with.
- Name string
- Name of the option group. If omitted, the provider will assign a random, unique name. Must be lowercase, to match as it is stored in AWS.
- Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. Must be lowercase, to match as it is stored in AWS. - Option
Group stringDescription - Description of the option group.
- Options
[]Option
Group Option Args - The options to apply. See
option
Block below for more details. - Skip
Destroy bool - Set to true if you do not wish the option group to be deleted at destroy time, and instead just remove the option group from the Pulumi state.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the DB option group.
- engine
Name String - Specifies the name of the engine that this option group should be associated with.
- major
Engine StringVersion - Specifies the major version of the engine that this option group should be associated with.
- name String
- Name of the option group. If omitted, the provider will assign a random, unique name. Must be lowercase, to match as it is stored in AWS.
- name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. Must be lowercase, to match as it is stored in AWS. - option
Group StringDescription - Description of the option group.
- options
List<Option
Group Option> - The options to apply. See
option
Block below for more details. - skip
Destroy Boolean - Set to true if you do not wish the option group to be deleted at destroy time, and instead just remove the option group from the Pulumi state.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- ARN of the DB option group.
- engine
Name string - Specifies the name of the engine that this option group should be associated with.
- major
Engine stringVersion - Specifies the major version of the engine that this option group should be associated with.
- name string
- Name of the option group. If omitted, the provider will assign a random, unique name. Must be lowercase, to match as it is stored in AWS.
- name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. Must be lowercase, to match as it is stored in AWS. - option
Group stringDescription - Description of the option group.
- options
Option
Group Option[] - The options to apply. See
option
Block below for more details. - skip
Destroy boolean - Set to true if you do not wish the option group to be deleted at destroy time, and instead just remove the option group from the Pulumi state.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- ARN of the DB option group.
- engine_
name str - Specifies the name of the engine that this option group should be associated with.
- major_
engine_ strversion - Specifies the major version of the engine that this option group should be associated with.
- name str
- Name of the option group. If omitted, the provider will assign a random, unique name. Must be lowercase, to match as it is stored in AWS.
- name_
prefix str - Creates a unique name beginning with the specified prefix. Conflicts with
name
. Must be lowercase, to match as it is stored in AWS. - option_
group_ strdescription - Description of the option group.
- options
Sequence[Option
Group Option Args] - The options to apply. See
option
Block below for more details. - skip_
destroy bool - Set to true if you do not wish the option group to be deleted at destroy time, and instead just remove the option group from the Pulumi state.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the DB option group.
- engine
Name String - Specifies the name of the engine that this option group should be associated with.
- major
Engine StringVersion - Specifies the major version of the engine that this option group should be associated with.
- name String
- Name of the option group. If omitted, the provider will assign a random, unique name. Must be lowercase, to match as it is stored in AWS.
- name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. Must be lowercase, to match as it is stored in AWS. - option
Group StringDescription - Description of the option group.
- options List<Property Map>
- The options to apply. See
option
Block below for more details. - skip
Destroy Boolean - Set to true if you do not wish the option group to be deleted at destroy time, and instead just remove the option group from the Pulumi state.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
OptionGroupOption, OptionGroupOptionArgs
- Option
Name string - Name of the option (e.g., MEMCACHED).
- Db
Security List<string>Group Memberships - List of DB Security Groups for which the option is enabled.
- Option
Settings List<OptionGroup Option Option Setting> - The option settings to apply. See
option_settings
Block below for more details. - Port int
- Port number when connecting to the option (e.g., 11211). Leaving out or removing
port
from your configuration does not remove or clear a port from the option in AWS. AWS may assign a default port. Not includingport
in your configuration means that the AWS provider will ignore a previously set value, a value set by AWS, and any port changes. - Version string
- Version of the option (e.g., 13.1.0.0). Leaving out or removing
version
from your configuration does not remove or clear a version from the option in AWS. AWS may assign a default version. Not includingversion
in your configuration means that the AWS provider will ignore a previously set value, a value set by AWS, and any version changes. - Vpc
Security List<string>Group Memberships - List of VPC Security Groups for which the option is enabled.
- Option
Name string - Name of the option (e.g., MEMCACHED).
- Db
Security []stringGroup Memberships - List of DB Security Groups for which the option is enabled.
- Option
Settings []OptionGroup Option Option Setting - The option settings to apply. See
option_settings
Block below for more details. - Port int
- Port number when connecting to the option (e.g., 11211). Leaving out or removing
port
from your configuration does not remove or clear a port from the option in AWS. AWS may assign a default port. Not includingport
in your configuration means that the AWS provider will ignore a previously set value, a value set by AWS, and any port changes. - Version string
- Version of the option (e.g., 13.1.0.0). Leaving out or removing
version
from your configuration does not remove or clear a version from the option in AWS. AWS may assign a default version. Not includingversion
in your configuration means that the AWS provider will ignore a previously set value, a value set by AWS, and any version changes. - Vpc
Security []stringGroup Memberships - List of VPC Security Groups for which the option is enabled.
- option
Name String - Name of the option (e.g., MEMCACHED).
- db
Security List<String>Group Memberships - List of DB Security Groups for which the option is enabled.
- option
Settings List<OptionGroup Option Option Setting> - The option settings to apply. See
option_settings
Block below for more details. - port Integer
- Port number when connecting to the option (e.g., 11211). Leaving out or removing
port
from your configuration does not remove or clear a port from the option in AWS. AWS may assign a default port. Not includingport
in your configuration means that the AWS provider will ignore a previously set value, a value set by AWS, and any port changes. - version String
- Version of the option (e.g., 13.1.0.0). Leaving out or removing
version
from your configuration does not remove or clear a version from the option in AWS. AWS may assign a default version. Not includingversion
in your configuration means that the AWS provider will ignore a previously set value, a value set by AWS, and any version changes. - vpc
Security List<String>Group Memberships - List of VPC Security Groups for which the option is enabled.
- option
Name string - Name of the option (e.g., MEMCACHED).
- db
Security string[]Group Memberships - List of DB Security Groups for which the option is enabled.
- option
Settings OptionGroup Option Option Setting[] - The option settings to apply. See
option_settings
Block below for more details. - port number
- Port number when connecting to the option (e.g., 11211). Leaving out or removing
port
from your configuration does not remove or clear a port from the option in AWS. AWS may assign a default port. Not includingport
in your configuration means that the AWS provider will ignore a previously set value, a value set by AWS, and any port changes. - version string
- Version of the option (e.g., 13.1.0.0). Leaving out or removing
version
from your configuration does not remove or clear a version from the option in AWS. AWS may assign a default version. Not includingversion
in your configuration means that the AWS provider will ignore a previously set value, a value set by AWS, and any version changes. - vpc
Security string[]Group Memberships - List of VPC Security Groups for which the option is enabled.
- option_
name str - Name of the option (e.g., MEMCACHED).
- db_
security_ Sequence[str]group_ memberships - List of DB Security Groups for which the option is enabled.
- option_
settings Sequence[OptionGroup Option Option Setting] - The option settings to apply. See
option_settings
Block below for more details. - port int
- Port number when connecting to the option (e.g., 11211). Leaving out or removing
port
from your configuration does not remove or clear a port from the option in AWS. AWS may assign a default port. Not includingport
in your configuration means that the AWS provider will ignore a previously set value, a value set by AWS, and any port changes. - version str
- Version of the option (e.g., 13.1.0.0). Leaving out or removing
version
from your configuration does not remove or clear a version from the option in AWS. AWS may assign a default version. Not includingversion
in your configuration means that the AWS provider will ignore a previously set value, a value set by AWS, and any version changes. - vpc_
security_ Sequence[str]group_ memberships - List of VPC Security Groups for which the option is enabled.
- option
Name String - Name of the option (e.g., MEMCACHED).
- db
Security List<String>Group Memberships - List of DB Security Groups for which the option is enabled.
- option
Settings List<Property Map> - The option settings to apply. See
option_settings
Block below for more details. - port Number
- Port number when connecting to the option (e.g., 11211). Leaving out or removing
port
from your configuration does not remove or clear a port from the option in AWS. AWS may assign a default port. Not includingport
in your configuration means that the AWS provider will ignore a previously set value, a value set by AWS, and any port changes. - version String
- Version of the option (e.g., 13.1.0.0). Leaving out or removing
version
from your configuration does not remove or clear a version from the option in AWS. AWS may assign a default version. Not includingversion
in your configuration means that the AWS provider will ignore a previously set value, a value set by AWS, and any version changes. - vpc
Security List<String>Group Memberships - List of VPC Security Groups for which the option is enabled.
OptionGroupOptionOptionSetting, OptionGroupOptionOptionSettingArgs
Import
Using pulumi import
, import DB option groups using the name
. For example:
$ pulumi import aws:rds/optionGroup:OptionGroup example mysql-option-group
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.