@aws-sdk/client-config-service 3.137.0 → 3.142.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +1 -1
  3. package/dist-cjs/ConfigService.js +15 -0
  4. package/dist-cjs/commands/ListConformancePackComplianceScoresCommand.js +36 -0
  5. package/dist-cjs/commands/PutConformancePackCommand.js +2 -1
  6. package/dist-cjs/commands/PutDeliveryChannelCommand.js +2 -2
  7. package/dist-cjs/commands/PutEvaluationsCommand.js +3 -3
  8. package/dist-cjs/commands/PutExternalEvaluationCommand.js +3 -3
  9. package/dist-cjs/commands/index.js +1 -0
  10. package/dist-cjs/models/models_0.js +30 -29
  11. package/dist-cjs/models/models_1.js +25 -1
  12. package/dist-cjs/pagination/ListConformancePackComplianceScoresPaginator.js +36 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_json1_1.js +550 -828
  15. package/dist-es/ConfigService.js +15 -0
  16. package/dist-es/commands/ListConformancePackComplianceScoresCommand.js +39 -0
  17. package/dist-es/commands/PutConformancePackCommand.js +2 -1
  18. package/dist-es/commands/PutDeliveryChannelCommand.js +1 -1
  19. package/dist-es/commands/PutEvaluationsCommand.js +1 -1
  20. package/dist-es/commands/PutExternalEvaluationCommand.js +1 -1
  21. package/dist-es/commands/index.js +1 -0
  22. package/dist-es/models/models_0.js +13 -6
  23. package/dist-es/models/models_1.js +6 -0
  24. package/dist-es/pagination/ListConformancePackComplianceScoresPaginator.js +75 -0
  25. package/dist-es/pagination/index.js +1 -0
  26. package/dist-es/protocols/Aws_json1_1.js +820 -826
  27. package/dist-types/ConfigService.d.ts +70 -38
  28. package/dist-types/ConfigServiceClient.d.ts +3 -2
  29. package/dist-types/commands/ListConformancePackComplianceScoresCommand.d.ts +41 -0
  30. package/dist-types/commands/PutConfigRuleCommand.d.ts +27 -21
  31. package/dist-types/commands/PutConfigurationAggregatorCommand.d.ts +1 -1
  32. package/dist-types/commands/PutConformancePackCommand.d.ts +4 -3
  33. package/dist-types/commands/PutDeliveryChannelCommand.d.ts +1 -1
  34. package/dist-types/commands/PutEvaluationsCommand.d.ts +1 -1
  35. package/dist-types/commands/PutExternalEvaluationCommand.d.ts +1 -1
  36. package/dist-types/commands/PutOrganizationConfigRuleCommand.d.ts +24 -11
  37. package/dist-types/commands/PutOrganizationConformancePackCommand.d.ts +2 -2
  38. package/dist-types/commands/SelectResourceConfigCommand.d.ts +1 -1
  39. package/dist-types/commands/index.d.ts +1 -0
  40. package/dist-types/models/models_0.d.ts +114 -117
  41. package/dist-types/models/models_1.d.ts +104 -5
  42. package/dist-types/pagination/ListConformancePackComplianceScoresPaginator.d.ts +4 -0
  43. package/dist-types/pagination/index.d.ts +1 -0
  44. package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
  45. package/dist-types/ts3.4/ConfigService.d.ts +5 -0
  46. package/dist-types/ts3.4/ConfigServiceClient.d.ts +3 -2
  47. package/dist-types/ts3.4/commands/ListConformancePackComplianceScoresCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/PutConformancePackCommand.d.ts +2 -1
  49. package/dist-types/ts3.4/commands/PutDeliveryChannelCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/PutEvaluationsCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/PutExternalEvaluationCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +47 -43
  54. package/dist-types/ts3.4/models/models_1.d.ts +44 -1
  55. package/dist-types/ts3.4/pagination/ListConformancePackComplianceScoresPaginator.d.ts +4 -0
  56. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  57. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
  58. package/package.json +6 -6
@@ -61,6 +61,7 @@ import { GetOrganizationCustomRulePolicyCommand, } from "./commands/GetOrganizat
61
61
  import { GetResourceConfigHistoryCommand, } from "./commands/GetResourceConfigHistoryCommand";
62
62
  import { GetStoredQueryCommand, } from "./commands/GetStoredQueryCommand";
63
63
  import { ListAggregateDiscoveredResourcesCommand, } from "./commands/ListAggregateDiscoveredResourcesCommand";
64
+ import { ListConformancePackComplianceScoresCommand, } from "./commands/ListConformancePackComplianceScoresCommand";
64
65
  import { ListDiscoveredResourcesCommand, } from "./commands/ListDiscoveredResourcesCommand";
