awscli 1.37.12__py3-none-any.whl → 1.37.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of awscli might be problematic. Click here for more details.

Files changed (122) hide show
  1. awscli/__init__.py +1 -1
  2. awscli/examples/cloudtrail/create-subscription.rst +35 -35
  3. awscli/examples/cloudtrail/create-trail.rst +19 -19
  4. awscli/examples/cloudtrail/describe-trails.rst +36 -36
  5. awscli/examples/cloudtrail/update-subscription.rst +33 -33
  6. awscli/examples/cloudtrail/update-trail.rst +18 -18
  7. awscli/examples/codepipeline/list-action-executions.rst +114 -114
  8. awscli/examples/ec2/create-spot-datafeed-subscription.rst +24 -24
  9. awscli/examples/elasticbeanstalk/create-application-version.rst +3 -3
  10. awscli/examples/kendra/describe-data-source.rst +1 -1
  11. awscli/examples/networkmanager/delete-bucket-analytics-configuration.rst +1 -1
  12. awscli/examples/networkmanager/delete-bucket-metrics-configuration.rst +1 -1
  13. awscli/examples/networkmanager/delete-public-access-block.rst +1 -1
  14. awscli/examples/networkmanager/get-bucket-analytics-configuration.rst +1 -1
  15. awscli/examples/networkmanager/get-bucket-metrics-configuration.rst +1 -1
  16. awscli/examples/networkmanager/get-object-retention.rst +1 -1
  17. awscli/examples/networkmanager/get-public-access-block.rst +1 -1
  18. awscli/examples/networkmanager/list-bucket-analytics-configurations.rst +1 -1
  19. awscli/examples/networkmanager/list-bucket-metrics-configurations.rst +1 -1
  20. awscli/examples/networkmanager/put-bucket-metrics-configuration.rst +1 -1
  21. awscli/examples/networkmanager/put-object-retention.rst +1 -1
  22. awscli/examples/networkmanager/put-public-access-block.rst +1 -1
  23. awscli/examples/robomaker/create-robot-application-version.rst +1 -1
  24. awscli/examples/robomaker/create-robot-application.rst +2 -2
  25. awscli/examples/robomaker/create-simulation-application-version.rst +1 -1
  26. awscli/examples/robomaker/create-simulation-application.rst +2 -2
  27. awscli/examples/robomaker/describe-robot-application.rst +1 -1
  28. awscli/examples/robomaker/describe-simulation-application.rst +1 -1
  29. awscli/examples/robomaker/update-robot-application.rst +2 -2
  30. awscli/examples/robomaker/update-simulation-application.rst +2 -2
  31. awscli/examples/s3/website.rst +2 -2
  32. awscli/examples/s3api/abort-multipart-upload.rst +2 -2
  33. awscli/examples/s3api/complete-multipart-upload.rst +4 -4
  34. awscli/examples/s3api/create-bucket.rst +9 -9
  35. awscli/examples/s3api/create-multipart-upload.rst +4 -4
  36. awscli/examples/s3api/delete-bucket-analytics-configuration.rst +1 -1
  37. awscli/examples/s3api/delete-bucket-cors.rst +2 -2
  38. awscli/examples/s3api/delete-bucket-encryption.rst +1 -1
  39. awscli/examples/s3api/delete-bucket-inventory-configuration.rst +1 -1
  40. awscli/examples/s3api/delete-bucket-lifecycle.rst +2 -2
  41. awscli/examples/s3api/delete-bucket-metrics-configuration.rst +1 -1
  42. awscli/examples/s3api/delete-bucket-policy.rst +2 -2
  43. awscli/examples/s3api/delete-bucket-replication.rst +2 -2
  44. awscli/examples/s3api/delete-bucket-tagging.rst +2 -2
  45. awscli/examples/s3api/delete-bucket-website.rst +2 -2
  46. awscli/examples/s3api/delete-bucket.rst +2 -2
  47. awscli/examples/s3api/delete-object-tagging.rst +1 -1
  48. awscli/examples/s3api/delete-object.rst +2 -2
  49. awscli/examples/s3api/delete-objects.rst +2 -2
  50. awscli/examples/s3api/delete-public-access-block.rst +1 -1
  51. awscli/examples/s3api/get-bucket-accelerate-configuration.rst +1 -1
  52. awscli/examples/s3api/get-bucket-acl.rst +2 -2
  53. awscli/examples/s3api/get-bucket-analytics-configuration.rst +1 -1
  54. awscli/examples/s3api/get-bucket-cors.rst +2 -2
  55. awscli/examples/s3api/get-bucket-encryption.rst +2 -2
  56. awscli/examples/s3api/get-bucket-inventory-configuration.rst +2 -2
  57. awscli/examples/s3api/get-bucket-lifecycle-configuration.rst +2 -2
  58. awscli/examples/s3api/get-bucket-lifecycle.rst +2 -2
  59. awscli/examples/s3api/get-bucket-location.rst +2 -2
  60. awscli/examples/s3api/get-bucket-logging.rst +2 -2
  61. awscli/examples/s3api/get-bucket-metrics-configuration.rst +1 -1
  62. awscli/examples/s3api/get-bucket-notification-configuration.rst +2 -2
  63. awscli/examples/s3api/get-bucket-notification.rst +2 -2
  64. awscli/examples/s3api/get-bucket-policy-status.rst +2 -2
  65. awscli/examples/s3api/get-bucket-policy.rst +3 -3
  66. awscli/examples/s3api/get-bucket-replication.rst +3 -3
  67. awscli/examples/s3api/get-bucket-request-payment.rst +1 -1
  68. awscli/examples/s3api/get-bucket-tagging.rst +2 -2
  69. awscli/examples/s3api/get-bucket-versioning.rst +2 -2
  70. awscli/examples/s3api/get-bucket-website.rst +2 -2
  71. awscli/examples/s3api/get-object-acl.rst +2 -2
  72. awscli/examples/s3api/get-object-attributes.rst +1 -1
  73. awscli/examples/s3api/get-object-legal-hold.rst +1 -1
  74. awscli/examples/s3api/get-object-lock-configuration.rst +1 -1
  75. awscli/examples/s3api/get-object-retention.rst +1 -1
  76. awscli/examples/s3api/get-object-tagging.rst +3 -3
  77. awscli/examples/s3api/get-object-torrent.rst +2 -2
  78. awscli/examples/s3api/get-public-access-block.rst +1 -1
  79. awscli/examples/s3api/head-bucket.rst +2 -2
  80. awscli/examples/s3api/head-object.rst +2 -2
  81. awscli/examples/s3api/list-bucket-analytics-configurations.rst +1 -1
  82. awscli/examples/s3api/list-bucket-inventory-configurations.rst +3 -3
  83. awscli/examples/s3api/list-bucket-metrics-configurations.rst +1 -1
  84. awscli/examples/s3api/list-multipart-uploads.rst +2 -2
  85. awscli/examples/s3api/list-object-versions.rst +2 -2
  86. awscli/examples/s3api/list-objects-v2.rst +1 -1
  87. awscli/examples/s3api/list-parts.rst +2 -2
  88. awscli/examples/s3api/put-bucket-accelerate-configuration.rst +1 -1
  89. awscli/examples/s3api/put-bucket-analytics-configuration.rst +1 -1
  90. awscli/examples/s3api/put-bucket-encryption.rst +1 -1
  91. awscli/examples/s3api/put-bucket-inventory-configuration.rst +6 -6
  92. awscli/examples/s3api/put-bucket-lifecycle-configuration.rst +2 -2
  93. awscli/examples/s3api/put-bucket-lifecycle.rst +2 -2
  94. awscli/examples/s3api/put-bucket-metrics-configuration.rst +1 -1
  95. awscli/examples/s3api/put-bucket-notification-configuration.rst +44 -44
  96. awscli/examples/s3api/put-bucket-notification.rst +4 -4
  97. awscli/examples/s3api/put-bucket-request-payment.rst +2 -2
  98. awscli/examples/s3api/put-bucket-tagging.rst +4 -4
  99. awscli/examples/s3api/put-bucket-versioning.rst +3 -3
  100. awscli/examples/s3api/put-bucket-website.rst +2 -2
  101. awscli/examples/s3api/put-object-legal-hold.rst +1 -1
  102. awscli/examples/s3api/put-object-lock-configuration.rst +1 -1
  103. awscli/examples/s3api/put-object-retention.rst +1 -1
  104. awscli/examples/s3api/put-object-tagging.rst +2 -2
  105. awscli/examples/s3api/put-public-access-block.rst +1 -1
  106. awscli/examples/s3api/select-object-content.rst +1 -1
  107. awscli/examples/s3api/upload-part-copy.rst +2 -2
  108. awscli/examples/s3api/upload-part.rst +1 -1
  109. awscli/examples/s3api/wait/bucket-exists.rst +1 -1
  110. awscli/examples/s3api/wait/bucket-not-exists.rst +1 -1
  111. awscli/examples/s3api/wait/object-exists.rst +1 -1
  112. awscli/examples/s3api/wait/object-not-exists.rst +1 -1
  113. {awscli-1.37.12.dist-info → awscli-1.37.13.dist-info}/METADATA +2 -2
  114. {awscli-1.37.12.dist-info → awscli-1.37.13.dist-info}/RECORD +122 -122
  115. {awscli-1.37.12.data → awscli-1.37.13.data}/scripts/aws +0 -0
  116. {awscli-1.37.12.data → awscli-1.37.13.data}/scripts/aws.cmd +0 -0
  117. {awscli-1.37.12.data → awscli-1.37.13.data}/scripts/aws_bash_completer +0 -0
  118. {awscli-1.37.12.data → awscli-1.37.13.data}/scripts/aws_completer +0 -0
  119. {awscli-1.37.12.data → awscli-1.37.13.data}/scripts/aws_zsh_completer.sh +0 -0
  120. {awscli-1.37.12.dist-info → awscli-1.37.13.dist-info}/LICENSE.txt +0 -0
  121. {awscli-1.37.12.dist-info → awscli-1.37.13.dist-info}/WHEEL +0 -0
  122. {awscli-1.37.12.dist-info → awscli-1.37.13.dist-info}/top_level.txt +0 -0
