start_trained_model_inference_job
async
¶
start_trained_model_inference_job(
membership_identifier: UUID,
name: NameString,
trained_model_arn: TrainedModelArn,
resource_config: InferenceResourceConfig,
output_configuration: InferenceOutputConfiguration,
data_source: ModelInferenceDataSource,
*,
config_overrides: Optional[AsyncCleanRoomsMLClientConfig] = None,
trained_model_version_identifier: Optional[UUID] = None,
configured_model_algorithm_association_arn: Optional[
ConfiguredModelAlgorithmAssociationArn
] = None,
description: Optional[ResourceDescription] = None,
container_execution_parameters: Optional[
InferenceContainerExecutionParameters
] = None,
environment: Optional[InferenceEnvironmentMap] = None,
kms_key_arn: Optional[KmsKeyArn] = None,
tags: Optional[TagMap] = None,
ml_model_inference_payer_account_id: Optional[AccountId] = None,
) -> StartTrainedModelInferenceJobResponse
Defines the information necessary to begin a trained model inference job.
Parameters:
-
membership_identifier(UUID) –The membership ID of the membership that contains the trained model inference job.
-
name(NameString) –The name of the trained model inference job.
-
trained_model_arn(TrainedModelArn) –The Amazon Resource Name (ARN) of the trained model that is used for this trained model inference job.
-
trained_model_version_identifier(Optional[UUID], default:None) –The version identifier of the trained model to use for inference. This specifies which version of the trained model should be used to generate predictions on the input data.
-
configured_model_algorithm_association_arn(Optional[ConfiguredModelAlgorithmAssociationArn], default:None) –The Amazon Resource Name (ARN) of the configured model algorithm association that is used for this trained model inference job.
-
resource_config(InferenceResourceConfig) –Defines the resource configuration for the trained model inference job.
-
output_configuration(InferenceOutputConfiguration) –Defines the output configuration information for the trained model inference job.
-
data_source(ModelInferenceDataSource) –Defines the data source that is used for the trained model inference job.
-
description(Optional[ResourceDescription], default:None) –The description of the trained model inference job.
-
container_execution_parameters(Optional[InferenceContainerExecutionParameters], default:None) –The execution parameters for the container.
-
environment(Optional[InferenceEnvironmentMap], default:None) –The environment variables to set in the Docker container.
-
kms_key_arn(Optional[KmsKeyArn], default:None) –The Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and decrypt customer-owned data in the ML inference job and associated data.
-
tags(Optional[TagMap], default:None) –The optional metadata that you apply to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50.
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8.
-
Maximum value length - 256 Unicode characters in UTF-8.
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case sensitive.
-
Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
-
-
ml_model_inference_payer_account_id(Optional[AccountId], default:None) –The account ID of the member that is responsible for paying for model inference costs.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–You can't complete this action because another resource depends on this resource.
-
ResourceNotFoundException–The resource you are requesting does not exist.
-
ServiceQuotaExceededException–You have exceeded your service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request parameters for this request are incorrect.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cleanroomsml/_services/async_clean_rooms_ml.py
3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 | |