From 63b2070683ba228b74c936527f40dc0392b25505 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:24:53 +0000 Subject: [PATCH 1/4] chore(clients): generate clients with current commit --- .../src/commands/DeriveSharedSecretCommand.ts | 20 ---- .../src/commands/CreateBucketCommand.ts | 26 ++--- .../src/commands/DeleteObjectCommand.ts | 20 ++-- .../commands/DeleteObjectTaggingCommand.ts | 22 ++-- .../src/commands/GetObjectCommand.ts | 38 +++---- .../src/commands/GetObjectTaggingCommand.ts | 38 +++---- .../src/commands/PutObjectCommand.ts | 100 +++++++++--------- .../src/commands/UploadPartCopyCommand.ts | 26 ++--- clients/client-sso-oidc/package.json | 6 +- 9 files changed, 138 insertions(+), 158 deletions(-) diff --git a/clients/client-kms/src/commands/DeriveSharedSecretCommand.ts b/clients/client-kms/src/commands/DeriveSharedSecretCommand.ts index fcd748773ef4..4825550e664d 100644 --- a/clients/client-kms/src/commands/DeriveSharedSecretCommand.ts +++ b/clients/client-kms/src/commands/DeriveSharedSecretCommand.ts @@ -230,26 +230,6 @@ export interface DeriveSharedSecretCommandOutput extends DeriveSharedSecretRespo * const input = { * "KeyAgreementAlgorithm": "ECDH", * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", - * "PublicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvH3Yj0wbkLEpUl95Cv1cJVjsVNSjwGq3tCLnzXfhVwVvmzGN8pYj3U8nKwgouaHbBWNJYjP5VutbbkKS4Kv4GojwZBJyHN17kmxo8yTjRmjR15SKIQ8cqRA2uaERMLnpztIXdZp232PQPbWGxDyXYJ0aJ5EFSag+iSK341kr2kFTpINN7T1ZaX9vfXBdGR+VtkRKMWoHQeWzHrPZ+3irvpXNCKxGUxmPNsJSjPUhuSXT5+0VrY/LEYLQ5lUTrhU6z5/OK0kzaCc66DXc5ipSloS4Xyg+QcYSMxe9xuqO5HtzFImUSKBm1W6eDT6lHnSbpi7vXzNbIX7pWxKw9nmQvQIDAQAB" - * }; - * const command = new DeriveSharedSecretCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "KeyAgreementAlgorithm": "ECDH", - * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", - * "SharedSecret": "MEYCIQCKZLWyTk5runarx6XiAkU9gv3lbwPO/pHa+DXFehzdDwIhANwpsIV2g/9SPWLLsF6p/hiSskuIXMTRwqrMdVKWTMHG" - * } - * *\/ - * // example id: to-derive-a-shared-secret-1716220614829 - * ``` - * - * @example To derive a shared secret - * ```javascript - * // The following example derives a shared secret using a key agreement algorithm. - * const input = { - * "KeyAgreementAlgorithm": "ECDH", - * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", * "PublicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvH3Yj0wbkLEpUl95Cv1cJVjsVNSjwGq3tCLnzXfhVwVvmzGN8pYj3U8nKwgouaHbBWNJYjP5VutbbkKS4Kv4GojwZBJyHN17kmxo8yTjRmjR15SKIQ8cqRA2uaERMLnpztIXdZp232PQPbWGxDyXYJ0aJ5EFSag" * }; * const command = new DeriveSharedSecretCommand(input); diff --git a/clients/client-s3/src/commands/CreateBucketCommand.ts b/clients/client-s3/src/commands/CreateBucketCommand.ts index c462775fd666..46fc512357db 100644 --- a/clients/client-s3/src/commands/CreateBucketCommand.ts +++ b/clients/client-s3/src/commands/CreateBucketCommand.ts @@ -218,39 +218,39 @@ export interface CreateBucketCommandOutput extends CreateBucketOutput, __Metadat *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To create a bucket + * @example To create a bucket in a specific region * ```javascript - * // The following example creates a bucket. + * // The following example creates a bucket. The request specifies an AWS region where to create the bucket. * const input = { - * "Bucket": "examplebucket" + * "Bucket": "examplebucket", + * "CreateBucketConfiguration": { + * "LocationConstraint": "eu-west-1" + * } * }; * const command = new CreateBucketCommand(input); * const response = await client.send(command); * /* response == * { - * "Location": "/examplebucket" + * "Location": "http://examplebucket..s3.amazonaws.com/" * } * *\/ - * // example id: to-create-a-bucket--1472851826060 + * // example id: to-create-a-bucket-in-a-specific-region-1483399072992 * ``` * - * @example To create a bucket in a specific region + * @example To create a bucket * ```javascript - * // The following example creates a bucket. The request specifies an AWS region where to create the bucket. + * // The following example creates a bucket. * const input = { - * "Bucket": "examplebucket", - * "CreateBucketConfiguration": { - * "LocationConstraint": "eu-west-1" - * } + * "Bucket": "examplebucket" * }; * const command = new CreateBucketCommand(input); * const response = await client.send(command); * /* response == * { - * "Location": "http://examplebucket..s3.amazonaws.com/" + * "Location": "/examplebucket" * } * *\/ - * // example id: to-create-a-bucket-in-a-specific-region-1483399072992 + * // example id: to-create-a-bucket--1472851826060 * ``` * */ diff --git a/clients/client-s3/src/commands/DeleteObjectCommand.ts b/clients/client-s3/src/commands/DeleteObjectCommand.ts index 0762586ab8be..d2b3b5a87947 100644 --- a/clients/client-s3/src/commands/DeleteObjectCommand.ts +++ b/clients/client-s3/src/commands/DeleteObjectCommand.ts @@ -162,28 +162,28 @@ export interface DeleteObjectCommandOutput extends DeleteObjectOutput, __Metadat *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To delete an object (from a non-versioned bucket) + * @example To delete an object * ```javascript - * // The following example deletes an object from a non-versioned bucket. + * // The following example deletes an object from an S3 bucket. * const input = { - * "Bucket": "ExampleBucket", - * "Key": "HappyFace.jpg" + * "Bucket": "examplebucket", + * "Key": "objectkey.jpg" * }; * const command = new DeleteObjectCommand(input); * await client.send(command); - * // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089 + * // example id: to-delete-an-object-1472850136595 * ``` * - * @example To delete an object + * @example To delete an object (from a non-versioned bucket) * ```javascript - * // The following example deletes an object from an S3 bucket. + * // The following example deletes an object from a non-versioned bucket. * const input = { - * "Bucket": "examplebucket", - * "Key": "objectkey.jpg" + * "Bucket": "ExampleBucket", + * "Key": "HappyFace.jpg" * }; * const command = new DeleteObjectCommand(input); * await client.send(command); - * // example id: to-delete-an-object-1472850136595 + * // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089 * ``` * */ diff --git a/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts b/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts index 829a9b612bf1..ac0924a7578b 100644 --- a/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts +++ b/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts @@ -81,39 +81,39 @@ export interface DeleteObjectTaggingCommandOutput extends DeleteObjectTaggingOut *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To remove tag set from an object version + * @example To remove tag set from an object * ```javascript - * // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version. + * // 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. * const input = { * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg", - * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + * "Key": "HappyFace.jpg" * }; * const command = new DeleteObjectTaggingCommand(input); * const response = await client.send(command); * /* response == * { - * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + * "VersionId": "null" * } * *\/ - * // example id: to-remove-tag-set-from-an-object-version-1483145285913 + * // example id: to-remove-tag-set-from-an-object-1483145342862 * ``` * - * @example To remove tag set from an object + * @example To remove tag set from an object version * ```javascript - * // 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. + * // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version. * const input = { * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg" + * "Key": "HappyFace.jpg", + * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" * }; * const command = new DeleteObjectTaggingCommand(input); * const response = await client.send(command); * /* response == * { - * "VersionId": "null" + * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" * } * *\/ - * // example id: to-remove-tag-set-from-an-object-1483145342862 + * // example id: to-remove-tag-set-from-an-object-version-1483145285913 * ``` * */ diff --git a/clients/client-s3/src/commands/GetObjectCommand.ts b/clients/client-s3/src/commands/GetObjectCommand.ts index 2c0dd7c3dcdd..b7510e06670b 100644 --- a/clients/client-s3/src/commands/GetObjectCommand.ts +++ b/clients/client-s3/src/commands/GetObjectCommand.ts @@ -286,53 +286,53 @@ export interface GetObjectCommandOutput extends Omit, _ *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To retrieve a byte range of an object + * @example To retrieve an object * ```javascript - * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range. + * // The following example retrieves an object for an S3 bucket. * const input = { * "Bucket": "examplebucket", - * "Key": "SampleFile.txt", - * "Range": "bytes=0-9" + * "Key": "HappyFace.jpg" * }; * const command = new GetObjectCommand(input); * const response = await client.send(command); * /* response == * { * "AcceptRanges": "bytes", - * "ContentLength": "10", - * "ContentRange": "bytes 0-9/43", - * "ContentType": "text/plain", - * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"", - * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT", + * "ContentLength": "3191", + * "ContentType": "image/jpeg", + * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", + * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT", * "Metadata": {}, + * "TagCount": 2, * "VersionId": "null" * } * *\/ - * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603 + * // example id: to-retrieve-an-object-1481827837012 * ``` * - * @example To retrieve an object + * @example To retrieve a byte range of an object * ```javascript - * // The following example retrieves an object for an S3 bucket. + * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range. * const input = { * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg" + * "Key": "SampleFile.txt", + * "Range": "bytes=0-9" * }; * const command = new GetObjectCommand(input); * const response = await client.send(command); * /* response == * { * "AcceptRanges": "bytes", - * "ContentLength": "3191", - * "ContentType": "image/jpeg", - * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT", + * "ContentLength": "10", + * "ContentRange": "bytes 0-9/43", + * "ContentType": "text/plain", + * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"", + * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT", * "Metadata": {}, - * "TagCount": 2, * "VersionId": "null" * } * *\/ - * // example id: to-retrieve-an-object-1481827837012 + * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603 * ``` * */ diff --git a/clients/client-s3/src/commands/GetObjectTaggingCommand.ts b/clients/client-s3/src/commands/GetObjectTaggingCommand.ts index eb7d011d845b..070a938b8541 100644 --- a/clients/client-s3/src/commands/GetObjectTaggingCommand.ts +++ b/clients/client-s3/src/commands/GetObjectTaggingCommand.ts @@ -97,12 +97,13 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _ *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To retrieve tag set of an object + * @example To retrieve tag set of a specific object version * ```javascript - * // The following example retrieves tag set of an object. + * // The following example retrieves tag set of an object. The request specifies object version. * const input = { * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg" + * "Key": "exampleobject", + * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" * }; * const command = new GetObjectTaggingCommand(input); * const response = await client.send(command); @@ -110,27 +111,22 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _ * { * "TagSet": [ * { - * "Key": "Key4", - * "Value": "Value4" - * }, - * { - * "Key": "Key3", - * "Value": "Value3" + * "Key": "Key1", + * "Value": "Value1" * } * ], - * "VersionId": "null" + * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" * } * *\/ - * // example id: to-retrieve-tag-set-of-an-object-1481833847896 + * // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663 * ``` * - * @example To retrieve tag set of a specific object version + * @example To retrieve tag set of an object * ```javascript - * // The following example retrieves tag set of an object. The request specifies object version. + * // The following example retrieves tag set of an object. * const input = { * "Bucket": "examplebucket", - * "Key": "exampleobject", - * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + * "Key": "HappyFace.jpg" * }; * const command = new GetObjectTaggingCommand(input); * const response = await client.send(command); @@ -138,14 +134,18 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _ * { * "TagSet": [ * { - * "Key": "Key1", - * "Value": "Value1" + * "Key": "Key4", + * "Value": "Value4" + * }, + * { + * "Key": "Key3", + * "Value": "Value3" * } * ], - * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + * "VersionId": "null" * } * *\/ - * // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663 + * // example id: to-retrieve-tag-set-of-an-object-1481833847896 * ``` * */ diff --git a/clients/client-s3/src/commands/PutObjectCommand.ts b/clients/client-s3/src/commands/PutObjectCommand.ts index 158d99723276..b0ad8dd75712 100644 --- a/clients/client-s3/src/commands/PutObjectCommand.ts +++ b/clients/client-s3/src/commands/PutObjectCommand.ts @@ -245,56 +245,55 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To upload an object and specify server-side encryption and object tags + * @example To upload an object and specify canned ACL. * ```javascript - * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response. + * // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response. * const input = { + * "ACL": "authenticated-read", * "Body": "filetoupload", * "Bucket": "examplebucket", - * "Key": "exampleobject", - * "ServerSideEncryption": "AES256", - * "Tagging": "key1=value1&key2=value2" + * "Key": "exampleobject" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "ServerSideEncryption": "AES256", - * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt" + * "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr" * } * *\/ - * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831 + * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571 * ``` * - * @example To create an object. + * @example To upload an object and specify optional tags * ```javascript - * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response. + * // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object. * const input = { - * "Body": "filetoupload", + * "Body": "c:\\HappyFace.jpg", * "Bucket": "examplebucket", - * "Key": "objectkey" + * "Key": "HappyFace.jpg", + * "Tagging": "key1=value1&key2=value2" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ" + * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a" * } * *\/ - * // example id: to-create-an-object-1483147613675 + * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955 * ``` * - * @example To upload an object (specify optional headers) + * @example To upload an object and specify server-side encryption and object tags * ```javascript - * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption. + * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response. * const input = { - * "Body": "HappyFace.jpg", + * "Body": "filetoupload", * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg", + * "Key": "exampleobject", * "ServerSideEncryption": "AES256", - * "StorageClass": "STANDARD_IA" + * "Tagging": "key1=value1&key2=value2" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); @@ -302,92 +301,93 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", * "ServerSideEncryption": "AES256", - * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp" + * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt" * } * *\/ - * // example id: to-upload-an-object-(specify-optional-headers) + * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831 * ``` * - * @example To upload an object and specify optional tags + * @example To upload an object * ```javascript - * // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object. + * // 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. * const input = { - * "Body": "c:\\HappyFace.jpg", + * "Body": "HappyFace.jpg", * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg", - * "Tagging": "key1=value1&key2=value2" + * "Key": "HappyFace.jpg" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a" + * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk" * } * *\/ - * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955 + * // example id: to-upload-an-object-1481760101010 * ``` * - * @example To upload object and specify user-defined metadata + * @example To create an object. * ```javascript - * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response. + * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response. * const input = { * "Body": "filetoupload", * "Bucket": "examplebucket", - * "Key": "exampleobject", - * "Metadata": { - * "metadata1": "value1", - * "metadata2": "value2" - * } + * "Key": "objectkey" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0" + * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ" * } * *\/ - * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757 + * // example id: to-create-an-object-1483147613675 * ``` * - * @example To upload an object and specify canned ACL. + * @example To upload an object (specify optional headers) * ```javascript - * // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response. + * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption. * const input = { - * "ACL": "authenticated-read", - * "Body": "filetoupload", + * "Body": "HappyFace.jpg", * "Bucket": "examplebucket", - * "Key": "exampleobject" + * "Key": "HappyFace.jpg", + * "ServerSideEncryption": "AES256", + * "StorageClass": "STANDARD_IA" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr" + * "ServerSideEncryption": "AES256", + * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp" * } * *\/ - * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571 + * // example id: to-upload-an-object-(specify-optional-headers) * ``` * - * @example To upload an object + * @example To upload object and specify user-defined metadata * ```javascript - * // 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. + * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response. * const input = { - * "Body": "HappyFace.jpg", + * "Body": "filetoupload", * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg" + * "Key": "exampleobject", + * "Metadata": { + * "metadata1": "value1", + * "metadata2": "value2" + * } * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk" + * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0" * } * *\/ - * // example id: to-upload-an-object-1481760101010 + * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757 * ``` * */ diff --git a/clients/client-s3/src/commands/UploadPartCopyCommand.ts b/clients/client-s3/src/commands/UploadPartCopyCommand.ts index 3d73fb1a445c..45bcb83ac94c 100644 --- a/clients/client-s3/src/commands/UploadPartCopyCommand.ts +++ b/clients/client-s3/src/commands/UploadPartCopyCommand.ts @@ -272,14 +272,15 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To upload a part by copying data from an existing object as data source + * @example To upload a part by copying byte range from an existing object as data source * ```javascript - * // The following example uploads a part of a multipart upload by copying data from an existing object as data source. + * // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source. * const input = { * "Bucket": "examplebucket", * "CopySource": "/bucketname/sourceobjectkey", + * "CopySourceRange": "bytes=1-100000", * "Key": "examplelargeobject", - * "PartNumber": "1", + * "PartNumber": "2", * "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--" * }; * const command = new UploadPartCopyCommand(input); @@ -287,23 +288,22 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met * /* response == * { * "CopyPartResult": { - * "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"", - * "LastModified": "2016-12-29T21:24:43.000Z" + * "ETag": "\"65d16d19e65a7508a51f043180edcc36\"", + * "LastModified": "2016-12-29T21:44:28.000Z" * } * } * *\/ - * // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348 + * // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594 * ``` * - * @example To upload a part by copying byte range from an existing object as data source + * @example To upload a part by copying data from an existing object as data source * ```javascript - * // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source. + * // The following example uploads a part of a multipart upload by copying data from an existing object as data source. * const input = { * "Bucket": "examplebucket", * "CopySource": "/bucketname/sourceobjectkey", - * "CopySourceRange": "bytes=1-100000", * "Key": "examplelargeobject", - * "PartNumber": "2", + * "PartNumber": "1", * "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--" * }; * const command = new UploadPartCopyCommand(input); @@ -311,12 +311,12 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met * /* response == * { * "CopyPartResult": { - * "ETag": "\"65d16d19e65a7508a51f043180edcc36\"", - * "LastModified": "2016-12-29T21:44:28.000Z" + * "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"", + * "LastModified": "2016-12-29T21:24:43.000Z" * } * } * *\/ - * // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594 + * // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348 * ``` * */ diff --git a/clients/client-sso-oidc/package.json b/clients/client-sso-oidc/package.json index 6e8e3f215425..82a4cd898fbd 100644 --- a/clients/client-sso-oidc/package.json +++ b/clients/client-sso-oidc/package.json @@ -58,9 +58,6 @@ "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-sdk/client-sts": "*" - }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", @@ -87,6 +84,9 @@ "url": "https://aws.amazon.com/javascript/" }, "license": "Apache-2.0", + "peerDependencies": { + "@aws-sdk/client-sts": "*" + }, "browser": { "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" }, From 43807622a2a5d7cea5073b40159c9e1e29e775bb Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:26:23 +0000 Subject: [PATCH 2/4] chore(codegen): write body only if there are payload members --- scripts/generate-clients/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-clients/config.js b/scripts/generate-clients/config.js index 91b1a1797637..0edb634097a9 100644 --- a/scripts/generate-clients/config.js +++ b/scripts/generate-clients/config.js @@ -1,7 +1,7 @@ // Update this commit when taking up new changes from smithy-typescript. module.exports = { // Use full commit hash as we explicitly fetch it. - SMITHY_TS_COMMIT: "d777776c17ee2b6cc212f8f9f8d6eea13eaba026", + SMITHY_TS_COMMIT: "dddbe3c972dcc794a0fd5fe98d4238f61777a4a9", }; if (module.exports.SMITHY_TS_COMMIT.length < 40) { From fe25f35973f73c2bdbe4ea6a7a6749a753bc10ce Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:43:49 +0000 Subject: [PATCH 3/4] chore(clients): write body only if there are payload members --- .../client-amp/src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 25 ++---- .../src/protocols/Aws_restJson1.ts | 15 +--- .../src/protocols/Aws_restJson1.ts | 10 +-- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 15 +--- .../src/protocols/Aws_restJson1.ts | 15 +--- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 15 +--- .../client-drs/src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 10 +-- .../src/protocols/Aws_restJson1.ts | 10 +-- .../src/protocols/Aws_restJson1.ts | 10 +-- .../src/protocols/Aws_restJson1.ts | 20 +---- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 20 +---- .../client-iot/src/protocols/Aws_restJson1.ts | 50 +++--------- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 15 +--- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 1 + .../src/protocols/Aws_restJson1.ts | 5 +- .../client-m2/src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 60 +++----------- .../src/protocols/Aws_restJson1.ts | 10 +-- .../src/protocols/Aws_restJson1.ts | 5 +- .../client-mgn/src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 15 +--- .../src/protocols/Aws_restJson1.ts | 25 ++---- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 10 +-- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 4 +- .../client-ram/src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 1 + .../src/protocols/Aws_restJson1.ts | 20 +---- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restXml.ts | 20 +---- .../client-s3/src/protocols/Aws_restXml.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 35 ++------ .../src/protocols/Aws_restJson1.ts | 20 +---- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 10 +-- .../src/protocols/Aws_restJson1.ts | 10 +-- .../src/protocols/Aws_restJson1.ts | 3 + .../src/protocols/Aws_restJson1.ts | 10 +-- .../src/protocols/Aws_restJson1.ts | 5 +- .../src/protocols/Aws_restJson1.ts | 80 ++++--------------- .../src/protocols/Aws_restXml.ts | 50 +++--------- 60 files changed, 158 insertions(+), 601 deletions(-) diff --git a/clients/client-amp/src/protocols/Aws_restJson1.ts b/clients/client-amp/src/protocols/Aws_restJson1.ts index a775f08eb659..dcc9fa1b6b01 100644 --- a/clients/client-amp/src/protocols/Aws_restJson1.ts +++ b/clients/client-amp/src/protocols/Aws_restJson1.ts @@ -440,12 +440,9 @@ export const se_GetDefaultScraperConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/scraperconfiguration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-api-gateway/src/protocols/Aws_restJson1.ts b/clients/client-api-gateway/src/protocols/Aws_restJson1.ts index 749f99dfec6b..8a45e15e28b8 100644 --- a/clients/client-api-gateway/src/protocols/Aws_restJson1.ts +++ b/clients/client-api-gateway/src/protocols/Aws_restJson1.ts @@ -1124,12 +1124,9 @@ export const se_GetAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/account"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-application-signals/src/protocols/Aws_restJson1.ts b/clients/client-application-signals/src/protocols/Aws_restJson1.ts index 8d700dc7f8ad..43793944947a 100644 --- a/clients/client-application-signals/src/protocols/Aws_restJson1.ts +++ b/clients/client-application-signals/src/protocols/Aws_restJson1.ts @@ -367,12 +367,9 @@ export const se_StartDiscoveryCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/start-discovery"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-artifact/src/protocols/Aws_restJson1.ts b/clients/client-artifact/src/protocols/Aws_restJson1.ts index 55812cfe4738..f6301dad9e8f 100644 --- a/clients/client-artifact/src/protocols/Aws_restJson1.ts +++ b/clients/client-artifact/src/protocols/Aws_restJson1.ts @@ -50,12 +50,9 @@ export const se_GetAccountSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/account-settings/get"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-auditmanager/src/protocols/Aws_restJson1.ts b/clients/client-auditmanager/src/protocols/Aws_restJson1.ts index 2a5699020cf2..1626ba901c3e 100644 --- a/clients/client-auditmanager/src/protocols/Aws_restJson1.ts +++ b/clients/client-auditmanager/src/protocols/Aws_restJson1.ts @@ -593,12 +593,9 @@ export const se_DeregisterAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/account/deregisterAccount"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -656,12 +653,9 @@ export const se_GetAccountStatusCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/account/status"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -901,12 +895,9 @@ export const se_GetInsightsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/insights"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -935,12 +926,9 @@ export const se_GetOrganizationAdminAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/account/organizationAdminAccount"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -953,12 +941,9 @@ export const se_GetServicesInScopeCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/services"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-backup/src/protocols/Aws_restJson1.ts b/clients/client-backup/src/protocols/Aws_restJson1.ts index a900f89a5f5f..57734efaf34e 100644 --- a/clients/client-backup/src/protocols/Aws_restJson1.ts +++ b/clients/client-backup/src/protocols/Aws_restJson1.ts @@ -835,12 +835,9 @@ export const se_DescribeGlobalSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/global-settings"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -889,12 +886,9 @@ export const se_DescribeRegionSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/account-settings"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1216,12 +1210,9 @@ export const se_GetSupportedResourceTypesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/supported-resource-types"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-bedrock/src/protocols/Aws_restJson1.ts b/clients/client-bedrock/src/protocols/Aws_restJson1.ts index e95b3c99f97f..efb53485552b 100644 --- a/clients/client-bedrock/src/protocols/Aws_restJson1.ts +++ b/clients/client-bedrock/src/protocols/Aws_restJson1.ts @@ -350,12 +350,9 @@ export const se_DeleteModelInvocationLoggingConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/logging/modelinvocations"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -467,12 +464,9 @@ export const se_GetModelInvocationLoggingConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/logging/modelinvocations"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-chatbot/src/protocols/Aws_restJson1.ts b/clients/client-chatbot/src/protocols/Aws_restJson1.ts index aaf9d11ef960..3a7223836699 100644 --- a/clients/client-chatbot/src/protocols/Aws_restJson1.ts +++ b/clients/client-chatbot/src/protocols/Aws_restJson1.ts @@ -505,12 +505,9 @@ export const se_GetAccountPreferencesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/get-account-preferences"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts index a1813c46d160..9eb84b7a7750 100644 --- a/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts @@ -787,12 +787,9 @@ export const se_GetMessagingSessionEndpointCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/endpoints/messaging-session"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts index 6c3443cf8dd9..a782bd26ea0d 100644 --- a/clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-voice/src/protocols/Aws_restJson1.ts @@ -1004,12 +1004,9 @@ export const se_GetGlobalSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/settings"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1054,12 +1051,9 @@ export const se_GetPhoneNumberSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/settings/phone-number"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1366,12 +1360,9 @@ export const se_ListAvailableVoiceConnectorRegionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/voice-connector-regions"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-chime/src/protocols/Aws_restJson1.ts b/clients/client-chime/src/protocols/Aws_restJson1.ts index e7d78ab4a69d..5c7255dee4d0 100644 --- a/clients/client-chime/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime/src/protocols/Aws_restJson1.ts @@ -2678,12 +2678,9 @@ export const se_GetGlobalSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/settings"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -2728,12 +2725,9 @@ export const se_GetMessagingSessionEndpointCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/endpoints/messaging-session"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "messaging-" + resolvedHostname; @@ -2786,12 +2780,9 @@ export const se_GetPhoneNumberSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/settings/phone-number"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts b/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts index d07fc0039cb2..98504d9bc0bf 100644 --- a/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts +++ b/clients/client-codecatalyst/src/protocols/Aws_restJson1.ts @@ -964,12 +964,9 @@ export const se_VerifySessionCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/session"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-codeguru-security/src/protocols/Aws_restJson1.ts b/clients/client-codeguru-security/src/protocols/Aws_restJson1.ts index 9d7800d2da69..7fefe07dec42 100644 --- a/clients/client-codeguru-security/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeguru-security/src/protocols/Aws_restJson1.ts @@ -154,12 +154,9 @@ export const se_GetAccountConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/accountConfiguration/get"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-detective/src/protocols/Aws_restJson1.ts b/clients/client-detective/src/protocols/Aws_restJson1.ts index 44dfd38181c6..4a8a8fc62372 100644 --- a/clients/client-detective/src/protocols/Aws_restJson1.ts +++ b/clients/client-detective/src/protocols/Aws_restJson1.ts @@ -309,12 +309,9 @@ export const se_DisableOrganizationAdminAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/orgs/disableAdminAccount"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-devops-guru/src/protocols/Aws_restJson1.ts b/clients/client-devops-guru/src/protocols/Aws_restJson1.ts index 2b41a71421a6..c5ac3646a2e6 100644 --- a/clients/client-devops-guru/src/protocols/Aws_restJson1.ts +++ b/clients/client-devops-guru/src/protocols/Aws_restJson1.ts @@ -249,12 +249,9 @@ export const se_DescribeAccountHealthCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/accounts/health"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -309,12 +306,9 @@ export const se_DescribeEventSourcesConfigCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/event-sources"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -461,12 +455,9 @@ export const se_DescribeServiceIntegrationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/service-integrations"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-drs/src/protocols/Aws_restJson1.ts b/clients/client-drs/src/protocols/Aws_restJson1.ts index d9cfb2ed078e..b65459300323 100644 --- a/clients/client-drs/src/protocols/Aws_restJson1.ts +++ b/clients/client-drs/src/protocols/Aws_restJson1.ts @@ -837,12 +837,9 @@ export const se_InitializeServiceCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/InitializeService"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts b/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts index 3538a0917cb2..73a92d6c69ca 100644 --- a/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts +++ b/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts @@ -98,12 +98,9 @@ export const se_DescribeAcceleratorTypesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/describe-accelerator-types"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts b/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts index f155fcccca95..a3e5a192f33c 100644 --- a/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts @@ -519,12 +519,9 @@ export const se_DeleteElasticsearchServiceRoleCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/2015-01-01/es/role"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; diff --git a/clients/client-greengrass/src/protocols/Aws_restJson1.ts b/clients/client-greengrass/src/protocols/Aws_restJson1.ts index 248b9eac08e0..f9232c2fc103 100644 --- a/clients/client-greengrass/src/protocols/Aws_restJson1.ts +++ b/clients/client-greengrass/src/protocols/Aws_restJson1.ts @@ -1048,12 +1048,9 @@ export const se_DisassociateServiceRoleFromAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/greengrass/servicerole"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -1412,12 +1409,9 @@ export const se_GetServiceRoleForAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/greengrass/servicerole"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts b/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts index 4f6d5a0eb555..0f81697c64bc 100644 --- a/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts @@ -361,12 +361,9 @@ export const se_DisassociateServiceRoleFromAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/greengrass/servicerole"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -468,12 +465,9 @@ export const se_GetServiceRoleForAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/greengrass/servicerole"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-guardduty/src/protocols/Aws_restJson1.ts b/clients/client-guardduty/src/protocols/Aws_restJson1.ts index fc34f437f099..aea635b4839a 100644 --- a/clients/client-guardduty/src/protocols/Aws_restJson1.ts +++ b/clients/client-guardduty/src/protocols/Aws_restJson1.ts @@ -1163,12 +1163,9 @@ export const se_GetInvitationsCountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/invitation/count"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1292,12 +1289,9 @@ export const se_GetOrganizationStatisticsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/organization/statistics"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-inspector2/src/protocols/Aws_restJson1.ts b/clients/client-inspector2/src/protocols/Aws_restJson1.ts index 19cf3eebbd68..b9927b914ded 100644 --- a/clients/client-inspector2/src/protocols/Aws_restJson1.ts +++ b/clients/client-inspector2/src/protocols/Aws_restJson1.ts @@ -658,12 +658,9 @@ export const se_DescribeOrganizationConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/organizationconfiguration/describe"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -840,12 +837,9 @@ export const se_GetConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/configuration/get"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -858,12 +852,9 @@ export const se_GetDelegatedAdminAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/delegatedadminaccounts/get"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -876,12 +867,9 @@ export const se_GetEc2DeepInspectionConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/ec2deepinspectionconfiguration/get"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-iot-events/src/protocols/Aws_restJson1.ts b/clients/client-iot-events/src/protocols/Aws_restJson1.ts index fb2cef3321c4..9fc8956f8ece 100644 --- a/clients/client-iot-events/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-events/src/protocols/Aws_restJson1.ts @@ -365,12 +365,9 @@ export const se_DescribeLoggingOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/logging"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts b/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts index ae21bcc00707..50c525710845 100644 --- a/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-wireless/src/protocols/Aws_restJson1.ts @@ -1333,12 +1333,9 @@ export const se_GetEventConfigurationByResourceTypesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/event-configurations-resource-types"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1367,12 +1364,9 @@ export const se_GetLogLevelsByResourceTypesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/log-levels"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1385,12 +1379,9 @@ export const se_GetMetricConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/metric-configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -2188,12 +2179,9 @@ export const se_ResetAllResourceLogLevelsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/log-levels"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; diff --git a/clients/client-iot/src/protocols/Aws_restJson1.ts b/clients/client-iot/src/protocols/Aws_restJson1.ts index 67ad12647433..4c1a314723f3 100644 --- a/clients/client-iot/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot/src/protocols/Aws_restJson1.ts @@ -1245,12 +1245,9 @@ export const se_ClearDefaultAuthorizerCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/default-authorizer"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -2517,12 +2514,9 @@ export const se_DeleteRegistrationCodeCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/registrationcode"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -2730,12 +2724,9 @@ export const se_DescribeAccountAuditConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/audit/configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -2915,12 +2906,9 @@ export const se_DescribeDefaultAuthorizerCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/default-authorizer"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -2999,12 +2987,9 @@ export const se_DescribeEventConfigurationsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/event-configurations"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -3504,12 +3489,9 @@ export const se_GetIndexingConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/indexing/config"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -3538,12 +3520,9 @@ export const se_GetLoggingOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/loggingOptions"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -3588,12 +3567,9 @@ export const se_GetPackageConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/package-configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -3682,12 +3658,9 @@ export const se_GetRegistrationCodeCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/registrationcode"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -3757,12 +3730,9 @@ export const se_GetV2LoggingOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v2LoggingOptions"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts b/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts index 646bf888fce5..1cc398a22383 100644 --- a/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts @@ -480,12 +480,9 @@ export const se_DescribeLoggingOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/logging"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts b/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts index b5265d35197e..bc96029fe7c2 100644 --- a/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts @@ -1382,12 +1382,9 @@ export const se_DescribeDefaultEncryptionConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/configuration/account/encryption"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "api." + resolvedHostname; @@ -1457,12 +1454,9 @@ export const se_DescribeLoggingOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/logging"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "api." + resolvedHostname; @@ -1531,12 +1525,9 @@ export const se_DescribeStorageConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/configuration/account/storage"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "api." + resolvedHostname; diff --git a/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts b/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts index 77c00e11fa2c..f47722ccf5a3 100644 --- a/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts +++ b/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts @@ -686,12 +686,9 @@ export const se_GetPricingPlanCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/pricingplan"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "api." + resolvedHostname; diff --git a/clients/client-lakeformation/src/protocols/Aws_restJson1.ts b/clients/client-lakeformation/src/protocols/Aws_restJson1.ts index 337fe70014d3..693aa98cfce3 100644 --- a/clients/client-lakeformation/src/protocols/Aws_restJson1.ts +++ b/clients/client-lakeformation/src/protocols/Aws_restJson1.ts @@ -721,12 +721,9 @@ export const se_GetDataLakePrincipalCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/GetDataLakePrincipal"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-lambda/src/protocols/Aws_restJson1.ts b/clients/client-lambda/src/protocols/Aws_restJson1.ts index 2d165ba86355..4d9d62c836ef 100644 --- a/clients/client-lambda/src/protocols/Aws_restJson1.ts +++ b/clients/client-lambda/src/protocols/Aws_restJson1.ts @@ -712,12 +712,9 @@ export const se_GetAccountSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/2016-08-19/account-settings"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts b/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts index 700b01c431c2..95b476312ba1 100644 --- a/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts @@ -904,12 +904,9 @@ export const se_CreateUploadUrlCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/createuploadurl"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts b/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts index be11a1449cc2..18db24c80674 100644 --- a/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts @@ -207,6 +207,7 @@ export const se_StartConversationCommand = async ( ): Promise<__HttpRequest> => { const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", [_xalcm]: input[_cM]!, }); b.bp("/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/conversation"); diff --git a/clients/client-license-manager-linux-subscriptions/src/protocols/Aws_restJson1.ts b/clients/client-license-manager-linux-subscriptions/src/protocols/Aws_restJson1.ts index 759c056278d9..7c2c402d9272 100644 --- a/clients/client-license-manager-linux-subscriptions/src/protocols/Aws_restJson1.ts +++ b/clients/client-license-manager-linux-subscriptions/src/protocols/Aws_restJson1.ts @@ -49,12 +49,9 @@ export const se_GetServiceSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/subscription/GetServiceSettings"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-m2/src/protocols/Aws_restJson1.ts b/clients/client-m2/src/protocols/Aws_restJson1.ts index 27253b69ccf6..83a2db28d235 100644 --- a/clients/client-m2/src/protocols/Aws_restJson1.ts +++ b/clients/client-m2/src/protocols/Aws_restJson1.ts @@ -456,12 +456,9 @@ export const se_GetSignedBluinsightsUrlCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/signed-bi-url"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-macie2/src/protocols/Aws_restJson1.ts b/clients/client-macie2/src/protocols/Aws_restJson1.ts index 150100249de9..2934489f8563 100644 --- a/clients/client-macie2/src/protocols/Aws_restJson1.ts +++ b/clients/client-macie2/src/protocols/Aws_restJson1.ts @@ -833,12 +833,9 @@ export const se_DescribeOrganizationConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/admin/configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -851,12 +848,9 @@ export const se_DisableMacieCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/macie"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -887,12 +881,9 @@ export const se_DisassociateFromAdministratorAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/administrator/disassociate"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -905,12 +896,9 @@ export const se_DisassociateFromMasterAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/master/disassociate"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -986,12 +974,9 @@ export const se_GetAdministratorAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/administrator"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1020,12 +1005,9 @@ export const se_GetAutomatedDiscoveryConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/automated-discovery/configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1060,12 +1042,9 @@ export const se_GetClassificationExportConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/classification-export-configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1149,12 +1128,9 @@ export const se_GetFindingsPublicationConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/findings-publication-configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1192,12 +1168,9 @@ export const se_GetInvitationsCountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/invitations/count"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1210,12 +1183,9 @@ export const se_GetMacieSessionCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/macie"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1228,12 +1198,9 @@ export const se_GetMasterAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/master"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1280,12 +1247,9 @@ export const se_GetRevealConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/reveal-configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts b/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts index 11dec5924990..cd93ac2b3f43 100644 --- a/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts @@ -438,12 +438,9 @@ export const se_DeletePolicyCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/2017-08-29/policy"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -557,12 +554,9 @@ export const se_GetPolicyCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/2017-08-29/policy"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-medialive/src/protocols/Aws_restJson1.ts b/clients/client-medialive/src/protocols/Aws_restJson1.ts index 3280eb52f05b..7cc5bd82a36b 100644 --- a/clients/client-medialive/src/protocols/Aws_restJson1.ts +++ b/clients/client-medialive/src/protocols/Aws_restJson1.ts @@ -1244,12 +1244,9 @@ export const se_DescribeAccountConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/prod/accountConfiguration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-mgn/src/protocols/Aws_restJson1.ts b/clients/client-mgn/src/protocols/Aws_restJson1.ts index 1f97c2d4fdfc..7021d3e5fbdb 100644 --- a/clients/client-mgn/src/protocols/Aws_restJson1.ts +++ b/clients/client-mgn/src/protocols/Aws_restJson1.ts @@ -966,12 +966,9 @@ export const se_InitializeServiceCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/InitializeService"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts b/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts index 342fb7074c25..8ce38b1b743a 100644 --- a/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts +++ b/clients/client-migrationhubstrategy/src/protocols/Aws_restJson1.ts @@ -199,12 +199,9 @@ export const se_GetLatestAssessmentIdCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/get-latest-assessment-id"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -217,12 +214,9 @@ export const se_GetPortfolioPreferencesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/get-portfolio-preferences"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -235,12 +229,9 @@ export const se_GetPortfolioSummaryCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/get-portfolio-summary"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-neptunedata/src/protocols/Aws_restJson1.ts b/clients/client-neptunedata/src/protocols/Aws_restJson1.ts index 022f75fc3a1a..786417af2542 100644 --- a/clients/client-neptunedata/src/protocols/Aws_restJson1.ts +++ b/clients/client-neptunedata/src/protocols/Aws_restJson1.ts @@ -374,12 +374,9 @@ export const se_DeletePropertygraphStatisticsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/propertygraph/statistics"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -392,12 +389,9 @@ export const se_DeleteSparqlStatisticsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/sparql/statistics"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -551,12 +545,9 @@ export const se_GetEngineStatusCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/status"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -699,12 +690,9 @@ export const se_GetPropertygraphStatisticsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/propertygraph/statistics"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -776,12 +764,9 @@ export const se_GetSparqlStatisticsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/sparql/statistics"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-osis/src/protocols/Aws_restJson1.ts b/clients/client-osis/src/protocols/Aws_restJson1.ts index 5e775ae8c6ab..5dcf1958d8c3 100644 --- a/clients/client-osis/src/protocols/Aws_restJson1.ts +++ b/clients/client-osis/src/protocols/Aws_restJson1.ts @@ -180,12 +180,9 @@ export const se_ListPipelineBlueprintsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/2022-01-01/osis/listPipelineBlueprints"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts b/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts index 33be7fafc9fe..dd4e3d46337e 100644 --- a/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts +++ b/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts @@ -414,12 +414,9 @@ export const se_GetAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/email/account"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -521,12 +518,9 @@ export const se_GetDeliverabilityDashboardOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/email/deliverability-dashboard"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-privatenetworks/src/protocols/Aws_restJson1.ts b/clients/client-privatenetworks/src/protocols/Aws_restJson1.ts index bb9a0cdaaaae..12805a85ec8e 100644 --- a/clients/client-privatenetworks/src/protocols/Aws_restJson1.ts +++ b/clients/client-privatenetworks/src/protocols/Aws_restJson1.ts @@ -548,12 +548,9 @@ export const se_ListTagsForResourceCommand = async ( */ export const se_PingCommand = async (input: PingCommandInput, context: __SerdeContext): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/ping"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-qbusiness/src/protocols/Aws_restJson1.ts b/clients/client-qbusiness/src/protocols/Aws_restJson1.ts index ac7580960c43..3d43d6fcadb2 100644 --- a/clients/client-qbusiness/src/protocols/Aws_restJson1.ts +++ b/clients/client-qbusiness/src/protocols/Aws_restJson1.ts @@ -285,7 +285,9 @@ export const se_ChatCommand = async ( context: __SerdeContext & __EventStreamSerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = {}; + const headers: any = { + "content-type": "application/json", + }; b.bp("/applications/{applicationId}/conversations"); b.p("applicationId", () => input.applicationId!, "{applicationId}", false); const query: any = map({ diff --git a/clients/client-ram/src/protocols/Aws_restJson1.ts b/clients/client-ram/src/protocols/Aws_restJson1.ts index b4c2794e65bb..576aaa38c4ca 100644 --- a/clients/client-ram/src/protocols/Aws_restJson1.ts +++ b/clients/client-ram/src/protocols/Aws_restJson1.ts @@ -442,12 +442,9 @@ export const se_EnableSharingWithAwsOrganizationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/enablesharingwithawsorganization"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-rekognitionstreaming/src/protocols/Aws_restJson1.ts b/clients/client-rekognitionstreaming/src/protocols/Aws_restJson1.ts index 4ee328d6c196..645b63a94548 100644 --- a/clients/client-rekognitionstreaming/src/protocols/Aws_restJson1.ts +++ b/clients/client-rekognitionstreaming/src/protocols/Aws_restJson1.ts @@ -71,6 +71,7 @@ export const se_StartFaceLivenessSessionCommand = async ( ): Promise<__HttpRequest> => { const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", [_xarslsi]: input[_SI]!, [_xarslvw]: input[_VW]!, [_xarslvh]: input[_VH]!, diff --git a/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts b/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts index 985a2136cd07..dbbda5bc463c 100644 --- a/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts +++ b/clients/client-resource-explorer-2/src/protocols/Aws_restJson1.ts @@ -226,12 +226,9 @@ export const se_DisassociateDefaultViewCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/DisassociateDefaultView"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -244,12 +241,9 @@ export const se_GetAccountLevelServiceConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/GetAccountLevelServiceConfiguration"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -262,12 +256,9 @@ export const se_GetDefaultViewCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/GetDefaultView"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -280,12 +271,9 @@ export const se_GetIndexCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/GetIndex"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-resource-groups/src/protocols/Aws_restJson1.ts b/clients/client-resource-groups/src/protocols/Aws_restJson1.ts index 26ac7a82cd30..ca10d2add77d 100644 --- a/clients/client-resource-groups/src/protocols/Aws_restJson1.ts +++ b/clients/client-resource-groups/src/protocols/Aws_restJson1.ts @@ -121,12 +121,9 @@ export const se_GetAccountSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/get-account-settings"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-route-53/src/protocols/Aws_restXml.ts b/clients/client-route-53/src/protocols/Aws_restXml.ts index 8214031eabd7..f397bdd84426 100644 --- a/clients/client-route-53/src/protocols/Aws_restXml.ts +++ b/clients/client-route-53/src/protocols/Aws_restXml.ts @@ -1047,12 +1047,9 @@ export const se_GetCheckerIpRangesCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/2013-04-01/checkeripranges"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1117,12 +1114,9 @@ export const se_GetHealthCheckCountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/2013-04-01/healthcheckcount"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1183,12 +1177,9 @@ export const se_GetHostedZoneCountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/2013-04-01/hostedzonecount"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1300,12 +1291,9 @@ export const se_GetTrafficPolicyInstanceCountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/2013-04-01/trafficpolicyinstancecount"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-s3/src/protocols/Aws_restXml.ts b/clients/client-s3/src/protocols/Aws_restXml.ts index 1299ff6e0364..7ceba3bab08a 100644 --- a/clients/client-s3/src/protocols/Aws_restXml.ts +++ b/clients/client-s3/src/protocols/Aws_restXml.ts @@ -1864,15 +1864,12 @@ export const se_ListBucketsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/"); const query: any = map({ [_xi]: [, "ListBuckets"], }); let body: any; - body = ""; b.m("GET").h(headers).q(query).b(body); return b.build(); }; diff --git a/clients/client-securityhub/src/protocols/Aws_restJson1.ts b/clients/client-securityhub/src/protocols/Aws_restJson1.ts index 3f8bd93fb29a..c54013292bd7 100644 --- a/clients/client-securityhub/src/protocols/Aws_restJson1.ts +++ b/clients/client-securityhub/src/protocols/Aws_restJson1.ts @@ -1550,12 +1550,9 @@ export const se_DescribeOrganizationConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/organization/configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1665,12 +1662,9 @@ export const se_DisableSecurityHubCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/accounts"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -1683,12 +1677,9 @@ export const se_DisassociateFromAdministratorAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/administrator/disassociate"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1701,12 +1692,9 @@ export const se_DisassociateFromMasterAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/master/disassociate"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1809,12 +1797,9 @@ export const se_GetAdministratorAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/administrator"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1996,12 +1981,9 @@ export const se_GetInvitationsCountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/invitations/count"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -2014,12 +1996,9 @@ export const se_GetMasterAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/master"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-securitylake/src/protocols/Aws_restJson1.ts b/clients/client-securitylake/src/protocols/Aws_restJson1.ts index f6bae9304d5d..4149a9dab8af 100644 --- a/clients/client-securitylake/src/protocols/Aws_restJson1.ts +++ b/clients/client-securitylake/src/protocols/Aws_restJson1.ts @@ -374,12 +374,9 @@ export const se_DeleteDataLakeExceptionSubscriptionCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/datalake/exceptions/subscription"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -446,12 +443,9 @@ export const se_DeregisterDataLakeDelegatedAdministratorCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/datalake/delegate"); let body: any; - body = ""; b.m("DELETE").h(headers).b(body); return b.build(); }; @@ -464,12 +458,9 @@ export const se_GetDataLakeExceptionSubscriptionCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/datalake/exceptions/subscription"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -482,12 +473,9 @@ export const se_GetDataLakeOrganizationConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v1/datalake/organization/configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts b/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts index 89983598ff7f..d9ff342afdad 100644 --- a/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts +++ b/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts @@ -325,12 +325,9 @@ export const se_GetConfigurationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/configuration"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-sesv2/src/protocols/Aws_restJson1.ts b/clients/client-sesv2/src/protocols/Aws_restJson1.ts index f359e08779db..698ba465330a 100644 --- a/clients/client-sesv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-sesv2/src/protocols/Aws_restJson1.ts @@ -907,12 +907,9 @@ export const se_GetAccountCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v2/email/account"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1079,12 +1076,9 @@ export const se_GetDeliverabilityDashboardOptionsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/v2/email/deliverability-dashboard"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-support-app/src/protocols/Aws_restJson1.ts b/clients/client-support-app/src/protocols/Aws_restJson1.ts index bac05083bc78..d90c706ce6cd 100644 --- a/clients/client-support-app/src/protocols/Aws_restJson1.ts +++ b/clients/client-support-app/src/protocols/Aws_restJson1.ts @@ -98,12 +98,9 @@ export const se_DeleteAccountAliasCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/control/delete-account-alias"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -161,12 +158,9 @@ export const se_GetAccountAliasCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/control/get-account-alias"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts b/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts index 7f37a7670684..03cb376627d7 100644 --- a/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts +++ b/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts @@ -80,6 +80,7 @@ export const se_StartCallAnalyticsStreamTranscriptionCommand = async ( ): Promise<__HttpRequest> => { const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", [_xatlc]: input[_LC]!, [_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH]!.toString()], [_xatme]: input[_ME]!, @@ -112,6 +113,7 @@ export const se_StartMedicalStreamTranscriptionCommand = async ( ): Promise<__HttpRequest> => { const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", [_xatlc]: input[_LC]!, [_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH]!.toString()], [_xatme]: input[_ME]!, @@ -142,6 +144,7 @@ export const se_StartStreamTranscriptionCommand = async ( ): Promise<__HttpRequest> => { const b = rb(input, context); const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", [_xatlc]: input[_LC]!, [_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH]!.toString()], [_xatme]: input[_ME]!, diff --git a/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts b/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts index bb82919ccb13..bf5d6426500c 100644 --- a/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts +++ b/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts @@ -773,12 +773,9 @@ export const se_GetGlobalSettingsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/global-settings"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -906,12 +903,9 @@ export const se_GetProfileTemplateCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/profileTemplate"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; diff --git a/clients/client-xray/src/protocols/Aws_restJson1.ts b/clients/client-xray/src/protocols/Aws_restJson1.ts index ac1647478a88..342259f4edeb 100644 --- a/clients/client-xray/src/protocols/Aws_restJson1.ts +++ b/clients/client-xray/src/protocols/Aws_restJson1.ts @@ -282,12 +282,9 @@ export const se_GetEncryptionConfigCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/EncryptionConfig"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts b/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts index df2fea4dd88b..6856fa584b9e 100644 --- a/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts +++ b/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts @@ -445,12 +445,9 @@ export const se_DatetimeOffsetsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/DatetimeOffsets"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -533,12 +530,9 @@ export const se_EmptyInputAndEmptyOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/EmptyInputAndEmptyOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -551,12 +545,9 @@ export const se_EndpointOperationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/EndpointOperation"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "foo." + resolvedHostname; @@ -611,12 +602,9 @@ export const se_FractionalSecondsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/FractionalSeconds"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -629,12 +617,9 @@ export const se_GreetingWithErrorsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/GreetingWithErrors"); let body: any; - body = ""; b.m("PUT").h(headers).b(body); return b.build(); }; @@ -647,12 +632,9 @@ export const se_HostWithPathOperationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/HostWithPathOperation"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -819,12 +801,9 @@ export const se_HttpPrefixHeadersInResponseCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/HttpPrefixHeadersResponse"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -944,12 +923,9 @@ export const se_HttpResponseCodeCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/HttpResponseCode"); let body: any; - body = ""; b.m("PUT").h(headers).b(body); return b.build(); }; @@ -982,12 +958,9 @@ export const se_IgnoreQueryParamsInResponseCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/IgnoreQueryParamsInResponse"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1243,12 +1216,9 @@ export const se_MalformedAcceptWithBodyCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/MalformedAcceptWithBody"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1261,12 +1231,9 @@ export const se_MalformedAcceptWithGenericStringCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/MalformedAcceptWithGenericString"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1279,12 +1246,9 @@ export const se_MalformedAcceptWithPayloadCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/MalformedAcceptWithPayload"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1415,12 +1379,9 @@ export const se_MalformedContentTypeWithoutBodyCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/MalformedContentTypeWithoutBody"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1958,12 +1919,9 @@ export const se_NoInputAndNoOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/NoInputAndNoOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1976,12 +1934,9 @@ export const se_NoInputAndOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/NoInputAndOutputOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -2491,12 +2446,9 @@ export const se_UnitInputAndOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/json", - }; + const headers: any = {}; b.bp("/UnitInputAndOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; diff --git a/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts b/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts index 1bb2b6f101a3..e8cd612ece48 100644 --- a/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts +++ b/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts @@ -351,12 +351,9 @@ export const se_DatetimeOffsetsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/DatetimeOffsets"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -369,12 +366,9 @@ export const se_EmptyInputAndEmptyOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/EmptyInputAndEmptyOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -387,12 +381,9 @@ export const se_EndpointOperationCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/EndpointOperation"); let body: any; - body = ""; let { hostname: resolvedHostname } = await context.endpoint(); if (context.disableHostPrefix !== true) { resolvedHostname = "foo." + resolvedHostname; @@ -519,12 +510,9 @@ export const se_FlattenedXmlMapWithXmlNamespaceCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/FlattenedXmlMapWithXmlNamespace"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -537,12 +525,9 @@ export const se_FractionalSecondsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/FractionalSeconds"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -555,12 +540,9 @@ export const se_GreetingWithErrorsCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/GreetingWithErrors"); let body: any; - body = ""; b.m("PUT").h(headers).b(body); return b.build(); }; @@ -895,12 +877,9 @@ export const se_HttpResponseCodeCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/HttpResponseCode"); let body: any; - body = ""; b.m("PUT").h(headers).b(body); return b.build(); }; @@ -935,12 +914,9 @@ export const se_IgnoreQueryParamsInResponseCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/IgnoreQueryParamsInResponse"); let body: any; - body = ""; b.m("GET").h(headers).b(body); return b.build(); }; @@ -1031,12 +1007,9 @@ export const se_NoInputAndNoOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/NoInputAndNoOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; @@ -1049,12 +1022,9 @@ export const se_NoInputAndOutputCommand = async ( context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); - const headers: any = { - "content-type": "application/xml", - }; + const headers: any = {}; b.bp("/NoInputAndOutputOutput"); let body: any; - body = ""; b.m("POST").h(headers).b(body); return b.build(); }; From 97858cff660f952b5eb371abc1ead795f0852aa5 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:44:17 +0000 Subject: [PATCH 4/4] chore(clients): revert generate clients with current commit This reverts commit 63b2070683ba228b74c936527f40dc0392b25505. --- .../src/commands/DeriveSharedSecretCommand.ts | 20 ++++ .../src/commands/CreateBucketCommand.ts | 26 ++--- .../src/commands/DeleteObjectCommand.ts | 20 ++-- .../commands/DeleteObjectTaggingCommand.ts | 22 ++-- .../src/commands/GetObjectCommand.ts | 38 +++---- .../src/commands/GetObjectTaggingCommand.ts | 38 +++---- .../src/commands/PutObjectCommand.ts | 100 +++++++++--------- .../src/commands/UploadPartCopyCommand.ts | 26 ++--- clients/client-sso-oidc/package.json | 6 +- 9 files changed, 158 insertions(+), 138 deletions(-) diff --git a/clients/client-kms/src/commands/DeriveSharedSecretCommand.ts b/clients/client-kms/src/commands/DeriveSharedSecretCommand.ts index 4825550e664d..fcd748773ef4 100644 --- a/clients/client-kms/src/commands/DeriveSharedSecretCommand.ts +++ b/clients/client-kms/src/commands/DeriveSharedSecretCommand.ts @@ -230,6 +230,26 @@ export interface DeriveSharedSecretCommandOutput extends DeriveSharedSecretRespo * const input = { * "KeyAgreementAlgorithm": "ECDH", * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + * "PublicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvH3Yj0wbkLEpUl95Cv1cJVjsVNSjwGq3tCLnzXfhVwVvmzGN8pYj3U8nKwgouaHbBWNJYjP5VutbbkKS4Kv4GojwZBJyHN17kmxo8yTjRmjR15SKIQ8cqRA2uaERMLnpztIXdZp232PQPbWGxDyXYJ0aJ5EFSag+iSK341kr2kFTpINN7T1ZaX9vfXBdGR+VtkRKMWoHQeWzHrPZ+3irvpXNCKxGUxmPNsJSjPUhuSXT5+0VrY/LEYLQ5lUTrhU6z5/OK0kzaCc66DXc5ipSloS4Xyg+QcYSMxe9xuqO5HtzFImUSKBm1W6eDT6lHnSbpi7vXzNbIX7pWxKw9nmQvQIDAQAB" + * }; + * const command = new DeriveSharedSecretCommand(input); + * const response = await client.send(command); + * /* response == + * { + * "KeyAgreementAlgorithm": "ECDH", + * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", + * "SharedSecret": "MEYCIQCKZLWyTk5runarx6XiAkU9gv3lbwPO/pHa+DXFehzdDwIhANwpsIV2g/9SPWLLsF6p/hiSskuIXMTRwqrMdVKWTMHG" + * } + * *\/ + * // example id: to-derive-a-shared-secret-1716220614829 + * ``` + * + * @example To derive a shared secret + * ```javascript + * // The following example derives a shared secret using a key agreement algorithm. + * const input = { + * "KeyAgreementAlgorithm": "ECDH", + * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", * "PublicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvH3Yj0wbkLEpUl95Cv1cJVjsVNSjwGq3tCLnzXfhVwVvmzGN8pYj3U8nKwgouaHbBWNJYjP5VutbbkKS4Kv4GojwZBJyHN17kmxo8yTjRmjR15SKIQ8cqRA2uaERMLnpztIXdZp232PQPbWGxDyXYJ0aJ5EFSag" * }; * const command = new DeriveSharedSecretCommand(input); diff --git a/clients/client-s3/src/commands/CreateBucketCommand.ts b/clients/client-s3/src/commands/CreateBucketCommand.ts index 46fc512357db..c462775fd666 100644 --- a/clients/client-s3/src/commands/CreateBucketCommand.ts +++ b/clients/client-s3/src/commands/CreateBucketCommand.ts @@ -218,39 +218,39 @@ export interface CreateBucketCommandOutput extends CreateBucketOutput, __Metadat *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To create a bucket in a specific region + * @example To create a bucket * ```javascript - * // The following example creates a bucket. The request specifies an AWS region where to create the bucket. + * // The following example creates a bucket. * const input = { - * "Bucket": "examplebucket", - * "CreateBucketConfiguration": { - * "LocationConstraint": "eu-west-1" - * } + * "Bucket": "examplebucket" * }; * const command = new CreateBucketCommand(input); * const response = await client.send(command); * /* response == * { - * "Location": "http://examplebucket..s3.amazonaws.com/" + * "Location": "/examplebucket" * } * *\/ - * // example id: to-create-a-bucket-in-a-specific-region-1483399072992 + * // example id: to-create-a-bucket--1472851826060 * ``` * - * @example To create a bucket + * @example To create a bucket in a specific region * ```javascript - * // The following example creates a bucket. + * // The following example creates a bucket. The request specifies an AWS region where to create the bucket. * const input = { - * "Bucket": "examplebucket" + * "Bucket": "examplebucket", + * "CreateBucketConfiguration": { + * "LocationConstraint": "eu-west-1" + * } * }; * const command = new CreateBucketCommand(input); * const response = await client.send(command); * /* response == * { - * "Location": "/examplebucket" + * "Location": "http://examplebucket..s3.amazonaws.com/" * } * *\/ - * // example id: to-create-a-bucket--1472851826060 + * // example id: to-create-a-bucket-in-a-specific-region-1483399072992 * ``` * */ diff --git a/clients/client-s3/src/commands/DeleteObjectCommand.ts b/clients/client-s3/src/commands/DeleteObjectCommand.ts index d2b3b5a87947..0762586ab8be 100644 --- a/clients/client-s3/src/commands/DeleteObjectCommand.ts +++ b/clients/client-s3/src/commands/DeleteObjectCommand.ts @@ -162,28 +162,28 @@ export interface DeleteObjectCommandOutput extends DeleteObjectOutput, __Metadat *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To delete an object + * @example To delete an object (from a non-versioned bucket) * ```javascript - * // The following example deletes an object from an S3 bucket. + * // The following example deletes an object from a non-versioned bucket. * const input = { - * "Bucket": "examplebucket", - * "Key": "objectkey.jpg" + * "Bucket": "ExampleBucket", + * "Key": "HappyFace.jpg" * }; * const command = new DeleteObjectCommand(input); * await client.send(command); - * // example id: to-delete-an-object-1472850136595 + * // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089 * ``` * - * @example To delete an object (from a non-versioned bucket) + * @example To delete an object * ```javascript - * // The following example deletes an object from a non-versioned bucket. + * // The following example deletes an object from an S3 bucket. * const input = { - * "Bucket": "ExampleBucket", - * "Key": "HappyFace.jpg" + * "Bucket": "examplebucket", + * "Key": "objectkey.jpg" * }; * const command = new DeleteObjectCommand(input); * await client.send(command); - * // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089 + * // example id: to-delete-an-object-1472850136595 * ``` * */ diff --git a/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts b/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts index ac0924a7578b..829a9b612bf1 100644 --- a/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts +++ b/clients/client-s3/src/commands/DeleteObjectTaggingCommand.ts @@ -81,39 +81,39 @@ export interface DeleteObjectTaggingCommandOutput extends DeleteObjectTaggingOut *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To remove tag set from an object + * @example To remove tag set from an object version * ```javascript - * // 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. + * // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version. * const input = { * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg" + * "Key": "HappyFace.jpg", + * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" * }; * const command = new DeleteObjectTaggingCommand(input); * const response = await client.send(command); * /* response == * { - * "VersionId": "null" + * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" * } * *\/ - * // example id: to-remove-tag-set-from-an-object-1483145342862 + * // example id: to-remove-tag-set-from-an-object-version-1483145285913 * ``` * - * @example To remove tag set from an object version + * @example To remove tag set from an object * ```javascript - * // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version. + * // 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. * const input = { * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg", - * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + * "Key": "HappyFace.jpg" * }; * const command = new DeleteObjectTaggingCommand(input); * const response = await client.send(command); * /* response == * { - * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + * "VersionId": "null" * } * *\/ - * // example id: to-remove-tag-set-from-an-object-version-1483145285913 + * // example id: to-remove-tag-set-from-an-object-1483145342862 * ``` * */ diff --git a/clients/client-s3/src/commands/GetObjectCommand.ts b/clients/client-s3/src/commands/GetObjectCommand.ts index b7510e06670b..2c0dd7c3dcdd 100644 --- a/clients/client-s3/src/commands/GetObjectCommand.ts +++ b/clients/client-s3/src/commands/GetObjectCommand.ts @@ -286,53 +286,53 @@ export interface GetObjectCommandOutput extends Omit, _ *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To retrieve an object + * @example To retrieve a byte range of an object * ```javascript - * // The following example retrieves an object for an S3 bucket. + * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range. * const input = { * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg" + * "Key": "SampleFile.txt", + * "Range": "bytes=0-9" * }; * const command = new GetObjectCommand(input); * const response = await client.send(command); * /* response == * { * "AcceptRanges": "bytes", - * "ContentLength": "3191", - * "ContentType": "image/jpeg", - * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT", + * "ContentLength": "10", + * "ContentRange": "bytes 0-9/43", + * "ContentType": "text/plain", + * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"", + * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT", * "Metadata": {}, - * "TagCount": 2, * "VersionId": "null" * } * *\/ - * // example id: to-retrieve-an-object-1481827837012 + * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603 * ``` * - * @example To retrieve a byte range of an object + * @example To retrieve an object * ```javascript - * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range. + * // The following example retrieves an object for an S3 bucket. * const input = { * "Bucket": "examplebucket", - * "Key": "SampleFile.txt", - * "Range": "bytes=0-9" + * "Key": "HappyFace.jpg" * }; * const command = new GetObjectCommand(input); * const response = await client.send(command); * /* response == * { * "AcceptRanges": "bytes", - * "ContentLength": "10", - * "ContentRange": "bytes 0-9/43", - * "ContentType": "text/plain", - * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"", - * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT", + * "ContentLength": "3191", + * "ContentType": "image/jpeg", + * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", + * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT", * "Metadata": {}, + * "TagCount": 2, * "VersionId": "null" * } * *\/ - * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603 + * // example id: to-retrieve-an-object-1481827837012 * ``` * */ diff --git a/clients/client-s3/src/commands/GetObjectTaggingCommand.ts b/clients/client-s3/src/commands/GetObjectTaggingCommand.ts index 070a938b8541..eb7d011d845b 100644 --- a/clients/client-s3/src/commands/GetObjectTaggingCommand.ts +++ b/clients/client-s3/src/commands/GetObjectTaggingCommand.ts @@ -97,13 +97,12 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _ *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To retrieve tag set of a specific object version + * @example To retrieve tag set of an object * ```javascript - * // The following example retrieves tag set of an object. The request specifies object version. + * // The following example retrieves tag set of an object. * const input = { * "Bucket": "examplebucket", - * "Key": "exampleobject", - * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + * "Key": "HappyFace.jpg" * }; * const command = new GetObjectTaggingCommand(input); * const response = await client.send(command); @@ -111,22 +110,27 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _ * { * "TagSet": [ * { - * "Key": "Key1", - * "Value": "Value1" + * "Key": "Key4", + * "Value": "Value4" + * }, + * { + * "Key": "Key3", + * "Value": "Value3" * } * ], - * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + * "VersionId": "null" * } * *\/ - * // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663 + * // example id: to-retrieve-tag-set-of-an-object-1481833847896 * ``` * - * @example To retrieve tag set of an object + * @example To retrieve tag set of a specific object version * ```javascript - * // The following example retrieves tag set of an object. + * // The following example retrieves tag set of an object. The request specifies object version. * const input = { * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg" + * "Key": "exampleobject", + * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" * }; * const command = new GetObjectTaggingCommand(input); * const response = await client.send(command); @@ -134,18 +138,14 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _ * { * "TagSet": [ * { - * "Key": "Key4", - * "Value": "Value4" - * }, - * { - * "Key": "Key3", - * "Value": "Value3" + * "Key": "Key1", + * "Value": "Value1" * } * ], - * "VersionId": "null" + * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" * } * *\/ - * // example id: to-retrieve-tag-set-of-an-object-1481833847896 + * // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663 * ``` * */ diff --git a/clients/client-s3/src/commands/PutObjectCommand.ts b/clients/client-s3/src/commands/PutObjectCommand.ts index b0ad8dd75712..158d99723276 100644 --- a/clients/client-s3/src/commands/PutObjectCommand.ts +++ b/clients/client-s3/src/commands/PutObjectCommand.ts @@ -245,55 +245,56 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To upload an object and specify canned ACL. + * @example To upload an object and specify server-side encryption and object tags * ```javascript - * // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response. + * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response. * const input = { - * "ACL": "authenticated-read", * "Body": "filetoupload", * "Bucket": "examplebucket", - * "Key": "exampleobject" + * "Key": "exampleobject", + * "ServerSideEncryption": "AES256", + * "Tagging": "key1=value1&key2=value2" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr" + * "ServerSideEncryption": "AES256", + * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt" * } * *\/ - * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571 + * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831 * ``` * - * @example To upload an object and specify optional tags + * @example To create an object. * ```javascript - * // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object. + * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response. * const input = { - * "Body": "c:\\HappyFace.jpg", + * "Body": "filetoupload", * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg", - * "Tagging": "key1=value1&key2=value2" + * "Key": "objectkey" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a" + * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ" * } * *\/ - * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955 + * // example id: to-create-an-object-1483147613675 * ``` * - * @example To upload an object and specify server-side encryption and object tags + * @example To upload an object (specify optional headers) * ```javascript - * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response. + * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption. * const input = { - * "Body": "filetoupload", + * "Body": "HappyFace.jpg", * "Bucket": "examplebucket", - * "Key": "exampleobject", + * "Key": "HappyFace.jpg", * "ServerSideEncryption": "AES256", - * "Tagging": "key1=value1&key2=value2" + * "StorageClass": "STANDARD_IA" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); @@ -301,93 +302,92 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", * "ServerSideEncryption": "AES256", - * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt" + * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp" * } * *\/ - * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831 + * // example id: to-upload-an-object-(specify-optional-headers) * ``` * - * @example To upload an object + * @example To upload an object and specify optional tags * ```javascript - * // 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. + * // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object. * const input = { - * "Body": "HappyFace.jpg", + * "Body": "c:\\HappyFace.jpg", * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg" + * "Key": "HappyFace.jpg", + * "Tagging": "key1=value1&key2=value2" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk" + * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a" * } * *\/ - * // example id: to-upload-an-object-1481760101010 + * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955 * ``` * - * @example To create an object. + * @example To upload object and specify user-defined metadata * ```javascript - * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response. + * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response. * const input = { * "Body": "filetoupload", * "Bucket": "examplebucket", - * "Key": "objectkey" + * "Key": "exampleobject", + * "Metadata": { + * "metadata1": "value1", + * "metadata2": "value2" + * } * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ" + * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0" * } * *\/ - * // example id: to-create-an-object-1483147613675 + * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757 * ``` * - * @example To upload an object (specify optional headers) + * @example To upload an object and specify canned ACL. * ```javascript - * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption. + * // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response. * const input = { - * "Body": "HappyFace.jpg", + * "ACL": "authenticated-read", + * "Body": "filetoupload", * "Bucket": "examplebucket", - * "Key": "HappyFace.jpg", - * "ServerSideEncryption": "AES256", - * "StorageClass": "STANDARD_IA" + * "Key": "exampleobject" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "ServerSideEncryption": "AES256", - * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp" + * "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr" * } * *\/ - * // example id: to-upload-an-object-(specify-optional-headers) + * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571 * ``` * - * @example To upload object and specify user-defined metadata + * @example To upload an object * ```javascript - * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response. + * // 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. * const input = { - * "Body": "filetoupload", + * "Body": "HappyFace.jpg", * "Bucket": "examplebucket", - * "Key": "exampleobject", - * "Metadata": { - * "metadata1": "value1", - * "metadata2": "value2" - * } + * "Key": "HappyFace.jpg" * }; * const command = new PutObjectCommand(input); * const response = await client.send(command); * /* response == * { * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0" + * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk" * } * *\/ - * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757 + * // example id: to-upload-an-object-1481760101010 * ``` * */ diff --git a/clients/client-s3/src/commands/UploadPartCopyCommand.ts b/clients/client-s3/src/commands/UploadPartCopyCommand.ts index 45bcb83ac94c..3d73fb1a445c 100644 --- a/clients/client-s3/src/commands/UploadPartCopyCommand.ts +++ b/clients/client-s3/src/commands/UploadPartCopyCommand.ts @@ -272,15 +272,14 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met *