@@ -1,9 +1,9 @@
1
1
  **To retrieve the policy status for a bucket indicating whether the bucket is public**
2
2
 
3
- The following ``get-bucket-policy-status`` example retrieves the policy status for the bucket ``my-bucket``. ::
3
+ The following ``get-bucket-policy-status`` example retrieves the policy status for the bucket ``amzn-s3-demo-bucket``. ::
4
4
 
5
5
  aws s3api get-bucket-policy-status \
6
- --bucket my-bucket
6
+ --bucket amzn-s3-demo-bucket
7
7
 
8
8
  Output::
9
9
 
@@ -1,11 +1,11 @@
1
- The following command retrieves the bucket policy for a bucket named ``my-bucket``::
1
+ The following command retrieves the bucket policy for a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api get-bucket-policy --bucket my-bucket
3
+ aws s3api get-bucket-policy --bucket amzn-s3-demo-bucket
4
4
 
5
5
  Output::
6
6
 
7
7
  {
8
- "Policy": "{\"Version\":\"2008-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::my-bucket/*\"},{\"Sid\":\"\",\"Effect\":\"Deny\",\"Principal\":\"*\",\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::my-bucket/secret/*\"}]}"
8
+ "Policy": "{\"Version\":\"2008-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::amzn-s3-demo-bucket/*\"},{\"Sid\":\"\",\"Effect\":\"Deny\",\"Principal\":\"*\",\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::amzn-s3-demo-bucket/secret/*\"}]}"
9
9
  }
