@aws-sdk/client-appconfigdata 3.301.0 → 3.303.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.
@@ -3,12 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetLatestConfigurationResponseFilterSensitiveLog = exports.ThrottlingException = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.BadRequestException = exports.BadRequestReason = exports.BadRequestDetails = exports.InvalidParameterProblem = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const AppConfigDataServiceException_1 = require("./AppConfigDataServiceException");
6
- var InvalidParameterProblem;
7
- (function (InvalidParameterProblem) {
8
- InvalidParameterProblem["CORRUPTED"] = "Corrupted";
9
- InvalidParameterProblem["EXPIRED"] = "Expired";
10
- InvalidParameterProblem["POLL_INTERVAL_NOT_SATISFIED"] = "PollIntervalNotSatisfied";
11
- })(InvalidParameterProblem = exports.InvalidParameterProblem || (exports.InvalidParameterProblem = {}));
6
+ exports.InvalidParameterProblem = {
7
+ CORRUPTED: "Corrupted",
8
+ EXPIRED: "Expired",
9
+ POLL_INTERVAL_NOT_SATISFIED: "PollIntervalNotSatisfied",
10
+ };
12
11
  var BadRequestDetails;
13
12
  (function (BadRequestDetails) {
14
13
  BadRequestDetails.visit = (value, visitor) => {
@@ -17,10 +16,9 @@ var BadRequestDetails;
17
16
  return visitor._(value.$unknown[0], value.$unknown[1]);
18
17
  };
19
18
  })(BadRequestDetails = exports.BadRequestDetails || (exports.BadRequestDetails = {}));