65
66
  import { ListStoredQueriesCommand, } from "./commands/ListStoredQueriesCommand";
66
67
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -961,6 +962,20 @@ var ConfigService = (function (_super) {
961
962
  return this.send(command, optionsOrCb);
962
963
  }
963
964
  };
965
+ ConfigService.prototype.listConformancePackComplianceScores = function (args, optionsOrCb, cb) {
966
+ var command = new ListConformancePackComplianceScoresCommand(args);
967
+ if (typeof optionsOrCb === "function") {
968
+ this.send(command, optionsOrCb);
969
+ }
970
+ else if (typeof cb === "function") {
971
+ if (typeof optionsOrCb !== "object")
972
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
973
+ this.send(command, optionsOrCb || {}, cb);
974
+ }
975
+ else {
976
+ return this.send(command, optionsOrCb);
977
+ }
978
+ };
964
979
  ConfigService.prototype.listDiscoveredResources = function (args, optionsOrCb, cb) {
965
980
  var command = new ListDiscoveredResourcesCommand(args);
966
981
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListConformancePackComplianceScoresRequestFilterSensitiveLog, ListConformancePackComplianceScoresResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListConformancePackComplianceScoresCommand, serializeAws_json1_1ListConformancePackComplianceScoresCommand, } from "../protocols/Aws_json1_1";
6
+ var ListConformancePackComplianceScoresCommand = (function (_super) {
7
+ __extends(ListConformancePackComplianceScoresCommand, _super);
8
+ function ListConformancePackComplianceScoresCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListConformancePackComplianceScoresCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConfigServiceClient";
18
+ var commandName = "ListConformancePackComplianceScoresCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListConformancePackComplianceScoresRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: ListConformancePackComplianceScoresResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListConformancePackComplianceScoresCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ListConformancePackComplianceScoresCommand(input, context);
33
+ };
34
+ ListConformancePackComplianceScoresCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListConformancePackComplianceScoresCommand(output, context);
36
+ };
37
+ return ListConformancePackComplianceScoresCommand;
38
+ }($Command));
39
+ export { ListConformancePackComplianceScoresCommand };
@@ -1,7 +1,8 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { PutConformancePackRequestFilterSensitiveLog, PutConformancePackResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { PutConformancePackRequestFilterSensitiveLog } from "../models/models_0";
5
+ import { PutConformancePackResponseFilterSensitiveLog } from "../models/models_1";
5
6
  import { deserializeAws_json1_1PutConformancePackCommand, serializeAws_json1_1PutConformancePackCommand, } from "../protocols/Aws_json1_1";
6
7
  var PutConformancePackCommand = (function (_super) {
7
8
  __extends(PutConformancePackCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { PutDeliveryChannelRequestFilterSensitiveLog } from "../models/models_0";
4
+ import { PutDeliveryChannelRequestFilterSensitiveLog } from "../models/models_1";
5
5
  import { deserializeAws_json1_1PutDeliveryChannelCommand, serializeAws_json1_1PutDeliveryChannelCommand, } from "../protocols/Aws_json1_1";
6
6
  var PutDeliveryChannelCommand = (function (_super) {
7
7
  __extends(PutDeliveryChannelCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { PutEvaluationsRequestFilterSensitiveLog, PutEvaluationsResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { PutEvaluationsRequestFilterSensitiveLog, PutEvaluationsResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_json1_1PutEvaluationsCommand, serializeAws_json1_1PutEvaluationsCommand, } from "../protocols/Aws_json1_1";
6
6
  var PutEvaluationsCommand = (function (_super) {
7
7
  __extends(PutEvaluationsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { PutExternalEvaluationRequestFilterSensitiveLog, PutExternalEvaluationResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { PutExternalEvaluationRequestFilterSensitiveLog, PutExternalEvaluationResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_json1_1PutExternalEvaluationCommand, serializeAws_json1_1PutExternalEvaluationCommand, } from "../protocols/Aws_json1_1";
6
6
  var PutExternalEvaluationCommand = (function (_super) {
7
7
  __extends(PutExternalEvaluationCommand, _super);
@@ -60,6 +60,7 @@ export * from "./GetOrganizationCustomRulePolicyCommand";
60
60
  export * from "./GetResourceConfigHistoryCommand";
61
61
  export * from "./GetStoredQueryCommand";
62
62
  export * from "./ListAggregateDiscoveredResourcesCommand";
63
+ export * from "./ListConformancePackComplianceScoresCommand";
63
64
  export * from "./ListDiscoveredResourcesCommand";
64
65
  export * from "./ListStoredQueriesCommand";
65
66
  export * from "./ListTagsForResourceCommand";
@@ -779,6 +779,15 @@ var LimitExceededException = (function (_super) {
779
779
  return LimitExceededException;
780
780
  }(__BaseException));
781
781
  export { LimitExceededException };
782
+ export var SortBy;
783
+ (function (SortBy) {
784
+ SortBy["SCORE"] = "SCORE";
785
+ })(SortBy || (SortBy = {}));
786
+ export var SortOrder;
787
+ (function (SortOrder) {
788
+ SortOrder["ASCENDING"] = "ASCENDING";
789
+ SortOrder["DESCENDING"] = "DESCENDING";
790
+ })(SortOrder || (SortOrder = {}));
782
791
  var MaxActiveResourcesExceededException = (function (_super) {
783
792
  __extends(MaxActiveResourcesExceededException, _super);
784
793
  function MaxActiveResourcesExceededException(opts) {
@@ -981,6 +990,8 @@ export var RecordingGroupFilterSensitiveLog = function (obj) { return (__assign(
981
990
  export var ConfigurationRecorderFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
982
991
  export var ConfigurationRecorderStatusFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
983
992
  export var ConformancePackComplianceFiltersFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
993
+ export var ConformancePackComplianceScoreFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
994
+ export var ConformancePackComplianceScoresFiltersFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
984
995
  export var ConformancePackComplianceSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
985
996
  export var ConformancePackInputParameterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
986
997
  export var ConformancePackDetailFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1133,6 +1144,8 @@ export var GetStoredQueryResponseFilterSensitiveLog = function (obj) { return (_
1133
1144
  export var ResourceFiltersFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1134
1145
  export var ListAggregateDiscoveredResourcesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1135
1146
  export var ListAggregateDiscoveredResourcesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1147
+ export var ListConformancePackComplianceScoresRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1148
+ export var ListConformancePackComplianceScoresResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1136
1149
  export var ListDiscoveredResourcesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1137
1150
  export var ResourceIdentifierFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1138
1151
  export var ListDiscoveredResourcesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1150,9 +1163,3 @@ export var PutConfigurationAggregatorRequestFilterSensitiveLog = function (obj)
1150
1163
  export var PutConfigurationAggregatorResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1151
1164
  export var PutConfigurationRecorderRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1152
1165
  export var PutConformancePackRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1153
- export var PutConformancePackResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1154
- export var PutDeliveryChannelRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1155
- export var PutEvaluationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1156
- export var PutEvaluationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1157
- export var PutExternalEvaluationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1158
- export var PutExternalEvaluationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -24,6 +24,12 @@ var TooManyTagsException = (function (_super) {
24
24
  return TooManyTagsException;
25
25
  }(__BaseException));
26
26
  export { TooManyTagsException };
27
+ export var PutConformancePackResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
28
+ export var PutDeliveryChannelRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
+ export var PutEvaluationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
30
+ export var PutEvaluationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
31
+ export var PutExternalEvaluationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
32
+ export var PutExternalEvaluationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
27
33
  export var PutOrganizationConfigRuleRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
28
34
  export var PutOrganizationConfigRuleResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
35
  export var PutOrganizationConformancePackRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -0,0 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListConformancePackComplianceScoresCommand, } from "../commands/ListConformancePackComplianceScoresCommand";
3
+ import { ConfigService } from "../ConfigService";
4
+ import { ConfigServiceClient } from "../ConfigServiceClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListConformancePackComplianceScoresCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listConformancePackComplianceScores.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListConformancePackComplianceScores(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListConformancePackComplianceScores_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["Limit"] = config.pageSize;
50
+ if (!(config.client instanceof ConfigService)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof ConfigServiceClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ prevToken = token;
67
+ token = page.NextToken;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
+ return [3, 1];
70
+ case 9: return [4, __await(undefined)];
71
+ case 10: return [2, _a.sent()];
72
+ }
73
+ });
74
+ });
75
+ }
@@ -32,6 +32,7 @@ export * from "./GetOrganizationConfigRuleDetailedStatusPaginator";
32
32
  export * from "./GetOrganizationConformancePackDetailedStatusPaginator";
33
33
  export * from "./GetResourceConfigHistoryPaginator";
34
34
  export * from "./ListAggregateDiscoveredResourcesPaginator";
35
+ export * from "./ListConformancePackComplianceScoresPaginator";
35
36
  export * from "./ListDiscoveredResourcesPaginator";
36
37
  export * from "./ListStoredQueriesPaginator";
37
38
  export * from "./ListTagsForResourcePaginator";