@aws-sdk/client-cloudformation 3.52.0 → 3.53.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.
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { CloudFormationServiceException } from "./models/CloudFormationServiceException";
@@ -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 CloudFormation service.
4
+ */
5
+ export declare class CloudFormationServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { CloudFormationServiceException as __BaseException } from "./CloudFormationServiceException";
2
3
  export declare type AccountGateStatus = "FAILED" | "SKIPPED" | "SUCCEEDED";
3
4
  /**
4
5
  * <p>Structure that contains the results of the account gate function which CloudFormation invokes, if present, before proceeding with a stack set operation in an account and
@@ -234,26 +235,38 @@ export declare namespace ActivateTypeOutput {
234
235
  /**
235
236
  * <p>An error occurred during a CloudFormation registry operation.</p>
236
237
  */
237
- export interface CFNRegistryException extends __SmithyException, $MetadataBearer {
238
- name: "CFNRegistryException";
239
- $fault: "client";
238
+ export declare class CFNRegistryException extends __BaseException {
239
+ readonly name: "CFNRegistryException";
240
+ readonly $fault: "client";
240
241
  Message?: string;
242
+ /**
243
+ * @internal
244
+ */
245
+ constructor(opts: __ExceptionOptionType<CFNRegistryException, __BaseException>);
241
246
  }
242
247
  /**
243
248
  * <p>The specified extension doesn't exist in the CloudFormation registry.</p>
244
249
  */
245
- export interface TypeNotFoundException extends __SmithyException, $MetadataBearer {
246
- name: "TypeNotFoundException";
247
- $fault: "client";
250
+ export declare class TypeNotFoundException extends __BaseException {
251
+ readonly name: "TypeNotFoundException";
252
+ readonly $fault: "client";
248
253
  Message?: string;
254
+ /**
255
+ * @internal
256
+ */
257
+ constructor(opts: __ExceptionOptionType<TypeNotFoundException, __BaseException>);
249
258
  }
250
259
  /**
251
260
  * <p>The resource with the name requested already exists.</p>
252
261
  */
253
- export interface AlreadyExistsException extends __SmithyException, $MetadataBearer {
254
- name: "AlreadyExistsException";
255
- $fault: "client";
262
+ export declare class AlreadyExistsException extends __BaseException {
263
+ readonly name: "AlreadyExistsException";
264
+ readonly $fault: "client";
256
265
  Message?: string;
266
+ /**
267
+ * @internal
268
+ */
269
+ constructor(opts: __ExceptionOptionType<AlreadyExistsException, __BaseException>);
257
270
  }
258
271
  /**
259
272
  * <p>[Service-managed permissions] Describes whether StackSets automatically deploys to
@@ -431,10 +444,14 @@ export declare namespace BatchDescribeTypeConfigurationsOutput {
431
444
  /**
432
445
  * <p>The specified extension configuration can't be found.</p>
433
446
  */
434
- export interface TypeConfigurationNotFoundException extends __SmithyException, $MetadataBearer {
435
- name: "TypeConfigurationNotFoundException";
436
- $fault: "client";
447
+ export declare class TypeConfigurationNotFoundException extends __BaseException {
448
+ readonly name: "TypeConfigurationNotFoundException";
449
+ readonly $fault: "client";
437
450
  Message?: string;
451
+ /**
452
+ * @internal
453
+ */
454
+ constructor(opts: __ExceptionOptionType<TypeConfigurationNotFoundException, __BaseException>);
438
455
  }
439
456
  export declare enum CallAs {
440
457
  DELEGATED_ADMIN = "DELEGATED_ADMIN",
@@ -466,10 +483,14 @@ export declare namespace CancelUpdateStackInput {
466
483
  /**
467
484
  * <p>A client request token already exists.</p>
468
485
  */
469
- export interface TokenAlreadyExistsException extends __SmithyException, $MetadataBearer {
470
- name: "TokenAlreadyExistsException";
471
- $fault: "client";
486
+ export declare class TokenAlreadyExistsException extends __BaseException {
487
+ readonly name: "TokenAlreadyExistsException";
488
+ readonly $fault: "client";
472
489
  Message?: string;
490
+ /**
491
+ * @internal
492
+ */
493
+ constructor(opts: __ExceptionOptionType<TokenAlreadyExistsException, __BaseException>);
473
494
  }
474
495
  export declare enum Capability {
475
496
  CAPABILITY_AUTO_EXPAND = "CAPABILITY_AUTO_EXPAND",
@@ -918,10 +939,14 @@ export declare enum ChangeSetHooksStatus {
918
939
  * <p>The specified change set name or ID doesn't exit. To view valid change sets for a stack,
919
940
  * use the <code>ListChangeSets</code> operation.</p>
920
941
  */
921
- export interface ChangeSetNotFoundException extends __SmithyException, $MetadataBearer {
922
- name: "ChangeSetNotFoundException";
923
- $fault: "client";
942
+ export declare class ChangeSetNotFoundException extends __BaseException {
943
+ readonly name: "ChangeSetNotFoundException";
944
+ readonly $fault: "client";
924
945
  Message?: string;
946
+ /**
947
+ * @internal
948
+ */
949
+ constructor(opts: __ExceptionOptionType<ChangeSetNotFoundException, __BaseException>);
925
950
  }
926
951
  export declare enum ChangeSetStatus {
927
952
  CREATE_COMPLETE = "CREATE_COMPLETE",
@@ -1512,20 +1537,28 @@ export declare namespace CreateChangeSetOutput {
1512
1537
  * <p>The template contains resources with capabilities that weren't specified in the
1513
1538
  * Capabilities parameter.</p>
1514
1539
  */
1515
- export interface InsufficientCapabilitiesException extends __SmithyException, $MetadataBearer {
1516
- name: "InsufficientCapabilitiesException";
1517
- $fault: "client";
1540
+ export declare class InsufficientCapabilitiesException extends __BaseException {
1541
+ readonly name: "InsufficientCapabilitiesException";
1542
+ readonly $fault: "client";
1518
1543
  Message?: string;
1544
+ /**
1545
+ * @internal
1546
+ */
1547
+ constructor(opts: __ExceptionOptionType<InsufficientCapabilitiesException, __BaseException>);
1519
1548
  }
1520
1549
  /**
1521
1550
  * <p>The quota for the resource has already been reached.</p>
1522
1551
  * <p>For information on resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation
1523
1552
  * quotas</a> in the <i>CloudFormation User Guide</i>.</p>
1524
1553
  */
1525
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
1526
- name: "LimitExceededException";
1527
- $fault: "client";
1554
+ export declare class LimitExceededException extends __BaseException {
1555
+ readonly name: "LimitExceededException";
1556
+ readonly $fault: "client";
1528
1557
  Message?: string;
1558
+ /**
1559
+ * @internal
1560
+ */
1561
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
1529
1562
  }
1530
1563
  export declare enum OnFailure {
1531
1564
  DELETE = "DELETE",
@@ -2025,52 +2058,76 @@ export declare namespace CreateStackInstancesOutput {
2025
2058
  /**
2026
2059
  * <p>The specified operation isn't valid.</p>
2027
2060
  */
2028
- export interface InvalidOperationException extends __SmithyException, $MetadataBearer {
2029
- name: "InvalidOperationException";
2030
- $fault: "client";
2061
+ export declare class InvalidOperationException extends __BaseException {
2062
+ readonly name: "InvalidOperationException";
2063
+ readonly $fault: "client";
2031
2064
  Message?: string;
2065
+ /**
2066
+ * @internal
2067
+ */
2068
+ constructor(opts: __ExceptionOptionType<InvalidOperationException, __BaseException>);
2032
2069
  }
2033
2070
  /**
2034
2071
  * <p>The specified operation ID already exists.</p>
2035
2072
  */
2036
- export interface OperationIdAlreadyExistsException extends __SmithyException, $MetadataBearer {
2037
- name: "OperationIdAlreadyExistsException";
2038
- $fault: "client";
2073
+ export declare class OperationIdAlreadyExistsException extends __BaseException {
2074
+ readonly name: "OperationIdAlreadyExistsException";
2075
+ readonly $fault: "client";
2039
2076
  Message?: string;
2077
+ /**
2078
+ * @internal
2079
+ */
2080
+ constructor(opts: __ExceptionOptionType<OperationIdAlreadyExistsException, __BaseException>);
2040
2081
  }
2041
2082
  /**
2042
2083
  * <p>Another operation is currently in progress for this stack set. Only one operation can be
2043
2084
  * performed for a stack set at a given time.</p>
2044
2085
  */
2045
- export interface OperationInProgressException extends __SmithyException, $MetadataBearer {
2046
- name: "OperationInProgressException";
2047
- $fault: "client";
2086
+ export declare class OperationInProgressException extends __BaseException {
2087
+ readonly name: "OperationInProgressException";
2088
+ readonly $fault: "client";
2048
2089
  Message?: string;
2090
+ /**
2091
+ * @internal
2092
+ */
2093
+ constructor(opts: __ExceptionOptionType<OperationInProgressException, __BaseException>);
2049
2094
  }
2050
2095
  /**
2051
2096
  * <p>The specified stack set doesn't exist.</p>
2052
2097
  */
2053
- export interface StackSetNotFoundException extends __SmithyException, $MetadataBearer {
2054
- name: "StackSetNotFoundException";
2055
- $fault: "client";
2098
+ export declare class StackSetNotFoundException extends __BaseException {
2099
+ readonly name: "StackSetNotFoundException";
2100
+ readonly $fault: "client";
2056
2101
  Message?: string;
2102
+ /**
2103
+ * @internal
2104
+ */
2105
+ constructor(opts: __ExceptionOptionType<StackSetNotFoundException, __BaseException>);
2057
2106
  }
2058
2107
  /**
2059
2108
  * <p>Another operation has been performed on this stack set since the specified operation was
2060
2109
  * performed.</p>
2061
2110
  */
2062
- export interface StaleRequestException extends __SmithyException, $MetadataBearer {
2063
- name: "StaleRequestException";
2064
- $fault: "client";
2111
+ export declare class StaleRequestException extends __BaseException {
2112
+ readonly name: "StaleRequestException";
2113
+ readonly $fault: "client";
2065
2114
  Message?: string;
2115
+ /**
2116
+ * @internal
2117
+ */
2118
+ constructor(opts: __ExceptionOptionType<StaleRequestException, __BaseException>);
2066
2119
  }
2067
2120
  /**
2068
2121
  * <p>The specified resource exists, but has been changed.</p>
2069
2122
  */
2070
- export interface CreatedButModifiedException extends __SmithyException, $MetadataBearer {
2071
- name: "CreatedButModifiedException";
2072
- $fault: "client";
2123
+ export declare class CreatedButModifiedException extends __BaseException {
2124
+ readonly name: "CreatedButModifiedException";
2125
+ readonly $fault: "client";
2073
2126
  Message?: string;
2127
+ /**
2128
+ * @internal
2129
+ */
2130
+ constructor(opts: __ExceptionOptionType<CreatedButModifiedException, __BaseException>);
2074
2131
  }
2075
2132
  /**
2076
2133
  * <p>Describes whether StackSets performs non-conflicting operations concurrently and queues
@@ -2345,10 +2402,14 @@ export declare namespace CreateStackSetOutput {
2345
2402
  /**
2346
2403
  * <p>The specified name is already in use.</p>
2347
2404
  */
2348
- export interface NameAlreadyExistsException extends __SmithyException, $MetadataBearer {
2349
- name: "NameAlreadyExistsException";
2350
- $fault: "client";
2405
+ export declare class NameAlreadyExistsException extends __BaseException {
2406
+ readonly name: "NameAlreadyExistsException";
2407
+ readonly $fault: "client";
2351
2408
  Message?: string;
2409
+ /**
2410
+ * @internal
2411
+ */
2412
+ constructor(opts: __ExceptionOptionType<NameAlreadyExistsException, __BaseException>);
2352
2413
  }
2353
2414
  export interface DeactivateTypeInput {
2354
2415
  /**
@@ -2421,10 +2482,14 @@ export declare namespace DeleteChangeSetOutput {
2421
2482
  * status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be
2422
2483
  * <code>UPDATE_IN_PROGRESS</code>.</p>
2423
2484
  */
2424
- export interface InvalidChangeSetStatusException extends __SmithyException, $MetadataBearer {
2425
- name: "InvalidChangeSetStatusException";
2426
- $fault: "client";
2485
+ export declare class InvalidChangeSetStatusException extends __BaseException {
2486
+ readonly name: "InvalidChangeSetStatusException";
2487
+ readonly $fault: "client";
2427
2488
  Message?: string;
2489
+ /**
2490
+ * @internal
2491
+ */
2492
+ constructor(opts: __ExceptionOptionType<InvalidChangeSetStatusException, __BaseException>);
2428
2493
  }
2429
2494
  /**
2430
2495
  * <p>The input for <a>DeleteStack</a> action.</p>
@@ -2605,10 +2670,14 @@ export declare namespace DeleteStackSetOutput {
2605
2670
  * instances. Delete all stack instances from the stack set before deleting the stack
2606
2671
  * set.</p>
2607
2672
  */
2608
- export interface StackSetNotEmptyException extends __SmithyException, $MetadataBearer {
2609
- name: "StackSetNotEmptyException";
2610
- $fault: "client";
2673
+ export declare class StackSetNotEmptyException extends __BaseException {
2674
+ readonly name: "StackSetNotEmptyException";
2675
+ readonly $fault: "client";
2611
2676
  Message?: string;
2677
+ /**
2678
+ * @internal
2679
+ */
2680
+ constructor(opts: __ExceptionOptionType<StackSetNotEmptyException, __BaseException>);
2612
2681
  }
2613
2682
  export declare type RegistryType = "HOOK" | "MODULE" | "RESOURCE";
2614
2683
  export interface DeregisterTypeInput {
@@ -3453,10 +3522,14 @@ export declare namespace DescribeStackInstanceOutput {
3453
3522
  /**
3454
3523
  * <p>The specified stack instance doesn't exist.</p>
3455
3524
  */
3456
- export interface StackInstanceNotFoundException extends __SmithyException, $MetadataBearer {
3457
- name: "StackInstanceNotFoundException";
3458
- $fault: "client";
3525
+ export declare class StackInstanceNotFoundException extends __BaseException {
3526
+ readonly name: "StackInstanceNotFoundException";
3527
+ readonly $fault: "client";
3459
3528
  Message?: string;
3529
+ /**
3530
+ * @internal
3531
+ */
3532
+ constructor(opts: __ExceptionOptionType<StackInstanceNotFoundException, __BaseException>);
3460
3533
  }
3461
3534
  /**
3462
3535
  * <p>The input for <a>DescribeStackResource</a> action.</p>
@@ -4732,10 +4805,14 @@ export declare namespace DescribeStackSetOperationOutput {
4732
4805
  /**
4733
4806
  * <p>The specified ID refers to an operation that doesn't exist.</p>
4734
4807
  */
4735
- export interface OperationNotFoundException extends __SmithyException, $MetadataBearer {
4736
- name: "OperationNotFoundException";
4737
- $fault: "client";
4808
+ export declare class OperationNotFoundException extends __BaseException {
4809
+ readonly name: "OperationNotFoundException";
4810
+ readonly $fault: "client";
4738
4811
  Message?: string;
4812
+ /**
4813
+ * @internal
4814
+ */
4815
+ constructor(opts: __ExceptionOptionType<OperationNotFoundException, __BaseException>);
4739
4816
  }
4740
4817
  export interface DescribeTypeInput {
4741
4818
  /**
@@ -5741,10 +5818,14 @@ export declare namespace ImportStacksToStackSetOutput {
5741
5818
  * <p>The specified stack ARN doesn't exist or stack doesn't exist corresponding to the ARN in
5742
5819
  * input.</p>
5743
5820
  */
5744
- export interface StackNotFoundException extends __SmithyException, $MetadataBearer {
5745
- name: "StackNotFoundException";
5746
- $fault: "client";
5821
+ export declare class StackNotFoundException extends __BaseException {
5822
+ readonly name: "StackNotFoundException";
5823
+ readonly $fault: "client";
5747
5824
  Message?: string;
5825
+ /**
5826
+ * @internal
5827
+ */
5828
+ constructor(opts: __ExceptionOptionType<StackNotFoundException, __BaseException>);
5748
5829
  }
5749
5830
  /**
5750
5831
  * <p>The input for the <a>ListChangeSets</a> action.</p>
@@ -7398,19 +7479,27 @@ export declare namespace PublishTypeOutput {
7398
7479
  * <p>Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>. CloudFormation doesn't return this error to
7399
7480
  * users.</p>
7400
7481
  */
7401
- export interface InvalidStateTransitionException extends __SmithyException, $MetadataBearer {
7402
- name: "InvalidStateTransitionException";
7403
- $fault: "client";
7482
+ export declare class InvalidStateTransitionException extends __BaseException {
7483
+ readonly name: "InvalidStateTransitionException";
7484
+ readonly $fault: "client";
7404
7485
  Message?: string;
7486
+ /**
7487
+ * @internal
7488
+ */
7489
+ constructor(opts: __ExceptionOptionType<InvalidStateTransitionException, __BaseException>);
7405
7490
  }
7406
7491
  /**
7407
7492
  * <p>Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>. CloudFormation doesn't return this error to
7408
7493
  * users.</p>
7409
7494
  */
7410
- export interface OperationStatusCheckFailedException extends __SmithyException, $MetadataBearer {
7411
- name: "OperationStatusCheckFailedException";
7412
- $fault: "client";
7495
+ export declare class OperationStatusCheckFailedException extends __BaseException {
7496
+ readonly name: "OperationStatusCheckFailedException";
7497
+ readonly $fault: "client";
7413
7498
  Message?: string;
7499
+ /**
7500
+ * @internal
7501
+ */
7502
+ constructor(opts: __ExceptionOptionType<OperationStatusCheckFailedException, __BaseException>);
7414
7503
  }
7415
7504
  export declare enum OperationStatus {
7416
7505
  FAILED = "FAILED",
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { CloudFormationServiceException } from "./models/CloudFormationServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class CloudFormationServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }