update_sync_configuration
¶
update_sync_configuration(
resource_name: ResourceName,
sync_type: SyncConfigurationType,
*,
config_overrides: Optional[CodeStarconnectionsClientConfig] = None,
branch: Optional[BranchName] = None,
config_file: Optional[DeploymentFilePath] = None,
repository_link_id: Optional[RepositoryLinkId] = None,
role_arn: Optional[IamRoleArn] = None,
publish_deployment_status: Optional[PublishDeploymentStatus] = None,
trigger_resource_update_on: Optional[TriggerResourceUpdateOn] = None,
) -> UpdateSyncConfigurationOutput
Updates the sync configuration for your connection and a specified external Git repository.
Parameters:
-
branch(Optional[BranchName], default:None) –The branch for the sync configuration to be updated.
-
config_file(Optional[DeploymentFilePath], default:None) –The configuration file for the sync configuration to be updated.
-
repository_link_id(Optional[RepositoryLinkId], default:None) –The ID of the repository link for the sync configuration to be updated.
-
resource_name(ResourceName) –The name of the Amazon Web Services resource for the sync configuration to be updated.
-
role_arn(Optional[IamRoleArn], default:None) –The ARN of the IAM role for the sync configuration to be updated.
-
sync_type(SyncConfigurationType) –The sync type for the sync configuration to be updated.
-
publish_deployment_status(Optional[PublishDeploymentStatus], default:None) –Whether to enable or disable publishing of deployment status to source providers.
-
trigger_resource_update_on(Optional[TriggerResourceUpdateOn], default:None) –When to trigger Git sync to begin the stack update.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConcurrentModificationException–Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
-
InternalServerException–Received an internal server exception. Try again later.
-
InvalidInputException–The input is not valid. Verify that the action is typed correctly.
-
ResourceNotFoundException–Resource not found. Verify the connection resource ARN and try again.
-
ThrottlingException–The request was denied due to request throttling.
-
UpdateOutOfSyncException–The update is out of sync. Try syncing again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codestar_connections/_services/code_starconnections.py
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 | |