fix: 修复配额说明重复和undefined问题

- 在editStorageForm中初始化oss_storage_quota_value和oss_quota_unit
- 删除重复的旧配额说明块,保留新的当前配额设置显示

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-22 19:39:53 +08:00
commit 4350113979
7649 changed files with 897277 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { AbortMultipartUpload$ } from "../schemas/schemas_0";
export { $Command };
export class AbortMultipartUploadCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "AbortMultipartUpload", {})
.n("S3Client", "AbortMultipartUploadCommand")
.sc(AbortMultipartUpload$)
.build() {
}

View File

@@ -0,0 +1,26 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { CompleteMultipartUpload$ } from "../schemas/schemas_0";
export { $Command };
export class CompleteMultipartUploadCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
getSsecPlugin(config),
];
})
.s("AmazonS3", "CompleteMultipartUpload", {})
.n("S3Client", "CompleteMultipartUploadCommand")
.sc(CompleteMultipartUpload$)
.build() {
}

View File

@@ -0,0 +1,28 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { CopyObject$ } from "../schemas/schemas_0";
export { $Command };
export class CopyObjectCommand extends $Command
.classBuilder()
.ep({
...commonParams,
DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
CopySource: { type: "contextParams", name: "CopySource" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
getSsecPlugin(config),
];
})
.s("AmazonS3", "CopyObject", {})
.n("S3Client", "CopyObjectCommand")
.sc(CopyObject$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getLocationConstraintPlugin } from "@aws-sdk/middleware-location-constraint";
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateBucket$ } from "../schemas/schemas_0";
export { $Command };
export class CreateBucketCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
DisableAccessPoints: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
getLocationConstraintPlugin(config),
];
})
.s("AmazonS3", "CreateBucket", {})
.n("S3Client", "CreateBucketCommand")
.sc(CreateBucket$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateBucketMetadataConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class CreateBucketMetadataConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "CreateBucketMetadataConfiguration", {})
.n("S3Client", "CreateBucketMetadataConfigurationCommand")
.sc(CreateBucketMetadataConfiguration$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateBucketMetadataTableConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class CreateBucketMetadataTableConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "CreateBucketMetadataTableConfiguration", {})
.n("S3Client", "CreateBucketMetadataTableConfigurationCommand")
.sc(CreateBucketMetadataTableConfiguration$)
.build() {
}

View File

