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
2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 | |