Skip to content

disassociate_role_from_group

disassociate_role_from_group(
    group_id: __string, *, config_overrides: Optional[GreengrassClientConfig] = None
) -> DisassociateRoleFromGroupResponse

Disassociates the role from a group.

Parameters:

  • group_id (__string) –

    The ID of the Greengrass group.

Raises:

Source code in docs_src/capo_greengrass/_services/greengrass.py
def disassociate_role_from_group(
    self,
    group_id: "capo_greengrass.types.__string.__string",
    *,
    config_overrides: Optional[GreengrassClientConfig] = None,
) -> "capo_greengrass.types.disassociate_role_from_group_response.DisassociateRoleFromGroupResponse":
    """Disassociates the role from a group.

    Args:
        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.
    """

    def _handler(
        req: "OperationRequest[capo_greengrass.types.disassociate_role_from_group_request.DisassociateRoleFromGroupRequest]",
    ) -> OperationResponse[
        "capo_greengrass.types.disassociate_role_from_group_response.DisassociateRoleFromGroupResponse"
    ]:
        import capo_greengrass._operations.greengrass.disassociate_role_from_group

        output, http_response = (
            capo_greengrass._operations.greengrass.disassociate_role_from_group.disassociate_role_from_group(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DisassociateRoleFromGroup")
    )
    input_: capo_greengrass.types.disassociate_role_from_group_request.DisassociateRoleFromGroupRequest = {
        "group_id": group_id
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output