@aws-sdk/client-config-service 3.216.0 → 3.219.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 (62) hide show
  1. package/dist-cjs/ConfigService.js +45 -0
  2. package/dist-cjs/commands/GetResourceEvaluationSummaryCommand.js +46 -0
  3. package/dist-cjs/commands/ListResourceEvaluationsCommand.js +46 -0
  4. package/dist-cjs/commands/PutAggregationAuthorizationCommand.js +3 -3
  5. package/dist-cjs/commands/PutConfigRuleCommand.js +2 -2
  6. package/dist-cjs/commands/PutConfigurationAggregatorCommand.js +3 -3
  7. package/dist-cjs/commands/PutConfigurationRecorderCommand.js +2 -2
  8. package/dist-cjs/commands/StartResourceEvaluationCommand.js +46 -0
  9. package/dist-cjs/commands/index.js +3 -0
  10. package/dist-cjs/models/models_0.js +82 -151
  11. package/dist-cjs/models/models_1.js +155 -1
  12. package/dist-cjs/pagination/ListResourceEvaluationsPaginator.js +36 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_json1_1.js +341 -12
  15. package/dist-es/ConfigService.js +45 -0
  16. package/dist-es/commands/GetResourceEvaluationSummaryCommand.js +42 -0
  17. package/dist-es/commands/ListResourceEvaluationsCommand.js +42 -0
  18. package/dist-es/commands/PutAggregationAuthorizationCommand.js +1 -1
  19. package/dist-es/commands/PutConfigRuleCommand.js +1 -1
  20. package/dist-es/commands/PutConfigurationAggregatorCommand.js +1 -1
  21. package/dist-es/commands/PutConfigurationRecorderCommand.js +1 -1
  22. package/dist-es/commands/StartResourceEvaluationCommand.js +42 -0
  23. package/dist-es/commands/index.js +3 -0
  24. package/dist-es/models/models_0.js +59 -125
  25. package/dist-es/models/models_1.js +135 -0
  26. package/dist-es/pagination/ListResourceEvaluationsPaginator.js +32 -0
  27. package/dist-es/pagination/index.js +1 -0
  28. package/dist-es/protocols/Aws_json1_1.js +325 -2
  29. package/dist-types/ConfigService.d.ts +36 -3
  30. package/dist-types/ConfigServiceClient.d.ts +5 -2
  31. package/dist-types/commands/DescribeAggregateComplianceByConformancePacksCommand.d.ts +2 -2
  32. package/dist-types/commands/GetComplianceDetailsByResourceCommand.d.ts +1 -1
  33. package/dist-types/commands/GetResourceEvaluationSummaryCommand.d.ts +39 -0
  34. package/dist-types/commands/ListResourceEvaluationsCommand.d.ts +37 -0
  35. package/dist-types/commands/PutAggregationAuthorizationCommand.d.ts +1 -1
  36. package/dist-types/commands/PutConfigRuleCommand.d.ts +1 -1
  37. package/dist-types/commands/PutConfigurationAggregatorCommand.d.ts +1 -1
  38. package/dist-types/commands/PutConfigurationRecorderCommand.d.ts +1 -1
  39. package/dist-types/commands/PutRemediationExceptionsCommand.d.ts +3 -0
  40. package/dist-types/commands/StartResourceEvaluationCommand.d.ts +44 -0
  41. package/dist-types/commands/index.d.ts +3 -0
  42. package/dist-types/models/models_0.d.ts +287 -290
  43. package/dist-types/models/models_1.d.ts +319 -1
  44. package/dist-types/pagination/ListResourceEvaluationsPaginator.d.ts +4 -0
  45. package/dist-types/pagination/index.d.ts +1 -0
  46. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  47. package/dist-types/ts3.4/ConfigService.d.ts +51 -0
  48. package/dist-types/ts3.4/ConfigServiceClient.d.ts +18 -0
  49. package/dist-types/ts3.4/commands/GetResourceEvaluationSummaryCommand.d.ts +41 -0
  50. package/dist-types/ts3.4/commands/ListResourceEvaluationsCommand.d.ts +41 -0
  51. package/dist-types/ts3.4/commands/PutAggregationAuthorizationCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/PutConfigRuleCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/PutConfigurationAggregatorCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/PutConfigurationRecorderCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/StartResourceEvaluationCommand.d.ts +41 -0
  56. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +114 -150
  58. package/dist-types/ts3.4/models/models_1.d.ts +175 -1
  59. package/dist-types/ts3.4/pagination/ListResourceEvaluationsPaginator.d.ts +11 -0
  60. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  61. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  62. package/package.json +3 -3
