create_global_cluster
async
¶
create_global_cluster(
*,
config_overrides: Optional[AsyncNeptuneClientConfig] = None,
global_cluster_identifier: Optional[GlobalClusterIdentifier] = None,
source_db_cluster_identifier: Optional[String] = None,
engine: Optional[String] = None,
engine_version: Optional[String] = None,
deletion_protection: Optional[BooleanOptional] = None,
database_name: Optional[String] = None,
tags: Optional[TagList] = None,
storage_encrypted: Optional[BooleanOptional] = None,
) -> CreateGlobalClusterResult
Creates a Neptune global database spread across multiple Amazon Regions. The global database contains a single primary cluster with read-write capability, and read-only secondary clusters that receive data from the primary cluster through high-speed replication performed by the Neptune storage subsystem.
You can create a global database that is initially empty, and then add a primary cluster and secondary clusters to it, or you can specify an existing Neptune cluster during the create operation to become the primary cluster of the global database.
Parameters:
-
global_cluster_identifier(Optional[GlobalClusterIdentifier], default:None) –The cluster identifier of the new global database cluster.
-
source_db_cluster_identifier(Optional[String], default:None) –(Optional) The Amazon Resource Name (ARN) of an existing Neptune DB cluster to use as the primary cluster of the new global database.
-
engine(Optional[String], default:None) –The name of the database engine to be used in the global database.
Valid values:
neptune -
engine_version(Optional[String], default:None) –The Neptune engine version to be used by the global database.
Valid values:
1.2.0.0or above. -
deletion_protection(Optional[BooleanOptional], default:None) –The deletion protection setting for the new global database. The global database can't be deleted when deletion protection is enabled.
-
database_name(Optional[String], default:None) –The name for the new global database (up to 64 alpha-numeric characters).
-
tags(Optional[TagList], default:None) –Tags to assign to the global cluster.
-
storage_encrypted(Optional[BooleanOptional], default:None) –The storage encryption setting for the new global database cluster.
Raises:
-
DBClusterNotFoundFault–DBClusterIdentifier does not refer to an existing DB cluster.
-
GlobalClusterAlreadyExistsFault–The
GlobalClusterIdentifieralready exists. Choose a new global database identifier (unique name) to create a new global database cluster. -
GlobalClusterQuotaExceededFault–The number of global database clusters for this account is already at the maximum allowed.
-
InvalidDBClusterStateFault–The DB cluster is not in a valid state.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_neptune/_services/async_neptune.py
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 | |