@@ -0,0 +1,26 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateMultipartUpload$ } from "../schemas/schemas_0";
export { $Command };
export class CreateMultipartUploadCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
getSsecPlugin(config),
];
})
.s("AmazonS3", "CreateMultipartUpload", {})
.n("S3Client", "CreateMultipartUploadCommand")
.sc(CreateMultipartUpload$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateSession$ } from "../schemas/schemas_0";
export { $Command };
export class CreateSessionCommand extends $Command
.classBuilder()
.ep({
...commonParams,
DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "CreateSession", {})
.n("S3Client", "CreateSessionCommand")
.sc(CreateSession$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketAnalyticsConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketAnalyticsConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketAnalyticsConfiguration", {})
.n("S3Client", "DeleteBucketAnalyticsConfigurationCommand")
.sc(DeleteBucketAnalyticsConfiguration$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucket$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucket", {})
.n("S3Client", "DeleteBucketCommand")
.sc(DeleteBucket$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketCors$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketCorsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketCors", {})
.n("S3Client", "DeleteBucketCorsCommand")
.sc(DeleteBucketCors$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketEncryption$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketEncryptionCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketEncryption", {})
.n("S3Client", "DeleteBucketEncryptionCommand")
.sc(DeleteBucketEncryption$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketIntelligentTieringConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketIntelligentTieringConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketIntelligentTieringConfiguration", {})
.n("S3Client", "DeleteBucketIntelligentTieringConfigurationCommand")
.sc(DeleteBucketIntelligentTieringConfiguration$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketInventoryConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketInventoryConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketInventoryConfiguration", {})
.n("S3Client", "DeleteBucketInventoryConfigurationCommand")
.sc(DeleteBucketInventoryConfiguration$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketLifecycle$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketLifecycleCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketLifecycle", {})
.n("S3Client", "DeleteBucketLifecycleCommand")
.sc(DeleteBucketLifecycle$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketMetadataConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketMetadataConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketMetadataConfiguration", {})
.n("S3Client", "DeleteBucketMetadataConfigurationCommand")
.sc(DeleteBucketMetadataConfiguration$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketMetadataTableConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketMetadataTableConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketMetadataTableConfiguration", {})
.n("S3Client", "DeleteBucketMetadataTableConfigurationCommand")
.sc(DeleteBucketMetadataTableConfiguration$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketMetricsConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketMetricsConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketMetricsConfiguration", {})
.n("S3Client", "DeleteBucketMetricsConfigurationCommand")
.sc(DeleteBucketMetricsConfiguration$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketOwnershipControls$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketOwnershipControlsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketOwnershipControls", {})
.n("S3Client", "DeleteBucketOwnershipControlsCommand")
.sc(DeleteBucketOwnershipControls$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketPolicy$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketPolicyCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketPolicy", {})
.n("S3Client", "DeleteBucketPolicyCommand")
.sc(DeleteBucketPolicy$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketReplication$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketReplicationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketReplication", {})
.n("S3Client", "DeleteBucketReplicationCommand")
.sc(DeleteBucketReplication$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketTagging$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketTaggingCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketTagging", {})
.n("S3Client", "DeleteBucketTaggingCommand")
.sc(DeleteBucketTagging$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteBucketWebsite$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteBucketWebsiteCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeleteBucketWebsite", {})
.n("S3Client", "DeleteBucketWebsiteCommand")
.sc(DeleteBucketWebsite$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteObject$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteObjectCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "DeleteObject", {})
.n("S3Client", "DeleteObjectCommand")
.sc(DeleteObject$)
.build() {
}

View File

@@ -0,0 +1,23 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteObjectTagging$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteObjectTaggingCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "DeleteObjectTagging", {})
.n("S3Client", "DeleteObjectTaggingCommand")
.sc(DeleteObjectTagging$)
.build() {
}

View File

@@ -0,0 +1,28 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteObjects$ } from "../schemas/schemas_0";
export { $Command };
export class DeleteObjectsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "DeleteObjects", {})
.n("S3Client", "DeleteObjectsCommand")
.sc(DeleteObjects$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeletePublicAccessBlock$ } from "../schemas/schemas_0";
export { $Command };
export class DeletePublicAccessBlockCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "DeletePublicAccessBlock", {})
.n("S3Client", "DeletePublicAccessBlockCommand")
.sc(DeletePublicAccessBlock$)
.build() {
}

View File

@@ -0,0 +1,23 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketAbac$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketAbacCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketAbac", {})
.n("S3Client", "GetBucketAbacCommand")
.sc(GetBucketAbac$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketAccelerateConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketAccelerateConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketAccelerateConfiguration", {})
.n("S3Client", "GetBucketAccelerateConfigurationCommand")
.sc(GetBucketAccelerateConfiguration$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketAcl$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketAclCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketAcl", {})
.n("S3Client", "GetBucketAclCommand")
.sc(GetBucketAcl$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketAnalyticsConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketAnalyticsConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketAnalyticsConfiguration", {})
.n("S3Client", "GetBucketAnalyticsConfigurationCommand")
.sc(GetBucketAnalyticsConfiguration$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketCors$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketCorsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketCors", {})
.n("S3Client", "GetBucketCorsCommand")
.sc(GetBucketCors$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketEncryption$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketEncryptionCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketEncryption", {})
.n("S3Client", "GetBucketEncryptionCommand")
.sc(GetBucketEncryption$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketIntelligentTieringConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketIntelligentTieringConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketIntelligentTieringConfiguration", {})
.n("S3Client", "GetBucketIntelligentTieringConfigurationCommand")
.sc(GetBucketIntelligentTieringConfiguration$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketInventoryConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketInventoryConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketInventoryConfiguration", {})
.n("S3Client", "GetBucketInventoryConfigurationCommand")
.sc(GetBucketInventoryConfiguration$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketLifecycleConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketLifecycleConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketLifecycleConfiguration", {})
.n("S3Client", "GetBucketLifecycleConfigurationCommand")
.sc(GetBucketLifecycleConfiguration$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketLocation$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketLocationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketLocation", {})
.n("S3Client", "GetBucketLocationCommand")
.sc(GetBucketLocation$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketLogging$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketLoggingCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketLogging", {})
.n("S3Client", "GetBucketLoggingCommand")
.sc(GetBucketLogging$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketMetadataConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketMetadataConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketMetadataConfiguration", {})
.n("S3Client", "GetBucketMetadataConfigurationCommand")
.sc(GetBucketMetadataConfiguration$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketMetadataTableConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketMetadataTableConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketMetadataTableConfiguration", {})
.n("S3Client", "GetBucketMetadataTableConfigurationCommand")
.sc(GetBucketMetadataTableConfiguration$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketMetricsConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketMetricsConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketMetricsConfiguration", {})
.n("S3Client", "GetBucketMetricsConfigurationCommand")
.sc(GetBucketMetricsConfiguration$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketNotificationConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketNotificationConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketNotificationConfiguration", {})
.n("S3Client", "GetBucketNotificationConfigurationCommand")
.sc(GetBucketNotificationConfiguration$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketOwnershipControls$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketOwnershipControlsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketOwnershipControls", {})
.n("S3Client", "GetBucketOwnershipControlsCommand")
.sc(GetBucketOwnershipControls$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketPolicy$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketPolicyCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketPolicy", {})
.n("S3Client", "GetBucketPolicyCommand")
.sc(GetBucketPolicy$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketPolicyStatus$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketPolicyStatusCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketPolicyStatus", {})
.n("S3Client", "GetBucketPolicyStatusCommand")
.sc(GetBucketPolicyStatus$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketReplication$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketReplicationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketReplication", {})
.n("S3Client", "GetBucketReplicationCommand")
.sc(GetBucketReplication$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketRequestPayment$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketRequestPaymentCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketRequestPayment", {})
.n("S3Client", "GetBucketRequestPaymentCommand")
.sc(GetBucketRequestPayment$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketTagging$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketTaggingCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketTagging", {})
.n("S3Client", "GetBucketTaggingCommand")
.sc(GetBucketTagging$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketVersioning$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketVersioningCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketVersioning", {})
.n("S3Client", "GetBucketVersioningCommand")
.sc(GetBucketVersioning$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetBucketWebsite$ } from "../schemas/schemas_0";
export { $Command };
export class GetBucketWebsiteCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetBucketWebsite", {})
.n("S3Client", "GetBucketWebsiteCommand")
.sc(GetBucketWebsite$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetObjectAcl$ } from "../schemas/schemas_0";
export { $Command };
export class GetObjectAclCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetObjectAcl", {})
.n("S3Client", "GetObjectAclCommand")
.sc(GetObjectAcl$)
.build() {
}

View File

@@ -0,0 +1,25 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetObjectAttributes$ } from "../schemas/schemas_0";
export { $Command };
export class GetObjectAttributesCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
getSsecPlugin(config),
];
})
.s("AmazonS3", "GetObjectAttributes", {})
.n("S3Client", "GetObjectAttributesCommand")
.sc(GetObjectAttributes$)
.build() {
}

View File

@@ -0,0 +1,32 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getS3ExpiresMiddlewarePlugin } from "@aws-sdk/middleware-sdk-s3";
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetObject$ } from "../schemas/schemas_0";
export { $Command };
export class GetObjectCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestChecksumRequired: false,
requestValidationModeMember: 'ChecksumMode',
'responseAlgorithms': ['CRC64NVME', 'CRC32', 'CRC32C', 'SHA256', 'SHA1'],
}),
getSsecPlugin(config),
getS3ExpiresMiddlewarePlugin(config),
];
})
.s("AmazonS3", "GetObject", {})
.n("S3Client", "GetObjectCommand")
.sc(GetObject$)
.build() {
}

View File

@@ -0,0 +1,23 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetObjectLegalHold$ } from "../schemas/schemas_0";
export { $Command };
export class GetObjectLegalHoldCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetObjectLegalHold", {})
.n("S3Client", "GetObjectLegalHoldCommand")
.sc(GetObjectLegalHold$)
.build() {
}

View File

@@ -0,0 +1,23 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetObjectLockConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class GetObjectLockConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetObjectLockConfiguration", {})
.n("S3Client", "GetObjectLockConfigurationCommand")
.sc(GetObjectLockConfiguration$)
.build() {
}

View File

@@ -0,0 +1,23 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetObjectRetention$ } from "../schemas/schemas_0";
export { $Command };
export class GetObjectRetentionCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetObjectRetention", {})
.n("S3Client", "GetObjectRetentionCommand")
.sc(GetObjectRetention$)
.build() {
}

View File

@@ -0,0 +1,23 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetObjectTagging$ } from "../schemas/schemas_0";
export { $Command };
export class GetObjectTaggingCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetObjectTagging", {})
.n("S3Client", "GetObjectTaggingCommand")
.sc(GetObjectTagging$)
.build() {
}

View File

@@ -0,0 +1,19 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetObjectTorrent$ } from "../schemas/schemas_0";
export { $Command };
export class GetObjectTorrentCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "GetObjectTorrent", {})
.n("S3Client", "GetObjectTorrentCommand")
.sc(GetObjectTorrent$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetPublicAccessBlock$ } from "../schemas/schemas_0";
export { $Command };
export class GetPublicAccessBlockCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "GetPublicAccessBlock", {})
.n("S3Client", "GetPublicAccessBlockCommand")
.sc(GetPublicAccessBlock$)
.build() {
}

View File

@@ -0,0 +1,23 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { HeadBucket$ } from "../schemas/schemas_0";
export { $Command };
export class HeadBucketCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "HeadBucket", {})
.n("S3Client", "HeadBucketCommand")
.sc(HeadBucket$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getS3ExpiresMiddlewarePlugin, getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { HeadObject$ } from "../schemas/schemas_0";
export { $Command };
export class HeadObjectCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
getSsecPlugin(config),
getS3ExpiresMiddlewarePlugin(config),
];
})
.s("AmazonS3", "HeadObject", {})
.n("S3Client", "HeadObjectCommand")
.sc(HeadObject$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListBucketAnalyticsConfigurations$ } from "../schemas/schemas_0";
export { $Command };
export class ListBucketAnalyticsConfigurationsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "ListBucketAnalyticsConfigurations", {})
.n("S3Client", "ListBucketAnalyticsConfigurationsCommand")
.sc(ListBucketAnalyticsConfigurations$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListBucketIntelligentTieringConfigurations$ } from "../schemas/schemas_0";
export { $Command };
export class ListBucketIntelligentTieringConfigurationsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "ListBucketIntelligentTieringConfigurations", {})
.n("S3Client", "ListBucketIntelligentTieringConfigurationsCommand")
.sc(ListBucketIntelligentTieringConfigurations$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListBucketInventoryConfigurations$ } from "../schemas/schemas_0";
export { $Command };
export class ListBucketInventoryConfigurationsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "ListBucketInventoryConfigurations", {})
.n("S3Client", "ListBucketInventoryConfigurationsCommand")
.sc(ListBucketInventoryConfigurations$)
.build() {
}

View File

@@ -0,0 +1,23 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListBucketMetricsConfigurations$ } from "../schemas/schemas_0";
export { $Command };
export class ListBucketMetricsConfigurationsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "ListBucketMetricsConfigurations", {})
.n("S3Client", "ListBucketMetricsConfigurationsCommand")
.sc(ListBucketMetricsConfigurations$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListBuckets$ } from "../schemas/schemas_0";
export { $Command };
export class ListBucketsCommand extends $Command
.classBuilder()
.ep(commonParams)
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "ListBuckets", {})
.n("S3Client", "ListBucketsCommand")
.sc(ListBuckets$)
.build() {
}

View File

@@ -0,0 +1,23 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListDirectoryBuckets$ } from "../schemas/schemas_0";
export { $Command };
export class ListDirectoryBucketsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "ListDirectoryBuckets", {})
.n("S3Client", "ListDirectoryBucketsCommand")
.sc(ListDirectoryBuckets$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListMultipartUploads$ } from "../schemas/schemas_0";
export { $Command };
export class ListMultipartUploadsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Prefix: { type: "contextParams", name: "Prefix" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "ListMultipartUploads", {})
.n("S3Client", "ListMultipartUploadsCommand")
.sc(ListMultipartUploads$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListObjectVersions$ } from "../schemas/schemas_0";
export { $Command };
export class ListObjectVersionsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Prefix: { type: "contextParams", name: "Prefix" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "ListObjectVersions", {})
.n("S3Client", "ListObjectVersionsCommand")
.sc(ListObjectVersions$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListObjects$ } from "../schemas/schemas_0";
export { $Command };
export class ListObjectsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Prefix: { type: "contextParams", name: "Prefix" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "ListObjects", {})
.n("S3Client", "ListObjectsCommand")
.sc(ListObjects$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListObjectsV2$ } from "../schemas/schemas_0";
export { $Command };
export class ListObjectsV2Command extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Prefix: { type: "contextParams", name: "Prefix" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "ListObjectsV2", {})
.n("S3Client", "ListObjectsV2Command")
.sc(ListObjectsV2$)
.build() {
}

View File

@@ -0,0 +1,26 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { ListParts$ } from "../schemas/schemas_0";
export { $Command };
export class ListPartsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
getSsecPlugin(config),
];
})
.s("AmazonS3", "ListParts", {})
.n("S3Client", "ListPartsCommand")
.sc(ListParts$)
.build() {
}

View File

@@ -0,0 +1,26 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketAbac$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketAbacCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: false,
}),
];
})
.s("AmazonS3", "PutBucketAbac", {})
.n("S3Client", "PutBucketAbacCommand")
.sc(PutBucketAbac$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketAccelerateConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketAccelerateConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: false,
}),
];
})
.s("AmazonS3", "PutBucketAccelerateConfiguration", {})
.n("S3Client", "PutBucketAccelerateConfigurationCommand")
.sc(PutBucketAccelerateConfiguration$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketAcl$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketAclCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "PutBucketAcl", {})
.n("S3Client", "PutBucketAclCommand")
.sc(PutBucketAcl$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketAnalyticsConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketAnalyticsConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "PutBucketAnalyticsConfiguration", {})
.n("S3Client", "PutBucketAnalyticsConfigurationCommand")
.sc(PutBucketAnalyticsConfiguration$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketCors$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketCorsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "PutBucketCors", {})
.n("S3Client", "PutBucketCorsCommand")
.sc(PutBucketCors$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketEncryption$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketEncryptionCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "PutBucketEncryption", {})
.n("S3Client", "PutBucketEncryptionCommand")
.sc(PutBucketEncryption$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketIntelligentTieringConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketIntelligentTieringConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "PutBucketIntelligentTieringConfiguration", {})
.n("S3Client", "PutBucketIntelligentTieringConfigurationCommand")
.sc(PutBucketIntelligentTieringConfiguration$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketInventoryConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketInventoryConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "PutBucketInventoryConfiguration", {})
.n("S3Client", "PutBucketInventoryConfigurationCommand")
.sc(PutBucketInventoryConfiguration$)
.build() {
}

