@aws-sdk/client-cloudcontrol 3.52.0 → 3.54.1

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.
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CancelResourceRequestCommandInput, CancelResourceRequestCommandOutput } from "./commands/CancelResourceRequestCommand";
10
10
  import { CreateResourceCommandInput, CreateResourceCommandOutput } from "./commands/CreateResourceCommand";
11
11
  import { DeleteResourceCommandInput, DeleteResourceCommandOutput } from "./commands/DeleteResourceCommand";
@@ -36,7 +36,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
36
36
  * A function that can calculate the length of a request body.
37
37
  * @internal
38
38
  */
39
- bodyLengthChecker?: (body: any) => number | undefined;
39
+ bodyLengthChecker?: __BodyLengthCalculator;
40
40
  /**
41
41
  * A function that converts a stream into an array of bytes.
42
42
  * @internal
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { CloudControlServiceException } from "./models/CloudControlServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from CloudControl service.
4
+ */
5
+ export declare class CloudControlServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,11 +1,16 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { CloudControlServiceException as __BaseException } from "./CloudControlServiceException";
2
3
  /**
3
4
  * <p>The resource with the name requested already exists.</p>
4
5
  */
5
- export interface AlreadyExistsException extends __SmithyException, $MetadataBearer {
6
- name: "AlreadyExistsException";
7
- $fault: "client";
6
+ export declare class AlreadyExistsException extends __BaseException {
7
+ readonly name: "AlreadyExistsException";
8
+ readonly $fault: "client";
8
9
  Message?: string;
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AlreadyExistsException, __BaseException>);
9
14
  }
