Skip to main content

Module validate

Module validate 

Source
Expand description

Model-derived input validation for Amazon SageMaker operations.

Every SageMaker input member is carried in the awsJson1.1 request body, so the rules generated from the Smithy model (see src/generated.rs) record, per top-level input member, whether it is @required and its @length / @range / @enum constraints. This validator enforces exactly those, rejecting a violating request with SageMaker’s ValidationException. @pattern is intentionally not enforced (it is not part of the constraint set exercised here and enforcing it would reject otherwise-valid inputs).

Constants§

VALIDATION_ERROR
SageMaker’s canonical input-validation error. The model does not enumerate a ValidationException shape on most operations, but the live API returns it for malformed input, and it is registered as a service-wide common error in the conformance probe.

Functions§

invalid
validate
Validate a request body against the operation’s model-derived constraints.