View File

@@ -0,0 +1,29 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketLifecycleConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketLifecycleConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "PutBucketLifecycleConfiguration", {})
.n("S3Client", "PutBucketLifecycleConfigurationCommand")
.sc(PutBucketLifecycleConfiguration$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketLogging$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketLoggingCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "PutBucketLogging", {})
.n("S3Client", "PutBucketLoggingCommand")
.sc(PutBucketLogging$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketMetricsConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketMetricsConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "PutBucketMetricsConfiguration", {})
.n("S3Client", "PutBucketMetricsConfigurationCommand")
.sc(PutBucketMetricsConfiguration$)
.build() {
}

View File

@@ -0,0 +1,20 @@
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketNotificationConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketNotificationConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AmazonS3", "PutBucketNotificationConfiguration", {})
.n("S3Client", "PutBucketNotificationConfigurationCommand")
.sc(PutBucketNotificationConfiguration$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketOwnershipControls$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketOwnershipControlsCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "PutBucketOwnershipControls", {})
.n("S3Client", "PutBucketOwnershipControlsCommand")
.sc(PutBucketOwnershipControls$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketPolicy$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketPolicyCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "PutBucketPolicy", {})
.n("S3Client", "PutBucketPolicyCommand")
.sc(PutBucketPolicy$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketReplication$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketReplicationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "PutBucketReplication", {})
.n("S3Client", "PutBucketReplicationCommand")
.sc(PutBucketReplication$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketRequestPayment$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketRequestPaymentCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "PutBucketRequestPayment", {})
.n("S3Client", "PutBucketRequestPaymentCommand")
.sc(PutBucketRequestPayment$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketTagging$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketTaggingCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "PutBucketTagging", {})
.n("S3Client", "PutBucketTaggingCommand")
.sc(PutBucketTagging$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketVersioning$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketVersioningCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "PutBucketVersioning", {})
.n("S3Client", "PutBucketVersioningCommand")
.sc(PutBucketVersioning$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutBucketWebsite$ } from "../schemas/schemas_0";
export { $Command };
export class PutBucketWebsiteCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "PutBucketWebsite", {})
.n("S3Client", "PutBucketWebsiteCommand")
.sc(PutBucketWebsite$)
.build() {
}

