update_sync_configuration
¶
update_sync_configuration(
resource_name: ResourceName,
sync_type: SyncConfigurationType,
*,
config_overrides: Optional[CodeConnectionsClientConfig] = 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/code_connections.py
2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 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 | |