@aws-sdk/client-appconfigdata 3.928.0 → 3.930.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.
- package/dist-cjs/index.js +193 -195
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/AppConfigDataClient.js +2 -0
- package/dist-es/commands/GetLatestConfigurationCommand.js +3 -10
- package/dist-es/commands/StartConfigurationSessionCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -13
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +182 -0
- package/dist-types/AppConfigDataClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +4 -5
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +17 -0
- package/dist-types/ts3.4/AppConfigDataClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -4
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
- package/package.json +34 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -163
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -20
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -29
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
const _AI = "ApplicationIdentifier";
|
|
2
|
+
const _BRD = "BadRequestDetails";
|
|
3
|
+
const _BRE = "BadRequestException";
|
|
4
|
+
const _C = "Configuration";
|
|
5
|
+
const _CPI = "ConfigurationProfileIdentifier";
|
|
6
|
+
const _CT = "ConfigurationToken";
|
|
7
|
+
const _CT_ = "Content-Type";
|
|
8
|
+
const _CTo = "ContentType";
|
|
9
|
+
const _D = "Details";
|
|
10
|
+
const _EI = "EnvironmentIdentifier";
|
|
11
|
+
const _GLC = "GetLatestConfiguration";
|
|
12
|
+
const _GLCR = "GetLatestConfigurationRequest";
|
|
13
|
+
const _GLCRe = "GetLatestConfigurationResponse";
|
|
14
|
+
const _ICT = "InitialConfigurationToken";
|
|
15
|
+
const _IP = "InvalidParameters";
|
|
16
|
+
const _IPD = "InvalidParameterDetail";
|
|
17
|
+
const _IPM = "InvalidParameterMap";
|
|
18
|
+
const _ISE = "InternalServerException";
|
|
19
|
+
const _M = "Message";
|
|
20
|
+
const _NPCT = "NextPollConfigurationToken";
|
|
21
|
+
const _NPCT_ = "Next-Poll-Configuration-Token";
|
|
22
|
+
const _NPIIS = "NextPollIntervalInSeconds";
|
|
23
|
+
const _NPIIS_ = "Next-Poll-Interval-In-Seconds";
|
|
24
|
+
const _P = "Problem";
|
|
25
|
+
const _R = "Reason";
|
|
26
|
+
const _RB = "ReferencedBy";
|
|
27
|
+
const _RMPIIS = "RequiredMinimumPollIntervalInSeconds";
|
|
28
|
+
const _RNFE = "ResourceNotFoundException";
|
|
29
|
+
const _RT = "ResourceType";
|
|
30
|
+
const _SB = "SensitiveBlob";
|
|
31
|
+
const _SCS = "StartConfigurationSession";
|
|
32
|
+
const _SCSR = "StartConfigurationSessionRequest";
|
|
33
|
+
const _SCSRt = "StartConfigurationSessionResponse";
|
|
34
|
+
const _TE = "ThrottlingException";
|
|
35
|
+
const _VL = "VersionLabel";
|
|
36
|
+
const _VL_ = "Version-Label";
|
|
37
|
+
const _c = "client";
|
|
38
|
+
const _ct = "configuration_token";
|
|
39
|
+
const _e = "error";
|
|
40
|
+
const _h = "http";
|
|
41
|
+
const _hE = "httpError";
|
|
42
|
+
const _hH = "httpHeader";
|
|
43
|
+
const _hQ = "httpQuery";
|
|
44
|
+
const _s = "server";
|
|
45
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.appconfigdata";
|
|
46
|
+
const n0 = "com.amazonaws.appconfigdata";
|
|
47
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
48
|
+
import { AppConfigDataServiceException as __AppConfigDataServiceException } from "../models/AppConfigDataServiceException";
|
|
49
|
+
import { BadRequestException as __BadRequestException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, } from "../models/index";
|
|
50
|
+
export var SensitiveBlob = [0, n0, _SB, 8, 21];
|
|
51
|
+
export var BadRequestException = [
|
|
52
|
+
-3,
|
|
53
|
+
n0,
|
|
54
|
+
_BRE,
|
|
55
|
+
{
|
|
56
|
+
[_e]: _c,
|
|
57
|
+
[_hE]: 400,
|
|
58
|
+
},
|
|
59
|
+
[_M, _R, _D],
|
|
60
|
+
[0, 0, () => BadRequestDetails],
|
|
61
|
+
];
|
|
62
|
+
TypeRegistry.for(n0).registerError(BadRequestException, __BadRequestException);
|
|
63
|
+
export var GetLatestConfigurationRequest = [
|
|
64
|
+
3,
|
|
65
|
+
n0,
|
|
66
|
+
_GLCR,
|
|
67
|
+
0,
|
|
68
|
+
[_CT],
|
|
69
|
+
[
|
|
70
|
+
[
|
|
71
|
+
0,
|
|
72
|
+
{
|
|
73
|
+
[_hQ]: _ct,
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
],
|
|
77
|
+
];
|
|
78
|
+
export var GetLatestConfigurationResponse = [
|
|
79
|
+
3,
|
|
80
|
+
n0,
|
|
81
|
+
_GLCRe,
|
|
82
|
+
0,
|
|
83
|
+
[_NPCT, _NPIIS, _CTo, _C, _VL],
|
|
84
|
+
[
|
|
85
|
+
[
|
|
86
|
+
0,
|
|
87
|
+
{
|
|
88
|
+
[_hH]: _NPCT_,
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
1,
|
|
93
|
+
{
|
|
94
|
+
[_hH]: _NPIIS_,
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
[
|
|
98
|
+
0,
|
|
99
|
+
{
|
|
100
|
+
[_hH]: _CT_,
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
[() => SensitiveBlob, 16],
|
|
104
|
+
[
|
|
105
|
+
0,
|
|
106
|
+
{
|
|
107
|
+
[_hH]: _VL_,
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
],
|
|
111
|
+
];
|
|
112
|
+
export var InternalServerException = [
|
|
113
|
+
-3,
|
|
114
|
+
n0,
|
|
115
|
+
_ISE,
|
|
116
|
+
{
|
|
117
|
+
[_e]: _s,
|
|
118
|
+
[_hE]: 500,
|
|
119
|
+
},
|
|
120
|
+
[_M],
|
|
121
|
+
[0],
|
|
122
|
+
];
|
|
123
|
+
TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
|
|
124
|
+
export var InvalidParameterDetail = [3, n0, _IPD, 0, [_P], [0]];
|
|
125
|
+
export var ResourceNotFoundException = [
|
|
126
|
+
-3,
|
|
127
|
+
n0,
|
|
128
|
+
_RNFE,
|
|
129
|
+
{
|
|
130
|
+
[_e]: _c,
|
|
131
|
+
[_hE]: 404,
|
|
132
|
+
},
|
|
133
|
+
[_M, _RT, _RB],
|
|
134
|
+
[0, 0, 128 | 0],
|
|
135
|
+
];
|
|
136
|
+
TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
|
|
137
|
+
export var StartConfigurationSessionRequest = [
|
|
138
|
+
3,
|
|
139
|
+
n0,
|
|
140
|
+
_SCSR,
|
|
141
|
+
0,
|
|
142
|
+
[_AI, _EI, _CPI, _RMPIIS],
|
|
143
|
+
[0, 0, 0, 1],
|
|
144
|
+
];
|
|
145
|
+
export var StartConfigurationSessionResponse = [3, n0, _SCSRt, 0, [_ICT], [0]];
|
|
146
|
+
export var ThrottlingException = [
|
|
147
|
+
-3,
|
|
148
|
+
n0,
|
|
149
|
+
_TE,
|
|
150
|
+
{
|
|
151
|
+
[_e]: _c,
|
|
152
|
+
[_hE]: 429,
|
|
153
|
+
},
|
|
154
|
+
[_M],
|
|
155
|
+
[0],
|
|
156
|
+
];
|
|
157
|
+
TypeRegistry.for(n0).registerError(ThrottlingException, __ThrottlingException);
|
|
158
|
+
export var AppConfigDataServiceException = [-3, _sm, "AppConfigDataServiceException", 0, [], []];
|
|
159
|
+
TypeRegistry.for(_sm).registerError(AppConfigDataServiceException, __AppConfigDataServiceException);
|
|
160
|
+
export var InvalidParameterMap = [2, n0, _IPM, 0, 0, () => InvalidParameterDetail];
|
|
161
|
+
export var StringMap = 128 | 0;
|
|
162
|
+
export var BadRequestDetails = [3, n0, _BRD, 0, [_IP], [() => InvalidParameterMap]];
|
|
163
|
+
export var GetLatestConfiguration = [
|
|
164
|
+
9,
|
|
165
|
+
n0,
|
|
166
|
+
_GLC,
|
|
167
|
+
{
|
|
168
|
+
[_h]: ["GET", "/configuration", 200],
|
|
169
|
+
},
|
|
170
|
+
() => GetLatestConfigurationRequest,
|
|
171
|
+
() => GetLatestConfigurationResponse,
|
|
172
|
+
];
|
|
173
|
+
export var StartConfigurationSession = [
|
|
174
|
+
9,
|
|
175
|
+
n0,
|
|
176
|
+
_SCS,
|
|
177
|
+
{
|
|
178
|
+
[_h]: ["POST", "/configurationsessions", 201],
|
|
179
|
+
},
|
|
180
|
+
() => StartConfigurationSessionRequest,
|
|
181
|
+
() => StartConfigurationSessionResponse,
|
|
182
|
+
];
|
|
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
5
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
6
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
-
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { GetLatestConfigurationCommandInput, GetLatestConfigurationCommandOutput } from "./commands/GetLatestConfigurationCommand";
|
|
11
11
|
import { StartConfigurationSessionCommandInput, StartConfigurationSessionCommandOutput } from "./commands/StartConfigurationSessionCommand";
|
|
@@ -143,6 +143,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
143
143
|
* Optional extensions
|
|
144
144
|
*/
|
|
145
145
|
extensions?: RuntimeExtension[];
|
|
146
|
+
/**
|
|
147
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
148
|
+
* may be overridden. A default will always be set by the client.
|
|
149
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
150
|
+
* the client.
|
|
151
|
+
* @alpha
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
146
155
|
/**
|
|
147
156
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
148
157
|
*/
|
|
@@ -58,11 +58,14 @@ export declare namespace BadRequestDetails {
|
|
|
58
58
|
InvalidParameters?: never;
|
|
59
59
|
$unknown: [string, any];
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated unused in schema-serde mode.
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
61
65
|
interface Visitor<T> {
|
|
62
66
|
InvalidParameters: (value: Record<string, InvalidParameterDetail>) => T;
|
|
63
67
|
_: (name: string, value: any) => T;
|
|
64
68
|
}
|
|
65
|
-
const visit: <T>(value: BadRequestDetails, visitor: Visitor<T>) => T;
|
|
66
69
|
}
|
|
67
70
|
/**
|
|
68
71
|
* @public
|
|
@@ -294,7 +297,3 @@ export interface GetLatestConfigurationResponse {
|
|
|
294
297
|
*/
|
|
295
298
|
VersionLabel?: string | undefined;
|
|
296
299
|
}
|
|
297
|
-
/**
|
|
298
|
-
* @internal
|
|
299
|
-
*/
|
|
300
|
-
export declare const GetLatestConfigurationResponseFilterSensitiveLog: (obj: GetLatestConfigurationResponse) => any;
|
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
29
29
|
profile?: string;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
31
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
32
33
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
34
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
34
35
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
35
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
36
37
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
33
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AppConfigDataHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
17
18
|
serviceId: string;
|
|
18
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
20
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticMapSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var SensitiveBlob: StaticSimpleSchema;
|
|
3
|
+
export declare var BadRequestException: StaticErrorSchema;
|
|
4
|
+
export declare var GetLatestConfigurationRequest: StaticStructureSchema;
|
|
5
|
+
export declare var GetLatestConfigurationResponse: StaticStructureSchema;
|
|
6
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
7
|
+
export declare var InvalidParameterDetail: StaticStructureSchema;
|
|
8
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
9
|
+
export declare var StartConfigurationSessionRequest: StaticStructureSchema;
|
|
10
|
+
export declare var StartConfigurationSessionResponse: StaticStructureSchema;
|
|
11
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
12
|
+
export declare var AppConfigDataServiceException: StaticErrorSchema;
|
|
13
|
+
export declare var InvalidParameterMap: StaticMapSchema;
|
|
14
|
+
export declare var StringMap: number;
|
|
15
|
+
export declare var BadRequestDetails: StaticStructureSchema;
|
|
16
|
+
export declare var GetLatestConfiguration: StaticOperationSchema;
|
|
17
|
+
export declare var StartConfigurationSession: StaticOperationSchema;
|
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -90,6 +93,7 @@ export interface ClientDefaults
|
|
|
90
93
|
retryMode?: string | __Provider<string>;
|
|
91
94
|
logger?: __Logger;
|
|
92
95
|
extensions?: RuntimeExtension[];
|
|
96
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
93
97
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
94
98
|
}
|
|
95
99
|
export type AppConfigDataClientConfigType = Partial<
|
|
@@ -26,7 +26,6 @@ export declare namespace BadRequestDetails {
|
|
|
26
26
|
InvalidParameters: (value: Record<string, InvalidParameterDetail>) => T;
|
|
27
27
|
_: (name: string, value: any) => T;
|
|
28
28
|
}
|
|
29
|
-
const visit: <T>(value: BadRequestDetails, visitor: Visitor<T>) => T;
|
|
30
29
|
}
|
|
31
30
|
export declare const BadRequestReason: {
|
|
32
31
|
readonly INVALID_PARAMETERS: "InvalidParameters";
|
|
@@ -96,6 +95,3 @@ export interface GetLatestConfigurationResponse {
|
|
|
96
95
|
Configuration?: Uint8Array | undefined;
|
|
97
96
|
VersionLabel?: string | undefined;
|
|
98
97
|
}
|
|
99
|
-
export declare const GetLatestConfigurationResponseFilterSensitiveLog: (
|
|
100
|
-
obj: GetLatestConfigurationResponse
|
|
101
|
-
) => any;
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
userAgentAppId?:
|
|
43
47
|
| string
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
retryStrategy?:
|
|
43
47
|
| import("@smithy/types").RetryStrategy
|
|
@@ -37,6 +37,10 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
37
37
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
39
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
40
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
41
|
+
import("@smithy/types").HttpRequest,
|
|
42
|
+
import("@smithy/types").HttpResponse
|
|
43
|
+
>;
|
|
40
44
|
defaultsMode:
|
|
41
45
|
| import("@smithy/smithy-client").DefaultsMode
|
|
42
46
|
| import("@smithy/types").Provider<
|
|
@@ -14,6 +14,10 @@ export declare const getRuntimeConfig: (config: AppConfigDataClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AppConfigDataHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
18
|
+
import("@smithy/types").HttpRequest,
|
|
19
|
+
import("@smithy/types").HttpResponse
|
|
20
|
+
>;
|
|
17
21
|
serviceId: string;
|
|
18
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
23
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticMapSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticSimpleSchema,
|
|
6
|
+
StaticStructureSchema,
|
|
7
|
+
} from "@smithy/types";
|
|
8
|
+
export declare var SensitiveBlob: StaticSimpleSchema;
|
|
9
|
+
export declare var BadRequestException: StaticErrorSchema;
|
|
10
|
+
export declare var GetLatestConfigurationRequest: StaticStructureSchema;
|
|
11
|
+
export declare var GetLatestConfigurationResponse: StaticStructureSchema;
|
|
12
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
13
|
+
export declare var InvalidParameterDetail: StaticStructureSchema;
|
|
14
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
15
|
+
export declare var StartConfigurationSessionRequest: StaticStructureSchema;
|
|
16
|
+
export declare var StartConfigurationSessionResponse: StaticStructureSchema;
|
|
17
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
18
|
+
export declare var AppConfigDataServiceException: StaticErrorSchema;
|
|
19
|
+
export declare var InvalidParameterMap: StaticMapSchema;
|
|
20
|
+
export declare var StringMap: number;
|
|
21
|
+
export declare var BadRequestDetails: StaticStructureSchema;
|
|
22
|
+
export declare var GetLatestConfiguration: StaticOperationSchema;
|
|
23
|
+
export declare var StartConfigurationSession: StaticOperationSchema;
|
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.
|
|
4
|
+
"version": "3.930.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-appconfigdata",
|
|
@@ -20,42 +20,42 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
-
"@smithy/config-resolver": "^4.4.
|
|
35
|
-
"@smithy/core": "^3.
|
|
36
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
37
|
-
"@smithy/hash-node": "^4.2.
|
|
38
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
39
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
41
|
-
"@smithy/middleware-retry": "^4.4.
|
|
42
|
-
"@smithy/middleware-serde": "^4.2.
|
|
43
|
-
"@smithy/middleware-stack": "^4.2.
|
|
44
|
-
"@smithy/node-config-provider": "^4.3.
|
|
45
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
-
"@smithy/protocol-http": "^5.3.
|
|
47
|
-
"@smithy/smithy-client": "^4.9.
|
|
48
|
-
"@smithy/types": "^4.
|
|
49
|
-
"@smithy/url-parser": "^4.2.
|
|
23
|
+
"@aws-sdk/core": "3.930.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.930.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.930.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.930.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.930.0",
|
|
29
|
+
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
30
|
+
"@aws-sdk/types": "3.930.0",
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.930.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.930.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.930.0",
|
|
34
|
+
"@smithy/config-resolver": "^4.4.3",
|
|
35
|
+
"@smithy/core": "^3.18.2",
|
|
36
|
+
"@smithy/fetch-http-handler": "^5.3.6",
|
|
37
|
+
"@smithy/hash-node": "^4.2.5",
|
|
38
|
+
"@smithy/invalid-dependency": "^4.2.5",
|
|
39
|
+
"@smithy/middleware-content-length": "^4.2.5",
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.3.9",
|
|
41
|
+
"@smithy/middleware-retry": "^4.4.9",
|
|
42
|
+
"@smithy/middleware-serde": "^4.2.5",
|
|
43
|
+
"@smithy/middleware-stack": "^4.2.5",
|
|
44
|
+
"@smithy/node-config-provider": "^4.3.5",
|
|
45
|
+
"@smithy/node-http-handler": "^4.4.5",
|
|
46
|
+
"@smithy/protocol-http": "^5.3.5",
|
|
47
|
+
"@smithy/smithy-client": "^4.9.5",
|
|
48
|
+
"@smithy/types": "^4.9.0",
|
|
49
|
+
"@smithy/url-parser": "^4.2.5",
|
|
50
50
|
"@smithy/util-base64": "^4.3.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
55
|
-
"@smithy/util-endpoints": "^3.2.
|
|
56
|
-
"@smithy/util-middleware": "^4.2.
|
|
57
|
-
"@smithy/util-retry": "^4.2.
|
|
58
|
-
"@smithy/util-stream": "^4.5.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.3.8",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.2.11",
|
|
55
|
+
"@smithy/util-endpoints": "^3.2.5",
|
|
56
|
+
"@smithy/util-middleware": "^4.2.5",
|
|
57
|
+
"@smithy/util-retry": "^4.2.5",
|
|
58
|
+
"@smithy/util-stream": "^4.5.6",
|
|
59
59
|
"@smithy/util-utf8": "^4.2.0",
|
|
60
60
|
"tslib": "^2.6.2"
|
|
61
61
|
},
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AppConfigDataServiceException as __BaseException } from "../models/AppConfigDataServiceException";
|
|
5
|
-
import { BadRequestException, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
6
|
-
export const se_GetLatestConfigurationCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {};
|
|
9
|
-
b.bp("/configuration");
|
|
10
|
-
const query = map({
|
|
11
|
-
[_ct]: [, __expectNonNull(input[_CT], `ConfigurationToken`)],
|
|
12
|
-
});
|
|
13
|
-
let body;
|
|
14
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
15
|
-
return b.build();
|
|
16
|
-
};
|
|
17
|
-
export const se_StartConfigurationSessionCommand = async (input, context) => {
|
|
18
|
-
const b = rb(input, context);
|
|
19
|
-
const headers = {
|
|
20
|
-
"content-type": "application/json",
|
|
21
|
-
};
|
|
22
|
-
b.bp("/configurationsessions");
|
|
23
|
-
let body;
|
|
24
|
-
body = JSON.stringify(take(input, {
|
|
25
|
-
ApplicationIdentifier: [],
|
|
26
|
-
ConfigurationProfileIdentifier: [],
|
|
27
|
-
EnvironmentIdentifier: [],
|
|
28
|
-
RequiredMinimumPollIntervalInSeconds: [],
|
|
29
|
-
}));
|
|
30
|
-
b.m("POST").h(headers).b(body);
|
|
31
|
-
return b.build();
|
|
32
|
-
};
|
|
33
|
-
export const de_GetLatestConfigurationCommand = async (output, context) => {
|
|
34
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
35
|
-
return de_CommandError(output, context);
|
|
36
|
-
}
|
|
37
|
-
const contents = map({
|
|
38
|
-
$metadata: deserializeMetadata(output),
|
|
39
|
-
[_NPCT]: [, output.headers[_npct]],
|
|
40
|
-
[_NPIIS]: [() => void 0 !== output.headers[_npiis], () => __strictParseInt32(output.headers[_npiis])],
|
|
41
|
-
[_CTo]: [, output.headers[_ct_]],
|
|
42
|
-
[_VL]: [, output.headers[_vl]],
|
|
43
|
-
});
|
|
44
|
-
const data = await collectBody(output.body, context);
|
|
45
|
-
contents.Configuration = data;
|
|
46
|
-
return contents;
|
|
47
|
-
};
|
|
48
|
-
export const de_StartConfigurationSessionCommand = async (output, context) => {
|
|
49
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
50
|
-
return de_CommandError(output, context);
|
|
51
|
-
}
|
|
52
|
-
const contents = map({
|
|
53
|
-
$metadata: deserializeMetadata(output),
|
|
54
|
-
});
|
|
55
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
56
|
-
const doc = take(data, {
|
|
57
|
-
InitialConfigurationToken: __expectString,
|
|
58
|
-
});
|
|
59
|
-
Object.assign(contents, doc);
|
|
60
|
-
return contents;
|
|
61
|
-
};
|
|
62
|
-
const de_CommandError = async (output, context) => {
|
|
63
|
-
const parsedOutput = {
|
|
64
|
-
...output,
|
|
65
|
-
body: await parseErrorBody(output.body, context),
|
|
66
|
-
};
|
|
67
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
68
|
-
switch (errorCode) {
|
|
69
|
-
case "BadRequestException":
|
|
70
|
-
case "com.amazonaws.appconfigdata#BadRequestException":
|
|
71
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
72
|
-
case "InternalServerException":
|
|
73
|
-
case "com.amazonaws.appconfigdata#InternalServerException":
|
|
74
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
75
|
-
case "ResourceNotFoundException":
|
|
76
|
-
case "com.amazonaws.appconfigdata#ResourceNotFoundException":
|
|
77
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
78
|
-
case "ThrottlingException":
|
|
79
|
-
case "com.amazonaws.appconfigdata#ThrottlingException":
|
|
80
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
81
|
-
default:
|
|
82
|
-
const parsedBody = parsedOutput.body;
|
|
83
|
-
return throwDefaultError({
|
|
84
|
-
output,
|
|
85
|
-
parsedBody,
|
|
86
|
-
errorCode,
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
91
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
92
|
-
const contents = map({});
|
|
93
|
-
const data = parsedOutput.body;
|
|
94
|
-
const doc = take(data, {
|
|
95
|
-
Details: (_) => _json(__expectUnion(_)),
|
|
96
|
-
Message: __expectString,
|
|
97
|
-
Reason: __expectString,
|
|
98
|
-
});
|
|
99
|
-
Object.assign(contents, doc);
|
|
100
|
-
const exception = new BadRequestException({
|
|
101
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
102
|
-
...contents,
|
|
103
|
-
});
|
|
104
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
105
|
-
};
|
|
106
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
107
|
-
const contents = map({});
|
|
108
|
-
const data = parsedOutput.body;
|
|
109
|
-
const doc = take(data, {
|
|
110
|
-
Message: __expectString,
|
|
111
|
-
});
|
|
112
|
-
Object.assign(contents, doc);
|
|
113
|
-
const exception = new InternalServerException({
|
|
114
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
115
|
-
...contents,
|
|
116
|
-
});
|
|
117
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
118
|
-
};
|
|
119
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
120
|
-
const contents = map({});
|
|
121
|
-
const data = parsedOutput.body;
|
|
122
|
-
const doc = take(data, {
|
|
123
|
-
Message: __expectString,
|
|
124
|
-
ReferencedBy: _json,
|
|
125
|
-
ResourceType: __expectString,
|
|
126
|
-
});
|
|
127
|
-
Object.assign(contents, doc);
|
|
128
|
-
const exception = new ResourceNotFoundException({
|
|
129
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
130
|
-
...contents,
|
|
131
|
-
});
|
|
132
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
133
|
-
};
|
|
134
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
135
|
-
const contents = map({});
|
|
136
|
-
const data = parsedOutput.body;
|
|
137
|
-
const doc = take(data, {
|
|
138
|
-
Message: __expectString,
|
|
139
|
-
});
|
|
140
|
-
Object.assign(contents, doc);
|
|
141
|
-
const exception = new ThrottlingException({
|
|
142
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
143
|
-
...contents,
|
|
144
|
-
});
|
|
145
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
146
|
-
};
|
|
147
|
-
const deserializeMetadata = (output) => ({
|
|
148
|
-
httpStatusCode: output.statusCode,
|
|
149
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
150
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
151
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
152
|
-
});
|
|
153
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
154
|
-
const _CT = "ConfigurationToken";
|
|
155
|
-
const _CTo = "ContentType";
|
|
156
|
-
const _NPCT = "NextPollConfigurationToken";
|
|
157
|
-
const _NPIIS = "NextPollIntervalInSeconds";
|
|
158
|
-
const _VL = "VersionLabel";
|
|
159
|
-
const _ct = "configuration_token";
|
|
160
|
-
const _ct_ = "content-type";
|
|
161
|
-
const _npct = "next-poll-configuration-token";
|
|
162
|
-
const _npiis = "next-poll-interval-in-seconds";
|
|
163
|
-
const _vl = "version-label";
|