create_autonomous_database
¶
create_autonomous_database(
*,
config_overrides: Optional[odbClientConfig] = None,
odb_network_id: Optional[ResourceIdOrArn] = None,
display_name: Optional[ResourceDisplayName] = None,
db_name: Optional[str] = None,
admin_password: Optional[SensitiveString] = None,
compute_count: Optional[float] = None,
data_storage_size_in_t_bs: Optional[int] = None,
data_storage_size_in_g_bs: Optional[int] = None,
db_workload: Optional[DbWorkload] = None,
is_auto_scaling_enabled: Optional[bool] = None,
is_auto_scaling_for_storage_enabled: Optional[bool] = None,
license_model: Optional[LicenseModel] = None,
character_set: Optional[str] = None,
ncharacter_set: Optional[str] = None,
db_version: Optional[str] = None,
database_edition: Optional[DatabaseEdition] = None,
standby_allowlisted_ips_source: Optional[StandbyAllowlistedIpsSource] = None,
autonomous_maintenance_schedule_type: Optional[
AutonomousMaintenanceScheduleType
] = None,
backup_retention_period_in_days: Optional[int] = None,
byol_compute_count_limit: Optional[float] = None,
cpu_core_count: Optional[int] = None,
customer_contacts_to_send_to_oci: Optional[CustomerContacts] = None,
private_endpoint_ip: Optional[str] = None,
private_endpoint_label: Optional[str] = None,
resource_pool_leader_id: Optional[ResourceIdOrArn] = None,
resource_pool_summary: Optional[ResourcePoolSummary] = None,
scheduled_operations: Optional[ScheduledOperationDetailsList] = None,
standby_allowlisted_ips: Optional[StringList] = None,
allowlisted_ips: Optional[StringList] = None,
transportable_tablespace: Optional[TransportableTablespace] = None,
is_backup_retention_locked: Optional[bool] = None,
is_local_data_guard_enabled: Optional[bool] = None,
is_mtls_connection_required: Optional[bool] = None,
db_tools_details: Optional[DatabaseToolList] = None,
source: Optional[SourceType] = None,
source_configuration: Optional[SourceConfiguration] = None,
encryption_key_provider: Optional[EncryptionKeyProviderInput] = None,
encryption_key_configuration: Optional[EncryptionKeyConfigurationInput] = None,
admin_password_source: Optional[AdminPasswordSource] = None,
admin_password_source_configuration: Optional[
AdminPasswordSourceConfigurationInput
] = None,
client_token: Optional[GeneralInputString] = None,
tags: Optional[RequestTagMap] = None,
) -> CreateAutonomousDatabaseOutput
Creates a new Autonomous Database.
Parameters:
-
odb_network_id(Optional[ResourceIdOrArn], default:None) –The unique identifier of the ODB network to be used for the Autonomous Database.
-
display_name(Optional[ResourceDisplayName], default:None) –The user-friendly name for the Autonomous Database. The name does not have to be unique.
-
db_name(Optional[str], default:None) –The name of the Autonomous Database. The name must begin with an alphabetic character and can contain a maximum of 30 alphanumeric characters. Special characters are not permitted. The name must be unique in the Amazon Web Services account.
-
admin_password(Optional[SensitiveString], default:None) –The password for the
ADMINuser of the Autonomous Database. -
compute_count(Optional[float], default:None) –The compute capacity, in number of Elastic CPUs (ECPUs) or Oracle CPUs (OCPUs), to assign to the Autonomous Database.
-
data_storage_size_in_t_bs(Optional[int], default:None) –The size, in terabytes (TB), of the data volume to allocate for the Autonomous Database.
-
data_storage_size_in_g_bs(Optional[int], default:None) –The size, in gigabytes (GB), of the data volume to allocate for the Autonomous Database.
-
db_workload(Optional[DbWorkload], default:None) –The intended use of the Autonomous Database, such as transaction processing, data warehouse, JSON database, or APEX.
-
is_auto_scaling_enabled(Optional[bool], default:None) –Specifies whether to enable automatic scaling of the compute resources for the Autonomous Database.
-
is_auto_scaling_for_storage_enabled(Optional[bool], default:None) –Specifies whether to enable automatic scaling of the storage for the Autonomous Database.
-
license_model(Optional[LicenseModel], default:None) –The Oracle license model to apply to the Autonomous Database.
-
character_set(Optional[str], default:None) –The character set to use for the Autonomous Database.
-
ncharacter_set(Optional[str], default:None) –The national character set to use for the Autonomous Database.
-
db_version(Optional[str], default:None) –The Oracle Database software version to use for the Autonomous Database.
-
database_edition(Optional[DatabaseEdition], default:None) –The Oracle Database edition to apply to the Autonomous Database.
-
standby_allowlisted_ips_source(Optional[StandbyAllowlistedIpsSource], default:None) –The source of the allowlisted IP addresses for the standby Autonomous Database.
-
autonomous_maintenance_schedule_type(Optional[AutonomousMaintenanceScheduleType], default:None) –The maintenance schedule type for the Autonomous Database.
-
backup_retention_period_in_days(Optional[int], default:None) –The retention period, in days, for automatic backups of the Autonomous Database.
-
byol_compute_count_limit(Optional[float], default:None) –The maximum number of compute resources that you can allocate to the Autonomous Database under the bring-your-own-license (BYOL) model.
-
cpu_core_count(Optional[int], default:None) –The number of CPU cores to allocate to the Autonomous Database.
-
customer_contacts_to_send_to_oci(Optional[CustomerContacts], default:None) –The list of customer contacts to receive operational notifications from Oracle Cloud Infrastructure (OCI) for the Autonomous Database.
-
private_endpoint_ip(Optional[str], default:None) –The private endpoint IP address for the Autonomous Database.
-
private_endpoint_label(Optional[str], default:None) –The private endpoint label for the Autonomous Database.
-
resource_pool_leader_id(Optional[ResourceIdOrArn], default:None) –The unique identifier of the resource pool leader Autonomous Database.
-
resource_pool_summary(Optional[ResourcePoolSummary], default:None) –The configuration of the resource pool for the Autonomous Database.
-
scheduled_operations(Optional[ScheduledOperationDetailsList], default:None) –The list of scheduled start and stop times for the Autonomous Database.
-
standby_allowlisted_ips(Optional[StringList], default:None) –The list of IP addresses that are allowed to access the standby Autonomous Database.
-
allowlisted_ips(Optional[StringList], default:None) –The list of IP addresses that are allowed to access the Autonomous Database.
-
transportable_tablespace(Optional[TransportableTablespace], default:None) –The transportable tablespace configuration to use when creating the Autonomous Database.
-
is_backup_retention_locked(Optional[bool], default:None) –Specifies whether to lock the backup retention period of the Autonomous Database to prevent it from being shortened.
-
is_local_data_guard_enabled(Optional[bool], default:None) –Specifies whether to enable local Oracle Data Guard for the Autonomous Database.
-
is_mtls_connection_required(Optional[bool], default:None) –Specifies whether mutual TLS (mTLS) authentication is required to connect to the Autonomous Database.
-
db_tools_details(Optional[DatabaseToolList], default:None) –The list of database management tools to enable for the Autonomous Database.
-
source(Optional[SourceType], default:None) –The source from which to create the Autonomous Database, such as a clone, backup, or cross-Region copy.
-
source_configuration(Optional[SourceConfiguration], default:None) –The configuration details for the source used to create the Autonomous Database.
-
encryption_key_provider(Optional[EncryptionKeyProviderInput], default:None) –The provider of the encryption key to use for the Autonomous Database.
-
encryption_key_configuration(Optional[EncryptionKeyConfigurationInput], default:None) –The configuration of the encryption key to use for the Autonomous Database.
-
admin_password_source(Optional[AdminPasswordSource], default:None) –The source of the admin password for the Autonomous Database. When set to
CUSTOMER_MANAGED_AWS_SECRET, the admin password is retrieved from an Amazon Web Services Secrets Manager secret. -
admin_password_source_configuration(Optional[AdminPasswordSourceConfigurationInput], default:None) –The configuration of the admin password source for the Autonomous Database.
-
client_token(Optional[GeneralInputString], default:None) –A client-provided token to ensure the idempotency of the request.
-
tags(Optional[RequestTagMap], default:None) –The list of resource tags to apply to the Autonomous Database. Each tag is a key-value pair with no predefined name, type, or namespace.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action. Make sure you have the required permissions and try again.
-
ConflictException–Occurs when a conflict with the current status of your resource. Fix any inconsistencies with your resource and try again.
-
InternalServerException–Occurs when there is an internal failure in the Oracle Database@Amazon Web Services service. Wait and try again.
-
ResourceNotFoundException–The operation tried to access a resource that doesn't exist. Make sure you provided the correct resource and try again.
-
ServiceQuotaExceededException–You have exceeded the service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request has failed validation because it is missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_odb/_services/odb.py
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 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 | |