@aws-sdk/client-controlcatalog 3.825.0 → 3.828.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 (38) hide show
  1. package/README.md +9 -28
  2. package/dist-cjs/ControlCatalog.js +2 -0
  3. package/dist-cjs/commands/ListControlMappingsCommand.js +26 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +15 -1
  6. package/dist-cjs/pagination/ListControlMappingsPaginator.js +7 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_restJson1.js +45 -2
  9. package/dist-es/ControlCatalog.js +2 -0
  10. package/dist-es/commands/ListControlMappingsCommand.js +22 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/models/models_0.js +14 -0
  13. package/dist-es/pagination/ListControlMappingsPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_restJson1.js +42 -1
  16. package/dist-types/ControlCatalog.d.ts +9 -28
  17. package/dist-types/ControlCatalogClient.d.ts +4 -30
  18. package/dist-types/commands/GetControlCommand.d.ts +7 -2
  19. package/dist-types/commands/ListCommonControlsCommand.d.ts +1 -4
  20. package/dist-types/commands/ListControlMappingsCommand.d.ts +111 -0
  21. package/dist-types/commands/ListControlsCommand.d.ts +17 -1
  22. package/dist-types/commands/ListDomainsCommand.d.ts +1 -1
  23. package/dist-types/commands/ListObjectivesCommand.d.ts +1 -3
  24. package/dist-types/commands/index.d.ts +1 -0
  25. package/dist-types/index.d.ts +1 -28
  26. package/dist-types/models/models_0.d.ts +223 -132
  27. package/dist-types/pagination/ListControlMappingsPaginator.d.ts +7 -0
  28. package/dist-types/pagination/index.d.ts +1 -0
  29. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  30. package/dist-types/ts3.4/ControlCatalog.d.ts +18 -0
  31. package/dist-types/ts3.4/ControlCatalogClient.d.ts +6 -0
  32. package/dist-types/ts3.4/commands/ListControlMappingsCommand.d.ts +51 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +70 -0
  35. package/dist-types/ts3.4/pagination/ListControlMappingsPaginator.d.ts +11 -0
  36. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  37. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  38. package/package.json +12 -12
@@ -1,5 +1,6 @@
1
1
  export * from "./GetControlCommand";
2
2
  export * from "./ListCommonControlsCommand";
3
+ export * from "./ListControlMappingsCommand";
3
4
  export * from "./ListControlsCommand";
4
5
  export * from "./ListDomainsCommand";
5
6
  export * from "./ListObjectivesCommand";
