-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
171 lines (168 loc) · 10.3 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
openapi: 3.0.1
info:
title: AWS SDK for Natural Language
description: Use AWS with natural language
version: 'v1'
servers:
- url: https://gpt4-plugin-test-mataslauzadis.vercel.app/
paths:
/aws/authenticate:
post:
operationId: authenticate
summary: Authenticate with AWS using the given credentials
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AuthenticateRequest'
responses:
"200":
description: "OK"
content:
text:
"OK"
/com/amazonaws/s3/PutObjectRequest:
POST:
operationId: PutObjectRequest
summary: Adds an object to a bucket. You must have WRITE permissions on a bucket to add an object to it. Amazon S3 never adds partial objects; if you receive a success response, Amazon S3 added
requestBody:
required: true
content:
application/json:
schema:
$ref: com.amazonaws.s3#PutObjectRequest
responses:
"200":
description: "OK"
content:
text:
"OK"
components:
schemas:
AuthenticateRequest:
type: object
properties:
access_key_id:
type: string
description: The access key ID
secret_access_key:
type: string
description: The secret access key
com.amazonaws.s3#PutObjectRequest:
type: object
properties:
com.amazonaws.s3#ObjectCannedACL:
type: string
enum: [private,public-read,public-read-write,authenticated-read,aws-exec-read,bucket-owner-read,bucket-owner-full-control]
description: The canned ACL to apply to the object. For more information, see Canned ACL. This action is not supported by Amazon S3 on Outposts.
com.amazonaws.s3#StreamingBlob:
type: string
description: Object data.
com.amazonaws.s3#BucketName:
type: string
description: The bucket name to which the PUT action was initiated. When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the
com.amazonaws.s3#CacheControl:
type: string
description: Can be used to specify caching behavior along the request/reply chain. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.
com.amazonaws.s3#ContentDisposition:
type: string
description: Specifies presentational information for the object. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1.
com.amazonaws.s3#ContentEncoding:
type: string
description: Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
com.amazonaws.s3#ContentLanguage:
type: string
description: The language the content is in.
com.amazonaws.s3#ContentLength:
type: integer
description: Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.ht
com.amazonaws.s3#ContentMD5:
type: string
description: The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the sa
com.amazonaws.s3#ContentType:
type: string
description: A standard MIME type describing the format of the contents. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17.
com.amazonaws.s3#ChecksumAlgorithm:
type: string
enum: [CRC32,CRC32C,SHA1,SHA256]
description: Indicates the algorithm used to create the checksum for the object when using the SDK. This header will not provide any additional functionality if not using the SDK. When sending this header, ther
com.amazonaws.s3#ChecksumCRC32:
type: string
description: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC32 checksum of the
com.amazonaws.s3#ChecksumCRC32C:
type: string
description: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 32-bit CRC32C checksum of the
com.amazonaws.s3#ChecksumSHA1:
type: string
description: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 160-bit SHA-1 digest of the o
com.amazonaws.s3#ChecksumSHA256:
type: string
description: This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the base64-encoded, 256-bit SHA-256 digest of the
com.amazonaws.s3#Expires:
type: string
description: The date and time at which the object is no longer cacheable. For more information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21.
com.amazonaws.s3#GrantFullControl:
type: string
description: Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object. This action is not supported by Amazon S3 on Outposts.
com.amazonaws.s3#GrantRead:
type: string
description: Allows grantee to read the object data and its metadata. This action is not supported by Amazon S3 on Outposts.
com.amazonaws.s3#GrantReadACP:
type: string
description: Allows grantee to read the object ACL. This action is not supported by Amazon S3 on Outposts.
com.amazonaws.s3#GrantWriteACP:
type: string
description: Allows grantee to write the ACL for the applicable object. This action is not supported by Amazon S3 on Outposts.
com.amazonaws.s3#ObjectKey:
type: string
description: Object key for which the PUT action was initiated.
com.amazonaws.s3#ServerSideEncryption:
type: string
enum: [AES256,aws:kms]
description: The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms).
com.amazonaws.s3#StorageClass:
type: string
enum: [STANDARD,REDUCED_REDUNDANCY,STANDARD_IA,ONEZONE_IA,INTELLIGENT_TIERING,GLACIER,DEEP_ARCHIVE,OUTPOSTS,GLACIER_IR,SNOW]
description: By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. The STANDARD storage class provides high durability and high availability. Depending on performanc
com.amazonaws.s3#WebsiteRedirectLocation:
type: string
description: If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in th
com.amazonaws.s3#SSECustomerAlgorithm:
type: string
description: Specifies the algorithm to use to when encrypting the object (for example, AES256).
com.amazonaws.s3#SSECustomerKey:
type: string
description: Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the en
com.amazonaws.s3#SSECustomerKeyMD5:
type: string
description: Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted
com.amazonaws.s3#SSEKMSKeyId:
type: string
description: If x-amz-server-side-encryption is present and has the value of aws:kms, this header specifies the ID of the Amazon Web Services Key Management Service (Amazon Web Services KMS) symmet
com.amazonaws.s3#SSEKMSEncryptionContext:
type: string
description: Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-va
com.amazonaws.s3#BucketKeyEnabled:
type: boolean
description: Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true causes Amazon S3 to use an S3 Bucket Key
com.amazonaws.s3#RequestPayer:
type: string
enum: [requester]
com.amazonaws.s3#TaggingHeader:
type: string
description: The tag-set for the object. The tag-set must be encoded as URL Query parameters. (For example, "Key1=Value1")
com.amazonaws.s3#ObjectLockMode:
type: string
enum: [GOVERNANCE,COMPLIANCE]
description: The Object Lock mode that you want to apply to this object.
com.amazonaws.s3#ObjectLockRetainUntilDate:
type: string
description: The date and time when you want this object's Object Lock to expire. Must be formatted as a timestamp parameter.
com.amazonaws.s3#ObjectLockLegalHoldStatus:
type: string
enum: [ON,OFF]
description: Specifies whether a legal hold will be applied to this object. For more information about S3 Object Lock, see Object Lock.
com.amazonaws.s3#AccountId:
type: string
description: The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden (access denied).