10
10
 
11
11
  Get and put a bucket policy
@@ -1,6 +1,6 @@
1
- The following command retrieves the replication configuration for a bucket named ``my-bucket``::
1
+ The following command retrieves the replication configuration for a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api get-bucket-replication --bucket my-bucket
3
+ aws s3api get-bucket-replication --bucket amzn-s3-demo-bucket
4
4
 
5
5
  Output::
6
6
 
@@ -11,7 +11,7 @@ Output::
11
11
  "Status": "Enabled",
12
12
  "Prefix": "",
13
13
  "Destination": {
14
- "Bucket": "arn:aws:s3:::my-bucket-backup",
14
+ "Bucket": "arn:aws:s3:::amzn-s3-demo-bucket-backup",
15
15
  "StorageClass": "STANDARD"
16
16
  },
17
17
  "ID": "ZmUwNzE4ZmQ4tMjVhOS00MTlkLOGI4NDkzZTIWJjNTUtYTA1"
@@ -3,7 +3,7 @@
3
3
  The following ``get-bucket-request-payment`` example retrieves the requester pays configuration for the specified bucket. ::
4
4
 
5
5
  aws s3api get-bucket-request-payment \
6
- --bucket my-bucket
6
+ --bucket amzn-s3-demo-bucket
7
7
 
8
8
  Output::
9
9
 
@@ -1,6 +1,6 @@
1
- The following command retrieves the tagging configuration for a bucket named ``my-bucket``::
1
+ The following command retrieves the tagging configuration for a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api get-bucket-tagging --bucket my-bucket
3
+ aws s3api get-bucket-tagging --bucket amzn-s3-demo-bucket
4
4
 
5
5
  Output::
6
6
 
@@ -1,6 +1,6 @@
1
- The following command retrieves the versioning configuration for a bucket named ``my-bucket``::
1
+ The following command retrieves the versioning configuration for a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api get-bucket-versioning --bucket my-bucket
3
+ aws s3api get-bucket-versioning --bucket amzn-s3-demo-bucket
4
4
 
5
5
  Output::
6
6
 
@@ -1,6 +1,6 @@
1
- The following command retrieves the static website configuration for a bucket named ``my-bucket``::
1
+ The following command retrieves the static website configuration for a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api get-bucket-website --bucket my-bucket
3
+ aws s3api get-bucket-website --bucket amzn-s3-demo-bucket
4
4
 
5
5
  Output::
6
6
 
@@ -1,6 +1,6 @@
1
- The following command retrieves the access control list for an object in a bucket named ``my-bucket``::
1
+ The following command retrieves the access control list for an object in a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api get-object-acl --bucket my-bucket --key index.html
3
+ aws s3api get-object-acl --bucket amzn-s3-demo-bucket --key index.html
4
4
 
5
5
  Output::
6
6
 
@@ -3,7 +3,7 @@
3
3
  The following ``get-object-attributes`` example retrieves metadata from the object ``doc1.rtf``. ::
4
4
 
5
5
  aws s3api get-object-attributes \
6
- --bucket my-bucket \
6
+ --bucket amzn-s3-demo-bucket \
7
7
  --key doc1.rtf \
