create_custom_db_engine_version
async
¶
create_custom_db_engine_version(
*,
config_overrides: Optional[AsyncRDSClientConfig] = 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/async_rds.py
1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 | |