Skip to content

RDS  >  Operations  >  copy_option_group

copy_option_group

Operation

copy_option_group async

copy_option_group(request: CopyOptionGroupInput | CopyOptionGroupInputDict, /, *, plugins: list[Plugin] | None = None) -> CopyOptionGroupOutput
copy_option_group(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[CopyOptionGroupInputDict]) -> CopyOptionGroupOutput

Copies the specified option group.

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
CopyOptionGroupOutput

An instance of CopyOptionGroupOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

CopyOptionGroupInput dataclass

Bases: _SerdeShape

Attributes
source_option_group_identifier class-attribute instance-attribute
source_option_group_identifier: str | None = ...

The identifier for the source option group.

Constraints:

  • Must specify a valid option group.
tags class-attribute instance-attribute
tags: list[Tag] | None = ...

A list of tags.

For more information, see Tagging Amazon RDS resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide.

target_option_group_description class-attribute instance-attribute
target_option_group_description: str | None = ...

The description for the copied option group.

target_option_group_identifier class-attribute instance-attribute
target_option_group_identifier: str | None = ...

The identifier for the copied option group.

Constraints:

  • Can't be null, empty, or blank

  • Must contain from 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

Example: my-option-group

Dictionaries

CopyOptionGroupInputDict

Bases: TypedDict

Dictionary form of CopyOptionGroupInput.

Attributes
source_option_group_identifier instance-attribute
source_option_group_identifier: Required[str]

The identifier for the source option group.

Constraints:

  • Must specify a valid option group.
tags instance-attribute
tags: Sequence[Tag | TagDict] | None

A list of tags.

For more information, see Tagging Amazon RDS resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide.

target_option_group_description instance-attribute
target_option_group_description: Required[str]

The description for the copied option group.

target_option_group_identifier instance-attribute
target_option_group_identifier: Required[str]

The identifier for the copied option group.

Constraints:

  • Can't be null, empty, or blank

  • Must contain from 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

Example: my-option-group

Output

CopyOptionGroupOutput dataclass

Bases: _SerdeShape

Dataclass for CopyOptionGroupOutput structure.

Attributes

option_group class-attribute instance-attribute
option_group: OptionGroup | None = ...
response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.