@aws-sdk/client-appconfig 3.1075.0 → 3.1076.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/README.md +108 -107
- package/dist-cjs/index.js +1825 -15
- package/dist-es/AppConfig.js +28 -0
- package/dist-es/commands/CreateExperimentDefinitionCommand.js +16 -0
- package/dist-es/commands/DeleteExperimentDefinitionCommand.js +16 -0
- package/dist-es/commands/GetExperimentDefinitionCommand.js +16 -0
- package/dist-es/commands/GetExperimentRunCommand.js +16 -0
- package/dist-es/commands/ListExperimentDefinitionsCommand.js +16 -0
- package/dist-es/commands/ListExperimentRunEventsCommand.js +16 -0
- package/dist-es/commands/ListExperimentRunsCommand.js +16 -0
- package/dist-es/commands/StartExperimentRunCommand.js +16 -0
- package/dist-es/commands/StopExperimentRunCommand.js +16 -0
- package/dist-es/commands/UpdateExperimentDefinitionCommand.js +16 -0
- package/dist-es/commands/UpdateExperimentRunCommand.js +16 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/models/enums.js +23 -0
- package/dist-es/pagination/ListExperimentDefinitionsPaginator.js +4 -0
- package/dist-es/pagination/ListExperimentRunEventsPaginator.js +4 -0
- package/dist-es/pagination/ListExperimentRunsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/schemas/schemas_0.js +328 -49
- package/dist-types/AppConfig.d.ts +130 -107
- package/dist-types/AppConfigClient.d.ts +44 -109
- package/dist-types/commands/CreateApplicationCommand.d.ts +0 -3
- package/dist-types/commands/CreateConfigurationProfileCommand.d.ts +0 -3
- package/dist-types/commands/CreateDeploymentStrategyCommand.d.ts +0 -3
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +0 -3
- package/dist-types/commands/CreateExperimentDefinitionCommand.d.ts +266 -0
- package/dist-types/commands/CreateExtensionAssociationCommand.d.ts +0 -3
- package/dist-types/commands/CreateExtensionCommand.d.ts +0 -3
- package/dist-types/commands/CreateHostedConfigurationVersionCommand.d.ts +1 -4
- package/dist-types/commands/DeleteExperimentDefinitionCommand.d.ts +103 -0
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +3 -0
- package/dist-types/commands/GetExperimentDefinitionCommand.d.ts +184 -0
- package/dist-types/commands/GetExperimentRunCommand.d.ts +209 -0
- package/dist-types/commands/ListDeploymentsCommand.d.ts +2 -0
- package/dist-types/commands/ListExperimentDefinitionsCommand.d.ts +131 -0
- package/dist-types/commands/ListExperimentRunEventsCommand.d.ts +136 -0
- package/dist-types/commands/ListExperimentRunsCommand.d.ts +125 -0
- package/dist-types/commands/StartDeploymentCommand.d.ts +5 -0
- package/dist-types/commands/StartExperimentRunCommand.d.ts +230 -0
- package/dist-types/commands/StopExperimentRunCommand.d.ts +231 -0
- package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +6 -0
- package/dist-types/commands/UpdateExperimentDefinitionCommand.d.ts +237 -0
- package/dist-types/commands/UpdateExperimentRunCommand.d.ts +229 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/index.d.ts +31 -107
- package/dist-types/models/enums.d.ts +63 -0
- package/dist-types/models/errors.d.ts +0 -3
- package/dist-types/models/models_0.d.ts +1080 -37
- package/dist-types/pagination/ListExperimentDefinitionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListExperimentRunEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListExperimentRunsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +39 -0
- package/dist-types/ts3.4/AppConfig.d.ts +209 -0
- package/dist-types/ts3.4/AppConfigClient.d.ts +66 -0
- package/dist-types/ts3.4/commands/CreateExperimentDefinitionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteExperimentDefinitionCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/GetExperimentDefinitionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetExperimentRunCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/ListExperimentDefinitionsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListExperimentRunEventsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListExperimentRunsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StartExperimentRunCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StopExperimentRunCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateExperimentDefinitionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/UpdateExperimentRunCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/enums.d.ts +32 -0
- package/dist-types/ts3.4/models/models_0.d.ts +292 -0
- package/dist-types/ts3.4/pagination/ListExperimentDefinitionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExperimentRunEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExperimentRunsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +39 -0
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -52
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/AppConfigServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -97
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -980
|
@@ -27,6 +27,7 @@ export declare var CreateApplicationRequest$: StaticStructureSchema;
|
|
|
27
27
|
export declare var CreateConfigurationProfileRequest$: StaticStructureSchema;
|
|
28
28
|
export declare var CreateDeploymentStrategyRequest$: StaticStructureSchema;
|
|
29
29
|
export declare var CreateEnvironmentRequest$: StaticStructureSchema;
|
|
30
|
+
export declare var CreateExperimentDefinitionRequest$: StaticStructureSchema;
|
|
30
31
|
export declare var CreateExtensionAssociationRequest$: StaticStructureSchema;
|
|
31
32
|
export declare var CreateExtensionRequest$: StaticStructureSchema;
|
|
32
33
|
export declare var CreateHostedConfigurationVersionRequest$: StaticStructureSchema;
|
|
@@ -34,30 +35,45 @@ export declare var DeleteApplicationRequest$: StaticStructureSchema;
|
|
|
34
35
|
export declare var DeleteConfigurationProfileRequest$: StaticStructureSchema;
|
|
35
36
|
export declare var DeleteDeploymentStrategyRequest$: StaticStructureSchema;
|
|
36
37
|
export declare var DeleteEnvironmentRequest$: StaticStructureSchema;
|
|
38
|
+
export declare var DeleteExperimentDefinitionRequest$: StaticStructureSchema;
|
|
37
39
|
export declare var DeleteExtensionAssociationRequest$: StaticStructureSchema;
|
|
38
40
|
export declare var DeleteExtensionRequest$: StaticStructureSchema;
|
|
39
41
|
export declare var DeleteHostedConfigurationVersionRequest$: StaticStructureSchema;
|
|
40
42
|
export declare var DeletionProtectionSettings$: StaticStructureSchema;
|
|
41
43
|
export declare var Deployment$: StaticStructureSchema;
|
|
42
44
|
export declare var DeploymentEvent$: StaticStructureSchema;
|
|
45
|
+
export declare var DeploymentParameters$: StaticStructureSchema;
|
|
43
46
|
export declare var Deployments$: StaticStructureSchema;
|
|
44
47
|
export declare var DeploymentStrategies$: StaticStructureSchema;
|
|
45
48
|
export declare var DeploymentStrategy$: StaticStructureSchema;
|
|
46
49
|
export declare var DeploymentSummary$: StaticStructureSchema;
|
|
47
50
|
export declare var Environment$: StaticStructureSchema;
|
|
48
51
|
export declare var Environments$: StaticStructureSchema;
|
|
52
|
+
export declare var ExperimentDefinition$: StaticStructureSchema;
|
|
53
|
+
export declare var ExperimentDefinitions$: StaticStructureSchema;
|
|
54
|
+
export declare var ExperimentDefinitionSnapshot$: StaticStructureSchema;
|
|
55
|
+
export declare var ExperimentDefinitionSummary$: StaticStructureSchema;
|
|
56
|
+
export declare var ExperimentRun$: StaticStructureSchema;
|
|
57
|
+
export declare var ExperimentRunEvent$: StaticStructureSchema;
|
|
58
|
+
export declare var ExperimentRunEvents$: StaticStructureSchema;
|
|
59
|
+
export declare var ExperimentRunResult$: StaticStructureSchema;
|
|
60
|
+
export declare var ExperimentRuns$: StaticStructureSchema;
|
|
61
|
+
export declare var ExperimentRunSummary$: StaticStructureSchema;
|
|
49
62
|
export declare var Extension$: StaticStructureSchema;
|
|
50
63
|
export declare var ExtensionAssociation$: StaticStructureSchema;
|
|
51
64
|
export declare var ExtensionAssociations$: StaticStructureSchema;
|
|
52
65
|
export declare var ExtensionAssociationSummary$: StaticStructureSchema;
|
|
53
66
|
export declare var Extensions$: StaticStructureSchema;
|
|
54
67
|
export declare var ExtensionSummary$: StaticStructureSchema;
|
|
68
|
+
export declare var FlagValue$: StaticStructureSchema;
|
|
55
69
|
export declare var GetApplicationRequest$: StaticStructureSchema;
|
|
56
70
|
export declare var GetConfigurationProfileRequest$: StaticStructureSchema;
|
|
57
71
|
export declare var GetConfigurationRequest$: StaticStructureSchema;
|
|
58
72
|
export declare var GetDeploymentRequest$: StaticStructureSchema;
|
|
59
73
|
export declare var GetDeploymentStrategyRequest$: StaticStructureSchema;
|
|
60
74
|
export declare var GetEnvironmentRequest$: StaticStructureSchema;
|
|
75
|
+
export declare var GetExperimentDefinitionRequest$: StaticStructureSchema;
|
|
76
|
+
export declare var GetExperimentRunRequest$: StaticStructureSchema;
|
|
61
77
|
export declare var GetExtensionAssociationRequest$: StaticStructureSchema;
|
|
62
78
|
export declare var GetExtensionRequest$: StaticStructureSchema;
|
|
63
79
|
export declare var GetHostedConfigurationVersionRequest$: StaticStructureSchema;
|
|
@@ -70,6 +86,9 @@ export declare var ListConfigurationProfilesRequest$: StaticStructureSchema;
|
|
|
70
86
|
export declare var ListDeploymentsRequest$: StaticStructureSchema;
|
|
71
87
|
export declare var ListDeploymentStrategiesRequest$: StaticStructureSchema;
|
|
72
88
|
export declare var ListEnvironmentsRequest$: StaticStructureSchema;
|
|
89
|
+
export declare var ListExperimentDefinitionsRequest$: StaticStructureSchema;
|
|
90
|
+
export declare var ListExperimentRunEventsRequest$: StaticStructureSchema;
|
|
91
|
+
export declare var ListExperimentRunsRequest$: StaticStructureSchema;
|
|
73
92
|
export declare var ListExtensionAssociationsRequest$: StaticStructureSchema;
|
|
74
93
|
export declare var ListExtensionsRequest$: StaticStructureSchema;
|
|
75
94
|
export declare var ListHostedConfigurationVersionsRequest$: StaticStructureSchema;
|
|
@@ -78,23 +97,33 @@ export declare var Monitor$: StaticStructureSchema;
|
|
|
78
97
|
export declare var Parameter$: StaticStructureSchema;
|
|
79
98
|
export declare var ResourceTags$: StaticStructureSchema;
|
|
80
99
|
export declare var StartDeploymentRequest$: StaticStructureSchema;
|
|
100
|
+
export declare var StartExperimentRunRequest$: StaticStructureSchema;
|
|
81
101
|
export declare var StopDeploymentRequest$: StaticStructureSchema;
|
|
102
|
+
export declare var StopExperimentRunRequest$: StaticStructureSchema;
|
|
82
103
|
export declare var TagResourceRequest$: StaticStructureSchema;
|
|
104
|
+
export declare var Treatment$: StaticStructureSchema;
|
|
105
|
+
export declare var TreatmentInput$: StaticStructureSchema;
|
|
83
106
|
export declare var UntagResourceRequest$: StaticStructureSchema;
|
|
84
107
|
export declare var UpdateAccountSettingsRequest$: StaticStructureSchema;
|
|
85
108
|
export declare var UpdateApplicationRequest$: StaticStructureSchema;
|
|
86
109
|
export declare var UpdateConfigurationProfileRequest$: StaticStructureSchema;
|
|
87
110
|
export declare var UpdateDeploymentStrategyRequest$: StaticStructureSchema;
|
|
88
111
|
export declare var UpdateEnvironmentRequest$: StaticStructureSchema;
|
|
112
|
+
export declare var UpdateExperimentDefinitionRequest$: StaticStructureSchema;
|
|
113
|
+
export declare var UpdateExperimentRunRequest$: StaticStructureSchema;
|
|
89
114
|
export declare var UpdateExtensionAssociationRequest$: StaticStructureSchema;
|
|
90
115
|
export declare var UpdateExtensionRequest$: StaticStructureSchema;
|
|
91
116
|
export declare var ValidateConfigurationRequest$: StaticStructureSchema;
|
|
92
117
|
export declare var Validator$: StaticStructureSchema;
|
|
118
|
+
export declare var VendedMetricsSettings$: StaticStructureSchema;
|
|
119
|
+
export declare var AttributeValue$: StaticUnionSchema;
|
|
93
120
|
export declare var BadRequestDetails$: StaticUnionSchema;
|
|
121
|
+
export declare var TreatmentOverrides$: StaticUnionSchema;
|
|
94
122
|
export declare var CreateApplication$: StaticOperationSchema;
|
|
95
123
|
export declare var CreateConfigurationProfile$: StaticOperationSchema;
|
|
96
124
|
export declare var CreateDeploymentStrategy$: StaticOperationSchema;
|
|
97
125
|
export declare var CreateEnvironment$: StaticOperationSchema;
|
|
126
|
+
export declare var CreateExperimentDefinition$: StaticOperationSchema;
|
|
98
127
|
export declare var CreateExtension$: StaticOperationSchema;
|
|
99
128
|
export declare var CreateExtensionAssociation$: StaticOperationSchema;
|
|
100
129
|
export declare var CreateHostedConfigurationVersion$: StaticOperationSchema;
|
|
@@ -102,6 +131,7 @@ export declare var DeleteApplication$: StaticOperationSchema;
|
|
|
102
131
|
export declare var DeleteConfigurationProfile$: StaticOperationSchema;
|
|
103
132
|
export declare var DeleteDeploymentStrategy$: StaticOperationSchema;
|
|
104
133
|
export declare var DeleteEnvironment$: StaticOperationSchema;
|
|
134
|
+
export declare var DeleteExperimentDefinition$: StaticOperationSchema;
|
|
105
135
|
export declare var DeleteExtension$: StaticOperationSchema;
|
|
106
136
|
export declare var DeleteExtensionAssociation$: StaticOperationSchema;
|
|
107
137
|
export declare var DeleteHostedConfigurationVersion$: StaticOperationSchema;
|
|
@@ -112,6 +142,8 @@ export declare var GetConfigurationProfile$: StaticOperationSchema;
|
|
|
112
142
|
export declare var GetDeployment$: StaticOperationSchema;
|
|
113
143
|
export declare var GetDeploymentStrategy$: StaticOperationSchema;
|
|
114
144
|
export declare var GetEnvironment$: StaticOperationSchema;
|
|
145
|
+
export declare var GetExperimentDefinition$: StaticOperationSchema;
|
|
146
|
+
export declare var GetExperimentRun$: StaticOperationSchema;
|
|
115
147
|
export declare var GetExtension$: StaticOperationSchema;
|
|
116
148
|
export declare var GetExtensionAssociation$: StaticOperationSchema;
|
|
117
149
|
export declare var GetHostedConfigurationVersion$: StaticOperationSchema;
|
|
@@ -120,12 +152,17 @@ export declare var ListConfigurationProfiles$: StaticOperationSchema;
|
|
|
120
152
|
export declare var ListDeployments$: StaticOperationSchema;
|
|
121
153
|
export declare var ListDeploymentStrategies$: StaticOperationSchema;
|
|
122
154
|
export declare var ListEnvironments$: StaticOperationSchema;
|
|
155
|
+
export declare var ListExperimentDefinitions$: StaticOperationSchema;
|
|
156
|
+
export declare var ListExperimentRunEvents$: StaticOperationSchema;
|
|
157
|
+
export declare var ListExperimentRuns$: StaticOperationSchema;
|
|
123
158
|
export declare var ListExtensionAssociations$: StaticOperationSchema;
|
|
124
159
|
export declare var ListExtensions$: StaticOperationSchema;
|
|
125
160
|
export declare var ListHostedConfigurationVersions$: StaticOperationSchema;
|
|
126
161
|
export declare var ListTagsForResource$: StaticOperationSchema;
|
|
127
162
|
export declare var StartDeployment$: StaticOperationSchema;
|
|
163
|
+
export declare var StartExperimentRun$: StaticOperationSchema;
|
|
128
164
|
export declare var StopDeployment$: StaticOperationSchema;
|
|
165
|
+
export declare var StopExperimentRun$: StaticOperationSchema;
|
|
129
166
|
export declare var TagResource$: StaticOperationSchema;
|
|
130
167
|
export declare var UntagResource$: StaticOperationSchema;
|
|
131
168
|
export declare var UpdateAccountSettings$: StaticOperationSchema;
|
|
@@ -133,6 +170,8 @@ export declare var UpdateApplication$: StaticOperationSchema;
|
|
|
133
170
|
export declare var UpdateConfigurationProfile$: StaticOperationSchema;
|
|
134
171
|
export declare var UpdateDeploymentStrategy$: StaticOperationSchema;
|
|
135
172
|
export declare var UpdateEnvironment$: StaticOperationSchema;
|
|
173
|
+
export declare var UpdateExperimentDefinition$: StaticOperationSchema;
|
|
174
|
+
export declare var UpdateExperimentRun$: StaticOperationSchema;
|
|
136
175
|
export declare var UpdateExtension$: StaticOperationSchema;
|
|
137
176
|
export declare var UpdateExtensionAssociation$: StaticOperationSchema;
|
|
138
177
|
export declare var ValidateConfiguration$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
4
|
+
"version": "3.1076.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
27
|
-
"@smithy/core": "^3.
|
|
28
|
-
"@smithy/fetch-http-handler": "^5.
|
|
29
|
-
"@smithy/node-http-handler": "^4.
|
|
30
|
-
"@smithy/types": "^4.
|
|
24
|
+
"@aws-sdk/core": "^3.974.24",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
26
|
+
"@aws-sdk/types": "^3.973.14",
|
|
27
|
+
"@smithy/core": "^3.27.0",
|
|
28
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
29
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
30
|
+
"@smithy/types": "^4.15.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultAppConfigHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
-
return {
|
|
5
|
-
operation: getSmithyContext(context).operation,
|
|
6
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
-
})(),
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
-
return {
|
|
13
|
-
schemeId: "aws.auth#sigv4",
|
|
14
|
-
signingProperties: {
|
|
15
|
-
name: "appconfig",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.defaultAppConfigHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
-
const options = [];
|
|
28
|
-
switch (authParameters.operation) {
|
|
29
|
-
default: {
|
|
30
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return options;
|
|
34
|
-
};
|
|
35
|
-
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
-
return Object.assign(config_0, {
|
|
38
|
-
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
-
});
|
|
40
|
-
};
|
package/dist-cjs/endpoint/bdd.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const m = "ref";
|
|
3
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { [m]: "Region" }, k = {}, l = [j];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[c, [h]],
|
|
7
|
-
[c, l],
|
|
8
|
-
["aws.partition", l, d],
|
|
9
|
-
[e, [{ [m]: "UseFIPS" }, b]],
|
|
10
|
-
[e, [{ [m]: "UseDualStack" }, b]],
|
|
11
|
-
[e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
|
|
12
|
-
[e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
|
|
13
|
-
[g, [j, "us-gov-east-1"]],
|
|
14
|
-
[g, [j, "us-gov-west-1"]]
|
|
15
|
-
],
|
|
16
|
-
results: [
|
|
17
|
-
[a],
|
|
18
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
19
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
20
|
-
[h, k],
|
|
21
|
-
["https://appconfig-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
22
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
23
|
-
["https://appconfig.us-gov-east-1.amazonaws.com", k],
|
|
24
|
-
["https://appconfig.us-gov-west-1.amazonaws.com", k],
|
|
25
|
-
["https://appconfig-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
26
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
27
|
-
["https://appconfig.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
28
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
29
|
-
["https://appconfig.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
30
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
31
|
-
]
|
|
32
|
-
};
|
|
33
|
-
const root = 2;
|
|
34
|
-
const r = 100_000_000;
|
|
35
|
-
const nodes = new Int32Array([
|
|
36
|
-
-1, 1, -1,
|
|
37
|
-
0, 14, 3,
|
|
38
|
-
1, 4, r + 13,
|
|
39
|
-
2, 5, r + 13,
|
|
40
|
-
3, 8, 6,
|
|
41
|
-
4, 7, r + 12,
|
|
42
|
-
5, r + 10, r + 11,
|
|
43
|
-
4, 12, 9,
|
|
44
|
-
6, 10, r + 9,
|
|
45
|
-
7, r + 6, 11,
|
|
46
|
-
8, r + 7, r + 8,
|
|
47
|
-
5, 13, r + 5,
|
|
48
|
-
6, r + 4, r + 5,
|
|
49
|
-
3, r + 1, 15,
|
|
50
|
-
4, r + 2, r + 3,
|
|
51
|
-
]);
|
|
52
|
-
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
-
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
-
const { bdd } = require("./bdd");
|
|
4
|
-
const cache = new EndpointCache({
|
|
5
|
-
size: 50,
|
|
6
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
|
-
});
|
|
8
|
-
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
-
endpointParams: endpointParams,
|
|
11
|
-
logger: context.logger,
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
-
exports.__ServiceException = __ServiceException;
|
|
3
|
-
exports.AppConfigServiceException = class AppConfigServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, AppConfigServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
const { AppConfigServiceException: __BaseException } = require("./AppConfigServiceException");
|
|
2
|
-
exports.BadRequestException = class BadRequestException extends __BaseException {
|
|
3
|
-
name = "BadRequestException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
Message;
|
|
6
|
-
Reason;
|
|
7
|
-
Details;
|
|
8
|
-
constructor(opts) {
|
|
9
|
-
super({
|
|
10
|
-
name: "BadRequestException",
|
|
11
|
-
$fault: "client",
|
|
12
|
-
...opts,
|
|
13
|
-
});
|
|
14
|
-
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
15
|
-
this.Message = opts.Message;
|
|
16
|
-
this.Reason = opts.Reason;
|
|
17
|
-
this.Details = opts.Details;
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
exports.InternalServerException = class InternalServerException extends __BaseException {
|
|
21
|
-
name = "InternalServerException";
|
|
22
|
-
$fault = "server";
|
|
23
|
-
Message;
|
|
24
|
-
constructor(opts) {
|
|
25
|
-
super({
|
|
26
|
-
name: "InternalServerException",
|
|
27
|
-
$fault: "server",
|
|
28
|
-
...opts,
|
|
29
|
-
});
|
|
30
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
31
|
-
this.Message = opts.Message;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
|
|
35
|
-
name = "ServiceQuotaExceededException";
|
|
36
|
-
$fault = "client";
|
|
37
|
-
Message;
|
|
38
|
-
constructor(opts) {
|
|
39
|
-
super({
|
|
40
|
-
name: "ServiceQuotaExceededException",
|
|
41
|
-
$fault: "client",
|
|
42
|
-
...opts,
|
|
43
|
-
});
|
|
44
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
45
|
-
this.Message = opts.Message;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
49
|
-
name = "ResourceNotFoundException";
|
|
50
|
-
$fault = "client";
|
|
51
|
-
Message;
|
|
52
|
-
ResourceName;
|
|
53
|
-
constructor(opts) {
|
|
54
|
-
super({
|
|
55
|
-
name: "ResourceNotFoundException",
|
|
56
|
-
$fault: "client",
|
|
57
|
-
...opts,
|
|
58
|
-
});
|
|
59
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
60
|
-
this.Message = opts.Message;
|
|
61
|
-
this.ResourceName = opts.ResourceName;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
exports.ConflictException = class ConflictException extends __BaseException {
|
|
65
|
-
name = "ConflictException";
|
|
66
|
-
$fault = "client";
|
|
67
|
-
Message;
|
|
68
|
-
constructor(opts) {
|
|
69
|
-
super({
|
|
70
|
-
name: "ConflictException",
|
|
71
|
-
$fault: "client",
|
|
72
|
-
...opts,
|
|
73
|
-
});
|
|
74
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
75
|
-
this.Message = opts.Message;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
exports.PayloadTooLargeException = class PayloadTooLargeException extends __BaseException {
|
|
79
|
-
name = "PayloadTooLargeException";
|
|
80
|
-
$fault = "client";
|
|
81
|
-
Message;
|
|
82
|
-
Measure;
|
|
83
|
-
Limit;
|
|
84
|
-
Size;
|
|
85
|
-
constructor(opts) {
|
|
86
|
-
super({
|
|
87
|
-
name: "PayloadTooLargeException",
|
|
88
|
-
$fault: "client",
|
|
89
|
-
...opts,
|
|
90
|
-
});
|
|
91
|
-
Object.setPrototypeOf(this, PayloadTooLargeException.prototype);
|
|
92
|
-
this.Message = opts.Message;
|
|
93
|
-
this.Measure = opts.Measure;
|
|
94
|
-
this.Limit = opts.Limit;
|
|
95
|
-
this.Size = opts.Size;
|
|
96
|
-
}
|
|
97
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
-
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
-
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
-
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
-
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
-
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
-
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
10
|
-
const getRuntimeConfig = (config) => {
|
|
11
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
-
return {
|
|
15
|
-
...clientSharedValues,
|
|
16
|
-
...config,
|
|
17
|
-
runtime: "browser",
|
|
18
|
-
defaultsMode,
|
|
19
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
21
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
-
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
-
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
-
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
-
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
-
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
-
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
-
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
11
|
-
const getRuntimeConfig = (config) => {
|
|
12
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
awsCheckVersion(process.version);
|
|
17
|
-
const loaderConfig = {
|
|
18
|
-
profile: config?.profile,
|
|
19
|
-
logger: clientSharedValues.logger,
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
...clientSharedValues,
|
|
23
|
-
...config,
|
|
24
|
-
runtime: "node",
|
|
25
|
-
defaultsMode,
|
|
26
|
-
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
33
|
-
retryMode: config?.retryMode ??
|
|
34
|
-
loadNodeConfig({
|
|
35
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
|
-
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
-
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
3
|
-
const getRuntimeConfig = (config) => {
|
|
4
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
-
return {
|
|
6
|
-
...browserDefaults,
|
|
7
|
-
...config,
|
|
8
|
-
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
-
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
-
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
-
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
-
const { defaultAppConfigHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
-
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
-
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
-
exports.getRuntimeConfig = (config) => {
|
|
10
|
-
return {
|
|
11
|
-
apiVersion: "2019-10-09",
|
|
12
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
14
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
16
|
-
extensions: config?.extensions ?? [],
|
|
17
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAppConfigHttpAuthSchemeProvider,
|
|
18
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
-
{
|
|
20
|
-
schemeId: "aws.auth#sigv4",
|
|
21
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
-
signer: new AwsSdkSigV4Signer(),
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
-
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
28
|
-
defaultNamespace: "com.amazonaws.appconfig",
|
|
29
|
-
errorTypeRegistries,
|
|
30
|
-
version: "2019-10-09",
|
|
31
|
-
serviceTarget: "AmazonAppConfig",
|
|
32
|
-
},
|
|
33
|
-
serviceId: config?.serviceId ?? "AppConfig",
|
|
34
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
37
|
-
};
|
|
38
|
-
};
|