Created
February 4, 2022 23:14
-
-
Save harleyholt/83e1721b95f8f44c0188be2d1e9df82d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"additionalProperties": false, | |
"properties": { | |
"externalId": { | |
"description": "The externalId passed to the service by the caller, if one was provided.", | |
"type": "string" | |
}, | |
"id": { | |
"description": "A unique Id generated by C-SATS.", | |
"type": "string" | |
}, | |
"uploadDestintation": { | |
"additionalProperties": false, | |
"properties": { | |
"credentials": { | |
"additionalProperties": false, | |
"description": "Credentials that will be used to upload to the destination. Only work\nfor destination.\nhttps://docs.aws.amazon.com/STS/latest/APIReference/API_Credentials.html", | |
"properties": { | |
"AccessKeyId": { | |
"type": "string" | |
}, | |
"Expiration": { | |
"type": "number" | |
}, | |
"SecretAccessKey": { | |
"type": "string" | |
}, | |
"SessionToken": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"AccessKeyId", | |
"Expiration", | |
"SecretAccessKey", | |
"SessionToken" | |
], | |
"type": "object" | |
}, | |
"destination": { | |
"additionalProperties": false, | |
"description": "URL to which the file should be uploaded to", | |
"properties": { | |
"Bucket": { | |
"description": "Bucket to upload in to.", | |
"type": "string" | |
}, | |
"Key": { | |
"description": "Key in bucket where the file will be stored.", | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"Bucket", | |
"Key" | |
], | |
"type": "object" | |
} | |
}, | |
"required": [ | |
"credentials", | |
"destination" | |
], | |
"type": "object" | |
} | |
}, | |
"required": [ | |
"id", | |
"uploadDestintation" | |
], | |
"type": "object" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment