Disassociates the Greengrass service role from IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region. Without a service role, IoT Greengrass can't verify the identity of client devices or manage core device connectivity information. For more information, see Greengrass service role in the IoT Greengrass Version 2 Developer Guide.
Raises:
Source code in docs_src/capo_greengrassv2/_services/async_greengrass_v2.py
| async def disassociate_service_role_from_account(
self, *, config_overrides: Optional[AsyncGreengrassV2ClientConfig] = None
) -> "capo_greengrassv2.types.disassociate_service_role_from_account_response.DisassociateServiceRoleFromAccountResponse":
"""<p>Disassociates the Greengrass service role from IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region. Without a service role, IoT Greengrass can't verify the identity of client devices or manage core device connectivity information. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-service-role.html">Greengrass service role</a> in the <i>IoT Greengrass Version 2 Developer Guide</i>.</p>
Raises:
capo_greengrassv2.errors.internal_server_exception.InternalServerException: <p>IoT Greengrass can't process your request right now. Try again later.</p>
capo_greengrassv2.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_greengrassv2.types.disassociate_service_role_from_account_request.DisassociateServiceRoleFromAccountRequest]",
) -> AsyncOperationResponse[
"capo_greengrassv2.types.disassociate_service_role_from_account_response.DisassociateServiceRoleFromAccountResponse"
]:
import capo_greengrassv2._operations.greengrass_v2.disassociate_service_role_from_account
(
output,
http_response,
) = await capo_greengrassv2._operations.greengrass_v2.disassociate_service_role_from_account.async_disassociate_service_role_from_account(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DisassociateServiceRoleFromAccount")
)
input_: capo_greengrassv2.types.disassociate_service_role_from_account_request.DisassociateServiceRoleFromAccountRequest = {}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|