8
8
  --object-attributes "StorageClass" "ETag" "ObjectSize"
9
9
 
@@ -3,7 +3,7 @@
3
3
  The following ``get-object-legal-hold`` example retrieves the Legal Hold status for the specified object. ::
4
4
 
5
5
  aws s3api get-object-legal-hold \
6
- --bucket my-bucket-with-object-lock \
6
+ --bucket amzn-s3-demo-bucket-with-object-lock \
7
7
  --key doc1.rtf
8
8
 
9
9
  Output::
@@ -3,7 +3,7 @@
3
3
  The following ``get-object-lock-configuration`` example retrieves the object lock configuration for the specified bucket. ::
4
4
 
5
5
  aws s3api get-object-lock-configuration \
6
- --bucket my-bucket-with-object-lock
6
+ --bucket amzn-s3-demo-bucket-with-object-lock
7
7
 
8
8
  Output::
9
9
 
@@ -3,7 +3,7 @@
3
3
  The following ``get-object-retention`` example retrieves the object retention configuration for the specified object. ::
4
4
 
5
5
  aws s3api get-object-retention \
6
- --bucket my-bucket-with-object-lock \
6
+ --bucket amzn-s3-demo-bucket-with-object-lock \
7
7
  --key doc1.rtf
8
8
 
9
9
  Output::
@@ -3,7 +3,7 @@
3
3
  The following ``get-object-tagging`` example retrieves the values for the specified key from the specified object. ::
4
4
 
5
5
  aws s3api get-object-tagging \
6
- --bucket my-bucket \
6
+ --bucket amzn-s3-demo-bucket \
7
7
  --key doc1.rtf
8
8
 
9
9
  Output::
@@ -20,7 +20,7 @@ Output::
20
20
  The following ``get-object-tagging`` example tries to retrieve the tag sets of the object ``doc2.rtf``, which has no tags. ::
21
21
 
22
22
  aws s3api get-object-tagging \
23
- --bucket my-bucket \
23
+ --bucket amzn-s3-demo-bucket \
24
24
  --key doc2.rtf
25
25
 
26
26
  Output::
@@ -33,7 +33,7 @@ Output::
33
33
  The following ``get-object-tagging`` example retrieves the tag sets of the object ``doc3.rtf``, which has multiple tags. ::
34
34
 
35
35
  aws s3api get-object-tagging \
36
- --bucket my-bucket \
36
+ --bucket amzn-s3-demo-bucket \
37
37
  --key doc3.rtf
38
38
 
39
39
  Output::
@@ -1,5 +1,5 @@
1
- The following command creates a torrent for an object in a bucket named ``my-bucket``::
1
+ The following command creates a torrent for an object in a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api get-object-torrent --bucket my-bucket --key large-video-file.mp4 large-video-file.torrent
3
+ aws s3api get-object-torrent --bucket amzn-s3-demo-bucket --key large-video-file.mp4 large-video-file.torrent
4
4
 
5
5
  The torrent file is saved locally in the current folder. Note that the output filename (``large-video-file.torrent``) is specified without an option name and must be the last argument in the command.
@@ -3,7 +3,7 @@
3
3
  The following ``get-public-access-block`` example displays the block public access configuration for the specified bucket. ::
4
4
 
5
5
  aws s3api get-public-access-block \
6
- --bucket my-bucket
6
+ --bucket amzn-s3-demo-bucket
7
7
 
8
8
  Output::
9
9
 
@@ -1,6 +1,6 @@
1
- The following command verifies access to a bucket named ``my-bucket``::
1
+ The following command verifies access to a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api head-bucket --bucket my-bucket
3
+ aws s3api head-bucket --bucket amzn-s3-demo-bucket
4
4
 
5
5
  If the bucket exists and you have access to it, no output is returned. Otherwise, an error message will be shown. For example::
6
6
 
@@ -1,6 +1,6 @@
1
- The following command retrieves metadata for an object in a bucket named ``my-bucket``::
1
+ The following command retrieves metadata for an object in a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api head-object --bucket my-bucket --key index.html
3
+ aws s3api head-object --bucket amzn-s3-demo-bucket --key index.html
4
4
 
5
5
  Output::
6
6
 
@@ -3,7 +3,7 @@
3
3
  The following ``list-bucket-analytics-configurations`` retrieves a list of analytics configurations for the specified bucket. ::
4
4
 
5
5
  aws s3api list-bucket-analytics-configurations \
6
- --bucket my-bucket
6
+ --bucket amzn-s3-demo-bucket
7
7
 
8
8
  Output::
9
9
 
@@ -3,7 +3,7 @@
3
3
  The following ``list-bucket-inventory-configurations`` example lists the inventory configurations for the specified bucket. ::
4
4
 
5
5
  aws s3api list-bucket-inventory-configurations \
6
- --bucket my-bucket
6
+ --bucket amzn-s3-demo-bucket
7
7
 
8
8
  Output::
9
9
 
