Sync custom AWS IAM roles from S3
POST/aws-roles
Starts an asynchronous sync of custom AWS IAM roles from policy documents under the Amorphic core S3 custom-roles prefix. The API returns immediately after Event-invoking this Lambda with invoke_type=async; the async run creates/updates/deletes custom roles to match templates and emails admins. Success Message is "Custom roles actions started, You'll get an email about the details of custom role actions." Not idempotent in effect (each call triggers a new sync). Requires role_id (AUTH-1001 if missing).
Request
Responses
- 200
- 400
- 500
Async sync started (SyncAwsSystemRolesResponse).
Response Headers
Access-Control-Allow-Origin
Access-Control-Allow-Methods
Access-Control-Allow-Headers
Validation or authorization failure. Body is {"Message": " -
Response Headers
Access-Control-Allow-Origin
Access-Control-Allow-Methods
Access-Control-Allow-Headers
Backend failure invoking the async sync or unexpected error.
Response Headers
Access-Control-Allow-Origin
Access-Control-Allow-Methods
Access-Control-Allow-Headers