@aws-sdk/client-appconfigdata 3.337.0 → 3.338.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppConfigDataClient = void 0;
3
+ exports.AppConfigDataClient = exports.__Client = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
6
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
@@ -11,6 +11,7 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
11
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
12
12
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
13
13
  const smithy_client_1 = require("@aws-sdk/smithy-client");
14
+ Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
14
15
  const EndpointParameters_1 = require("./endpoint/EndpointParameters");
15
16
  const runtimeConfig_1 = require("./runtimeConfig");
16
17
  class AppConfigDataClient extends smithy_client_1.Client {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetLatestConfigurationCommand = void 0;
3
+ exports.GetLatestConfigurationCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const models_0_1 = require("../models/models_0");
8
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
10
  class GetLatestConfigurationCommand extends smithy_client_1.Command {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartConfigurationSessionCommand = void 0;
3
+ exports.StartConfigurationSessionCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class StartConfigurationSessionCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
package/dist-cjs/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AppConfigDataServiceException = void 0;
4
4
  const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./AppConfigData"), exports);
6
5
  tslib_1.__exportStar(require("./AppConfigDataClient"), exports);
6
+ tslib_1.__exportStar(require("./AppConfigData"), exports);
7
7
  tslib_1.__exportStar(require("./commands"), exports);
8
8
  tslib_1.__exportStar(require("./models"), exports);
9
9
  var AppConfigDataServiceException_1 = require("./models/AppConfigDataServiceException");
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppConfigDataServiceException = void 0;
3
+ exports.AppConfigDataServiceException = exports.__ServiceException = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
5
6
  class AppConfigDataServiceException extends smithy_client_1.ServiceException {
6
7
  constructor(options) {
7
8
  super(options);
@@ -10,6 +10,7 @@ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware
10
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
11
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
12
12
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
+ export { __Client };
13
14
  export class AppConfigDataClient extends __Client {
14
15
  constructor(configuration) {
15
16
  const _config_0 = __getRuntimeConfig(configuration);
@@ -3,6 +3,7 @@ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { GetLatestConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { de_GetLatestConfigurationCommand, se_GetLatestConfigurationCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
6
7
  export class GetLatestConfigurationCommand extends $Command {
7
8
  static getEndpointParameterInstructions() {
8
9
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_StartConfigurationSessionCommand, se_StartConfigurationSessionCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class StartConfigurationSessionCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
package/dist-es/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./AppConfigData";
2
1
  export * from "./AppConfigDataClient";
2
+ export * from "./AppConfigData";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export { AppConfigDataServiceException } from "./models/AppConfigDataServiceException";
@@ -1,4 +1,5 @@
1
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
+ export { __ServiceException };
2
3
  export class AppConfigDataServiceException extends __ServiceException {
3
4
  constructor(options) {
4
5
  super(options);
@@ -11,6 +11,7 @@ import { Decoder as __Decoder, Encoder as __Encoder, Provider as __Provider, Str
11
11
  import { GetLatestConfigurationCommandInput, GetLatestConfigurationCommandOutput } from "./commands/GetLatestConfigurationCommand";
12
12
  import { StartConfigurationSessionCommandInput, StartConfigurationSessionCommandOutput } from "./commands/StartConfigurationSessionCommand";
13
13
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
14
+ export { __Client };
14
15
  /**
15
16
  * @public
16
17
  */
@@ -125,7 +126,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
125
126
  /**
126
127
  * @public
127
128
  */
128
- type AppConfigDataClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
129
+ export type AppConfigDataClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
129
130
  /**
130
131
  * @public
131
132
  *
@@ -136,7 +137,7 @@ export interface AppConfigDataClientConfig extends AppConfigDataClientConfigType
136
137
  /**
137
138
  * @public
138
139
  */
139
- type AppConfigDataClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
140
+ export type AppConfigDataClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
140
141
  /**
141
142
  * @public
142
143
  *
@@ -219,4 +220,3 @@ export declare class AppConfigDataClient extends __Client<__HttpHandlerOptions,
219
220
  */
220
221
  destroy(): void;
221
222
  }
222
- export {};
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { AppConfigDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppConfigDataClient";
5
5
  import { GetLatestConfigurationRequest, GetLatestConfigurationResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *
@@ -3,6 +3,10 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { AppConfigDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppConfigDataClient";
5
5
  import { StartConfigurationSessionRequest, StartConfigurationSessionResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
6
10
  /**
7
11
  * @public
8
12
  *
@@ -1,5 +1,68 @@
1
- export * from "./AppConfigData";
1
+ /**
2
+ * <p>AppConfig Data provides the data plane APIs your application uses to retrieve
3
+ * configuration data. Here's how it works:</p>
4
+ * <p>Your application retrieves configuration data by first establishing a configuration
5
+ * session using the AppConfig Data <a>StartConfigurationSession</a> API action.
6
+ * Your session's client then makes periodic calls to <a>GetLatestConfiguration</a>
7
+ * to check for and retrieve the latest data available.</p>
8
+ * <p>When calling <code>StartConfigurationSession</code>, your code sends the following
9
+ * information:</p>
10
+ * <ul>
11
+ * <li>
12
+ * <p>Identifiers (ID or name) of an AppConfig application, environment, and
13
+ * configuration profile that the session tracks.</p>
14
+ * </li>
15
+ * <li>
16
+ * <p>(Optional) The minimum amount of time the session's client must wait between calls
17
+ * to <code>GetLatestConfiguration</code>.</p>
18
+ * </li>
19
+ * </ul>
20
+ * <p>In response, AppConfig provides an <code>InitialConfigurationToken</code> to be given to
21
+ * the session's client and used the first time it calls <code>GetLatestConfiguration</code>
22
+ * for that session.</p>
23
+ * <important>
24
+ * <p>This token should only be used once in your first call to
25
+ * <code>GetLatestConfiguration</code>. You <i>must</i> use the new token
26
+ * in the <code>GetLatestConfiguration</code> response
27
+ * (<code>NextPollConfigurationToken</code>) in each subsequent call to
28
+ * <code>GetLatestConfiguration</code>.</p>
29
+ * </important>
30
+ * <p>When calling <code>GetLatestConfiguration</code>, your client code sends the most recent
31
+ * <code>ConfigurationToken</code> value it has and receives in response:</p>
32
+ * <ul>
33
+ * <li>
34
+ * <p>
35
+ * <code>NextPollConfigurationToken</code>: the <code>ConfigurationToken</code> value
36
+ * to use on the next call to <code>GetLatestConfiguration</code>.</p>
37
+ * </li>
38
+ * <li>
39
+ * <p>
40
+ * <code>NextPollIntervalInSeconds</code>: the duration the client should wait before
41
+ * making its next call to <code>GetLatestConfiguration</code>. This duration may vary
42
+ * over the course of the session, so it should be used instead of the value sent on the
43
+ * <code>StartConfigurationSession</code> call.</p>
44
+ * </li>
45
+ * <li>
46
+ * <p>The configuration: the latest data intended for the session. This may be empty if
47
+ * the client already has the latest version of the configuration.</p>
48
+ * </li>
49
+ * </ul>
50
+ * <important>
51
+ * <p>The <code>InitialConfigurationToken</code> and
52
+ * <code>NextPollConfigurationToken</code> should only be used once. To support long poll
53
+ * use cases, the tokens are valid for up to 24 hours. If a
54
+ * <code>GetLatestConfiguration</code> call uses an expired token, the system returns
55
+ * <code>BadRequestException</code>.</p>
56
+ * </important>
57
+ * <p>For more information and to view example CLI commands that show how to retrieve a
58
+ * configuration using the AppConfig Data <code>StartConfigurationSession</code> and
59
+ * <code>GetLatestConfiguration</code> API actions, see <a href="http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration">Retrieving the
60
+ * configuration</a> in the <i>AppConfig User Guide</i>.</p>
61
+ *
62
+ * @packageDocumentation
63
+ */
2
64
  export * from "./AppConfigDataClient";
65
+ export * from "./AppConfigData";
3
66
  export * from "./commands";
4
67
  export * from "./models";
5
68
  export { AppConfigDataServiceException } from "./models/AppConfigDataServiceException";
@@ -1,4 +1,5 @@
1
1
  import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ export { __ServiceException, __ServiceExceptionOptions };
2
3
  /**
3
4
  * @public
4
5
  *
@@ -59,6 +59,7 @@ import {
59
59
  ClientResolvedEndpointParameters,
60
60
  EndpointParameters,
61
61
  } from "./endpoint/EndpointParameters";
62
+ export { __Client };
62
63
  export type ServiceInputTypes =
63
64
  | GetLatestConfigurationCommandInput
64
65
  | StartConfigurationSessionCommandInput;
@@ -89,7 +90,7 @@ export interface ClientDefaults
89
90
  logger?: __Logger;
90
91
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
91
92
  }
92
- type AppConfigDataClientConfigType = Partial<
93
+ export type AppConfigDataClientConfigType = Partial<
93
94
  __SmithyConfiguration<__HttpHandlerOptions>
94
95
  > &
95
96
  ClientDefaults &
@@ -102,7 +103,7 @@ type AppConfigDataClientConfigType = Partial<
102
103
  ClientInputEndpointParameters;
103
104
  export interface AppConfigDataClientConfig
104
105
  extends AppConfigDataClientConfigType {}
105
- type AppConfigDataClientResolvedConfigType =
106
+ export type AppConfigDataClientResolvedConfigType =
106
107
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
107
108
  Required<ClientDefaults> &
108
109
  RegionResolvedConfig &
@@ -124,4 +125,3 @@ export declare class AppConfigDataClient extends __Client<
124
125
  constructor(configuration: AppConfigDataClientConfig);
125
126
  destroy(): void;
126
127
  }
127
- export {};
@@ -15,6 +15,7 @@ import {
15
15
  GetLatestConfigurationRequest,
16
16
  GetLatestConfigurationResponse,
17
17
  } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
18
19
  export interface GetLatestConfigurationCommandInput
19
20
  extends GetLatestConfigurationRequest {}
20
21
  export interface GetLatestConfigurationCommandOutput
@@ -15,6 +15,7 @@ import {
15
15
  StartConfigurationSessionRequest,
16
16
  StartConfigurationSessionResponse,
17
17
  } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
18
19
  export interface StartConfigurationSessionCommandInput
19
20
  extends StartConfigurationSessionRequest {}
20
21
  export interface StartConfigurationSessionCommandOutput
@@ -1,5 +1,5 @@
1
- export * from "./AppConfigData";
2
1
  export * from "./AppConfigDataClient";
2
+ export * from "./AppConfigData";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export { AppConfigDataServiceException } from "./models/AppConfigDataServiceException";
@@ -2,6 +2,7 @@ import {
2
2
  ServiceException as __ServiceException,
3
3
  ServiceExceptionOptions as __ServiceExceptionOptions,
4
4
  } from "@aws-sdk/smithy-client";
5
+ export { __ServiceException, __ServiceExceptionOptions };
5
6
  export declare class AppConfigDataServiceException extends __ServiceException {
6
7
  constructor(options: __ServiceExceptionOptions);
7
8
  }
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.337.0",
4
+ "version": "3.338.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,36 +21,36 @@
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.337.0",
25
- "@aws-sdk/config-resolver": "3.337.0",
26
- "@aws-sdk/credential-provider-node": "3.337.0",
27
- "@aws-sdk/fetch-http-handler": "3.337.0",
28
- "@aws-sdk/hash-node": "3.337.0",
29
- "@aws-sdk/invalid-dependency": "3.337.0",
30
- "@aws-sdk/middleware-content-length": "3.337.0",
31
- "@aws-sdk/middleware-endpoint": "3.337.0",
32
- "@aws-sdk/middleware-host-header": "3.337.0",
33
- "@aws-sdk/middleware-logger": "3.337.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.337.0",
35
- "@aws-sdk/middleware-retry": "3.337.0",
36
- "@aws-sdk/middleware-serde": "3.337.0",
37
- "@aws-sdk/middleware-signing": "3.337.0",
38
- "@aws-sdk/middleware-stack": "3.337.0",
39
- "@aws-sdk/middleware-user-agent": "3.337.0",
40
- "@aws-sdk/node-config-provider": "3.337.0",
41
- "@aws-sdk/node-http-handler": "3.337.0",
42
- "@aws-sdk/smithy-client": "3.337.0",
43
- "@aws-sdk/types": "3.337.0",
44
- "@aws-sdk/url-parser": "3.337.0",
24
+ "@aws-sdk/client-sts": "3.338.0",
25
+ "@aws-sdk/config-resolver": "3.338.0",
26
+ "@aws-sdk/credential-provider-node": "3.338.0",
27
+ "@aws-sdk/fetch-http-handler": "3.338.0",
28
+ "@aws-sdk/hash-node": "3.338.0",
29
+ "@aws-sdk/invalid-dependency": "3.338.0",
30
+ "@aws-sdk/middleware-content-length": "3.338.0",
31
+ "@aws-sdk/middleware-endpoint": "3.338.0",
32
+ "@aws-sdk/middleware-host-header": "3.338.0",
33
+ "@aws-sdk/middleware-logger": "3.338.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.338.0",
35
+ "@aws-sdk/middleware-retry": "3.338.0",
36
+ "@aws-sdk/middleware-serde": "3.338.0",
37
+ "@aws-sdk/middleware-signing": "3.338.0",
38
+ "@aws-sdk/middleware-stack": "3.338.0",
39
+ "@aws-sdk/middleware-user-agent": "3.338.0",
40
+ "@aws-sdk/node-config-provider": "3.338.0",
41
+ "@aws-sdk/node-http-handler": "3.338.0",
42
+ "@aws-sdk/smithy-client": "3.338.0",
43
+ "@aws-sdk/types": "3.338.0",
44
+ "@aws-sdk/url-parser": "3.338.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.337.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.337.0",
50
- "@aws-sdk/util-endpoints": "3.337.0",
51
- "@aws-sdk/util-retry": "3.337.0",
52
- "@aws-sdk/util-user-agent-browser": "3.337.0",
53
- "@aws-sdk/util-user-agent-node": "3.337.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.338.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.338.0",
50
+ "@aws-sdk/util-endpoints": "3.338.0",
51
+ "@aws-sdk/util-retry": "3.338.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.338.0",
53
+ "@aws-sdk/util-user-agent-node": "3.338.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
55
  "@smithy/protocol-http": "^1.0.1",
56
56
  "@smithy/types": "^1.0.0",