@@ -14,7 +14,7 @@ Output::
14
14
  "Destination": {
15
15
  "S3BucketDestination": {
16
16
  "Format": "ORC",
17
- "Bucket": "arn:aws:s3:::my-bucket",
17
+ "Bucket": "arn:aws:s3:::amzn-s3-demo-bucket",
18
18
  "AccountId": "123456789012"
19
19
  }
20
20
  },
@@ -29,7 +29,7 @@ Output::
29
29
  "Destination": {
30
30
  "S3BucketDestination": {
31
31
  "Format": "CSV",
32
- "Bucket": "arn:aws:s3:::my-bucket",
32
+ "Bucket": "arn:aws:s3:::amzn-s3-demo-bucket",
33
33
  "AccountId": "123456789012"
34
34
  }
35
35
  },
@@ -3,7 +3,7 @@
3
3
  The following ``list-bucket-metrics-configurations`` example retrieves a list of metrics configurations for the specified bucket. ::
4
4
 
5
5
  aws s3api list-bucket-metrics-configurations \
6
- --bucket my-bucket
6
+ --bucket amzn-s3-demo-bucket
7
7
 
8
8
  Output::
9
9
 
@@ -1,6 +1,6 @@
1
- The following command lists all of the active multipart uploads for a bucket named ``my-bucket``::
1
+ The following command lists all of the active multipart uploads for a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api list-multipart-uploads --bucket my-bucket
3
+ aws s3api list-multipart-uploads --bucket amzn-s3-demo-bucket
4
4
 
5
5
  Output::
6
6
 
@@ -1,6 +1,6 @@
1
- The following command retrieves version information for an object in a bucket named ``my-bucket``::
1
+ The following command retrieves version information for an object in a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api list-object-versions --bucket my-bucket --prefix index.html
3
+ aws s3api list-object-versions --bucket amzn-s3-demo-bucket --prefix index.html
4
4
 
5
5
  Output::
6
6
 
@@ -3,7 +3,7 @@
3
3
  The following ``list-objects-v2`` example lists the objects in the specified bucket. ::
4
4
 
5
5
  aws s3api list-objects-v2 \
6
- --bucket my-bucket
6
+ --bucket amzn-s3-demo-bucket
7
7
 
8
8
  Output::
9
9
 
@@ -1,6 +1,6 @@
1
- The following command lists all of the parts that have been uploaded for a multipart upload with key ``multipart/01`` in the bucket ``my-bucket``::
1
+ The following command lists all of the parts that have been uploaded for a multipart upload with key ``multipart/01`` in the bucket ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api list-parts --bucket my-bucket --key 'multipart/01' --upload-id dfRtDYU0WWCCcH43C3WFbkRONycyCpTJJvxu2i5GYkZljF.Yxwh6XG7WfS2vC4to6HiV6Yjlx.cph0gtNBtJ8P3URCSbB7rjxI5iEwVDmgaXZOGgkk5nVTW16HOQ5l0R
3
+ aws s3api list-parts --bucket amzn-s3-demo-bucket --key 'multipart/01' --upload-id dfRtDYU0WWCCcH43C3WFbkRONycyCpTJJvxu2i5GYkZljF.Yxwh6XG7WfS2vC4to6HiV6Yjlx.cph0gtNBtJ8P3URCSbB7rjxI5iEwVDmgaXZOGgkk5nVTW16HOQ5l0R
4
4
 
5
5
  Output::
6
6
 
@@ -3,7 +3,7 @@
3
3
  The following ``put-bucket-accelerate-configuration`` example enables the accelerate configuration for the specified bucket. ::
4
4
 
5
5
  aws s3api put-bucket-accelerate-configuration \
6
- --bucket my-bucket \
6
+ --bucket amzn-s3-demo-bucket \
7
7
  --accelerate-configuration Status=Enabled
8
8
 
9
9
  This command produces no output.
@@ -3,7 +3,7 @@
3
3
  The following ``put-bucket-analytics-configuration`` example configures analytics for the specified bucket. ::
4
4
 
5
5
  aws s3api put-bucket-analytics-configuration \
6
- --bucket my-bucket --id 1 \
6
+ --bucket amzn-s3-demo-bucket --id 1 \
7
7
  --analytics-configuration '{"Id": "1","StorageClassAnalysis": {}}'
8
8
 
9
9
  This command produces no output.
@@ -3,7 +3,7 @@
3
3
  The following ``put-bucket-encryption`` example sets AES256 encryption as the default for the specified bucket. ::
4
4
 
5
5
  aws s3api put-bucket-encryption \
6
- --bucket my-bucket \
6
+ --bucket amzn-s3-demo-bucket \
7
7
  --server-side-encryption-configuration '{"Rules": [{"ApplyServerSideEncryptionByDefault": {"SSEAlgorithm": "AES256"}}]}'
8
8
 
9
9
  This command produces no output.
@@ -1,21 +1,21 @@
1
1
  **Example 1: To set an inventory configuration for a bucket**
2
2
 
