create_replication_instance
async
¶
create_replication_instance(
replication_instance_identifier: String,
replication_instance_class: ReplicationInstanceClass,
*,
config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None,
allocated_storage: Optional[IntegerOptional] = None,
vpc_security_group_ids: Optional[VpcSecurityGroupIdList] = None,
availability_zone: Optional[String] = None,
replication_subnet_group_identifier: Optional[String] = None,
preferred_maintenance_window: Optional[String] = None,
multi_az: Optional[BooleanOptional] = None,
engine_version: Optional[String] = None,
auto_minor_version_upgrade: Optional[BooleanOptional] = None,
tags: Optional[TagList] = None,
kms_key_id: Optional[String] = None,
publicly_accessible: Optional[BooleanOptional] = None,
dns_name_servers: Optional[String] = None,
resource_identifier: Optional[String] = None,
network_type: Optional[String] = None,
kerberos_authentication_settings: Optional[KerberosAuthenticationSettings] = None,
) -> CreateReplicationInstanceResponse
Creates the replication instance using the specified parameters.
DMS requires that your account have certain roles with appropriate permissions before you can create a replication instance. For information on the required roles, see Creating the IAM Roles to Use With the CLI and DMS API. For information on the required permissions, see IAM Permissions Needed to Use DMS.
If you don't specify a version when creating a replication instance, DMS will create the instance using the default engine version. For information about the default engine version, see Release Notes.
Parameters:
-
replication_instance_identifier(String) –The replication instance identifier. This parameter is stored as a lowercase string.
Constraints:
-
Must contain 1-63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Can't end with a hyphen or contain two consecutive hyphens.
Example:
myrepinstance -
-
allocated_storage(Optional[IntegerOptional], default:None) –The amount of storage (in gigabytes) to be initially allocated for the replication instance.
-
replication_instance_class(ReplicationInstanceClass) –The compute and memory capacity of the replication instance as defined for the specified replication instance class. For example to specify the instance class dms.c4.large, set this parameter to
"dms.c4.large".For more information on the settings and capacities for the available replication instance classes, see Choosing the right DMS replication instance; and, Selecting the best size for a replication instance.
-
vpc_security_group_ids(Optional[VpcSecurityGroupIdList], default:None) –Specifies the VPC security group to be used with the replication instance. The VPC security group must work with the VPC containing the replication instance.
-
availability_zone(Optional[String], default:None) –The Availability Zone where the replication instance will be created. The default value is a random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region, for example:
us-east-1d. -
replication_subnet_group_identifier(Optional[String], default:None) –A subnet group to associate with the replication instance.
-
preferred_maintenance_window(Optional[String], default:None) –The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format:
ddd:hh24:mi-ddd:hh24:miDefault: A 30-minute window selected at random from an 8-hour block of time per Amazon Web Services Region, occurring on a random day of the week.
Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
-
multi_az(Optional[BooleanOptional], default:None) –Specifies whether the replication instance is a Multi-AZ deployment. You can't set the
AvailabilityZoneparameter if the Multi-AZ parameter is set totrue. -
engine_version(Optional[String], default:None) –The engine version number of the replication instance.
If an engine version number is not specified when a replication instance is created, the default is the latest engine version available.
-
auto_minor_version_upgrade(Optional[BooleanOptional], default:None) –A value that indicates whether minor engine upgrades are applied automatically to the replication instance during the maintenance window. This parameter defaults to
true.Default:
true -
tags(Optional[TagList], default:None) –One or more tags to be assigned to the replication instance.
-
kms_key_id(Optional[String], default:None) –An KMS key identifier that is used to encrypt the data on the replication instance.
If you don't specify a value for the
KmsKeyIdparameter, then DMS uses your default encryption key.KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Region.
-
publicly_accessible(Optional[BooleanOptional], default:None) –Specifies the accessibility options for the replication instance. A value of
truerepresents an instance with a public IP address. A value offalserepresents an instance with a private IP address. The default value istrue. -
dns_name_servers(Optional[String], default:None) –A list of custom DNS name servers supported for the replication instance to access your on-premise source or target database. This list overrides the default name servers supported by the replication instance. You can specify a comma-separated list of internet addresses for up to four on-premise DNS name servers. For example:
"1.1.1.1,2.2.2.2,3.3.3.3,4.4.4.4" -
resource_identifier(Optional[String], default:None) –A friendly name for the resource identifier at the end of the
EndpointArnresponse parameter that is returned in the createdEndpointobject. The value for this parameter can have up to 31 characters. It can contain only ASCII letters, digits, and hyphen ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter, such asExample-App-ARN1. For example, this value might result in theEndpointArnvaluearn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1. If you don't specify aResourceIdentifiervalue, DMS generates a default identifier value for the end ofEndpointArn. -
network_type(Optional[String], default:None) –The type of IP address protocol used by a replication instance, such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported.
-
kerberos_authentication_settings(Optional[KerberosAuthenticationSettings], default:None) –Specifies the settings required for kerberos authentication when creating the replication instance.
Raises:
-
AccessDeniedFault–DMS was denied access to the endpoint. Check that the role is correctly configured.
-
InsufficientResourceCapacityFault–There are not enough resources allocated to the database migration.
-
InvalidResourceStateFault–The resource is in a state that prevents it from being used for database migration.
-
InvalidSubnet–The subnet provided isn't valid.
-
KMSKeyNotAccessibleFault–DMS cannot access the KMS key.
-
ReplicationSubnetGroupDoesNotCoverEnoughAZs–The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet group and add more AZs.
-
ResourceAlreadyExistsFault–The resource you are attempting to create already exists.
-
ResourceNotFoundFault–The resource could not be found.
-
ResourceQuotaExceededFault–The quota for this resource quota has been exceeded.
-
StorageQuotaExceededFault–The storage quota has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Create replication instance Creates the replication instance using the specified parameters.
>>> await client.create_replication_instance(replication_instance_identifier='', allocated_storage=123, replication_instance_class='', vpc_security_group_ids=[], availability_zone='', replication_subnet_group_identifier='', preferred_maintenance_window='', multi_az=True, engine_version='', auto_minor_version_upgrade=True, tags=[{'Key': 'string', 'Value': 'string'}], kms_key_id='', publicly_accessible=True)
Source code in docs_src/capo_database_migration_service/_services/async_database_migration_service.py
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 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 | |