create_custom_db_engine_version
¶
create_custom_db_engine_version(
*,
config_overrides: Optional[RDSClientConfig] = None,
engine: Optional[CustomEngineName] = None,
engine_version: Optional[CustomEngineVersion] = None,
database_installation_files_s3_bucket_name: Optional[BucketName] = None,
database_installation_files_s3_prefix: Optional[String255] = None,
database_installation_files: Optional[StringList] = None,
image_id: Optional[String255] = None,
kms_key_id: Optional[KmsKeyIdOrArn] = None,
source_custom_db_engine_version_identifier: Optional[String255] = None,
use_aws_provided_latest_image: Optional[BooleanOptional] = None,
description: Optional[Description] = None,
manifest: Optional[CustomDBEngineVersionManifest] = None,
tags: Optional[TagList] = None,
) -> DBEngineVersion
Creates a custom DB engine version (CEV).
Parameters:
-
engine(Optional[CustomEngineName], default:None) –The database engine.
RDS Custom for Oracle supports the following values:
-
custom-oracle-ee -
custom-oracle-ee-cdb -
custom-oracle-se2 -
custom-oracle-se2-cdb
RDS Custom for SQL Server supports the following values:
-
custom-sqlserver-ee -
custom-sqlserver-se -
custom-sqlserver-web -
custom-sqlserver-dev
RDS for SQL Server supports the following values:
-
sqlserver-ee(Bring Your Own Media) -
sqlserver-se(Bring Your Own Media) -
sqlserver-dev-ee
-
-
engine_version(Optional[CustomEngineVersion], default:None) –The name of your custom engine version (CEV).
For RDS Custom for Oracle, the name format is
19.*customized_string*. For example, a valid CEV name is19.my_cev1.For RDS Custom for SQL Server and RDS for SQL Server
sqlserver-dev-ee, the name format is*major_engine_version*.*minor_engine_version*.*customized_string*. For example, a valid CEV name is16.00.4215.2.my_cev1.For RDS for SQL Server Bring Your Own Media (
sqlserver-ee,sqlserver-se), specify the RDS engine version that you want to use. For example,16.00.4175.1.v1.The CEV name is unique per customer per Amazon Web Services Regions.
-
database_installation_files_s3_bucket_name(Optional[BucketName], default:None) –The name of an Amazon S3 bucket that contains database installation files for your CEV. For example, a valid bucket name is
my-custom-installation-files. -
database_installation_files_s3_prefix(Optional[String255], default:None) –The Amazon S3 directory that contains the database installation files for your CEV. For example, a valid bucket name is
123456789012/cev1. If this setting isn't specified, no prefix is assumed. -
database_installation_files(Optional[StringList], default:None) –The database installation files (ISO and EXE) uploaded to Amazon S3 for your database engine version to import to Amazon RDS.
For RDS for SQL Server Bring Your Own Media (
sqlserver-ee,sqlserver-se), provide the SQL Server RTM ISO file once per major version and edition combination. Minor versions reuse the same file. -
image_id(Optional[String255], default:None) –The ID of the Amazon Machine Image (AMI). For RDS Custom for SQL Server, an AMI ID is required to create a CEV. For RDS Custom for Oracle, the default is the most recent AMI available, but you can specify an AMI ID that was used in a different Oracle CEV. Find the AMIs used by your CEVs by calling the DescribeDBEngineVersions operation.
-
kms_key_id(Optional[KmsKeyIdOrArn], default:None) –The Amazon Web Services KMS key identifier for an encrypted CEV. A symmetric encryption KMS key is required for RDS Custom, but optional for Amazon RDS.
If you have an existing symmetric encryption KMS key in your account, you can use it with RDS Custom. No further action is necessary. If you don't already have a symmetric encryption KMS key in your account, follow the instructions in Creating a symmetric encryption KMS key in the Amazon Web Services Key Management Service Developer Guide.
You can choose the same symmetric encryption key when you create a CEV and a DB instance, or choose different keys.
-
source_custom_db_engine_version_identifier(Optional[String255], default:None) –The ARN of a CEV to use as a source for creating a new CEV. You can specify a different Amazon Machine Imagine (AMI) by using either
SourceorUseAwsProvidedLatestImage. You can't specify a different JSON manifest when you specifySourceCustomDbEngineVersionIdentifier. -
use_aws_provided_latest_image(Optional[BooleanOptional], default:None) –Specifies whether to use the latest service-provided Amazon Machine Image (AMI) for the CEV. If you specify
UseAwsProvidedLatestImage, you can't also specifyImageId. -
description(Optional[Description], default:None) –An optional description of your CEV.
-
manifest(Optional[CustomDBEngineVersionManifest], default:None) –The CEV manifest, which is a JSON document that describes the installation .zip files stored in Amazon S3. Specify the name/value pairs in a file or a quoted string. RDS Custom applies the patches in the order in which they are listed.
The following JSON fields are valid:
- MediaImportTemplateVersion
-
Version of the CEV manifest. The date is in the format
YYYY-MM-DD. - databaseInstallationFileNames
-
Ordered list of installation files for the CEV.
- opatchFileNames
-
Ordered list of OPatch installers used for the Oracle DB engine.
- psuRuPatchFileNames
-
The PSU and RU patches for this CEV.
- OtherPatchFileNames
-
The patches that are not in the list of PSU and RU patches. Amazon RDS applies these patches after applying the PSU and RU patches.
For more information, see Creating the CEV manifest in the Amazon RDS User Guide.
Raises:
-
CreateCustomDBEngineVersionFault–An error occurred while trying to create the CEV.
-
CustomDBEngineVersionAlreadyExistsFault–A CEV with the specified name already exists.
-
CustomDBEngineVersionNotFoundFault–The specified CEV was not found.
-
CustomDBEngineVersionQuotaExceededFault–You have exceeded your CEV quota.
-
Ec2ImagePropertiesNotSupportedFault–The AMI configuration prerequisite has not been met.
-
InvalidCustomDBEngineVersionStateFault–You can't delete the CEV.
-
KMSKeyNotAccessibleFault–An error occurred accessing an Amazon Web Services KMS key.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_rds/_services/rds.py
1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 | |