create_marketplace_model_endpoint
¶
create_marketplace_model_endpoint(
model_source_identifier: ModelSourceIdentifier,
endpoint_config: EndpointConfig,
endpoint_name: EndpointName,
*,
config_overrides: Optional[BedrockClientConfig] = None,
accept_eula: Optional[AcceptEula] = None,
client_request_token: Optional[IdempotencyToken] = None,
tags: Optional[TagList] = None,
) -> CreateMarketplaceModelEndpointResponse
Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by Amazon SageMaker.
Parameters:
-
model_source_identifier(ModelSourceIdentifier) –The ARN of the model from Amazon Bedrock Marketplace that you want to deploy to the endpoint.
-
endpoint_config(EndpointConfig) –The configuration for the endpoint, including the number and type of instances to use.
-
accept_eula(Optional[AcceptEula], default:None) –Indicates whether you accept the end-user license agreement (EULA) for the model. Set to
trueto accept the EULA. -
endpoint_name(EndpointName) –The name of the endpoint. This name must be unique within your Amazon Web Services account and region.
-
client_request_token(Optional[IdempotencyToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is listed as not required because Amazon Web Services SDKs automatically generate it for you and set this parameter. If you're not using the Amazon Web Services SDK or the CLI, you must provide this token or the action will fail.
-
tags(Optional[TagList], default:None) –An array of key-value pairs to apply to the underlying Amazon SageMaker endpoint. You can use these tags to organize and identify your Amazon Web Services resources.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
ConflictException–Error occurred because of a conflict while performing an operation.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ServiceQuotaExceededException–The number of requests exceeds the service quota. Resubmit your request later.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/bedrock.py
2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 | |