create_replication_config
¶
create_replication_config(
replication_config_identifier: String,
source_endpoint_arn: String,
target_endpoint_arn: String,
compute_config: ComputeConfig,
replication_type: MigrationTypeValue,
table_mappings: String,
*,
config_overrides: Optional[DatabaseMigrationServiceClientConfig] = None,
replication_settings: Optional[String] = None,
supplemental_settings: Optional[String] = None,
resource_identifier: Optional[String] = None,
tags: Optional[TagList] = None,
) -> CreateReplicationConfigResponse
Creates a configuration that you can later provide to configure and start an DMS Serverless replication. You can also provide options to validate the configuration inputs before you start the replication.
Parameters:
-
replication_config_identifier(String) –A unique identifier that you want to use to create a
ReplicationConfigArnthat is returned as part of the output from this action. You can then pass this outputReplicationConfigArnas the value of theReplicationConfigArnoption for other actions to identify both DMS Serverless replications and replication configurations that you want those actions to operate on. For some actions, you can also use either this unique identifier or a corresponding ARN in action filters to identify the specific replication and replication configuration to operate on. -
source_endpoint_arn(String) –The Amazon Resource Name (ARN) of the source endpoint for this DMS Serverless replication configuration.
-
target_endpoint_arn(String) –The Amazon Resource Name (ARN) of the target endpoint for this DMS serverless replication configuration.
-
compute_config(ComputeConfig) –Configuration parameters for provisioning an DMS Serverless replication.
-
replication_type(MigrationTypeValue) –The type of DMS Serverless replication to provision using this replication configuration.
Possible values:
-
"full-load" -
"cdc" -
"full-load-and-cdc"
-
-
table_mappings(String) –JSON table mappings for DMS Serverless replications that are provisioned using this replication configuration. For more information, see Specifying table selection and transformations rules using JSON.
-
replication_settings(Optional[String], default:None) –Optional JSON settings for DMS Serverless replications that are provisioned using this replication configuration. For example, see Change processing tuning settings.
-
supplemental_settings(Optional[String], default:None) –Optional JSON settings for specifying supplemental data. For more information, see Specifying supplemental data for task settings.
-
resource_identifier(Optional[String], default:None) –Optional unique value or name that you set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource. For more information, see Fine-grained access control using resource names and tags.
-
tags(Optional[TagList], default:None) –One or more optional tags associated with resources used by the DMS Serverless replication. For more information, see Tagging resources in Database Migration Service.
Raises:
-
AccessDeniedFault–DMS was denied access to the endpoint. Check that the role is correctly configured.
-
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_database_migration_service/_services/database_migration_service.py
1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 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 | |