3
- The following ``put-bucket-inventory-configuration`` example sets a weekly ORC-formatted inventory report for the bucket ``my-bucket``. ::
3
+ The following ``put-bucket-inventory-configuration`` example sets a weekly ORC-formatted inventory report for the bucket ``amzn-s3-demo-bucket``. ::
4
4
 
5
5
  aws s3api put-bucket-inventory-configuration \
6
- --bucket my-bucket \
6
+ --bucket amzn-s3-demo-bucket \
7
7
  --id 1 \
8
- --inventory-configuration '{"Destination": { "S3BucketDestination": { "AccountId": "123456789012", "Bucket": "arn:aws:s3:::my-bucket", "Format": "ORC" }}, "IsEnabled": true, "Id": "1", "IncludedObjectVersions": "Current", "Schedule": { "Frequency": "Weekly" }}'
8
+ --inventory-configuration '{"Destination": { "S3BucketDestination": { "AccountId": "123456789012", "Bucket": "arn:aws:s3:::amzn-s3-demo-bucket", "Format": "ORC" }}, "IsEnabled": true, "Id": "1", "IncludedObjectVersions": "Current", "Schedule": { "Frequency": "Weekly" }}'
9
9
 
10
10
  This command produces no output.
11
11
 
12
12
  **Example 2: To set an inventory configuration for a bucket**
13
13
 
14
- The following ``put-bucket-inventory-configuration`` example sets a daily CSV-formatted inventory report for the bucket ``my-bucket``. ::
14
+ The following ``put-bucket-inventory-configuration`` example sets a daily CSV-formatted inventory report for the bucket ``amzn-s3-demo-bucket``. ::
15
15
 
16
16
  aws s3api put-bucket-inventory-configuration \
17
- --bucket my-bucket \
17
+ --bucket amzn-s3-demo-bucket \
18
18
  --id 2 \
19
- --inventory-configuration '{"Destination": { "S3BucketDestination": { "AccountId": "123456789012", "Bucket": "arn:aws:s3:::my-bucket", "Format": "CSV" }}, "IsEnabled": true, "Id": "2", "IncludedObjectVersions": "Current", "Schedule": { "Frequency": "Daily" }}'
19
+ --inventory-configuration '{"Destination": { "S3BucketDestination": { "AccountId": "123456789012", "Bucket": "arn:aws:s3:::amzn-s3-demo-bucket", "Format": "CSV" }}, "IsEnabled": true, "Id": "2", "IncludedObjectVersions": "Current", "Schedule": { "Frequency": "Daily" }}'
20
20
 
21
21
  This command produces no output.
@@ -1,6 +1,6 @@
1
- The following command applies a lifecycle configuration to a bucket named ``my-bucket``::
1
+ The following command applies a lifecycle configuration to a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api put-bucket-lifecycle-configuration --bucket my-bucket --lifecycle-configuration file://lifecycle.json
3
+ aws s3api put-bucket-lifecycle-configuration --bucket amzn-s3-demo-bucket --lifecycle-configuration file://lifecycle.json
4
4
 
5
5
  The file ``lifecycle.json`` is a JSON document in the current folder that specifies two rules::
6
6
 
@@ -1,6 +1,6 @@
1
- The following command applies a lifecycle configuration to the bucket ``my-bucket``::
1
+ The following command applies a lifecycle configuration to the bucket ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api put-bucket-lifecycle --bucket my-bucket --lifecycle-configuration file://lifecycle.json
3
+ aws s3api put-bucket-lifecycle --bucket amzn-s3-demo-bucket --lifecycle-configuration file://lifecycle.json
4
4
 
5
5
  The file ``lifecycle.json`` is a JSON document in the current folder that specifies two rules::
6
6
 
@@ -3,7 +3,7 @@
3
3
  The following ``put-bucket-metrics-configuration`` example sets a metric configuration with ID 123 for the specified bucket. ::
4
4
 
5
5
  aws s3api put-bucket-metrics-configuration \
6
- --bucket my-bucket \
6
+ --bucket amzn-s3-demo-bucket \
7
7
  --id 123 \
8
8
  --metrics-configuration '{"Id": "123", "Filter": {"Prefix": "logs"}}'
9
9
 
