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
2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 | |