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.
- awscli/__init__.py +1 -1
- awscli/examples/cloudtrail/create-subscription.rst +35 -35
- awscli/examples/cloudtrail/create-trail.rst +19 -19
- awscli/examples/cloudtrail/describe-trails.rst +36 -36
- awscli/examples/cloudtrail/update-subscription.rst +33 -33
- awscli/examples/cloudtrail/update-trail.rst +18 -18
- awscli/examples/codepipeline/list-action-executions.rst +114 -114
- awscli/examples/ec2/create-spot-datafeed-subscription.rst +24 -24
- awscli/examples/elasticbeanstalk/create-application-version.rst +3 -3
- awscli/examples/kendra/describe-data-source.rst +1 -1
- awscli/examples/networkmanager/delete-bucket-analytics-configuration.rst +1 -1
- awscli/examples/networkmanager/delete-bucket-metrics-configuration.rst +1 -1
- awscli/examples/networkmanager/delete-public-access-block.rst +1 -1
- awscli/examples/networkmanager/get-bucket-analytics-configuration.rst +1 -1
- awscli/examples/networkmanager/get-bucket-metrics-configuration.rst +1 -1
- awscli/examples/networkmanager/get-object-retention.rst +1 -1
- awscli/examples/networkmanager/get-public-access-block.rst +1 -1
- awscli/examples/networkmanager/list-bucket-analytics-configurations.rst +1 -1
- awscli/examples/networkmanager/list-bucket-metrics-configurations.rst +1 -1
- awscli/examples/networkmanager/put-bucket-metrics-configuration.rst +1 -1
- awscli/examples/networkmanager/put-object-retention.rst +1 -1
- awscli/examples/networkmanager/put-public-access-block.rst +1 -1
- awscli/examples/robomaker/create-robot-application-version.rst +1 -1
- awscli/examples/robomaker/create-robot-application.rst +2 -2
- awscli/examples/robomaker/create-simulation-application-version.rst +1 -1
- awscli/examples/robomaker/create-simulation-application.rst +2 -2
- awscli/examples/robomaker/describe-robot-application.rst +1 -1
- awscli/examples/robomaker/describe-simulation-application.rst +1 -1
- awscli/examples/robomaker/update-robot-application.rst +2 -2
- awscli/examples/robomaker/update-simulation-application.rst +2 -2
- awscli/examples/s3/website.rst +2 -2
- awscli/examples/s3api/abort-multipart-upload.rst +2 -2
- awscli/examples/s3api/complete-multipart-upload.rst +4 -4
- awscli/examples/s3api/create-bucket.rst +9 -9
- awscli/examples/s3api/create-multipart-upload.rst +4 -4
- awscli/examples/s3api/delete-bucket-analytics-configuration.rst +1 -1
- awscli/examples/s3api/delete-bucket-cors.rst +2 -2
- awscli/examples/s3api/delete-bucket-encryption.rst +1 -1
- awscli/examples/s3api/delete-bucket-inventory-configuration.rst +1 -1
- awscli/examples/s3api/delete-bucket-lifecycle.rst +2 -2
- awscli/examples/s3api/delete-bucket-metrics-configuration.rst +1 -1
- awscli/examples/s3api/delete-bucket-policy.rst +2 -2
- awscli/examples/s3api/delete-bucket-replication.rst +2 -2
- awscli/examples/s3api/delete-bucket-tagging.rst +2 -2
- awscli/examples/s3api/delete-bucket-website.rst +2 -2
- awscli/examples/s3api/delete-bucket.rst +2 -2
- awscli/examples/s3api/delete-object-tagging.rst +1 -1
- awscli/examples/s3api/delete-object.rst +2 -2
- awscli/examples/s3api/delete-objects.rst +2 -2
- awscli/examples/s3api/delete-public-access-block.rst +1 -1
- awscli/examples/s3api/get-bucket-accelerate-configuration.rst +1 -1
- awscli/examples/s3api/get-bucket-acl.rst +2 -2
- awscli/examples/s3api/get-bucket-analytics-configuration.rst +1 -1
- awscli/examples/s3api/get-bucket-cors.rst +2 -2
- awscli/examples/s3api/get-bucket-encryption.rst +2 -2
- awscli/examples/s3api/get-bucket-inventory-configuration.rst +2 -2
- awscli/examples/s3api/get-bucket-lifecycle-configuration.rst +2 -2
- awscli/examples/s3api/get-bucket-lifecycle.rst +2 -2
- awscli/examples/s3api/get-bucket-location.rst +2 -2
- awscli/examples/s3api/get-bucket-logging.rst +2 -2
- awscli/examples/s3api/get-bucket-metrics-configuration.rst +1 -1
- awscli/examples/s3api/get-bucket-notification-configuration.rst +2 -2
- awscli/examples/s3api/get-bucket-notification.rst +2 -2
- awscli/examples/s3api/get-bucket-policy-status.rst +2 -2
- awscli/examples/s3api/get-bucket-policy.rst +3 -3
- awscli/examples/s3api/get-bucket-replication.rst +3 -3
- awscli/examples/s3api/get-bucket-request-payment.rst +1 -1
- awscli/examples/s3api/get-bucket-tagging.rst +2 -2
- awscli/examples/s3api/get-bucket-versioning.rst +2 -2
- awscli/examples/s3api/get-bucket-website.rst +2 -2
- awscli/examples/s3api/get-object-acl.rst +2 -2
- awscli/examples/s3api/get-object-attributes.rst +1 -1
- awscli/examples/s3api/get-object-legal-hold.rst +1 -1
- awscli/examples/s3api/get-object-lock-configuration.rst +1 -1
- awscli/examples/s3api/get-object-retention.rst +1 -1
- awscli/examples/s3api/get-object-tagging.rst +3 -3
- awscli/examples/s3api/get-object-torrent.rst +2 -2
- awscli/examples/s3api/get-public-access-block.rst +1 -1
- awscli/examples/s3api/head-bucket.rst +2 -2
- awscli/examples/s3api/head-object.rst +2 -2
- awscli/examples/s3api/list-bucket-analytics-configurations.rst +1 -1
- awscli/examples/s3api/list-bucket-inventory-configurations.rst +3 -3
- awscli/examples/s3api/list-bucket-metrics-configurations.rst +1 -1
- awscli/examples/s3api/list-multipart-uploads.rst +2 -2
- awscli/examples/s3api/list-object-versions.rst +2 -2
- awscli/examples/s3api/list-objects-v2.rst +1 -1
- awscli/examples/s3api/list-parts.rst +2 -2
- awscli/examples/s3api/put-bucket-accelerate-configuration.rst +1 -1
- awscli/examples/s3api/put-bucket-analytics-configuration.rst +1 -1
- awscli/examples/s3api/put-bucket-encryption.rst +1 -1
- awscli/examples/s3api/put-bucket-inventory-configuration.rst +6 -6
- awscli/examples/s3api/put-bucket-lifecycle-configuration.rst +2 -2
- awscli/examples/s3api/put-bucket-lifecycle.rst +2 -2
- awscli/examples/s3api/put-bucket-metrics-configuration.rst +1 -1
- awscli/examples/s3api/put-bucket-notification-configuration.rst +44 -44
- awscli/examples/s3api/put-bucket-notification.rst +4 -4
- awscli/examples/s3api/put-bucket-request-payment.rst +2 -2
- awscli/examples/s3api/put-bucket-tagging.rst +4 -4
- awscli/examples/s3api/put-bucket-versioning.rst +3 -3
- awscli/examples/s3api/put-bucket-website.rst +2 -2
- awscli/examples/s3api/put-object-legal-hold.rst +1 -1
- awscli/examples/s3api/put-object-lock-configuration.rst +1 -1
- awscli/examples/s3api/put-object-retention.rst +1 -1
- awscli/examples/s3api/put-object-tagging.rst +2 -2
- awscli/examples/s3api/put-public-access-block.rst +1 -1
- awscli/examples/s3api/select-object-content.rst +1 -1
- awscli/examples/s3api/upload-part-copy.rst +2 -2
- awscli/examples/s3api/upload-part.rst +1 -1
- awscli/examples/s3api/wait/bucket-exists.rst +1 -1
- awscli/examples/s3api/wait/bucket-not-exists.rst +1 -1
- awscli/examples/s3api/wait/object-exists.rst +1 -1
- awscli/examples/s3api/wait/object-not-exists.rst +1 -1
- {awscli-1.37.12.dist-info → awscli-1.37.13.dist-info}/METADATA +2 -2
- {awscli-1.37.12.dist-info → awscli-1.37.13.dist-info}/RECORD +122 -122
- {awscli-1.37.12.data → awscli-1.37.13.data}/scripts/aws +0 -0
- {awscli-1.37.12.data → awscli-1.37.13.data}/scripts/aws.cmd +0 -0
- {awscli-1.37.12.data → awscli-1.37.13.data}/scripts/aws_bash_completer +0 -0
- {awscli-1.37.12.data → awscli-1.37.13.data}/scripts/aws_completer +0 -0
- {awscli-1.37.12.data → awscli-1.37.13.data}/scripts/aws_zsh_completer.sh +0 -0
- {awscli-1.37.12.dist-info → awscli-1.37.13.dist-info}/LICENSE.txt +0 -0
- {awscli-1.37.12.dist-info → awscli-1.37.13.dist-info}/WHEEL +0 -0
- {awscli-1.37.12.dist-info → awscli-1.37.13.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
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 ``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
|
|
6
|
+
--bucket amzn-s3-demo-bucket \
|
|
7
7
|
--id 123 \
|
|
8
8
|
--metrics-configuration '{"Id": "123", "Filter": {"Prefix": "logs"}}'
|
|
9
9
|
|
|
@@ -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
|
|
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-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
|
|
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.
|
|
@@ -4,7 +4,7 @@ This example creates a robot application.
|
|
|
4
4
|
|
|
5
5
|
Command::
|
|
6
6
|
|
|
7
|
-
aws robomaker create-robot-application --name MyRobotApplication --sources s3Bucket=
|
|
7
|
+
aws robomaker create-robot-application --name MyRobotApplication --sources s3Bucket=amzn-s3-demo-bucket,s3Key=my-robot-application.tar.gz,architecture=X86_64 --robot-software-suite name=ROS,version=Kinetic
|
|
8
8
|
|
|
9
9
|
Output::
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ Output::
|
|
|
14
14
|
"version": "$LATEST",
|
|
15
15
|
"sources": [
|
|
16
16
|
{
|
|
17
|
-
"s3Bucket": "
|
|
17
|
+
"s3Bucket": "amzn-s3-demo-bucket",
|
|
18
18
|
"s3Key": "my-robot-application.tar.gz",
|
|
19
19
|
"architecture": "ARMHF"
|
|
20
20
|
}
|
|
@@ -4,7 +4,7 @@ This example creates a simulation application.
|
|
|
4
4
|
|
|
5
5
|
Command::
|
|
6
6
|
|
|
7
|
-
aws robomaker create-simulation-application --name MyRobotApplication --sources s3Bucket=
|
|
7
|
+
aws robomaker create-simulation-application --name MyRobotApplication --sources s3Bucket=amzn-s3-demo-bucket,s3Key=my-simulation-application.tar.gz,architecture=ARMHF --robot-software-suite name=ROS,version=Kinetic --simulation-software-suite name=Gazebo,version=7 --rendering-engine name=OGRE,version=1.x
|
|
8
8
|
|
|
9
9
|
Output::
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ Output::
|
|
|
14
14
|
"version": "$LATEST",
|
|
15
15
|
"sources": [
|
|
16
16
|
{
|
|
17
|
-
"s3Bucket": "
|
|
17
|
+
"s3Bucket": "amzn-s3-demo-bucket",
|
|
18
18
|
"s3Key": "my-simulation-application.tar.gz",
|
|
19
19
|
"architecture": "X86_64"
|
|
20
20
|
}
|
|
@@ -4,7 +4,7 @@ This example updates a robot application.
|
|
|
4
4
|
|
|
5
5
|
Command::
|
|
6
6
|
|
|
7
|
-
aws robomaker update-robot-application --application arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551203485821 --sources s3Bucket=
|
|
7
|
+
aws robomaker update-robot-application --application arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551203485821 --sources s3Bucket=amzn-s3-demo-bucket,s3Key=my-robot-application.tar.gz,architecture=X86_64 --robot-software-suite name=ROS,version=Kinetic
|
|
8
8
|
|
|
9
9
|
Output::
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ Output::
|
|
|
14
14
|
"version": "$LATEST",
|
|
15
15
|
"sources": [
|
|
16
16
|
{
|
|
17
|
-
"s3Bucket": "
|
|
17
|
+
"s3Bucket": "amzn-s3-demo-bucket",
|
|
18
18
|
"s3Key": "my-robot-application.tar.gz",
|
|
19
19
|
"architecture": "X86_64"
|
|
20
20
|
}
|
|
@@ -4,7 +4,7 @@ This example updates a simulation application.
|
|
|
4
4
|
|
|
5
5
|
Command::
|
|
6
6
|
|
|
7
|
-
aws robomaker update-simulation-application --application arn:aws:robomaker:us-west-2:111111111111:simulation-application/MySimulationApplication/1551203427605 --sources s3Bucket=
|
|
7
|
+
aws robomaker update-simulation-application --application arn:aws:robomaker:us-west-2:111111111111:simulation-application/MySimulationApplication/1551203427605 --sources s3Bucket=amzn-s3-demo-bucket,s3Key=my-simulation-application.tar.gz,architecture=X86_64 --robot-software-suite name=ROS,version=Kinetic --simulation-software-suite name=Gazebo,version=7 --rendering-engine name=OGRE,version=1.x
|
|
8
8
|
|
|
9
9
|
Output::
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ Output::
|
|
|
14
14
|
"version": "$LATEST",
|
|
15
15
|
"sources": [
|
|
16
16
|
{
|
|
17
|
-
"s3Bucket": "
|
|
17
|
+
"s3Bucket": "amzn-s3-demo-bucket",
|
|
18
18
|
"s3Key": "my-simulation-application.tar.gz",
|
|
19
19
|
"architecture": "X86_64"
|
|
20
20
|
}
|
awscli/examples/s3/website.rst
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
**Configure an S3 bucket as a static website**
|
|
2
2
|
|
|
3
|
-
The following command configures a bucket named ``
|
|
3
|
+
The following command configures a bucket named ``amzn-s3-demo-bucket`` as a static website. The index document option specifies the file in ``amzn-s3-demo-bucket`` that visitors will be directed to when they navigate to the website URL. In this case, the bucket is in the us-west-2 region, so the site would appear at ``http://amzn-s3-demo-bucket.s3-website-us-west-2.amazonaws.com``.
|
|
4
4
|
|
|
5
5
|
All files in the bucket that appear on the static site must be configured to allow visitors to open them. File permissions are configured separately from the bucket website configuration. ::
|
|
6
6
|
|
|
7
|
-
aws s3 website s3://
|
|
7
|
+
aws s3 website s3://amzn-s3-demo-bucket/ \
|
|
8
8
|
--index-document index.html \
|
|
9
9
|
--error-document error.html
|
|
10
10
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
**To abort the specified multipart upload**
|
|
2
2
|
|
|
3
|
-
The following ``abort-multipart-upload`` command aborts a multipart upload for the key ``multipart/01`` in the bucket ``
|
|
3
|
+
The following ``abort-multipart-upload`` command aborts a multipart upload for the key ``multipart/01`` in the bucket ``amzn-s3-demo-bucket``. ::
|
|
4
4
|
|
|
5
5
|
aws s3api abort-multipart-upload \
|
|
6
|
-
--bucket
|
|
6
|
+
--bucket amzn-s3-demo-bucket \
|
|
7
7
|
--key multipart/01 \
|
|
8
8
|
--upload-id dfRtDYU0WWCCcH43C3WFbkRONycyCpTJJvxu2i5GYkZljF.Yxwh6XG7WfS2vC4to6HiV6Yjlx.cph0gtNBtJ8P3URCSbB7rjxI5iEwVDmgaXZOGgkk5nVTW16HOQ5l0R
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
The following command completes a multipart upload for the key ``multipart/01`` in the bucket ``
|
|
1
|
+
The following command completes a multipart upload for the key ``multipart/01`` in the bucket ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api complete-multipart-upload --multipart-upload file://mpustruct --bucket
|
|
3
|
+
aws s3api complete-multipart-upload --multipart-upload file://mpustruct --bucket amzn-s3-demo-bucket --key 'multipart/01' --upload-id dfRtDYU0WWCCcH43C3WFbkRONycyCpTJJvxu2i5GYkZljF.Yxwh6XG7WfS2vC4to6HiV6Yjlx.cph0gtNBtJ8P3URCSbB7rjxI5iEwVDmgaXZOGgkk5nVTW16HOQ5l0R
|
|
4
4
|
|
|
5
5
|
The upload ID required by this command is output by ``create-multipart-upload`` and can also be retrieved with ``list-multipart-uploads``.
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ Output::
|
|
|
31
31
|
|
|
32
32
|
{
|
|
33
33
|
"ETag": "\"3944a9f7a4faab7f78788ff6210f63f0-3\"",
|
|
34
|
-
"Bucket": "
|
|
35
|
-
"Location": "https://
|
|
34
|
+
"Bucket": "amzn-s3-demo-bucket",
|
|
35
|
+
"Location": "https://amzn-s3-demo-bucket.s3.amazonaws.com/multipart%2F01",
|
|
36
36
|
"Key": "multipart/01"
|
|
37
37
|
}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
**Example 1: To create a bucket**
|
|
2
2
|
|
|
3
|
-
The following ``create-bucket`` example creates a bucket named ``
|
|
3
|
+
The following ``create-bucket`` example creates a bucket named ``amzn-s3-demo-bucket``::
|
|
4
4
|
|
|
5
5
|
aws s3api create-bucket \
|
|
6
|
-
--bucket
|
|
6
|
+
--bucket amzn-s3-demo-bucket \
|
|
7
7
|
--region us-east-1
|
|
8
8
|
|
|
9
9
|
Output::
|
|
10
10
|
|
|
11
11
|
{
|
|
12
|
-
"Location": "/
|
|
12
|
+
"Location": "/amzn-s3-demo-bucket"
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
For more information, see `Creating a bucket <https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html>`__ in the *Amazon S3 User Guide*.
|
|
16
16
|
|
|
17
17
|
**Example 2: To create a bucket with owner enforced**
|
|
18
18
|
|
|
19
|
-
The following ``create-bucket`` example creates a bucket named ``
|
|
19
|
+
The following ``create-bucket`` example creates a bucket named ``amzn-s3-demo-bucket`` that uses the bucket owner enforced setting for S3 Object Ownership. ::
|
|
20
20
|
|
|
21
21
|
aws s3api create-bucket \
|
|
22
|
-
--bucket
|
|
22
|
+
--bucket amzn-s3-demo-bucket \
|
|
23
23
|
--region us-east-1 \
|
|
24
24
|
--object-ownership BucketOwnerEnforced
|
|
25
25
|
|
|
26
26
|
Output::
|
|
27
27
|
|
|
28
28
|
{
|
|
29
|
-
"Location": "/
|
|
29
|
+
"Location": "/amzn-s3-demo-bucket"
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
For more information, see `Controlling ownership of objects and disabling ACLs <https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html>`__ in the *Amazon S3 User Guide*.
|
|
33
33
|
|
|
34
34
|
**Example 3: To create a bucket outside of the ``us-east-1`` region**
|
|
35
35
|
|
|
36
|
-
The following ``create-bucket`` example creates a bucket named ``
|
|
36
|
+
The following ``create-bucket`` example creates a bucket named ``amzn-s3-demo-bucket`` in the
|
|
37
37
|
``eu-west-1`` region. Regions outside of ``us-east-1`` require the appropriate
|
|
38
38
|
``LocationConstraint`` to be specified in order to create the bucket in the
|
|
39
39
|
desired region. ::
|
|
40
40
|
|
|
41
41
|
aws s3api create-bucket \
|
|
42
|
-
--bucket
|
|
42
|
+
--bucket amzn-s3-demo-bucket \
|
|
43
43
|
--region eu-west-1 \
|
|
44
44
|
--create-bucket-configuration LocationConstraint=eu-west-1
|
|
45
45
|
|
|
46
46
|
Output::
|
|
47
47
|
|
|
48
48
|
{
|
|
49
|
-
"Location": "http://
|
|
49
|
+
"Location": "http://amzn-s3-demo-bucket.s3.amazonaws.com/"
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
For more information, see `Creating a bucket <https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html>`__ in the *Amazon S3 User Guide*.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
The following command creates a multipart upload in the bucket ``
|
|
1
|
+
The following command creates a multipart upload in the bucket ``amzn-s3-demo-bucket`` with the key ``multipart/01``::
|
|
2
2
|
|
|
3
|
-
aws s3api create-multipart-upload --bucket
|
|
3
|
+
aws s3api create-multipart-upload --bucket amzn-s3-demo-bucket --key 'multipart/01'
|
|
4
4
|
|
|
5
5
|
Output::
|
|
6
6
|
|
|
7
7
|
{
|
|
8
|
-
"Bucket": "
|
|
8
|
+
"Bucket": "amzn-s3-demo-bucket",
|
|
9
9
|
"UploadId": "dfRtDYU0WWCCcH43C3WFbkRONycyCpTJJvxu2i5GYkZljF.Yxwh6XG7WfS2vC4to6HiV6Yjlx.cph0gtNBtJ8P3URCSbB7rjxI5iEwVDmgaXZOGgkk5nVTW16HOQ5l0R",
|
|
10
10
|
"Key": "multipart/01"
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
The completed file will be named ``01`` in a folder called ``multipart`` in the bucket ``
|
|
13
|
+
The completed file will be named ``01`` in a folder called ``multipart`` in the bucket ``amzn-s3-demo-bucket``. Save the upload ID, key and bucket name for use with the ``upload-part`` command.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The following ``delete-bucket-analytics-configuration`` example removes the analytics configuration for the specified bucket and ID. ::
|
|
4
4
|
|
|
5
5
|
aws s3api delete-bucket-analytics-configuration \
|
|
6
|
-
--bucket
|
|
6
|
+
--bucket amzn-s3-demo-bucket \
|
|
7
7
|
--id 1
|
|
8
8
|
|
|
9
9
|
This command produces no output.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
The following command deletes a Cross-Origin Resource Sharing configuration from a bucket named ``
|
|
1
|
+
The following command deletes a Cross-Origin Resource Sharing configuration from a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api delete-bucket-cors --bucket
|
|
3
|
+
aws s3api delete-bucket-cors --bucket amzn-s3-demo-bucket
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The following ``delete-bucket-inventory-configuration`` example deletes the inventory configuration with ID ``1`` for the specified bucket. ::
|
|
4
4
|
|
|
5
5
|
aws s3api delete-bucket-inventory-configuration \
|
|
6
|
-
--bucket
|
|
6
|
+
--bucket amzn-s3-demo-bucket \
|
|
7
7
|
--id 1
|
|
8
8
|
|
|
9
9
|
This command produces no output.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
The following command deletes a lifecycle configuration from a bucket named ``
|
|
1
|
+
The following command deletes a lifecycle configuration from a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api delete-bucket-lifecycle --bucket
|
|
3
|
+
aws s3api delete-bucket-lifecycle --bucket amzn-s3-demo-bucket
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The following ``delete-bucket-metrics-configuration`` example removes the metrics configuration for the specified bucket and ID. ::
|
|
4
4
|
|
|
5
5
|
aws s3api delete-bucket-metrics-configuration \
|
|
6
|
-
--bucket
|
|
6
|
+
--bucket amzn-s3-demo-bucket \
|
|
7
7
|
--id 123
|
|
8
8
|
|
|
9
9
|
This command produces no output.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
The following command deletes a bucket policy from a bucket named ``
|
|
1
|
+
The following command deletes a bucket policy from a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api delete-bucket-policy --bucket
|
|
3
|
+
aws s3api delete-bucket-policy --bucket amzn-s3-demo-bucket
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
The following command deletes a replication configuration from a bucket named ``
|
|
1
|
+
The following command deletes a replication configuration from a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api delete-bucket-replication --bucket
|
|
3
|
+
aws s3api delete-bucket-replication --bucket amzn-s3-demo-bucket
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
The following command deletes a tagging configuration from a bucket named ``
|
|
1
|
+
The following command deletes a tagging configuration from a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api delete-bucket-tagging --bucket
|
|
3
|
+
aws s3api delete-bucket-tagging --bucket amzn-s3-demo-bucket
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
The following command deletes a website configuration from a bucket named ``
|
|
1
|
+
The following command deletes a website configuration from a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api delete-bucket-website --bucket
|
|
3
|
+
aws s3api delete-bucket-website --bucket amzn-s3-demo-bucket
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
The following command deletes a bucket named ``
|
|
1
|
+
The following command deletes a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api delete-bucket --bucket
|
|
3
|
+
aws s3api delete-bucket --bucket amzn-s3-demo-bucket --region us-east-1
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The following ``delete-object-tagging`` example deletes the tag with the specified key from the object ``doc1.rtf``. ::
|
|
4
4
|
|
|
5
5
|
aws s3api delete-object-tagging \
|
|
6
|
-
--bucket
|
|
6
|
+
--bucket amzn-s3-demo-bucket \
|
|
7
7
|
--key doc1.rtf
|
|
8
8
|
|
|
9
9
|
This command produces no output.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
The following command deletes an object named ``test.txt`` from a bucket named ``
|
|
1
|
+
The following command deletes an object named ``test.txt`` from a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api delete-object --bucket
|
|
3
|
+
aws s3api delete-object --bucket amzn-s3-demo-bucket --key test.txt
|
|
4
4
|
|
|
5
5
|
If bucket versioning is enabled, the output will contain the version ID of the delete marker::
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
The following command deletes an object from a bucket named ``
|
|
1
|
+
The following command deletes an object from a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api delete-objects --bucket
|
|
3
|
+
aws s3api delete-objects --bucket amzn-s3-demo-bucket --delete file://delete.json
|
|
4
4
|
|
|
5
5
|
``delete.json`` is a JSON document in the current directory that specifies the object to delete::
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
The following command retrieves the access control list for a bucket named ``
|
|
1
|
+
The following command retrieves the access control list for a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api get-bucket-acl --bucket
|
|
3
|
+
aws s3api get-bucket-acl --bucket amzn-s3-demo-bucket
|
|
4
4
|
|
|
5
5
|
Output::
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
The following command retrieves the Cross-Origin Resource Sharing configuration for a bucket named ``
|
|
1
|
+
The following command retrieves the Cross-Origin Resource Sharing configuration for a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api get-bucket-cors --bucket
|
|
3
|
+
aws s3api get-bucket-cors --bucket amzn-s3-demo-bucket
|
|
4
4
|
|
|
5
5
|
Output::
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
**To retrieve the server-side encryption configuration for a bucket**
|
|
2
2
|
|
|
3
|
-
The following ``get-bucket-encryption`` example retrieves the server-side encryption configuration for the bucket ``
|
|
3
|
+
The following ``get-bucket-encryption`` example retrieves the server-side encryption configuration for the bucket ``amzn-s3-demo-bucket``. ::
|
|
4
4
|
|
|
5
5
|
aws s3api get-bucket-encryption \
|
|
6
|
-
--bucket
|
|
6
|
+
--bucket amzn-s3-demo-bucket
|
|
7
7
|
|
|
8
8
|
Output::
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The following ``get-bucket-inventory-configuration`` example retrieves the inventory configuration for the specified bucket with ID ``1``. ::
|
|
4
4
|
|
|
5
5
|
aws s3api get-bucket-inventory-configuration \
|
|
6
|
-
--bucket
|
|
6
|
+
--bucket amzn-s3-demo-bucket \
|
|
7
7
|
--id 1
|
|
8
8
|
|
|
9
9
|
Output::
|
|
@@ -14,7 +14,7 @@ Output::
|
|
|
14
14
|
"Destination": {
|
|
15
15
|
"S3BucketDestination": {
|
|
16
16
|
"Format": "ORC",
|
|
17
|
-
"Bucket": "arn:aws:s3:::
|
|
17
|
+
"Bucket": "arn:aws:s3:::amzn-s3-demo-bucket",
|
|
18
18
|
"AccountId": "123456789012"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
The following command retrieves the lifecycle configuration for a bucket named ``
|
|
1
|
+
The following command retrieves the lifecycle configuration for a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api get-bucket-lifecycle-configuration --bucket
|
|
3
|
+
aws s3api get-bucket-lifecycle-configuration --bucket amzn-s3-demo-bucket
|
|
4
4
|
|
|
5
5
|
Output::
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
The following command retrieves the lifecycle configuration for a bucket named ``
|
|
1
|
+
The following command retrieves the lifecycle configuration for a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api get-bucket-lifecycle --bucket
|
|
3
|
+
aws s3api get-bucket-lifecycle --bucket amzn-s3-demo-bucket
|
|
4
4
|
|
|
5
5
|
Output::
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
The following command retrieves the location constraint for a bucket named ``
|
|
1
|
+
The following command retrieves the location constraint for a bucket named ``amzn-s3-demo-bucket``, if a constraint exists::
|
|
2
2
|
|
|
3
|
-
aws s3api get-bucket-location --bucket
|
|
3
|
+
aws s3api get-bucket-location --bucket amzn-s3-demo-bucket
|
|
4
4
|
|
|
5
5
|
Output::
|
|
6
6
|
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
The following ``get-bucket-logging`` example retrieves the logging status for the specified bucket. ::
|
|
4
4
|
|
|
5
5
|
aws s3api get-bucket-logging \
|
|
6
|
-
--bucket
|
|
6
|
+
--bucket amzn-s3-demo-bucket
|
|
7
7
|
|
|
8
8
|
Output::
|
|
9
9
|
|
|
10
10
|
{
|
|
11
11
|
"LoggingEnabled": {
|
|
12
12
|
"TargetPrefix": "",
|
|
13
|
-
"TargetBucket": "
|
|
13
|
+
"TargetBucket": "amzn-s3-demo-bucket-logs"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
The following command retrieves the notification configuration for a bucket named ``
|
|
1
|
+
The following command retrieves the notification configuration for a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api get-bucket-notification-configuration --bucket
|
|
3
|
+
aws s3api get-bucket-notification-configuration --bucket amzn-s3-demo-bucket
|
|
4
4
|
|
|
5
5
|
Output::
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
The following command retrieves the notification configuration for a bucket named ``
|
|
1
|
+
The following command retrieves the notification configuration for a bucket named ``amzn-s3-demo-bucket``::
|
|
2
2
|
|
|
3
|
-
aws s3api get-bucket-notification --bucket
|
|
3
|
+
aws s3api get-bucket-notification --bucket amzn-s3-demo-bucket
|
|
4
4
|
|
|
5
5
|
Output::
|
|
6
6
|
|