@aws-sdk/client-appconfig 3.42.0 → 3.47.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.
Files changed (46) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +19 -24
  3. package/dist-cjs/endpoints.js +1 -0
  4. package/dist-cjs/models/models_0.js +28 -38
  5. package/dist-cjs/protocols/Aws_restJson1.js +49 -0
  6. package/dist-cjs/runtimeConfig.browser.js +7 -2
  7. package/dist-cjs/runtimeConfig.js +9 -3
  8. package/dist-es/endpoints.js +1 -0
  9. package/dist-es/models/models_0.js +27 -24
  10. package/dist-es/protocols/Aws_restJson1.js +51 -4
  11. package/dist-es/runtimeConfig.browser.js +12 -3
  12. package/dist-es/runtimeConfig.js +13 -6
  13. package/dist-types/AppConfig.d.ts +75 -70
  14. package/dist-types/AppConfigClient.d.ts +24 -24
  15. package/dist-types/commands/CreateApplicationCommand.d.ts +5 -4
  16. package/dist-types/commands/CreateConfigurationProfileCommand.d.ts +13 -9
  17. package/dist-types/commands/CreateDeploymentStrategyCommand.d.ts +4 -4
  18. package/dist-types/commands/CreateEnvironmentCommand.d.ts +8 -7
  19. package/dist-types/commands/CreateHostedConfigurationVersionCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteApplicationCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteConfigurationProfileCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteDeploymentStrategyCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteEnvironmentCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteHostedConfigurationVersionCommand.d.ts +2 -1
  25. package/dist-types/commands/GetApplicationCommand.d.ts +1 -1
  26. package/dist-types/commands/GetConfigurationCommand.d.ts +3 -3
  27. package/dist-types/commands/GetConfigurationProfileCommand.d.ts +1 -1
  28. package/dist-types/commands/GetDeploymentCommand.d.ts +1 -1
  29. package/dist-types/commands/GetDeploymentStrategyCommand.d.ts +2 -2
  30. package/dist-types/commands/GetEnvironmentCommand.d.ts +1 -1
  31. package/dist-types/commands/GetHostedConfigurationVersionCommand.d.ts +1 -1
  32. package/dist-types/commands/ListApplicationsCommand.d.ts +1 -1
  33. package/dist-types/commands/ListDeploymentStrategiesCommand.d.ts +1 -1
  34. package/dist-types/commands/ListEnvironmentsCommand.d.ts +1 -1
  35. package/dist-types/commands/ListHostedConfigurationVersionsCommand.d.ts +1 -1
  36. package/dist-types/commands/TagResourceCommand.d.ts +5 -3
  37. package/dist-types/models/models_0.d.ts +150 -80
  38. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  39. package/dist-types/runtimeConfig.d.ts +4 -3
  40. package/dist-types/runtimeConfig.native.d.ts +1 -0
  41. package/dist-types/ts3.4/AppConfigClient.d.ts +3 -1
  42. package/dist-types/ts3.4/models/models_0.d.ts +52 -24
  43. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  44. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  45. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  46. package/package.json +38 -45
@@ -12,14 +12,54 @@ export declare namespace Application {
12
12
  const filterSensitiveLog: (obj: Application) => any;
13
13
  }
14
14
 
15
+ export interface InvalidConfigurationDetail {
16
+
17
+ Constraint?: string;
18
+
19
+ Location?: string;
20
+
21
+ Reason?: string;
22
+
23
+ Type?: string;
24
+ }
25
+ export declare namespace InvalidConfigurationDetail {
26
+
27
+ const filterSensitiveLog: (obj: InvalidConfigurationDetail) => any;
28
+ }
29
+
30
+ export declare type BadRequestDetails = BadRequestDetails.InvalidConfigurationMember | BadRequestDetails.$UnknownMember;
31
+ export declare namespace BadRequestDetails {
32
+
33
+ interface InvalidConfigurationMember {
34
+ InvalidConfiguration: InvalidConfigurationDetail[];
35
+ $unknown?: never;
36
+ }
37
+ interface $UnknownMember {
38
+ InvalidConfiguration?: never;
39
+ $unknown: [
40
+ string,
41
+ any
42
+ ];
43
+ }
44
+ interface Visitor<T> {
45
+ InvalidConfiguration: (value: InvalidConfigurationDetail[]) => T;
46
+ _: (name: string, value: any) => T;
47
+ }
48
+ const visit: <T>(value: BadRequestDetails, visitor: Visitor<T>) => T;
49
+
50
+ const filterSensitiveLog: (obj: BadRequestDetails) => any;
51
+ }
52
+ export declare enum BadRequestReason {
53
+ INVALID_CONFIGURATION = "InvalidConfiguration"
54
+ }
55
+
15
56
  export interface BadRequestException extends __SmithyException, $MetadataBearer {
16
57
  name: "BadRequestException";
17
58
  $fault: "client";
18
59
  Message?: string;
19
- }
20
- export declare namespace BadRequestException {
60
+ Reason?: BadRequestReason | string;
21
61
 
22
- const filterSensitiveLog: (obj: BadRequestException) => any;
62
+ Details?: BadRequestDetails;
23
63
  }