@@ -1,45 +1,45 @@
1
- **To enable the specified notifications to a bucket**
2
-
3
- The following ``put-bucket-notification-configuration`` example applies a notification configuration to a bucket named ``my-bucket``. The file ``notification.json`` is a JSON document in the current folder that specifies an SNS topic and an event type to monitor. ::
4
-
5
- aws s3api put-bucket-notification-configuration \
6
- --bucket my-bucket \
7
- --notification-configuration file://notification.json
8
-
9
- Contents of ``notification.json``::
10
-
11
- {
12
- "TopicConfigurations": [
13
- {
14
- "TopicArn": "arn:aws:sns:us-west-2:123456789012:s3-notification-topic",
15
- "Events": [
16
- "s3:ObjectCreated:*"
17
- ]
18
- }
19
- ]
20
- }
21
-
22
- The SNS topic must have an IAM policy attached to it that allows Amazon S3 to publish to it. ::
23
-
24
- {
25
- "Version": "2008-10-17",
26
- "Id": "example-ID",
27
- "Statement": [
28
- {
29
- "Sid": "example-statement-ID",
30
- "Effect": "Allow",
31
- "Principal": {
32
- "Service": "s3.amazonaws.com"
33
- },
34
- "Action": [
35
- "SNS:Publish"
36
- ],
37
- "Resource": "arn:aws:sns:us-west-2:123456789012::s3-notification-topic",
38
- "Condition": {
39
- "ArnLike": {
40
- "aws:SourceArn": "arn:aws:s3:*:*:my-bucket"
41
- }
42
- }
43
- }
44
- ]
1
+ **To enable the specified notifications to a bucket**
2
+
3
+ The following ``put-bucket-notification-configuration`` example applies a notification configuration to a bucket named ``amzn-s3-demo-bucket``. The file ``notification.json`` is a JSON document in the current folder that specifies an SNS topic and an event type to monitor. ::
4
+
5
+ aws s3api put-bucket-notification-configuration \
6
+ --bucket amzn-s3-demo-bucket \
7
+ --notification-configuration file://notification.json
8
+
9
+ Contents of ``notification.json``::
10
+
11
+ {
12
+ "TopicConfigurations": [
13
+ {
14
+ "TopicArn": "arn:aws:sns:us-west-2:123456789012:s3-notification-topic",
15
+ "Events": [
16
+ "s3:ObjectCreated:*"
17
+ ]
18
+ }
19
+ ]
20
+ }
21
+
22
+ The SNS topic must have an IAM policy attached to it that allows Amazon S3 to publish to it. ::
23
+
24
+ {
25
+ "Version": "2008-10-17",
26
+ "Id": "example-ID",
27
+ "Statement": [
28
+ {
29
+ "Sid": "example-statement-ID",
30
+ "Effect": "Allow",
31
+ "Principal": {
32
+ "Service": "s3.amazonaws.com"
33
+ },
34
+ "Action": [
35
+ "SNS:Publish"
36
+ ],
37
+ "Resource": "arn:aws:sns:us-west-2:123456789012::s3-notification-topic",
38
+ "Condition": {
39
+ "ArnLike": {
40
+ "aws:SourceArn": "arn:aws:s3:*:*:amzn-s3-demo-bucket"
41
+ }
42
+ }
43
+ }
44
+ ]
45
45
  }
@@ -1,6 +1,6 @@
1
- The applies a notification configuration to a bucket named ``my-bucket``::
1
+ The applies a notification configuration to a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api put-bucket-notification --bucket my-bucket --notification-configuration file://notification.json
3
+ aws s3api put-bucket-notification --bucket amzn-s3-demo-bucket --notification-configuration file://notification.json
4
4
 
5
5
  The file ``notification.json`` is a JSON document in the current folder that specifies an SNS topic and an event type to monitor::
6
6
 
@@ -26,10 +26,10 @@ The SNS topic must have an IAM policy attached to it that allows Amazon S3 to pu
26
26
  "Action": [
27
27
  "SNS:Publish"
28
28
  ],
29
- "Resource": "arn:aws:sns:us-west-2:123456789012:my-bucket",
29
+ "Resource": "arn:aws:sns:us-west-2:123456789012:amzn-s3-demo-bucket",
30
30
  "Condition": {
31
31
  "ArnLike": {
32
- "aws:SourceArn": "arn:aws:s3:*:*:my-bucket"
32
+ "aws:SourceArn": "arn:aws:s3:*:*:amzn-s3-demo-bucket"
33
33
  }
34
34
  }
35
35
  }
@@ -3,7 +3,7 @@
3
3
  The following ``put-bucket-request-payment`` example enables ``requester pays`` for the specified bucket. ::
4
4
 
5
5
  aws s3api put-bucket-request-payment \
6
- --bucket my-bucket \
6
+ --bucket amzn-s3-demo-bucket \
7
7
  --request-payment-configuration '{"Payer":"Requester"}'
8
8
 
9
9
  This command produces no output.
@@ -13,7 +13,7 @@ This command produces no output.
13
13
  The following ``put-bucket-request-payment`` example disables ``requester pays`` for the specified bucket. ::
14
14
 
15
15
  aws s3api put-bucket-request-payment \
16
- --bucket my-bucket \
16
+ --bucket amzn-s3-demo-bucket \
17
17
  --request-payment-configuration '{"Payer":"BucketOwner"}'
18
18
 
19
19
  This command produces no output.
@@ -1,6 +1,6 @@
1
- The following command applies a tagging configuration to a bucket named ``my-bucket``::
1
+ The following command applies a tagging configuration to a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api put-bucket-tagging --bucket my-bucket --tagging file://tagging.json
3
+ aws s3api put-bucket-tagging --bucket amzn-s3-demo-bucket --tagging file://tagging.json
4
4
 