20
- var BadRequestReason;
21
- (function (BadRequestReason) {
22
- BadRequestReason["INVALID_PARAMETERS"] = "InvalidParameters";
23
- })(BadRequestReason = exports.BadRequestReason || (exports.BadRequestReason = {}));
19
+ exports.BadRequestReason = {
20
+ INVALID_PARAMETERS: "InvalidParameters",
21
+ };
24
22
  class BadRequestException extends AppConfigDataServiceException_1.AppConfigDataServiceException {
25
23
  constructor(opts) {
26
24
  super({
@@ -51,14 +49,13 @@ class InternalServerException extends AppConfigDataServiceException_1.AppConfigD
51
49
  }
52
50
  }
53
51
  exports.InternalServerException = InternalServerException;
54
- var ResourceType;
55
- (function (ResourceType) {
56
- ResourceType["APPLICATION"] = "Application";
57
- ResourceType["CONFIGURATION"] = "Configuration";
58
- ResourceType["CONFIGURATION_PROFILE"] = "ConfigurationProfile";
59
- ResourceType["DEPLOYMENT"] = "Deployment";
60
- ResourceType["ENVIRONMENT"] = "Environment";
61
- })(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
52
+ exports.ResourceType = {
53
+ APPLICATION: "Application",
54
+ CONFIGURATION: "Configuration",
55
+ CONFIGURATION_PROFILE: "ConfigurationProfile",
56
+ DEPLOYMENT: "Deployment",
57
+ ENVIRONMENT: "Environment",
58
+ };
62
59
  class ResourceNotFoundException extends AppConfigDataServiceException_1.AppConfigDataServiceException {
63
60
  constructor(opts) {
64
61
  super({
@@ -1,11 +1,10 @@
1
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
2
  import { AppConfigDataServiceException as __BaseException } from "./AppConfigDataServiceException";
3
- export var InvalidParameterProblem;
4
- (function (InvalidParameterProblem) {
5
- InvalidParameterProblem["CORRUPTED"] = "Corrupted";
6
- InvalidParameterProblem["EXPIRED"] = "Expired";
7
- InvalidParameterProblem["POLL_INTERVAL_NOT_SATISFIED"] = "PollIntervalNotSatisfied";
8
- })(InvalidParameterProblem || (InvalidParameterProblem = {}));
3
+ export const InvalidParameterProblem = {
4
+ CORRUPTED: "Corrupted",
5
+ EXPIRED: "Expired",
6
+ POLL_INTERVAL_NOT_SATISFIED: "PollIntervalNotSatisfied",
7
+ };
9
8
  export var BadRequestDetails;
10
9
  (function (BadRequestDetails) {
11
10
  BadRequestDetails.visit = (value, visitor) => {
@@ -14,10 +13,9 @@ export var BadRequestDetails;
14
13
  return visitor._(value.$unknown[0], value.$unknown[1]);
15
14
  };
16
15
  })(BadRequestDetails || (BadRequestDetails = {}));
17
- export var BadRequestReason;
18
- (function (BadRequestReason) {
19
- BadRequestReason["INVALID_PARAMETERS"] = "InvalidParameters";
20
- })(BadRequestReason || (BadRequestReason = {}));
16
+ export const BadRequestReason = {
17
+ INVALID_PARAMETERS: "InvalidParameters",
18
+ };
21
19
  export class BadRequestException extends __BaseException {
22
20
  constructor(opts) {
23
21
  super({
@@ -46,14 +44,13 @@ export class InternalServerException extends __BaseException {
46
44
  this.Message = opts.Message;
47
45
  }
48
46
  }
49
- export var ResourceType;
50
- (function (ResourceType) {
51
- ResourceType["APPLICATION"] = "Application";
52
- ResourceType["CONFIGURATION"] = "Configuration";
53
- ResourceType["CONFIGURATION_PROFILE"] = "ConfigurationProfile";
54
- ResourceType["DEPLOYMENT"] = "Deployment";
55
- ResourceType["ENVIRONMENT"] = "Environment";
56
- })(ResourceType || (ResourceType = {}));
47
+ export const ResourceType = {
48
+ APPLICATION: "Application",
49
+ CONFIGURATION: "Configuration",
50
+ CONFIGURATION_PROFILE: "ConfigurationProfile",
51
+ DEPLOYMENT: "Deployment",
52
+ ENVIRONMENT: "Environment",
53
+ };
57
54
  export class ResourceNotFoundException extends __BaseException {
58
55
  constructor(opts) {
59
56
  super({
@@ -2,21 +2,26 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
2
2
  import { AppConfigDataServiceException as __BaseException } from "./AppConfigDataServiceException";
3
3
  /**
4
4
  * @public
5
+ * @enum
5
6
  */
6
- export declare enum InvalidParameterProblem {
7
+ export declare const InvalidParameterProblem: {
7
8
  /**
8
9
  * The parameter was corrupted and could not be understood by the service.
9
10
  */
10
- CORRUPTED = "Corrupted",
11
+ readonly CORRUPTED: "Corrupted";
11
12
  /**
12
13
  * The parameter was expired and can no longer be used.
13
14
  */
14
- EXPIRED = "Expired",
15
+ readonly EXPIRED: "Expired";
15
16
  /**
16
17
  * The client called the service before the time specified in the poll interval.
17
18
  */
18
- POLL_INTERVAL_NOT_SATISFIED = "PollIntervalNotSatisfied"
19
- }
19
+ readonly POLL_INTERVAL_NOT_SATISFIED: "PollIntervalNotSatisfied";
20
+ };
21
+ /**
22
+ * @public
23
+ */
24
+ export type InvalidParameterProblem = (typeof InvalidParameterProblem)[keyof typeof InvalidParameterProblem];
20
25
  /**
21
26
  * @public
22
27
  * <p>Information about an invalid parameter.</p>
@@ -56,14 +61,19 @@ export declare namespace BadRequestDetails {
56
61
  }
57
62
  /**
58
63
  * @public
64
+ * @enum
59
65
  */
60
- export declare enum BadRequestReason {
66
+ export declare const BadRequestReason: {
61
67
  /**
62
68
  * Indicates there was a problem with one or more of the parameters.
63
69
  * See InvalidParameters in the BadRequestDetails for more information.
64
70
  */
65
- INVALID_PARAMETERS = "InvalidParameters"
66
- }
71
+ readonly INVALID_PARAMETERS: "InvalidParameters";
72
+ };
73
+ /**
74
+ * @public
75
+ */
76
+ export type BadRequestReason = (typeof BadRequestReason)[keyof typeof BadRequestReason];
67
77
  /**
68
78
  * @public
69
79
  * <p>The input fails to satisfy the constraints specified by the service.</p>
@@ -100,29 +110,34 @@ export declare class InternalServerException extends __BaseException {
100
110
  }
101
111
  /**
102
112
  * @public
113
+ * @enum
103
114
  */
104
- export declare enum ResourceType {
115
+ export declare const ResourceType: {
105
116
  /**
106
117
  * Resource type value for the Application resource.
107
118
  */
108
- APPLICATION = "Application",
119
+ readonly APPLICATION: "Application";
109
120
  /**
110
121
  * Resource type value for the Configuration resource.
111
122
  */
112
- CONFIGURATION = "Configuration",
123
+ readonly CONFIGURATION: "Configuration";
113
124
  /**
114
125
  * Resource type value for the ConfigurationProfile resource.
115
126
  */
116
- CONFIGURATION_PROFILE = "ConfigurationProfile",
127
+ readonly CONFIGURATION_PROFILE: "ConfigurationProfile";
117
128
  /**
118
129
  * Resource type value for the Deployment resource.
119
130
  */
120
- DEPLOYMENT = "Deployment",
131
+ readonly DEPLOYMENT: "Deployment";
121
132
  /**
122
133
  * Resource type value for the Environment resource.
123
134
  */
124
- ENVIRONMENT = "Environment"
125
- }
135
+ readonly ENVIRONMENT: "Environment";
136
+ };
137
+ /**
138
+ * @public
139
+ */
140
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
126
141
  /**
127
142
  * @public
128
143
  * <p>The requested resource could not be found.</p>
@@ -1,10 +1,12 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { AppConfigDataServiceException as __BaseException } from "./AppConfigDataServiceException";
3
- export declare enum InvalidParameterProblem {
4
- CORRUPTED = "Corrupted",
5
- EXPIRED = "Expired",
6
- POLL_INTERVAL_NOT_SATISFIED = "PollIntervalNotSatisfied",
7
- }
3
+ export declare const InvalidParameterProblem: {
4
+ readonly CORRUPTED: "Corrupted";
5
+ readonly EXPIRED: "Expired";
6
+ readonly POLL_INTERVAL_NOT_SATISFIED: "PollIntervalNotSatisfied";
7
+ };
8
+ export type InvalidParameterProblem =
9
+ (typeof InvalidParameterProblem)[keyof typeof InvalidParameterProblem];
8
10
  export interface InvalidParameterDetail {
9
11
  Problem?: InvalidParameterProblem | string;
10
12
  }
@@ -26,9 +28,11 @@ export declare namespace BadRequestDetails {
26
28
  }
27
29
  const visit: <T>(value: BadRequestDetails, visitor: Visitor<T>) => T;
28
30
  }
29
- export declare enum BadRequestReason {
30
- INVALID_PARAMETERS = "InvalidParameters",
31
- }
31
+ export declare const BadRequestReason: {
32
+ readonly INVALID_PARAMETERS: "InvalidParameters";
33
+ };
34
+ export type BadRequestReason =
35
+ (typeof BadRequestReason)[keyof typeof BadRequestReason];
32
36
  export declare class BadRequestException extends __BaseException {
33
37
  readonly name: "BadRequestException";
34
38
  readonly $fault: "client";
@@ -47,13 +51,14 @@ export declare class InternalServerException extends __BaseException {
47
51
  opts: __ExceptionOptionType<InternalServerException, __BaseException>
48
52
  );
49
53
  }
50
- export declare enum ResourceType {
51
- APPLICATION = "Application",
52
- CONFIGURATION = "Configuration",
53
- CONFIGURATION_PROFILE = "ConfigurationProfile",
54
- DEPLOYMENT = "Deployment",
55
- ENVIRONMENT = "Environment",
56
- }
54
+ export declare const ResourceType: {
55
+ readonly APPLICATION: "Application";
56
+ readonly CONFIGURATION: "Configuration";
57
+ readonly CONFIGURATION_PROFILE: "ConfigurationProfile";
58
+ readonly DEPLOYMENT: "Deployment";
59
+ readonly ENVIRONMENT: "Environment";
60
+ };
61
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
57
62
  export declare class ResourceNotFoundException extends __BaseException {
58
63
  readonly name: "ResourceNotFoundException";
59
64
  readonly $fault: "client";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appconfigdata",
3
3
  "description": "AWS SDK for JavaScript Appconfigdata Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",