Disassociates the service role from your account. Without a service role, deployments will not work.
Raises:
Source code in docs_src/capo_greengrass/_services/greengrass.py
| def disassociate_service_role_from_account(
self, *, config_overrides: Optional[GreengrassClientConfig] = None
) -> "capo_greengrass.types.disassociate_service_role_from_account_response.DisassociateServiceRoleFromAccountResponse":
"""Disassociates the service role from your account. Without a service role, deployments will not work.
Raises:
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.
"""
def _handler(
req: "OperationRequest[capo_greengrass.types.disassociate_service_role_from_account_request.DisassociateServiceRoleFromAccountRequest]",
) -> OperationResponse[
"capo_greengrass.types.disassociate_service_role_from_account_response.DisassociateServiceRoleFromAccountResponse"
]:
import capo_greengrass._operations.greengrass.disassociate_service_role_from_account
output, http_response = (
capo_greengrass._operations.greengrass.disassociate_service_role_from_account.disassociate_service_role_from_account(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DisassociateServiceRoleFromAccount")
)
input_: capo_greengrass.types.disassociate_service_role_from_account_request.DisassociateServiceRoleFromAccountRequest = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|