View File

@@ -0,0 +1,29 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutObjectAcl$ } from "../schemas/schemas_0";
export { $Command };
export class PutObjectAclCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "PutObjectAcl", {})
.n("S3Client", "PutObjectAclCommand")
.sc(PutObjectAcl$)
.build() {
}

View File

@@ -0,0 +1,32 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getCheckContentLengthHeaderPlugin, getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutObject$ } from "../schemas/schemas_0";
export { $Command };
export class PutObjectCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: false,
}),
getCheckContentLengthHeaderPlugin(config),
getThrow200ExceptionsPlugin(config),
getSsecPlugin(config),
];
})
.s("AmazonS3", "PutObject", {})
.n("S3Client", "PutObjectCommand")
.sc(PutObject$)
.build() {
}

View File

@@ -0,0 +1,28 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutObjectLegalHold$ } from "../schemas/schemas_0";
export { $Command };
export class PutObjectLegalHoldCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "PutObjectLegalHold", {})
.n("S3Client", "PutObjectLegalHoldCommand")
.sc(PutObjectLegalHold$)
.build() {
}

View File

@@ -0,0 +1,28 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutObjectLockConfiguration$ } from "../schemas/schemas_0";
export { $Command };
export class PutObjectLockConfigurationCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "PutObjectLockConfiguration", {})
.n("S3Client", "PutObjectLockConfigurationCommand")
.sc(PutObjectLockConfiguration$)
.build() {
}

