Get the sync status of a repository used for Proton template sync. For more information about template sync, see .
A repository sync status isn't tied to the Proton Repository resource (or any other Proton resource). Therefore, tags on an Proton Repository resource have no effect on this action. Specifically, you can't use these tags to control access to this action using Attribute-based access control (ABAC).
For more information about ABAC, see ABAC in the Proton User Guide.
Parameters:
Raises:
Source code in docs_src/capo_proton/_services/async_proton.py
| async def get_repository_sync_status(
self,
repository_name: "capo_proton.types.repository_name.RepositoryName",
repository_provider: "capo_proton.types.repository_provider.RepositoryProvider",
branch: "capo_proton.types.git_branch_name.GitBranchName",
sync_type: "capo_proton.types.sync_type.SyncType",
*,
config_overrides: Optional[AsyncProtonClientConfig] = None,
) -> "capo_proton.types.get_repository_sync_status_output.GetRepositorySyncStatusOutput":
"""<p>Get the sync status of a repository used for Proton template sync. For more information about template sync, see .</p> <note> <p>A repository sync status isn't tied to the Proton Repository resource (or any other Proton resource). Therefore, tags on an Proton Repository resource have no effect on this action. Specifically, you can't use these tags to control access to this action using Attribute-based access control (ABAC).</p> <p>For more information about ABAC, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-tags">ABAC</a> in the <i>Proton User Guide</i>.</p> </note>
Args:
repository_name: <p>The repository name.</p>
repository_provider: <p>The repository provider.</p>
branch: <p>The repository branch.</p>
sync_type: <p>The repository sync type.</p>
Raises:
capo_proton.errors.access_denied_exception.AccessDeniedException: <p>There <i>isn't</i> sufficient access for performing this action.</p>
capo_proton.errors.internal_server_exception.InternalServerException: <p>The request failed to register with the service.</p>
capo_proton.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource <i>wasn't</i> found.</p>
capo_proton.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_proton.errors.validation_exception.ValidationException: <p>The input is invalid or an out-of-range value was supplied for the input parameter.</p>
capo_proton.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_proton.types.get_repository_sync_status_input.GetRepositorySyncStatusInput]",
) -> AsyncOperationResponse[
"capo_proton.types.get_repository_sync_status_output.GetRepositorySyncStatusOutput"
]:
import capo_proton._operations.aws_proton20200720.get_repository_sync_status
(
output,
http_response,
) = await capo_proton._operations.aws_proton20200720.get_repository_sync_status.async_get_repository_sync_status(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetRepositorySyncStatus")
)
input_: capo_proton.types.get_repository_sync_status_input.GetRepositorySyncStatusInput = {
"repository_name": repository_name,
"repository_provider": repository_provider,
"branch": branch,
"sync_type": sync_type,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|