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
1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 | |