@@ -22,6 +22,9 @@ export interface ObjectiveResourceFilter {
22
22
  export interface CommonControlFilter {
23
23
  Objectives?: ObjectiveResourceFilter[] | undefined;
24
24
  }
25
+ export interface CommonControlMappingDetails {
26
+ CommonControlArn: string | undefined;
27
+ }
25
28
  export declare class InternalServerException extends __BaseException {
26
29
  readonly name: "InternalServerException";
27
30
  readonly $fault: "server";
@@ -104,6 +107,7 @@ export type ControlSeverity =
104
107
  (typeof ControlSeverity)[keyof typeof ControlSeverity];
105
108
  export interface GetControlResponse {
106
109
  Arn: string | undefined;
110
+ Aliases?: string[] | undefined;
107
111
  Name: string | undefined;
108
112
  Description: string | undefined;
109
113
  Behavior: ControlBehavior | undefined;
@@ -112,6 +116,7 @@ export interface GetControlResponse {
112
116
  Implementation?: ImplementationDetails | undefined;
113
117
  Parameters?: ControlParameter[] | undefined;
114
118
  CreateTime?: Date | undefined;
119
+ GovernedResources?: string[] | undefined;
115
120
  }
116
121
  export declare class ResourceNotFoundException extends __BaseException {
117
122
  readonly name: "ResourceNotFoundException";
@@ -121,9 +126,17 @@ export declare class ResourceNotFoundException extends __BaseException {
121
126
  opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
122
127
  );
123
128
  }
129
+ export interface ImplementationFilter {
130
+ Types?: string[] | undefined;
131
+ Identifiers?: string[] | undefined;
132
+ }
133
+ export interface ControlFilter {
134
+ Implementations?: ImplementationFilter | undefined;
135
+ }
124
136
  export interface ListControlsRequest {
125
137
  NextToken?: string | undefined;
126
138
  MaxResults?: number | undefined;
139
+ Filter?: ControlFilter | undefined;
127
140
  }
128
141
  export interface ImplementationSummary {
129
142
  Type: string | undefined;
@@ -131,12 +144,14 @@ export interface ImplementationSummary {
131
144
  }
132
145
  export interface ControlSummary {
133
146
  Arn: string | undefined;
147
+ Aliases?: string[] | undefined;
134
148
  Name: string | undefined;
135
149
  Description: string | undefined;
136
150
  Behavior?: ControlBehavior | undefined;
137
151
  Severity?: ControlSeverity | undefined;
138
152
  Implementation?: ImplementationSummary | undefined;
139
153
  CreateTime?: Date | undefined;
154
+ GovernedResources?: string[] | undefined;
140
155
  }
141
156
  export interface ListControlsResponse {
142
157
  Controls: ControlSummary[] | undefined;
@@ -157,6 +172,61 @@ export interface ListDomainsResponse {
157
172
  Domains: DomainSummary[] | undefined;
158
173
  NextToken?: string | undefined;
159
174
  }
175
+ export declare const MappingType: {
176
+ readonly COMMON_CONTROL: "COMMON_CONTROL";
177
+ readonly FRAMEWORK: "FRAMEWORK";
178
+ };
179
+ export type MappingType = (typeof MappingType)[keyof typeof MappingType];
180
+ export interface ControlMappingFilter {
181
+ ControlArns?: string[] | undefined;
182
+ CommonControlArns?: string[] | undefined;
183
+ MappingTypes?: MappingType[] | undefined;
184
+ }
185
+ export interface ListControlMappingsRequest {
186
+ NextToken?: string | undefined;
187
+ MaxResults?: number | undefined;
188
+ Filter?: ControlMappingFilter | undefined;
189
+ }
190
+ export interface FrameworkMappingDetails {
191
+ Name: string | undefined;
192
+ Item: string | undefined;
193
+ }
194
+ export type Mapping =
195
+ | Mapping.CommonControlMember
196
+ | Mapping.FrameworkMember
197
+ | Mapping.$UnknownMember;
198
+ export declare namespace Mapping {
199
+ interface FrameworkMember {
200
+ Framework: FrameworkMappingDetails;
201
+ CommonControl?: never;
202
+ $unknown?: never;
203
+ }
204
+ interface CommonControlMember {
205
+ Framework?: never;
206
+ CommonControl: CommonControlMappingDetails;
207
+ $unknown?: never;
208
+ }
209
+ interface $UnknownMember {
210
+ Framework?: never;
211
+ CommonControl?: never;
212
+ $unknown: [string, any];
213
+ }
214
+ interface Visitor<T> {
215
+ Framework: (value: FrameworkMappingDetails) => T;
216
+ CommonControl: (value: CommonControlMappingDetails) => T;
217
+ _: (name: string, value: any) => T;
218
+ }
219
+ const visit: <T>(value: Mapping, visitor: Visitor<T>) => T;
220
+ }
221
+ export interface ControlMapping {
222
+ ControlArn: string | undefined;
223
+ MappingType: MappingType | undefined;
224
+ Mapping: Mapping | undefined;
225
+ }
226
+ export interface ListControlMappingsResponse {
227
+ ControlMappings: ControlMapping[] | undefined;
228
+ NextToken?: string | undefined;
229
+ }
160
230
  export interface DomainResourceFilter {
161
231
  Arn?: string | undefined;
162
232
  }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListControlMappingsCommandInput,
4
+ ListControlMappingsCommandOutput,
5
+ } from "../commands/ListControlMappingsCommand";
6
+ import { ControlCatalogPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListControlMappings: (
8
+ config: ControlCatalogPaginationConfiguration,
9
+ input: ListControlMappingsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListControlMappingsCommandOutput>;
@@ -1,5 +1,6 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListCommonControlsPaginator";
3
+ export * from "./ListControlMappingsPaginator";
3
4
  export * from "./ListControlsPaginator";
4
5
  export * from "./ListDomainsPaginator";
5
6
  export * from "./ListObjectivesPaginator";
@@ -11,6 +11,10 @@ import {
11
11
  ListCommonControlsCommandInput,
12
12
  ListCommonControlsCommandOutput,
13
13
  } from "../commands/ListCommonControlsCommand";
14
+ import {
15
+ ListControlMappingsCommandInput,
16
+ ListControlMappingsCommandOutput,
17
+ } from "../commands/ListControlMappingsCommand";
14
18
  import {
15
19
  ListControlsCommandInput,
16
20
  ListControlsCommandOutput,
@@ -31,6 +35,10 @@ export declare const se_ListCommonControlsCommand: (
31
35
  input: ListCommonControlsCommandInput,
32
36
  context: __SerdeContext
33
37
  ) => Promise<__HttpRequest>;
38
+ export declare const se_ListControlMappingsCommand: (
39
+ input: ListControlMappingsCommandInput,
40
+ context: __SerdeContext
41
+ ) => Promise<__HttpRequest>;
34
42
  export declare const se_ListControlsCommand: (
35
43
  input: ListControlsCommandInput,
36
44
  context: __SerdeContext
@@ -51,6 +59,10 @@ export declare const de_ListCommonControlsCommand: (
51
59
  output: __HttpResponse,
52
60
  context: __SerdeContext
53
61
  ) => Promise<ListCommonControlsCommandOutput>;
62
+ export declare const de_ListControlMappingsCommand: (
63
+ output: __HttpResponse,
64
+ context: __SerdeContext
65
+ ) => Promise<ListControlMappingsCommandOutput>;
54
66
  export declare const de_ListControlsCommand: (
55
67
  output: __HttpResponse,
56
68
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-controlcatalog",
3
3
  "description": "AWS SDK for JavaScript Controlcatalog Client for Node.js, Browser and React Native",
4
- "version": "3.825.0",
4
+ "version": "3.828.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.825.0",
24
- "@aws-sdk/credential-provider-node": "3.825.0",
23
+ "@aws-sdk/core": "3.826.0",
24
+ "@aws-sdk/credential-provider-node": "3.828.0",
25
25
  "@aws-sdk/middleware-host-header": "3.821.0",
26
26
  "@aws-sdk/middleware-logger": "3.821.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.821.0",
28
- "@aws-sdk/middleware-user-agent": "3.825.0",
28
+ "@aws-sdk/middleware-user-agent": "3.828.0",
29
29
  "@aws-sdk/region-config-resolver": "3.821.0",
30
30
  "@aws-sdk/types": "3.821.0",
31
- "@aws-sdk/util-endpoints": "3.821.0",
31
+ "@aws-sdk/util-endpoints": "3.828.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.821.0",
33
- "@aws-sdk/util-user-agent-node": "3.825.0",
33
+ "@aws-sdk/util-user-agent-node": "3.828.0",
34
34
  "@smithy/config-resolver": "^4.1.4",
35
- "@smithy/core": "^3.5.2",
35
+ "@smithy/core": "^3.5.3",
36
36
  "@smithy/fetch-http-handler": "^5.0.4",
37
37
  "@smithy/hash-node": "^4.0.4",
38
38
  "@smithy/invalid-dependency": "^4.0.4",
39
39
  "@smithy/middleware-content-length": "^4.0.4",
40
- "@smithy/middleware-endpoint": "^4.1.10",
41
- "@smithy/middleware-retry": "^4.1.11",
40
+ "@smithy/middleware-endpoint": "^4.1.11",
41
+ "@smithy/middleware-retry": "^4.1.12",
42
42
  "@smithy/middleware-serde": "^4.0.8",
43
43
  "@smithy/middleware-stack": "^4.0.4",
44
44
  "@smithy/node-config-provider": "^4.1.3",
45
45
  "@smithy/node-http-handler": "^4.0.6",
46
46
  "@smithy/protocol-http": "^5.1.2",
47
- "@smithy/smithy-client": "^4.4.2",
47
+ "@smithy/smithy-client": "^4.4.3",
48
48
  "@smithy/types": "^4.3.1",
49
49
  "@smithy/url-parser": "^4.0.4",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.18",
54
- "@smithy/util-defaults-mode-node": "^4.0.18",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.19",
54
+ "@smithy/util-defaults-mode-node": "^4.0.19",
55
55
  "@smithy/util-endpoints": "^3.0.6",
56
56
  "@smithy/util-middleware": "^4.0.4",
57
57
  "@smithy/util-retry": "^4.0.5",