@aws-sdk/client-s3-control 3.987.0 → 3.989.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.S3ControlServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class S3ControlServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, S3ControlServiceException.prototype);
10
+ }
11
+ }
12
+ exports.S3ControlServiceException = S3ControlServiceException;
@@ -0,0 +1,180 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JobStatusException = exports.TooManyTagsException = exports.InvalidRequestException = exports.InvalidNextTokenException = exports.NoSuchPublicAccessBlockConfiguration = exports.NotFoundException = exports.TooManyRequestsException = exports.InternalServiceException = exports.IdempotencyException = exports.BadRequestException = exports.BucketAlreadyOwnedByYou = exports.BucketAlreadyExists = void 0;
4
+ const S3ControlServiceException_1 = require("./S3ControlServiceException");
5
+ class BucketAlreadyExists extends S3ControlServiceException_1.S3ControlServiceException {
6
+ name = "BucketAlreadyExists";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "BucketAlreadyExists",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, BucketAlreadyExists.prototype);
15
+ }
16
+ }
17
+ exports.BucketAlreadyExists = BucketAlreadyExists;
18
+ class BucketAlreadyOwnedByYou extends S3ControlServiceException_1.S3ControlServiceException {
19
+ name = "BucketAlreadyOwnedByYou";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "BucketAlreadyOwnedByYou",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, BucketAlreadyOwnedByYou.prototype);
28
+ }
29
+ }
30
+ exports.BucketAlreadyOwnedByYou = BucketAlreadyOwnedByYou;
31
+ class BadRequestException extends S3ControlServiceException_1.S3ControlServiceException {
32
+ name = "BadRequestException";
33
+ $fault = "client";
34
+ Message;
35
+ constructor(opts) {
36
+ super({
37
+ name: "BadRequestException",
38
+ $fault: "client",
39
+ ...opts,
40
+ });
41
+ Object.setPrototypeOf(this, BadRequestException.prototype);
42
+ this.Message = opts.Message;
43
+ }
44
+ }
45
+ exports.BadRequestException = BadRequestException;
46
+ class IdempotencyException extends S3ControlServiceException_1.S3ControlServiceException {
47
+ name = "IdempotencyException";
48
+ $fault = "client";
49
+ Message;
50
+ constructor(opts) {
51
+ super({
52
+ name: "IdempotencyException",
53
+ $fault: "client",
54
+ ...opts,
55
+ });
56
+ Object.setPrototypeOf(this, IdempotencyException.prototype);
57
+ this.Message = opts.Message;
58
+ }
59
+ }
60
+ exports.IdempotencyException = IdempotencyException;
61
+ class InternalServiceException extends S3ControlServiceException_1.S3ControlServiceException {
62
+ name = "InternalServiceException";
63
+ $fault = "server";
64
+ Message;
65
+ constructor(opts) {
66
+ super({
67
+ name: "InternalServiceException",
68
+ $fault: "server",
69
+ ...opts,
70
+ });
71
+ Object.setPrototypeOf(this, InternalServiceException.prototype);
72
+ this.Message = opts.Message;
73
+ }
74
+ }
75
+ exports.InternalServiceException = InternalServiceException;
76
+ class TooManyRequestsException extends S3ControlServiceException_1.S3ControlServiceException {
77
+ name = "TooManyRequestsException";
78
+ $fault = "client";
79
+ Message;
80
+ constructor(opts) {
81
+ super({
82
+ name: "TooManyRequestsException",
83
+ $fault: "client",
84
+ ...opts,
85
+ });
86
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
87
+ this.Message = opts.Message;
88
+ }
89
+ }
90
+ exports.TooManyRequestsException = TooManyRequestsException;
91
+ class NotFoundException extends S3ControlServiceException_1.S3ControlServiceException {
92
+ name = "NotFoundException";
93
+ $fault = "client";
94
+ Message;
95
+ constructor(opts) {
96
+ super({
97
+ name: "NotFoundException",
98
+ $fault: "client",
99
+ ...opts,
100
+ });
101
+ Object.setPrototypeOf(this, NotFoundException.prototype);
102
+ this.Message = opts.Message;
103
+ }
104
+ }
105
+ exports.NotFoundException = NotFoundException;
106
+ class NoSuchPublicAccessBlockConfiguration extends S3ControlServiceException_1.S3ControlServiceException {
107
+ name = "NoSuchPublicAccessBlockConfiguration";
108
+ $fault = "client";
109
+ Message;
110
+ constructor(opts) {
111
+ super({
112
+ name: "NoSuchPublicAccessBlockConfiguration",
113
+ $fault: "client",
114
+ ...opts,
115
+ });
116
+ Object.setPrototypeOf(this, NoSuchPublicAccessBlockConfiguration.prototype);
117
+ this.Message = opts.Message;
118
+ }
119
+ }
120
+ exports.NoSuchPublicAccessBlockConfiguration = NoSuchPublicAccessBlockConfiguration;
121
+ class InvalidNextTokenException extends S3ControlServiceException_1.S3ControlServiceException {
122
+ name = "InvalidNextTokenException";
123
+ $fault = "client";
124
+ Message;
125
+ constructor(opts) {
126
+ super({
127
+ name: "InvalidNextTokenException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
132
+ this.Message = opts.Message;
133
+ }
134
+ }
135
+ exports.InvalidNextTokenException = InvalidNextTokenException;
136
+ class InvalidRequestException extends S3ControlServiceException_1.S3ControlServiceException {
137
+ name = "InvalidRequestException";
138
+ $fault = "client";
139
+ Message;
140
+ constructor(opts) {
141
+ super({
142
+ name: "InvalidRequestException",
143
+ $fault: "client",
144
+ ...opts,
145
+ });
146
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
147
+ this.Message = opts.Message;
148
+ }
149
+ }
150
+ exports.InvalidRequestException = InvalidRequestException;
151
+ class TooManyTagsException extends S3ControlServiceException_1.S3ControlServiceException {
152
+ name = "TooManyTagsException";
153
+ $fault = "client";
154
+ Message;
155
+ constructor(opts) {
156
+ super({
157
+ name: "TooManyTagsException",
158
+ $fault: "client",
159
+ ...opts,
160
+ });
161
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
162
+ this.Message = opts.Message;
163
+ }
164
+ }
165
+ exports.TooManyTagsException = TooManyTagsException;
166
+ class JobStatusException extends S3ControlServiceException_1.S3ControlServiceException {
167
+ name = "JobStatusException";
168
+ $fault = "client";
169
+ Message;
170
+ constructor(opts) {
171
+ super({
172
+ name: "JobStatusException",
173
+ $fault: "client",
174
+ ...opts,
175
+ });
176
+ Object.setPrototypeOf(this, JobStatusException.prototype);
177
+ this.Message = opts.Message;
178
+ }
179
+ }
180
+ exports.JobStatusException = JobStatusException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2018-08-20",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestXmlProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.s3control",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  xmlNamespace: "http://awss3control.amazonaws.com/doc/2018-08-20/",
33
35
  version: "2018-08-20",
34
36
  serviceTarget: "AWSS3ControlServiceV20180820",