@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.
- package/CHANGELOG.md +50 -0
- package/README.md +19 -24
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +28 -38
- package/dist-cjs/protocols/Aws_restJson1.js +49 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +27 -24
- package/dist-es/protocols/Aws_restJson1.js +51 -4
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/AppConfig.d.ts +75 -70
- package/dist-types/AppConfigClient.d.ts +24 -24
- package/dist-types/commands/CreateApplicationCommand.d.ts +5 -4
- package/dist-types/commands/CreateConfigurationProfileCommand.d.ts +13 -9
- package/dist-types/commands/CreateDeploymentStrategyCommand.d.ts +4 -4
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +8 -7
- package/dist-types/commands/CreateHostedConfigurationVersionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteApplicationCommand.d.ts +1 -1
- package/dist-types/commands/DeleteConfigurationProfileCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDeploymentStrategyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteEnvironmentCommand.d.ts +1 -1
- package/dist-types/commands/DeleteHostedConfigurationVersionCommand.d.ts +2 -1
- package/dist-types/commands/GetApplicationCommand.d.ts +1 -1
- package/dist-types/commands/GetConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/GetConfigurationProfileCommand.d.ts +1 -1
- package/dist-types/commands/GetDeploymentCommand.d.ts +1 -1
- package/dist-types/commands/GetDeploymentStrategyCommand.d.ts +2 -2
- package/dist-types/commands/GetEnvironmentCommand.d.ts +1 -1
- package/dist-types/commands/GetHostedConfigurationVersionCommand.d.ts +1 -1
- package/dist-types/commands/ListApplicationsCommand.d.ts +1 -1
- package/dist-types/commands/ListDeploymentStrategiesCommand.d.ts +1 -1
- package/dist-types/commands/ListEnvironmentsCommand.d.ts +1 -1
- package/dist-types/commands/ListHostedConfigurationVersionsCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +5 -3
- package/dist-types/models/models_0.d.ts +150 -80
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/AppConfigClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +52 -24
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseFloat32 as __limitedParseFloat32, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseFloat32 as __limitedParseFloat32, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_restJson1CreateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
@@ -47,8 +47,8 @@ export var serializeAws_restJson1CreateConfigurationProfileCommand = function (i
|
|
|
47
47
|
else {
|
|
48
48
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
49
49
|
}
|
|
50
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.LocationUri !== undefined && input.LocationUri !== null && { LocationUri: input.LocationUri })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RetrievalRoleArn !== undefined &&
|
|
51
|
-
input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Validators !== undefined &&
|
|
50
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.LocationUri !== undefined && input.LocationUri !== null && { LocationUri: input.LocationUri })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RetrievalRoleArn !== undefined &&
|
|
51
|
+
input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Validators !== undefined &&
|
|
52
52
|
input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
|
|
53
53
|
return [2, new __HttpRequest({
|
|
54
54
|
protocol: protocol,
|
|
@@ -721,7 +721,7 @@ export var serializeAws_restJson1ListConfigurationProfilesCommand = function (in
|
|
|
721
721
|
else {
|
|
722
722
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
723
723
|
}
|
|
724
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken }));
|
|
724
|
+
query = __assign(__assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken })), (input.Type !== undefined && { type: input.Type }));
|
|
725
725
|
return [2, new __HttpRequest({
|
|
726
726
|
protocol: protocol,
|
|
727
727
|
hostname: hostname,
|
|
@@ -1381,6 +1381,7 @@ export var deserializeAws_restJson1CreateConfigurationProfileCommand = function
|
|
|
1381
1381
|
LocationUri: undefined,
|
|
1382
1382
|
Name: undefined,
|
|
1383
1383
|
RetrievalRoleArn: undefined,
|
|
1384
|
+
Type: undefined,
|
|
1384
1385
|
Validators: undefined,
|
|
1385
1386
|
};
|
|
1386
1387
|
_a = __expectNonNull;
|
|
@@ -1406,6 +1407,9 @@ export var deserializeAws_restJson1CreateConfigurationProfileCommand = function
|
|
|
1406
1407
|
if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
|
|
1407
1408
|
contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
|
|
1408
1409
|
}
|
|
1410
|
+
if (data.Type !== undefined && data.Type !== null) {
|
|
1411
|
+
contents.Type = __expectString(data.Type);
|
|
1412
|
+
}
|
|
1409
1413
|
if (data.Validators !== undefined && data.Validators !== null) {
|
|
1410
1414
|
contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
|
|
1411
1415
|
}
|
|
@@ -2341,6 +2345,7 @@ export var deserializeAws_restJson1GetConfigurationProfileCommand = function (ou
|
|
|
2341
2345
|
LocationUri: undefined,
|
|
2342
2346
|
Name: undefined,
|
|
2343
2347
|
RetrievalRoleArn: undefined,
|
|
2348
|
+
Type: undefined,
|
|
2344
2349
|
Validators: undefined,
|
|
2345
2350
|
};
|
|
2346
2351
|
_a = __expectNonNull;
|
|
@@ -2366,6 +2371,9 @@ export var deserializeAws_restJson1GetConfigurationProfileCommand = function (ou
|
|
|
2366
2371
|
if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
|
|
2367
2372
|
contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
|
|
2368
2373
|
}
|
|
2374
|
+
if (data.Type !== undefined && data.Type !== null) {
|
|
2375
|
+
contents.Type = __expectString(data.Type);
|
|
2376
|
+
}
|
|
2369
2377
|
if (data.Validators !== undefined && data.Validators !== null) {
|
|
2370
2378
|
contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
|
|
2371
2379
|
}
|
|
@@ -3971,6 +3979,7 @@ export var deserializeAws_restJson1UpdateConfigurationProfileCommand = function
|
|
|
3971
3979
|
LocationUri: undefined,
|
|
3972
3980
|
Name: undefined,
|
|
3973
3981
|
RetrievalRoleArn: undefined,
|
|
3982
|
+
Type: undefined,
|
|
3974
3983
|
Validators: undefined,
|
|
3975
3984
|
};
|
|
3976
3985
|
_a = __expectNonNull;
|
|
@@ -3996,6 +4005,9 @@ export var deserializeAws_restJson1UpdateConfigurationProfileCommand = function
|
|
|
3996
4005
|
if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
|
|
3997
4006
|
contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
|
|
3998
4007
|
}
|
|
4008
|
+
if (data.Type !== undefined && data.Type !== null) {
|
|
4009
|
+
contents.Type = __expectString(data.Type);
|
|
4010
|
+
}
|
|
3999
4011
|
if (data.Validators !== undefined && data.Validators !== null) {
|
|
4000
4012
|
contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
|
|
4001
4013
|
}
|
|
@@ -4340,12 +4352,20 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
4340
4352
|
name: "BadRequestException",
|
|
4341
4353
|
$fault: "client",
|
|
4342
4354
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4355
|
+
Details: undefined,
|
|
4343
4356
|
Message: undefined,
|
|
4357
|
+
Reason: undefined,
|
|
4344
4358
|
};
|
|
4345
4359
|
data = parsedOutput.body;
|
|
4360
|
+
if (data.Details !== undefined && data.Details !== null) {
|
|
4361
|
+
contents.Details = deserializeAws_restJson1BadRequestDetails(__expectUnion(data.Details), context);
|
|
4362
|
+
}
|
|
4346
4363
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4347
4364
|
contents.Message = __expectString(data.Message);
|
|
4348
4365
|
}
|
|
4366
|
+
if (data.Reason !== undefined && data.Reason !== null) {
|
|
4367
|
+
contents.Reason = __expectString(data.Reason);
|
|
4368
|
+
}
|
|
4349
4369
|
return [2, contents];
|
|
4350
4370
|
});
|
|
4351
4371
|
}); };
|
|
@@ -4498,12 +4518,21 @@ var deserializeAws_restJson1ApplicationList = function (output, context) {
|
|
|
4498
4518
|
return deserializeAws_restJson1Application(entry, context);
|
|
4499
4519
|
});
|
|
4500
4520
|
};
|
|
4521
|
+
var deserializeAws_restJson1BadRequestDetails = function (output, context) {
|
|
4522
|
+
if (output.InvalidConfiguration !== undefined && output.InvalidConfiguration !== null) {
|
|
4523
|
+
return {
|
|
4524
|
+
InvalidConfiguration: deserializeAws_restJson1InvalidConfigurationDetailList(output.InvalidConfiguration, context),
|
|
4525
|
+
};
|
|
4526
|
+
}
|
|
4527
|
+
return { $unknown: Object.entries(output)[0] };
|
|
4528
|
+
};
|
|
4501
4529
|
var deserializeAws_restJson1ConfigurationProfileSummary = function (output, context) {
|
|
4502
4530
|
return {
|
|
4503
4531
|
ApplicationId: __expectString(output.ApplicationId),
|
|
4504
4532
|
Id: __expectString(output.Id),
|
|
4505
4533
|
LocationUri: __expectString(output.LocationUri),
|
|
4506
4534
|
Name: __expectString(output.Name),
|
|
4535
|
+
Type: __expectString(output.Type),
|
|
4507
4536
|
ValidatorTypes: output.ValidatorTypes !== undefined && output.ValidatorTypes !== null
|
|
4508
4537
|
? deserializeAws_restJson1ValidatorTypeList(output.ValidatorTypes, context)
|
|
4509
4538
|
: undefined,
|
|
@@ -4631,6 +4660,24 @@ var deserializeAws_restJson1HostedConfigurationVersionSummaryList = function (ou
|
|
|
4631
4660
|
return deserializeAws_restJson1HostedConfigurationVersionSummary(entry, context);
|
|
4632
4661
|
});
|
|
4633
4662
|
};
|
|
4663
|
+
var deserializeAws_restJson1InvalidConfigurationDetail = function (output, context) {
|
|
4664
|
+
return {
|
|
4665
|
+
Constraint: __expectString(output.Constraint),
|
|
4666
|
+
Location: __expectString(output.Location),
|
|
4667
|
+
Reason: __expectString(output.Reason),
|
|
4668
|
+
Type: __expectString(output.Type),
|
|
4669
|
+
};
|
|
4670
|
+
};
|
|
4671
|
+
var deserializeAws_restJson1InvalidConfigurationDetailList = function (output, context) {
|
|
4672
|
+
return (output || [])
|
|
4673
|
+
.filter(function (e) { return e != null; })
|
|
4674
|
+
.map(function (entry) {
|
|
4675
|
+
if (entry === null) {
|
|
4676
|
+
return null;
|
|
4677
|
+
}
|
|
4678
|
+
return deserializeAws_restJson1InvalidConfigurationDetail(entry, context);
|
|
4679
|
+
});
|
|
4680
|
+
};
|
|
4634
4681
|
var deserializeAws_restJson1Monitor = function (output, context) {
|
|
4635
4682
|
return {
|
|
4636
4683
|
AlarmArn: __expectString(output.AlarmArn),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
28
|
};
|
|
@@ -34,29 +34,25 @@ import { UpdateDeploymentStrategyCommandInput, UpdateDeploymentStrategyCommandOu
|
|
|
34
34
|
import { UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput } from "./commands/UpdateEnvironmentCommand";
|
|
35
35
|
import { ValidateConfigurationCommandInput, ValidateConfigurationCommandOutput } from "./commands/ValidateConfigurationCommand";
|
|
36
36
|
/**
|
|
37
|
-
* <
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* applications hosted on Amazon EC2 instances, AWS Lambda, containers, mobile applications, or IoT
|
|
37
|
+
* <p>Use AppConfig, a capability of Amazon Web Services Systems Manager, to create, manage, and quickly deploy
|
|
38
|
+
* application configurations. AppConfig supports controlled deployments to applications of
|
|
39
|
+
* any size and includes built-in validation checks and monitoring. You can use AppConfig with
|
|
40
|
+
* applications hosted on Amazon EC2 instances, Lambda, containers, mobile applications, or IoT
|
|
42
41
|
* devices.</p>
|
|
43
|
-
*
|
|
44
42
|
* <p>To prevent errors when deploying application configurations, especially for production
|
|
45
|
-
* systems where a simple typo could cause an unexpected outage, AppConfig includes
|
|
46
|
-
* A validator provides a syntactic or semantic check to ensure that the
|
|
47
|
-
* want to deploy works as intended. To validate your application
|
|
48
|
-
* provide a schema or a Lambda function that runs against the
|
|
49
|
-
* configuration deployment or update can only proceed when the
|
|
50
|
-
* valid.</p>
|
|
51
|
-
*
|
|
43
|
+
* systems where a simple typo could cause an unexpected outage, AppConfig includes
|
|
44
|
+
* validators. A validator provides a syntactic or semantic check to ensure that the
|
|
45
|
+
* configuration you want to deploy works as intended. To validate your application
|
|
46
|
+
* configuration data, you provide a schema or a Lambda function that runs against the
|
|
47
|
+
* configuration. The configuration deployment or update can only proceed when the
|
|
48
|
+
* configuration data is valid.</p>
|
|
52
49
|
* <p>During a configuration deployment, AppConfig monitors the application to ensure that the
|
|
53
|
-
* deployment is successful. If the system encounters an error, AppConfig rolls back the
|
|
54
|
-
* to minimize impact for your application users. You can configure a deployment
|
|
55
|
-
* each application or environment that includes deployment criteria, including
|
|
56
|
-
* time, and alarms to monitor. Similar to error monitoring, if a deployment
|
|
57
|
-
* alarm, AppConfig automatically rolls back to the previous version. </p>
|
|
58
|
-
*
|
|
59
|
-
* <p>AppConfig supports multiple use cases. Here are some examples.</p>
|
|
50
|
+
* deployment is successful. If the system encounters an error, AppConfig rolls back the
|
|
51
|
+
* change to minimize impact for your application users. You can configure a deployment
|
|
52
|
+
* strategy for each application or environment that includes deployment criteria, including
|
|
53
|
+
* velocity, bake time, and alarms to monitor. Similar to error monitoring, if a deployment
|
|
54
|
+
* triggers an alarm, AppConfig automatically rolls back to the previous version. </p>
|
|
55
|
+
* <p>AppConfig supports multiple use cases. Here are some examples:</p>
|
|
60
56
|
* <ul>
|
|
61
57
|
* <li>
|
|
62
58
|
* <p>
|
|
@@ -77,118 +73,125 @@ import { ValidateConfigurationCommandInput, ValidateConfigurationCommandOutput }
|
|
|
77
73
|
* </li>
|
|
78
74
|
* <li>
|
|
79
75
|
* <p>
|
|
80
|
-
* <b>Operational issues</b>: Use AppConfig to reduce
|
|
81
|
-
* on your application when a dependency or other external factor impacts the
|
|
76
|
+
* <b>Operational issues</b>: Use AppConfig to reduce
|
|
77
|
+
* stress on your application when a dependency or other external factor impacts the
|
|
82
78
|
* system.</p>
|
|
83
79
|
* </li>
|
|
84
80
|
* </ul>
|
|
85
|
-
* <p>This reference is intended to be used with the <a href="http://docs.aws.amazon.com/
|
|
81
|
+
* <p>This reference is intended to be used with the <a href="http://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html">AppConfig User Guide</a>.</p>
|
|
86
82
|
*/
|
|
87
83
|
export declare class AppConfig extends AppConfigClient {
|
|
88
84
|
/**
|
|
89
|
-
* <p>An application in AppConfig is a logical unit of code that
|
|
90
|
-
* customers. For example, an application can be a microservice
|
|
91
|
-
* a mobile application installed by your users, a serverless
|
|
92
|
-
* Gateway and
|
|
85
|
+
* <p>Creates an application. An application in AppConfig is a logical unit of code that
|
|
86
|
+
* provides capabilities for your customers. For example, an application can be a microservice
|
|
87
|
+
* that runs on Amazon EC2 instances, a mobile application installed by your users, a serverless
|
|
88
|
+
* application using Amazon API Gateway and Lambda, or any system you run on behalf of
|
|
89
|
+
* others.</p>
|
|
93
90
|
*/
|
|
94
91
|
createApplication(args: CreateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<CreateApplicationCommandOutput>;
|
|
95
92
|
createApplication(args: CreateApplicationCommandInput, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
|
|
96
93
|
createApplication(args: CreateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
|
|
97
94
|
/**
|
|
98
|
-
* <p>
|
|
99
|
-
* configuration
|
|
100
|
-
* Amazon
|
|
95
|
+
* <p>Creates a configuration profile, which is information that enables AppConfig to access
|
|
96
|
+
* the configuration source. Valid configuration sources include the AppConfig hosted
|
|
97
|
+
* configuration store, Amazon Web Services Systems Manager (SSM) documents, SSM Parameter Store parameters, Amazon S3
|
|
98
|
+
* objects, or any <a href="http://docs.aws.amazon.com/codepipeline/latest/userguide/integrations-action-type.html#integrations-source">integration source
|
|
99
|
+
* action</a> supported by CodePipeline. A configuration profile includes the following
|
|
100
|
+
* information:</p>
|
|
101
|
+
*
|
|
101
102
|
* <ul>
|
|
102
103
|
* <li>
|
|
103
|
-
* <p>The
|
|
104
|
+
* <p>The URI location of the configuration data.</p>
|
|
104
105
|
* </li>
|
|
105
106
|
* <li>
|
|
106
|
-
* <p>The
|
|
107
|
+
* <p>The Identity and Access Management (IAM) role that provides access to the configuration data.</p>
|
|
107
108
|
* </li>
|
|
108
109
|
* <li>
|
|
109
110
|
* <p>A validator for the configuration data. Available validators include either a JSON
|
|
110
|
-
* Schema or an
|
|
111
|
+
* Schema or an Lambda function.</p>
|
|
111
112
|
* </li>
|
|
112
113
|
* </ul>
|
|
113
|
-
* <p>For more information, see <a href="http://docs.aws.amazon.com/
|
|
114
|
-
* Configuration and a Configuration Profile</a> in the
|
|
115
|
-
*
|
|
114
|
+
* <p>For more information, see <a href="http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-configuration-and-profile.html">Create a
|
|
115
|
+
* Configuration and a Configuration Profile</a> in the <i>AppConfig User
|
|
116
|
+
* Guide</i>.</p>
|
|
116
117
|
*/
|
|
117
118
|
createConfigurationProfile(args: CreateConfigurationProfileCommandInput, options?: __HttpHandlerOptions): Promise<CreateConfigurationProfileCommandOutput>;
|
|
118
119
|
createConfigurationProfile(args: CreateConfigurationProfileCommandInput, cb: (err: any, data?: CreateConfigurationProfileCommandOutput) => void): void;
|
|
119
120
|
createConfigurationProfile(args: CreateConfigurationProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateConfigurationProfileCommandOutput) => void): void;
|
|
120
121
|
/**
|
|
121
|
-
* <p>
|
|
122
|
-
* the designated targets. A deployment strategy includes
|
|
123
|
-
* percentage of targets to receive the deployment during each interval,
|
|
124
|
-
* defines how percentage grows, and bake time.</p>
|
|
122
|
+
* <p>Creates a deployment strategy that defines important criteria for rolling out your
|
|
123
|
+
* configuration to the designated targets. A deployment strategy includes the overall
|
|
124
|
+
* duration required, a percentage of targets to receive the deployment during each interval,
|
|
125
|
+
* an algorithm that defines how percentage grows, and bake time.</p>
|
|
125
126
|
*/
|
|
126
127
|
createDeploymentStrategy(args: CreateDeploymentStrategyCommandInput, options?: __HttpHandlerOptions): Promise<CreateDeploymentStrategyCommandOutput>;
|
|
127
128
|
createDeploymentStrategy(args: CreateDeploymentStrategyCommandInput, cb: (err: any, data?: CreateDeploymentStrategyCommandOutput) => void): void;
|
|
128
129
|
createDeploymentStrategy(args: CreateDeploymentStrategyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDeploymentStrategyCommandOutput) => void): void;
|
|
129
130
|
/**
|
|
130
|
-
* <p>For each application, you define one or more environments. An
|
|
131
|
-
* deployment group of AppConfig targets, such as applications in a
|
|
132
|
-
* <code>Production</code> environment. You can also define
|
|
133
|
-
* subcomponents such as the <code>Web</code>,
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* system rolls back the
|
|
131
|
+
* <p>Creates an environment. For each application, you define one or more environments. An
|
|
132
|
+
* environment is a logical deployment group of AppConfig targets, such as applications in a
|
|
133
|
+
* <code>Beta</code> or <code>Production</code> environment. You can also define
|
|
134
|
+
* environments for application subcomponents such as the <code>Web</code>,
|
|
135
|
+
* <code>Mobile</code> and <code>Back-end</code> components for your application. You can
|
|
136
|
+
* configure Amazon CloudWatch alarms for each environment. The system monitors alarms during a
|
|
137
|
+
* configuration deployment. If an alarm is triggered, the system rolls back the
|
|
138
|
+
* configuration.</p>
|
|
137
139
|
*/
|
|
138
140
|
createEnvironment(args: CreateEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<CreateEnvironmentCommandOutput>;
|
|
139
141
|
createEnvironment(args: CreateEnvironmentCommandInput, cb: (err: any, data?: CreateEnvironmentCommandOutput) => void): void;
|
|
140
142
|
createEnvironment(args: CreateEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEnvironmentCommandOutput) => void): void;
|
|
141
143
|
/**
|
|
142
|
-
* <p>
|
|
144
|
+
* <p>Creates a new configuration in the AppConfig hosted configuration store.</p>
|
|
143
145
|
*/
|
|
144
146
|
createHostedConfigurationVersion(args: CreateHostedConfigurationVersionCommandInput, options?: __HttpHandlerOptions): Promise<CreateHostedConfigurationVersionCommandOutput>;
|
|
145
147
|
createHostedConfigurationVersion(args: CreateHostedConfigurationVersionCommandInput, cb: (err: any, data?: CreateHostedConfigurationVersionCommandOutput) => void): void;
|
|
146
148
|
createHostedConfigurationVersion(args: CreateHostedConfigurationVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateHostedConfigurationVersionCommandOutput) => void): void;
|
|
147
149
|
/**
|
|
148
|
-
* <p>
|
|
150
|
+
* <p>Deletes an application. Deleting an application does not delete a configuration from a
|
|
149
151
|
* host.</p>
|
|
150
152
|
*/
|
|
151
153
|
deleteApplication(args: DeleteApplicationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteApplicationCommandOutput>;
|
|
152
154
|
deleteApplication(args: DeleteApplicationCommandInput, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
|
|
153
155
|
deleteApplication(args: DeleteApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
|
|
154
156
|
/**
|
|
155
|
-
* <p>
|
|
157
|
+
* <p>Deletes a configuration profile. Deleting a configuration profile does not delete a
|
|
156
158
|
* configuration from a host.</p>
|
|
157
159
|
*/
|
|
158
160
|
deleteConfigurationProfile(args: DeleteConfigurationProfileCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConfigurationProfileCommandOutput>;
|
|
159
161
|
deleteConfigurationProfile(args: DeleteConfigurationProfileCommandInput, cb: (err: any, data?: DeleteConfigurationProfileCommandOutput) => void): void;
|
|
160
162
|
deleteConfigurationProfile(args: DeleteConfigurationProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConfigurationProfileCommandOutput) => void): void;
|
|
161
163
|
/**
|
|
162
|
-
* <p>
|
|
164
|
+
* <p>Deletes a deployment strategy. Deleting a deployment strategy does not delete a
|
|
163
165
|
* configuration from a host.</p>
|
|
164
166
|
*/
|
|
165
167
|
deleteDeploymentStrategy(args: DeleteDeploymentStrategyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDeploymentStrategyCommandOutput>;
|
|
166
168
|
deleteDeploymentStrategy(args: DeleteDeploymentStrategyCommandInput, cb: (err: any, data?: DeleteDeploymentStrategyCommandOutput) => void): void;
|
|
167
169
|
deleteDeploymentStrategy(args: DeleteDeploymentStrategyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDeploymentStrategyCommandOutput) => void): void;
|
|
168
170
|
/**
|
|
169
|
-
* <p>
|
|
171
|
+
* <p>Deletes an environment. Deleting an environment does not delete a configuration from a
|
|
170
172
|
* host.</p>
|
|
171
173
|
*/
|
|
172
174
|
deleteEnvironment(args: DeleteEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEnvironmentCommandOutput>;
|
|
173
175
|
deleteEnvironment(args: DeleteEnvironmentCommandInput, cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void): void;
|
|
174
176
|
deleteEnvironment(args: DeleteEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void): void;
|
|
175
177
|
/**
|
|
176
|
-
* <p>
|
|
178
|
+
* <p>Deletes a version of a configuration from the AppConfig hosted configuration
|
|
179
|
+
* store.</p>
|
|
177
180
|
*/
|
|
178
181
|
deleteHostedConfigurationVersion(args: DeleteHostedConfigurationVersionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteHostedConfigurationVersionCommandOutput>;
|
|
179
182
|
deleteHostedConfigurationVersion(args: DeleteHostedConfigurationVersionCommandInput, cb: (err: any, data?: DeleteHostedConfigurationVersionCommandOutput) => void): void;
|
|
180
183
|
deleteHostedConfigurationVersion(args: DeleteHostedConfigurationVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteHostedConfigurationVersionCommandOutput) => void): void;
|
|
181
184
|
/**
|
|
182
|
-
* <p>
|
|
185
|
+
* <p>Retrieves information about an application.</p>
|
|
183
186
|
*/
|
|
184
187
|
getApplication(args: GetApplicationCommandInput, options?: __HttpHandlerOptions): Promise<GetApplicationCommandOutput>;
|
|
185
188
|
getApplication(args: GetApplicationCommandInput, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
|
|
186
189
|
getApplication(args: GetApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
|
|
187
190
|
/**
|
|
188
|
-
* <p>
|
|
191
|
+
* <p>Retrieves information about a configuration.</p>
|
|
189
192
|
* <important>
|
|
190
|
-
* <p>
|
|
191
|
-
*
|
|
193
|
+
* <p>AppConfig uses the value of the <code>ClientConfigurationVersion</code> parameter to
|
|
194
|
+
* identify the configuration version on your clients. If you don’t send
|
|
192
195
|
* <code>ClientConfigurationVersion</code> with each call to
|
|
193
196
|
* <code>GetConfiguration</code>, your clients receive the current configuration. You
|
|
194
197
|
* are charged each time your clients receive a configuration.</p>
|
|
@@ -203,21 +206,21 @@ export declare class AppConfig extends AppConfigClient {
|
|
|
203
206
|
getConfiguration(args: GetConfigurationCommandInput, cb: (err: any, data?: GetConfigurationCommandOutput) => void): void;
|
|
204
207
|
getConfiguration(args: GetConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConfigurationCommandOutput) => void): void;
|
|
205
208
|
/**
|
|
206
|
-
* <p>
|
|
209
|
+
* <p>Retrieves information about a configuration profile.</p>
|
|
207
210
|
*/
|
|
208
211
|
getConfigurationProfile(args: GetConfigurationProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetConfigurationProfileCommandOutput>;
|
|
209
212
|
getConfigurationProfile(args: GetConfigurationProfileCommandInput, cb: (err: any, data?: GetConfigurationProfileCommandOutput) => void): void;
|
|
210
213
|
getConfigurationProfile(args: GetConfigurationProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConfigurationProfileCommandOutput) => void): void;
|
|
211
214
|
/**
|
|
212
|
-
* <p>
|
|
215
|
+
* <p>Retrieves information about a configuration deployment.</p>
|
|
213
216
|
*/
|
|
214
217
|
getDeployment(args: GetDeploymentCommandInput, options?: __HttpHandlerOptions): Promise<GetDeploymentCommandOutput>;
|
|
215
218
|
getDeployment(args: GetDeploymentCommandInput, cb: (err: any, data?: GetDeploymentCommandOutput) => void): void;
|
|
216
219
|
getDeployment(args: GetDeploymentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeploymentCommandOutput) => void): void;
|
|
217
220
|
/**
|
|
218
|
-
* <p>
|
|
221
|
+
* <p>Retrieves information about a deployment strategy. A deployment strategy defines
|
|
219
222
|
* important criteria for rolling out your configuration to the designated targets. A
|
|
220
|
-
* deployment strategy includes
|
|
223
|
+
* deployment strategy includes the overall duration required, a percentage of targets to
|
|
221
224
|
* receive the deployment during each interval, an algorithm that defines how percentage
|
|
222
225
|
* grows, and bake time.</p>
|
|
223
226
|
*/
|
|
@@ -225,7 +228,7 @@ export declare class AppConfig extends AppConfigClient {
|
|
|
225
228
|
getDeploymentStrategy(args: GetDeploymentStrategyCommandInput, cb: (err: any, data?: GetDeploymentStrategyCommandOutput) => void): void;
|
|
226
229
|
getDeploymentStrategy(args: GetDeploymentStrategyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeploymentStrategyCommandOutput) => void): void;
|
|
227
230
|
/**
|
|
228
|
-
* <p>
|
|
231
|
+
* <p>Retrieves information about an environment. An environment is a logical deployment group
|
|
229
232
|
* of AppConfig applications, such as applications in a <code>Production</code> environment or
|
|
230
233
|
* in an <code>EU_Region</code> environment. Each configuration deployment targets an
|
|
231
234
|
* environment. You can enable one or more Amazon CloudWatch alarms for an environment. If an alarm is
|
|
@@ -235,13 +238,13 @@ export declare class AppConfig extends AppConfigClient {
|
|
|
235
238
|
getEnvironment(args: GetEnvironmentCommandInput, cb: (err: any, data?: GetEnvironmentCommandOutput) => void): void;
|
|
236
239
|
getEnvironment(args: GetEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnvironmentCommandOutput) => void): void;
|
|
237
240
|
/**
|
|
238
|
-
* <p>
|
|
241
|
+
* <p>Retrieves information about a specific configuration version.</p>
|
|
239
242
|
*/
|
|
240
243
|
getHostedConfigurationVersion(args: GetHostedConfigurationVersionCommandInput, options?: __HttpHandlerOptions): Promise<GetHostedConfigurationVersionCommandOutput>;
|
|
241
244
|
getHostedConfigurationVersion(args: GetHostedConfigurationVersionCommandInput, cb: (err: any, data?: GetHostedConfigurationVersionCommandOutput) => void): void;
|
|
242
245
|
getHostedConfigurationVersion(args: GetHostedConfigurationVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetHostedConfigurationVersionCommandOutput) => void): void;
|
|
243
246
|
/**
|
|
244
|
-
* <p>
|
|
247
|
+
* <p>Lists all applications in your Amazon Web Services account.</p>
|
|
245
248
|
*/
|
|
246
249
|
listApplications(args: ListApplicationsCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationsCommandOutput>;
|
|
247
250
|
listApplications(args: ListApplicationsCommandInput, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
|
|
@@ -259,19 +262,19 @@ export declare class AppConfig extends AppConfigClient {
|
|
|
259
262
|
listDeployments(args: ListDeploymentsCommandInput, cb: (err: any, data?: ListDeploymentsCommandOutput) => void): void;
|
|
260
263
|
listDeployments(args: ListDeploymentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDeploymentsCommandOutput) => void): void;
|
|
261
264
|
/**
|
|
262
|
-
* <p>
|
|
265
|
+
* <p>Lists deployment strategies.</p>
|
|
263
266
|
*/
|
|
264
267
|
listDeploymentStrategies(args: ListDeploymentStrategiesCommandInput, options?: __HttpHandlerOptions): Promise<ListDeploymentStrategiesCommandOutput>;
|
|
265
268
|
listDeploymentStrategies(args: ListDeploymentStrategiesCommandInput, cb: (err: any, data?: ListDeploymentStrategiesCommandOutput) => void): void;
|
|
266
269
|
listDeploymentStrategies(args: ListDeploymentStrategiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDeploymentStrategiesCommandOutput) => void): void;
|
|
267
270
|
/**
|
|
268
|
-
* <p>
|
|
271
|
+
* <p>Lists the environments for an application.</p>
|
|
269
272
|
*/
|
|
270
273
|
listEnvironments(args: ListEnvironmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListEnvironmentsCommandOutput>;
|
|
271
274
|
listEnvironments(args: ListEnvironmentsCommandInput, cb: (err: any, data?: ListEnvironmentsCommandOutput) => void): void;
|
|
272
275
|
listEnvironments(args: ListEnvironmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnvironmentsCommandOutput) => void): void;
|
|
273
276
|
/**
|
|
274
|
-
* <p>
|
|
277
|
+
* <p>Lists configurations stored in the AppConfig hosted configuration store by
|
|
275
278
|
* version.</p>
|
|
276
279
|
*/
|
|
277
280
|
listHostedConfigurationVersions(args: ListHostedConfigurationVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListHostedConfigurationVersionsCommandOutput>;
|
|
@@ -298,9 +301,11 @@ export declare class AppConfig extends AppConfigClient {
|
|
|
298
301
|
stopDeployment(args: StopDeploymentCommandInput, cb: (err: any, data?: StopDeploymentCommandOutput) => void): void;
|
|
299
302
|
stopDeployment(args: StopDeploymentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopDeploymentCommandOutput) => void): void;
|
|
300
303
|
/**
|
|
301
|
-
* <p>
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
+
* <p>Assigns
|
|
305
|
+
* metadata
|
|
306
|
+
* to an AppConfig resource. Tags help organize and categorize your AppConfig resources. Each
|
|
307
|
+
* tag consists of a key and an optional value, both of which you define. You can specify a
|
|
308
|
+
* maximum of 50 tags for a resource.</p>
|
|
304
309
|
*/
|
|
305
310
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
306
311
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|