@@ -1,4 +1,112 @@
1
1
  import { ConfigServiceServiceException as __BaseException } from "./ConfigServiceServiceException";
2
+ export class MaxNumberOfDeliveryChannelsExceededException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "MaxNumberOfDeliveryChannelsExceededException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "MaxNumberOfDeliveryChannelsExceededException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, MaxNumberOfDeliveryChannelsExceededException.prototype);
12
+ }
13
+ }
14
+ export class MaxNumberOfOrganizationConfigRulesExceededException extends __BaseException {
15
+ constructor(opts) {
16
+ super({
17
+ name: "MaxNumberOfOrganizationConfigRulesExceededException",
18
+ $fault: "client",
19
+ ...opts,
20
+ });
21
+ this.name = "MaxNumberOfOrganizationConfigRulesExceededException";
22
+ this.$fault = "client";
23
+ Object.setPrototypeOf(this, MaxNumberOfOrganizationConfigRulesExceededException.prototype);
24
+ }
25
+ }
26
+ export class MaxNumberOfOrganizationConformancePacksExceededException extends __BaseException {
27
+ constructor(opts) {
28
+ super({
29
+ name: "MaxNumberOfOrganizationConformancePacksExceededException",
30
+ $fault: "client",
31
+ ...opts,
32
+ });
33
+ this.name = "MaxNumberOfOrganizationConformancePacksExceededException";
34
+ this.$fault = "client";
35
+ Object.setPrototypeOf(this, MaxNumberOfOrganizationConformancePacksExceededException.prototype);
36
+ }
37
+ }
38
+ export class MaxNumberOfRetentionConfigurationsExceededException extends __BaseException {
39
+ constructor(opts) {
40
+ super({
41
+ name: "MaxNumberOfRetentionConfigurationsExceededException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ this.name = "MaxNumberOfRetentionConfigurationsExceededException";
46
+ this.$fault = "client";
47
+ Object.setPrototypeOf(this, MaxNumberOfRetentionConfigurationsExceededException.prototype);
48
+ }
49
+ }
50
+ export class NoAvailableDeliveryChannelException extends __BaseException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "NoAvailableDeliveryChannelException",
54
+ $fault: "client",
55
+ ...opts,
56
+ });
57
+ this.name = "NoAvailableDeliveryChannelException";
58
+ this.$fault = "client";
59
+ Object.setPrototypeOf(this, NoAvailableDeliveryChannelException.prototype);
60
+ }
61
+ }
62
+ export class NoAvailableOrganizationException extends __BaseException {
63
+ constructor(opts) {
64
+ super({
65
+ name: "NoAvailableOrganizationException",
66
+ $fault: "client",
67
+ ...opts,
68
+ });
69
+ this.name = "NoAvailableOrganizationException";
70
+ this.$fault = "client";
71
+ Object.setPrototypeOf(this, NoAvailableOrganizationException.prototype);
72
+ }
73
+ }
74
+ export class NoSuchBucketException extends __BaseException {
75
+ constructor(opts) {
76
+ super({
77
+ name: "NoSuchBucketException",
78
+ $fault: "client",
79
+ ...opts,
80
+ });
81
+ this.name = "NoSuchBucketException";
82
+ this.$fault = "client";
83
+ Object.setPrototypeOf(this, NoSuchBucketException.prototype);
84
+ }
85
+ }
86
+ export class OrganizationAllFeaturesNotEnabledException extends __BaseException {
87
+ constructor(opts) {
88
+ super({
89
+ name: "OrganizationAllFeaturesNotEnabledException",
90
+ $fault: "client",
91
+ ...opts,
92
+ });
93
+ this.name = "OrganizationAllFeaturesNotEnabledException";
94
+ this.$fault = "client";
95
+ Object.setPrototypeOf(this, OrganizationAllFeaturesNotEnabledException.prototype);
96
+ }
97
+ }
98
+ export class OrganizationConformancePackTemplateValidationException extends __BaseException {
99
+ constructor(opts) {
100
+ super({
101
+ name: "OrganizationConformancePackTemplateValidationException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ this.name = "OrganizationConformancePackTemplateValidationException";
106
+ this.$fault = "client";
107
+ Object.setPrototypeOf(this, OrganizationConformancePackTemplateValidationException.prototype);
108
+ }
109
+ }
2
110
  export class ResourceConcurrentModificationException extends __BaseException {
3
111
  constructor(opts) {
4
112
  super({
@@ -23,6 +131,27 @@ export class TooManyTagsException extends __BaseException {
23
131
  Object.setPrototypeOf(this, TooManyTagsException.prototype);
24
132
  }
25
133
  }
134
+ export const OrganizationCustomPolicyRuleMetadataFilterSensitiveLog = (obj) => ({
135
+ ...obj,
136
+ });
137
+ export const PutAggregationAuthorizationRequestFilterSensitiveLog = (obj) => ({
138
+ ...obj,
139
+ });
140
+ export const PutAggregationAuthorizationResponseFilterSensitiveLog = (obj) => ({
141
+ ...obj,
142
+ });
143
+ export const PutConfigRuleRequestFilterSensitiveLog = (obj) => ({
144
+ ...obj,
145
+ });
146
+ export const PutConfigurationAggregatorRequestFilterSensitiveLog = (obj) => ({
147
+ ...obj,
148
+ });
149
+ export const PutConfigurationAggregatorResponseFilterSensitiveLog = (obj) => ({
150
+ ...obj,
151
+ });
152
+ export const PutConfigurationRecorderRequestFilterSensitiveLog = (obj) => ({
153
+ ...obj,
154
+ });
26
155
  export const PutConformancePackRequestFilterSensitiveLog = (obj) => ({
27
156
  ...obj,
28
157
  });
@@ -113,6 +242,12 @@ export const StartRemediationExecutionRequestFilterSensitiveLog = (obj) => ({
113
242
  export const StartRemediationExecutionResponseFilterSensitiveLog = (obj) => ({
114
243
  ...obj,
115
244
  });
245
+ export const StartResourceEvaluationRequestFilterSensitiveLog = (obj) => ({
246
+ ...obj,
247
+ });
248
+ export const StartResourceEvaluationResponseFilterSensitiveLog = (obj) => ({
249
+ ...obj,
250
+ });
116
251
  export const StopConfigurationRecorderRequestFilterSensitiveLog = (obj) => ({
117
252
  ...obj,
118
253
  });
@@ -0,0 +1,32 @@
1
+ import { ListResourceEvaluationsCommand, } from "../commands/ListResourceEvaluationsCommand";
2
+ import { ConfigService } from "../ConfigService";
3
+ import { ConfigServiceClient } from "../ConfigServiceClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListResourceEvaluationsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listResourceEvaluations(input, ...args);
9
+ };
10
+ export async function* paginateListResourceEvaluations(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["Limit"] = config.pageSize;
17
+ if (config.client instanceof ConfigService) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof ConfigServiceClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -34,6 +34,7 @@ export * from "./GetResourceConfigHistoryPaginator";
34
34
  export * from "./ListAggregateDiscoveredResourcesPaginator";
35
35
  export * from "./ListConformancePackComplianceScoresPaginator";
36
36
  export * from "./ListDiscoveredResourcesPaginator";
37
+ export * from "./ListResourceEvaluationsPaginator";
37
38
  export * from "./ListStoredQueriesPaginator";
38
39
  export * from "./ListTagsForResourcePaginator";
39
40
  export * from "./SelectAggregateResourceConfigPaginator";