|
84 | 84 | "CreateBucket": [
|
85 | 85 | {
|
86 | 86 | "input": {
|
87 |
| - "Bucket": "examplebucket" |
| 87 | + "Bucket": "examplebucket", |
| 88 | + "CreateBucketConfiguration": { |
| 89 | + "LocationConstraint": "eu-west-1" |
| 90 | + } |
88 | 91 | },
|
89 | 92 | "output": {
|
90 |
| - "Location": "/examplebucket" |
| 93 | + "Location": "http://examplebucket.<Region>.s3.amazonaws.com/" |
91 | 94 | },
|
92 | 95 | "comments": {
|
93 | 96 | "input": {
|
94 | 97 | },
|
95 | 98 | "output": {
|
96 | 99 | }
|
97 | 100 | },
|
98 |
| - "description": "The following example creates a bucket.", |
99 |
| - "id": "to-create-a-bucket--1472851826060", |
100 |
| - "title": "To create a bucket " |
| 101 | + "description": "The following example creates a bucket. The request specifies an AWS region where to create the bucket.", |
| 102 | + "id": "to-create-a-bucket-in-a-specific-region-1483399072992", |
| 103 | + "title": "To create a bucket in a specific region" |
101 | 104 | },
|
102 | 105 | {
|
103 | 106 | "input": {
|
104 |
| - "Bucket": "examplebucket", |
105 |
| - "CreateBucketConfiguration": { |
106 |
| - "LocationConstraint": "eu-west-1" |
107 |
| - } |
| 107 | + "Bucket": "examplebucket" |
108 | 108 | },
|
109 | 109 | "output": {
|
110 |
| - "Location": "http://examplebucket.<Region>.s3.amazonaws.com/" |
| 110 | + "Location": "/examplebucket" |
111 | 111 | },
|
112 | 112 | "comments": {
|
113 | 113 | "input": {
|
114 | 114 | },
|
115 | 115 | "output": {
|
116 | 116 | }
|
117 | 117 | },
|
118 |
| - "description": "The following example creates a bucket. The request specifies an AWS region where to create the bucket.", |
119 |
| - "id": "to-create-a-bucket-in-a-specific-region-1483399072992", |
120 |
| - "title": "To create a bucket in a specific region" |
| 118 | + "description": "The following example creates a bucket.", |
| 119 | + "id": "to-create-a-bucket--1472851826060", |
| 120 | + "title": "To create a bucket " |
121 | 121 | }
|
122 | 122 | ],
|
123 | 123 | "CreateMultipartUpload": [
|
|
257 | 257 | "DeleteObject": [
|
258 | 258 | {
|
259 | 259 | "input": {
|
260 |
| - "Bucket": "examplebucket", |
261 |
| - "Key": "objectkey.jpg" |
262 |
| - }, |
263 |
| - "output": { |
| 260 | + "Bucket": "ExampleBucket", |
| 261 | + "Key": "HappyFace.jpg" |
264 | 262 | },
|
265 | 263 | "comments": {
|
266 | 264 | "input": {
|
267 | 265 | },
|
268 | 266 | "output": {
|
269 | 267 | }
|
270 | 268 | },
|
271 |
| - "description": "The following example deletes an object from an S3 bucket.", |
272 |
| - "id": "to-delete-an-object-1472850136595", |
273 |
| - "title": "To delete an object" |
| 269 | + "description": "The following example deletes an object from a non-versioned bucket.", |
| 270 | + "id": "to-delete-an-object-from-a-non-versioned-bucket-1481588533089", |
| 271 | + "title": "To delete an object (from a non-versioned bucket)" |
274 | 272 | },
|
275 | 273 | {
|
276 | 274 | "input": {
|
277 |
| - "Bucket": "ExampleBucket", |
278 |
| - "Key": "HappyFace.jpg" |
| 275 | + "Bucket": "examplebucket", |
| 276 | + "Key": "objectkey.jpg" |
| 277 | + }, |
| 278 | + "output": { |
279 | 279 | },
|
280 | 280 | "comments": {
|
281 | 281 | "input": {
|
282 | 282 | },
|
283 | 283 | "output": {
|
284 | 284 | }
|
285 | 285 | },
|
286 |
| - "description": "The following example deletes an object from a non-versioned bucket.", |
287 |
| - "id": "to-delete-an-object-from-a-non-versioned-bucket-1481588533089", |
288 |
| - "title": "To delete an object (from a non-versioned bucket)" |
| 286 | + "description": "The following example deletes an object from an S3 bucket.", |
| 287 | + "id": "to-delete-an-object-1472850136595", |
| 288 | + "title": "To delete an object" |
289 | 289 | }
|
290 | 290 | ],
|
291 | 291 | "DeleteObjectTagging": [
|
|
334 | 334 | "Delete": {
|
335 | 335 | "Objects": [
|
336 | 336 | {
|
337 |
| - "Key": "HappyFace.jpg", |
338 |
| - "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b" |
| 337 | + "Key": "objectkey1" |
339 | 338 | },
|
340 | 339 | {
|
341 |
| - "Key": "HappyFace.jpg", |
342 |
| - "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd" |
| 340 | + "Key": "objectkey2" |
343 | 341 | }
|
344 | 342 | ],
|
345 | 343 | "Quiet": false
|
|
348 | 346 | "output": {
|
349 | 347 | "Deleted": [
|
350 | 348 | {
|
351 |
| - "Key": "HappyFace.jpg", |
352 |
| - "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd" |
| 349 | + "DeleteMarker": "true", |
| 350 | + "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F", |
| 351 | + "Key": "objectkey1" |
353 | 352 | },
|
354 | 353 | {
|
355 |
| - "Key": "HappyFace.jpg", |
356 |
| - "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b" |
| 354 | + "DeleteMarker": "true", |
| 355 | + "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt", |
| 356 | + "Key": "objectkey2" |
357 | 357 | }
|
358 | 358 | ]
|
359 | 359 | },
|
|
363 | 363 | "output": {
|
364 | 364 | }
|
365 | 365 | },
|
366 |
| - "description": "The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object versions and returns the key and versions of deleted objects in the response.", |
367 |
| - "id": "to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737", |
368 |
| - "title": "To delete multiple object versions from a versioned bucket" |
| 366 | + "description": "The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.", |
| 367 | + "id": "to-delete-multiple-objects-from-a-versioned-bucket-1483146248805", |
| 368 | + "title": "To delete multiple objects from a versioned bucket" |
369 | 369 | },
|
370 | 370 | {
|
371 | 371 | "input": {
|
372 | 372 | "Bucket": "examplebucket",
|
373 | 373 | "Delete": {
|
374 | 374 | "Objects": [
|
375 | 375 | {
|
376 |
| - "Key": "objectkey1" |
| 376 | + "Key": "HappyFace.jpg", |
| 377 | + "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b" |
377 | 378 | },
|
378 | 379 | {
|
379 |
| - "Key": "objectkey2" |
| 380 | + "Key": "HappyFace.jpg", |
| 381 | + "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd" |
380 | 382 | }
|
381 | 383 | ],
|
382 | 384 | "Quiet": false
|
|
385 | 387 | "output": {
|
386 | 388 | "Deleted": [
|
387 | 389 | {
|
388 |
| - "DeleteMarker": "true", |
389 |
| - "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F", |
390 |
| - "Key": "objectkey1" |
| 390 | + "Key": "HappyFace.jpg", |
| 391 | + "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd" |
391 | 392 | },
|
392 | 393 | {
|
393 |
| - "DeleteMarker": "true", |
394 |
| - "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt", |
395 |
| - "Key": "objectkey2" |
| 394 | + "Key": "HappyFace.jpg", |
| 395 | + "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b" |
396 | 396 | }
|
397 | 397 | ]
|
398 | 398 | },
|
|
402 | 402 | "output": {
|
403 | 403 | }
|
404 | 404 | },
|
405 |
| - "description": "The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.", |
406 |
| - "id": "to-delete-multiple-objects-from-a-versioned-bucket-1483146248805", |
407 |
| - "title": "To delete multiple objects from a versioned bucket" |
| 405 | + "description": "The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object versions and returns the key and versions of deleted objects in the response.", |
| 406 | + "id": "to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737", |
| 407 | + "title": "To delete multiple object versions from a versioned bucket" |
408 | 408 | }
|
409 | 409 | ],
|
410 | 410 | "GetBucketCors": [
|
|
1565 | 1565 | }
|
1566 | 1566 | ],
|
1567 | 1567 | "PutObject": [
|
| 1568 | + { |
| 1569 | + "input": { |
| 1570 | + "Body": "HappyFace.jpg", |
| 1571 | + "Bucket": "examplebucket", |
| 1572 | + "Key": "HappyFace.jpg" |
| 1573 | + }, |
| 1574 | + "output": { |
| 1575 | + "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", |
| 1576 | + "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk" |
| 1577 | + }, |
| 1578 | + "comments": { |
| 1579 | + "input": { |
| 1580 | + }, |
| 1581 | + "output": { |
| 1582 | + } |
| 1583 | + }, |
| 1584 | + "description": "The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.", |
| 1585 | + "id": "to-upload-an-object-1481760101010", |
| 1586 | + "title": "To upload an object" |
| 1587 | + }, |
1568 | 1588 | {
|
1569 | 1589 | "input": {
|
1570 | 1590 | "Body": "filetoupload",
|
|
1614 | 1634 | },
|
1615 | 1635 | {
|
1616 | 1636 | "input": {
|
1617 |
| - "Body": "HappyFace.jpg", |
| 1637 | + "Body": "filetoupload", |
1618 | 1638 | "Bucket": "examplebucket",
|
1619 |
| - "Key": "HappyFace.jpg" |
| 1639 | + "Key": "objectkey" |
1620 | 1640 | },
|
1621 | 1641 | "output": {
|
1622 | 1642 | "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
1623 |
| - "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk" |
| 1643 | + "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ" |
1624 | 1644 | },
|
1625 | 1645 | "comments": {
|
1626 | 1646 | "input": {
|
1627 | 1647 | },
|
1628 | 1648 | "output": {
|
1629 | 1649 | }
|
1630 | 1650 | },
|
1631 |
| - "description": "The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.", |
1632 |
| - "id": "to-upload-an-object-1481760101010", |
1633 |
| - "title": "To upload an object" |
| 1651 | + "description": "The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.", |
| 1652 | + "id": "to-create-an-object-1483147613675", |
| 1653 | + "title": "To create an object." |
1634 | 1654 | },
|
1635 | 1655 | {
|
1636 | 1656 | "input": {
|
|
1676 | 1696 | "id": "to-upload-an-object-and-specify-optional-tags-1481762310955",
|
1677 | 1697 | "title": "To upload an object and specify optional tags"
|
1678 | 1698 | },
|
1679 |
| - { |
1680 |
| - "input": { |
1681 |
| - "Body": "filetoupload", |
1682 |
| - "Bucket": "examplebucket", |
1683 |
| - "Key": "objectkey" |
1684 |
| - }, |
1685 |
| - "output": { |
1686 |
| - "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", |
1687 |
| - "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ" |
1688 |
| - }, |
1689 |
| - "comments": { |
1690 |
| - "input": { |
1691 |
| - }, |
1692 |
| - "output": { |
1693 |
| - } |
1694 |
| - }, |
1695 |
| - "description": "The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.", |
1696 |
| - "id": "to-create-an-object-1483147613675", |
1697 |
| - "title": "To create an object." |
1698 |
| - }, |
1699 | 1699 | {
|
1700 | 1700 | "input": {
|
1701 | 1701 | "ACL": "authenticated-read",
|
|
0 commit comments