Lists the cross-account permissions associated with a signing profile.
Parameters:
-
profile_name
(ProfileName)
–
Name of the signing profile containing the cross-account permissions.
-
next_token
(Optional[String], default:
None
)
–
String for specifying the next set of paginated results.
Raises:
Source code in docs_src/capo_signer/_services/async_signer.py
| async def list_profile_permissions(
self,
profile_name: "capo_signer.types.profile_name.ProfileName",
*,
config_overrides: Optional[AsyncsignerClientConfig] = None,
next_token: Optional["capo_signer.types.string.String"] = None,
) -> "capo_signer.types.list_profile_permissions_response.ListProfilePermissionsResponse":
"""<p>Lists the cross-account permissions associated with a signing profile.</p>
Args:
profile_name: <p>Name of the signing profile containing the cross-account permissions.</p>
next_token: <p>String for specifying the next set of paginated results.</p>
Raises:
capo_signer.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_signer.errors.internal_service_error_exception.InternalServiceErrorException: <p>An internal error occurred.</p>
capo_signer.errors.resource_not_found_exception.ResourceNotFoundException: <p>A specified resource could not be found.</p>
capo_signer.errors.too_many_requests_exception.TooManyRequestsException: <p>The allowed number of job-signing requests has been exceeded.</p> <p>This error supersedes the error <code>ThrottlingException</code>.</p>
capo_signer.errors.validation_exception.ValidationException: <p>You signing certificate could not be validated.</p>
capo_signer.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_signer.types.list_profile_permissions_request.ListProfilePermissionsRequest]",
) -> AsyncOperationResponse[
"capo_signer.types.list_profile_permissions_response.ListProfilePermissionsResponse"
]:
import capo_signer._operations.wallaby_service.list_profile_permissions
(
output,
http_response,
) = await capo_signer._operations.wallaby_service.list_profile_permissions.async_list_profile_permissions(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListProfilePermissions")
)
input_: capo_signer.types.list_profile_permissions_request.ListProfilePermissionsRequest = {
"profile_name": profile_name
}
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|