24
64
  export interface CreateApplicationRequest {
25
65
 
@@ -41,10 +81,6 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
41
81
  $fault: "server";
42
82
  Message?: string;
43
83
  }
44
- export declare namespace InternalServerException {
45
-
46
- const filterSensitiveLog: (obj: InternalServerException) => any;
47
- }
48
84
  export declare enum ValidatorType {
49
85
  JSON_SCHEMA = "JSON_SCHEMA",
50
86
  LAMBDA = "LAMBDA"
@@ -75,6 +111,8 @@ export interface ConfigurationProfile {
75
111
  RetrievalRoleArn?: string;
76
112
 
77
113
  Validators?: Validator[];
114
+
115
+ Type?: string;
78
116
  }
79
117
  export declare namespace ConfigurationProfile {
80
118
 
@@ -97,6 +135,8 @@ export interface CreateConfigurationProfileRequest {
97
135
  Tags?: {
98
136
  [key: string]: string;
99
137
  };
138
+
139
+ Type?: string;
100
140
  }
101
141
  export declare namespace CreateConfigurationProfileRequest {
102
142
 
@@ -109,10 +149,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
109
149
  Message?: string;
110
150
  ResourceName?: string;
111
151
  }
112
- export declare namespace ResourceNotFoundException {
113
-
114
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
115
- }
116
152
  export declare enum GrowthType {
117
153
  EXPONENTIAL = "EXPONENTIAL",
118
154
  LINEAR = "LINEAR"
@@ -170,7 +206,7 @@ export declare namespace DeploymentStrategy {
170
206
 
171
207
  export interface Monitor {
172
208
 
173
- AlarmArn?: string;
209
+ AlarmArn: string | undefined;
174
210
 
175
211
  AlarmRoleArn?: string;
176
212
  }
@@ -226,10 +262,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
226
262
  $fault: "client";
227
263
  Message?: string;
228
264
  }
229
- export declare namespace ConflictException {
230
-
231
- const filterSensitiveLog: (obj: ConflictException) => any;
232
- }
233
265
  export interface CreateHostedConfigurationVersionRequest {
234
266
 
235
267
  ApplicationId: string | undefined;
@@ -278,20 +310,12 @@ export interface PayloadTooLargeException extends __SmithyException, $MetadataBe
278
310
  Limit?: number;
279
311
  Size?: number;
280
312
  }
281
- export declare namespace PayloadTooLargeException {
282
-
283
- const filterSensitiveLog: (obj: PayloadTooLargeException) => any;
284
- }
285
313
 
286
314
  export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
287
315
  name: "ServiceQuotaExceededException";
288
316
  $fault: "client";
289
317
  Message?: string;
290
318
  }
291
- export declare namespace ServiceQuotaExceededException {
292
-
293
- const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
294
- }
295
319
  export interface DeleteApplicationRequest {
296
320
 
297
321
  ApplicationId: string | undefined;
@@ -539,6 +563,8 @@ export interface ConfigurationProfileSummary {
539
563
  LocationUri?: string;
540
564
 
541
565
  ValidatorTypes?: (ValidatorType | string)[];
566
+
567
+ Type?: string;
542
568
  }
543
569
  export declare namespace ConfigurationProfileSummary {
544
570
 
@@ -561,6 +587,8 @@ export interface ListConfigurationProfilesRequest {
561
587
  MaxResults?: number;
562
588
 
563
589
  NextToken?: string;
590
+
591
+ Type?: string;
564
592
  }
565
593
  export declare namespace ListConfigurationProfilesRequest {
566
594
 
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { AppConfigClientConfig } from "./AppConfigClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: AppConfigClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: AppConfigClientConfig) => {
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,16 +1,17 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { AppConfigClientConfig } from "./AppConfigClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: AppConfigClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<string>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: AppConfigClientConfig) => {
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
27
28
  tls?: boolean | undefined;
28
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,18 +1,15 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appconfig",
3
3
  "description": "AWS SDK for JavaScript Appconfig Client for Node.js, Browser and React Native",
4
- "version": "3.42.0",
4
+ "version": "3.47.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
8
- "build:docs": "yarn clean:docs && typedoc ./",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
+ "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
- "clean": "yarn clean:dist && yarn clean:docs",
12
- "clean:dist": "rimraf ./dist",
13
- "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
- "test": "exit 0"
11
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
+ "clean": "rimraf ./dist-*"
16
13
  },
17
14
  "main": "./dist-cjs/index.js",
18
15
  "types": "./dist-types/index.d.ts",
@@ -21,48 +18,44 @@
21
18
  "dependencies": {
22
19
  "@aws-crypto/sha256-browser": "2.0.0",
23
20
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.42.0",
25
- "@aws-sdk/config-resolver": "3.40.0",
26
- "@aws-sdk/credential-provider-node": "3.41.0",
27
- "@aws-sdk/fetch-http-handler": "3.40.0",
28
- "@aws-sdk/hash-node": "3.40.0",
29
- "@aws-sdk/invalid-dependency": "3.40.0",
30
- "@aws-sdk/middleware-content-length": "3.40.0",
31
- "@aws-sdk/middleware-host-header": "3.40.0",
32
- "@aws-sdk/middleware-logger": "3.40.0",
33
- "@aws-sdk/middleware-retry": "3.40.0",
34
- "@aws-sdk/middleware-serde": "3.40.0",
35
- "@aws-sdk/middleware-signing": "3.40.0",
36
- "@aws-sdk/middleware-stack": "3.40.0",
37
- "@aws-sdk/middleware-user-agent": "3.40.0",
38
- "@aws-sdk/node-config-provider": "3.40.0",
39
- "@aws-sdk/node-http-handler": "3.40.0",
40
- "@aws-sdk/protocol-http": "3.40.0",
41
- "@aws-sdk/smithy-client": "3.41.0",
42
- "@aws-sdk/types": "3.40.0",
43
- "@aws-sdk/url-parser": "3.40.0",
44
- "@aws-sdk/util-base64-browser": "3.37.0",
45
- "@aws-sdk/util-base64-node": "3.37.0",
46
- "@aws-sdk/util-body-length-browser": "3.37.0",
47
- "@aws-sdk/util-body-length-node": "3.37.0",
48
- "@aws-sdk/util-user-agent-browser": "3.40.0",
49
- "@aws-sdk/util-user-agent-node": "3.40.0",
50
- "@aws-sdk/util-utf8-browser": "3.37.0",
51
- "@aws-sdk/util-utf8-node": "3.37.0",
21
+ "@aws-sdk/client-sts": "3.47.0",
22
+ "@aws-sdk/config-resolver": "3.47.0",
23
+ "@aws-sdk/credential-provider-node": "3.47.0",
24
+ "@aws-sdk/fetch-http-handler": "3.47.0",
25
+ "@aws-sdk/hash-node": "3.47.0",
26
+ "@aws-sdk/invalid-dependency": "3.47.0",
27
+ "@aws-sdk/middleware-content-length": "3.47.0",
28
+ "@aws-sdk/middleware-host-header": "3.47.0",
29
+ "@aws-sdk/middleware-logger": "3.47.0",
30
+ "@aws-sdk/middleware-retry": "3.47.0",
31
+ "@aws-sdk/middleware-serde": "3.47.0",
32
+ "@aws-sdk/middleware-signing": "3.47.0",
33
+ "@aws-sdk/middleware-stack": "3.47.0",
34
+ "@aws-sdk/middleware-user-agent": "3.47.0",
35
+ "@aws-sdk/node-config-provider": "3.47.0",
36
+ "@aws-sdk/node-http-handler": "3.47.0",
37
+ "@aws-sdk/protocol-http": "3.47.0",
38
+ "@aws-sdk/smithy-client": "3.47.0",
39
+ "@aws-sdk/types": "3.47.0",
40
+ "@aws-sdk/url-parser": "3.47.0",
41
+ "@aws-sdk/util-base64-browser": "3.47.0",
42
+ "@aws-sdk/util-base64-node": "3.47.0",
43
+ "@aws-sdk/util-body-length-browser": "3.47.0",
44
+ "@aws-sdk/util-body-length-node": "3.47.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.47.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.47.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.47.0",
48
+ "@aws-sdk/util-user-agent-node": "3.47.0",
49
+ "@aws-sdk/util-utf8-browser": "3.47.0",
50
+ "@aws-sdk/util-utf8-node": "3.47.0",
52
51
  "tslib": "^2.3.0"
53
52
  },
54
53
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.38.0",
56
- "@types/node": "^12.7.5",
57
- "downlevel-dts": "0.7.0",
58
- "jest": "^26.1.0",
59
- "rimraf": "^3.0.0",
60
- "ts-jest": "^26.4.1",
61
- "typedoc": "^0.19.2",
62
- "typescript": "~4.3.5"
54
+ "@aws-sdk/service-client-documentation-generator": "3.47.0",
55
+ "@types/node": "^12.7.5"
63
56
  },
64
57
  "engines": {
65
- "node": ">=10.0.0"
58
+ "node": ">=12.0.0"
66
59
  },
67
60
  "typesVersions": {
68
61
  "<4.0": {