10
15
  export interface CancelResourceRequestInput {
11
16
  /**
@@ -157,36 +162,52 @@ export declare namespace CancelResourceRequestOutput {
157
162
  /**
158
163
  * <p>The resource is currently being modified by another operation.</p>
159
164
  */
160
- export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
161
- name: "ConcurrentModificationException";
162
- $fault: "server";
165
+ export declare class ConcurrentModificationException extends __BaseException {
166
+ readonly name: "ConcurrentModificationException";
167
+ readonly $fault: "server";
163
168
  Message?: string;
169
+ /**
170
+ * @internal
171
+ */
172
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
164
173
  }
165
174
  /**
166
175
  * <p>A resource operation with the specified request token cannot be found.</p>
167
176
  */
168
- export interface RequestTokenNotFoundException extends __SmithyException, $MetadataBearer {
169
- name: "RequestTokenNotFoundException";
170
- $fault: "client";
177
+ export declare class RequestTokenNotFoundException extends __BaseException {
178
+ readonly name: "RequestTokenNotFoundException";
179
+ readonly $fault: "client";
171
180
  Message?: string;
181
+ /**
182
+ * @internal
183
+ */
184
+ constructor(opts: __ExceptionOptionType<RequestTokenNotFoundException, __BaseException>);
172
185
  }
173
186
  /**
174
187
  * <p>The specified client token has already been used in another resource request.</p>
175
188
  * <p>It is best practice for client tokens to be unique for each resource operation request.
176
189
  * However, client token expire after 36 hours.</p>
177
190
  */
178
- export interface ClientTokenConflictException extends __SmithyException, $MetadataBearer {
179
- name: "ClientTokenConflictException";
180
- $fault: "client";
191
+ export declare class ClientTokenConflictException extends __BaseException {
192
+ readonly name: "ClientTokenConflictException";
193
+ readonly $fault: "client";
181
194
  Message?: string;
195
+ /**
196
+ * @internal
197
+ */
198
+ constructor(opts: __ExceptionOptionType<ClientTokenConflictException, __BaseException>);
182
199
  }
183
200
  /**
184
201
  * <p>Another resource operation is currently being performed on this resource.</p>
185
202
  */
186
- export interface ConcurrentOperationException extends __SmithyException, $MetadataBearer {
187
- name: "ConcurrentOperationException";
188
- $fault: "client";
203
+ export declare class ConcurrentOperationException extends __BaseException {
204
+ readonly name: "ConcurrentOperationException";
205
+ readonly $fault: "client";
189
206
  Message?: string;
207
+ /**
208
+ * @internal
209
+ */
210
+ constructor(opts: __ExceptionOptionType<ConcurrentOperationException, __BaseException>);
190
211
  }
191
212
  export interface CreateResourceInput {
192
213
  /**
@@ -261,143 +282,207 @@ export declare namespace CreateResourceOutput {
261
282
  * <p>The resource handler has returned that the downstream service generated an error that does
262
283
  * not map to any other handler error code.</p>
263
284
  */
264
- export interface GeneralServiceException extends __SmithyException, $MetadataBearer {
265
- name: "GeneralServiceException";
266
- $fault: "client";
285
+ export declare class GeneralServiceException extends __BaseException {
286
+ readonly name: "GeneralServiceException";
287
+ readonly $fault: "client";
267
288
  Message?: string;
289
+ /**
290
+ * @internal
291
+ */
292
+ constructor(opts: __ExceptionOptionType<GeneralServiceException, __BaseException>);
268
293
  }
269
294
  /**
270
295
  * <p>The resource handler has failed without a returning a more specific error code. This can
271
296
  * include timeouts.</p>
272
297
  */
273
- export interface HandlerFailureException extends __SmithyException, $MetadataBearer {
274
- name: "HandlerFailureException";
275
- $fault: "server";
298
+ export declare class HandlerFailureException extends __BaseException {
299
+ readonly name: "HandlerFailureException";
300
+ readonly $fault: "server";
276
301
  Message?: string;
302
+ /**
303
+ * @internal
304
+ */
305
+ constructor(opts: __ExceptionOptionType<HandlerFailureException, __BaseException>);
277
306
  }
278
307
  /**
279
308
  * <p>The resource handler has returned that an unexpected error occurred within the resource
280
309
  * handler.</p>
281
310
  */
282
- export interface HandlerInternalFailureException extends __SmithyException, $MetadataBearer {
283
- name: "HandlerInternalFailureException";
284
- $fault: "server";
311
+ export declare class HandlerInternalFailureException extends __BaseException {
312
+ readonly name: "HandlerInternalFailureException";
313
+ readonly $fault: "server";
285
314
  Message?: string;
315
+ /**
316
+ * @internal
317
+ */
318
+ constructor(opts: __ExceptionOptionType<HandlerInternalFailureException, __BaseException>);
286
319
  }
287
320
  /**
288
321
  * <p>The resource handler has returned that the credentials provided by the user are
289
322
  * invalid.</p>
290
323
  */
291
- export interface InvalidCredentialsException extends __SmithyException, $MetadataBearer {
292
- name: "InvalidCredentialsException";
293
- $fault: "client";
324
+ export declare class InvalidCredentialsException extends __BaseException {
325
+ readonly name: "InvalidCredentialsException";
326
+ readonly $fault: "client";
294
327
  Message?: string;
328
+ /**
329
+ * @internal
330
+ */
331
+ constructor(opts: __ExceptionOptionType<InvalidCredentialsException, __BaseException>);
295
332
  }
296
333
  /**
297
334
  * <p>The resource handler has returned that invalid input from the user has generated a generic
298
335
  * exception.</p>
299
336
  */
300
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
301
- name: "InvalidRequestException";
302
- $fault: "client";
337
+ export declare class InvalidRequestException extends __BaseException {
338
+ readonly name: "InvalidRequestException";
339
+ readonly $fault: "client";
303
340
  Message?: string;
341
+ /**
342
+ * @internal
343
+ */
344
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
304
345
  }
305
346
  /**
306
347
  * <p>The resource handler has returned that the request could not be completed due to
307
348
  * networking issues, such as a failure to receive a response from the server.</p>
308
349
  */
309
- export interface NetworkFailureException extends __SmithyException, $MetadataBearer {
310
- name: "NetworkFailureException";
311
- $fault: "server";
350
+ export declare class NetworkFailureException extends __BaseException {
351
+ readonly name: "NetworkFailureException";
352
+ readonly $fault: "server";
312
353
  Message?: string;
354
+ /**
355
+ * @internal
356
+ */
357
+ constructor(opts: __ExceptionOptionType<NetworkFailureException, __BaseException>);
313
358
  }
314
359
  /**
315
360
  * <p>The resource handler has returned that the downstream resource failed to complete all of
316
361
  * its ready-state checks.</p>
317
362
  */
318
- export interface NotStabilizedException extends __SmithyException, $MetadataBearer {
319
- name: "NotStabilizedException";
320
- $fault: "client";
363
+ export declare class NotStabilizedException extends __BaseException {
364
+ readonly name: "NotStabilizedException";
365
+ readonly $fault: "client";
321
366
  Message?: string;
367
+ /**
368
+ * @internal
369
+ */
370
+ constructor(opts: __ExceptionOptionType<NotStabilizedException, __BaseException>);
322
371
  }
323
372
  /**
324
373
  * <p>One or more properties included in this resource operation are defined as create-only, and
325
374
  * therefore cannot be updated.</p>
326
375
  */
327
- export interface NotUpdatableException extends __SmithyException, $MetadataBearer {
328
- name: "NotUpdatableException";
329
- $fault: "client";
376
+ export declare class NotUpdatableException extends __BaseException {
377
+ readonly name: "NotUpdatableException";
378
+ readonly $fault: "client";
330
379
  Message?: string;
380
+ /**
381
+ * @internal
382
+ */
383
+ constructor(opts: __ExceptionOptionType<NotUpdatableException, __BaseException>);
331
384
  }
332
385
  /**
333
386
  * <p>Cloud Control API has not received a valid response from the resource handler, due to a
334
387
  * configuration error. This includes issues such as the resource handler returning an invalid
335
388
  * response, or timing out.</p>
336
389
  */
337
- export interface PrivateTypeException extends __SmithyException, $MetadataBearer {
338
- name: "PrivateTypeException";
339
- $fault: "client";
390
+ export declare class PrivateTypeException extends __BaseException {
391
+ readonly name: "PrivateTypeException";
392
+ readonly $fault: "client";
340
393
  Message?: string;
394
+ /**
395
+ * @internal
396
+ */
397
+ constructor(opts: __ExceptionOptionType<PrivateTypeException, __BaseException>);
341
398
  }
342
399
  /**
343
400
  * <p>The resource is temporarily unavailable to be acted upon. For example, if the resource is
344
401
  * currently undergoing an operation and cannot be acted upon until that operation is
345
402
  * finished.</p>
346
403
  */
347
- export interface ResourceConflictException extends __SmithyException, $MetadataBearer {
348
- name: "ResourceConflictException";
349
- $fault: "client";
404
+ export declare class ResourceConflictException extends __BaseException {
405
+ readonly name: "ResourceConflictException";
406
+ readonly $fault: "client";
350
407
  Message?: string;
408
+ /**
409
+ * @internal
410
+ */
411
+ constructor(opts: __ExceptionOptionType<ResourceConflictException, __BaseException>);
351
412
  }
352
413
  /**
353
414
  * <p>A resource with the specified identifier cannot be found.</p>
354
415
  */
355
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
356
- name: "ResourceNotFoundException";
357
- $fault: "client";
416
+ export declare class ResourceNotFoundException extends __BaseException {
417
+ readonly name: "ResourceNotFoundException";
418
+ readonly $fault: "client";
358
419
  Message?: string;
420
+ /**
421
+ * @internal
422
+ */
423
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
359
424
  }
360
425
  /**
361
426
  * <p>The resource handler has returned that the downstream service returned an internal error,
362
427
  * typically with a <code>5XX HTTP</code> status code.</p>
363
428
  */
364
- export interface ServiceInternalErrorException extends __SmithyException, $MetadataBearer {
365
- name: "ServiceInternalErrorException";
366
- $fault: "server";
429
+ export declare class ServiceInternalErrorException extends __BaseException {
430
+ readonly name: "ServiceInternalErrorException";
431
+ readonly $fault: "server";
367
432
  Message?: string;
433
+ /**
434
+ * @internal
435
+ */
436
+ constructor(opts: __ExceptionOptionType<ServiceInternalErrorException, __BaseException>);
368
437
  }
369
438
  /**
370
439
  * <p>The resource handler has returned that a non-transient resource limit was reached on the
371
440
  * service side.</p>
372
441
  */
373
- export interface ServiceLimitExceededException extends __SmithyException, $MetadataBearer {
374
- name: "ServiceLimitExceededException";
375
- $fault: "client";
442
+ export declare class ServiceLimitExceededException extends __BaseException {
443
+ readonly name: "ServiceLimitExceededException";
444
+ readonly $fault: "client";
376
445
  Message?: string;
446
+ /**
447
+ * @internal
448
+ */
449
+ constructor(opts: __ExceptionOptionType<ServiceLimitExceededException, __BaseException>);
377
450
  }
378
451
  /**
379
452
  * <p>The request was denied due to request throttling.</p>
380
453
  */
381
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
382
- name: "ThrottlingException";
383
- $fault: "client";
454
+ export declare class ThrottlingException extends __BaseException {
455
+ readonly name: "ThrottlingException";
456
+ readonly $fault: "client";
384
457
  Message?: string;
458
+ /**
459
+ * @internal
460
+ */
461
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
385
462
  }
386
463
  /**
387
464
  * <p>The specified extension does not exist in the CloudFormation registry.</p>
388
465
  */
389
- export interface TypeNotFoundException extends __SmithyException, $MetadataBearer {
390
- name: "TypeNotFoundException";
391
- $fault: "client";
466
+ export declare class TypeNotFoundException extends __BaseException {
467
+ readonly name: "TypeNotFoundException";
468
+ readonly $fault: "client";
392
469
  Message?: string;
470
+ /**
471
+ * @internal
472
+ */
473
+ constructor(opts: __ExceptionOptionType<TypeNotFoundException, __BaseException>);
393
474
  }
394
475
  /**
395
476
  * <p>The specified resource does not support this resource operation.</p>
396
477
  */
397
- export interface UnsupportedActionException extends __SmithyException, $MetadataBearer {
398
- name: "UnsupportedActionException";
399
- $fault: "client";
478
+ export declare class UnsupportedActionException extends __BaseException {
479
+ readonly name: "UnsupportedActionException";
480
+ readonly $fault: "client";
400
481
  Message?: string;
482
+ /**
483
+ * @internal
484
+ */
485
+ constructor(opts: __ExceptionOptionType<UnsupportedActionException, __BaseException>);
401
486
  }
402
487
  export interface DeleteResourceInput {
403
488
  /**
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: CloudControlClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: CloudControlClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: CloudControlClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CancelResourceRequestCommandInput, CancelResourceRequestCommandOutput } from "./commands/CancelResourceRequestCommand";
10
10
  import { CreateResourceCommandInput, CreateResourceCommandOutput } from "./commands/CreateResourceCommand";
11
11
  import { DeleteResourceCommandInput, DeleteResourceCommandOutput } from "./commands/DeleteResourceCommand";
@@ -24,7 +24,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
24
24
 
25
25
  urlParser?: __UrlParser;
26
26
 
27
- bodyLengthChecker?: (body: any) => number | undefined;
27
+ bodyLengthChecker?: __BodyLengthCalculator;
28
28
 
29
29
  streamCollector?: __StreamCollector;
30
30
 
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { CloudControlServiceException } from "./models/CloudControlServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class CloudControlServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }