Use declarative interaction-based APIs instead of service-specific calls
mainAmplify encourages using declarative, interaction-based APIs rather than calling specific cloud provider service methods directly.
Instead of learning and managing complex client-service interactions (like S3's CreateMultipartUpload or PutObject), you should use Amplify's human-readable APIs such as UploadData or UploadFile.
Benefits of this approach:
- Abstraction: You don't need to worry about which specific AWS service is being used under the hood.
- Error Handling: Amplify provides human-readable errors and recovery suggestions.
- Optimization: Amplify programmatically optimizes for cost and performance through its opinionated implementations (e.g., preferring API Gateway endpoints for JSON interactions).