copy_option_group
¶
copy_option_group(
*,
config_overrides: Optional[RDSClientConfig] = None,
source_option_group_identifier: Optional[String] = None,
target_option_group_identifier: Optional[String] = None,
target_option_group_description: Optional[String] = None,
tags: Optional[TagList] = None,
) -> CopyOptionGroupResult
Copies the specified option group.
Parameters:
-
source_option_group_identifier(Optional[String], default:None) –The identifier for the source option group.
Constraints:
-
Must specify a valid option group.
-
-
target_option_group_identifier(Optional[String], default: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 -
-
target_option_group_description(Optional[String], default:None) –The description for the copied option group.
Raises:
-
OptionGroupAlreadyExistsFault–The option group you are trying to create already exists.
-
OptionGroupNotFoundFault–The specified option group could not be found.
-
OptionGroupQuotaExceededFault–The quota of 20 option groups was exceeded for this Amazon Web Services account.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To copy an option group The following example makes a copy of an option group.
>>> client.copy_option_group(source_option_group_identifier='myoptiongroup', target_option_group_identifier='new-option-group', target_option_group_description='My option group copy')
Source code in docs_src/capo_rds/_services/rds.py
1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 | |