Retreives the CA associated with a group. Returns the public key of the CA.
Parameters:
-
certificate_authority_id
(__string)
–
The ID of the certificate authority.
-
group_id
(__string)
–
The ID of the Greengrass group.
Raises:
Source code in docs_src/capo_greengrass/_services/async_greengrass.py
| async def get_group_certificate_authority(
self,
certificate_authority_id: "capo_greengrass.types.__string.__string",
group_id: "capo_greengrass.types.__string.__string",
*,
config_overrides: Optional[AsyncGreengrassClientConfig] = None,
) -> "capo_greengrass.types.get_group_certificate_authority_response.GetGroupCertificateAuthorityResponse":
"""Retreives the CA associated with a group. Returns the public key of the CA.
Args:
certificate_authority_id: The ID of the certificate authority.
group_id: The ID of the Greengrass group.
Raises:
capo_greengrass.errors.bad_request_exception.BadRequestException: General error information.
capo_greengrass.errors.internal_server_error_exception.InternalServerErrorException: General error information.
capo_greengrass.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_greengrass.types.get_group_certificate_authority_request.GetGroupCertificateAuthorityRequest]",
) -> AsyncOperationResponse[
"capo_greengrass.types.get_group_certificate_authority_response.GetGroupCertificateAuthorityResponse"
]:
import capo_greengrass._operations.greengrass.get_group_certificate_authority
(
output,
http_response,
) = await capo_greengrass._operations.greengrass.get_group_certificate_authority.async_get_group_certificate_authority(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetGroupCertificateAuthority")
)
input_: capo_greengrass.types.get_group_certificate_authority_request.GetGroupCertificateAuthorityRequest = {
"certificate_authority_id": certificate_authority_id,
"group_id": group_id,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|