@aws-sdk/client-controlcatalog 3.621.0 → 3.623.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 (45) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/ControlCatalog.js +4 -0
  3. package/dist-cjs/ControlCatalogClient.js +12 -18
  4. package/dist-cjs/commands/GetControlCommand.js +28 -0
  5. package/dist-cjs/commands/ListControlsCommand.js +28 -0
  6. package/dist-cjs/commands/index.js +2 -0
  7. package/dist-cjs/models/models_0.js +24 -1
  8. package/dist-cjs/pagination/ListControlsPaginator.js +7 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_restJson1.js +79 -1
  11. package/dist-es/ControlCatalog.js +4 -0
  12. package/dist-es/ControlCatalogClient.js +12 -18
  13. package/dist-es/commands/GetControlCommand.js +24 -0
  14. package/dist-es/commands/ListControlsCommand.js +24 -0
  15. package/dist-es/commands/index.js +2 -0
  16. package/dist-es/models/models_0.js +22 -0
  17. package/dist-es/pagination/ListControlsPaginator.js +4 -0
  18. package/dist-es/pagination/index.js +1 -0
  19. package/dist-es/protocols/Aws_restJson1.js +75 -1
  20. package/dist-types/ControlCatalog.d.ts +15 -0
  21. package/dist-types/ControlCatalogClient.d.ts +6 -6
  22. package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
  23. package/dist-types/commands/GetControlCommand.d.ts +85 -0
  24. package/dist-types/commands/ListControlsCommand.d.ts +80 -0
  25. package/dist-types/commands/index.d.ts +2 -0
  26. package/dist-types/models/models_0.d.ts +164 -0
  27. package/dist-types/pagination/ListControlsPaginator.d.ts +7 -0
  28. package/dist-types/pagination/index.d.ts +1 -0
  29. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  30. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  31. package/dist-types/runtimeConfig.d.ts +2 -2
  32. package/dist-types/runtimeConfig.native.d.ts +2 -2
  33. package/dist-types/ts3.4/ControlCatalog.d.ts +35 -0
  34. package/dist-types/ts3.4/ControlCatalogClient.d.ts +18 -8
  35. package/dist-types/ts3.4/commands/GetControlCommand.d.ts +36 -0
  36. package/dist-types/ts3.4/commands/ListControlsCommand.d.ts +36 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +47 -0
  39. package/dist-types/ts3.4/pagination/ListControlsPaginator.d.ts +11 -0
  40. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  41. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  42. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  43. package/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
  44. package/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
  45. package/package.json +10 -10
@@ -45,10 +45,18 @@ import {
45
45
  HttpAuthSchemeInputConfig,
46
46
  HttpAuthSchemeResolvedConfig,
47
47
  } from "./auth/httpAuthSchemeProvider";
48
+ import {
49
+ GetControlCommandInput,
50
+ GetControlCommandOutput,
51
+ } from "./commands/GetControlCommand";
48
52
  import {
49
53
  ListCommonControlsCommandInput,
50
54
  ListCommonControlsCommandOutput,
51
55
  } from "./commands/ListCommonControlsCommand";
