create_marketplace_model_endpoint
async
¶
create_marketplace_model_endpoint(
model_source_identifier: ModelSourceIdentifier,
endpoint_config: EndpointConfig,
endpoint_name: EndpointName,
*,
config_overrides: Optional[AsyncBedrockClientConfig] = 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/async_bedrock.py
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 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 | |