Base exception class for all service exceptions from S3 service.

* * @public - * @example To upload a part by copying byte range from an existing object as data source + * @example To upload a part by copying data from an existing object as data source * ```javascript - * // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source. + * // The following example uploads a part of a multipart upload by copying data from an existing object as data source. * const input = { * "Bucket": "examplebucket", * "CopySource": "/bucketname/sourceobjectkey", - * "CopySourceRange": "bytes=1-100000", * "Key": "examplelargeobject", - * "PartNumber": "2", + * "PartNumber": "1", * "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--" * }; * const command = new UploadPartCopyCommand(input); @@ -288,22 +287,23 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met * /* response == * { * "CopyPartResult": { - * "ETag": "\"65d16d19e65a7508a51f043180edcc36\"", - * "LastModified": "2016-12-29T21:44:28.000Z" + * "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"", + * "LastModified": "2016-12-29T21:24:43.000Z" * } * } * *\/ - * // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594 + * // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348 * ``` * - * @example To upload a part by copying data from an existing object as data source + * @example To upload a part by copying byte range from an existing object as data source * ```javascript - * // The following example uploads a part of a multipart upload by copying data from an existing object as data source. + * // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source. * const input = { * "Bucket": "examplebucket", * "CopySource": "/bucketname/sourceobjectkey", + * "CopySourceRange": "bytes=1-100000", * "Key": "examplelargeobject", - * "PartNumber": "1", + * "PartNumber": "2", * "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--" * }; * const command = new UploadPartCopyCommand(input); @@ -311,12 +311,12 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met * /* response == * { * "CopyPartResult": { - * "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"", - * "LastModified": "2016-12-29T21:24:43.000Z" + * "ETag": "\"65d16d19e65a7508a51f043180edcc36\"", + * "LastModified": "2016-12-29T21:44:28.000Z" * } * } * *\/ - * // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348 + * // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594 * ``` * */ diff --git a/clients/client-sso-oidc/package.json b/clients/client-sso-oidc/package.json index 82a4cd898fbd..6e8e3f215425 100644 --- a/clients/client-sso-oidc/package.json +++ b/clients/client-sso-oidc/package.json @@ -58,6 +58,9 @@ "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, + "peerDependencies": { + "@aws-sdk/client-sts": "*" + }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", @@ -84,9 +87,6 @@ "url": "https://aws.amazon.com/javascript/" }, "license": "Apache-2.0", - "peerDependencies": { - "@aws-sdk/client-sts": "*" - }, "browser": { "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" },