View File

@@ -0,0 +1,28 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutObjectRetention$ } from "../schemas/schemas_0";
export { $Command };
export class PutObjectRetentionCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "PutObjectRetention", {})
.n("S3Client", "PutObjectRetentionCommand")
.sc(PutObjectRetention$)
.build() {
}

View File

@@ -0,0 +1,28 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutObjectTagging$ } from "../schemas/schemas_0";
export { $Command };
export class PutObjectTaggingCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "PutObjectTagging", {})
.n("S3Client", "PutObjectTaggingCommand")
.sc(PutObjectTagging$)
.build() {
}

View File

@@ -0,0 +1,27 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { PutPublicAccessBlock$ } from "../schemas/schemas_0";
export { $Command };
export class PutPublicAccessBlockCommand extends $Command
.classBuilder()
.ep({
...commonParams,
UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: true,
}),
];
})
.s("AmazonS3", "PutPublicAccessBlock", {})
.n("S3Client", "PutPublicAccessBlockCommand")
.sc(PutPublicAccessBlock$)
.build() {
}

View File

@@ -0,0 +1,24 @@
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { RenameObject$ } from "../schemas/schemas_0";
export { $Command };
export class RenameObjectCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
Key: { type: "contextParams", name: "Key" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "RenameObject", {})
.n("S3Client", "RenameObjectCommand")
.sc(RenameObject$)
.build() {
}

View File

@@ -0,0 +1,28 @@
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { commonParams } from "../endpoint/EndpointParameters";
import { RestoreObject$ } from "../schemas/schemas_0";
export { $Command };
export class RestoreObjectCommand extends $Command
.classBuilder()
.ep({
...commonParams,
Bucket: { type: "contextParams", name: "Bucket" },
})
.m(function (Command, cs, config, o) {
return [
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getFlexibleChecksumsPlugin(config, {
requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
requestChecksumRequired: false,
}),
getThrow200ExceptionsPlugin(config),
];
})
.s("AmazonS3", "RestoreObject", {})
.n("S3Client", "RestoreObjectCommand")
.sc(RestoreObject$)
.build() {
}

Some files were not shown because too many files have changed in this diff Show More