update_sync_configuration
async
¶
update_sync_configuration(
resource_name: ResourceName,
sync_type: SyncConfigurationType,
*,
config_overrides: Optional[AsyncCodeConnectionsClientConfig] = 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,
pull_request_comment: Optional[PullRequestComment] = 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.
-
pull_request_comment(Optional[PullRequestComment], default:None) –TA toggle that specifies whether to enable or disable pull request comments for the sync configuration to be updated.
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_codeconnections/_services/async_code_connections.py
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 | |