5
5
  The file ``tagging.json`` is a JSON document in the current folder that specifies tags::
6
6
 
@@ -13,6 +13,6 @@ The file ``tagging.json`` is a JSON document in the current folder that specifie
13
13
  ]
14
14
  }
15
15
 
16
- Or apply a tagging configuration to ``my-bucket`` directly from the command line::
16
+ Or apply a tagging configuration to ``amzn-s3-demo-bucket`` directly from the command line::
17
17
 
18
- aws s3api put-bucket-tagging --bucket my-bucket --tagging 'TagSet=[{Key=organization,Value=marketing}]'
18
+ aws s3api put-bucket-tagging --bucket amzn-s3-demo-bucket --tagging 'TagSet=[{Key=organization,Value=marketing}]'
@@ -1,7 +1,7 @@
1
- The following command enables versioning on a bucket named ``my-bucket``::
1
+ The following command enables versioning on a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=Enabled
3
+ aws s3api put-bucket-versioning --bucket amzn-s3-demo-bucket --versioning-configuration Status=Enabled
4
4
 
5
5
  The following command enables versioning, and uses an mfa code ::
6
6
 
7
- aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=Enabled --mfa "SERIAL 123456"
7
+ aws s3api put-bucket-versioning --bucket amzn-s3-demo-bucket --versioning-configuration Status=Enabled --mfa "SERIAL 123456"
@@ -1,6 +1,6 @@
1
- The applies a static website configuration to a bucket named ``my-bucket``::
1
+ The applies a static website configuration to a bucket named ``amzn-s3-demo-bucket``::
2
2
 
3
- aws s3api put-bucket-website --bucket my-bucket --website-configuration file://website.json
3
+ aws s3api put-bucket-website --bucket amzn-s3-demo-bucket --website-configuration file://website.json
4
4
 
5
5
  The file ``website.json`` is a JSON document in the current folder that specifies index and error pages for the website::
6
6
 
@@ -3,7 +3,7 @@
3
3
  The following ``put-object-legal-hold`` example sets a Legal Hold on the object ``doc1.rtf``. ::
4
4
 
5
5
  aws s3api put-object-legal-hold \
6
- --bucket my-bucket-with-object-lock \
6
+ --bucket amzn-s3-demo-bucket-with-object-lock \
7
7
  --key doc1.rtf \
8
8
  --legal-hold Status=ON
9
9
 
@@ -3,7 +3,7 @@
3
3
  The following ``put-object-lock-configuration`` example sets a 50-day object lock on the specified bucket. ::
4
4
 
5
5
  aws s3api put-object-lock-configuration \
6
- --bucket my-bucket-with-object-lock \
6
+ --bucket amzn-s3-demo-bucket-with-object-lock \
7
7
  --object-lock-configuration '{ "ObjectLockEnabled": "Enabled", "Rule": { "DefaultRetention": { "Mode": "COMPLIANCE", "Days": 50 }}}'
8
8
 
9
9
  This command produces no output.
@@ -3,7 +3,7 @@
3
3
  The following ``put-object-retention`` example sets an object retention configuration for the specified object until 2025-01-01. ::
4
4
 
5
5
  aws s3api put-object-retention \
6
- --bucket my-bucket-with-object-lock \
6
+ --bucket amzn-s3-demo-bucket-with-object-lock \
7
7
  --key doc1.rtf \
8
8
  --retention '{ "Mode": "GOVERNANCE", "RetainUntilDate": "2025-01-01T00:00:00" }'
9
9
 
@@ -3,7 +3,7 @@
3
3
  The following ``put-object-tagging`` example sets a tag with the key ``designation`` and the value ``confidential`` on the specified object. ::
4
4
 
5
5
  aws s3api put-object-tagging \
6
- --bucket my-bucket \
6
+ --bucket amzn-s3-demo-bucket \
7
7
  --key doc1.rtf \
8
8
  --tagging '{"TagSet": [{ "Key": "designation", "Value": "confidential" }]}'
9
9
 
@@ -12,7 +12,7 @@ This command produces no output.
12
12
  The following ``put-object-tagging`` example sets multiple tags sets on the specified object. ::
13
13
 
14
14
  aws s3api put-object-tagging \
15
- --bucket my-bucket-example \
15
+ --bucket amzn-s3-demo-bucket-example \
16
16
  --key doc3.rtf \
17
17
  --tagging '{"TagSet": [{ "Key": "designation", "Value": "confidential" }, { "Key": "department", "Value": "finance" }, { "Key": "team", "Value": "payroll" } ]}'
18
18
 
@@ -3,7 +3,7 @@
3
3
  The following ``put-public-access-block`` example sets a restrictive block public access configuration for the specified bucket. ::
4
4
 
5
5
  aws s3api put-public-access-block \
6
- --bucket my-bucket \
6
+ --bucket amzn-s3-demo-bucket \
7
7
  --public-access-block-configuration "BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true"
8
8
 
9
9
  This command produces no output.