@aws-sdk/client-controlcatalog 3.928.0 → 3.929.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/dist-cjs/index.js +456 -432
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/ControlCatalogClient.js +2 -0
- package/dist-es/commands/GetControlCommand.js +3 -9
- package/dist-es/commands/ListCommonControlsCommand.js +3 -9
- package/dist-es/commands/ListControlMappingsCommand.js +3 -9
- package/dist-es/commands/ListControlsCommand.js +3 -9
- package/dist-es/commands/ListDomainsCommand.js +3 -9
- package/dist-es/commands/ListObjectivesCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +440 -0
- package/dist-types/ControlCatalogClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +63 -0
- package/dist-types/ts3.4/ControlCatalogClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +68 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -380
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -56
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -77
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
35
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
36
37
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
33
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ControlCatalogHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
17
18
|
serviceId: string;
|
|
18
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
20
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
3
|
+
export declare var AssociatedDomainSummary: StaticStructureSchema;
|
|
4
|
+
export declare var AssociatedObjectiveSummary: StaticStructureSchema;
|
|
5
|
+
export declare var CommonControlFilter: StaticStructureSchema;
|
|
6
|
+
export declare var CommonControlMappingDetails: StaticStructureSchema;
|
|
7
|
+
export declare var CommonControlSummary: StaticStructureSchema;
|
|
8
|
+
export declare var ControlFilter: StaticStructureSchema;
|
|
9
|
+
export declare var ControlMapping: StaticStructureSchema;
|
|
10
|
+
export declare var ControlMappingFilter: StaticStructureSchema;
|
|
11
|
+
export declare var ControlParameter: StaticStructureSchema;
|
|
12
|
+
export declare var ControlSummary: StaticStructureSchema;
|
|
13
|
+
export declare var DomainResourceFilter: StaticStructureSchema;
|
|
14
|
+
export declare var DomainSummary: StaticStructureSchema;
|
|
15
|
+
export declare var FrameworkMappingDetails: StaticStructureSchema;
|
|
16
|
+
export declare var GetControlRequest: StaticStructureSchema;
|
|
17
|
+
export declare var GetControlResponse: StaticStructureSchema;
|
|
18
|
+
export declare var ImplementationDetails: StaticStructureSchema;
|
|
19
|
+
export declare var ImplementationFilter: StaticStructureSchema;
|
|
20
|
+
export declare var ImplementationSummary: StaticStructureSchema;
|
|
21
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
22
|
+
export declare var ListCommonControlsRequest: StaticStructureSchema;
|
|
23
|
+
export declare var ListCommonControlsResponse: StaticStructureSchema;
|
|
24
|
+
export declare var ListControlMappingsRequest: StaticStructureSchema;
|
|
25
|
+
export declare var ListControlMappingsResponse: StaticStructureSchema;
|
|
26
|
+
export declare var ListControlsRequest: StaticStructureSchema;
|
|
27
|
+
export declare var ListControlsResponse: StaticStructureSchema;
|
|
28
|
+
export declare var ListDomainsRequest: StaticStructureSchema;
|
|
29
|
+
export declare var ListDomainsResponse: StaticStructureSchema;
|
|
30
|
+
export declare var ListObjectivesRequest: StaticStructureSchema;
|
|
31
|
+
export declare var ListObjectivesResponse: StaticStructureSchema;
|
|
32
|
+
export declare var ObjectiveFilter: StaticStructureSchema;
|
|
33
|
+
export declare var ObjectiveResourceFilter: StaticStructureSchema;
|
|
34
|
+
export declare var ObjectiveSummary: StaticStructureSchema;
|
|
35
|
+
export declare var RegionConfiguration: StaticStructureSchema;
|
|
36
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
37
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
38
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
39
|
+
export declare var __Unit: "unit";
|
|
40
|
+
export declare var ControlCatalogServiceException: StaticErrorSchema;
|
|
41
|
+
export declare var CommonControlArnFilterList: number;
|
|
42
|
+
export declare var CommonControlSummaryList: StaticListSchema;
|
|
43
|
+
export declare var ControlAliases: number;
|
|
44
|
+
export declare var ControlArnFilterList: number;
|
|
45
|
+
export declare var ControlMappings: StaticListSchema;
|
|
46
|
+
export declare var ControlParameters: StaticListSchema;
|
|
47
|
+
export declare var Controls: StaticListSchema;
|
|
48
|
+
export declare var DeployableRegions: number;
|
|
49
|
+
export declare var DomainResourceFilterList: StaticListSchema;
|
|
50
|
+
export declare var DomainSummaryList: StaticListSchema;
|
|
51
|
+
export declare var GovernedResources: number;
|
|
52
|
+
export declare var ImplementationIdentifierFilterList: number;
|
|
53
|
+
export declare var ImplementationTypeFilterList: number;
|
|
54
|
+
export declare var MappingTypeFilterList: number;
|
|
55
|
+
export declare var ObjectiveResourceFilterList: StaticListSchema;
|
|
56
|
+
export declare var ObjectiveSummaryList: StaticListSchema;
|
|
57
|
+
export declare var Mapping: StaticStructureSchema;
|
|
58
|
+
export declare var GetControl: StaticOperationSchema;
|
|
59
|
+
export declare var ListCommonControls: StaticOperationSchema;
|
|
60
|
+
export declare var ListControlMappings: StaticOperationSchema;
|
|
61
|
+
export declare var ListControls: StaticOperationSchema;
|
|
62
|
+
export declare var ListDomains: StaticOperationSchema;
|
|
63
|
+
export declare var ListObjectives: StaticOperationSchema;
|
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -114,6 +117,7 @@ export interface ClientDefaults
|
|
|
114
117
|
retryMode?: string | __Provider<string>;
|
|
115
118
|
logger?: __Logger;
|
|
116
119
|
extensions?: RuntimeExtension[];
|
|
120
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
117
121
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
118
122
|
}
|
|
119
123
|
export type ControlCatalogClientConfigType = Partial<
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
userAgentAppId?:
|
|
43
47
|
| string
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
retryStrategy?:
|
|
43
47
|
| import("@smithy/types").RetryStrategy
|
|
@@ -37,6 +37,10 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
|
|
|
37
37
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
39
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
40
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
41
|
+
import("@smithy/types").HttpRequest,
|
|
42
|
+
import("@smithy/types").HttpResponse
|
|
43
|
+
>;
|
|
40
44
|
defaultsMode:
|
|
41
45
|
| import("@smithy/smithy-client").DefaultsMode
|
|
42
46
|
| import("@smithy/types").Provider<
|
|
@@ -14,6 +14,10 @@ export declare const getRuntimeConfig: (config: ControlCatalogClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ControlCatalogHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
18
|
+
import("@smithy/types").HttpRequest,
|
|
19
|
+
import("@smithy/types").HttpResponse
|
|
20
|
+
>;
|
|
17
21
|
serviceId: string;
|
|
18
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
23
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
8
|
+
export declare var AssociatedDomainSummary: StaticStructureSchema;
|
|
9
|
+
export declare var AssociatedObjectiveSummary: StaticStructureSchema;
|
|
10
|
+
export declare var CommonControlFilter: StaticStructureSchema;
|
|
11
|
+
export declare var CommonControlMappingDetails: StaticStructureSchema;
|
|
12
|
+
export declare var CommonControlSummary: StaticStructureSchema;
|
|
13
|
+
export declare var ControlFilter: StaticStructureSchema;
|
|
14
|
+
export declare var ControlMapping: StaticStructureSchema;
|
|
15
|
+
export declare var ControlMappingFilter: StaticStructureSchema;
|
|
16
|
+
export declare var ControlParameter: StaticStructureSchema;
|
|
17
|
+
export declare var ControlSummary: StaticStructureSchema;
|
|
18
|
+
export declare var DomainResourceFilter: StaticStructureSchema;
|
|
19
|
+
export declare var DomainSummary: StaticStructureSchema;
|
|
20
|
+
export declare var FrameworkMappingDetails: StaticStructureSchema;
|
|
21
|
+
export declare var GetControlRequest: StaticStructureSchema;
|
|
22
|
+
export declare var GetControlResponse: StaticStructureSchema;
|
|
23
|
+
export declare var ImplementationDetails: StaticStructureSchema;
|
|
24
|
+
export declare var ImplementationFilter: StaticStructureSchema;
|
|
25
|
+
export declare var ImplementationSummary: StaticStructureSchema;
|
|
26
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
27
|
+
export declare var ListCommonControlsRequest: StaticStructureSchema;
|
|
28
|
+
export declare var ListCommonControlsResponse: StaticStructureSchema;
|
|
29
|
+
export declare var ListControlMappingsRequest: StaticStructureSchema;
|
|
30
|
+
export declare var ListControlMappingsResponse: StaticStructureSchema;
|
|
31
|
+
export declare var ListControlsRequest: StaticStructureSchema;
|
|
32
|
+
export declare var ListControlsResponse: StaticStructureSchema;
|
|
33
|
+
export declare var ListDomainsRequest: StaticStructureSchema;
|
|
34
|
+
export declare var ListDomainsResponse: StaticStructureSchema;
|
|
35
|
+
export declare var ListObjectivesRequest: StaticStructureSchema;
|
|
36
|
+
export declare var ListObjectivesResponse: StaticStructureSchema;
|
|
37
|
+
export declare var ObjectiveFilter: StaticStructureSchema;
|
|
38
|
+
export declare var ObjectiveResourceFilter: StaticStructureSchema;
|
|
39
|
+
export declare var ObjectiveSummary: StaticStructureSchema;
|
|
40
|
+
export declare var RegionConfiguration: StaticStructureSchema;
|
|
41
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
42
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
43
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
44
|
+
export declare var __Unit: "unit";
|
|
45
|
+
export declare var ControlCatalogServiceException: StaticErrorSchema;
|
|
46
|
+
export declare var CommonControlArnFilterList: number;
|
|
47
|
+
export declare var CommonControlSummaryList: StaticListSchema;
|
|
48
|
+
export declare var ControlAliases: number;
|
|
49
|
+
export declare var ControlArnFilterList: number;
|
|
50
|
+
export declare var ControlMappings: StaticListSchema;
|
|
51
|
+
export declare var ControlParameters: StaticListSchema;
|
|
52
|
+
export declare var Controls: StaticListSchema;
|
|
53
|
+
export declare var DeployableRegions: number;
|
|
54
|
+
export declare var DomainResourceFilterList: StaticListSchema;
|
|
55
|
+
export declare var DomainSummaryList: StaticListSchema;
|
|
56
|
+
export declare var GovernedResources: number;
|
|
57
|
+
export declare var ImplementationIdentifierFilterList: number;
|
|
58
|
+
export declare var ImplementationTypeFilterList: number;
|
|
59
|
+
export declare var MappingTypeFilterList: number;
|
|
60
|
+
export declare var ObjectiveResourceFilterList: StaticListSchema;
|
|
61
|
+
export declare var ObjectiveSummaryList: StaticListSchema;
|
|
62
|
+
export declare var Mapping: StaticStructureSchema;
|
|
63
|
+
export declare var GetControl: StaticOperationSchema;
|
|
64
|
+
export declare var ListCommonControls: StaticOperationSchema;
|
|
65
|
+
export declare var ListControlMappings: StaticOperationSchema;
|
|
66
|
+
export declare var ListControls: StaticOperationSchema;
|
|
67
|
+
export declare var ListDomains: StaticOperationSchema;
|
|
68
|
+
export declare var ListObjectives: StaticOperationSchema;
|
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.
|
|
4
|
+
"version": "3.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-controlcatalog",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.928.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { ControlCatalogServiceException as __BaseException } from "../models/ControlCatalogServiceException";
|
|
5
|
-
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_GetControlCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/get-control");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
ControlArn: [],
|
|
15
|
-
}));
|
|
16
|
-
b.m("POST").h(headers).b(body);
|
|
17
|
-
return b.build();
|
|
18
|
-
};
|
|
19
|
-
export const se_ListCommonControlsCommand = async (input, context) => {
|
|
20
|
-
const b = rb(input, context);
|
|
21
|
-
const headers = {
|
|
22
|
-
"content-type": "application/json",
|
|
23
|
-
};
|
|
24
|
-
b.bp("/common-controls");
|
|
25
|
-
const query = map({
|
|
26
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
27
|
-
[_nT]: [, input[_NT]],
|
|
28
|
-
});
|
|
29
|
-
let body;
|
|
30
|
-
body = JSON.stringify(take(input, {
|
|
31
|
-
CommonControlFilter: (_) => _json(_),
|
|
32
|
-
}));
|
|
33
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
34
|
-
return b.build();
|
|
35
|
-
};
|
|
36
|
-
export const se_ListControlMappingsCommand = async (input, context) => {
|
|
37
|
-
const b = rb(input, context);
|
|
38
|
-
const headers = {
|
|
39
|
-
"content-type": "application/json",
|
|
40
|
-
};
|
|
41
|
-
b.bp("/list-control-mappings");
|
|
42
|
-
const query = map({
|
|
43
|
-
[_nT]: [, input[_NT]],
|
|
44
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
45
|
-
});
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify(take(input, {
|
|
48
|
-
Filter: (_) => _json(_),
|
|
49
|
-
}));
|
|
50
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
51
|
-
return b.build();
|
|
52
|
-
};
|
|
53
|
-
export const se_ListControlsCommand = async (input, context) => {
|
|
54
|
-
const b = rb(input, context);
|
|
55
|
-
const headers = {
|
|
56
|
-
"content-type": "application/json",
|
|
57
|
-
};
|
|
58
|
-
b.bp("/list-controls");
|
|
59
|
-
const query = map({
|
|
60
|
-
[_nT]: [, input[_NT]],
|
|
61
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
62
|
-
});
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(take(input, {
|
|
65
|
-
Filter: (_) => _json(_),
|
|
66
|
-
}));
|
|
67
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
68
|
-
return b.build();
|
|
69
|
-
};
|
|
70
|
-
export const se_ListDomainsCommand = async (input, context) => {
|
|
71
|
-
const b = rb(input, context);
|
|
72
|
-
const headers = {};
|
|
73
|
-
b.bp("/domains");
|
|
74
|
-
const query = map({
|
|
75
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
76
|
-
[_nT]: [, input[_NT]],
|
|
77
|
-
});
|
|
78
|
-
let body;
|
|
79
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
80
|
-
return b.build();
|
|
81
|
-
};
|
|
82
|
-
export const se_ListObjectivesCommand = async (input, context) => {
|
|
83
|
-
const b = rb(input, context);
|
|
84
|
-
const headers = {
|
|
85
|
-
"content-type": "application/json",
|
|
86
|
-
};
|
|
87
|
-
b.bp("/objectives");
|
|
88
|
-
const query = map({
|
|
89
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
90
|
-
[_nT]: [, input[_NT]],
|
|
91
|
-
});
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(take(input, {
|
|
94
|
-
ObjectiveFilter: (_) => _json(_),
|
|
95
|
-
}));
|
|
96
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
97
|
-
return b.build();
|
|
98
|
-
};
|
|
99
|
-
export const de_GetControlCommand = async (output, context) => {
|
|
100
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
101
|
-
return de_CommandError(output, context);
|
|
102
|
-
}
|
|
103
|
-
const contents = map({
|
|
104
|
-
$metadata: deserializeMetadata(output),
|
|
105
|
-
});
|
|
106
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
107
|
-
const doc = take(data, {
|
|
108
|
-
Aliases: _json,
|
|
109
|
-
Arn: __expectString,
|
|
110
|
-
Behavior: __expectString,
|
|
111
|
-
CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
112
|
-
Description: __expectString,
|
|
113
|
-
GovernedResources: _json,
|
|
114
|
-
Implementation: _json,
|
|
115
|
-
Name: __expectString,
|
|
116
|
-
Parameters: _json,
|
|
117
|
-
RegionConfiguration: _json,
|
|
118
|
-
Severity: __expectString,
|
|
119
|
-
});
|
|
120
|
-
Object.assign(contents, doc);
|
|
121
|
-
return contents;
|
|
122
|
-
};
|
|
123
|
-
export const de_ListCommonControlsCommand = async (output, context) => {
|
|
124
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
125
|
-
return de_CommandError(output, context);
|
|
126
|
-
}
|
|
127
|
-
const contents = map({
|
|
128
|
-
$metadata: deserializeMetadata(output),
|
|
129
|
-
});
|
|
130
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
131
|
-
const doc = take(data, {
|
|
132
|
-
CommonControls: (_) => de_CommonControlSummaryList(_, context),
|
|
133
|
-
NextToken: __expectString,
|
|
134
|
-
});
|
|
135
|
-
Object.assign(contents, doc);
|
|
136
|
-
return contents;
|
|
137
|
-
};
|
|
138
|
-
export const de_ListControlMappingsCommand = async (output, context) => {
|
|
139
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
140
|
-
return de_CommandError(output, context);
|
|
141
|
-
}
|
|
142
|
-
const contents = map({
|
|
143
|
-
$metadata: deserializeMetadata(output),
|
|
144
|
-
});
|
|
145
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
146
|
-
const doc = take(data, {
|
|
147
|
-
ControlMappings: _json,
|
|
148
|
-
NextToken: __expectString,
|
|
149
|
-
});
|
|
150
|
-
Object.assign(contents, doc);
|
|
151
|
-
return contents;
|
|
152
|
-
};
|
|
153
|
-
export const de_ListControlsCommand = async (output, context) => {
|
|
154
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
155
|
-
return de_CommandError(output, context);
|
|
156
|
-
}
|
|
157
|
-
const contents = map({
|
|
158
|
-
$metadata: deserializeMetadata(output),
|
|
159
|
-
});
|
|
160
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
161
|
-
const doc = take(data, {
|
|
162
|
-
Controls: (_) => de_Controls(_, context),
|
|
163
|
-
NextToken: __expectString,
|
|
164
|
-
});
|
|
165
|
-
Object.assign(contents, doc);
|
|
166
|
-
return contents;
|
|
167
|
-
};
|
|
168
|
-
export const de_ListDomainsCommand = async (output, context) => {
|
|
169
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
170
|
-
return de_CommandError(output, context);
|
|
171
|
-
}
|
|
172
|
-
const contents = map({
|
|
173
|
-
$metadata: deserializeMetadata(output),
|
|
174
|
-
});
|
|
175
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
176
|
-
const doc = take(data, {
|
|
177
|
-
Domains: (_) => de_DomainSummaryList(_, context),
|
|
178
|
-
NextToken: __expectString,
|
|
179
|
-
});
|
|
180
|
-
Object.assign(contents, doc);
|
|
181
|
-
return contents;
|
|
182
|
-
};
|
|
183
|
-
export const de_ListObjectivesCommand = async (output, context) => {
|
|
184
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
185
|
-
return de_CommandError(output, context);
|
|
186
|
-
}
|
|
187
|
-
const contents = map({
|
|
188
|
-
$metadata: deserializeMetadata(output),
|
|
189
|
-
});
|
|
190
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
191
|
-
const doc = take(data, {
|
|
192
|
-
NextToken: __expectString,
|
|
193
|
-
Objectives: (_) => de_ObjectiveSummaryList(_, context),
|
|
194
|
-
});
|
|
195
|
-
Object.assign(contents, doc);
|
|
196
|
-
return contents;
|
|
197
|
-
};
|
|
198
|
-
const de_CommandError = async (output, context) => {
|
|
199
|
-
const parsedOutput = {
|
|
200
|
-
...output,
|
|
201
|
-
body: await parseErrorBody(output.body, context),
|
|
202
|
-
};
|
|
203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
204
|
-
switch (errorCode) {
|
|
205
|
-
case "AccessDeniedException":
|
|
206
|
-
case "com.amazonaws.controlcatalog#AccessDeniedException":
|
|
207
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
208
|
-
case "InternalServerException":
|
|
209
|
-
case "com.amazonaws.controlcatalog#InternalServerException":
|
|
210
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
211
|
-
case "ResourceNotFoundException":
|
|
212
|
-
case "com.amazonaws.controlcatalog#ResourceNotFoundException":
|
|
213
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
214
|
-
case "ThrottlingException":
|
|
215
|
-
case "com.amazonaws.controlcatalog#ThrottlingException":
|
|
216
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
217
|
-
case "ValidationException":
|
|
218
|
-
case "com.amazonaws.controlcatalog#ValidationException":
|
|
219
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
220
|
-
default:
|
|
221
|
-
const parsedBody = parsedOutput.body;
|
|
222
|
-
return throwDefaultError({
|
|
223
|
-
output,
|
|
224
|
-
parsedBody,
|
|
225
|
-
errorCode,
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
230
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
231
|
-
const contents = map({});
|
|
232
|
-
const data = parsedOutput.body;
|
|
233
|
-
const doc = take(data, {
|
|
234
|
-
Message: __expectString,
|
|
235
|
-
});
|
|
236
|
-
Object.assign(contents, doc);
|
|
237
|
-
const exception = new AccessDeniedException({
|
|
238
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
239
|
-
...contents,
|
|
240
|
-
});
|
|
241
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
242
|
-
};
|
|
243
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
244
|
-
const contents = map({});
|
|
245
|
-
const data = parsedOutput.body;
|
|
246
|
-
const doc = take(data, {
|
|
247
|
-
Message: __expectString,
|
|
248
|
-
});
|
|
249
|
-
Object.assign(contents, doc);
|
|
250
|
-
const exception = new InternalServerException({
|
|
251
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
252
|
-
...contents,
|
|
253
|
-
});
|
|
254
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
255
|
-
};
|
|
256
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
257
|
-
const contents = map({});
|
|
258
|
-
const data = parsedOutput.body;
|
|
259
|
-
const doc = take(data, {
|
|
260
|
-
Message: __expectString,
|
|
261
|
-
});
|
|
262
|
-
Object.assign(contents, doc);
|
|
263
|
-
const exception = new ResourceNotFoundException({
|
|
264
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
265
|
-
...contents,
|
|
266
|
-
});
|
|
267
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
268
|
-
};
|
|
269
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
270
|
-
const contents = map({});
|
|
271
|
-
const data = parsedOutput.body;
|
|
272
|
-
const doc = take(data, {
|
|
273
|
-
Message: __expectString,
|
|
274
|
-
});
|
|
275
|
-
Object.assign(contents, doc);
|
|
276
|
-
const exception = new ThrottlingException({
|
|
277
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
278
|
-
...contents,
|
|
279
|
-
});
|
|
280
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
281
|
-
};
|
|
282
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
283
|
-
const contents = map({});
|
|
284
|
-
const data = parsedOutput.body;
|
|
285
|
-
const doc = take(data, {
|
|
286
|
-
Message: __expectString,
|
|
287
|
-
});
|
|
288
|
-
Object.assign(contents, doc);
|
|
289
|
-
const exception = new ValidationException({
|
|
290
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
291
|
-
...contents,
|
|
292
|
-
});
|
|
293
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
294
|
-
};
|
|
295
|
-
const de_CommonControlSummary = (output, context) => {
|
|
296
|
-
return take(output, {
|
|
297
|
-
Arn: __expectString,
|
|
298
|
-
CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
299
|
-
Description: __expectString,
|
|
300
|
-
Domain: _json,
|
|
301
|
-
LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
302
|
-
Name: __expectString,
|
|
303
|
-
Objective: _json,
|
|
304
|
-
});
|
|
305
|
-
};
|
|
306
|
-
const de_CommonControlSummaryList = (output, context) => {
|
|
307
|
-
const retVal = (output || [])
|
|
308
|
-
.filter((e) => e != null)
|
|
309
|
-
.map((entry) => {
|
|
310
|
-
return de_CommonControlSummary(entry, context);
|
|
311
|
-
});
|
|
312
|
-
return retVal;
|
|
313
|
-
};
|
|
314
|
-
const de_Controls = (output, context) => {
|
|
315
|
-
const retVal = (output || [])
|
|
316
|
-
.filter((e) => e != null)
|
|
317
|
-
.map((entry) => {
|
|
318
|
-
return de_ControlSummary(entry, context);
|
|
319
|
-
});
|
|
320
|
-
return retVal;
|
|
321
|
-
};
|
|
322
|
-
const de_ControlSummary = (output, context) => {
|
|
323
|
-
return take(output, {
|
|
324
|
-
Aliases: _json,
|
|
325
|
-
Arn: __expectString,
|
|
326
|
-
Behavior: __expectString,
|
|
327
|
-
CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
328
|
-
Description: __expectString,
|
|
329
|
-
GovernedResources: _json,
|
|
330
|
-
Implementation: _json,
|
|
331
|
-
Name: __expectString,
|
|
332
|
-
Severity: __expectString,
|
|
333
|
-
});
|
|
334
|
-
};
|
|
335
|
-
const de_DomainSummary = (output, context) => {
|
|
336
|
-
return take(output, {
|
|
337
|
-
Arn: __expectString,
|
|
338
|
-
CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
339
|
-
Description: __expectString,
|
|
340
|
-
LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
341
|
-
Name: __expectString,
|
|
342
|
-
});
|
|
343
|
-
};
|
|
344
|
-
const de_DomainSummaryList = (output, context) => {
|
|
345
|
-
const retVal = (output || [])
|
|
346
|
-
.filter((e) => e != null)
|
|
347
|
-
.map((entry) => {
|
|
348
|
-
return de_DomainSummary(entry, context);
|
|
349
|
-
});
|
|
350
|
-
return retVal;
|
|
351
|
-
};
|
|
352
|
-
const de_ObjectiveSummary = (output, context) => {
|
|
353
|
-
return take(output, {
|
|
354
|
-
Arn: __expectString,
|
|
355
|
-
CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
356
|
-
Description: __expectString,
|
|
357
|
-
Domain: _json,
|
|
358
|
-
LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
359
|
-
Name: __expectString,
|
|
360
|
-
});
|
|
361
|
-
};
|
|
362
|
-
const de_ObjectiveSummaryList = (output, context) => {
|
|
363
|
-
const retVal = (output || [])
|
|
364
|
-
.filter((e) => e != null)
|
|
365
|
-
.map((entry) => {
|
|
366
|
-
return de_ObjectiveSummary(entry, context);
|
|
367
|
-
});
|
|
368
|
-
return retVal;
|
|
369
|
-
};
|
|
370
|
-
const deserializeMetadata = (output) => ({
|
|
371
|
-
httpStatusCode: output.statusCode,
|
|
372
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
373
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
374
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
375
|
-
});
|
|
376
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
377
|
-
const _MR = "MaxResults";
|
|
378
|
-
const _NT = "NextToken";
|
|
379
|
-
const _mR = "maxResults";
|
|
380
|
-
const _nT = "nextToken";
|