put_ml_configuration(
membership_identifier: UUID,
default_output_location: MLOutputConfiguration,
*,
config_overrides: Optional[AsyncCleanRoomsMLClientConfig] = None,
) -> None
Assigns information about an ML configuration.
Parameters:
-
membership_identifier
(UUID)
–
The membership ID of the member that is being configured.
-
default_output_location
(MLOutputConfiguration)
–
The default Amazon S3 location where ML output is stored for the specified member.
Raises:
Source code in docs_src/capo_cleanroomsml/_services/async_clean_rooms_ml.py
| async def put_ml_configuration(
self,
membership_identifier: "capo_cleanroomsml.types.uuid.UUID",
default_output_location: "capo_cleanroomsml.types.ml_output_configuration.MLOutputConfiguration",
*,
config_overrides: Optional[AsyncCleanRoomsMLClientConfig] = None,
) -> None:
"""<p>Assigns information about an ML configuration.</p>
Args:
membership_identifier: <p>The membership ID of the member that is being configured.</p>
default_output_location: <p>The default Amazon S3 location where ML output is stored for the specified member.</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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cleanroomsml.types.put_ml_configuration_request.PutMLConfigurationRequest]",
) -> AsyncOperationResponse[None]:
import capo_cleanroomsml._operations.aws_stark_control_service.put_ml_configuration
(
output,
http_response,
) = await capo_cleanroomsml._operations.aws_stark_control_service.put_ml_configuration.async_put_ml_configuration(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("PutMLConfiguration")
)
input_: capo_cleanroomsml.types.put_ml_configuration_request.PutMLConfigurationRequest = {
"membership_identifier": membership_identifier,
"default_output_location": default_output_location,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|