56
+ import {
57
+ ListControlsCommandInput,
58
+ ListControlsCommandOutput,
59
+ } from "./commands/ListControlsCommand";
52
60
  import {
53
61
  ListDomainsCommandInput,
54
62
  ListDomainsCommandOutput,
@@ -65,11 +73,15 @@ import {
65
73
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
66
74
  export { __Client };
67
75
  export type ServiceInputTypes =
76
+ | GetControlCommandInput
68
77
  | ListCommonControlsCommandInput
78
+ | ListControlsCommandInput
69
79
  | ListDomainsCommandInput
70
80
  | ListObjectivesCommandInput;
71
81
  export type ServiceOutputTypes =
82
+ | GetControlCommandOutput
72
83
  | ListCommonControlsCommandOutput
84
+ | ListControlsCommandOutput
73
85
  | ListDomainsCommandOutput
74
86
  | ListObjectivesCommandOutput;
75
87
  export interface ClientDefaults
@@ -101,11 +113,11 @@ export type ControlCatalogClientConfigType = Partial<
101
113
  __SmithyConfiguration<__HttpHandlerOptions>
102
114
  > &
103
115
  ClientDefaults &
104
- RegionInputConfig &
105
- EndpointInputConfig<EndpointParameters> &
106
- HostHeaderInputConfig &
107
116
  UserAgentInputConfig &
108
117
  RetryInputConfig &
118
+ RegionInputConfig &
119
+ HostHeaderInputConfig &
120
+ EndpointInputConfig<EndpointParameters> &
109
121
  HttpAuthSchemeInputConfig &
110
122
  ClientInputEndpointParameters;
111
123
  export interface ControlCatalogClientConfig
@@ -114,11 +126,11 @@ export type ControlCatalogClientResolvedConfigType =
114
126
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
115
127
  Required<ClientDefaults> &
116
128
  RuntimeExtensionsConfig &
117
- RegionResolvedConfig &
118
- EndpointResolvedConfig<EndpointParameters> &
119
- HostHeaderResolvedConfig &
120
129
  UserAgentResolvedConfig &
121
130
  RetryResolvedConfig &
131
+ RegionResolvedConfig &
132
+ HostHeaderResolvedConfig &
133
+ EndpointResolvedConfig<EndpointParameters> &
122
134
  HttpAuthSchemeResolvedConfig &
123
135
  ClientResolvedEndpointParameters;
124
136
  export interface ControlCatalogClientResolvedConfig
@@ -134,6 +146,4 @@ export declare class ControlCatalogClient extends __Client<
134
146
  ...[configuration]: __CheckOptionalClientConfig<ControlCatalogClientConfig>
135
147
  );
136
148
  destroy(): void;
137
- private getDefaultHttpAuthSchemeParametersProvider;
138
- private getIdentityProviderConfigProvider;
139
149
  }
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ ControlCatalogClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../ControlCatalogClient";
8
+ import { GetControlRequest, GetControlResponse } from "../models/models_0";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface GetControlCommandInput extends GetControlRequest {}
12
+ export interface GetControlCommandOutput
13
+ extends GetControlResponse,
14
+ __MetadataBearer {}
15
+ declare const GetControlCommand_base: {
16
+ new (
17
+ input: GetControlCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ GetControlCommandInput,
20
+ GetControlCommandOutput,
21
+ ControlCatalogClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ __0_0: GetControlCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ GetControlCommandInput,
29
+ GetControlCommandOutput,
30
+ ControlCatalogClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class GetControlCommand extends GetControlCommand_base {}
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ ControlCatalogClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../ControlCatalogClient";
8
+ import { ListControlsRequest, ListControlsResponse } from "../models/models_0";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface ListControlsCommandInput extends ListControlsRequest {}
12
+ export interface ListControlsCommandOutput
13
+ extends ListControlsResponse,
14
+ __MetadataBearer {}
15
+ declare const ListControlsCommand_base: {
16
+ new (
17
+ input: ListControlsCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ ListControlsCommandInput,
20
+ ListControlsCommandOutput,
21
+ ControlCatalogClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ ...[input]: [] | [ListControlsCommandInput]
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ ListControlsCommandInput,
29
+ ListControlsCommandOutput,
30
+ ControlCatalogClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class ListControlsCommand extends ListControlsCommand_base {}
@@ -1,3 +1,5 @@
1
+ export * from "./GetControlCommand";
1
2
  export * from "./ListCommonControlsCommand";
3
+ export * from "./ListControlsCommand";
2
4
  export * from "./ListDomainsCommand";
3
5
  export * from "./ListObjectivesCommand";
@@ -68,6 +68,53 @@ export declare class ValidationException extends __BaseException {
68
68
  opts: __ExceptionOptionType<ValidationException, __BaseException>
69
69
  );
70
70
  }
71
+ export declare const ControlBehavior: {
72
+ readonly DETECTIVE: "DETECTIVE";
73
+ readonly PREVENTIVE: "PREVENTIVE";
74
+ readonly PROACTIVE: "PROACTIVE";
75
+ };
76
+ export type ControlBehavior =
77
+ (typeof ControlBehavior)[keyof typeof ControlBehavior];
78
+ export interface GetControlRequest {
79
+ ControlArn: string | undefined;
80
+ }
81
+ export declare const ControlScope: {
82
+ readonly GLOBAL: "GLOBAL";
83
+ readonly REGIONAL: "REGIONAL";
84
+ };
85
+ export type ControlScope = (typeof ControlScope)[keyof typeof ControlScope];
86
+ export interface RegionConfiguration {
87
+ Scope: ControlScope | undefined;
88
+ DeployableRegions?: string[];
89
+ }
90
+ export interface GetControlResponse {
91
+ Arn: string | undefined;
92
+ Name: string | undefined;
93
+ Description: string | undefined;
94
+ Behavior: ControlBehavior | undefined;
95
+ RegionConfiguration: RegionConfiguration | undefined;
96
+ }
97
+ export declare class ResourceNotFoundException extends __BaseException {
98
+ readonly name: "ResourceNotFoundException";
99
+ readonly $fault: "client";
100
+ Message?: string;
101
+ constructor(
102
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
103
+ );
104
+ }
105
+ export interface ListControlsRequest {
106
+ NextToken?: string;
107
+ MaxResults?: number;
108
+ }
109
+ export interface ControlSummary {
110
+ Arn: string | undefined;
111
+ Name: string | undefined;
112
+ Description: string | undefined;
113
+ }
114
+ export interface ListControlsResponse {
115
+ Controls: ControlSummary[] | undefined;
116
+ NextToken?: string;
117
+ }
71
118
  export interface ListDomainsRequest {
72
119
  MaxResults?: number;
73
120
  NextToken?: string;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListControlsCommandInput,
4
+ ListControlsCommandOutput,
5
+ } from "../commands/ListControlsCommand";
6
+ import { ControlCatalogPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListControls: (
8
+ config: ControlCatalogPaginationConfiguration,
9
+ input: ListControlsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListControlsCommandOutput>;
@@ -1,4 +1,5 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListCommonControlsPaginator";
3
+ export * from "./ListControlsPaginator";
3
4
  export * from "./ListDomainsPaginator";
4
5
  export * from "./ListObjectivesPaginator";
@@ -3,10 +3,18 @@ import {
3
3
  HttpResponse as __HttpResponse,
4
4
  } from "@smithy/protocol-http";
5
5
  import { SerdeContext as __SerdeContext } from "@smithy/types";
6
+ import {
7
+ GetControlCommandInput,
8
+ GetControlCommandOutput,
9
+ } from "../commands/GetControlCommand";
6
10
  import {
7
11
  ListCommonControlsCommandInput,
8
12
  ListCommonControlsCommandOutput,
9
13
  } from "../commands/ListCommonControlsCommand";
14
+ import {
15
+ ListControlsCommandInput,
16
+ ListControlsCommandOutput,
17
+ } from "../commands/ListControlsCommand";
10
18
  import {
11
19
  ListDomainsCommandInput,
12
20
  ListDomainsCommandOutput,
@@ -15,10 +23,18 @@ import {
15
23
  ListObjectivesCommandInput,
16
24
  ListObjectivesCommandOutput,
17
25
  } from "../commands/ListObjectivesCommand";
26
+ export declare const se_GetControlCommand: (
27
+ input: GetControlCommandInput,
28
+ context: __SerdeContext
29
+ ) => Promise<__HttpRequest>;
18
30
  export declare const se_ListCommonControlsCommand: (
19
31
  input: ListCommonControlsCommandInput,
20
32
  context: __SerdeContext
21
33
  ) => Promise<__HttpRequest>;
34
+ export declare const se_ListControlsCommand: (
35
+ input: ListControlsCommandInput,
36
+ context: __SerdeContext
37
+ ) => Promise<__HttpRequest>;
22
38
  export declare const se_ListDomainsCommand: (
23
39
  input: ListDomainsCommandInput,
24
40
  context: __SerdeContext
@@ -27,10 +43,18 @@ export declare const se_ListObjectivesCommand: (
27
43
  input: ListObjectivesCommandInput,
28
44
  context: __SerdeContext
29
45
  ) => Promise<__HttpRequest>;
46
+ export declare const de_GetControlCommand: (
47
+ output: __HttpResponse,
48
+ context: __SerdeContext
49
+ ) => Promise<GetControlCommandOutput>;
30
50
  export declare const de_ListCommonControlsCommand: (
31
51
  output: __HttpResponse,
32
52
  context: __SerdeContext
33
53
  ) => Promise<ListCommonControlsCommandOutput>;
54
+ export declare const de_ListControlsCommand: (
55
+ output: __HttpResponse,
56
+ context: __SerdeContext
57
+ ) => Promise<ListControlsCommandOutput>;
34
58
  export declare const de_ListDomainsCommand: (
35
59
  output: __HttpResponse,
36
60
  context: __SerdeContext
@@ -32,6 +32,11 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
32
32
  serviceId: string;
33
33
  logger: import("@smithy/types").Logger;
34
34
  extensions: import("./runtimeExtensions").RuntimeExtension[];
35
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
36
+ retryStrategy?:
37
+ | import("@smithy/types").RetryStrategy
38
+ | import("@smithy/types").RetryStrategyV2
39
+ | undefined;
35
40
  endpoint?:
36
41
  | ((
37
42
  | string
@@ -56,11 +61,6 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
56
61
  }
57
62
  ) => import("@smithy/types").EndpointV2;
58
63
  tls?: boolean | undefined;
59
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
60
- retryStrategy?:
61
- | import("@smithy/types").RetryStrategy
62
- | import("@smithy/types").RetryStrategyV2
63
- | undefined;
64
64
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
65
65
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ControlCatalogHttpAuthSchemeProvider;
66
66
  credentials?:
@@ -36,6 +36,11 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
36
36
  serviceId: string;
37
37
  logger: import("@smithy/types").Logger;
38
38
  extensions: import("./runtimeExtensions").RuntimeExtension[];
39
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
40
+ retryStrategy?:
41
+ | import("@smithy/types").RetryStrategy
42
+ | import("@smithy/types").RetryStrategyV2
43
+ | undefined;
39
44
  endpoint?:
40
45
  | ((
41
46
  | string
@@ -60,11 +65,6 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
60
65
  }
61
66
  ) => import("@smithy/types").EndpointV2;
62
67
  tls?: boolean | undefined;
63
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
64
- retryStrategy?:
65
- | import("@smithy/types").RetryStrategy
66
- | import("@smithy/types").RetryStrategyV2
67
- | undefined;
68
68
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
69
69
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ControlCatalogHttpAuthSchemeProvider;
70
70
  credentials?:
@@ -36,6 +36,11 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
36
36
  | import("@smithy/types").Provider<
37
37
  import("@smithy/smithy-client").DefaultsMode
38
38
  >;
39
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
40
+ retryStrategy?:
41
+ | import("@smithy/types").RetryStrategy
42
+ | import("@smithy/types").RetryStrategyV2
43
+ | undefined;
39
44
  endpoint?:
40
45
  | string
41
46
  | import("@smithy/types").Endpoint
@@ -50,11 +55,6 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
50
55
  }
51
56
  ) => import("@smithy/types").EndpointV2;
52
57
  tls?: boolean | undefined;
53
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
54
- retryStrategy?:
55
- | import("@smithy/types").RetryStrategy
56
- | import("@smithy/types").RetryStrategyV2
57
- | undefined;
58
58
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
59
59
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ControlCatalogHttpAuthSchemeProvider;
60
60
  credentials?:
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.621.0",
4
+ "version": "3.623.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,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.621.0",
24
- "@aws-sdk/client-sts": "3.621.0",
25
- "@aws-sdk/core": "3.621.0",
26
- "@aws-sdk/credential-provider-node": "3.621.0",
23
+ "@aws-sdk/client-sso-oidc": "3.623.0",
24
+ "@aws-sdk/client-sts": "3.623.0",
25
+ "@aws-sdk/core": "3.623.0",
26
+ "@aws-sdk/credential-provider-node": "3.623.0",
27
27
  "@aws-sdk/middleware-host-header": "3.620.0",
28
28
  "@aws-sdk/middleware-logger": "3.609.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.620.0",
@@ -34,26 +34,26 @@
34
34
  "@aws-sdk/util-user-agent-browser": "3.609.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.614.0",
36
36
  "@smithy/config-resolver": "^3.0.5",
37
- "@smithy/core": "^2.3.1",
37
+ "@smithy/core": "^2.3.2",
38
38
  "@smithy/fetch-http-handler": "^3.2.4",
39
39
  "@smithy/hash-node": "^3.0.3",
40
40
  "@smithy/invalid-dependency": "^3.0.3",
41
41
  "@smithy/middleware-content-length": "^3.0.5",
42
42
  "@smithy/middleware-endpoint": "^3.1.0",
43
- "@smithy/middleware-retry": "^3.0.13",
43
+ "@smithy/middleware-retry": "^3.0.14",
44
44
  "@smithy/middleware-serde": "^3.0.3",
45
45
  "@smithy/middleware-stack": "^3.0.3",
46
46
  "@smithy/node-config-provider": "^3.1.4",
47
47
  "@smithy/node-http-handler": "^3.1.4",
48
48
  "@smithy/protocol-http": "^4.1.0",
49
- "@smithy/smithy-client": "^3.1.11",
49
+ "@smithy/smithy-client": "^3.1.12",
50
50
  "@smithy/types": "^3.3.0",
51
51
  "@smithy/url-parser": "^3.0.3",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.13",
56
- "@smithy/util-defaults-mode-node": "^3.0.13",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.14",
56
+ "@smithy/util-defaults-mode-node": "^3.0.14",
57
57
  "@smithy/util-endpoints": "^2.0.5",
58
58
  "@smithy/util-middleware": "^3.0.3",
59
59
  "@smithy/util-retry": "^3.0.3",