You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* <p>Base exception class for all service exceptions from S3 service.</p>
82
82
*
83
83
* @public
84
-
* @example To remove tag set from an object version
84
+
* @example To remove tag set from an object
85
85
* ```javascript
86
-
* // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
86
+
* // The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version.
87
87
* const input = {
88
88
* "Bucket": "examplebucket",
89
-
* "Key": "HappyFace.jpg",
90
-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
89
+
* "Key": "HappyFace.jpg"
91
90
* };
92
91
* const command = new DeleteObjectTaggingCommand(input);
93
92
* const response = await client.send(command);
94
93
* /* response ==
95
94
* {
96
-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
95
+
* "VersionId": "null"
97
96
* }
98
97
* *\/
99
-
* // example id: to-remove-tag-set-from-an-object-version-1483145285913
98
+
* // example id: to-remove-tag-set-from-an-object-1483145342862
100
99
* ```
101
100
*
102
-
* @example To remove tag set from an object
101
+
* @example To remove tag set from an object version
103
102
* ```javascript
104
-
* // The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version.
103
+
* // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
105
104
* const input = {
106
105
* "Bucket": "examplebucket",
107
-
* "Key": "HappyFace.jpg"
106
+
* "Key": "HappyFace.jpg",
107
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
108
108
* };
109
109
* const command = new DeleteObjectTaggingCommand(input);
110
110
* const response = await client.send(command);
111
111
* /* response ==
112
112
* {
113
-
* "VersionId": "null"
113
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
114
114
* }
115
115
* *\/
116
-
* // example id: to-remove-tag-set-from-an-object-1483145342862
116
+
* // example id: to-remove-tag-set-from-an-object-version-1483145285913
* </b> - To delete a specific version of an object from a versiong-enabled bucket, you must specify the <code>s3:DeleteObjectVersion</code> permission.</p>
91
+
* </b> - To delete a specific version of an object from a versioning-enabled bucket, you must specify the <code>s3:DeleteObjectVersion</code> permission.</p>
0 commit comments