put_external_model
¶
put_external_model(
model_endpoint: sageMakerEndpointIdentifier,
model_source: ModelSource,
invoke_model_endpoint_role_arn: string,
input_configuration: ModelInputConfiguration,
output_configuration: ModelOutputConfiguration,
model_endpoint_status: ModelEndpointStatus,
*,
config_overrides: Optional[FraudDetectorClientConfig] = None,
tags: Optional[tagList] = None,
) -> PutExternalModelResult
Creates or updates an Amazon SageMaker model endpoint. You can also use this action to update the configuration of the model endpoint, including the IAM role and/or the mapped variables.
Parameters:
-
model_endpoint(sageMakerEndpointIdentifier) –The model endpoints name.
-
model_source(ModelSource) –The source of the model.
-
invoke_model_endpoint_role_arn(string) –The IAM role used to invoke the model endpoint.
-
input_configuration(ModelInputConfiguration) –The model endpoint input configuration.
-
output_configuration(ModelOutputConfiguration) –The model endpoint output configuration.
-
model_endpoint_status(ModelEndpointStatus) –The model endpoint’s status in Amazon Fraud Detector.
-
tags(Optional[tagList], default:None) –A collection of key and value pairs.
Raises:
-
AccessDeniedException–An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as
PutExternalModel, that specifies a role that is not in your account. -
ConflictException–An exception indicating there was a conflict during a delete operation.
-
InternalServerException–An exception indicating an internal server error.
-
ThrottlingException–An exception indicating a throttling error.
-
ValidationException–An exception indicating a specified value is not allowed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_frauddetector/_services/fraud_detector.py
4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 | |