@aws-sdk/client-rtbfabric 3.915.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/LICENSE +201 -0
- package/README.md +421 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +2476 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +56 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-es/RTBFabric.js +61 -0
- package/dist-es/RTBFabricClient.js +48 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AcceptLinkCommand.js +22 -0
- package/dist-es/commands/CreateInboundExternalLinkCommand.js +22 -0
- package/dist-es/commands/CreateLinkCommand.js +22 -0
- package/dist-es/commands/CreateOutboundExternalLinkCommand.js +22 -0
- package/dist-es/commands/CreateRequesterGatewayCommand.js +22 -0
- package/dist-es/commands/CreateResponderGatewayCommand.js +23 -0
- package/dist-es/commands/DeleteInboundExternalLinkCommand.js +22 -0
- package/dist-es/commands/DeleteLinkCommand.js +22 -0
- package/dist-es/commands/DeleteOutboundExternalLinkCommand.js +22 -0
- package/dist-es/commands/DeleteRequesterGatewayCommand.js +22 -0
- package/dist-es/commands/DeleteResponderGatewayCommand.js +22 -0
- package/dist-es/commands/GetInboundExternalLinkCommand.js +22 -0
- package/dist-es/commands/GetLinkCommand.js +22 -0
- package/dist-es/commands/GetOutboundExternalLinkCommand.js +22 -0
- package/dist-es/commands/GetRequesterGatewayCommand.js +22 -0
- package/dist-es/commands/GetResponderGatewayCommand.js +23 -0
- package/dist-es/commands/ListLinksCommand.js +22 -0
- package/dist-es/commands/ListRequesterGatewaysCommand.js +22 -0
- package/dist-es/commands/ListResponderGatewaysCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/RejectLinkCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateLinkCommand.js +22 -0
- package/dist-es/commands/UpdateLinkModuleFlowCommand.js +22 -0
- package/dist-es/commands/UpdateRequesterGatewayCommand.js +22 -0
- package/dist-es/commands/UpdateResponderGatewayCommand.js +23 -0
- package/dist-es/commands/index.js +27 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/RTBFabricServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +219 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListLinksPaginator.js +4 -0
- package/dist-es/pagination/ListRequesterGatewaysPaginator.js +4 -0
- package/dist-es/pagination/ListResponderGatewaysPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1147 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +51 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/waiters/index.js +8 -0
- package/dist-es/waiters/waitForInboundExternalLinkActive.js +67 -0
- package/dist-es/waiters/waitForLinkAccepted.js +58 -0
- package/dist-es/waiters/waitForLinkActive.js +58 -0
- package/dist-es/waiters/waitForOutboundExternalLinkActive.js +67 -0
- package/dist-es/waiters/waitForRequesterGatewayActive.js +49 -0
- package/dist-es/waiters/waitForRequesterGatewayDeleted.js +40 -0
- package/dist-es/waiters/waitForResponderGatewayActive.js +49 -0
- package/dist-es/waiters/waitForResponderGatewayDeleted.js +40 -0
- package/dist-types/RTBFabric.d.ts +201 -0
- package/dist-types/RTBFabricClient.d.ts +214 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/AcceptLinkCommand.d.ts +244 -0
- package/dist-types/commands/CreateInboundExternalLinkCommand.d.ts +134 -0
- package/dist-types/commands/CreateLinkCommand.d.ts +252 -0
- package/dist-types/commands/CreateOutboundExternalLinkCommand.d.ts +118 -0
- package/dist-types/commands/CreateRequesterGatewayCommand.d.ts +131 -0
- package/dist-types/commands/CreateResponderGatewayCommand.d.ts +155 -0
- package/dist-types/commands/DeleteInboundExternalLinkCommand.d.ts +111 -0
- package/dist-types/commands/DeleteLinkCommand.d.ts +111 -0
- package/dist-types/commands/DeleteOutboundExternalLinkCommand.d.ts +111 -0
- package/dist-types/commands/DeleteRequesterGatewayCommand.d.ts +106 -0
- package/dist-types/commands/DeleteResponderGatewayCommand.d.ts +106 -0
- package/dist-types/commands/GetInboundExternalLinkCommand.d.ts +214 -0
- package/dist-types/commands/GetLinkCommand.d.ts +226 -0
- package/dist-types/commands/GetOutboundExternalLinkCommand.d.ts +119 -0
- package/dist-types/commands/GetRequesterGatewayCommand.d.ts +136 -0
- package/dist-types/commands/GetResponderGatewayCommand.d.ts +162 -0
- package/dist-types/commands/ListLinksCommand.d.ts +225 -0
- package/dist-types/commands/ListRequesterGatewaysCommand.d.ts +122 -0
- package/dist-types/commands/ListResponderGatewaysCommand.d.ts +122 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +109 -0
- package/dist-types/commands/RejectLinkCommand.d.ts +215 -0
- package/dist-types/commands/TagResourceCommand.d.ts +107 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +107 -0
- package/dist-types/commands/UpdateLinkCommand.d.ts +127 -0
- package/dist-types/commands/UpdateLinkModuleFlowCommand.d.ts +173 -0
- package/dist-types/commands/UpdateRequesterGatewayCommand.d.ts +113 -0
- package/dist-types/commands/UpdateResponderGatewayCommand.d.ts +139 -0
- package/dist-types/commands/index.d.ts +27 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/RTBFabricServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2011 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListLinksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRequesterGatewaysPaginator.d.ts +7 -0
- package/dist-types/pagination/ListResponderGatewaysPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +245 -0
- package/dist-types/runtimeConfig.browser.d.ts +50 -0
- package/dist-types/runtimeConfig.d.ts +50 -0
- package/dist-types/runtimeConfig.native.d.ts +49 -0
- package/dist-types/runtimeConfig.shared.d.ts +25 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/RTBFabric.d.ts +466 -0
- package/dist-types/ts3.4/RTBFabricClient.d.ts +281 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/AcceptLinkCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateInboundExternalLinkCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateLinkCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateOutboundExternalLinkCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateRequesterGatewayCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateResponderGatewayCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteInboundExternalLinkCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteLinkCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteOutboundExternalLinkCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteRequesterGatewayCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteResponderGatewayCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetInboundExternalLinkCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetLinkCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/GetOutboundExternalLinkCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetRequesterGatewayCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetResponderGatewayCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListLinksCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListRequesterGatewaysCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListResponderGatewaysCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RejectLinkCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateLinkCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateLinkModuleFlowCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateRequesterGatewayCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateResponderGatewayCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +27 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/RTBFabricServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +618 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListLinksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRequesterGatewaysPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListResponderGatewaysPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +329 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +92 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/waiters/index.d.ts +8 -0
- package/dist-types/ts3.4/waiters/waitForInboundExternalLinkActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForLinkAccepted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForLinkActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForOutboundExternalLinkActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForRequesterGatewayActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForRequesterGatewayDeleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForResponderGatewayActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForResponderGatewayDeleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +8 -0
- package/dist-types/waiters/waitForInboundExternalLinkActive.d.ts +14 -0
- package/dist-types/waiters/waitForLinkAccepted.d.ts +14 -0
- package/dist-types/waiters/waitForLinkActive.d.ts +14 -0
- package/dist-types/waiters/waitForOutboundExternalLinkActive.d.ts +14 -0
- package/dist-types/waiters/waitForRequesterGatewayActive.d.ts +14 -0
- package/dist-types/waiters/waitForRequesterGatewayDeleted.d.ts +14 -0
- package/dist-types/waiters/waitForResponderGatewayActive.d.ts +14 -0
- package/dist-types/waiters/waitForResponderGatewayDeleted.d.ts +14 -0
- package/package.json +101 -0
|
@@ -0,0 +1,2476 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
var utilWaiter = require('@smithy/util-waiter');
|
|
21
|
+
|
|
22
|
+
const resolveClientEndpointParameters = (options) => {
|
|
23
|
+
return Object.assign(options, {
|
|
24
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
25
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
26
|
+
defaultSigningName: "rtbfabric",
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const commonParams = {
|
|
30
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
31
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
32
|
+
Region: { type: "builtInParams", name: "region" },
|
|
33
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
37
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
38
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
39
|
+
let _credentials = runtimeConfig.credentials;
|
|
40
|
+
return {
|
|
41
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
42
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
43
|
+
if (index === -1) {
|
|
44
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
httpAuthSchemes() {
|
|
51
|
+
return _httpAuthSchemes;
|
|
52
|
+
},
|
|
53
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
54
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
55
|
+
},
|
|
56
|
+
httpAuthSchemeProvider() {
|
|
57
|
+
return _httpAuthSchemeProvider;
|
|
58
|
+
},
|
|
59
|
+
setCredentials(credentials) {
|
|
60
|
+
_credentials = credentials;
|
|
61
|
+
},
|
|
62
|
+
credentials() {
|
|
63
|
+
return _credentials;
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
68
|
+
return {
|
|
69
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
70
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
71
|
+
credentials: config.credentials(),
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
76
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
77
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
78
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
class RTBFabricClient extends smithyClient.Client {
|
|
82
|
+
config;
|
|
83
|
+
constructor(...[configuration]) {
|
|
84
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
85
|
+
super(_config_0);
|
|
86
|
+
this.initConfig = _config_0;
|
|
87
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
88
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
89
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
90
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
91
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
92
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
93
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
94
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
95
|
+
this.config = _config_8;
|
|
96
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
103
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultRTBFabricHttpAuthSchemeParametersProvider,
|
|
104
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
105
|
+
"aws.auth#sigv4": config.credentials,
|
|
106
|
+
}),
|
|
107
|
+
}));
|
|
108
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
109
|
+
}
|
|
110
|
+
destroy() {
|
|
111
|
+
super.destroy();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
class RTBFabricServiceException extends smithyClient.ServiceException {
|
|
116
|
+
constructor(options) {
|
|
117
|
+
super(options);
|
|
118
|
+
Object.setPrototypeOf(this, RTBFabricServiceException.prototype);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const ResponderErrorMaskingAction = {
|
|
123
|
+
NO_BID: "NO_BID",
|
|
124
|
+
PASSTHROUGH: "PASSTHROUGH",
|
|
125
|
+
};
|
|
126
|
+
const ResponderErrorMaskingLoggingType = {
|
|
127
|
+
METRIC: "METRIC",
|
|
128
|
+
NONE: "NONE",
|
|
129
|
+
RESPONSE: "RESPONSE",
|
|
130
|
+
};
|
|
131
|
+
const LinkDirection = {
|
|
132
|
+
REQUEST: "REQUEST",
|
|
133
|
+
RESPONSE: "RESPONSE",
|
|
134
|
+
};
|
|
135
|
+
exports.Action = void 0;
|
|
136
|
+
(function (Action) {
|
|
137
|
+
Action.visit = (value, visitor) => {
|
|
138
|
+
if (value.noBid !== undefined)
|
|
139
|
+
return visitor.noBid(value.noBid);
|
|
140
|
+
if (value.headerTag !== undefined)
|
|
141
|
+
return visitor.headerTag(value.headerTag);
|
|
142
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
143
|
+
};
|
|
144
|
+
})(exports.Action || (exports.Action = {}));
|
|
145
|
+
const FilterType = {
|
|
146
|
+
EXCLUDE: "EXCLUDE",
|
|
147
|
+
INCLUDE: "INCLUDE",
|
|
148
|
+
};
|
|
149
|
+
exports.ModuleParameters = void 0;
|
|
150
|
+
(function (ModuleParameters) {
|
|
151
|
+
ModuleParameters.visit = (value, visitor) => {
|
|
152
|
+
if (value.noBid !== undefined)
|
|
153
|
+
return visitor.noBid(value.noBid);
|
|
154
|
+
if (value.openRtbAttribute !== undefined)
|
|
155
|
+
return visitor.openRtbAttribute(value.openRtbAttribute);
|
|
156
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
157
|
+
};
|
|
158
|
+
})(exports.ModuleParameters || (exports.ModuleParameters = {}));
|
|
159
|
+
const LinkStatus = {
|
|
160
|
+
ACCEPTED: "ACCEPTED",
|
|
161
|
+
ACTIVE: "ACTIVE",
|
|
162
|
+
DELETED: "DELETED",
|
|
163
|
+
FAILED: "FAILED",
|
|
164
|
+
ISOLATED: "ISOLATED",
|
|
165
|
+
PENDING_CREATION: "PENDING_CREATION",
|
|
166
|
+
PENDING_DELETION: "PENDING_DELETION",
|
|
167
|
+
PENDING_ISOLATION: "PENDING_ISOLATION",
|
|
168
|
+
PENDING_REQUEST: "PENDING_REQUEST",
|
|
169
|
+
PENDING_RESTORATION: "PENDING_RESTORATION",
|
|
170
|
+
PENDING_UPDATE: "PENDING_UPDATE",
|
|
171
|
+
REJECTED: "REJECTED",
|
|
172
|
+
REQUESTED: "REQUESTED",
|
|
173
|
+
};
|
|
174
|
+
class AccessDeniedException extends RTBFabricServiceException {
|
|
175
|
+
name = "AccessDeniedException";
|
|
176
|
+
$fault = "client";
|
|
177
|
+
constructor(opts) {
|
|
178
|
+
super({
|
|
179
|
+
name: "AccessDeniedException",
|
|
180
|
+
$fault: "client",
|
|
181
|
+
...opts,
|
|
182
|
+
});
|
|
183
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
class ConflictException extends RTBFabricServiceException {
|
|
187
|
+
name = "ConflictException";
|
|
188
|
+
$fault = "client";
|
|
189
|
+
constructor(opts) {
|
|
190
|
+
super({
|
|
191
|
+
name: "ConflictException",
|
|
192
|
+
$fault: "client",
|
|
193
|
+
...opts,
|
|
194
|
+
});
|
|
195
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
class InternalServerException extends RTBFabricServiceException {
|
|
199
|
+
name = "InternalServerException";
|
|
200
|
+
$fault = "server";
|
|
201
|
+
$retryable = {};
|
|
202
|
+
constructor(opts) {
|
|
203
|
+
super({
|
|
204
|
+
name: "InternalServerException",
|
|
205
|
+
$fault: "server",
|
|
206
|
+
...opts,
|
|
207
|
+
});
|
|
208
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
class ResourceNotFoundException extends RTBFabricServiceException {
|
|
212
|
+
name = "ResourceNotFoundException";
|
|
213
|
+
$fault = "client";
|
|
214
|
+
constructor(opts) {
|
|
215
|
+
super({
|
|
216
|
+
name: "ResourceNotFoundException",
|
|
217
|
+
$fault: "client",
|
|
218
|
+
...opts,
|
|
219
|
+
});
|
|
220
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
class ThrottlingException extends RTBFabricServiceException {
|
|
224
|
+
name = "ThrottlingException";
|
|
225
|
+
$fault = "client";
|
|
226
|
+
$retryable = {};
|
|
227
|
+
constructor(opts) {
|
|
228
|
+
super({
|
|
229
|
+
name: "ThrottlingException",
|
|
230
|
+
$fault: "client",
|
|
231
|
+
...opts,
|
|
232
|
+
});
|
|
233
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
class ValidationException extends RTBFabricServiceException {
|
|
237
|
+
name = "ValidationException";
|
|
238
|
+
$fault = "client";
|
|
239
|
+
constructor(opts) {
|
|
240
|
+
super({
|
|
241
|
+
name: "ValidationException",
|
|
242
|
+
$fault: "client",
|
|
243
|
+
...opts,
|
|
244
|
+
});
|
|
245
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
class ServiceQuotaExceededException extends RTBFabricServiceException {
|
|
249
|
+
name = "ServiceQuotaExceededException";
|
|
250
|
+
$fault = "client";
|
|
251
|
+
constructor(opts) {
|
|
252
|
+
super({
|
|
253
|
+
name: "ServiceQuotaExceededException",
|
|
254
|
+
$fault: "client",
|
|
255
|
+
...opts,
|
|
256
|
+
});
|
|
257
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
const RequesterGatewayStatus = {
|
|
261
|
+
ACTIVE: "ACTIVE",
|
|
262
|
+
DELETED: "DELETED",
|
|
263
|
+
ERROR: "ERROR",
|
|
264
|
+
ISOLATED: "ISOLATED",
|
|
265
|
+
PENDING_CREATION: "PENDING_CREATION",
|
|
266
|
+
PENDING_DELETION: "PENDING_DELETION",
|
|
267
|
+
PENDING_ISOLATION: "PENDING_ISOLATION",
|
|
268
|
+
PENDING_RESTORATION: "PENDING_RESTORATION",
|
|
269
|
+
PENDING_UPDATE: "PENDING_UPDATE",
|
|
270
|
+
};
|
|
271
|
+
exports.ManagedEndpointConfiguration = void 0;
|
|
272
|
+
(function (ManagedEndpointConfiguration) {
|
|
273
|
+
ManagedEndpointConfiguration.visit = (value, visitor) => {
|
|
274
|
+
if (value.autoScalingGroups !== undefined)
|
|
275
|
+
return visitor.autoScalingGroups(value.autoScalingGroups);
|
|
276
|
+
if (value.eksEndpoints !== undefined)
|
|
277
|
+
return visitor.eksEndpoints(value.eksEndpoints);
|
|
278
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
279
|
+
};
|
|
280
|
+
})(exports.ManagedEndpointConfiguration || (exports.ManagedEndpointConfiguration = {}));
|
|
281
|
+
const Protocol = {
|
|
282
|
+
HTTP: "HTTP",
|
|
283
|
+
HTTPS: "HTTPS",
|
|
284
|
+
};
|
|
285
|
+
const ResponderGatewayStatus = {
|
|
286
|
+
ACTIVE: "ACTIVE",
|
|
287
|
+
DELETED: "DELETED",
|
|
288
|
+
ERROR: "ERROR",
|
|
289
|
+
ISOLATED: "ISOLATED",
|
|
290
|
+
PENDING_CREATION: "PENDING_CREATION",
|
|
291
|
+
PENDING_DELETION: "PENDING_DELETION",
|
|
292
|
+
PENDING_ISOLATION: "PENDING_ISOLATION",
|
|
293
|
+
PENDING_RESTORATION: "PENDING_RESTORATION",
|
|
294
|
+
PENDING_UPDATE: "PENDING_UPDATE",
|
|
295
|
+
};
|
|
296
|
+
const EksEndpointsConfigurationFilterSensitiveLog = (obj) => ({
|
|
297
|
+
...obj,
|
|
298
|
+
...(obj.clusterApiServerCaCertificateChain && { clusterApiServerCaCertificateChain: smithyClient.SENSITIVE_STRING }),
|
|
299
|
+
});
|
|
300
|
+
const ManagedEndpointConfigurationFilterSensitiveLog = (obj) => {
|
|
301
|
+
if (obj.autoScalingGroups !== undefined)
|
|
302
|
+
return { autoScalingGroups: obj.autoScalingGroups };
|
|
303
|
+
if (obj.eksEndpoints !== undefined)
|
|
304
|
+
return { eksEndpoints: EksEndpointsConfigurationFilterSensitiveLog(obj.eksEndpoints) };
|
|
305
|
+
if (obj.$unknown !== undefined)
|
|
306
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
307
|
+
};
|
|
308
|
+
const TrustStoreConfigurationFilterSensitiveLog = (obj) => ({
|
|
309
|
+
...obj,
|
|
310
|
+
...(obj.certificateAuthorityCertificates && { certificateAuthorityCertificates: smithyClient.SENSITIVE_STRING }),
|
|
311
|
+
});
|
|
312
|
+
const CreateResponderGatewayRequestFilterSensitiveLog = (obj) => ({
|
|
313
|
+
...obj,
|
|
314
|
+
...(obj.trustStoreConfiguration && {
|
|
315
|
+
trustStoreConfiguration: TrustStoreConfigurationFilterSensitiveLog(obj.trustStoreConfiguration),
|
|
316
|
+
}),
|
|
317
|
+
...(obj.managedEndpointConfiguration && {
|
|
318
|
+
managedEndpointConfiguration: ManagedEndpointConfigurationFilterSensitiveLog(obj.managedEndpointConfiguration),
|
|
319
|
+
}),
|
|
320
|
+
});
|
|
321
|
+
const GetResponderGatewayResponseFilterSensitiveLog = (obj) => ({
|
|
322
|
+
...obj,
|
|
323
|
+
...(obj.trustStoreConfiguration && {
|
|
324
|
+
trustStoreConfiguration: TrustStoreConfigurationFilterSensitiveLog(obj.trustStoreConfiguration),
|
|
325
|
+
}),
|
|
326
|
+
...(obj.managedEndpointConfiguration && {
|
|
327
|
+
managedEndpointConfiguration: ManagedEndpointConfigurationFilterSensitiveLog(obj.managedEndpointConfiguration),
|
|
328
|
+
}),
|
|
329
|
+
});
|
|
330
|
+
const UpdateResponderGatewayRequestFilterSensitiveLog = (obj) => ({
|
|
331
|
+
...obj,
|
|
332
|
+
...(obj.trustStoreConfiguration && {
|
|
333
|
+
trustStoreConfiguration: TrustStoreConfigurationFilterSensitiveLog(obj.trustStoreConfiguration),
|
|
334
|
+
}),
|
|
335
|
+
...(obj.managedEndpointConfiguration && {
|
|
336
|
+
managedEndpointConfiguration: ManagedEndpointConfigurationFilterSensitiveLog(obj.managedEndpointConfiguration),
|
|
337
|
+
}),
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
const se_AcceptLinkCommand = async (input, context) => {
|
|
341
|
+
const b = core.requestBuilder(input, context);
|
|
342
|
+
const headers = {
|
|
343
|
+
"content-type": "application/json",
|
|
344
|
+
};
|
|
345
|
+
b.bp("/gateway/{gatewayId}/link/{linkId}/accept");
|
|
346
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
347
|
+
b.p("linkId", () => input.linkId, "{linkId}", false);
|
|
348
|
+
let body;
|
|
349
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
350
|
+
attributes: (_) => se_LinkAttributes(_),
|
|
351
|
+
logSettings: (_) => se_LinkLogSettings(_),
|
|
352
|
+
}));
|
|
353
|
+
b.m("POST").h(headers).b(body);
|
|
354
|
+
return b.build();
|
|
355
|
+
};
|
|
356
|
+
const se_CreateInboundExternalLinkCommand = async (input, context) => {
|
|
357
|
+
const b = core.requestBuilder(input, context);
|
|
358
|
+
const headers = {
|
|
359
|
+
"content-type": "application/json",
|
|
360
|
+
};
|
|
361
|
+
b.bp("/responder-gateway/{gatewayId}/inbound-external-link");
|
|
362
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
363
|
+
let body;
|
|
364
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
365
|
+
attributes: (_) => se_LinkAttributes(_),
|
|
366
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
367
|
+
tags: (_) => smithyClient._json(_),
|
|
368
|
+
}));
|
|
369
|
+
b.m("POST").h(headers).b(body);
|
|
370
|
+
return b.build();
|
|
371
|
+
};
|
|
372
|
+
const se_CreateLinkCommand = async (input, context) => {
|
|
373
|
+
const b = core.requestBuilder(input, context);
|
|
374
|
+
const headers = {
|
|
375
|
+
"content-type": "application/json",
|
|
376
|
+
};
|
|
377
|
+
b.bp("/gateway/{gatewayId}/create-link");
|
|
378
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
379
|
+
let body;
|
|
380
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
381
|
+
attributes: (_) => se_LinkAttributes(_),
|
|
382
|
+
httpResponderAllowed: [],
|
|
383
|
+
logSettings: (_) => se_LinkLogSettings(_),
|
|
384
|
+
peerGatewayId: [],
|
|
385
|
+
tags: (_) => smithyClient._json(_),
|
|
386
|
+
}));
|
|
387
|
+
b.m("POST").h(headers).b(body);
|
|
388
|
+
return b.build();
|
|
389
|
+
};
|
|
390
|
+
const se_CreateOutboundExternalLinkCommand = async (input, context) => {
|
|
391
|
+
const b = core.requestBuilder(input, context);
|
|
392
|
+
const headers = {
|
|
393
|
+
"content-type": "application/json",
|
|
394
|
+
};
|
|
395
|
+
b.bp("/requester-gateway/{gatewayId}/outbound-external-link");
|
|
396
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
397
|
+
let body;
|
|
398
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
399
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
400
|
+
publicEndpoint: [],
|
|
401
|
+
tags: (_) => smithyClient._json(_),
|
|
402
|
+
}));
|
|
403
|
+
b.m("POST").h(headers).b(body);
|
|
404
|
+
return b.build();
|
|
405
|
+
};
|
|
406
|
+
const se_CreateRequesterGatewayCommand = async (input, context) => {
|
|
407
|
+
const b = core.requestBuilder(input, context);
|
|
408
|
+
const headers = {
|
|
409
|
+
"content-type": "application/json",
|
|
410
|
+
};
|
|
411
|
+
b.bp("/requester-gateway");
|
|
412
|
+
let body;
|
|
413
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
414
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
415
|
+
description: [],
|
|
416
|
+
securityGroupIds: (_) => smithyClient._json(_),
|
|
417
|
+
subnetIds: (_) => smithyClient._json(_),
|
|
418
|
+
tags: (_) => smithyClient._json(_),
|
|
419
|
+
vpcId: [],
|
|
420
|
+
}));
|
|
421
|
+
b.m("POST").h(headers).b(body);
|
|
422
|
+
return b.build();
|
|
423
|
+
};
|
|
424
|
+
const se_CreateResponderGatewayCommand = async (input, context) => {
|
|
425
|
+
const b = core.requestBuilder(input, context);
|
|
426
|
+
const headers = {
|
|
427
|
+
"content-type": "application/json",
|
|
428
|
+
};
|
|
429
|
+
b.bp("/responder-gateway");
|
|
430
|
+
let body;
|
|
431
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
432
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
433
|
+
description: [],
|
|
434
|
+
domainName: [],
|
|
435
|
+
managedEndpointConfiguration: (_) => smithyClient._json(_),
|
|
436
|
+
port: [],
|
|
437
|
+
protocol: [],
|
|
438
|
+
securityGroupIds: (_) => smithyClient._json(_),
|
|
439
|
+
subnetIds: (_) => smithyClient._json(_),
|
|
440
|
+
tags: (_) => smithyClient._json(_),
|
|
441
|
+
trustStoreConfiguration: (_) => smithyClient._json(_),
|
|
442
|
+
vpcId: [],
|
|
443
|
+
}));
|
|
444
|
+
b.m("POST").h(headers).b(body);
|
|
445
|
+
return b.build();
|
|
446
|
+
};
|
|
447
|
+
const se_DeleteInboundExternalLinkCommand = async (input, context) => {
|
|
448
|
+
const b = core.requestBuilder(input, context);
|
|
449
|
+
const headers = {};
|
|
450
|
+
b.bp("/responder-gateway/{gatewayId}/inbound-external-link/{linkId}");
|
|
451
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
452
|
+
b.p("linkId", () => input.linkId, "{linkId}", false);
|
|
453
|
+
let body;
|
|
454
|
+
b.m("DELETE").h(headers).b(body);
|
|
455
|
+
return b.build();
|
|
456
|
+
};
|
|
457
|
+
const se_DeleteLinkCommand = async (input, context) => {
|
|
458
|
+
const b = core.requestBuilder(input, context);
|
|
459
|
+
const headers = {};
|
|
460
|
+
b.bp("/gateway/{gatewayId}/link/{linkId}");
|
|
461
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
462
|
+
b.p("linkId", () => input.linkId, "{linkId}", false);
|
|
463
|
+
let body;
|
|
464
|
+
b.m("DELETE").h(headers).b(body);
|
|
465
|
+
return b.build();
|
|
466
|
+
};
|
|
467
|
+
const se_DeleteOutboundExternalLinkCommand = async (input, context) => {
|
|
468
|
+
const b = core.requestBuilder(input, context);
|
|
469
|
+
const headers = {};
|
|
470
|
+
b.bp("/requester-gateway/{gatewayId}/outbound-external-link/{linkId}");
|
|
471
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
472
|
+
b.p("linkId", () => input.linkId, "{linkId}", false);
|
|
473
|
+
let body;
|
|
474
|
+
b.m("DELETE").h(headers).b(body);
|
|
475
|
+
return b.build();
|
|
476
|
+
};
|
|
477
|
+
const se_DeleteRequesterGatewayCommand = async (input, context) => {
|
|
478
|
+
const b = core.requestBuilder(input, context);
|
|
479
|
+
const headers = {};
|
|
480
|
+
b.bp("/requester-gateway/{gatewayId}");
|
|
481
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
482
|
+
let body;
|
|
483
|
+
b.m("DELETE").h(headers).b(body);
|
|
484
|
+
return b.build();
|
|
485
|
+
};
|
|
486
|
+
const se_DeleteResponderGatewayCommand = async (input, context) => {
|
|
487
|
+
const b = core.requestBuilder(input, context);
|
|
488
|
+
const headers = {};
|
|
489
|
+
b.bp("/responder-gateway/{gatewayId}");
|
|
490
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
491
|
+
let body;
|
|
492
|
+
b.m("DELETE").h(headers).b(body);
|
|
493
|
+
return b.build();
|
|
494
|
+
};
|
|
495
|
+
const se_GetInboundExternalLinkCommand = async (input, context) => {
|
|
496
|
+
const b = core.requestBuilder(input, context);
|
|
497
|
+
const headers = {};
|
|
498
|
+
b.bp("/responder-gateway/{gatewayId}/inbound-external-link/{linkId}");
|
|
499
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
500
|
+
b.p("linkId", () => input.linkId, "{linkId}", false);
|
|
501
|
+
let body;
|
|
502
|
+
b.m("GET").h(headers).b(body);
|
|
503
|
+
return b.build();
|
|
504
|
+
};
|
|
505
|
+
const se_GetLinkCommand = async (input, context) => {
|
|
506
|
+
const b = core.requestBuilder(input, context);
|
|
507
|
+
const headers = {};
|
|
508
|
+
b.bp("/gateway/{gatewayId}/link/{linkId}");
|
|
509
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
510
|
+
b.p("linkId", () => input.linkId, "{linkId}", false);
|
|
511
|
+
let body;
|
|
512
|
+
b.m("GET").h(headers).b(body);
|
|
513
|
+
return b.build();
|
|
514
|
+
};
|
|
515
|
+
const se_GetOutboundExternalLinkCommand = async (input, context) => {
|
|
516
|
+
const b = core.requestBuilder(input, context);
|
|
517
|
+
const headers = {};
|
|
518
|
+
b.bp("/requester-gateway/{gatewayId}/outbound-external-link/{linkId}");
|
|
519
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
520
|
+
b.p("linkId", () => input.linkId, "{linkId}", false);
|
|
521
|
+
let body;
|
|
522
|
+
b.m("GET").h(headers).b(body);
|
|
523
|
+
return b.build();
|
|
524
|
+
};
|
|
525
|
+
const se_GetRequesterGatewayCommand = async (input, context) => {
|
|
526
|
+
const b = core.requestBuilder(input, context);
|
|
527
|
+
const headers = {};
|
|
528
|
+
b.bp("/requester-gateway/{gatewayId}");
|
|
529
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
530
|
+
let body;
|
|
531
|
+
b.m("GET").h(headers).b(body);
|
|
532
|
+
return b.build();
|
|
533
|
+
};
|
|
534
|
+
const se_GetResponderGatewayCommand = async (input, context) => {
|
|
535
|
+
const b = core.requestBuilder(input, context);
|
|
536
|
+
const headers = {};
|
|
537
|
+
b.bp("/responder-gateway/{gatewayId}");
|
|
538
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
539
|
+
let body;
|
|
540
|
+
b.m("GET").h(headers).b(body);
|
|
541
|
+
return b.build();
|
|
542
|
+
};
|
|
543
|
+
const se_ListLinksCommand = async (input, context) => {
|
|
544
|
+
const b = core.requestBuilder(input, context);
|
|
545
|
+
const headers = {};
|
|
546
|
+
b.bp("/gateway/{gatewayId}/links");
|
|
547
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
548
|
+
const query = smithyClient.map({
|
|
549
|
+
[_nT]: [, input[_nT]],
|
|
550
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
551
|
+
});
|
|
552
|
+
let body;
|
|
553
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
554
|
+
return b.build();
|
|
555
|
+
};
|
|
556
|
+
const se_ListRequesterGatewaysCommand = async (input, context) => {
|
|
557
|
+
const b = core.requestBuilder(input, context);
|
|
558
|
+
const headers = {};
|
|
559
|
+
b.bp("/requester-gateways");
|
|
560
|
+
const query = smithyClient.map({
|
|
561
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
562
|
+
[_nT]: [, input[_nT]],
|
|
563
|
+
});
|
|
564
|
+
let body;
|
|
565
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
566
|
+
return b.build();
|
|
567
|
+
};
|
|
568
|
+
const se_ListResponderGatewaysCommand = async (input, context) => {
|
|
569
|
+
const b = core.requestBuilder(input, context);
|
|
570
|
+
const headers = {};
|
|
571
|
+
b.bp("/responder-gateways");
|
|
572
|
+
const query = smithyClient.map({
|
|
573
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
574
|
+
[_nT]: [, input[_nT]],
|
|
575
|
+
});
|
|
576
|
+
let body;
|
|
577
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
578
|
+
return b.build();
|
|
579
|
+
};
|
|
580
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
581
|
+
const b = core.requestBuilder(input, context);
|
|
582
|
+
const headers = {};
|
|
583
|
+
b.bp("/tags/{resourceArn}");
|
|
584
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
585
|
+
let body;
|
|
586
|
+
b.m("GET").h(headers).b(body);
|
|
587
|
+
return b.build();
|
|
588
|
+
};
|
|
589
|
+
const se_RejectLinkCommand = async (input, context) => {
|
|
590
|
+
const b = core.requestBuilder(input, context);
|
|
591
|
+
const headers = {};
|
|
592
|
+
b.bp("/gateway/{gatewayId}/link/{linkId}/reject");
|
|
593
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
594
|
+
b.p("linkId", () => input.linkId, "{linkId}", false);
|
|
595
|
+
let body;
|
|
596
|
+
b.m("POST").h(headers).b(body);
|
|
597
|
+
return b.build();
|
|
598
|
+
};
|
|
599
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
600
|
+
const b = core.requestBuilder(input, context);
|
|
601
|
+
const headers = {
|
|
602
|
+
"content-type": "application/json",
|
|
603
|
+
};
|
|
604
|
+
b.bp("/tags/{resourceArn}");
|
|
605
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
606
|
+
let body;
|
|
607
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
608
|
+
tags: (_) => smithyClient._json(_),
|
|
609
|
+
}));
|
|
610
|
+
b.m("POST").h(headers).b(body);
|
|
611
|
+
return b.build();
|
|
612
|
+
};
|
|
613
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
614
|
+
const b = core.requestBuilder(input, context);
|
|
615
|
+
const headers = {};
|
|
616
|
+
b.bp("/tags/{resourceArn}");
|
|
617
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
618
|
+
const query = smithyClient.map({
|
|
619
|
+
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
620
|
+
});
|
|
621
|
+
let body;
|
|
622
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
623
|
+
return b.build();
|
|
624
|
+
};
|
|
625
|
+
const se_UpdateLinkCommand = async (input, context) => {
|
|
626
|
+
const b = core.requestBuilder(input, context);
|
|
627
|
+
const headers = {
|
|
628
|
+
"content-type": "application/json",
|
|
629
|
+
};
|
|
630
|
+
b.bp("/gateway/{gatewayId}/link/{linkId}");
|
|
631
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
632
|
+
b.p("linkId", () => input.linkId, "{linkId}", false);
|
|
633
|
+
let body;
|
|
634
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
635
|
+
logSettings: (_) => se_LinkLogSettings(_),
|
|
636
|
+
}));
|
|
637
|
+
b.m("PATCH").h(headers).b(body);
|
|
638
|
+
return b.build();
|
|
639
|
+
};
|
|
640
|
+
const se_UpdateLinkModuleFlowCommand = async (input, context) => {
|
|
641
|
+
const b = core.requestBuilder(input, context);
|
|
642
|
+
const headers = {
|
|
643
|
+
"content-type": "application/json",
|
|
644
|
+
};
|
|
645
|
+
b.bp("/gateway/{gatewayId}/link/{linkId}/module-flow");
|
|
646
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
647
|
+
b.p("linkId", () => input.linkId, "{linkId}", false);
|
|
648
|
+
let body;
|
|
649
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
650
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
651
|
+
modules: (_) => se_ModuleConfigurationList(_),
|
|
652
|
+
}));
|
|
653
|
+
b.m("POST").h(headers).b(body);
|
|
654
|
+
return b.build();
|
|
655
|
+
};
|
|
656
|
+
const se_UpdateRequesterGatewayCommand = async (input, context) => {
|
|
657
|
+
const b = core.requestBuilder(input, context);
|
|
658
|
+
const headers = {
|
|
659
|
+
"content-type": "application/json",
|
|
660
|
+
};
|
|
661
|
+
b.bp("/requester-gateway/{gatewayId}/update");
|
|
662
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
663
|
+
let body;
|
|
664
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
665
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
666
|
+
description: [],
|
|
667
|
+
}));
|
|
668
|
+
b.m("POST").h(headers).b(body);
|
|
669
|
+
return b.build();
|
|
670
|
+
};
|
|
671
|
+
const se_UpdateResponderGatewayCommand = async (input, context) => {
|
|
672
|
+
const b = core.requestBuilder(input, context);
|
|
673
|
+
const headers = {
|
|
674
|
+
"content-type": "application/json",
|
|
675
|
+
};
|
|
676
|
+
b.bp("/responder-gateway/{gatewayId}/update");
|
|
677
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
678
|
+
let body;
|
|
679
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
680
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
681
|
+
description: [],
|
|
682
|
+
domainName: [],
|
|
683
|
+
managedEndpointConfiguration: (_) => smithyClient._json(_),
|
|
684
|
+
port: [],
|
|
685
|
+
protocol: [],
|
|
686
|
+
trustStoreConfiguration: (_) => smithyClient._json(_),
|
|
687
|
+
}));
|
|
688
|
+
b.m("POST").h(headers).b(body);
|
|
689
|
+
return b.build();
|
|
690
|
+
};
|
|
691
|
+
const de_AcceptLinkCommand = async (output, context) => {
|
|
692
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
693
|
+
return de_CommandError(output, context);
|
|
694
|
+
}
|
|
695
|
+
const contents = smithyClient.map({
|
|
696
|
+
$metadata: deserializeMetadata(output),
|
|
697
|
+
});
|
|
698
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
699
|
+
const doc = smithyClient.take(data, {
|
|
700
|
+
attributes: (_) => de_LinkAttributes(_),
|
|
701
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
702
|
+
direction: smithyClient.expectString,
|
|
703
|
+
flowModules: (_) => de_ModuleConfigurationList(_),
|
|
704
|
+
gatewayId: smithyClient.expectString,
|
|
705
|
+
linkId: smithyClient.expectString,
|
|
706
|
+
peerGatewayId: smithyClient.expectString,
|
|
707
|
+
pendingFlowModules: (_) => de_ModuleConfigurationList(_),
|
|
708
|
+
status: smithyClient.expectString,
|
|
709
|
+
updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
710
|
+
});
|
|
711
|
+
Object.assign(contents, doc);
|
|
712
|
+
return contents;
|
|
713
|
+
};
|
|
714
|
+
const de_CreateInboundExternalLinkCommand = async (output, context) => {
|
|
715
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
716
|
+
return de_CommandError(output, context);
|
|
717
|
+
}
|
|
718
|
+
const contents = smithyClient.map({
|
|
719
|
+
$metadata: deserializeMetadata(output),
|
|
720
|
+
});
|
|
721
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
722
|
+
const doc = smithyClient.take(data, {
|
|
723
|
+
domainName: smithyClient.expectString,
|
|
724
|
+
gatewayId: smithyClient.expectString,
|
|
725
|
+
linkId: smithyClient.expectString,
|
|
726
|
+
status: smithyClient.expectString,
|
|
727
|
+
});
|
|
728
|
+
Object.assign(contents, doc);
|
|
729
|
+
return contents;
|
|
730
|
+
};
|
|
731
|
+
const de_CreateLinkCommand = async (output, context) => {
|
|
732
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
733
|
+
return de_CommandError(output, context);
|
|
734
|
+
}
|
|
735
|
+
const contents = smithyClient.map({
|
|
736
|
+
$metadata: deserializeMetadata(output),
|
|
737
|
+
});
|
|
738
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
739
|
+
const doc = smithyClient.take(data, {
|
|
740
|
+
attributes: (_) => de_LinkAttributes(_),
|
|
741
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
742
|
+
customerProvidedId: smithyClient.expectString,
|
|
743
|
+
direction: smithyClient.expectString,
|
|
744
|
+
flowModules: (_) => de_ModuleConfigurationList(_),
|
|
745
|
+
gatewayId: smithyClient.expectString,
|
|
746
|
+
linkId: smithyClient.expectString,
|
|
747
|
+
peerGatewayId: smithyClient.expectString,
|
|
748
|
+
pendingFlowModules: (_) => de_ModuleConfigurationList(_),
|
|
749
|
+
status: smithyClient.expectString,
|
|
750
|
+
updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
751
|
+
});
|
|
752
|
+
Object.assign(contents, doc);
|
|
753
|
+
return contents;
|
|
754
|
+
};
|
|
755
|
+
const de_CreateOutboundExternalLinkCommand = async (output, context) => {
|
|
756
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
757
|
+
return de_CommandError(output, context);
|
|
758
|
+
}
|
|
759
|
+
const contents = smithyClient.map({
|
|
760
|
+
$metadata: deserializeMetadata(output),
|
|
761
|
+
});
|
|
762
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
763
|
+
const doc = smithyClient.take(data, {
|
|
764
|
+
gatewayId: smithyClient.expectString,
|
|
765
|
+
linkId: smithyClient.expectString,
|
|
766
|
+
status: smithyClient.expectString,
|
|
767
|
+
});
|
|
768
|
+
Object.assign(contents, doc);
|
|
769
|
+
return contents;
|
|
770
|
+
};
|
|
771
|
+
const de_CreateRequesterGatewayCommand = async (output, context) => {
|
|
772
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
773
|
+
return de_CommandError(output, context);
|
|
774
|
+
}
|
|
775
|
+
const contents = smithyClient.map({
|
|
776
|
+
$metadata: deserializeMetadata(output),
|
|
777
|
+
});
|
|
778
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
779
|
+
const doc = smithyClient.take(data, {
|
|
780
|
+
domainName: smithyClient.expectString,
|
|
781
|
+
gatewayId: smithyClient.expectString,
|
|
782
|
+
status: smithyClient.expectString,
|
|
783
|
+
});
|
|
784
|
+
Object.assign(contents, doc);
|
|
785
|
+
return contents;
|
|
786
|
+
};
|
|
787
|
+
const de_CreateResponderGatewayCommand = async (output, context) => {
|
|
788
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
789
|
+
return de_CommandError(output, context);
|
|
790
|
+
}
|
|
791
|
+
const contents = smithyClient.map({
|
|
792
|
+
$metadata: deserializeMetadata(output),
|
|
793
|
+
});
|
|
794
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
795
|
+
const doc = smithyClient.take(data, {
|
|
796
|
+
gatewayId: smithyClient.expectString,
|
|
797
|
+
status: smithyClient.expectString,
|
|
798
|
+
});
|
|
799
|
+
Object.assign(contents, doc);
|
|
800
|
+
return contents;
|
|
801
|
+
};
|
|
802
|
+
const de_DeleteInboundExternalLinkCommand = async (output, context) => {
|
|
803
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
804
|
+
return de_CommandError(output, context);
|
|
805
|
+
}
|
|
806
|
+
const contents = smithyClient.map({
|
|
807
|
+
$metadata: deserializeMetadata(output),
|
|
808
|
+
});
|
|
809
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
810
|
+
const doc = smithyClient.take(data, {
|
|
811
|
+
linkId: smithyClient.expectString,
|
|
812
|
+
status: smithyClient.expectString,
|
|
813
|
+
});
|
|
814
|
+
Object.assign(contents, doc);
|
|
815
|
+
return contents;
|
|
816
|
+
};
|
|
817
|
+
const de_DeleteLinkCommand = async (output, context) => {
|
|
818
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
|
+
return de_CommandError(output, context);
|
|
820
|
+
}
|
|
821
|
+
const contents = smithyClient.map({
|
|
822
|
+
$metadata: deserializeMetadata(output),
|
|
823
|
+
});
|
|
824
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
825
|
+
const doc = smithyClient.take(data, {
|
|
826
|
+
linkId: smithyClient.expectString,
|
|
827
|
+
status: smithyClient.expectString,
|
|
828
|
+
});
|
|
829
|
+
Object.assign(contents, doc);
|
|
830
|
+
return contents;
|
|
831
|
+
};
|
|
832
|
+
const de_DeleteOutboundExternalLinkCommand = async (output, context) => {
|
|
833
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
834
|
+
return de_CommandError(output, context);
|
|
835
|
+
}
|
|
836
|
+
const contents = smithyClient.map({
|
|
837
|
+
$metadata: deserializeMetadata(output),
|
|
838
|
+
});
|
|
839
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
840
|
+
const doc = smithyClient.take(data, {
|
|
841
|
+
linkId: smithyClient.expectString,
|
|
842
|
+
status: smithyClient.expectString,
|
|
843
|
+
});
|
|
844
|
+
Object.assign(contents, doc);
|
|
845
|
+
return contents;
|
|
846
|
+
};
|
|
847
|
+
const de_DeleteRequesterGatewayCommand = async (output, context) => {
|
|
848
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
849
|
+
return de_CommandError(output, context);
|
|
850
|
+
}
|
|
851
|
+
const contents = smithyClient.map({
|
|
852
|
+
$metadata: deserializeMetadata(output),
|
|
853
|
+
});
|
|
854
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
855
|
+
const doc = smithyClient.take(data, {
|
|
856
|
+
gatewayId: smithyClient.expectString,
|
|
857
|
+
status: smithyClient.expectString,
|
|
858
|
+
});
|
|
859
|
+
Object.assign(contents, doc);
|
|
860
|
+
return contents;
|
|
861
|
+
};
|
|
862
|
+
const de_DeleteResponderGatewayCommand = async (output, context) => {
|
|
863
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
864
|
+
return de_CommandError(output, context);
|
|
865
|
+
}
|
|
866
|
+
const contents = smithyClient.map({
|
|
867
|
+
$metadata: deserializeMetadata(output),
|
|
868
|
+
});
|
|
869
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
870
|
+
const doc = smithyClient.take(data, {
|
|
871
|
+
gatewayId: smithyClient.expectString,
|
|
872
|
+
status: smithyClient.expectString,
|
|
873
|
+
});
|
|
874
|
+
Object.assign(contents, doc);
|
|
875
|
+
return contents;
|
|
876
|
+
};
|
|
877
|
+
const de_GetInboundExternalLinkCommand = async (output, context) => {
|
|
878
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
879
|
+
return de_CommandError(output, context);
|
|
880
|
+
}
|
|
881
|
+
const contents = smithyClient.map({
|
|
882
|
+
$metadata: deserializeMetadata(output),
|
|
883
|
+
});
|
|
884
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
885
|
+
const doc = smithyClient.take(data, {
|
|
886
|
+
attributes: (_) => de_LinkAttributes(_),
|
|
887
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
888
|
+
domainName: smithyClient.expectString,
|
|
889
|
+
flowModules: (_) => de_ModuleConfigurationList(_),
|
|
890
|
+
gatewayId: smithyClient.expectString,
|
|
891
|
+
linkId: smithyClient.expectString,
|
|
892
|
+
pendingFlowModules: (_) => de_ModuleConfigurationList(_),
|
|
893
|
+
status: smithyClient.expectString,
|
|
894
|
+
tags: smithyClient._json,
|
|
895
|
+
updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
896
|
+
});
|
|
897
|
+
Object.assign(contents, doc);
|
|
898
|
+
return contents;
|
|
899
|
+
};
|
|
900
|
+
const de_GetLinkCommand = async (output, context) => {
|
|
901
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
902
|
+
return de_CommandError(output, context);
|
|
903
|
+
}
|
|
904
|
+
const contents = smithyClient.map({
|
|
905
|
+
$metadata: deserializeMetadata(output),
|
|
906
|
+
});
|
|
907
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
908
|
+
const doc = smithyClient.take(data, {
|
|
909
|
+
attributes: (_) => de_LinkAttributes(_),
|
|
910
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
911
|
+
direction: smithyClient.expectString,
|
|
912
|
+
flowModules: (_) => de_ModuleConfigurationList(_),
|
|
913
|
+
gatewayId: smithyClient.expectString,
|
|
914
|
+
linkId: smithyClient.expectString,
|
|
915
|
+
logSettings: (_) => de_LinkLogSettings(_),
|
|
916
|
+
peerGatewayId: smithyClient.expectString,
|
|
917
|
+
pendingFlowModules: (_) => de_ModuleConfigurationList(_),
|
|
918
|
+
status: smithyClient.expectString,
|
|
919
|
+
tags: smithyClient._json,
|
|
920
|
+
updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
921
|
+
});
|
|
922
|
+
Object.assign(contents, doc);
|
|
923
|
+
return contents;
|
|
924
|
+
};
|
|
925
|
+
const de_GetOutboundExternalLinkCommand = async (output, context) => {
|
|
926
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
927
|
+
return de_CommandError(output, context);
|
|
928
|
+
}
|
|
929
|
+
const contents = smithyClient.map({
|
|
930
|
+
$metadata: deserializeMetadata(output),
|
|
931
|
+
});
|
|
932
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
933
|
+
const doc = smithyClient.take(data, {
|
|
934
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
935
|
+
gatewayId: smithyClient.expectString,
|
|
936
|
+
linkId: smithyClient.expectString,
|
|
937
|
+
publicEndpoint: smithyClient.expectString,
|
|
938
|
+
status: smithyClient.expectString,
|
|
939
|
+
tags: smithyClient._json,
|
|
940
|
+
updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
941
|
+
});
|
|
942
|
+
Object.assign(contents, doc);
|
|
943
|
+
return contents;
|
|
944
|
+
};
|
|
945
|
+
const de_GetRequesterGatewayCommand = async (output, context) => {
|
|
946
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
+
return de_CommandError(output, context);
|
|
948
|
+
}
|
|
949
|
+
const contents = smithyClient.map({
|
|
950
|
+
$metadata: deserializeMetadata(output),
|
|
951
|
+
});
|
|
952
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
953
|
+
const doc = smithyClient.take(data, {
|
|
954
|
+
activeLinksCount: smithyClient.expectInt32,
|
|
955
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
956
|
+
description: smithyClient.expectString,
|
|
957
|
+
domainName: smithyClient.expectString,
|
|
958
|
+
gatewayId: smithyClient.expectString,
|
|
959
|
+
securityGroupIds: smithyClient._json,
|
|
960
|
+
status: smithyClient.expectString,
|
|
961
|
+
subnetIds: smithyClient._json,
|
|
962
|
+
tags: smithyClient._json,
|
|
963
|
+
totalLinksCount: smithyClient.expectInt32,
|
|
964
|
+
updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
965
|
+
vpcId: smithyClient.expectString,
|
|
966
|
+
});
|
|
967
|
+
Object.assign(contents, doc);
|
|
968
|
+
return contents;
|
|
969
|
+
};
|
|
970
|
+
const de_GetResponderGatewayCommand = async (output, context) => {
|
|
971
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
972
|
+
return de_CommandError(output, context);
|
|
973
|
+
}
|
|
974
|
+
const contents = smithyClient.map({
|
|
975
|
+
$metadata: deserializeMetadata(output),
|
|
976
|
+
});
|
|
977
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
978
|
+
const doc = smithyClient.take(data, {
|
|
979
|
+
activeLinksCount: smithyClient.expectInt32,
|
|
980
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
981
|
+
description: smithyClient.expectString,
|
|
982
|
+
domainName: smithyClient.expectString,
|
|
983
|
+
gatewayId: smithyClient.expectString,
|
|
984
|
+
inboundLinksCount: smithyClient.expectInt32,
|
|
985
|
+
managedEndpointConfiguration: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
986
|
+
port: smithyClient.expectInt32,
|
|
987
|
+
protocol: smithyClient.expectString,
|
|
988
|
+
securityGroupIds: smithyClient._json,
|
|
989
|
+
status: smithyClient.expectString,
|
|
990
|
+
subnetIds: smithyClient._json,
|
|
991
|
+
tags: smithyClient._json,
|
|
992
|
+
totalLinksCount: smithyClient.expectInt32,
|
|
993
|
+
trustStoreConfiguration: smithyClient._json,
|
|
994
|
+
updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
995
|
+
vpcId: smithyClient.expectString,
|
|
996
|
+
});
|
|
997
|
+
Object.assign(contents, doc);
|
|
998
|
+
return contents;
|
|
999
|
+
};
|
|
1000
|
+
const de_ListLinksCommand = async (output, context) => {
|
|
1001
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1002
|
+
return de_CommandError(output, context);
|
|
1003
|
+
}
|
|
1004
|
+
const contents = smithyClient.map({
|
|
1005
|
+
$metadata: deserializeMetadata(output),
|
|
1006
|
+
});
|
|
1007
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1008
|
+
const doc = smithyClient.take(data, {
|
|
1009
|
+
links: (_) => de_LinkList(_),
|
|
1010
|
+
nextToken: smithyClient.expectString,
|
|
1011
|
+
});
|
|
1012
|
+
Object.assign(contents, doc);
|
|
1013
|
+
return contents;
|
|
1014
|
+
};
|
|
1015
|
+
const de_ListRequesterGatewaysCommand = async (output, context) => {
|
|
1016
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1017
|
+
return de_CommandError(output, context);
|
|
1018
|
+
}
|
|
1019
|
+
const contents = smithyClient.map({
|
|
1020
|
+
$metadata: deserializeMetadata(output),
|
|
1021
|
+
});
|
|
1022
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1023
|
+
const doc = smithyClient.take(data, {
|
|
1024
|
+
gatewayIds: smithyClient._json,
|
|
1025
|
+
nextToken: smithyClient.expectString,
|
|
1026
|
+
});
|
|
1027
|
+
Object.assign(contents, doc);
|
|
1028
|
+
return contents;
|
|
1029
|
+
};
|
|
1030
|
+
const de_ListResponderGatewaysCommand = async (output, context) => {
|
|
1031
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1032
|
+
return de_CommandError(output, context);
|
|
1033
|
+
}
|
|
1034
|
+
const contents = smithyClient.map({
|
|
1035
|
+
$metadata: deserializeMetadata(output),
|
|
1036
|
+
});
|
|
1037
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1038
|
+
const doc = smithyClient.take(data, {
|
|
1039
|
+
gatewayIds: smithyClient._json,
|
|
1040
|
+
nextToken: smithyClient.expectString,
|
|
1041
|
+
});
|
|
1042
|
+
Object.assign(contents, doc);
|
|
1043
|
+
return contents;
|
|
1044
|
+
};
|
|
1045
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1046
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1047
|
+
return de_CommandError(output, context);
|
|
1048
|
+
}
|
|
1049
|
+
const contents = smithyClient.map({
|
|
1050
|
+
$metadata: deserializeMetadata(output),
|
|
1051
|
+
});
|
|
1052
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1053
|
+
const doc = smithyClient.take(data, {
|
|
1054
|
+
tags: smithyClient._json,
|
|
1055
|
+
});
|
|
1056
|
+
Object.assign(contents, doc);
|
|
1057
|
+
return contents;
|
|
1058
|
+
};
|
|
1059
|
+
const de_RejectLinkCommand = async (output, context) => {
|
|
1060
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
|
+
return de_CommandError(output, context);
|
|
1062
|
+
}
|
|
1063
|
+
const contents = smithyClient.map({
|
|
1064
|
+
$metadata: deserializeMetadata(output),
|
|
1065
|
+
});
|
|
1066
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1067
|
+
const doc = smithyClient.take(data, {
|
|
1068
|
+
attributes: (_) => de_LinkAttributes(_),
|
|
1069
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1070
|
+
direction: smithyClient.expectString,
|
|
1071
|
+
flowModules: (_) => de_ModuleConfigurationList(_),
|
|
1072
|
+
gatewayId: smithyClient.expectString,
|
|
1073
|
+
linkId: smithyClient.expectString,
|
|
1074
|
+
peerGatewayId: smithyClient.expectString,
|
|
1075
|
+
pendingFlowModules: (_) => de_ModuleConfigurationList(_),
|
|
1076
|
+
status: smithyClient.expectString,
|
|
1077
|
+
updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1078
|
+
});
|
|
1079
|
+
Object.assign(contents, doc);
|
|
1080
|
+
return contents;
|
|
1081
|
+
};
|
|
1082
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1083
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1084
|
+
return de_CommandError(output, context);
|
|
1085
|
+
}
|
|
1086
|
+
const contents = smithyClient.map({
|
|
1087
|
+
$metadata: deserializeMetadata(output),
|
|
1088
|
+
});
|
|
1089
|
+
await smithyClient.collectBody(output.body, context);
|
|
1090
|
+
return contents;
|
|
1091
|
+
};
|
|
1092
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1093
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1094
|
+
return de_CommandError(output, context);
|
|
1095
|
+
}
|
|
1096
|
+
const contents = smithyClient.map({
|
|
1097
|
+
$metadata: deserializeMetadata(output),
|
|
1098
|
+
});
|
|
1099
|
+
await smithyClient.collectBody(output.body, context);
|
|
1100
|
+
return contents;
|
|
1101
|
+
};
|
|
1102
|
+
const de_UpdateLinkCommand = async (output, context) => {
|
|
1103
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
|
+
return de_CommandError(output, context);
|
|
1105
|
+
}
|
|
1106
|
+
const contents = smithyClient.map({
|
|
1107
|
+
$metadata: deserializeMetadata(output),
|
|
1108
|
+
});
|
|
1109
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1110
|
+
const doc = smithyClient.take(data, {
|
|
1111
|
+
linkId: smithyClient.expectString,
|
|
1112
|
+
status: smithyClient.expectString,
|
|
1113
|
+
});
|
|
1114
|
+
Object.assign(contents, doc);
|
|
1115
|
+
return contents;
|
|
1116
|
+
};
|
|
1117
|
+
const de_UpdateLinkModuleFlowCommand = async (output, context) => {
|
|
1118
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1119
|
+
return de_CommandError(output, context);
|
|
1120
|
+
}
|
|
1121
|
+
const contents = smithyClient.map({
|
|
1122
|
+
$metadata: deserializeMetadata(output),
|
|
1123
|
+
});
|
|
1124
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1125
|
+
const doc = smithyClient.take(data, {
|
|
1126
|
+
gatewayId: smithyClient.expectString,
|
|
1127
|
+
linkId: smithyClient.expectString,
|
|
1128
|
+
status: smithyClient.expectString,
|
|
1129
|
+
});
|
|
1130
|
+
Object.assign(contents, doc);
|
|
1131
|
+
return contents;
|
|
1132
|
+
};
|
|
1133
|
+
const de_UpdateRequesterGatewayCommand = async (output, context) => {
|
|
1134
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1135
|
+
return de_CommandError(output, context);
|
|
1136
|
+
}
|
|
1137
|
+
const contents = smithyClient.map({
|
|
1138
|
+
$metadata: deserializeMetadata(output),
|
|
1139
|
+
});
|
|
1140
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1141
|
+
const doc = smithyClient.take(data, {
|
|
1142
|
+
gatewayId: smithyClient.expectString,
|
|
1143
|
+
status: smithyClient.expectString,
|
|
1144
|
+
});
|
|
1145
|
+
Object.assign(contents, doc);
|
|
1146
|
+
return contents;
|
|
1147
|
+
};
|
|
1148
|
+
const de_UpdateResponderGatewayCommand = async (output, context) => {
|
|
1149
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1150
|
+
return de_CommandError(output, context);
|
|
1151
|
+
}
|
|
1152
|
+
const contents = smithyClient.map({
|
|
1153
|
+
$metadata: deserializeMetadata(output),
|
|
1154
|
+
});
|
|
1155
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1156
|
+
const doc = smithyClient.take(data, {
|
|
1157
|
+
gatewayId: smithyClient.expectString,
|
|
1158
|
+
status: smithyClient.expectString,
|
|
1159
|
+
});
|
|
1160
|
+
Object.assign(contents, doc);
|
|
1161
|
+
return contents;
|
|
1162
|
+
};
|
|
1163
|
+
const de_CommandError = async (output, context) => {
|
|
1164
|
+
const parsedOutput = {
|
|
1165
|
+
...output,
|
|
1166
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
1167
|
+
};
|
|
1168
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
|
+
switch (errorCode) {
|
|
1170
|
+
case "AccessDeniedException":
|
|
1171
|
+
case "com.amazonaws.rtbfabric#AccessDeniedException":
|
|
1172
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
1173
|
+
case "ConflictException":
|
|
1174
|
+
case "com.amazonaws.rtbfabric#ConflictException":
|
|
1175
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
1176
|
+
case "InternalServerException":
|
|
1177
|
+
case "com.amazonaws.rtbfabric#InternalServerException":
|
|
1178
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
1179
|
+
case "ResourceNotFoundException":
|
|
1180
|
+
case "com.amazonaws.rtbfabric#ResourceNotFoundException":
|
|
1181
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
1182
|
+
case "ThrottlingException":
|
|
1183
|
+
case "com.amazonaws.rtbfabric#ThrottlingException":
|
|
1184
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
1185
|
+
case "ValidationException":
|
|
1186
|
+
case "com.amazonaws.rtbfabric#ValidationException":
|
|
1187
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
1188
|
+
case "ServiceQuotaExceededException":
|
|
1189
|
+
case "com.amazonaws.rtbfabric#ServiceQuotaExceededException":
|
|
1190
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
1191
|
+
default:
|
|
1192
|
+
const parsedBody = parsedOutput.body;
|
|
1193
|
+
return throwDefaultError({
|
|
1194
|
+
output,
|
|
1195
|
+
parsedBody,
|
|
1196
|
+
errorCode,
|
|
1197
|
+
});
|
|
1198
|
+
}
|
|
1199
|
+
};
|
|
1200
|
+
const throwDefaultError = smithyClient.withBaseException(RTBFabricServiceException);
|
|
1201
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1202
|
+
const contents = smithyClient.map({});
|
|
1203
|
+
const data = parsedOutput.body;
|
|
1204
|
+
const doc = smithyClient.take(data, {
|
|
1205
|
+
message: smithyClient.expectString,
|
|
1206
|
+
});
|
|
1207
|
+
Object.assign(contents, doc);
|
|
1208
|
+
const exception = new AccessDeniedException({
|
|
1209
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1210
|
+
...contents,
|
|
1211
|
+
});
|
|
1212
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1213
|
+
};
|
|
1214
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1215
|
+
const contents = smithyClient.map({});
|
|
1216
|
+
const data = parsedOutput.body;
|
|
1217
|
+
const doc = smithyClient.take(data, {
|
|
1218
|
+
message: smithyClient.expectString,
|
|
1219
|
+
});
|
|
1220
|
+
Object.assign(contents, doc);
|
|
1221
|
+
const exception = new ConflictException({
|
|
1222
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1223
|
+
...contents,
|
|
1224
|
+
});
|
|
1225
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1226
|
+
};
|
|
1227
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1228
|
+
const contents = smithyClient.map({});
|
|
1229
|
+
const data = parsedOutput.body;
|
|
1230
|
+
const doc = smithyClient.take(data, {
|
|
1231
|
+
message: smithyClient.expectString,
|
|
1232
|
+
});
|
|
1233
|
+
Object.assign(contents, doc);
|
|
1234
|
+
const exception = new InternalServerException({
|
|
1235
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1236
|
+
...contents,
|
|
1237
|
+
});
|
|
1238
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1239
|
+
};
|
|
1240
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1241
|
+
const contents = smithyClient.map({});
|
|
1242
|
+
const data = parsedOutput.body;
|
|
1243
|
+
const doc = smithyClient.take(data, {
|
|
1244
|
+
message: smithyClient.expectString,
|
|
1245
|
+
});
|
|
1246
|
+
Object.assign(contents, doc);
|
|
1247
|
+
const exception = new ResourceNotFoundException({
|
|
1248
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1249
|
+
...contents,
|
|
1250
|
+
});
|
|
1251
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1252
|
+
};
|
|
1253
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1254
|
+
const contents = smithyClient.map({});
|
|
1255
|
+
const data = parsedOutput.body;
|
|
1256
|
+
const doc = smithyClient.take(data, {
|
|
1257
|
+
message: smithyClient.expectString,
|
|
1258
|
+
});
|
|
1259
|
+
Object.assign(contents, doc);
|
|
1260
|
+
const exception = new ServiceQuotaExceededException({
|
|
1261
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1262
|
+
...contents,
|
|
1263
|
+
});
|
|
1264
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1265
|
+
};
|
|
1266
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1267
|
+
const contents = smithyClient.map({});
|
|
1268
|
+
const data = parsedOutput.body;
|
|
1269
|
+
const doc = smithyClient.take(data, {
|
|
1270
|
+
message: smithyClient.expectString,
|
|
1271
|
+
});
|
|
1272
|
+
Object.assign(contents, doc);
|
|
1273
|
+
const exception = new ThrottlingException({
|
|
1274
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1275
|
+
...contents,
|
|
1276
|
+
});
|
|
1277
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1278
|
+
};
|
|
1279
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1280
|
+
const contents = smithyClient.map({});
|
|
1281
|
+
const data = parsedOutput.body;
|
|
1282
|
+
const doc = smithyClient.take(data, {
|
|
1283
|
+
message: smithyClient.expectString,
|
|
1284
|
+
});
|
|
1285
|
+
Object.assign(contents, doc);
|
|
1286
|
+
const exception = new ValidationException({
|
|
1287
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1288
|
+
...contents,
|
|
1289
|
+
});
|
|
1290
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1291
|
+
};
|
|
1292
|
+
const se_LinkApplicationLogConfiguration = (input, context) => {
|
|
1293
|
+
return smithyClient.take(input, {
|
|
1294
|
+
sampling: (_) => se_LinkApplicationLogSampling(_),
|
|
1295
|
+
});
|
|
1296
|
+
};
|
|
1297
|
+
const se_LinkApplicationLogSampling = (input, context) => {
|
|
1298
|
+
return smithyClient.take(input, {
|
|
1299
|
+
errorLog: smithyClient.serializeFloat,
|
|
1300
|
+
filterLog: smithyClient.serializeFloat,
|
|
1301
|
+
});
|
|
1302
|
+
};
|
|
1303
|
+
const se_LinkAttributes = (input, context) => {
|
|
1304
|
+
return smithyClient.take(input, {
|
|
1305
|
+
customerProvidedId: [],
|
|
1306
|
+
responderErrorMasking: (_) => se_ResponderErrorMasking(_),
|
|
1307
|
+
});
|
|
1308
|
+
};
|
|
1309
|
+
const se_LinkLogSettings = (input, context) => {
|
|
1310
|
+
return smithyClient.take(input, {
|
|
1311
|
+
applicationLogs: (_) => se_LinkApplicationLogConfiguration(_),
|
|
1312
|
+
});
|
|
1313
|
+
};
|
|
1314
|
+
const se_ModuleConfiguration = (input, context) => {
|
|
1315
|
+
return smithyClient.take(input, {
|
|
1316
|
+
dependsOn: smithyClient._json,
|
|
1317
|
+
moduleParameters: (_) => se_ModuleParameters(_),
|
|
1318
|
+
name: [],
|
|
1319
|
+
version: [],
|
|
1320
|
+
});
|
|
1321
|
+
};
|
|
1322
|
+
const se_ModuleConfigurationList = (input, context) => {
|
|
1323
|
+
return input
|
|
1324
|
+
.filter((e) => e != null)
|
|
1325
|
+
.map((entry) => {
|
|
1326
|
+
return se_ModuleConfiguration(entry);
|
|
1327
|
+
});
|
|
1328
|
+
};
|
|
1329
|
+
const se_ModuleParameters = (input, context) => {
|
|
1330
|
+
return exports.ModuleParameters.visit(input, {
|
|
1331
|
+
noBid: (value) => ({ noBid: se_NoBidModuleParameters(value) }),
|
|
1332
|
+
openRtbAttribute: (value) => ({ openRtbAttribute: se_OpenRtbAttributeModuleParameters(value) }),
|
|
1333
|
+
_: (name, value) => ({ [name]: value }),
|
|
1334
|
+
});
|
|
1335
|
+
};
|
|
1336
|
+
const se_NoBidModuleParameters = (input, context) => {
|
|
1337
|
+
return smithyClient.take(input, {
|
|
1338
|
+
passThroughPercentage: smithyClient.serializeFloat,
|
|
1339
|
+
reason: [],
|
|
1340
|
+
reasonCode: [],
|
|
1341
|
+
});
|
|
1342
|
+
};
|
|
1343
|
+
const se_OpenRtbAttributeModuleParameters = (input, context) => {
|
|
1344
|
+
return smithyClient.take(input, {
|
|
1345
|
+
action: smithyClient._json,
|
|
1346
|
+
filterConfiguration: smithyClient._json,
|
|
1347
|
+
filterType: [],
|
|
1348
|
+
holdbackPercentage: smithyClient.serializeFloat,
|
|
1349
|
+
});
|
|
1350
|
+
};
|
|
1351
|
+
const se_ResponderErrorMasking = (input, context) => {
|
|
1352
|
+
return input
|
|
1353
|
+
.filter((e) => e != null)
|
|
1354
|
+
.map((entry) => {
|
|
1355
|
+
return se_ResponderErrorMaskingForHttpCode(entry);
|
|
1356
|
+
});
|
|
1357
|
+
};
|
|
1358
|
+
const se_ResponderErrorMaskingForHttpCode = (input, context) => {
|
|
1359
|
+
return smithyClient.take(input, {
|
|
1360
|
+
action: [],
|
|
1361
|
+
httpCode: [],
|
|
1362
|
+
loggingTypes: smithyClient._json,
|
|
1363
|
+
responseLoggingPercentage: smithyClient.serializeFloat,
|
|
1364
|
+
});
|
|
1365
|
+
};
|
|
1366
|
+
const de_LinkApplicationLogConfiguration = (output, context) => {
|
|
1367
|
+
return smithyClient.take(output, {
|
|
1368
|
+
sampling: (_) => de_LinkApplicationLogSampling(_),
|
|
1369
|
+
});
|
|
1370
|
+
};
|
|
1371
|
+
const de_LinkApplicationLogSampling = (output, context) => {
|
|
1372
|
+
return smithyClient.take(output, {
|
|
1373
|
+
errorLog: smithyClient.limitedParseDouble,
|
|
1374
|
+
filterLog: smithyClient.limitedParseDouble,
|
|
1375
|
+
});
|
|
1376
|
+
};
|
|
1377
|
+
const de_LinkAttributes = (output, context) => {
|
|
1378
|
+
return smithyClient.take(output, {
|
|
1379
|
+
customerProvidedId: smithyClient.expectString,
|
|
1380
|
+
responderErrorMasking: (_) => de_ResponderErrorMasking(_),
|
|
1381
|
+
});
|
|
1382
|
+
};
|
|
1383
|
+
const de_LinkList = (output, context) => {
|
|
1384
|
+
const retVal = (output || [])
|
|
1385
|
+
.filter((e) => e != null)
|
|
1386
|
+
.map((entry) => {
|
|
1387
|
+
return de_ListLinksResponseStructure(entry);
|
|
1388
|
+
});
|
|
1389
|
+
return retVal;
|
|
1390
|
+
};
|
|
1391
|
+
const de_LinkLogSettings = (output, context) => {
|
|
1392
|
+
return smithyClient.take(output, {
|
|
1393
|
+
applicationLogs: (_) => de_LinkApplicationLogConfiguration(_),
|
|
1394
|
+
});
|
|
1395
|
+
};
|
|
1396
|
+
const de_ListLinksResponseStructure = (output, context) => {
|
|
1397
|
+
return smithyClient.take(output, {
|
|
1398
|
+
attributes: (_) => de_LinkAttributes(_),
|
|
1399
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1400
|
+
direction: smithyClient.expectString,
|
|
1401
|
+
flowModules: (_) => de_ModuleConfigurationList(_),
|
|
1402
|
+
gatewayId: smithyClient.expectString,
|
|
1403
|
+
linkId: smithyClient.expectString,
|
|
1404
|
+
peerGatewayId: smithyClient.expectString,
|
|
1405
|
+
pendingFlowModules: (_) => de_ModuleConfigurationList(_),
|
|
1406
|
+
status: smithyClient.expectString,
|
|
1407
|
+
tags: smithyClient._json,
|
|
1408
|
+
updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1409
|
+
});
|
|
1410
|
+
};
|
|
1411
|
+
const de_ModuleConfiguration = (output, context) => {
|
|
1412
|
+
return smithyClient.take(output, {
|
|
1413
|
+
dependsOn: smithyClient._json,
|
|
1414
|
+
moduleParameters: (_) => de_ModuleParameters(core$1.awsExpectUnion(_)),
|
|
1415
|
+
name: smithyClient.expectString,
|
|
1416
|
+
version: smithyClient.expectString,
|
|
1417
|
+
});
|
|
1418
|
+
};
|
|
1419
|
+
const de_ModuleConfigurationList = (output, context) => {
|
|
1420
|
+
const retVal = (output || [])
|
|
1421
|
+
.filter((e) => e != null)
|
|
1422
|
+
.map((entry) => {
|
|
1423
|
+
return de_ModuleConfiguration(entry);
|
|
1424
|
+
});
|
|
1425
|
+
return retVal;
|
|
1426
|
+
};
|
|
1427
|
+
const de_ModuleParameters = (output, context) => {
|
|
1428
|
+
if (output.noBid != null) {
|
|
1429
|
+
return {
|
|
1430
|
+
noBid: de_NoBidModuleParameters(output.noBid),
|
|
1431
|
+
};
|
|
1432
|
+
}
|
|
1433
|
+
if (output.openRtbAttribute != null) {
|
|
1434
|
+
return {
|
|
1435
|
+
openRtbAttribute: de_OpenRtbAttributeModuleParameters(output.openRtbAttribute),
|
|
1436
|
+
};
|
|
1437
|
+
}
|
|
1438
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1439
|
+
};
|
|
1440
|
+
const de_NoBidModuleParameters = (output, context) => {
|
|
1441
|
+
return smithyClient.take(output, {
|
|
1442
|
+
passThroughPercentage: smithyClient.limitedParseFloat32,
|
|
1443
|
+
reason: smithyClient.expectString,
|
|
1444
|
+
reasonCode: smithyClient.expectInt32,
|
|
1445
|
+
});
|
|
1446
|
+
};
|
|
1447
|
+
const de_OpenRtbAttributeModuleParameters = (output, context) => {
|
|
1448
|
+
return smithyClient.take(output, {
|
|
1449
|
+
action: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
1450
|
+
filterConfiguration: smithyClient._json,
|
|
1451
|
+
filterType: smithyClient.expectString,
|
|
1452
|
+
holdbackPercentage: smithyClient.limitedParseFloat32,
|
|
1453
|
+
});
|
|
1454
|
+
};
|
|
1455
|
+
const de_ResponderErrorMasking = (output, context) => {
|
|
1456
|
+
const retVal = (output || [])
|
|
1457
|
+
.filter((e) => e != null)
|
|
1458
|
+
.map((entry) => {
|
|
1459
|
+
return de_ResponderErrorMaskingForHttpCode(entry);
|
|
1460
|
+
});
|
|
1461
|
+
return retVal;
|
|
1462
|
+
};
|
|
1463
|
+
const de_ResponderErrorMaskingForHttpCode = (output, context) => {
|
|
1464
|
+
return smithyClient.take(output, {
|
|
1465
|
+
action: smithyClient.expectString,
|
|
1466
|
+
httpCode: smithyClient.expectString,
|
|
1467
|
+
loggingTypes: smithyClient._json,
|
|
1468
|
+
responseLoggingPercentage: smithyClient.limitedParseFloat32,
|
|
1469
|
+
});
|
|
1470
|
+
};
|
|
1471
|
+
const deserializeMetadata = (output) => ({
|
|
1472
|
+
httpStatusCode: output.statusCode,
|
|
1473
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1474
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1475
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1476
|
+
});
|
|
1477
|
+
const _mR = "maxResults";
|
|
1478
|
+
const _nT = "nextToken";
|
|
1479
|
+
const _tK = "tagKeys";
|
|
1480
|
+
|
|
1481
|
+
class AcceptLinkCommand extends smithyClient.Command
|
|
1482
|
+
.classBuilder()
|
|
1483
|
+
.ep(commonParams)
|
|
1484
|
+
.m(function (Command, cs, config, o) {
|
|
1485
|
+
return [
|
|
1486
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1487
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1488
|
+
];
|
|
1489
|
+
})
|
|
1490
|
+
.s("RTBFabric", "AcceptLink", {})
|
|
1491
|
+
.n("RTBFabricClient", "AcceptLinkCommand")
|
|
1492
|
+
.f(void 0, void 0)
|
|
1493
|
+
.ser(se_AcceptLinkCommand)
|
|
1494
|
+
.de(de_AcceptLinkCommand)
|
|
1495
|
+
.build() {
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
class CreateInboundExternalLinkCommand extends smithyClient.Command
|
|
1499
|
+
.classBuilder()
|
|
1500
|
+
.ep(commonParams)
|
|
1501
|
+
.m(function (Command, cs, config, o) {
|
|
1502
|
+
return [
|
|
1503
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1504
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1505
|
+
];
|
|
1506
|
+
})
|
|
1507
|
+
.s("RTBFabric", "CreateInboundExternalLink", {})
|
|
1508
|
+
.n("RTBFabricClient", "CreateInboundExternalLinkCommand")
|
|
1509
|
+
.f(void 0, void 0)
|
|
1510
|
+
.ser(se_CreateInboundExternalLinkCommand)
|
|
1511
|
+
.de(de_CreateInboundExternalLinkCommand)
|
|
1512
|
+
.build() {
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
class CreateLinkCommand extends smithyClient.Command
|
|
1516
|
+
.classBuilder()
|
|
1517
|
+
.ep(commonParams)
|
|
1518
|
+
.m(function (Command, cs, config, o) {
|
|
1519
|
+
return [
|
|
1520
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1521
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1522
|
+
];
|
|
1523
|
+
})
|
|
1524
|
+
.s("RTBFabric", "CreateLink", {})
|
|
1525
|
+
.n("RTBFabricClient", "CreateLinkCommand")
|
|
1526
|
+
.f(void 0, void 0)
|
|
1527
|
+
.ser(se_CreateLinkCommand)
|
|
1528
|
+
.de(de_CreateLinkCommand)
|
|
1529
|
+
.build() {
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
class CreateOutboundExternalLinkCommand extends smithyClient.Command
|
|
1533
|
+
.classBuilder()
|
|
1534
|
+
.ep(commonParams)
|
|
1535
|
+
.m(function (Command, cs, config, o) {
|
|
1536
|
+
return [
|
|
1537
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1538
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1539
|
+
];
|
|
1540
|
+
})
|
|
1541
|
+
.s("RTBFabric", "CreateOutboundExternalLink", {})
|
|
1542
|
+
.n("RTBFabricClient", "CreateOutboundExternalLinkCommand")
|
|
1543
|
+
.f(void 0, void 0)
|
|
1544
|
+
.ser(se_CreateOutboundExternalLinkCommand)
|
|
1545
|
+
.de(de_CreateOutboundExternalLinkCommand)
|
|
1546
|
+
.build() {
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
class CreateRequesterGatewayCommand extends smithyClient.Command
|
|
1550
|
+
.classBuilder()
|
|
1551
|
+
.ep(commonParams)
|
|
1552
|
+
.m(function (Command, cs, config, o) {
|
|
1553
|
+
return [
|
|
1554
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1555
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1556
|
+
];
|
|
1557
|
+
})
|
|
1558
|
+
.s("RTBFabric", "CreateRequesterGateway", {})
|
|
1559
|
+
.n("RTBFabricClient", "CreateRequesterGatewayCommand")
|
|
1560
|
+
.f(void 0, void 0)
|
|
1561
|
+
.ser(se_CreateRequesterGatewayCommand)
|
|
1562
|
+
.de(de_CreateRequesterGatewayCommand)
|
|
1563
|
+
.build() {
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
class CreateResponderGatewayCommand extends smithyClient.Command
|
|
1567
|
+
.classBuilder()
|
|
1568
|
+
.ep(commonParams)
|
|
1569
|
+
.m(function (Command, cs, config, o) {
|
|
1570
|
+
return [
|
|
1571
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1572
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1573
|
+
];
|
|
1574
|
+
})
|
|
1575
|
+
.s("RTBFabric", "CreateResponderGateway", {})
|
|
1576
|
+
.n("RTBFabricClient", "CreateResponderGatewayCommand")
|
|
1577
|
+
.f(CreateResponderGatewayRequestFilterSensitiveLog, void 0)
|
|
1578
|
+
.ser(se_CreateResponderGatewayCommand)
|
|
1579
|
+
.de(de_CreateResponderGatewayCommand)
|
|
1580
|
+
.build() {
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
class DeleteInboundExternalLinkCommand extends smithyClient.Command
|
|
1584
|
+
.classBuilder()
|
|
1585
|
+
.ep(commonParams)
|
|
1586
|
+
.m(function (Command, cs, config, o) {
|
|
1587
|
+
return [
|
|
1588
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1589
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1590
|
+
];
|
|
1591
|
+
})
|
|
1592
|
+
.s("RTBFabric", "DeleteInboundExternalLink", {})
|
|
1593
|
+
.n("RTBFabricClient", "DeleteInboundExternalLinkCommand")
|
|
1594
|
+
.f(void 0, void 0)
|
|
1595
|
+
.ser(se_DeleteInboundExternalLinkCommand)
|
|
1596
|
+
.de(de_DeleteInboundExternalLinkCommand)
|
|
1597
|
+
.build() {
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
class DeleteLinkCommand extends smithyClient.Command
|
|
1601
|
+
.classBuilder()
|
|
1602
|
+
.ep(commonParams)
|
|
1603
|
+
.m(function (Command, cs, config, o) {
|
|
1604
|
+
return [
|
|
1605
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1606
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1607
|
+
];
|
|
1608
|
+
})
|
|
1609
|
+
.s("RTBFabric", "DeleteLink", {})
|
|
1610
|
+
.n("RTBFabricClient", "DeleteLinkCommand")
|
|
1611
|
+
.f(void 0, void 0)
|
|
1612
|
+
.ser(se_DeleteLinkCommand)
|
|
1613
|
+
.de(de_DeleteLinkCommand)
|
|
1614
|
+
.build() {
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
class DeleteOutboundExternalLinkCommand extends smithyClient.Command
|
|
1618
|
+
.classBuilder()
|
|
1619
|
+
.ep(commonParams)
|
|
1620
|
+
.m(function (Command, cs, config, o) {
|
|
1621
|
+
return [
|
|
1622
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1623
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1624
|
+
];
|
|
1625
|
+
})
|
|
1626
|
+
.s("RTBFabric", "DeleteOutboundExternalLink", {})
|
|
1627
|
+
.n("RTBFabricClient", "DeleteOutboundExternalLinkCommand")
|
|
1628
|
+
.f(void 0, void 0)
|
|
1629
|
+
.ser(se_DeleteOutboundExternalLinkCommand)
|
|
1630
|
+
.de(de_DeleteOutboundExternalLinkCommand)
|
|
1631
|
+
.build() {
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
class DeleteRequesterGatewayCommand extends smithyClient.Command
|
|
1635
|
+
.classBuilder()
|
|
1636
|
+
.ep(commonParams)
|
|
1637
|
+
.m(function (Command, cs, config, o) {
|
|
1638
|
+
return [
|
|
1639
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1640
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1641
|
+
];
|
|
1642
|
+
})
|
|
1643
|
+
.s("RTBFabric", "DeleteRequesterGateway", {})
|
|
1644
|
+
.n("RTBFabricClient", "DeleteRequesterGatewayCommand")
|
|
1645
|
+
.f(void 0, void 0)
|
|
1646
|
+
.ser(se_DeleteRequesterGatewayCommand)
|
|
1647
|
+
.de(de_DeleteRequesterGatewayCommand)
|
|
1648
|
+
.build() {
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
class DeleteResponderGatewayCommand extends smithyClient.Command
|
|
1652
|
+
.classBuilder()
|
|
1653
|
+
.ep(commonParams)
|
|
1654
|
+
.m(function (Command, cs, config, o) {
|
|
1655
|
+
return [
|
|
1656
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1657
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1658
|
+
];
|
|
1659
|
+
})
|
|
1660
|
+
.s("RTBFabric", "DeleteResponderGateway", {})
|
|
1661
|
+
.n("RTBFabricClient", "DeleteResponderGatewayCommand")
|
|
1662
|
+
.f(void 0, void 0)
|
|
1663
|
+
.ser(se_DeleteResponderGatewayCommand)
|
|
1664
|
+
.de(de_DeleteResponderGatewayCommand)
|
|
1665
|
+
.build() {
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
class GetInboundExternalLinkCommand extends smithyClient.Command
|
|
1669
|
+
.classBuilder()
|
|
1670
|
+
.ep(commonParams)
|
|
1671
|
+
.m(function (Command, cs, config, o) {
|
|
1672
|
+
return [
|
|
1673
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1674
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1675
|
+
];
|
|
1676
|
+
})
|
|
1677
|
+
.s("RTBFabric", "GetInboundExternalLink", {})
|
|
1678
|
+
.n("RTBFabricClient", "GetInboundExternalLinkCommand")
|
|
1679
|
+
.f(void 0, void 0)
|
|
1680
|
+
.ser(se_GetInboundExternalLinkCommand)
|
|
1681
|
+
.de(de_GetInboundExternalLinkCommand)
|
|
1682
|
+
.build() {
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
class GetLinkCommand extends smithyClient.Command
|
|
1686
|
+
.classBuilder()
|
|
1687
|
+
.ep(commonParams)
|
|
1688
|
+
.m(function (Command, cs, config, o) {
|
|
1689
|
+
return [
|
|
1690
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1691
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1692
|
+
];
|
|
1693
|
+
})
|
|
1694
|
+
.s("RTBFabric", "GetLink", {})
|
|
1695
|
+
.n("RTBFabricClient", "GetLinkCommand")
|
|
1696
|
+
.f(void 0, void 0)
|
|
1697
|
+
.ser(se_GetLinkCommand)
|
|
1698
|
+
.de(de_GetLinkCommand)
|
|
1699
|
+
.build() {
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
class GetOutboundExternalLinkCommand extends smithyClient.Command
|
|
1703
|
+
.classBuilder()
|
|
1704
|
+
.ep(commonParams)
|
|
1705
|
+
.m(function (Command, cs, config, o) {
|
|
1706
|
+
return [
|
|
1707
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1708
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1709
|
+
];
|
|
1710
|
+
})
|
|
1711
|
+
.s("RTBFabric", "GetOutboundExternalLink", {})
|
|
1712
|
+
.n("RTBFabricClient", "GetOutboundExternalLinkCommand")
|
|
1713
|
+
.f(void 0, void 0)
|
|
1714
|
+
.ser(se_GetOutboundExternalLinkCommand)
|
|
1715
|
+
.de(de_GetOutboundExternalLinkCommand)
|
|
1716
|
+
.build() {
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
class GetRequesterGatewayCommand extends smithyClient.Command
|
|
1720
|
+
.classBuilder()
|
|
1721
|
+
.ep(commonParams)
|
|
1722
|
+
.m(function (Command, cs, config, o) {
|
|
1723
|
+
return [
|
|
1724
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1725
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1726
|
+
];
|
|
1727
|
+
})
|
|
1728
|
+
.s("RTBFabric", "GetRequesterGateway", {})
|
|
1729
|
+
.n("RTBFabricClient", "GetRequesterGatewayCommand")
|
|
1730
|
+
.f(void 0, void 0)
|
|
1731
|
+
.ser(se_GetRequesterGatewayCommand)
|
|
1732
|
+
.de(de_GetRequesterGatewayCommand)
|
|
1733
|
+
.build() {
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
class GetResponderGatewayCommand extends smithyClient.Command
|
|
1737
|
+
.classBuilder()
|
|
1738
|
+
.ep(commonParams)
|
|
1739
|
+
.m(function (Command, cs, config, o) {
|
|
1740
|
+
return [
|
|
1741
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1742
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1743
|
+
];
|
|
1744
|
+
})
|
|
1745
|
+
.s("RTBFabric", "GetResponderGateway", {})
|
|
1746
|
+
.n("RTBFabricClient", "GetResponderGatewayCommand")
|
|
1747
|
+
.f(void 0, GetResponderGatewayResponseFilterSensitiveLog)
|
|
1748
|
+
.ser(se_GetResponderGatewayCommand)
|
|
1749
|
+
.de(de_GetResponderGatewayCommand)
|
|
1750
|
+
.build() {
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
class ListLinksCommand extends smithyClient.Command
|
|
1754
|
+
.classBuilder()
|
|
1755
|
+
.ep(commonParams)
|
|
1756
|
+
.m(function (Command, cs, config, o) {
|
|
1757
|
+
return [
|
|
1758
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1759
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1760
|
+
];
|
|
1761
|
+
})
|
|
1762
|
+
.s("RTBFabric", "ListLinks", {})
|
|
1763
|
+
.n("RTBFabricClient", "ListLinksCommand")
|
|
1764
|
+
.f(void 0, void 0)
|
|
1765
|
+
.ser(se_ListLinksCommand)
|
|
1766
|
+
.de(de_ListLinksCommand)
|
|
1767
|
+
.build() {
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
class ListRequesterGatewaysCommand extends smithyClient.Command
|
|
1771
|
+
.classBuilder()
|
|
1772
|
+
.ep(commonParams)
|
|
1773
|
+
.m(function (Command, cs, config, o) {
|
|
1774
|
+
return [
|
|
1775
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1776
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1777
|
+
];
|
|
1778
|
+
})
|
|
1779
|
+
.s("RTBFabric", "ListRequesterGateways", {})
|
|
1780
|
+
.n("RTBFabricClient", "ListRequesterGatewaysCommand")
|
|
1781
|
+
.f(void 0, void 0)
|
|
1782
|
+
.ser(se_ListRequesterGatewaysCommand)
|
|
1783
|
+
.de(de_ListRequesterGatewaysCommand)
|
|
1784
|
+
.build() {
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
class ListResponderGatewaysCommand extends smithyClient.Command
|
|
1788
|
+
.classBuilder()
|
|
1789
|
+
.ep(commonParams)
|
|
1790
|
+
.m(function (Command, cs, config, o) {
|
|
1791
|
+
return [
|
|
1792
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1793
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1794
|
+
];
|
|
1795
|
+
})
|
|
1796
|
+
.s("RTBFabric", "ListResponderGateways", {})
|
|
1797
|
+
.n("RTBFabricClient", "ListResponderGatewaysCommand")
|
|
1798
|
+
.f(void 0, void 0)
|
|
1799
|
+
.ser(se_ListResponderGatewaysCommand)
|
|
1800
|
+
.de(de_ListResponderGatewaysCommand)
|
|
1801
|
+
.build() {
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1805
|
+
.classBuilder()
|
|
1806
|
+
.ep(commonParams)
|
|
1807
|
+
.m(function (Command, cs, config, o) {
|
|
1808
|
+
return [
|
|
1809
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1810
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1811
|
+
];
|
|
1812
|
+
})
|
|
1813
|
+
.s("RTBFabric", "ListTagsForResource", {})
|
|
1814
|
+
.n("RTBFabricClient", "ListTagsForResourceCommand")
|
|
1815
|
+
.f(void 0, void 0)
|
|
1816
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1817
|
+
.de(de_ListTagsForResourceCommand)
|
|
1818
|
+
.build() {
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
class RejectLinkCommand extends smithyClient.Command
|
|
1822
|
+
.classBuilder()
|
|
1823
|
+
.ep(commonParams)
|
|
1824
|
+
.m(function (Command, cs, config, o) {
|
|
1825
|
+
return [
|
|
1826
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1827
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1828
|
+
];
|
|
1829
|
+
})
|
|
1830
|
+
.s("RTBFabric", "RejectLink", {})
|
|
1831
|
+
.n("RTBFabricClient", "RejectLinkCommand")
|
|
1832
|
+
.f(void 0, void 0)
|
|
1833
|
+
.ser(se_RejectLinkCommand)
|
|
1834
|
+
.de(de_RejectLinkCommand)
|
|
1835
|
+
.build() {
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1839
|
+
.classBuilder()
|
|
1840
|
+
.ep(commonParams)
|
|
1841
|
+
.m(function (Command, cs, config, o) {
|
|
1842
|
+
return [
|
|
1843
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1844
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1845
|
+
];
|
|
1846
|
+
})
|
|
1847
|
+
.s("RTBFabric", "TagResource", {})
|
|
1848
|
+
.n("RTBFabricClient", "TagResourceCommand")
|
|
1849
|
+
.f(void 0, void 0)
|
|
1850
|
+
.ser(se_TagResourceCommand)
|
|
1851
|
+
.de(de_TagResourceCommand)
|
|
1852
|
+
.build() {
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1856
|
+
.classBuilder()
|
|
1857
|
+
.ep(commonParams)
|
|
1858
|
+
.m(function (Command, cs, config, o) {
|
|
1859
|
+
return [
|
|
1860
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1861
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1862
|
+
];
|
|
1863
|
+
})
|
|
1864
|
+
.s("RTBFabric", "UntagResource", {})
|
|
1865
|
+
.n("RTBFabricClient", "UntagResourceCommand")
|
|
1866
|
+
.f(void 0, void 0)
|
|
1867
|
+
.ser(se_UntagResourceCommand)
|
|
1868
|
+
.de(de_UntagResourceCommand)
|
|
1869
|
+
.build() {
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
class UpdateLinkCommand extends smithyClient.Command
|
|
1873
|
+
.classBuilder()
|
|
1874
|
+
.ep(commonParams)
|
|
1875
|
+
.m(function (Command, cs, config, o) {
|
|
1876
|
+
return [
|
|
1877
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1878
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1879
|
+
];
|
|
1880
|
+
})
|
|
1881
|
+
.s("RTBFabric", "UpdateLink", {})
|
|
1882
|
+
.n("RTBFabricClient", "UpdateLinkCommand")
|
|
1883
|
+
.f(void 0, void 0)
|
|
1884
|
+
.ser(se_UpdateLinkCommand)
|
|
1885
|
+
.de(de_UpdateLinkCommand)
|
|
1886
|
+
.build() {
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
class UpdateLinkModuleFlowCommand extends smithyClient.Command
|
|
1890
|
+
.classBuilder()
|
|
1891
|
+
.ep(commonParams)
|
|
1892
|
+
.m(function (Command, cs, config, o) {
|
|
1893
|
+
return [
|
|
1894
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1895
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1896
|
+
];
|
|
1897
|
+
})
|
|
1898
|
+
.s("RTBFabric", "UpdateLinkModuleFlow", {})
|
|
1899
|
+
.n("RTBFabricClient", "UpdateLinkModuleFlowCommand")
|
|
1900
|
+
.f(void 0, void 0)
|
|
1901
|
+
.ser(se_UpdateLinkModuleFlowCommand)
|
|
1902
|
+
.de(de_UpdateLinkModuleFlowCommand)
|
|
1903
|
+
.build() {
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
class UpdateRequesterGatewayCommand extends smithyClient.Command
|
|
1907
|
+
.classBuilder()
|
|
1908
|
+
.ep(commonParams)
|
|
1909
|
+
.m(function (Command, cs, config, o) {
|
|
1910
|
+
return [
|
|
1911
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1912
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1913
|
+
];
|
|
1914
|
+
})
|
|
1915
|
+
.s("RTBFabric", "UpdateRequesterGateway", {})
|
|
1916
|
+
.n("RTBFabricClient", "UpdateRequesterGatewayCommand")
|
|
1917
|
+
.f(void 0, void 0)
|
|
1918
|
+
.ser(se_UpdateRequesterGatewayCommand)
|
|
1919
|
+
.de(de_UpdateRequesterGatewayCommand)
|
|
1920
|
+
.build() {
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
class UpdateResponderGatewayCommand extends smithyClient.Command
|
|
1924
|
+
.classBuilder()
|
|
1925
|
+
.ep(commonParams)
|
|
1926
|
+
.m(function (Command, cs, config, o) {
|
|
1927
|
+
return [
|
|
1928
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1929
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1930
|
+
];
|
|
1931
|
+
})
|
|
1932
|
+
.s("RTBFabric", "UpdateResponderGateway", {})
|
|
1933
|
+
.n("RTBFabricClient", "UpdateResponderGatewayCommand")
|
|
1934
|
+
.f(UpdateResponderGatewayRequestFilterSensitiveLog, void 0)
|
|
1935
|
+
.ser(se_UpdateResponderGatewayCommand)
|
|
1936
|
+
.de(de_UpdateResponderGatewayCommand)
|
|
1937
|
+
.build() {
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
const commands = {
|
|
1941
|
+
AcceptLinkCommand,
|
|
1942
|
+
CreateInboundExternalLinkCommand,
|
|
1943
|
+
CreateLinkCommand,
|
|
1944
|
+
CreateOutboundExternalLinkCommand,
|
|
1945
|
+
CreateRequesterGatewayCommand,
|
|
1946
|
+
CreateResponderGatewayCommand,
|
|
1947
|
+
DeleteInboundExternalLinkCommand,
|
|
1948
|
+
DeleteLinkCommand,
|
|
1949
|
+
DeleteOutboundExternalLinkCommand,
|
|
1950
|
+
DeleteRequesterGatewayCommand,
|
|
1951
|
+
DeleteResponderGatewayCommand,
|
|
1952
|
+
GetInboundExternalLinkCommand,
|
|
1953
|
+
GetLinkCommand,
|
|
1954
|
+
GetOutboundExternalLinkCommand,
|
|
1955
|
+
GetRequesterGatewayCommand,
|
|
1956
|
+
GetResponderGatewayCommand,
|
|
1957
|
+
ListLinksCommand,
|
|
1958
|
+
ListRequesterGatewaysCommand,
|
|
1959
|
+
ListResponderGatewaysCommand,
|
|
1960
|
+
ListTagsForResourceCommand,
|
|
1961
|
+
RejectLinkCommand,
|
|
1962
|
+
TagResourceCommand,
|
|
1963
|
+
UntagResourceCommand,
|
|
1964
|
+
UpdateLinkCommand,
|
|
1965
|
+
UpdateLinkModuleFlowCommand,
|
|
1966
|
+
UpdateRequesterGatewayCommand,
|
|
1967
|
+
UpdateResponderGatewayCommand,
|
|
1968
|
+
};
|
|
1969
|
+
class RTBFabric extends RTBFabricClient {
|
|
1970
|
+
}
|
|
1971
|
+
smithyClient.createAggregatedClient(commands, RTBFabric);
|
|
1972
|
+
|
|
1973
|
+
const paginateListLinks = core.createPaginator(RTBFabricClient, ListLinksCommand, "nextToken", "nextToken", "maxResults");
|
|
1974
|
+
|
|
1975
|
+
const paginateListRequesterGateways = core.createPaginator(RTBFabricClient, ListRequesterGatewaysCommand, "nextToken", "nextToken", "maxResults");
|
|
1976
|
+
|
|
1977
|
+
const paginateListResponderGateways = core.createPaginator(RTBFabricClient, ListResponderGatewaysCommand, "nextToken", "nextToken", "maxResults");
|
|
1978
|
+
|
|
1979
|
+
const checkState$7 = async (client, input) => {
|
|
1980
|
+
let reason;
|
|
1981
|
+
try {
|
|
1982
|
+
const result = await client.send(new GetInboundExternalLinkCommand(input));
|
|
1983
|
+
reason = result;
|
|
1984
|
+
try {
|
|
1985
|
+
const returnComparator = () => {
|
|
1986
|
+
return result.status;
|
|
1987
|
+
};
|
|
1988
|
+
if (returnComparator() === "ACTIVE") {
|
|
1989
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
catch (e) { }
|
|
1993
|
+
try {
|
|
1994
|
+
const returnComparator = () => {
|
|
1995
|
+
return result.status;
|
|
1996
|
+
};
|
|
1997
|
+
if (returnComparator() === "REJECTED") {
|
|
1998
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
catch (e) { }
|
|
2002
|
+
try {
|
|
2003
|
+
const returnComparator = () => {
|
|
2004
|
+
return result.status;
|
|
2005
|
+
};
|
|
2006
|
+
if (returnComparator() === "FAILED") {
|
|
2007
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
catch (e) { }
|
|
2011
|
+
try {
|
|
2012
|
+
const returnComparator = () => {
|
|
2013
|
+
return result.status;
|
|
2014
|
+
};
|
|
2015
|
+
if (returnComparator() === "DELETED") {
|
|
2016
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
catch (e) { }
|
|
2020
|
+
try {
|
|
2021
|
+
const returnComparator = () => {
|
|
2022
|
+
return result.status;
|
|
2023
|
+
};
|
|
2024
|
+
if (returnComparator() === "ISOLATED") {
|
|
2025
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
catch (e) { }
|
|
2029
|
+
}
|
|
2030
|
+
catch (exception) {
|
|
2031
|
+
reason = exception;
|
|
2032
|
+
}
|
|
2033
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2034
|
+
};
|
|
2035
|
+
const waitForInboundExternalLinkActive = async (params, input) => {
|
|
2036
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2037
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$7);
|
|
2038
|
+
};
|
|
2039
|
+
const waitUntilInboundExternalLinkActive = async (params, input) => {
|
|
2040
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2041
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$7);
|
|
2042
|
+
return utilWaiter.checkExceptions(result);
|
|
2043
|
+
};
|
|
2044
|
+
|
|
2045
|
+
const checkState$6 = async (client, input) => {
|
|
2046
|
+
let reason;
|
|
2047
|
+
try {
|
|
2048
|
+
const result = await client.send(new GetLinkCommand(input));
|
|
2049
|
+
reason = result;
|
|
2050
|
+
try {
|
|
2051
|
+
const returnComparator = () => {
|
|
2052
|
+
return result.status;
|
|
2053
|
+
};
|
|
2054
|
+
if (returnComparator() === "ACCEPTED") {
|
|
2055
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
catch (e) { }
|
|
2059
|
+
try {
|
|
2060
|
+
const returnComparator = () => {
|
|
2061
|
+
return result.status;
|
|
2062
|
+
};
|
|
2063
|
+
if (returnComparator() === "REJECTED") {
|
|
2064
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
catch (e) { }
|
|
2068
|
+
try {
|
|
2069
|
+
const returnComparator = () => {
|
|
2070
|
+
return result.status;
|
|
2071
|
+
};
|
|
2072
|
+
if (returnComparator() === "FAILED") {
|
|
2073
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
catch (e) { }
|
|
2077
|
+
try {
|
|
2078
|
+
const returnComparator = () => {
|
|
2079
|
+
return result.status;
|
|
2080
|
+
};
|
|
2081
|
+
if (returnComparator() === "DELETED") {
|
|
2082
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
catch (e) { }
|
|
2086
|
+
}
|
|
2087
|
+
catch (exception) {
|
|
2088
|
+
reason = exception;
|
|
2089
|
+
}
|
|
2090
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2091
|
+
};
|
|
2092
|
+
const waitForLinkAccepted = async (params, input) => {
|
|
2093
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2094
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$6);
|
|
2095
|
+
};
|
|
2096
|
+
const waitUntilLinkAccepted = async (params, input) => {
|
|
2097
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2098
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$6);
|
|
2099
|
+
return utilWaiter.checkExceptions(result);
|
|
2100
|
+
};
|
|
2101
|
+
|
|
2102
|
+
const checkState$5 = async (client, input) => {
|
|
2103
|
+
let reason;
|
|
2104
|
+
try {
|
|
2105
|
+
const result = await client.send(new GetLinkCommand(input));
|
|
2106
|
+
reason = result;
|
|
2107
|
+
try {
|
|
2108
|
+
const returnComparator = () => {
|
|
2109
|
+
return result.status;
|
|
2110
|
+
};
|
|
2111
|
+
if (returnComparator() === "ACTIVE") {
|
|
2112
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
catch (e) { }
|
|
2116
|
+
try {
|
|
2117
|
+
const returnComparator = () => {
|
|
2118
|
+
return result.status;
|
|
2119
|
+
};
|
|
2120
|
+
if (returnComparator() === "REJECTED") {
|
|
2121
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
catch (e) { }
|
|
2125
|
+
try {
|
|
2126
|
+
const returnComparator = () => {
|
|
2127
|
+
return result.status;
|
|
2128
|
+
};
|
|
2129
|
+
if (returnComparator() === "FAILED") {
|
|
2130
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
catch (e) { }
|
|
2134
|
+
try {
|
|
2135
|
+
const returnComparator = () => {
|
|
2136
|
+
return result.status;
|
|
2137
|
+
};
|
|
2138
|
+
if (returnComparator() === "DELETED") {
|
|
2139
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
catch (e) { }
|
|
2143
|
+
}
|
|
2144
|
+
catch (exception) {
|
|
2145
|
+
reason = exception;
|
|
2146
|
+
}
|
|
2147
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2148
|
+
};
|
|
2149
|
+
const waitForLinkActive = async (params, input) => {
|
|
2150
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2151
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
2152
|
+
};
|
|
2153
|
+
const waitUntilLinkActive = async (params, input) => {
|
|
2154
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2155
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);
|
|
2156
|
+
return utilWaiter.checkExceptions(result);
|
|
2157
|
+
};
|
|
2158
|
+
|
|
2159
|
+
const checkState$4 = async (client, input) => {
|
|
2160
|
+
let reason;
|
|
2161
|
+
try {
|
|
2162
|
+
const result = await client.send(new GetOutboundExternalLinkCommand(input));
|
|
2163
|
+
reason = result;
|
|
2164
|
+
try {
|
|
2165
|
+
const returnComparator = () => {
|
|
2166
|
+
return result.status;
|
|
2167
|
+
};
|
|
2168
|
+
if (returnComparator() === "ACTIVE") {
|
|
2169
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
catch (e) { }
|
|
2173
|
+
try {
|
|
2174
|
+
const returnComparator = () => {
|
|
2175
|
+
return result.status;
|
|
2176
|
+
};
|
|
2177
|
+
if (returnComparator() === "REJECTED") {
|
|
2178
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
catch (e) { }
|
|
2182
|
+
try {
|
|
2183
|
+
const returnComparator = () => {
|
|
2184
|
+
return result.status;
|
|
2185
|
+
};
|
|
2186
|
+
if (returnComparator() === "FAILED") {
|
|
2187
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
catch (e) { }
|
|
2191
|
+
try {
|
|
2192
|
+
const returnComparator = () => {
|
|
2193
|
+
return result.status;
|
|
2194
|
+
};
|
|
2195
|
+
if (returnComparator() === "DELETED") {
|
|
2196
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
catch (e) { }
|
|
2200
|
+
try {
|
|
2201
|
+
const returnComparator = () => {
|
|
2202
|
+
return result.status;
|
|
2203
|
+
};
|
|
2204
|
+
if (returnComparator() === "ISOLATED") {
|
|
2205
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
catch (e) { }
|
|
2209
|
+
}
|
|
2210
|
+
catch (exception) {
|
|
2211
|
+
reason = exception;
|
|
2212
|
+
}
|
|
2213
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2214
|
+
};
|
|
2215
|
+
const waitForOutboundExternalLinkActive = async (params, input) => {
|
|
2216
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2217
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
2218
|
+
};
|
|
2219
|
+
const waitUntilOutboundExternalLinkActive = async (params, input) => {
|
|
2220
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2221
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);
|
|
2222
|
+
return utilWaiter.checkExceptions(result);
|
|
2223
|
+
};
|
|
2224
|
+
|
|
2225
|
+
const checkState$3 = async (client, input) => {
|
|
2226
|
+
let reason;
|
|
2227
|
+
try {
|
|
2228
|
+
const result = await client.send(new GetRequesterGatewayCommand(input));
|
|
2229
|
+
reason = result;
|
|
2230
|
+
try {
|
|
2231
|
+
const returnComparator = () => {
|
|
2232
|
+
return result.status;
|
|
2233
|
+
};
|
|
2234
|
+
if (returnComparator() === "ACTIVE") {
|
|
2235
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
catch (e) { }
|
|
2239
|
+
try {
|
|
2240
|
+
const returnComparator = () => {
|
|
2241
|
+
return result.status;
|
|
2242
|
+
};
|
|
2243
|
+
if (returnComparator() === "DELETED") {
|
|
2244
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
catch (e) { }
|
|
2248
|
+
try {
|
|
2249
|
+
const returnComparator = () => {
|
|
2250
|
+
return result.status;
|
|
2251
|
+
};
|
|
2252
|
+
if (returnComparator() === "ERROR") {
|
|
2253
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
catch (e) { }
|
|
2257
|
+
}
|
|
2258
|
+
catch (exception) {
|
|
2259
|
+
reason = exception;
|
|
2260
|
+
}
|
|
2261
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2262
|
+
};
|
|
2263
|
+
const waitForRequesterGatewayActive = async (params, input) => {
|
|
2264
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2265
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
2266
|
+
};
|
|
2267
|
+
const waitUntilRequesterGatewayActive = async (params, input) => {
|
|
2268
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2269
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
2270
|
+
return utilWaiter.checkExceptions(result);
|
|
2271
|
+
};
|
|
2272
|
+
|
|
2273
|
+
const checkState$2 = async (client, input) => {
|
|
2274
|
+
let reason;
|
|
2275
|
+
try {
|
|
2276
|
+
const result = await client.send(new GetRequesterGatewayCommand(input));
|
|
2277
|
+
reason = result;
|
|
2278
|
+
try {
|
|
2279
|
+
const returnComparator = () => {
|
|
2280
|
+
return result.status;
|
|
2281
|
+
};
|
|
2282
|
+
if (returnComparator() === "DELETED") {
|
|
2283
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
catch (e) { }
|
|
2287
|
+
try {
|
|
2288
|
+
const returnComparator = () => {
|
|
2289
|
+
return result.status;
|
|
2290
|
+
};
|
|
2291
|
+
if (returnComparator() === "ERROR") {
|
|
2292
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
catch (e) { }
|
|
2296
|
+
}
|
|
2297
|
+
catch (exception) {
|
|
2298
|
+
reason = exception;
|
|
2299
|
+
}
|
|
2300
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2301
|
+
};
|
|
2302
|
+
const waitForRequesterGatewayDeleted = async (params, input) => {
|
|
2303
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2304
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
2305
|
+
};
|
|
2306
|
+
const waitUntilRequesterGatewayDeleted = async (params, input) => {
|
|
2307
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2308
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
2309
|
+
return utilWaiter.checkExceptions(result);
|
|
2310
|
+
};
|
|
2311
|
+
|
|
2312
|
+
const checkState$1 = async (client, input) => {
|
|
2313
|
+
let reason;
|
|
2314
|
+
try {
|
|
2315
|
+
const result = await client.send(new GetResponderGatewayCommand(input));
|
|
2316
|
+
reason = result;
|
|
2317
|
+
try {
|
|
2318
|
+
const returnComparator = () => {
|
|
2319
|
+
return result.status;
|
|
2320
|
+
};
|
|
2321
|
+
if (returnComparator() === "ACTIVE") {
|
|
2322
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
catch (e) { }
|
|
2326
|
+
try {
|
|
2327
|
+
const returnComparator = () => {
|
|
2328
|
+
return result.status;
|
|
2329
|
+
};
|
|
2330
|
+
if (returnComparator() === "DELETED") {
|
|
2331
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
catch (e) { }
|
|
2335
|
+
try {
|
|
2336
|
+
const returnComparator = () => {
|
|
2337
|
+
return result.status;
|
|
2338
|
+
};
|
|
2339
|
+
if (returnComparator() === "ERROR") {
|
|
2340
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
catch (e) { }
|
|
2344
|
+
}
|
|
2345
|
+
catch (exception) {
|
|
2346
|
+
reason = exception;
|
|
2347
|
+
}
|
|
2348
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2349
|
+
};
|
|
2350
|
+
const waitForResponderGatewayActive = async (params, input) => {
|
|
2351
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2352
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
2353
|
+
};
|
|
2354
|
+
const waitUntilResponderGatewayActive = async (params, input) => {
|
|
2355
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2356
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
2357
|
+
return utilWaiter.checkExceptions(result);
|
|
2358
|
+
};
|
|
2359
|
+
|
|
2360
|
+
const checkState = async (client, input) => {
|
|
2361
|
+
let reason;
|
|
2362
|
+
try {
|
|
2363
|
+
const result = await client.send(new GetResponderGatewayCommand(input));
|
|
2364
|
+
reason = result;
|
|
2365
|
+
try {
|
|
2366
|
+
const returnComparator = () => {
|
|
2367
|
+
return result.status;
|
|
2368
|
+
};
|
|
2369
|
+
if (returnComparator() === "DELETED") {
|
|
2370
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
catch (e) { }
|
|
2374
|
+
try {
|
|
2375
|
+
const returnComparator = () => {
|
|
2376
|
+
return result.status;
|
|
2377
|
+
};
|
|
2378
|
+
if (returnComparator() === "ERROR") {
|
|
2379
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
catch (e) { }
|
|
2383
|
+
}
|
|
2384
|
+
catch (exception) {
|
|
2385
|
+
reason = exception;
|
|
2386
|
+
}
|
|
2387
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
2388
|
+
};
|
|
2389
|
+
const waitForResponderGatewayDeleted = async (params, input) => {
|
|
2390
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2391
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
2392
|
+
};
|
|
2393
|
+
const waitUntilResponderGatewayDeleted = async (params, input) => {
|
|
2394
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2395
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
2396
|
+
return utilWaiter.checkExceptions(result);
|
|
2397
|
+
};
|
|
2398
|
+
|
|
2399
|
+
Object.defineProperty(exports, "$Command", {
|
|
2400
|
+
enumerable: true,
|
|
2401
|
+
get: function () { return smithyClient.Command; }
|
|
2402
|
+
});
|
|
2403
|
+
Object.defineProperty(exports, "__Client", {
|
|
2404
|
+
enumerable: true,
|
|
2405
|
+
get: function () { return smithyClient.Client; }
|
|
2406
|
+
});
|
|
2407
|
+
exports.AcceptLinkCommand = AcceptLinkCommand;
|
|
2408
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
2409
|
+
exports.ConflictException = ConflictException;
|
|
2410
|
+
exports.CreateInboundExternalLinkCommand = CreateInboundExternalLinkCommand;
|
|
2411
|
+
exports.CreateLinkCommand = CreateLinkCommand;
|
|
2412
|
+
exports.CreateOutboundExternalLinkCommand = CreateOutboundExternalLinkCommand;
|
|
2413
|
+
exports.CreateRequesterGatewayCommand = CreateRequesterGatewayCommand;
|
|
2414
|
+
exports.CreateResponderGatewayCommand = CreateResponderGatewayCommand;
|
|
2415
|
+
exports.CreateResponderGatewayRequestFilterSensitiveLog = CreateResponderGatewayRequestFilterSensitiveLog;
|
|
2416
|
+
exports.DeleteInboundExternalLinkCommand = DeleteInboundExternalLinkCommand;
|
|
2417
|
+
exports.DeleteLinkCommand = DeleteLinkCommand;
|
|
2418
|
+
exports.DeleteOutboundExternalLinkCommand = DeleteOutboundExternalLinkCommand;
|
|
2419
|
+
exports.DeleteRequesterGatewayCommand = DeleteRequesterGatewayCommand;
|
|
2420
|
+
exports.DeleteResponderGatewayCommand = DeleteResponderGatewayCommand;
|
|
2421
|
+
exports.EksEndpointsConfigurationFilterSensitiveLog = EksEndpointsConfigurationFilterSensitiveLog;
|
|
2422
|
+
exports.FilterType = FilterType;
|
|
2423
|
+
exports.GetInboundExternalLinkCommand = GetInboundExternalLinkCommand;
|
|
2424
|
+
exports.GetLinkCommand = GetLinkCommand;
|
|
2425
|
+
exports.GetOutboundExternalLinkCommand = GetOutboundExternalLinkCommand;
|
|
2426
|
+
exports.GetRequesterGatewayCommand = GetRequesterGatewayCommand;
|
|
2427
|
+
exports.GetResponderGatewayCommand = GetResponderGatewayCommand;
|
|
2428
|
+
exports.GetResponderGatewayResponseFilterSensitiveLog = GetResponderGatewayResponseFilterSensitiveLog;
|
|
2429
|
+
exports.InternalServerException = InternalServerException;
|
|
2430
|
+
exports.LinkDirection = LinkDirection;
|
|
2431
|
+
exports.LinkStatus = LinkStatus;
|
|
2432
|
+
exports.ListLinksCommand = ListLinksCommand;
|
|
2433
|
+
exports.ListRequesterGatewaysCommand = ListRequesterGatewaysCommand;
|
|
2434
|
+
exports.ListResponderGatewaysCommand = ListResponderGatewaysCommand;
|
|
2435
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
2436
|
+
exports.ManagedEndpointConfigurationFilterSensitiveLog = ManagedEndpointConfigurationFilterSensitiveLog;
|
|
2437
|
+
exports.Protocol = Protocol;
|
|
2438
|
+
exports.RTBFabric = RTBFabric;
|
|
2439
|
+
exports.RTBFabricClient = RTBFabricClient;
|
|
2440
|
+
exports.RTBFabricServiceException = RTBFabricServiceException;
|
|
2441
|
+
exports.RejectLinkCommand = RejectLinkCommand;
|
|
2442
|
+
exports.RequesterGatewayStatus = RequesterGatewayStatus;
|
|
2443
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
2444
|
+
exports.ResponderErrorMaskingAction = ResponderErrorMaskingAction;
|
|
2445
|
+
exports.ResponderErrorMaskingLoggingType = ResponderErrorMaskingLoggingType;
|
|
2446
|
+
exports.ResponderGatewayStatus = ResponderGatewayStatus;
|
|
2447
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
2448
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
2449
|
+
exports.ThrottlingException = ThrottlingException;
|
|
2450
|
+
exports.TrustStoreConfigurationFilterSensitiveLog = TrustStoreConfigurationFilterSensitiveLog;
|
|
2451
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
2452
|
+
exports.UpdateLinkCommand = UpdateLinkCommand;
|
|
2453
|
+
exports.UpdateLinkModuleFlowCommand = UpdateLinkModuleFlowCommand;
|
|
2454
|
+
exports.UpdateRequesterGatewayCommand = UpdateRequesterGatewayCommand;
|
|
2455
|
+
exports.UpdateResponderGatewayCommand = UpdateResponderGatewayCommand;
|
|
2456
|
+
exports.UpdateResponderGatewayRequestFilterSensitiveLog = UpdateResponderGatewayRequestFilterSensitiveLog;
|
|
2457
|
+
exports.ValidationException = ValidationException;
|
|
2458
|
+
exports.paginateListLinks = paginateListLinks;
|
|
2459
|
+
exports.paginateListRequesterGateways = paginateListRequesterGateways;
|
|
2460
|
+
exports.paginateListResponderGateways = paginateListResponderGateways;
|
|
2461
|
+
exports.waitForInboundExternalLinkActive = waitForInboundExternalLinkActive;
|
|
2462
|
+
exports.waitForLinkAccepted = waitForLinkAccepted;
|
|
2463
|
+
exports.waitForLinkActive = waitForLinkActive;
|
|
2464
|
+
exports.waitForOutboundExternalLinkActive = waitForOutboundExternalLinkActive;
|
|
2465
|
+
exports.waitForRequesterGatewayActive = waitForRequesterGatewayActive;
|
|
2466
|
+
exports.waitForRequesterGatewayDeleted = waitForRequesterGatewayDeleted;
|
|
2467
|
+
exports.waitForResponderGatewayActive = waitForResponderGatewayActive;
|
|
2468
|
+
exports.waitForResponderGatewayDeleted = waitForResponderGatewayDeleted;
|
|
2469
|
+
exports.waitUntilInboundExternalLinkActive = waitUntilInboundExternalLinkActive;
|
|
2470
|
+
exports.waitUntilLinkAccepted = waitUntilLinkAccepted;
|
|
2471
|
+
exports.waitUntilLinkActive = waitUntilLinkActive;
|
|
2472
|
+
exports.waitUntilOutboundExternalLinkActive = waitUntilOutboundExternalLinkActive;
|
|
2473
|
+
exports.waitUntilRequesterGatewayActive = waitUntilRequesterGatewayActive;
|
|
2474
|
+
exports.waitUntilRequesterGatewayDeleted = waitUntilRequesterGatewayDeleted;
|
|
2475
|
+
exports.waitUntilResponderGatewayActive = waitUntilResponderGatewayActive;
|
|
2476
|
+
exports.waitUntilResponderGatewayDeleted = waitUntilResponderGatewayDeleted;
|