@aws-sdk/client-oam 3.899.0 → 3.906.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1122 -1304
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,1353 +1,1171 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "oam",
|
|
25
|
+
});
|
|
10
26
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
32
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
ConflictException: () => ConflictException,
|
|
25
|
-
CreateLinkCommand: () => CreateLinkCommand,
|
|
26
|
-
CreateSinkCommand: () => CreateSinkCommand,
|
|
27
|
-
DeleteLinkCommand: () => DeleteLinkCommand,
|
|
28
|
-
DeleteSinkCommand: () => DeleteSinkCommand,
|
|
29
|
-
GetLinkCommand: () => GetLinkCommand,
|
|
30
|
-
GetSinkCommand: () => GetSinkCommand,
|
|
31
|
-
GetSinkPolicyCommand: () => GetSinkPolicyCommand,
|
|
32
|
-
InternalServiceFault: () => InternalServiceFault,
|
|
33
|
-
InvalidParameterException: () => InvalidParameterException,
|
|
34
|
-
ListAttachedLinksCommand: () => ListAttachedLinksCommand,
|
|
35
|
-
ListLinksCommand: () => ListLinksCommand,
|
|
36
|
-
ListSinksCommand: () => ListSinksCommand,
|
|
37
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
38
|
-
MissingRequiredParameterException: () => MissingRequiredParameterException,
|
|
39
|
-
OAM: () => OAM,
|
|
40
|
-
OAMClient: () => OAMClient,
|
|
41
|
-
OAMServiceException: () => OAMServiceException,
|
|
42
|
-
PutSinkPolicyCommand: () => PutSinkPolicyCommand,
|
|
43
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
44
|
-
ResourceType: () => ResourceType,
|
|
45
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
46
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
47
|
-
TooManyTagsException: () => TooManyTagsException,
|
|
48
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
49
|
-
UpdateLinkCommand: () => UpdateLinkCommand,
|
|
50
|
-
ValidationException: () => ValidationException,
|
|
51
|
-
__Client: () => import_smithy_client.Client,
|
|
52
|
-
paginateListAttachedLinks: () => paginateListAttachedLinks,
|
|
53
|
-
paginateListLinks: () => paginateListLinks,
|
|
54
|
-
paginateListSinks: () => paginateListSinks
|
|
55
|
-
});
|
|
56
|
-
module.exports = __toCommonJS(index_exports);
|
|
57
33
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
84
71
|
};
|
|
85
72
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
92
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
93
78
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
79
|
+
class OAMClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultOAMHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
122
107
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
128
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
129
|
-
credentials: config.credentials()
|
|
130
|
-
};
|
|
131
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
132
|
-
|
|
133
|
-
// src/runtimeExtensions.ts
|
|
134
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
135
|
-
const extensionConfiguration = Object.assign(
|
|
136
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
137
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
138
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
139
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
140
|
-
);
|
|
141
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
142
|
-
return Object.assign(
|
|
143
|
-
runtimeConfig,
|
|
144
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
145
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
146
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
147
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
148
|
-
);
|
|
149
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
150
112
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
183
|
-
"aws.auth#sigv4": config.credentials
|
|
184
|
-
}), "identityProviderConfigProvider")
|
|
185
|
-
})
|
|
186
|
-
);
|
|
187
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
191
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
192
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
193
|
-
*/
|
|
194
|
-
destroy() {
|
|
195
|
-
super.destroy();
|
|
196
|
-
}
|
|
113
|
+
class OAMServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, OAMServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class ConflictException extends OAMServiceException {
|
|
121
|
+
name = "ConflictException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
Message;
|
|
124
|
+
amznErrorType;
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "ConflictException",
|
|
128
|
+
$fault: "client",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
132
|
+
this.Message = opts.Message;
|
|
133
|
+
this.amznErrorType = opts.amznErrorType;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
const ResourceType = {
|
|
137
|
+
AWS_APPLICATIONINSIGHTS_APPLICATION: "AWS::ApplicationInsights::Application",
|
|
138
|
+
AWS_APPLICATION_SIGNALS_SERVICE: "AWS::ApplicationSignals::Service",
|
|
139
|
+
AWS_APPLICATION_SIGNALS_SLO: "AWS::ApplicationSignals::ServiceLevelObjective",
|
|
140
|
+
AWS_CLOUDWATCH_METRIC: "AWS::CloudWatch::Metric",
|
|
141
|
+
AWS_INTERNETMONITOR_MONITOR: "AWS::InternetMonitor::Monitor",
|
|
142
|
+
AWS_LOGS_LOGGROUP: "AWS::Logs::LogGroup",
|
|
143
|
+
AWS_XRAY_TRACE: "AWS::XRay::Trace",
|
|
197
144
|
};
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
145
|
+
class InternalServiceFault extends OAMServiceException {
|
|
146
|
+
name = "InternalServiceFault";
|
|
147
|
+
$fault = "server";
|
|
148
|
+
Message;
|
|
149
|
+
amznErrorType;
|
|
150
|
+
constructor(opts) {
|
|
151
|
+
super({
|
|
152
|
+
name: "InternalServiceFault",
|
|
153
|
+
$fault: "server",
|
|
154
|
+
...opts,
|
|
155
|
+
});
|
|
156
|
+
Object.setPrototypeOf(this, InternalServiceFault.prototype);
|
|
157
|
+
this.Message = opts.Message;
|
|
158
|
+
this.amznErrorType = opts.amznErrorType;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
class InvalidParameterException extends OAMServiceException {
|
|
162
|
+
name = "InvalidParameterException";
|
|
163
|
+
$fault = "client";
|
|
164
|
+
amznErrorType;
|
|
165
|
+
constructor(opts) {
|
|
166
|
+
super({
|
|
167
|
+
name: "InvalidParameterException",
|
|
168
|
+
$fault: "client",
|
|
169
|
+
...opts,
|
|
170
|
+
});
|
|
171
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
172
|
+
this.amznErrorType = opts.amznErrorType;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
class MissingRequiredParameterException extends OAMServiceException {
|
|
176
|
+
name = "MissingRequiredParameterException";
|
|
177
|
+
$fault = "client";
|
|
178
|
+
amznErrorType;
|
|
179
|
+
constructor(opts) {
|
|
180
|
+
super({
|
|
181
|
+
name: "MissingRequiredParameterException",
|
|
182
|
+
$fault: "client",
|
|
183
|
+
...opts,
|
|
184
|
+
});
|
|
185
|
+
Object.setPrototypeOf(this, MissingRequiredParameterException.prototype);
|
|
186
|
+
this.amznErrorType = opts.amznErrorType;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
class ServiceQuotaExceededException extends OAMServiceException {
|
|
190
|
+
name = "ServiceQuotaExceededException";
|
|
191
|
+
$fault = "client";
|
|
192
|
+
Message;
|
|
193
|
+
amznErrorType;
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
super({
|
|
196
|
+
name: "ServiceQuotaExceededException",
|
|
197
|
+
$fault: "client",
|
|
198
|
+
...opts,
|
|
199
|
+
});
|
|
200
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
201
|
+
this.Message = opts.Message;
|
|
202
|
+
this.amznErrorType = opts.amznErrorType;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
class ResourceNotFoundException extends OAMServiceException {
|
|
206
|
+
name = "ResourceNotFoundException";
|
|
207
|
+
$fault = "client";
|
|
208
|
+
Message;
|
|
209
|
+
amznErrorType;
|
|
210
|
+
constructor(opts) {
|
|
211
|
+
super({
|
|
212
|
+
name: "ResourceNotFoundException",
|
|
213
|
+
$fault: "client",
|
|
214
|
+
...opts,
|
|
215
|
+
});
|
|
216
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
217
|
+
this.Message = opts.Message;
|
|
218
|
+
this.amznErrorType = opts.amznErrorType;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
class ValidationException extends OAMServiceException {
|
|
222
|
+
name = "ValidationException";
|
|
223
|
+
$fault = "client";
|
|
224
|
+
Message;
|
|
225
|
+
constructor(opts) {
|
|
226
|
+
super({
|
|
227
|
+
name: "ValidationException",
|
|
228
|
+
$fault: "client",
|
|
229
|
+
...opts,
|
|
230
|
+
});
|
|
231
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
232
|
+
this.Message = opts.Message;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
class TooManyTagsException extends OAMServiceException {
|
|
236
|
+
name = "TooManyTagsException";
|
|
237
|
+
$fault = "client";
|
|
238
|
+
Message;
|
|
239
|
+
constructor(opts) {
|
|
240
|
+
super({
|
|
241
|
+
name: "TooManyTagsException",
|
|
242
|
+
$fault: "client",
|
|
243
|
+
...opts,
|
|
244
|
+
});
|
|
245
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
246
|
+
this.Message = opts.Message;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
const se_CreateLinkCommand = async (input, context) => {
|
|
251
|
+
const b = core.requestBuilder(input, context);
|
|
252
|
+
const headers = {
|
|
253
|
+
"content-type": "application/json",
|
|
254
|
+
};
|
|
255
|
+
b.bp("/CreateLink");
|
|
256
|
+
let body;
|
|
257
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
258
|
+
LabelTemplate: [],
|
|
259
|
+
LinkConfiguration: (_) => smithyClient._json(_),
|
|
260
|
+
ResourceTypes: (_) => smithyClient._json(_),
|
|
261
|
+
SinkIdentifier: [],
|
|
262
|
+
Tags: (_) => smithyClient._json(_),
|
|
263
|
+
}));
|
|
264
|
+
b.m("POST").h(headers).b(body);
|
|
265
|
+
return b.build();
|
|
225
266
|
};
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
267
|
+
const se_CreateSinkCommand = async (input, context) => {
|
|
268
|
+
const b = core.requestBuilder(input, context);
|
|
269
|
+
const headers = {
|
|
270
|
+
"content-type": "application/json",
|
|
271
|
+
};
|
|
272
|
+
b.bp("/CreateSink");
|
|
273
|
+
let body;
|
|
274
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
275
|
+
Name: [],
|
|
276
|
+
Tags: (_) => smithyClient._json(_),
|
|
277
|
+
}));
|
|
278
|
+
b.m("POST").h(headers).b(body);
|
|
279
|
+
return b.build();
|
|
280
|
+
};
|
|
281
|
+
const se_DeleteLinkCommand = async (input, context) => {
|
|
282
|
+
const b = core.requestBuilder(input, context);
|
|
283
|
+
const headers = {
|
|
284
|
+
"content-type": "application/json",
|
|
285
|
+
};
|
|
286
|
+
b.bp("/DeleteLink");
|
|
287
|
+
let body;
|
|
288
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
289
|
+
Identifier: [],
|
|
290
|
+
}));
|
|
291
|
+
b.m("POST").h(headers).b(body);
|
|
292
|
+
return b.build();
|
|
293
|
+
};
|
|
294
|
+
const se_DeleteSinkCommand = async (input, context) => {
|
|
295
|
+
const b = core.requestBuilder(input, context);
|
|
296
|
+
const headers = {
|
|
297
|
+
"content-type": "application/json",
|
|
298
|
+
};
|
|
299
|
+
b.bp("/DeleteSink");
|
|
300
|
+
let body;
|
|
301
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
302
|
+
Identifier: [],
|
|
303
|
+
}));
|
|
304
|
+
b.m("POST").h(headers).b(body);
|
|
305
|
+
return b.build();
|
|
306
|
+
};
|
|
307
|
+
const se_GetLinkCommand = async (input, context) => {
|
|
308
|
+
const b = core.requestBuilder(input, context);
|
|
309
|
+
const headers = {
|
|
310
|
+
"content-type": "application/json",
|
|
311
|
+
};
|
|
312
|
+
b.bp("/GetLink");
|
|
313
|
+
let body;
|
|
314
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
315
|
+
Identifier: [],
|
|
316
|
+
IncludeTags: [],
|
|
317
|
+
}));
|
|
318
|
+
b.m("POST").h(headers).b(body);
|
|
319
|
+
return b.build();
|
|
320
|
+
};
|
|
321
|
+
const se_GetSinkCommand = async (input, context) => {
|
|
322
|
+
const b = core.requestBuilder(input, context);
|
|
323
|
+
const headers = {
|
|
324
|
+
"content-type": "application/json",
|
|
325
|
+
};
|
|
326
|
+
b.bp("/GetSink");
|
|
327
|
+
let body;
|
|
328
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
329
|
+
Identifier: [],
|
|
330
|
+
IncludeTags: [],
|
|
331
|
+
}));
|
|
332
|
+
b.m("POST").h(headers).b(body);
|
|
333
|
+
return b.build();
|
|
334
|
+
};
|
|
335
|
+
const se_GetSinkPolicyCommand = async (input, context) => {
|
|
336
|
+
const b = core.requestBuilder(input, context);
|
|
337
|
+
const headers = {
|
|
338
|
+
"content-type": "application/json",
|
|
339
|
+
};
|
|
340
|
+
b.bp("/GetSinkPolicy");
|
|
341
|
+
let body;
|
|
342
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
343
|
+
SinkIdentifier: [],
|
|
344
|
+
}));
|
|
345
|
+
b.m("POST").h(headers).b(body);
|
|
346
|
+
return b.build();
|
|
347
|
+
};
|
|
348
|
+
const se_ListAttachedLinksCommand = async (input, context) => {
|
|
349
|
+
const b = core.requestBuilder(input, context);
|
|
350
|
+
const headers = {
|
|
351
|
+
"content-type": "application/json",
|
|
352
|
+
};
|
|
353
|
+
b.bp("/ListAttachedLinks");
|
|
354
|
+
let body;
|
|
355
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
356
|
+
MaxResults: [],
|
|
357
|
+
NextToken: [],
|
|
358
|
+
SinkIdentifier: [],
|
|
359
|
+
}));
|
|
360
|
+
b.m("POST").h(headers).b(body);
|
|
361
|
+
return b.build();
|
|
362
|
+
};
|
|
363
|
+
const se_ListLinksCommand = async (input, context) => {
|
|
364
|
+
const b = core.requestBuilder(input, context);
|
|
365
|
+
const headers = {
|
|
366
|
+
"content-type": "application/json",
|
|
367
|
+
};
|
|
368
|
+
b.bp("/ListLinks");
|
|
369
|
+
let body;
|
|
370
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
371
|
+
MaxResults: [],
|
|
372
|
+
NextToken: [],
|
|
373
|
+
}));
|
|
374
|
+
b.m("POST").h(headers).b(body);
|
|
375
|
+
return b.build();
|
|
376
|
+
};
|
|
377
|
+
const se_ListSinksCommand = async (input, context) => {
|
|
378
|
+
const b = core.requestBuilder(input, context);
|
|
379
|
+
const headers = {
|
|
380
|
+
"content-type": "application/json",
|
|
381
|
+
};
|
|
382
|
+
b.bp("/ListSinks");
|
|
383
|
+
let body;
|
|
384
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
385
|
+
MaxResults: [],
|
|
386
|
+
NextToken: [],
|
|
387
|
+
}));
|
|
388
|
+
b.m("POST").h(headers).b(body);
|
|
389
|
+
return b.build();
|
|
390
|
+
};
|
|
391
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
392
|
+
const b = core.requestBuilder(input, context);
|
|
393
|
+
const headers = {};
|
|
394
|
+
b.bp("/tags/{ResourceArn}");
|
|
395
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
396
|
+
let body;
|
|
397
|
+
b.m("GET").h(headers).b(body);
|
|
398
|
+
return b.build();
|
|
399
|
+
};
|
|
400
|
+
const se_PutSinkPolicyCommand = async (input, context) => {
|
|
401
|
+
const b = core.requestBuilder(input, context);
|
|
402
|
+
const headers = {
|
|
403
|
+
"content-type": "application/json",
|
|
404
|
+
};
|
|
405
|
+
b.bp("/PutSinkPolicy");
|
|
406
|
+
let body;
|
|
407
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
408
|
+
Policy: [],
|
|
409
|
+
SinkIdentifier: [],
|
|
410
|
+
}));
|
|
411
|
+
b.m("POST").h(headers).b(body);
|
|
412
|
+
return b.build();
|
|
413
|
+
};
|
|
414
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
415
|
+
const b = core.requestBuilder(input, context);
|
|
416
|
+
const headers = {
|
|
417
|
+
"content-type": "application/json",
|
|
418
|
+
};
|
|
419
|
+
b.bp("/tags/{ResourceArn}");
|
|
420
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
421
|
+
let body;
|
|
422
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
423
|
+
Tags: (_) => smithyClient._json(_),
|
|
424
|
+
}));
|
|
425
|
+
b.m("PUT").h(headers).b(body);
|
|
426
|
+
return b.build();
|
|
427
|
+
};
|
|
428
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
429
|
+
const b = core.requestBuilder(input, context);
|
|
430
|
+
const headers = {};
|
|
431
|
+
b.bp("/tags/{ResourceArn}");
|
|
432
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
433
|
+
const query = smithyClient.map({
|
|
434
|
+
[_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
248
435
|
});
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
436
|
+
let body;
|
|
437
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
438
|
+
return b.build();
|
|
253
439
|
};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
440
|
+
const se_UpdateLinkCommand = async (input, context) => {
|
|
441
|
+
const b = core.requestBuilder(input, context);
|
|
442
|
+
const headers = {
|
|
443
|
+
"content-type": "application/json",
|
|
444
|
+
};
|
|
445
|
+
b.bp("/UpdateLink");
|
|
446
|
+
let body;
|
|
447
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
448
|
+
Identifier: [],
|
|
449
|
+
IncludeTags: [],
|
|
450
|
+
LinkConfiguration: (_) => smithyClient._json(_),
|
|
451
|
+
ResourceTypes: (_) => smithyClient._json(_),
|
|
452
|
+
}));
|
|
453
|
+
b.m("POST").h(headers).b(body);
|
|
454
|
+
return b.build();
|
|
262
455
|
};
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
name: "InternalServiceFault",
|
|
281
|
-
$fault: "server",
|
|
282
|
-
...opts
|
|
456
|
+
const de_CreateLinkCommand = async (output, context) => {
|
|
457
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
458
|
+
return de_CommandError(output, context);
|
|
459
|
+
}
|
|
460
|
+
const contents = smithyClient.map({
|
|
461
|
+
$metadata: deserializeMetadata(output),
|
|
462
|
+
});
|
|
463
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
464
|
+
const doc = smithyClient.take(data, {
|
|
465
|
+
Arn: smithyClient.expectString,
|
|
466
|
+
Id: smithyClient.expectString,
|
|
467
|
+
Label: smithyClient.expectString,
|
|
468
|
+
LabelTemplate: smithyClient.expectString,
|
|
469
|
+
LinkConfiguration: smithyClient._json,
|
|
470
|
+
ResourceTypes: smithyClient._json,
|
|
471
|
+
SinkArn: smithyClient.expectString,
|
|
472
|
+
Tags: smithyClient._json,
|
|
283
473
|
});
|
|
284
|
-
Object.
|
|
285
|
-
|
|
286
|
-
this.amznErrorType = opts.amznErrorType;
|
|
287
|
-
}
|
|
474
|
+
Object.assign(contents, doc);
|
|
475
|
+
return contents;
|
|
288
476
|
};
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* <p>The name of the exception.</p>
|
|
297
|
-
* @public
|
|
298
|
-
*/
|
|
299
|
-
amznErrorType;
|
|
300
|
-
/**
|
|
301
|
-
* @internal
|
|
302
|
-
*/
|
|
303
|
-
constructor(opts) {
|
|
304
|
-
super({
|
|
305
|
-
name: "InvalidParameterException",
|
|
306
|
-
$fault: "client",
|
|
307
|
-
...opts
|
|
477
|
+
const de_CreateSinkCommand = async (output, context) => {
|
|
478
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
479
|
+
return de_CommandError(output, context);
|
|
480
|
+
}
|
|
481
|
+
const contents = smithyClient.map({
|
|
482
|
+
$metadata: deserializeMetadata(output),
|
|
308
483
|
});
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
484
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
485
|
+
const doc = smithyClient.take(data, {
|
|
486
|
+
Arn: smithyClient.expectString,
|
|
487
|
+
Id: smithyClient.expectString,
|
|
488
|
+
Name: smithyClient.expectString,
|
|
489
|
+
Tags: smithyClient._json,
|
|
490
|
+
});
|
|
491
|
+
Object.assign(contents, doc);
|
|
492
|
+
return contents;
|
|
312
493
|
};
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* <p>The name of the exception.</p>
|
|
321
|
-
* @public
|
|
322
|
-
*/
|
|
323
|
-
amznErrorType;
|
|
324
|
-
/**
|
|
325
|
-
* @internal
|
|
326
|
-
*/
|
|
327
|
-
constructor(opts) {
|
|
328
|
-
super({
|
|
329
|
-
name: "MissingRequiredParameterException",
|
|
330
|
-
$fault: "client",
|
|
331
|
-
...opts
|
|
494
|
+
const de_DeleteLinkCommand = async (output, context) => {
|
|
495
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
496
|
+
return de_CommandError(output, context);
|
|
497
|
+
}
|
|
498
|
+
const contents = smithyClient.map({
|
|
499
|
+
$metadata: deserializeMetadata(output),
|
|
332
500
|
});
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}
|
|
501
|
+
await smithyClient.collectBody(output.body, context);
|
|
502
|
+
return contents;
|
|
336
503
|
};
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
Message;
|
|
344
|
-
/**
|
|
345
|
-
* <p>The name of the exception.</p>
|
|
346
|
-
* @public
|
|
347
|
-
*/
|
|
348
|
-
amznErrorType;
|
|
349
|
-
/**
|
|
350
|
-
* @internal
|
|
351
|
-
*/
|
|
352
|
-
constructor(opts) {
|
|
353
|
-
super({
|
|
354
|
-
name: "ServiceQuotaExceededException",
|
|
355
|
-
$fault: "client",
|
|
356
|
-
...opts
|
|
504
|
+
const de_DeleteSinkCommand = async (output, context) => {
|
|
505
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
506
|
+
return de_CommandError(output, context);
|
|
507
|
+
}
|
|
508
|
+
const contents = smithyClient.map({
|
|
509
|
+
$metadata: deserializeMetadata(output),
|
|
357
510
|
});
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
this.amznErrorType = opts.amznErrorType;
|
|
361
|
-
}
|
|
511
|
+
await smithyClient.collectBody(output.body, context);
|
|
512
|
+
return contents;
|
|
362
513
|
};
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
name: "ResourceNotFoundException",
|
|
381
|
-
$fault: "client",
|
|
382
|
-
...opts
|
|
514
|
+
const de_GetLinkCommand = async (output, context) => {
|
|
515
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
516
|
+
return de_CommandError(output, context);
|
|
517
|
+
}
|
|
518
|
+
const contents = smithyClient.map({
|
|
519
|
+
$metadata: deserializeMetadata(output),
|
|
520
|
+
});
|
|
521
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
522
|
+
const doc = smithyClient.take(data, {
|
|
523
|
+
Arn: smithyClient.expectString,
|
|
524
|
+
Id: smithyClient.expectString,
|
|
525
|
+
Label: smithyClient.expectString,
|
|
526
|
+
LabelTemplate: smithyClient.expectString,
|
|
527
|
+
LinkConfiguration: smithyClient._json,
|
|
528
|
+
ResourceTypes: smithyClient._json,
|
|
529
|
+
SinkArn: smithyClient.expectString,
|
|
530
|
+
Tags: smithyClient._json,
|
|
383
531
|
});
|
|
384
|
-
Object.
|
|
385
|
-
|
|
386
|
-
this.amznErrorType = opts.amznErrorType;
|
|
387
|
-
}
|
|
532
|
+
Object.assign(contents, doc);
|
|
533
|
+
return contents;
|
|
388
534
|
};
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
Message;
|
|
396
|
-
/**
|
|
397
|
-
* @internal
|
|
398
|
-
*/
|
|
399
|
-
constructor(opts) {
|
|
400
|
-
super({
|
|
401
|
-
name: "ValidationException",
|
|
402
|
-
$fault: "client",
|
|
403
|
-
...opts
|
|
535
|
+
const de_GetSinkCommand = async (output, context) => {
|
|
536
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
537
|
+
return de_CommandError(output, context);
|
|
538
|
+
}
|
|
539
|
+
const contents = smithyClient.map({
|
|
540
|
+
$metadata: deserializeMetadata(output),
|
|
404
541
|
});
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
542
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
543
|
+
const doc = smithyClient.take(data, {
|
|
544
|
+
Arn: smithyClient.expectString,
|
|
545
|
+
Id: smithyClient.expectString,
|
|
546
|
+
Name: smithyClient.expectString,
|
|
547
|
+
Tags: smithyClient._json,
|
|
548
|
+
});
|
|
549
|
+
Object.assign(contents, doc);
|
|
550
|
+
return contents;
|
|
408
551
|
};
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
Message;
|
|
416
|
-
/**
|
|
417
|
-
* @internal
|
|
418
|
-
*/
|
|
419
|
-
constructor(opts) {
|
|
420
|
-
super({
|
|
421
|
-
name: "TooManyTagsException",
|
|
422
|
-
$fault: "client",
|
|
423
|
-
...opts
|
|
552
|
+
const de_GetSinkPolicyCommand = async (output, context) => {
|
|
553
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
554
|
+
return de_CommandError(output, context);
|
|
555
|
+
}
|
|
556
|
+
const contents = smithyClient.map({
|
|
557
|
+
$metadata: deserializeMetadata(output),
|
|
424
558
|
});
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
559
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
560
|
+
const doc = smithyClient.take(data, {
|
|
561
|
+
Policy: smithyClient.expectString,
|
|
562
|
+
SinkArn: smithyClient.expectString,
|
|
563
|
+
SinkId: smithyClient.expectString,
|
|
564
|
+
});
|
|
565
|
+
Object.assign(contents, doc);
|
|
566
|
+
return contents;
|
|
428
567
|
};
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
SinkIdentifier: [],
|
|
444
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
445
|
-
})
|
|
446
|
-
);
|
|
447
|
-
b.m("POST").h(headers).b(body);
|
|
448
|
-
return b.build();
|
|
449
|
-
}, "se_CreateLinkCommand");
|
|
450
|
-
var se_CreateSinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
451
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
452
|
-
const headers = {
|
|
453
|
-
"content-type": "application/json"
|
|
454
|
-
};
|
|
455
|
-
b.bp("/CreateSink");
|
|
456
|
-
let body;
|
|
457
|
-
body = JSON.stringify(
|
|
458
|
-
(0, import_smithy_client.take)(input, {
|
|
459
|
-
Name: [],
|
|
460
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
461
|
-
})
|
|
462
|
-
);
|
|
463
|
-
b.m("POST").h(headers).b(body);
|
|
464
|
-
return b.build();
|
|
465
|
-
}, "se_CreateSinkCommand");
|
|
466
|
-
var se_DeleteLinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
467
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
468
|
-
const headers = {
|
|
469
|
-
"content-type": "application/json"
|
|
470
|
-
};
|
|
471
|
-
b.bp("/DeleteLink");
|
|
472
|
-
let body;
|
|
473
|
-
body = JSON.stringify(
|
|
474
|
-
(0, import_smithy_client.take)(input, {
|
|
475
|
-
Identifier: []
|
|
476
|
-
})
|
|
477
|
-
);
|
|
478
|
-
b.m("POST").h(headers).b(body);
|
|
479
|
-
return b.build();
|
|
480
|
-
}, "se_DeleteLinkCommand");
|
|
481
|
-
var se_DeleteSinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
482
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
483
|
-
const headers = {
|
|
484
|
-
"content-type": "application/json"
|
|
485
|
-
};
|
|
486
|
-
b.bp("/DeleteSink");
|
|
487
|
-
let body;
|
|
488
|
-
body = JSON.stringify(
|
|
489
|
-
(0, import_smithy_client.take)(input, {
|
|
490
|
-
Identifier: []
|
|
491
|
-
})
|
|
492
|
-
);
|
|
493
|
-
b.m("POST").h(headers).b(body);
|
|
494
|
-
return b.build();
|
|
495
|
-
}, "se_DeleteSinkCommand");
|
|
496
|
-
var se_GetLinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
497
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
498
|
-
const headers = {
|
|
499
|
-
"content-type": "application/json"
|
|
500
|
-
};
|
|
501
|
-
b.bp("/GetLink");
|
|
502
|
-
let body;
|
|
503
|
-
body = JSON.stringify(
|
|
504
|
-
(0, import_smithy_client.take)(input, {
|
|
505
|
-
Identifier: [],
|
|
506
|
-
IncludeTags: []
|
|
507
|
-
})
|
|
508
|
-
);
|
|
509
|
-
b.m("POST").h(headers).b(body);
|
|
510
|
-
return b.build();
|
|
511
|
-
}, "se_GetLinkCommand");
|
|
512
|
-
var se_GetSinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
513
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
514
|
-
const headers = {
|
|
515
|
-
"content-type": "application/json"
|
|
516
|
-
};
|
|
517
|
-
b.bp("/GetSink");
|
|
518
|
-
let body;
|
|
519
|
-
body = JSON.stringify(
|
|
520
|
-
(0, import_smithy_client.take)(input, {
|
|
521
|
-
Identifier: [],
|
|
522
|
-
IncludeTags: []
|
|
523
|
-
})
|
|
524
|
-
);
|
|
525
|
-
b.m("POST").h(headers).b(body);
|
|
526
|
-
return b.build();
|
|
527
|
-
}, "se_GetSinkCommand");
|
|
528
|
-
var se_GetSinkPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
529
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
530
|
-
const headers = {
|
|
531
|
-
"content-type": "application/json"
|
|
532
|
-
};
|
|
533
|
-
b.bp("/GetSinkPolicy");
|
|
534
|
-
let body;
|
|
535
|
-
body = JSON.stringify(
|
|
536
|
-
(0, import_smithy_client.take)(input, {
|
|
537
|
-
SinkIdentifier: []
|
|
538
|
-
})
|
|
539
|
-
);
|
|
540
|
-
b.m("POST").h(headers).b(body);
|
|
541
|
-
return b.build();
|
|
542
|
-
}, "se_GetSinkPolicyCommand");
|
|
543
|
-
var se_ListAttachedLinksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
544
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
545
|
-
const headers = {
|
|
546
|
-
"content-type": "application/json"
|
|
547
|
-
};
|
|
548
|
-
b.bp("/ListAttachedLinks");
|
|
549
|
-
let body;
|
|
550
|
-
body = JSON.stringify(
|
|
551
|
-
(0, import_smithy_client.take)(input, {
|
|
552
|
-
MaxResults: [],
|
|
553
|
-
NextToken: [],
|
|
554
|
-
SinkIdentifier: []
|
|
555
|
-
})
|
|
556
|
-
);
|
|
557
|
-
b.m("POST").h(headers).b(body);
|
|
558
|
-
return b.build();
|
|
559
|
-
}, "se_ListAttachedLinksCommand");
|
|
560
|
-
var se_ListLinksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
561
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
562
|
-
const headers = {
|
|
563
|
-
"content-type": "application/json"
|
|
564
|
-
};
|
|
565
|
-
b.bp("/ListLinks");
|
|
566
|
-
let body;
|
|
567
|
-
body = JSON.stringify(
|
|
568
|
-
(0, import_smithy_client.take)(input, {
|
|
569
|
-
MaxResults: [],
|
|
570
|
-
NextToken: []
|
|
571
|
-
})
|
|
572
|
-
);
|
|
573
|
-
b.m("POST").h(headers).b(body);
|
|
574
|
-
return b.build();
|
|
575
|
-
}, "se_ListLinksCommand");
|
|
576
|
-
var se_ListSinksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
577
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
578
|
-
const headers = {
|
|
579
|
-
"content-type": "application/json"
|
|
580
|
-
};
|
|
581
|
-
b.bp("/ListSinks");
|
|
582
|
-
let body;
|
|
583
|
-
body = JSON.stringify(
|
|
584
|
-
(0, import_smithy_client.take)(input, {
|
|
585
|
-
MaxResults: [],
|
|
586
|
-
NextToken: []
|
|
587
|
-
})
|
|
588
|
-
);
|
|
589
|
-
b.m("POST").h(headers).b(body);
|
|
590
|
-
return b.build();
|
|
591
|
-
}, "se_ListSinksCommand");
|
|
592
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
593
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
594
|
-
const headers = {};
|
|
595
|
-
b.bp("/tags/{ResourceArn}");
|
|
596
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
597
|
-
let body;
|
|
598
|
-
b.m("GET").h(headers).b(body);
|
|
599
|
-
return b.build();
|
|
600
|
-
}, "se_ListTagsForResourceCommand");
|
|
601
|
-
var se_PutSinkPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
602
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
603
|
-
const headers = {
|
|
604
|
-
"content-type": "application/json"
|
|
605
|
-
};
|
|
606
|
-
b.bp("/PutSinkPolicy");
|
|
607
|
-
let body;
|
|
608
|
-
body = JSON.stringify(
|
|
609
|
-
(0, import_smithy_client.take)(input, {
|
|
610
|
-
Policy: [],
|
|
611
|
-
SinkIdentifier: []
|
|
612
|
-
})
|
|
613
|
-
);
|
|
614
|
-
b.m("POST").h(headers).b(body);
|
|
615
|
-
return b.build();
|
|
616
|
-
}, "se_PutSinkPolicyCommand");
|
|
617
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
618
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
619
|
-
const headers = {
|
|
620
|
-
"content-type": "application/json"
|
|
621
|
-
};
|
|
622
|
-
b.bp("/tags/{ResourceArn}");
|
|
623
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
624
|
-
let body;
|
|
625
|
-
body = JSON.stringify(
|
|
626
|
-
(0, import_smithy_client.take)(input, {
|
|
627
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
628
|
-
})
|
|
629
|
-
);
|
|
630
|
-
b.m("PUT").h(headers).b(body);
|
|
631
|
-
return b.build();
|
|
632
|
-
}, "se_TagResourceCommand");
|
|
633
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
634
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
635
|
-
const headers = {};
|
|
636
|
-
b.bp("/tags/{ResourceArn}");
|
|
637
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
638
|
-
const query = (0, import_smithy_client.map)({
|
|
639
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
|
|
640
|
-
});
|
|
641
|
-
let body;
|
|
642
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
643
|
-
return b.build();
|
|
644
|
-
}, "se_UntagResourceCommand");
|
|
645
|
-
var se_UpdateLinkCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
646
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
647
|
-
const headers = {
|
|
648
|
-
"content-type": "application/json"
|
|
649
|
-
};
|
|
650
|
-
b.bp("/UpdateLink");
|
|
651
|
-
let body;
|
|
652
|
-
body = JSON.stringify(
|
|
653
|
-
(0, import_smithy_client.take)(input, {
|
|
654
|
-
Identifier: [],
|
|
655
|
-
IncludeTags: [],
|
|
656
|
-
LinkConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LinkConfiguration"),
|
|
657
|
-
ResourceTypes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ResourceTypes")
|
|
658
|
-
})
|
|
659
|
-
);
|
|
660
|
-
b.m("POST").h(headers).b(body);
|
|
661
|
-
return b.build();
|
|
662
|
-
}, "se_UpdateLinkCommand");
|
|
663
|
-
var de_CreateLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
664
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
665
|
-
return de_CommandError(output, context);
|
|
666
|
-
}
|
|
667
|
-
const contents = (0, import_smithy_client.map)({
|
|
668
|
-
$metadata: deserializeMetadata(output)
|
|
669
|
-
});
|
|
670
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
671
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
672
|
-
Arn: import_smithy_client.expectString,
|
|
673
|
-
Id: import_smithy_client.expectString,
|
|
674
|
-
Label: import_smithy_client.expectString,
|
|
675
|
-
LabelTemplate: import_smithy_client.expectString,
|
|
676
|
-
LinkConfiguration: import_smithy_client._json,
|
|
677
|
-
ResourceTypes: import_smithy_client._json,
|
|
678
|
-
SinkArn: import_smithy_client.expectString,
|
|
679
|
-
Tags: import_smithy_client._json
|
|
680
|
-
});
|
|
681
|
-
Object.assign(contents, doc);
|
|
682
|
-
return contents;
|
|
683
|
-
}, "de_CreateLinkCommand");
|
|
684
|
-
var de_CreateSinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
685
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
686
|
-
return de_CommandError(output, context);
|
|
687
|
-
}
|
|
688
|
-
const contents = (0, import_smithy_client.map)({
|
|
689
|
-
$metadata: deserializeMetadata(output)
|
|
690
|
-
});
|
|
691
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
692
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
693
|
-
Arn: import_smithy_client.expectString,
|
|
694
|
-
Id: import_smithy_client.expectString,
|
|
695
|
-
Name: import_smithy_client.expectString,
|
|
696
|
-
Tags: import_smithy_client._json
|
|
697
|
-
});
|
|
698
|
-
Object.assign(contents, doc);
|
|
699
|
-
return contents;
|
|
700
|
-
}, "de_CreateSinkCommand");
|
|
701
|
-
var de_DeleteLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
702
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
703
|
-
return de_CommandError(output, context);
|
|
704
|
-
}
|
|
705
|
-
const contents = (0, import_smithy_client.map)({
|
|
706
|
-
$metadata: deserializeMetadata(output)
|
|
707
|
-
});
|
|
708
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
709
|
-
return contents;
|
|
710
|
-
}, "de_DeleteLinkCommand");
|
|
711
|
-
var de_DeleteSinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
712
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
713
|
-
return de_CommandError(output, context);
|
|
714
|
-
}
|
|
715
|
-
const contents = (0, import_smithy_client.map)({
|
|
716
|
-
$metadata: deserializeMetadata(output)
|
|
717
|
-
});
|
|
718
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
719
|
-
return contents;
|
|
720
|
-
}, "de_DeleteSinkCommand");
|
|
721
|
-
var de_GetLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
722
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
|
-
return de_CommandError(output, context);
|
|
724
|
-
}
|
|
725
|
-
const contents = (0, import_smithy_client.map)({
|
|
726
|
-
$metadata: deserializeMetadata(output)
|
|
727
|
-
});
|
|
728
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
729
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
730
|
-
Arn: import_smithy_client.expectString,
|
|
731
|
-
Id: import_smithy_client.expectString,
|
|
732
|
-
Label: import_smithy_client.expectString,
|
|
733
|
-
LabelTemplate: import_smithy_client.expectString,
|
|
734
|
-
LinkConfiguration: import_smithy_client._json,
|
|
735
|
-
ResourceTypes: import_smithy_client._json,
|
|
736
|
-
SinkArn: import_smithy_client.expectString,
|
|
737
|
-
Tags: import_smithy_client._json
|
|
738
|
-
});
|
|
739
|
-
Object.assign(contents, doc);
|
|
740
|
-
return contents;
|
|
741
|
-
}, "de_GetLinkCommand");
|
|
742
|
-
var de_GetSinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
743
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
744
|
-
return de_CommandError(output, context);
|
|
745
|
-
}
|
|
746
|
-
const contents = (0, import_smithy_client.map)({
|
|
747
|
-
$metadata: deserializeMetadata(output)
|
|
748
|
-
});
|
|
749
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
750
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
751
|
-
Arn: import_smithy_client.expectString,
|
|
752
|
-
Id: import_smithy_client.expectString,
|
|
753
|
-
Name: import_smithy_client.expectString,
|
|
754
|
-
Tags: import_smithy_client._json
|
|
755
|
-
});
|
|
756
|
-
Object.assign(contents, doc);
|
|
757
|
-
return contents;
|
|
758
|
-
}, "de_GetSinkCommand");
|
|
759
|
-
var de_GetSinkPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
760
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
761
|
-
return de_CommandError(output, context);
|
|
762
|
-
}
|
|
763
|
-
const contents = (0, import_smithy_client.map)({
|
|
764
|
-
$metadata: deserializeMetadata(output)
|
|
765
|
-
});
|
|
766
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
767
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
768
|
-
Policy: import_smithy_client.expectString,
|
|
769
|
-
SinkArn: import_smithy_client.expectString,
|
|
770
|
-
SinkId: import_smithy_client.expectString
|
|
771
|
-
});
|
|
772
|
-
Object.assign(contents, doc);
|
|
773
|
-
return contents;
|
|
774
|
-
}, "de_GetSinkPolicyCommand");
|
|
775
|
-
var de_ListAttachedLinksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
776
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
777
|
-
return de_CommandError(output, context);
|
|
778
|
-
}
|
|
779
|
-
const contents = (0, import_smithy_client.map)({
|
|
780
|
-
$metadata: deserializeMetadata(output)
|
|
781
|
-
});
|
|
782
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
783
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
784
|
-
Items: import_smithy_client._json,
|
|
785
|
-
NextToken: import_smithy_client.expectString
|
|
786
|
-
});
|
|
787
|
-
Object.assign(contents, doc);
|
|
788
|
-
return contents;
|
|
789
|
-
}, "de_ListAttachedLinksCommand");
|
|
790
|
-
var de_ListLinksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
791
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return de_CommandError(output, context);
|
|
793
|
-
}
|
|
794
|
-
const contents = (0, import_smithy_client.map)({
|
|
795
|
-
$metadata: deserializeMetadata(output)
|
|
796
|
-
});
|
|
797
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
798
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
799
|
-
Items: import_smithy_client._json,
|
|
800
|
-
NextToken: import_smithy_client.expectString
|
|
801
|
-
});
|
|
802
|
-
Object.assign(contents, doc);
|
|
803
|
-
return contents;
|
|
804
|
-
}, "de_ListLinksCommand");
|
|
805
|
-
var de_ListSinksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
806
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
807
|
-
return de_CommandError(output, context);
|
|
808
|
-
}
|
|
809
|
-
const contents = (0, import_smithy_client.map)({
|
|
810
|
-
$metadata: deserializeMetadata(output)
|
|
811
|
-
});
|
|
812
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
813
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
814
|
-
Items: import_smithy_client._json,
|
|
815
|
-
NextToken: import_smithy_client.expectString
|
|
816
|
-
});
|
|
817
|
-
Object.assign(contents, doc);
|
|
818
|
-
return contents;
|
|
819
|
-
}, "de_ListSinksCommand");
|
|
820
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
-
return de_CommandError(output, context);
|
|
823
|
-
}
|
|
824
|
-
const contents = (0, import_smithy_client.map)({
|
|
825
|
-
$metadata: deserializeMetadata(output)
|
|
826
|
-
});
|
|
827
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
828
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
829
|
-
Tags: import_smithy_client._json
|
|
830
|
-
});
|
|
831
|
-
Object.assign(contents, doc);
|
|
832
|
-
return contents;
|
|
833
|
-
}, "de_ListTagsForResourceCommand");
|
|
834
|
-
var de_PutSinkPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
835
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
836
|
-
return de_CommandError(output, context);
|
|
837
|
-
}
|
|
838
|
-
const contents = (0, import_smithy_client.map)({
|
|
839
|
-
$metadata: deserializeMetadata(output)
|
|
840
|
-
});
|
|
841
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
842
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
843
|
-
Policy: import_smithy_client.expectString,
|
|
844
|
-
SinkArn: import_smithy_client.expectString,
|
|
845
|
-
SinkId: import_smithy_client.expectString
|
|
846
|
-
});
|
|
847
|
-
Object.assign(contents, doc);
|
|
848
|
-
return contents;
|
|
849
|
-
}, "de_PutSinkPolicyCommand");
|
|
850
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
851
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
852
|
-
return de_CommandError(output, context);
|
|
853
|
-
}
|
|
854
|
-
const contents = (0, import_smithy_client.map)({
|
|
855
|
-
$metadata: deserializeMetadata(output)
|
|
856
|
-
});
|
|
857
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
858
|
-
return contents;
|
|
859
|
-
}, "de_TagResourceCommand");
|
|
860
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
861
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
862
|
-
return de_CommandError(output, context);
|
|
863
|
-
}
|
|
864
|
-
const contents = (0, import_smithy_client.map)({
|
|
865
|
-
$metadata: deserializeMetadata(output)
|
|
866
|
-
});
|
|
867
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
868
|
-
return contents;
|
|
869
|
-
}, "de_UntagResourceCommand");
|
|
870
|
-
var de_UpdateLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
872
|
-
return de_CommandError(output, context);
|
|
873
|
-
}
|
|
874
|
-
const contents = (0, import_smithy_client.map)({
|
|
875
|
-
$metadata: deserializeMetadata(output)
|
|
876
|
-
});
|
|
877
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
878
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
879
|
-
Arn: import_smithy_client.expectString,
|
|
880
|
-
Id: import_smithy_client.expectString,
|
|
881
|
-
Label: import_smithy_client.expectString,
|
|
882
|
-
LabelTemplate: import_smithy_client.expectString,
|
|
883
|
-
LinkConfiguration: import_smithy_client._json,
|
|
884
|
-
ResourceTypes: import_smithy_client._json,
|
|
885
|
-
SinkArn: import_smithy_client.expectString,
|
|
886
|
-
Tags: import_smithy_client._json
|
|
887
|
-
});
|
|
888
|
-
Object.assign(contents, doc);
|
|
889
|
-
return contents;
|
|
890
|
-
}, "de_UpdateLinkCommand");
|
|
891
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
|
-
const parsedOutput = {
|
|
893
|
-
...output,
|
|
894
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
895
|
-
};
|
|
896
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
897
|
-
switch (errorCode) {
|
|
898
|
-
case "ConflictException":
|
|
899
|
-
case "com.amazonaws.oam#ConflictException":
|
|
900
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
901
|
-
case "InternalServiceFault":
|
|
902
|
-
case "com.amazonaws.oam#InternalServiceFault":
|
|
903
|
-
throw await de_InternalServiceFaultRes(parsedOutput, context);
|
|
904
|
-
case "InvalidParameterException":
|
|
905
|
-
case "com.amazonaws.oam#InvalidParameterException":
|
|
906
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
907
|
-
case "MissingRequiredParameterException":
|
|
908
|
-
case "com.amazonaws.oam#MissingRequiredParameterException":
|
|
909
|
-
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
910
|
-
case "ServiceQuotaExceededException":
|
|
911
|
-
case "com.amazonaws.oam#ServiceQuotaExceededException":
|
|
912
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
913
|
-
case "ResourceNotFoundException":
|
|
914
|
-
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
915
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
916
|
-
case "ValidationException":
|
|
917
|
-
case "com.amazonaws.oam#ValidationException":
|
|
918
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
919
|
-
case "TooManyTagsException":
|
|
920
|
-
case "com.amazonaws.oam#TooManyTagsException":
|
|
921
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
922
|
-
default:
|
|
923
|
-
const parsedBody = parsedOutput.body;
|
|
924
|
-
return throwDefaultError({
|
|
925
|
-
output,
|
|
926
|
-
parsedBody,
|
|
927
|
-
errorCode
|
|
928
|
-
});
|
|
929
|
-
}
|
|
930
|
-
}, "de_CommandError");
|
|
931
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(OAMServiceException);
|
|
932
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
933
|
-
const contents = (0, import_smithy_client.map)({
|
|
934
|
-
[_aET]: [, parsedOutput.headers[_xae]]
|
|
935
|
-
});
|
|
936
|
-
const data = parsedOutput.body;
|
|
937
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
938
|
-
Message: import_smithy_client.expectString
|
|
939
|
-
});
|
|
940
|
-
Object.assign(contents, doc);
|
|
941
|
-
const exception = new ConflictException({
|
|
942
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
943
|
-
...contents
|
|
944
|
-
});
|
|
945
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
946
|
-
}, "de_ConflictExceptionRes");
|
|
947
|
-
var de_InternalServiceFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
948
|
-
const contents = (0, import_smithy_client.map)({
|
|
949
|
-
[_aET]: [, parsedOutput.headers[_xae]]
|
|
950
|
-
});
|
|
951
|
-
const data = parsedOutput.body;
|
|
952
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
953
|
-
Message: import_smithy_client.expectString
|
|
954
|
-
});
|
|
955
|
-
Object.assign(contents, doc);
|
|
956
|
-
const exception = new InternalServiceFault({
|
|
957
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
958
|
-
...contents
|
|
959
|
-
});
|
|
960
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
961
|
-
}, "de_InternalServiceFaultRes");
|
|
962
|
-
var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
963
|
-
const contents = (0, import_smithy_client.map)({
|
|
964
|
-
[_aET]: [, parsedOutput.headers[_xae]]
|
|
965
|
-
});
|
|
966
|
-
const data = parsedOutput.body;
|
|
967
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
968
|
-
message: import_smithy_client.expectString
|
|
969
|
-
});
|
|
970
|
-
Object.assign(contents, doc);
|
|
971
|
-
const exception = new InvalidParameterException({
|
|
972
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
973
|
-
...contents
|
|
974
|
-
});
|
|
975
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
976
|
-
}, "de_InvalidParameterExceptionRes");
|
|
977
|
-
var de_MissingRequiredParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
978
|
-
const contents = (0, import_smithy_client.map)({
|
|
979
|
-
[_aET]: [, parsedOutput.headers[_xae]]
|
|
980
|
-
});
|
|
981
|
-
const data = parsedOutput.body;
|
|
982
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
983
|
-
message: import_smithy_client.expectString
|
|
984
|
-
});
|
|
985
|
-
Object.assign(contents, doc);
|
|
986
|
-
const exception = new MissingRequiredParameterException({
|
|
987
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
988
|
-
...contents
|
|
989
|
-
});
|
|
990
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
991
|
-
}, "de_MissingRequiredParameterExceptionRes");
|
|
992
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
993
|
-
const contents = (0, import_smithy_client.map)({
|
|
994
|
-
[_aET]: [, parsedOutput.headers[_xae]]
|
|
995
|
-
});
|
|
996
|
-
const data = parsedOutput.body;
|
|
997
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
998
|
-
Message: import_smithy_client.expectString
|
|
999
|
-
});
|
|
1000
|
-
Object.assign(contents, doc);
|
|
1001
|
-
const exception = new ResourceNotFoundException({
|
|
1002
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1003
|
-
...contents
|
|
1004
|
-
});
|
|
1005
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1006
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1007
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1008
|
-
const contents = (0, import_smithy_client.map)({
|
|
1009
|
-
[_aET]: [, parsedOutput.headers[_xae]]
|
|
1010
|
-
});
|
|
1011
|
-
const data = parsedOutput.body;
|
|
1012
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1013
|
-
Message: import_smithy_client.expectString
|
|
1014
|
-
});
|
|
1015
|
-
Object.assign(contents, doc);
|
|
1016
|
-
const exception = new ServiceQuotaExceededException({
|
|
1017
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1018
|
-
...contents
|
|
1019
|
-
});
|
|
1020
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1021
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1022
|
-
var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1023
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1024
|
-
const data = parsedOutput.body;
|
|
1025
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1026
|
-
Message: import_smithy_client.expectString
|
|
1027
|
-
});
|
|
1028
|
-
Object.assign(contents, doc);
|
|
1029
|
-
const exception = new TooManyTagsException({
|
|
1030
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1031
|
-
...contents
|
|
1032
|
-
});
|
|
1033
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1034
|
-
}, "de_TooManyTagsExceptionRes");
|
|
1035
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1036
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1037
|
-
const data = parsedOutput.body;
|
|
1038
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1039
|
-
Message: import_smithy_client.expectString
|
|
1040
|
-
});
|
|
1041
|
-
Object.assign(contents, doc);
|
|
1042
|
-
const exception = new ValidationException({
|
|
1043
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1044
|
-
...contents
|
|
1045
|
-
});
|
|
1046
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1047
|
-
}, "de_ValidationExceptionRes");
|
|
1048
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1049
|
-
httpStatusCode: output.statusCode,
|
|
1050
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1051
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1052
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1053
|
-
}), "deserializeMetadata");
|
|
1054
|
-
var _TK = "TagKeys";
|
|
1055
|
-
var _aET = "amznErrorType";
|
|
1056
|
-
var _tK = "tagKeys";
|
|
1057
|
-
var _xae = "x-amzn-errortype";
|
|
1058
|
-
|
|
1059
|
-
// src/commands/CreateLinkCommand.ts
|
|
1060
|
-
var CreateLinkCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1061
|
-
return [
|
|
1062
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1063
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1064
|
-
];
|
|
1065
|
-
}).s("oamservice", "CreateLink", {}).n("OAMClient", "CreateLinkCommand").f(void 0, void 0).ser(se_CreateLinkCommand).de(de_CreateLinkCommand).build() {
|
|
1066
|
-
static {
|
|
1067
|
-
__name(this, "CreateLinkCommand");
|
|
1068
|
-
}
|
|
568
|
+
const de_ListAttachedLinksCommand = async (output, context) => {
|
|
569
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
570
|
+
return de_CommandError(output, context);
|
|
571
|
+
}
|
|
572
|
+
const contents = smithyClient.map({
|
|
573
|
+
$metadata: deserializeMetadata(output),
|
|
574
|
+
});
|
|
575
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
576
|
+
const doc = smithyClient.take(data, {
|
|
577
|
+
Items: smithyClient._json,
|
|
578
|
+
NextToken: smithyClient.expectString,
|
|
579
|
+
});
|
|
580
|
+
Object.assign(contents, doc);
|
|
581
|
+
return contents;
|
|
1069
582
|
};
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
(
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
583
|
+
const de_ListLinksCommand = async (output, context) => {
|
|
584
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
585
|
+
return de_CommandError(output, context);
|
|
586
|
+
}
|
|
587
|
+
const contents = smithyClient.map({
|
|
588
|
+
$metadata: deserializeMetadata(output),
|
|
589
|
+
});
|
|
590
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
591
|
+
const doc = smithyClient.take(data, {
|
|
592
|
+
Items: smithyClient._json,
|
|
593
|
+
NextToken: smithyClient.expectString,
|
|
594
|
+
});
|
|
595
|
+
Object.assign(contents, doc);
|
|
596
|
+
return contents;
|
|
1084
597
|
};
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
(
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
598
|
+
const de_ListSinksCommand = async (output, context) => {
|
|
599
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
600
|
+
return de_CommandError(output, context);
|
|
601
|
+
}
|
|
602
|
+
const contents = smithyClient.map({
|
|
603
|
+
$metadata: deserializeMetadata(output),
|
|
604
|
+
});
|
|
605
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
606
|
+
const doc = smithyClient.take(data, {
|
|
607
|
+
Items: smithyClient._json,
|
|
608
|
+
NextToken: smithyClient.expectString,
|
|
609
|
+
});
|
|
610
|
+
Object.assign(contents, doc);
|
|
611
|
+
return contents;
|
|
1099
612
|
};
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
(
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
})
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
}
|
|
613
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
614
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
615
|
+
return de_CommandError(output, context);
|
|
616
|
+
}
|
|
617
|
+
const contents = smithyClient.map({
|
|
618
|
+
$metadata: deserializeMetadata(output),
|
|
619
|
+
});
|
|
620
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
621
|
+
const doc = smithyClient.take(data, {
|
|
622
|
+
Tags: smithyClient._json,
|
|
623
|
+
});
|
|
624
|
+
Object.assign(contents, doc);
|
|
625
|
+
return contents;
|
|
1114
626
|
};
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
(
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
627
|
+
const de_PutSinkPolicyCommand = async (output, context) => {
|
|
628
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
629
|
+
return de_CommandError(output, context);
|
|
630
|
+
}
|
|
631
|
+
const contents = smithyClient.map({
|
|
632
|
+
$metadata: deserializeMetadata(output),
|
|
633
|
+
});
|
|
634
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
635
|
+
const doc = smithyClient.take(data, {
|
|
636
|
+
Policy: smithyClient.expectString,
|
|
637
|
+
SinkArn: smithyClient.expectString,
|
|
638
|
+
SinkId: smithyClient.expectString,
|
|
639
|
+
});
|
|
640
|
+
Object.assign(contents, doc);
|
|
641
|
+
return contents;
|
|
1129
642
|
};
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
];
|
|
1140
|
-
}).s("oamservice", "GetSink", {}).n("OAMClient", "GetSinkCommand").f(void 0, void 0).ser(se_GetSinkCommand).de(de_GetSinkCommand).build() {
|
|
1141
|
-
static {
|
|
1142
|
-
__name(this, "GetSinkCommand");
|
|
1143
|
-
}
|
|
643
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
644
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
645
|
+
return de_CommandError(output, context);
|
|
646
|
+
}
|
|
647
|
+
const contents = smithyClient.map({
|
|
648
|
+
$metadata: deserializeMetadata(output),
|
|
649
|
+
});
|
|
650
|
+
await smithyClient.collectBody(output.body, context);
|
|
651
|
+
return contents;
|
|
1144
652
|
};
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
];
|
|
1155
|
-
}).s("oamservice", "GetSinkPolicy", {}).n("OAMClient", "GetSinkPolicyCommand").f(void 0, void 0).ser(se_GetSinkPolicyCommand).de(de_GetSinkPolicyCommand).build() {
|
|
1156
|
-
static {
|
|
1157
|
-
__name(this, "GetSinkPolicyCommand");
|
|
1158
|
-
}
|
|
653
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
654
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
655
|
+
return de_CommandError(output, context);
|
|
656
|
+
}
|
|
657
|
+
const contents = smithyClient.map({
|
|
658
|
+
$metadata: deserializeMetadata(output),
|
|
659
|
+
});
|
|
660
|
+
await smithyClient.collectBody(output.body, context);
|
|
661
|
+
return contents;
|
|
1159
662
|
};
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
(
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
663
|
+
const de_UpdateLinkCommand = async (output, context) => {
|
|
664
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
665
|
+
return de_CommandError(output, context);
|
|
666
|
+
}
|
|
667
|
+
const contents = smithyClient.map({
|
|
668
|
+
$metadata: deserializeMetadata(output),
|
|
669
|
+
});
|
|
670
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
671
|
+
const doc = smithyClient.take(data, {
|
|
672
|
+
Arn: smithyClient.expectString,
|
|
673
|
+
Id: smithyClient.expectString,
|
|
674
|
+
Label: smithyClient.expectString,
|
|
675
|
+
LabelTemplate: smithyClient.expectString,
|
|
676
|
+
LinkConfiguration: smithyClient._json,
|
|
677
|
+
ResourceTypes: smithyClient._json,
|
|
678
|
+
SinkArn: smithyClient.expectString,
|
|
679
|
+
Tags: smithyClient._json,
|
|
680
|
+
});
|
|
681
|
+
Object.assign(contents, doc);
|
|
682
|
+
return contents;
|
|
1174
683
|
};
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
684
|
+
const de_CommandError = async (output, context) => {
|
|
685
|
+
const parsedOutput = {
|
|
686
|
+
...output,
|
|
687
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
688
|
+
};
|
|
689
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
|
+
switch (errorCode) {
|
|
691
|
+
case "ConflictException":
|
|
692
|
+
case "com.amazonaws.oam#ConflictException":
|
|
693
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
694
|
+
case "InternalServiceFault":
|
|
695
|
+
case "com.amazonaws.oam#InternalServiceFault":
|
|
696
|
+
throw await de_InternalServiceFaultRes(parsedOutput);
|
|
697
|
+
case "InvalidParameterException":
|
|
698
|
+
case "com.amazonaws.oam#InvalidParameterException":
|
|
699
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput);
|
|
700
|
+
case "MissingRequiredParameterException":
|
|
701
|
+
case "com.amazonaws.oam#MissingRequiredParameterException":
|
|
702
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput);
|
|
703
|
+
case "ServiceQuotaExceededException":
|
|
704
|
+
case "com.amazonaws.oam#ServiceQuotaExceededException":
|
|
705
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
706
|
+
case "ResourceNotFoundException":
|
|
707
|
+
case "com.amazonaws.oam#ResourceNotFoundException":
|
|
708
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
709
|
+
case "ValidationException":
|
|
710
|
+
case "com.amazonaws.oam#ValidationException":
|
|
711
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
712
|
+
case "TooManyTagsException":
|
|
713
|
+
case "com.amazonaws.oam#TooManyTagsException":
|
|
714
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput);
|
|
715
|
+
default:
|
|
716
|
+
const parsedBody = parsedOutput.body;
|
|
717
|
+
return throwDefaultError({
|
|
718
|
+
output,
|
|
719
|
+
parsedBody,
|
|
720
|
+
errorCode,
|
|
721
|
+
});
|
|
722
|
+
}
|
|
1189
723
|
};
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
724
|
+
const throwDefaultError = smithyClient.withBaseException(OAMServiceException);
|
|
725
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
726
|
+
const contents = smithyClient.map({
|
|
727
|
+
[_aET]: [, parsedOutput.headers[_xae]],
|
|
728
|
+
});
|
|
729
|
+
const data = parsedOutput.body;
|
|
730
|
+
const doc = smithyClient.take(data, {
|
|
731
|
+
Message: smithyClient.expectString,
|
|
732
|
+
});
|
|
733
|
+
Object.assign(contents, doc);
|
|
734
|
+
const exception = new ConflictException({
|
|
735
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
736
|
+
...contents,
|
|
737
|
+
});
|
|
738
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1204
739
|
};
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
740
|
+
const de_InternalServiceFaultRes = async (parsedOutput, context) => {
|
|
741
|
+
const contents = smithyClient.map({
|
|
742
|
+
[_aET]: [, parsedOutput.headers[_xae]],
|
|
743
|
+
});
|
|
744
|
+
const data = parsedOutput.body;
|
|
745
|
+
const doc = smithyClient.take(data, {
|
|
746
|
+
Message: smithyClient.expectString,
|
|
747
|
+
});
|
|
748
|
+
Object.assign(contents, doc);
|
|
749
|
+
const exception = new InternalServiceFault({
|
|
750
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
751
|
+
...contents,
|
|
752
|
+
});
|
|
753
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1219
754
|
};
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
755
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
756
|
+
const contents = smithyClient.map({
|
|
757
|
+
[_aET]: [, parsedOutput.headers[_xae]],
|
|
758
|
+
});
|
|
759
|
+
const data = parsedOutput.body;
|
|
760
|
+
const doc = smithyClient.take(data, {
|
|
761
|
+
message: smithyClient.expectString,
|
|
762
|
+
});
|
|
763
|
+
Object.assign(contents, doc);
|
|
764
|
+
const exception = new InvalidParameterException({
|
|
765
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
766
|
+
...contents,
|
|
767
|
+
});
|
|
768
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1234
769
|
};
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
770
|
+
const de_MissingRequiredParameterExceptionRes = async (parsedOutput, context) => {
|
|
771
|
+
const contents = smithyClient.map({
|
|
772
|
+
[_aET]: [, parsedOutput.headers[_xae]],
|
|
773
|
+
});
|
|
774
|
+
const data = parsedOutput.body;
|
|
775
|
+
const doc = smithyClient.take(data, {
|
|
776
|
+
message: smithyClient.expectString,
|
|
777
|
+
});
|
|
778
|
+
Object.assign(contents, doc);
|
|
779
|
+
const exception = new MissingRequiredParameterException({
|
|
780
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
781
|
+
...contents,
|
|
782
|
+
});
|
|
783
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1249
784
|
};
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
785
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
786
|
+
const contents = smithyClient.map({
|
|
787
|
+
[_aET]: [, parsedOutput.headers[_xae]],
|
|
788
|
+
});
|
|
789
|
+
const data = parsedOutput.body;
|
|
790
|
+
const doc = smithyClient.take(data, {
|
|
791
|
+
Message: smithyClient.expectString,
|
|
792
|
+
});
|
|
793
|
+
Object.assign(contents, doc);
|
|
794
|
+
const exception = new ResourceNotFoundException({
|
|
795
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
796
|
+
...contents,
|
|
797
|
+
});
|
|
798
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1264
799
|
};
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
800
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
801
|
+
const contents = smithyClient.map({
|
|
802
|
+
[_aET]: [, parsedOutput.headers[_xae]],
|
|
803
|
+
});
|
|
804
|
+
const data = parsedOutput.body;
|
|
805
|
+
const doc = smithyClient.take(data, {
|
|
806
|
+
Message: smithyClient.expectString,
|
|
807
|
+
});
|
|
808
|
+
Object.assign(contents, doc);
|
|
809
|
+
const exception = new ServiceQuotaExceededException({
|
|
810
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
811
|
+
...contents,
|
|
812
|
+
});
|
|
813
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1279
814
|
};
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
ListSinksCommand,
|
|
1293
|
-
ListTagsForResourceCommand,
|
|
1294
|
-
PutSinkPolicyCommand,
|
|
1295
|
-
TagResourceCommand,
|
|
1296
|
-
UntagResourceCommand,
|
|
1297
|
-
UpdateLinkCommand
|
|
815
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
816
|
+
const contents = smithyClient.map({});
|
|
817
|
+
const data = parsedOutput.body;
|
|
818
|
+
const doc = smithyClient.take(data, {
|
|
819
|
+
Message: smithyClient.expectString,
|
|
820
|
+
});
|
|
821
|
+
Object.assign(contents, doc);
|
|
822
|
+
const exception = new TooManyTagsException({
|
|
823
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
824
|
+
...contents,
|
|
825
|
+
});
|
|
826
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1298
827
|
};
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
828
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
829
|
+
const contents = smithyClient.map({});
|
|
830
|
+
const data = parsedOutput.body;
|
|
831
|
+
const doc = smithyClient.take(data, {
|
|
832
|
+
Message: smithyClient.expectString,
|
|
833
|
+
});
|
|
834
|
+
Object.assign(contents, doc);
|
|
835
|
+
const exception = new ValidationException({
|
|
836
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
837
|
+
...contents,
|
|
838
|
+
});
|
|
839
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1303
840
|
};
|
|
1304
|
-
(
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
841
|
+
const deserializeMetadata = (output) => ({
|
|
842
|
+
httpStatusCode: output.statusCode,
|
|
843
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
844
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
845
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
846
|
+
});
|
|
847
|
+
const _TK = "TagKeys";
|
|
848
|
+
const _aET = "amznErrorType";
|
|
849
|
+
const _tK = "tagKeys";
|
|
850
|
+
const _xae = "x-amzn-errortype";
|
|
851
|
+
|
|
852
|
+
class CreateLinkCommand extends smithyClient.Command
|
|
853
|
+
.classBuilder()
|
|
854
|
+
.ep(commonParams)
|
|
855
|
+
.m(function (Command, cs, config, o) {
|
|
856
|
+
return [
|
|
857
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
858
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
859
|
+
];
|
|
860
|
+
})
|
|
861
|
+
.s("oamservice", "CreateLink", {})
|
|
862
|
+
.n("OAMClient", "CreateLinkCommand")
|
|
863
|
+
.f(void 0, void 0)
|
|
864
|
+
.ser(se_CreateLinkCommand)
|
|
865
|
+
.de(de_CreateLinkCommand)
|
|
866
|
+
.build() {
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
class CreateSinkCommand extends smithyClient.Command
|
|
870
|
+
.classBuilder()
|
|
871
|
+
.ep(commonParams)
|
|
872
|
+
.m(function (Command, cs, config, o) {
|
|
873
|
+
return [
|
|
874
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
875
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
876
|
+
];
|
|
877
|
+
})
|
|
878
|
+
.s("oamservice", "CreateSink", {})
|
|
879
|
+
.n("OAMClient", "CreateSinkCommand")
|
|
880
|
+
.f(void 0, void 0)
|
|
881
|
+
.ser(se_CreateSinkCommand)
|
|
882
|
+
.de(de_CreateSinkCommand)
|
|
883
|
+
.build() {
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
class DeleteLinkCommand extends smithyClient.Command
|
|
887
|
+
.classBuilder()
|
|
888
|
+
.ep(commonParams)
|
|
889
|
+
.m(function (Command, cs, config, o) {
|
|
890
|
+
return [
|
|
891
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
892
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
893
|
+
];
|
|
894
|
+
})
|
|
895
|
+
.s("oamservice", "DeleteLink", {})
|
|
896
|
+
.n("OAMClient", "DeleteLinkCommand")
|
|
897
|
+
.f(void 0, void 0)
|
|
898
|
+
.ser(se_DeleteLinkCommand)
|
|
899
|
+
.de(de_DeleteLinkCommand)
|
|
900
|
+
.build() {
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
class DeleteSinkCommand extends smithyClient.Command
|
|
904
|
+
.classBuilder()
|
|
905
|
+
.ep(commonParams)
|
|
906
|
+
.m(function (Command, cs, config, o) {
|
|
907
|
+
return [
|
|
908
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
909
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
910
|
+
];
|
|
911
|
+
})
|
|
912
|
+
.s("oamservice", "DeleteSink", {})
|
|
913
|
+
.n("OAMClient", "DeleteSinkCommand")
|
|
914
|
+
.f(void 0, void 0)
|
|
915
|
+
.ser(se_DeleteSinkCommand)
|
|
916
|
+
.de(de_DeleteSinkCommand)
|
|
917
|
+
.build() {
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
class GetLinkCommand extends smithyClient.Command
|
|
921
|
+
.classBuilder()
|
|
922
|
+
.ep(commonParams)
|
|
923
|
+
.m(function (Command, cs, config, o) {
|
|
924
|
+
return [
|
|
925
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
926
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
927
|
+
];
|
|
928
|
+
})
|
|
929
|
+
.s("oamservice", "GetLink", {})
|
|
930
|
+
.n("OAMClient", "GetLinkCommand")
|
|
931
|
+
.f(void 0, void 0)
|
|
932
|
+
.ser(se_GetLinkCommand)
|
|
933
|
+
.de(de_GetLinkCommand)
|
|
934
|
+
.build() {
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
class GetSinkCommand extends smithyClient.Command
|
|
938
|
+
.classBuilder()
|
|
939
|
+
.ep(commonParams)
|
|
940
|
+
.m(function (Command, cs, config, o) {
|
|
941
|
+
return [
|
|
942
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
943
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
944
|
+
];
|
|
945
|
+
})
|
|
946
|
+
.s("oamservice", "GetSink", {})
|
|
947
|
+
.n("OAMClient", "GetSinkCommand")
|
|
948
|
+
.f(void 0, void 0)
|
|
949
|
+
.ser(se_GetSinkCommand)
|
|
950
|
+
.de(de_GetSinkCommand)
|
|
951
|
+
.build() {
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
class GetSinkPolicyCommand extends smithyClient.Command
|
|
955
|
+
.classBuilder()
|
|
956
|
+
.ep(commonParams)
|
|
957
|
+
.m(function (Command, cs, config, o) {
|
|
958
|
+
return [
|
|
959
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
960
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
961
|
+
];
|
|
962
|
+
})
|
|
963
|
+
.s("oamservice", "GetSinkPolicy", {})
|
|
964
|
+
.n("OAMClient", "GetSinkPolicyCommand")
|
|
965
|
+
.f(void 0, void 0)
|
|
966
|
+
.ser(se_GetSinkPolicyCommand)
|
|
967
|
+
.de(de_GetSinkPolicyCommand)
|
|
968
|
+
.build() {
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
class ListAttachedLinksCommand extends smithyClient.Command
|
|
972
|
+
.classBuilder()
|
|
973
|
+
.ep(commonParams)
|
|
974
|
+
.m(function (Command, cs, config, o) {
|
|
975
|
+
return [
|
|
976
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
977
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
978
|
+
];
|
|
979
|
+
})
|
|
980
|
+
.s("oamservice", "ListAttachedLinks", {})
|
|
981
|
+
.n("OAMClient", "ListAttachedLinksCommand")
|
|
982
|
+
.f(void 0, void 0)
|
|
983
|
+
.ser(se_ListAttachedLinksCommand)
|
|
984
|
+
.de(de_ListAttachedLinksCommand)
|
|
985
|
+
.build() {
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
class ListLinksCommand extends smithyClient.Command
|
|
989
|
+
.classBuilder()
|
|
990
|
+
.ep(commonParams)
|
|
991
|
+
.m(function (Command, cs, config, o) {
|
|
992
|
+
return [
|
|
993
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
994
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
995
|
+
];
|
|
996
|
+
})
|
|
997
|
+
.s("oamservice", "ListLinks", {})
|
|
998
|
+
.n("OAMClient", "ListLinksCommand")
|
|
999
|
+
.f(void 0, void 0)
|
|
1000
|
+
.ser(se_ListLinksCommand)
|
|
1001
|
+
.de(de_ListLinksCommand)
|
|
1002
|
+
.build() {
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
class ListSinksCommand extends smithyClient.Command
|
|
1006
|
+
.classBuilder()
|
|
1007
|
+
.ep(commonParams)
|
|
1008
|
+
.m(function (Command, cs, config, o) {
|
|
1009
|
+
return [
|
|
1010
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1011
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1012
|
+
];
|
|
1013
|
+
})
|
|
1014
|
+
.s("oamservice", "ListSinks", {})
|
|
1015
|
+
.n("OAMClient", "ListSinksCommand")
|
|
1016
|
+
.f(void 0, void 0)
|
|
1017
|
+
.ser(se_ListSinksCommand)
|
|
1018
|
+
.de(de_ListSinksCommand)
|
|
1019
|
+
.build() {
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1023
|
+
.classBuilder()
|
|
1024
|
+
.ep(commonParams)
|
|
1025
|
+
.m(function (Command, cs, config, o) {
|
|
1026
|
+
return [
|
|
1027
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1028
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1029
|
+
];
|
|
1030
|
+
})
|
|
1031
|
+
.s("oamservice", "ListTagsForResource", {})
|
|
1032
|
+
.n("OAMClient", "ListTagsForResourceCommand")
|
|
1033
|
+
.f(void 0, void 0)
|
|
1034
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1035
|
+
.de(de_ListTagsForResourceCommand)
|
|
1036
|
+
.build() {
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
class PutSinkPolicyCommand extends smithyClient.Command
|
|
1040
|
+
.classBuilder()
|
|
1041
|
+
.ep(commonParams)
|
|
1042
|
+
.m(function (Command, cs, config, o) {
|
|
1043
|
+
return [
|
|
1044
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1045
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1046
|
+
];
|
|
1047
|
+
})
|
|
1048
|
+
.s("oamservice", "PutSinkPolicy", {})
|
|
1049
|
+
.n("OAMClient", "PutSinkPolicyCommand")
|
|
1050
|
+
.f(void 0, void 0)
|
|
1051
|
+
.ser(se_PutSinkPolicyCommand)
|
|
1052
|
+
.de(de_PutSinkPolicyCommand)
|
|
1053
|
+
.build() {
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1057
|
+
.classBuilder()
|
|
1058
|
+
.ep(commonParams)
|
|
1059
|
+
.m(function (Command, cs, config, o) {
|
|
1060
|
+
return [
|
|
1061
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1062
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1063
|
+
];
|
|
1064
|
+
})
|
|
1065
|
+
.s("oamservice", "TagResource", {})
|
|
1066
|
+
.n("OAMClient", "TagResourceCommand")
|
|
1067
|
+
.f(void 0, void 0)
|
|
1068
|
+
.ser(se_TagResourceCommand)
|
|
1069
|
+
.de(de_TagResourceCommand)
|
|
1070
|
+
.build() {
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1074
|
+
.classBuilder()
|
|
1075
|
+
.ep(commonParams)
|
|
1076
|
+
.m(function (Command, cs, config, o) {
|
|
1077
|
+
return [
|
|
1078
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1079
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1080
|
+
];
|
|
1081
|
+
})
|
|
1082
|
+
.s("oamservice", "UntagResource", {})
|
|
1083
|
+
.n("OAMClient", "UntagResourceCommand")
|
|
1084
|
+
.f(void 0, void 0)
|
|
1085
|
+
.ser(se_UntagResourceCommand)
|
|
1086
|
+
.de(de_UntagResourceCommand)
|
|
1087
|
+
.build() {
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
class UpdateLinkCommand extends smithyClient.Command
|
|
1091
|
+
.classBuilder()
|
|
1092
|
+
.ep(commonParams)
|
|
1093
|
+
.m(function (Command, cs, config, o) {
|
|
1094
|
+
return [
|
|
1095
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1096
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1097
|
+
];
|
|
1098
|
+
})
|
|
1099
|
+
.s("oamservice", "UpdateLink", {})
|
|
1100
|
+
.n("OAMClient", "UpdateLinkCommand")
|
|
1101
|
+
.f(void 0, void 0)
|
|
1102
|
+
.ser(se_UpdateLinkCommand)
|
|
1103
|
+
.de(de_UpdateLinkCommand)
|
|
1104
|
+
.build() {
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
const commands = {
|
|
1108
|
+
CreateLinkCommand,
|
|
1109
|
+
CreateSinkCommand,
|
|
1110
|
+
DeleteLinkCommand,
|
|
1111
|
+
DeleteSinkCommand,
|
|
1112
|
+
GetLinkCommand,
|
|
1113
|
+
GetSinkCommand,
|
|
1114
|
+
GetSinkPolicyCommand,
|
|
1115
|
+
ListAttachedLinksCommand,
|
|
1116
|
+
ListLinksCommand,
|
|
1117
|
+
ListSinksCommand,
|
|
1118
|
+
ListTagsForResourceCommand,
|
|
1119
|
+
PutSinkPolicyCommand,
|
|
1120
|
+
TagResourceCommand,
|
|
1121
|
+
UntagResourceCommand,
|
|
1122
|
+
UpdateLinkCommand,
|
|
1123
|
+
};
|
|
1124
|
+
class OAM extends OAMClient {
|
|
1125
|
+
}
|
|
1126
|
+
smithyClient.createAggregatedClient(commands, OAM);
|
|
1311
1127
|
|
|
1312
|
-
|
|
1128
|
+
const paginateListAttachedLinks = core.createPaginator(OAMClient, ListAttachedLinksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1313
1129
|
|
|
1314
|
-
|
|
1130
|
+
const paginateListLinks = core.createPaginator(OAMClient, ListLinksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1315
1131
|
|
|
1316
|
-
|
|
1317
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1132
|
+
const paginateListSinks = core.createPaginator(OAMClient, ListSinksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1318
1133
|
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
OAMClient,
|
|
1323
|
-
OAM,
|
|
1324
|
-
$Command,
|
|
1325
|
-
CreateLinkCommand,
|
|
1326
|
-
CreateSinkCommand,
|
|
1327
|
-
DeleteLinkCommand,
|
|
1328
|
-
DeleteSinkCommand,
|
|
1329
|
-
GetLinkCommand,
|
|
1330
|
-
GetSinkCommand,
|
|
1331
|
-
GetSinkPolicyCommand,
|
|
1332
|
-
ListAttachedLinksCommand,
|
|
1333
|
-
ListLinksCommand,
|
|
1334
|
-
ListSinksCommand,
|
|
1335
|
-
ListTagsForResourceCommand,
|
|
1336
|
-
PutSinkPolicyCommand,
|
|
1337
|
-
TagResourceCommand,
|
|
1338
|
-
UntagResourceCommand,
|
|
1339
|
-
UpdateLinkCommand,
|
|
1340
|
-
paginateListAttachedLinks,
|
|
1341
|
-
paginateListLinks,
|
|
1342
|
-
paginateListSinks,
|
|
1343
|
-
ConflictException,
|
|
1344
|
-
ResourceType,
|
|
1345
|
-
InternalServiceFault,
|
|
1346
|
-
InvalidParameterException,
|
|
1347
|
-
MissingRequiredParameterException,
|
|
1348
|
-
ServiceQuotaExceededException,
|
|
1349
|
-
ResourceNotFoundException,
|
|
1350
|
-
ValidationException,
|
|
1351
|
-
TooManyTagsException
|
|
1134
|
+
Object.defineProperty(exports, "$Command", {
|
|
1135
|
+
enumerable: true,
|
|
1136
|
+
get: function () { return smithyClient.Command; }
|
|
1352
1137
|
});
|
|
1353
|
-
|
|
1138
|
+
Object.defineProperty(exports, "__Client", {
|
|
1139
|
+
enumerable: true,
|
|
1140
|
+
get: function () { return smithyClient.Client; }
|
|
1141
|
+
});
|
|
1142
|
+
exports.ConflictException = ConflictException;
|
|
1143
|
+
exports.CreateLinkCommand = CreateLinkCommand;
|
|
1144
|
+
exports.CreateSinkCommand = CreateSinkCommand;
|
|
1145
|
+
exports.DeleteLinkCommand = DeleteLinkCommand;
|
|
1146
|
+
exports.DeleteSinkCommand = DeleteSinkCommand;
|
|
1147
|
+
exports.GetLinkCommand = GetLinkCommand;
|
|
1148
|
+
exports.GetSinkCommand = GetSinkCommand;
|
|
1149
|
+
exports.GetSinkPolicyCommand = GetSinkPolicyCommand;
|
|
1150
|
+
exports.InternalServiceFault = InternalServiceFault;
|
|
1151
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
1152
|
+
exports.ListAttachedLinksCommand = ListAttachedLinksCommand;
|
|
1153
|
+
exports.ListLinksCommand = ListLinksCommand;
|
|
1154
|
+
exports.ListSinksCommand = ListSinksCommand;
|
|
1155
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1156
|
+
exports.MissingRequiredParameterException = MissingRequiredParameterException;
|
|
1157
|
+
exports.OAM = OAM;
|
|
1158
|
+
exports.OAMClient = OAMClient;
|
|
1159
|
+
exports.OAMServiceException = OAMServiceException;
|
|
1160
|
+
exports.PutSinkPolicyCommand = PutSinkPolicyCommand;
|
|
1161
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1162
|
+
exports.ResourceType = ResourceType;
|
|
1163
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1164
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1165
|
+
exports.TooManyTagsException = TooManyTagsException;
|
|
1166
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1167
|
+
exports.UpdateLinkCommand = UpdateLinkCommand;
|
|
1168
|
+
exports.ValidationException = ValidationException;
|
|
1169
|
+
exports.paginateListAttachedLinks = paginateListAttachedLinks;
|
|
1170
|
+
exports.paginateListLinks = paginateListLinks;
|
|
1171
|
+
exports.paginateListSinks = paginateListSinks;
|