put_external_model
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.put_external_model(
modelEndpoint='string',
modelSource='SAGEMAKER',
invokeModelEndpointRoleArn='string',
inputConfiguration={
'eventTypeName': 'string',
'format': 'TEXT_CSV'|'APPLICATION_JSON',
'useEventVariables': True|False,
'jsonInputTemplate': 'string',
'csvInputTemplate': 'string'
},
outputConfiguration={
'format': 'TEXT_CSV'|'APPLICATION_JSONLINES',
'jsonKeyToVariableMap': {
'string': 'string'
},
'csvIndexToVariableMap': {
'string': 'string'
}
},
modelEndpointStatus='ASSOCIATED'|'DISSOCIATED',
tags=[
{
'key': 'string',
'value': 'string'
},
]
)
[REQUIRED]
The model endpoints name.
[REQUIRED]
The source of the model.
[REQUIRED]
The IAM role used to invoke the model endpoint.
[REQUIRED]
The model endpoint input configuration.
The event type name.
The format of the model input configuration. The format differs depending on if it is passed through to SageMaker or constructed by Amazon Fraud Detector.
The event variables.
Template for constructing the JSON input-data sent to SageMaker. At event-evaluation, the placeholders for variable names in the template will be replaced with the variable values before being sent to SageMaker.
Template for constructing the CSV input-data sent to SageMaker. At event-evaluation, the placeholders for variable-names in the template will be replaced with the variable values before being sent to SageMaker.
[REQUIRED]
The model endpoint output configuration.
The format of the model output configuration.
A map of JSON keys in response from SageMaker to the Amazon Fraud Detector variables.
A map of CSV index values in the SageMaker response to the Amazon Fraud Detector variables.
[REQUIRED]
The model endpoint’s status in Amazon Fraud Detector.
A collection of key and value pairs.
A key and value pair.
A tag key.
A value assigned to a tag key.
dict
Response Syntax
{}
Response Structure
Exceptions
FraudDetector.Client.exceptions.ValidationException
FraudDetector.Client.exceptions.InternalServerException
FraudDetector.Client.exceptions.ThrottlingException
FraudDetector.Client.exceptions.AccessDeniedException
FraudDetector.Client.exceptions.ConflictException