-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathaws.s3.yaml
More file actions
237 lines (229 loc) · 14.9 KB
/
Copy pathaws.s3.yaml
File metadata and controls
237 lines (229 loc) · 14.9 KB
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
# yaml-language-server: $schema=https://carapace.sh/schemas/command.json
name: s3
description: ""
commands:
- name: cp
description: Copies a local file or S3 object to another location locally or in S3
flags:
--dryrun: Displays the operations that would be performed using the specified command without actually running them
--quiet: Does not display the operations performed from the specified command
--include=: Don’t exclude files or objects in the command that match the specified pattern
--exclude=: Exclude all files or objects from the command that matches the specified pattern
--acl=: Sets the ACL for the object when the command is performed
--case-conflict=: Configures behavior when attempting to download multiple objects whose keys differ only by case
--follow-symlinks: Symbolic links are followed only when uploading to S3 from the local filesystem
--no-follow-symlinks: Symbolic links are followed only when uploading to S3 from the local filesystem
--no-guess-mime-type: Do not try to guess the mime type for uploaded files
--sse=: Specifies server-side encryption of the object in S3
--sse-c=: Specifies server-side encryption using customer provided keys of the the object in S3
--sse-c-key=: The customer-provided encryption key to use to server-side encrypt the object in S3
--sse-kms-key-id=: The customer-managed AWS Key Management Service (KMS) key ID
--sse-c-copy-source=: The algorithm to use when decrypting the source object
--sse-c-copy-source-key=: The customer-provided encryption key for Amazon S3 to use to decrypt the source object
--storage-class=: The type of storage to use for the object
--grants=: Grant specific permissions to individual users or groups
--website-redirect=: 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
--content-type=: Specify an explicit content type for this operation
--cache-control=: Specifies caching behavior along the request/reply chain
--content-disposition=: Specifies presentational information for the object
--content-encoding=: Specifies what content encodings have been applied to the object
--content-language=: The language the content is in
--expires=: The date and time at which the object is no longer cacheable
--source-region=: The region of the source bucket
--only-show-errors: Only errors and warnings are displayed
--no-overwrite: This flag prevents overwriting of files at the destination
--no-progress: File transfer progress is not displayed
--progress-frequency=: Number of seconds to wait before updating file transfer progress
--progress-multiline: Show progress on multiple lines.
--page-size=: The number of results to return in each response to a list operation
--ignore-glacier-warnings: Turns off glacier warnings
--force-glacier-transfer: Forces a transfer request on all Glacier objects in a sync or recursive copy
--request-payer=: Confirms that the requester knows that they will be charged for the request
--checksum-mode=: To retrieve the checksum, this mode must be enabled
--checksum-algorithm=: Indicates the algorithm used to create the checksum for the object
--metadata=: A map of metadata to store with the objects in S3
--copy-props=: Determines which properties are copied from the source S3 object
--metadata-directive=: Sets the x-amz-metadata-directive header for CopyObject operations
--expected-size=: This argument specifies the expected size of a stream in terms of bytes
--recursive: Command is performed on all files or objects under the specified directory or prefix
completion:
flag:
case-conflict:
- "error\tRaise an error and abort downloads"
- "warn\tEmit a warning and download the object"
- "skip\tSkip downloading the object"
- "ignore\tIgnore the conflict and download the object"
storage-class:
- STANDARD
- REDUCED_REDUNDANCY
- STANDARD_IA
- ONEZONE_IA
- INTELLIGENT_TIERING
- GLACIER
- DEEP_ARCHIVE
- GLACIER_IR
# TODO positional completion
- name: ls
description: List S3 objects and common prefixes under a prefix or all S3 buckets
flags:
--recursive: Command is performed on all files or objects under the specified directory or prefix
--page-size=: The number of results to return in each response to a list operation
--human-readable: Displays file sizes in human readable format
--summarize: Displays summary information
--request-payer=: Confirms that the requester knows that they will be charged for the request
--bucket-name-prefix=: Limits the response to bucket names that begin with the specified bucket name prefix
--bucket-region=: Limits the response to buckets that are located in the specified Amazon Web Services Region
# TODO completion
- name: mb
description: Creates an S3 bucket
flags:
--tags=*: {description: This flag specifies tags to be added to the bucket in the format of `--tags key value`, nargs: 2}
# TODO positional completion
- name: mv
description: Moves a local file or S3 object to another location locally or in S3.
flags:
--dryrun: Displays the operations that would be performed using the specified command without actually running them
--quiet: Does not display the operations performed from the specified command
--include=: Don’t exclude files or objects in the command that match the specified pattern
--exclude=: Exclude all files or objects from the command that matches the specified pattern
--acl=: Sets the ACL for the object when the command is performed
--case-conflict=: Configures behavior when attempting to download multiple objects whose keys differ only by case
--follow-symlinks: Symbolic links are followed only when uploading to S3 from the local filesystem
--no-overwrite: This flag prevents overwriting of files at the destination
--no-follow-symlinks: Symbolic links are followed only when uploading to S3 from the local filesystem
--no-guess-mime-type: Do not try to guess the mime type for uploaded files
--sse=: Specifies server-side encryption of the object in S3
--sse-c=: Specifies server-side encryption using customer provided keys of the the object in S3
--sse-c-key=: The customer-provided encryption key to use to server-side encrypt the object in S3
--sse-kms-key-id=: The customer-managed AWS Key Management Service (KMS) key ID
--sse-c-copy-source=: The algorithm to use when decrypting the source object
--sse-c-copy-source-key=: The encryption key provided must be one that was used when the source object was created.
--storage-class=: The type of storage to use for the object
--grants=: Grant specific permissions to individual users or groups
--website-redirect=: Redirects requests for this object to another object in the same bucket or to an external URL
--content-type=: Specify an explicit content type for this operation
--cache-control=: Specifies caching behavior along the request/reply chain
--content-disposition=: Specifies presentational information for the object
--content-encoding=: Specifies what content encodings have been applied to the object
--content-language=: The language the content is in
--expires=: The date and time at which the object is no longer cacheable
--source-region=: This specifies the region of the source bucket
--only-show-errors: Only errors and warnings are displayed
--no-progress: File transfer progress is not displayed
--progress-frequency=: Number of seconds to wait before updating file transfer progress
--progress-multiline: Show progress on multiple lines
--page-size=: The number of results to return in each response to a list operation
--ignore-glacier-warnings: Turns off glacier warnings
--force-glacier-transfer: Forces a transfer request on all Glacier objects in a sync or recursive copy
--request-payer=: Confirms that the requester knows that they will be charged for the request
--checksum-mode=: To retrieve the checksum, this mode must be enabled
--checksum-algorithm=: Indicates the algorithm used to create the checksum for the object
--metadata=: A map of metadata to store with the objects in S3
--copy-props=: Determines which properties are copied from the source S3 object
--metadata-directive=: Sets the x-amz-metadata-directive header for CopyObject operations
--recursive: Command is performed on all files or objects under the specified directory or prefix
--validate-same-s3-paths: Resolves the source and destination S3 URIs to their underlying buckets
completion:
flag:
case-conflict:
- "error\tRaise an error and abort downloads"
- "warn\tEmit a warning and download the object"
- "skip\tSkip downloading the object"
- "ignore\tIgnore the conflict and download the object"
storage-class:
- STANDARD
- REDUCED_REDUNDANCY
- STANDARD_IA
- ONEZONE_IA
- INTELLIGENT_TIERING
- GLACIER
- DEEP_ARCHIVE
- GLACIER_IR
# TODO positional completion
- name: presign
description: Generate a pre-signed URL for an Amazon S3 object
flags:
--expires-in=: Number of seconds until the pre-signed URL expires
# TODO positional completion
- name: rb
description: Deletes an empty S3 bucket
flags:
--force: Deletes all objects in the bucket including the bucket itself.
# TODO positional completion
- name: rm
description: Deletes an S3 object.
flags:
--dryrun: Displays the operations that would be performed using the specified command without actually running them
--quiet: Does not display the operations performed from the specified command
--recursive: Command is performed on all files or objects under the specified directory or prefix
--request-payer=: Confirms that the requester knows that they will be charged for the request
--include=: Don’t exclude files or objects in the command that match the specified pattern
--exclude=: Exclude all files or objects from the command that matches the specified pattern
--only-show-errors: Only errors and warnings are displayed
--page-size=: The number of results to return in each response to a list operation
# TODO positional completion
- name: sync
description: Syncs directories and S3 prefixe
flags:
--dryrun: Displays the operations that would be performed using the specified command without actually running them
--quiet: Does not display the operations performed from the specified command
--include=: Don’t exclude files or objects in the command that match the specified pattern
--exclude=: Exclude all files or objects from the command that matches the specified pattern
--acl=: Sets the ACL for the object when the command is performed
--case-conflict=: Configures behavior when attempting to download multiple objects whose keys differ only by case
--follow-symlinks: Symbolic links are followed only when uploading to S3 from the local filesystem
--no-follow-symlinks: Symbolic links are followed only when uploading to S3 from the local filesystem
--no-guess-mime-type: Do not try to guess the mime type for uploaded files
--sse=: Specifies server-side encryption of the object in S3
--sse-c=: Specifies server-side encryption using customer provided keys of the the object in S3
--sse-c-key=: The customer-provided encryption key to use to server-side encrypt the object in S3
--sse-kms-key-id=: The customer-managed AWS Key Management Service (KMS) key ID
--sse-c-copy-source=: The algorithm to use when decrypting the source object
--sse-c-copy-source-key=: Specifies the customer-provided encryption key for Amazon S3
--storage-class=: The type of storage to use for the object
--grants=: Grant specific permissions to individual users or groups
--website-redirect=: Redirects requests for this object to another object in the same bucket or to an external URL
--content-type=: Specify an explicit content type for this operation. This value overrides any guessed mime types
--cache-control=: Specifies caching behavior along the request/reply chain
--content-disposition=: Specifies presentational information for the object
--content-encoding=: Specifies what content encodings have been applied to the object
--content-language=: The language the content is in
--expires=: The date and time at which the object is no longer cacheable
--source-region=: Specifies the region of the source bucket
--only-show-errors: Only errors and warnings are displayed
--no-overwrite: This flag prevents overwriting of files at the destination
--no-progress: File transfer progress is not displayed
--progress-frequency=: Number of seconds to wait before updating file transfer progress
--progress-multiline: Show progress on multiple lines
--page-size=: The number of results to return in each response to a list operation
--ignore-glacier-warnings: Turns off glacier warnings
--force-glacier-transfer: Forces a transfer request on all Glacier objects in a sync or recursive copy
--request-payer=: Confirms that the requester knows that they will be charged for the request
--checksum-mode=: To retrieve the checksum, this mode must be enabled
--checksum-algorithm=: Indicates the algorithm used to create the checksum for the object
--metadata=: A map of metadata to store with the objects in S3
--copy-props=: Determines which properties are copied from the source S3 object
--metadata-directive=: Sets the x-amz-metadata-directive header for CopyObject operations
completion:
flag:
case-conflict:
- "error\tRaise an error and abort downloads"
- "warn\tEmit a warning and download the object"
- "skip\tSkip downloading the object"
- "ignore\tIgnore the conflict and download the object"
storage-class:
- STANDARD
- REDUCED_REDUNDANCY
- STANDARD_IA
- ONEZONE_IA
- INTELLIGENT_TIERING
- GLACIER
- DEEP_ARCHIVE
- GLACIER_IR. Defaults to ‘STANDARD’
# TODO positional completion
- name: website
description: Set the website configuration for a bucket
flags:
--index-document=: A suffix that is appended to a request that is for a directory on the website endpoint
--error-document=: The object key name to use when a 4XX class error occurs
# TODO positional completion