Returns a list of ML input channels.
Parameters:
-
next_token
(Optional[NextToken], default:
None
)
–
The token value retrieved from a previous call to access the next page of results.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of ML input channels to return.
-
membership_identifier
(UUID)
–
The membership ID of the membership that contains the ML input channels that you want to list.
Raises:
Source code in docs_src/capo_cleanroomsml/_services/clean_rooms_ml.py
| def list_ml_input_channels(
self,
membership_identifier: "capo_cleanroomsml.types.uuid.UUID",
*,
config_overrides: Optional[CleanRoomsMLClientConfig] = None,
next_token: Optional["capo_cleanroomsml.types.next_token.NextToken"] = None,
max_results: Optional["capo_cleanroomsml.types.max_results.MaxResults"] = None,
) -> "capo_cleanroomsml.types.list_ml_input_channels_response.ListMLInputChannelsResponse":
"""<p>Returns a list of ML input channels.</p>
Args:
next_token: <p>The token value retrieved from a previous call to access the next page of results.</p>
max_results: <p>The maximum number of ML input channels to return.</p>
membership_identifier: <p>The membership ID of the membership that contains the ML input channels that you want to list.</p>
Raises:
capo_cleanroomsml.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_cleanroomsml.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_cleanroomsml.errors.validation_exception.ValidationException: <p>The request parameters for this request are incorrect.</p>
capo_cleanroomsml.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_cleanroomsml.types.list_ml_input_channels_request.ListMLInputChannelsRequest]",
) -> OperationResponse[
"capo_cleanroomsml.types.list_ml_input_channels_response.ListMLInputChannelsResponse"
]:
import capo_cleanroomsml._operations.aws_stark_control_service.list_ml_input_channels
output, http_response = (
capo_cleanroomsml._operations.aws_stark_control_service.list_ml_input_channels.list_ml_input_channels(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListMLInputChannels")
)
input_: capo_cleanroomsml.types.list_ml_input_channels_request.ListMLInputChannelsRequest = {
"membership_identifier": membership_identifier
}
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|