@aws-sdk/client-rbin 3.901.0 → 3.907.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 +844 -988
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1016 +1,872 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
LockRuleCommand: () => LockRuleCommand,
|
|
33
|
-
LockState: () => LockState,
|
|
34
|
-
Rbin: () => Rbin,
|
|
35
|
-
RbinClient: () => RbinClient,
|
|
36
|
-
RbinServiceException: () => RbinServiceException,
|
|
37
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
38
|
-
ResourceNotFoundExceptionReason: () => ResourceNotFoundExceptionReason,
|
|
39
|
-
ResourceType: () => ResourceType,
|
|
40
|
-
RetentionPeriodUnit: () => RetentionPeriodUnit,
|
|
41
|
-
RuleStatus: () => RuleStatus,
|
|
42
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
43
|
-
ServiceQuotaExceededExceptionReason: () => ServiceQuotaExceededExceptionReason,
|
|
44
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
45
|
-
UnlockDelayUnit: () => UnlockDelayUnit,
|
|
46
|
-
UnlockRuleCommand: () => UnlockRuleCommand,
|
|
47
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
48
|
-
UpdateRuleCommand: () => UpdateRuleCommand,
|
|
49
|
-
ValidationException: () => ValidationException,
|
|
50
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
51
|
-
__Client: () => import_smithy_client.Client,
|
|
52
|
-
paginateListRules: () => paginateListRules
|
|
53
|
-
});
|
|
54
|
-
module.exports = __toCommonJS(index_exports);
|
|
55
|
-
|
|
56
|
-
// src/RbinClient.ts
|
|
57
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
58
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
59
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
60
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
61
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
62
|
-
var import_core = require("@smithy/core");
|
|
63
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
64
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
65
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
66
|
-
|
|
67
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
68
|
-
|
|
69
|
-
// src/endpoint/EndpointParameters.ts
|
|
70
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
71
|
-
return Object.assign(options, {
|
|
72
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
73
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
74
|
-
defaultSigningName: "rbin"
|
|
75
|
-
});
|
|
76
|
-
}, "resolveClientEndpointParameters");
|
|
77
|
-
var commonParams = {
|
|
78
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
79
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
80
|
-
Region: { type: "builtInParams", name: "region" },
|
|
81
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
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: "rbin",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
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" },
|
|
82
32
|
};
|
|
83
33
|
|
|
84
|
-
|
|
85
|
-
|
|
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
|
+
};
|
|
71
|
+
};
|
|
86
72
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
+
};
|
|
91
78
|
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
79
|
+
class RbinClient 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.defaultRbinHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
120
107
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
126
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
127
|
-
credentials: config.credentials()
|
|
128
|
-
};
|
|
129
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
130
112
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
138
|
-
);
|
|
139
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
140
|
-
return Object.assign(
|
|
141
|
-
runtimeConfig,
|
|
142
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
143
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
144
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
145
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
146
|
-
);
|
|
147
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class RbinServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, RbinServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
148
119
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
static {
|
|
152
|
-
__name(this, "RbinClient");
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* The resolved configuration of RbinClient class. This is resolved and normalized from the {@link RbinClientConfig | constructor configuration interface}.
|
|
156
|
-
*/
|
|
157
|
-
config;
|
|
158
|
-
constructor(...[configuration]) {
|
|
159
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
160
|
-
super(_config_0);
|
|
161
|
-
this.initConfig = _config_0;
|
|
162
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
163
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
164
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
165
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
166
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
167
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
168
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
169
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
170
|
-
this.config = _config_8;
|
|
171
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
172
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
173
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
174
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
175
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
176
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
177
|
-
this.middlewareStack.use(
|
|
178
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
179
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultRbinHttpAuthSchemeParametersProvider,
|
|
180
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
181
|
-
"aws.auth#sigv4": config.credentials
|
|
182
|
-
}), "identityProviderConfigProvider")
|
|
183
|
-
})
|
|
184
|
-
);
|
|
185
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
189
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
190
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
191
|
-
*/
|
|
192
|
-
destroy() {
|
|
193
|
-
super.destroy();
|
|
194
|
-
}
|
|
120
|
+
const UnlockDelayUnit = {
|
|
121
|
+
DAYS: "DAYS",
|
|
195
122
|
};
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
// src/commands/CreateRuleCommand.ts
|
|
201
|
-
|
|
202
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
// src/protocols/Aws_restJson1.ts
|
|
206
|
-
var import_core2 = require("@aws-sdk/core");
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
// src/models/RbinServiceException.ts
|
|
211
|
-
|
|
212
|
-
var RbinServiceException = class _RbinServiceException extends import_smithy_client.ServiceException {
|
|
213
|
-
static {
|
|
214
|
-
__name(this, "RbinServiceException");
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* @internal
|
|
218
|
-
*/
|
|
219
|
-
constructor(options) {
|
|
220
|
-
super(options);
|
|
221
|
-
Object.setPrototypeOf(this, _RbinServiceException.prototype);
|
|
222
|
-
}
|
|
123
|
+
const ResourceType = {
|
|
124
|
+
EBS_SNAPSHOT: "EBS_SNAPSHOT",
|
|
125
|
+
EC2_IMAGE: "EC2_IMAGE",
|
|
223
126
|
};
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
127
|
+
const RetentionPeriodUnit = {
|
|
128
|
+
DAYS: "DAYS",
|
|
129
|
+
};
|
|
130
|
+
const LockState = {
|
|
131
|
+
LOCKED: "locked",
|
|
132
|
+
PENDING_UNLOCK: "pending_unlock",
|
|
133
|
+
UNLOCKED: "unlocked",
|
|
134
|
+
};
|
|
135
|
+
const RuleStatus = {
|
|
136
|
+
AVAILABLE: "available",
|
|
137
|
+
PENDING: "pending",
|
|
138
|
+
};
|
|
139
|
+
class InternalServerException extends RbinServiceException {
|
|
140
|
+
name = "InternalServerException";
|
|
141
|
+
$fault = "server";
|
|
142
|
+
Message;
|
|
143
|
+
constructor(opts) {
|
|
144
|
+
super({
|
|
145
|
+
name: "InternalServerException",
|
|
146
|
+
$fault: "server",
|
|
147
|
+
...opts,
|
|
148
|
+
});
|
|
149
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
150
|
+
this.Message = opts.Message;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
const ServiceQuotaExceededExceptionReason = {
|
|
154
|
+
SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
|
|
155
|
+
};
|
|
156
|
+
class ServiceQuotaExceededException extends RbinServiceException {
|
|
157
|
+
name = "ServiceQuotaExceededException";
|
|
158
|
+
$fault = "client";
|
|
159
|
+
Message;
|
|
160
|
+
Reason;
|
|
161
|
+
constructor(opts) {
|
|
162
|
+
super({
|
|
163
|
+
name: "ServiceQuotaExceededException",
|
|
164
|
+
$fault: "client",
|
|
165
|
+
...opts,
|
|
166
|
+
});
|
|
167
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
168
|
+
this.Message = opts.Message;
|
|
169
|
+
this.Reason = opts.Reason;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
const ValidationExceptionReason = {
|
|
173
|
+
INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN",
|
|
174
|
+
INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE",
|
|
175
|
+
};
|
|
176
|
+
class ValidationException extends RbinServiceException {
|
|
177
|
+
name = "ValidationException";
|
|
178
|
+
$fault = "client";
|
|
179
|
+
Message;
|
|
180
|
+
Reason;
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "ValidationException",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts,
|
|
186
|
+
});
|
|
187
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
188
|
+
this.Message = opts.Message;
|
|
189
|
+
this.Reason = opts.Reason;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
const ConflictExceptionReason = {
|
|
193
|
+
INVALID_RULE_STATE: "INVALID_RULE_STATE",
|
|
194
|
+
};
|
|
195
|
+
class ConflictException extends RbinServiceException {
|
|
196
|
+
name = "ConflictException";
|
|
197
|
+
$fault = "client";
|
|
198
|
+
Message;
|
|
199
|
+
Reason;
|
|
200
|
+
constructor(opts) {
|
|
201
|
+
super({
|
|
202
|
+
name: "ConflictException",
|
|
203
|
+
$fault: "client",
|
|
204
|
+
...opts,
|
|
205
|
+
});
|
|
206
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
207
|
+
this.Message = opts.Message;
|
|
208
|
+
this.Reason = opts.Reason;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
const ResourceNotFoundExceptionReason = {
|
|
212
|
+
RULE_NOT_FOUND: "RULE_NOT_FOUND",
|
|
213
|
+
};
|
|
214
|
+
class ResourceNotFoundException extends RbinServiceException {
|
|
215
|
+
name = "ResourceNotFoundException";
|
|
216
|
+
$fault = "client";
|
|
217
|
+
Message;
|
|
218
|
+
Reason;
|
|
219
|
+
constructor(opts) {
|
|
220
|
+
super({
|
|
221
|
+
name: "ResourceNotFoundException",
|
|
222
|
+
$fault: "client",
|
|
223
|
+
...opts,
|
|
224
|
+
});
|
|
225
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
226
|
+
this.Message = opts.Message;
|
|
227
|
+
this.Reason = opts.Reason;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const se_CreateRuleCommand = async (input, context) => {
|
|
232
|
+
const b = core.requestBuilder(input, context);
|
|
233
|
+
const headers = {
|
|
234
|
+
"content-type": "application/json",
|
|
235
|
+
};
|
|
236
|
+
b.bp("/rules");
|
|
237
|
+
let body;
|
|
238
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
239
|
+
Description: [],
|
|
240
|
+
ExcludeResourceTags: (_) => smithyClient._json(_),
|
|
241
|
+
LockConfiguration: (_) => smithyClient._json(_),
|
|
242
|
+
ResourceTags: (_) => smithyClient._json(_),
|
|
243
|
+
ResourceType: [],
|
|
244
|
+
RetentionPeriod: (_) => smithyClient._json(_),
|
|
245
|
+
Tags: (_) => smithyClient._json(_),
|
|
246
|
+
}));
|
|
247
|
+
b.m("POST").h(headers).b(body);
|
|
248
|
+
return b.build();
|
|
249
|
+
};
|
|
250
|
+
const se_DeleteRuleCommand = async (input, context) => {
|
|
251
|
+
const b = core.requestBuilder(input, context);
|
|
252
|
+
const headers = {};
|
|
253
|
+
b.bp("/rules/{Identifier}");
|
|
254
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
255
|
+
let body;
|
|
256
|
+
b.m("DELETE").h(headers).b(body);
|
|
257
|
+
return b.build();
|
|
258
|
+
};
|
|
259
|
+
const se_GetRuleCommand = async (input, context) => {
|
|
260
|
+
const b = core.requestBuilder(input, context);
|
|
261
|
+
const headers = {};
|
|
262
|
+
b.bp("/rules/{Identifier}");
|
|
263
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
264
|
+
let body;
|
|
265
|
+
b.m("GET").h(headers).b(body);
|
|
266
|
+
return b.build();
|
|
267
|
+
};
|
|
268
|
+
const se_ListRulesCommand = async (input, context) => {
|
|
269
|
+
const b = core.requestBuilder(input, context);
|
|
270
|
+
const headers = {
|
|
271
|
+
"content-type": "application/json",
|
|
272
|
+
};
|
|
273
|
+
b.bp("/list-rules");
|
|
274
|
+
let body;
|
|
275
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
276
|
+
ExcludeResourceTags: (_) => smithyClient._json(_),
|
|
277
|
+
LockState: [],
|
|
278
|
+
MaxResults: [],
|
|
279
|
+
NextToken: [],
|
|
280
|
+
ResourceTags: (_) => smithyClient._json(_),
|
|
281
|
+
ResourceType: [],
|
|
282
|
+
}));
|
|
283
|
+
b.m("POST").h(headers).b(body);
|
|
284
|
+
return b.build();
|
|
285
|
+
};
|
|
286
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
287
|
+
const b = core.requestBuilder(input, context);
|
|
288
|
+
const headers = {};
|
|
289
|
+
b.bp("/tags/{ResourceArn}");
|
|
290
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
291
|
+
let body;
|
|
292
|
+
b.m("GET").h(headers).b(body);
|
|
293
|
+
return b.build();
|
|
294
|
+
};
|
|
295
|
+
const se_LockRuleCommand = async (input, context) => {
|
|
296
|
+
const b = core.requestBuilder(input, context);
|
|
297
|
+
const headers = {
|
|
298
|
+
"content-type": "application/json",
|
|
299
|
+
};
|
|
300
|
+
b.bp("/rules/{Identifier}/lock");
|
|
301
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
302
|
+
let body;
|
|
303
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
304
|
+
LockConfiguration: (_) => smithyClient._json(_),
|
|
305
|
+
}));
|
|
306
|
+
b.m("PATCH").h(headers).b(body);
|
|
307
|
+
return b.build();
|
|
308
|
+
};
|
|
309
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
310
|
+
const b = core.requestBuilder(input, context);
|
|
311
|
+
const headers = {
|
|
312
|
+
"content-type": "application/json",
|
|
313
|
+
};
|
|
314
|
+
b.bp("/tags/{ResourceArn}");
|
|
315
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
316
|
+
let body;
|
|
317
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
318
|
+
Tags: (_) => smithyClient._json(_),
|
|
319
|
+
}));
|
|
320
|
+
b.m("POST").h(headers).b(body);
|
|
321
|
+
return b.build();
|
|
322
|
+
};
|
|
323
|
+
const se_UnlockRuleCommand = async (input, context) => {
|
|
324
|
+
const b = core.requestBuilder(input, context);
|
|
325
|
+
const headers = {};
|
|
326
|
+
b.bp("/rules/{Identifier}/unlock");
|
|
327
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
328
|
+
let body;
|
|
329
|
+
b.m("PATCH").h(headers).b(body);
|
|
330
|
+
return b.build();
|
|
331
|
+
};
|
|
332
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
333
|
+
const b = core.requestBuilder(input, context);
|
|
334
|
+
const headers = {};
|
|
335
|
+
b.bp("/tags/{ResourceArn}");
|
|
336
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
337
|
+
const query = smithyClient.map({
|
|
338
|
+
[_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
339
|
+
});
|
|
340
|
+
let body;
|
|
341
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
342
|
+
return b.build();
|
|
343
|
+
};
|
|
344
|
+
const se_UpdateRuleCommand = async (input, context) => {
|
|
345
|
+
const b = core.requestBuilder(input, context);
|
|
346
|
+
const headers = {
|
|
347
|
+
"content-type": "application/json",
|
|
348
|
+
};
|
|
349
|
+
b.bp("/rules/{Identifier}");
|
|
350
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
351
|
+
let body;
|
|
352
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
353
|
+
Description: [],
|
|
354
|
+
ExcludeResourceTags: (_) => smithyClient._json(_),
|
|
355
|
+
ResourceTags: (_) => smithyClient._json(_),
|
|
356
|
+
ResourceType: [],
|
|
357
|
+
RetentionPeriod: (_) => smithyClient._json(_),
|
|
358
|
+
}));
|
|
359
|
+
b.m("PATCH").h(headers).b(body);
|
|
360
|
+
return b.build();
|
|
361
|
+
};
|
|
362
|
+
const de_CreateRuleCommand = async (output, context) => {
|
|
363
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
364
|
+
return de_CommandError(output, context);
|
|
365
|
+
}
|
|
366
|
+
const contents = smithyClient.map({
|
|
367
|
+
$metadata: deserializeMetadata(output),
|
|
260
368
|
});
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
Message;
|
|
275
|
-
/**
|
|
276
|
-
* <p>The reason for the exception.</p>
|
|
277
|
-
* @public
|
|
278
|
-
*/
|
|
279
|
-
Reason;
|
|
280
|
-
/**
|
|
281
|
-
* @internal
|
|
282
|
-
*/
|
|
283
|
-
constructor(opts) {
|
|
284
|
-
super({
|
|
285
|
-
name: "ServiceQuotaExceededException",
|
|
286
|
-
$fault: "client",
|
|
287
|
-
...opts
|
|
369
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
370
|
+
const doc = smithyClient.take(data, {
|
|
371
|
+
Description: smithyClient.expectString,
|
|
372
|
+
ExcludeResourceTags: smithyClient._json,
|
|
373
|
+
Identifier: smithyClient.expectString,
|
|
374
|
+
LockConfiguration: smithyClient._json,
|
|
375
|
+
LockState: smithyClient.expectString,
|
|
376
|
+
ResourceTags: smithyClient._json,
|
|
377
|
+
ResourceType: smithyClient.expectString,
|
|
378
|
+
RetentionPeriod: smithyClient._json,
|
|
379
|
+
RuleArn: smithyClient.expectString,
|
|
380
|
+
Status: smithyClient.expectString,
|
|
381
|
+
Tags: smithyClient._json,
|
|
288
382
|
});
|
|
289
|
-
Object.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
var ValidationException = class _ValidationException extends RbinServiceException {
|
|
299
|
-
static {
|
|
300
|
-
__name(this, "ValidationException");
|
|
301
|
-
}
|
|
302
|
-
name = "ValidationException";
|
|
303
|
-
$fault = "client";
|
|
304
|
-
Message;
|
|
305
|
-
/**
|
|
306
|
-
* <p>The reason for the exception.</p>
|
|
307
|
-
* @public
|
|
308
|
-
*/
|
|
309
|
-
Reason;
|
|
310
|
-
/**
|
|
311
|
-
* @internal
|
|
312
|
-
*/
|
|
313
|
-
constructor(opts) {
|
|
314
|
-
super({
|
|
315
|
-
name: "ValidationException",
|
|
316
|
-
$fault: "client",
|
|
317
|
-
...opts
|
|
383
|
+
Object.assign(contents, doc);
|
|
384
|
+
return contents;
|
|
385
|
+
};
|
|
386
|
+
const de_DeleteRuleCommand = async (output, context) => {
|
|
387
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
388
|
+
return de_CommandError(output, context);
|
|
389
|
+
}
|
|
390
|
+
const contents = smithyClient.map({
|
|
391
|
+
$metadata: deserializeMetadata(output),
|
|
318
392
|
});
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
static {
|
|
329
|
-
__name(this, "ConflictException");
|
|
330
|
-
}
|
|
331
|
-
name = "ConflictException";
|
|
332
|
-
$fault = "client";
|
|
333
|
-
Message;
|
|
334
|
-
/**
|
|
335
|
-
* <p>The reason for the exception.</p>
|
|
336
|
-
* @public
|
|
337
|
-
*/
|
|
338
|
-
Reason;
|
|
339
|
-
/**
|
|
340
|
-
* @internal
|
|
341
|
-
*/
|
|
342
|
-
constructor(opts) {
|
|
343
|
-
super({
|
|
344
|
-
name: "ConflictException",
|
|
345
|
-
$fault: "client",
|
|
346
|
-
...opts
|
|
393
|
+
await smithyClient.collectBody(output.body, context);
|
|
394
|
+
return contents;
|
|
395
|
+
};
|
|
396
|
+
const de_GetRuleCommand = async (output, context) => {
|
|
397
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
398
|
+
return de_CommandError(output, context);
|
|
399
|
+
}
|
|
400
|
+
const contents = smithyClient.map({
|
|
401
|
+
$metadata: deserializeMetadata(output),
|
|
347
402
|
});
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
$fault = "client";
|
|
362
|
-
Message;
|
|
363
|
-
/**
|
|
364
|
-
* <p>The reason for the exception.</p>
|
|
365
|
-
* @public
|
|
366
|
-
*/
|
|
367
|
-
Reason;
|
|
368
|
-
/**
|
|
369
|
-
* @internal
|
|
370
|
-
*/
|
|
371
|
-
constructor(opts) {
|
|
372
|
-
super({
|
|
373
|
-
name: "ResourceNotFoundException",
|
|
374
|
-
$fault: "client",
|
|
375
|
-
...opts
|
|
403
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
404
|
+
const doc = smithyClient.take(data, {
|
|
405
|
+
Description: smithyClient.expectString,
|
|
406
|
+
ExcludeResourceTags: smithyClient._json,
|
|
407
|
+
Identifier: smithyClient.expectString,
|
|
408
|
+
LockConfiguration: smithyClient._json,
|
|
409
|
+
LockEndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
410
|
+
LockState: smithyClient.expectString,
|
|
411
|
+
ResourceTags: smithyClient._json,
|
|
412
|
+
ResourceType: smithyClient.expectString,
|
|
413
|
+
RetentionPeriod: smithyClient._json,
|
|
414
|
+
RuleArn: smithyClient.expectString,
|
|
415
|
+
Status: smithyClient.expectString,
|
|
376
416
|
});
|
|
377
|
-
Object.
|
|
378
|
-
|
|
379
|
-
this.Reason = opts.Reason;
|
|
380
|
-
}
|
|
417
|
+
Object.assign(contents, doc);
|
|
418
|
+
return contents;
|
|
381
419
|
};
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
ResourceTags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ResourceTags"),
|
|
397
|
-
ResourceType: [],
|
|
398
|
-
RetentionPeriod: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "RetentionPeriod"),
|
|
399
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
400
|
-
})
|
|
401
|
-
);
|
|
402
|
-
b.m("POST").h(headers).b(body);
|
|
403
|
-
return b.build();
|
|
404
|
-
}, "se_CreateRuleCommand");
|
|
405
|
-
var se_DeleteRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
406
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
407
|
-
const headers = {};
|
|
408
|
-
b.bp("/rules/{Identifier}");
|
|
409
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
410
|
-
let body;
|
|
411
|
-
b.m("DELETE").h(headers).b(body);
|
|
412
|
-
return b.build();
|
|
413
|
-
}, "se_DeleteRuleCommand");
|
|
414
|
-
var se_GetRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
415
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
416
|
-
const headers = {};
|
|
417
|
-
b.bp("/rules/{Identifier}");
|
|
418
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
419
|
-
let body;
|
|
420
|
-
b.m("GET").h(headers).b(body);
|
|
421
|
-
return b.build();
|
|
422
|
-
}, "se_GetRuleCommand");
|
|
423
|
-
var se_ListRulesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
424
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
425
|
-
const headers = {
|
|
426
|
-
"content-type": "application/json"
|
|
427
|
-
};
|
|
428
|
-
b.bp("/list-rules");
|
|
429
|
-
let body;
|
|
430
|
-
body = JSON.stringify(
|
|
431
|
-
(0, import_smithy_client.take)(input, {
|
|
432
|
-
ExcludeResourceTags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ExcludeResourceTags"),
|
|
433
|
-
LockState: [],
|
|
434
|
-
MaxResults: [],
|
|
435
|
-
NextToken: [],
|
|
436
|
-
ResourceTags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ResourceTags"),
|
|
437
|
-
ResourceType: []
|
|
438
|
-
})
|
|
439
|
-
);
|
|
440
|
-
b.m("POST").h(headers).b(body);
|
|
441
|
-
return b.build();
|
|
442
|
-
}, "se_ListRulesCommand");
|
|
443
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
444
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
445
|
-
const headers = {};
|
|
446
|
-
b.bp("/tags/{ResourceArn}");
|
|
447
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
448
|
-
let body;
|
|
449
|
-
b.m("GET").h(headers).b(body);
|
|
450
|
-
return b.build();
|
|
451
|
-
}, "se_ListTagsForResourceCommand");
|
|
452
|
-
var se_LockRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
453
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
454
|
-
const headers = {
|
|
455
|
-
"content-type": "application/json"
|
|
456
|
-
};
|
|
457
|
-
b.bp("/rules/{Identifier}/lock");
|
|
458
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
459
|
-
let body;
|
|
460
|
-
body = JSON.stringify(
|
|
461
|
-
(0, import_smithy_client.take)(input, {
|
|
462
|
-
LockConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LockConfiguration")
|
|
463
|
-
})
|
|
464
|
-
);
|
|
465
|
-
b.m("PATCH").h(headers).b(body);
|
|
466
|
-
return b.build();
|
|
467
|
-
}, "se_LockRuleCommand");
|
|
468
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
469
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
470
|
-
const headers = {
|
|
471
|
-
"content-type": "application/json"
|
|
472
|
-
};
|
|
473
|
-
b.bp("/tags/{ResourceArn}");
|
|
474
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
475
|
-
let body;
|
|
476
|
-
body = JSON.stringify(
|
|
477
|
-
(0, import_smithy_client.take)(input, {
|
|
478
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
479
|
-
})
|
|
480
|
-
);
|
|
481
|
-
b.m("POST").h(headers).b(body);
|
|
482
|
-
return b.build();
|
|
483
|
-
}, "se_TagResourceCommand");
|
|
484
|
-
var se_UnlockRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
485
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
486
|
-
const headers = {};
|
|
487
|
-
b.bp("/rules/{Identifier}/unlock");
|
|
488
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
489
|
-
let body;
|
|
490
|
-
b.m("PATCH").h(headers).b(body);
|
|
491
|
-
return b.build();
|
|
492
|
-
}, "se_UnlockRuleCommand");
|
|
493
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
494
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
495
|
-
const headers = {};
|
|
496
|
-
b.bp("/tags/{ResourceArn}");
|
|
497
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
498
|
-
const query = (0, import_smithy_client.map)({
|
|
499
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
|
|
500
|
-
});
|
|
501
|
-
let body;
|
|
502
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
503
|
-
return b.build();
|
|
504
|
-
}, "se_UntagResourceCommand");
|
|
505
|
-
var se_UpdateRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
506
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
507
|
-
const headers = {
|
|
508
|
-
"content-type": "application/json"
|
|
509
|
-
};
|
|
510
|
-
b.bp("/rules/{Identifier}");
|
|
511
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
512
|
-
let body;
|
|
513
|
-
body = JSON.stringify(
|
|
514
|
-
(0, import_smithy_client.take)(input, {
|
|
515
|
-
Description: [],
|
|
516
|
-
ExcludeResourceTags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ExcludeResourceTags"),
|
|
517
|
-
ResourceTags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ResourceTags"),
|
|
518
|
-
ResourceType: [],
|
|
519
|
-
RetentionPeriod: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "RetentionPeriod")
|
|
520
|
-
})
|
|
521
|
-
);
|
|
522
|
-
b.m("PATCH").h(headers).b(body);
|
|
523
|
-
return b.build();
|
|
524
|
-
}, "se_UpdateRuleCommand");
|
|
525
|
-
var de_CreateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
526
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
527
|
-
return de_CommandError(output, context);
|
|
528
|
-
}
|
|
529
|
-
const contents = (0, import_smithy_client.map)({
|
|
530
|
-
$metadata: deserializeMetadata(output)
|
|
531
|
-
});
|
|
532
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
533
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
534
|
-
Description: import_smithy_client.expectString,
|
|
535
|
-
ExcludeResourceTags: import_smithy_client._json,
|
|
536
|
-
Identifier: import_smithy_client.expectString,
|
|
537
|
-
LockConfiguration: import_smithy_client._json,
|
|
538
|
-
LockState: import_smithy_client.expectString,
|
|
539
|
-
ResourceTags: import_smithy_client._json,
|
|
540
|
-
ResourceType: import_smithy_client.expectString,
|
|
541
|
-
RetentionPeriod: import_smithy_client._json,
|
|
542
|
-
RuleArn: import_smithy_client.expectString,
|
|
543
|
-
Status: import_smithy_client.expectString,
|
|
544
|
-
Tags: import_smithy_client._json
|
|
545
|
-
});
|
|
546
|
-
Object.assign(contents, doc);
|
|
547
|
-
return contents;
|
|
548
|
-
}, "de_CreateRuleCommand");
|
|
549
|
-
var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
550
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
551
|
-
return de_CommandError(output, context);
|
|
552
|
-
}
|
|
553
|
-
const contents = (0, import_smithy_client.map)({
|
|
554
|
-
$metadata: deserializeMetadata(output)
|
|
555
|
-
});
|
|
556
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
557
|
-
return contents;
|
|
558
|
-
}, "de_DeleteRuleCommand");
|
|
559
|
-
var de_GetRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
560
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
561
|
-
return de_CommandError(output, context);
|
|
562
|
-
}
|
|
563
|
-
const contents = (0, import_smithy_client.map)({
|
|
564
|
-
$metadata: deserializeMetadata(output)
|
|
565
|
-
});
|
|
566
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
567
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
568
|
-
Description: import_smithy_client.expectString,
|
|
569
|
-
ExcludeResourceTags: import_smithy_client._json,
|
|
570
|
-
Identifier: import_smithy_client.expectString,
|
|
571
|
-
LockConfiguration: import_smithy_client._json,
|
|
572
|
-
LockEndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LockEndTime"),
|
|
573
|
-
LockState: import_smithy_client.expectString,
|
|
574
|
-
ResourceTags: import_smithy_client._json,
|
|
575
|
-
ResourceType: import_smithy_client.expectString,
|
|
576
|
-
RetentionPeriod: import_smithy_client._json,
|
|
577
|
-
RuleArn: import_smithy_client.expectString,
|
|
578
|
-
Status: import_smithy_client.expectString
|
|
579
|
-
});
|
|
580
|
-
Object.assign(contents, doc);
|
|
581
|
-
return contents;
|
|
582
|
-
}, "de_GetRuleCommand");
|
|
583
|
-
var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
584
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
585
|
-
return de_CommandError(output, context);
|
|
586
|
-
}
|
|
587
|
-
const contents = (0, import_smithy_client.map)({
|
|
588
|
-
$metadata: deserializeMetadata(output)
|
|
589
|
-
});
|
|
590
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
591
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
592
|
-
NextToken: import_smithy_client.expectString,
|
|
593
|
-
Rules: import_smithy_client._json
|
|
594
|
-
});
|
|
595
|
-
Object.assign(contents, doc);
|
|
596
|
-
return contents;
|
|
597
|
-
}, "de_ListRulesCommand");
|
|
598
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
599
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
600
|
-
return de_CommandError(output, context);
|
|
601
|
-
}
|
|
602
|
-
const contents = (0, import_smithy_client.map)({
|
|
603
|
-
$metadata: deserializeMetadata(output)
|
|
604
|
-
});
|
|
605
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
606
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
607
|
-
Tags: import_smithy_client._json
|
|
608
|
-
});
|
|
609
|
-
Object.assign(contents, doc);
|
|
610
|
-
return contents;
|
|
611
|
-
}, "de_ListTagsForResourceCommand");
|
|
612
|
-
var de_LockRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
613
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
614
|
-
return de_CommandError(output, context);
|
|
615
|
-
}
|
|
616
|
-
const contents = (0, import_smithy_client.map)({
|
|
617
|
-
$metadata: deserializeMetadata(output)
|
|
618
|
-
});
|
|
619
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
620
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
621
|
-
Description: import_smithy_client.expectString,
|
|
622
|
-
ExcludeResourceTags: import_smithy_client._json,
|
|
623
|
-
Identifier: import_smithy_client.expectString,
|
|
624
|
-
LockConfiguration: import_smithy_client._json,
|
|
625
|
-
LockState: import_smithy_client.expectString,
|
|
626
|
-
ResourceTags: import_smithy_client._json,
|
|
627
|
-
ResourceType: import_smithy_client.expectString,
|
|
628
|
-
RetentionPeriod: import_smithy_client._json,
|
|
629
|
-
RuleArn: import_smithy_client.expectString,
|
|
630
|
-
Status: import_smithy_client.expectString
|
|
631
|
-
});
|
|
632
|
-
Object.assign(contents, doc);
|
|
633
|
-
return contents;
|
|
634
|
-
}, "de_LockRuleCommand");
|
|
635
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
636
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
637
|
-
return de_CommandError(output, context);
|
|
638
|
-
}
|
|
639
|
-
const contents = (0, import_smithy_client.map)({
|
|
640
|
-
$metadata: deserializeMetadata(output)
|
|
641
|
-
});
|
|
642
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
643
|
-
return contents;
|
|
644
|
-
}, "de_TagResourceCommand");
|
|
645
|
-
var de_UnlockRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
646
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
647
|
-
return de_CommandError(output, context);
|
|
648
|
-
}
|
|
649
|
-
const contents = (0, import_smithy_client.map)({
|
|
650
|
-
$metadata: deserializeMetadata(output)
|
|
651
|
-
});
|
|
652
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
653
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
654
|
-
Description: import_smithy_client.expectString,
|
|
655
|
-
ExcludeResourceTags: import_smithy_client._json,
|
|
656
|
-
Identifier: import_smithy_client.expectString,
|
|
657
|
-
LockConfiguration: import_smithy_client._json,
|
|
658
|
-
LockEndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LockEndTime"),
|
|
659
|
-
LockState: import_smithy_client.expectString,
|
|
660
|
-
ResourceTags: import_smithy_client._json,
|
|
661
|
-
ResourceType: import_smithy_client.expectString,
|
|
662
|
-
RetentionPeriod: import_smithy_client._json,
|
|
663
|
-
RuleArn: import_smithy_client.expectString,
|
|
664
|
-
Status: import_smithy_client.expectString
|
|
665
|
-
});
|
|
666
|
-
Object.assign(contents, doc);
|
|
667
|
-
return contents;
|
|
668
|
-
}, "de_UnlockRuleCommand");
|
|
669
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
670
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
671
|
-
return de_CommandError(output, context);
|
|
672
|
-
}
|
|
673
|
-
const contents = (0, import_smithy_client.map)({
|
|
674
|
-
$metadata: deserializeMetadata(output)
|
|
675
|
-
});
|
|
676
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
677
|
-
return contents;
|
|
678
|
-
}, "de_UntagResourceCommand");
|
|
679
|
-
var de_UpdateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
680
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
681
|
-
return de_CommandError(output, context);
|
|
682
|
-
}
|
|
683
|
-
const contents = (0, import_smithy_client.map)({
|
|
684
|
-
$metadata: deserializeMetadata(output)
|
|
685
|
-
});
|
|
686
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
687
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
688
|
-
Description: import_smithy_client.expectString,
|
|
689
|
-
ExcludeResourceTags: import_smithy_client._json,
|
|
690
|
-
Identifier: import_smithy_client.expectString,
|
|
691
|
-
LockEndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LockEndTime"),
|
|
692
|
-
LockState: import_smithy_client.expectString,
|
|
693
|
-
ResourceTags: import_smithy_client._json,
|
|
694
|
-
ResourceType: import_smithy_client.expectString,
|
|
695
|
-
RetentionPeriod: import_smithy_client._json,
|
|
696
|
-
RuleArn: import_smithy_client.expectString,
|
|
697
|
-
Status: import_smithy_client.expectString
|
|
698
|
-
});
|
|
699
|
-
Object.assign(contents, doc);
|
|
700
|
-
return contents;
|
|
701
|
-
}, "de_UpdateRuleCommand");
|
|
702
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
703
|
-
const parsedOutput = {
|
|
704
|
-
...output,
|
|
705
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
706
|
-
};
|
|
707
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
708
|
-
switch (errorCode) {
|
|
709
|
-
case "InternalServerException":
|
|
710
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
711
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
712
|
-
case "ServiceQuotaExceededException":
|
|
713
|
-
case "com.amazonaws.rbin#ServiceQuotaExceededException":
|
|
714
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
715
|
-
case "ValidationException":
|
|
716
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
717
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
718
|
-
case "ConflictException":
|
|
719
|
-
case "com.amazonaws.rbin#ConflictException":
|
|
720
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
721
|
-
case "ResourceNotFoundException":
|
|
722
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
723
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
724
|
-
default:
|
|
725
|
-
const parsedBody = parsedOutput.body;
|
|
726
|
-
return throwDefaultError({
|
|
727
|
-
output,
|
|
728
|
-
parsedBody,
|
|
729
|
-
errorCode
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
}, "de_CommandError");
|
|
733
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(RbinServiceException);
|
|
734
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
735
|
-
const contents = (0, import_smithy_client.map)({});
|
|
736
|
-
const data = parsedOutput.body;
|
|
737
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
738
|
-
Message: import_smithy_client.expectString,
|
|
739
|
-
Reason: import_smithy_client.expectString
|
|
740
|
-
});
|
|
741
|
-
Object.assign(contents, doc);
|
|
742
|
-
const exception = new ConflictException({
|
|
743
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
744
|
-
...contents
|
|
745
|
-
});
|
|
746
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
747
|
-
}, "de_ConflictExceptionRes");
|
|
748
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
749
|
-
const contents = (0, import_smithy_client.map)({});
|
|
750
|
-
const data = parsedOutput.body;
|
|
751
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
752
|
-
Message: import_smithy_client.expectString
|
|
753
|
-
});
|
|
754
|
-
Object.assign(contents, doc);
|
|
755
|
-
const exception = new InternalServerException({
|
|
756
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
757
|
-
...contents
|
|
758
|
-
});
|
|
759
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
760
|
-
}, "de_InternalServerExceptionRes");
|
|
761
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
762
|
-
const contents = (0, import_smithy_client.map)({});
|
|
763
|
-
const data = parsedOutput.body;
|
|
764
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
765
|
-
Message: import_smithy_client.expectString,
|
|
766
|
-
Reason: import_smithy_client.expectString
|
|
767
|
-
});
|
|
768
|
-
Object.assign(contents, doc);
|
|
769
|
-
const exception = new ResourceNotFoundException({
|
|
770
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
771
|
-
...contents
|
|
772
|
-
});
|
|
773
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
774
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
775
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
776
|
-
const contents = (0, import_smithy_client.map)({});
|
|
777
|
-
const data = parsedOutput.body;
|
|
778
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
779
|
-
Message: import_smithy_client.expectString,
|
|
780
|
-
Reason: import_smithy_client.expectString
|
|
781
|
-
});
|
|
782
|
-
Object.assign(contents, doc);
|
|
783
|
-
const exception = new ServiceQuotaExceededException({
|
|
784
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
785
|
-
...contents
|
|
786
|
-
});
|
|
787
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
788
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
789
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
790
|
-
const contents = (0, import_smithy_client.map)({});
|
|
791
|
-
const data = parsedOutput.body;
|
|
792
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
793
|
-
Message: import_smithy_client.expectString,
|
|
794
|
-
Reason: import_smithy_client.expectString
|
|
795
|
-
});
|
|
796
|
-
Object.assign(contents, doc);
|
|
797
|
-
const exception = new ValidationException({
|
|
798
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
799
|
-
...contents
|
|
800
|
-
});
|
|
801
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
802
|
-
}, "de_ValidationExceptionRes");
|
|
803
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
804
|
-
httpStatusCode: output.statusCode,
|
|
805
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
806
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
807
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
808
|
-
}), "deserializeMetadata");
|
|
809
|
-
var _TK = "TagKeys";
|
|
810
|
-
var _tK = "tagKeys";
|
|
811
|
-
|
|
812
|
-
// src/commands/CreateRuleCommand.ts
|
|
813
|
-
var CreateRuleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
814
|
-
return [
|
|
815
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
816
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
817
|
-
];
|
|
818
|
-
}).s("AmazonRecycleBin", "CreateRule", {}).n("RbinClient", "CreateRuleCommand").f(void 0, void 0).ser(se_CreateRuleCommand).de(de_CreateRuleCommand).build() {
|
|
819
|
-
static {
|
|
820
|
-
__name(this, "CreateRuleCommand");
|
|
821
|
-
}
|
|
420
|
+
const de_ListRulesCommand = async (output, context) => {
|
|
421
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
422
|
+
return de_CommandError(output, context);
|
|
423
|
+
}
|
|
424
|
+
const contents = smithyClient.map({
|
|
425
|
+
$metadata: deserializeMetadata(output),
|
|
426
|
+
});
|
|
427
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
428
|
+
const doc = smithyClient.take(data, {
|
|
429
|
+
NextToken: smithyClient.expectString,
|
|
430
|
+
Rules: smithyClient._json,
|
|
431
|
+
});
|
|
432
|
+
Object.assign(contents, doc);
|
|
433
|
+
return contents;
|
|
822
434
|
};
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
(
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
})
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
}
|
|
435
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
436
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
437
|
+
return de_CommandError(output, context);
|
|
438
|
+
}
|
|
439
|
+
const contents = smithyClient.map({
|
|
440
|
+
$metadata: deserializeMetadata(output),
|
|
441
|
+
});
|
|
442
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
443
|
+
const doc = smithyClient.take(data, {
|
|
444
|
+
Tags: smithyClient._json,
|
|
445
|
+
});
|
|
446
|
+
Object.assign(contents, doc);
|
|
447
|
+
return contents;
|
|
837
448
|
};
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
(
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
449
|
+
const de_LockRuleCommand = async (output, context) => {
|
|
450
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
451
|
+
return de_CommandError(output, context);
|
|
452
|
+
}
|
|
453
|
+
const contents = smithyClient.map({
|
|
454
|
+
$metadata: deserializeMetadata(output),
|
|
455
|
+
});
|
|
456
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
457
|
+
const doc = smithyClient.take(data, {
|
|
458
|
+
Description: smithyClient.expectString,
|
|
459
|
+
ExcludeResourceTags: smithyClient._json,
|
|
460
|
+
Identifier: smithyClient.expectString,
|
|
461
|
+
LockConfiguration: smithyClient._json,
|
|
462
|
+
LockState: smithyClient.expectString,
|
|
463
|
+
ResourceTags: smithyClient._json,
|
|
464
|
+
ResourceType: smithyClient.expectString,
|
|
465
|
+
RetentionPeriod: smithyClient._json,
|
|
466
|
+
RuleArn: smithyClient.expectString,
|
|
467
|
+
Status: smithyClient.expectString,
|
|
468
|
+
});
|
|
469
|
+
Object.assign(contents, doc);
|
|
470
|
+
return contents;
|
|
852
471
|
};
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
];
|
|
863
|
-
}).s("AmazonRecycleBin", "ListRules", {}).n("RbinClient", "ListRulesCommand").f(void 0, void 0).ser(se_ListRulesCommand).de(de_ListRulesCommand).build() {
|
|
864
|
-
static {
|
|
865
|
-
__name(this, "ListRulesCommand");
|
|
866
|
-
}
|
|
472
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
473
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
474
|
+
return de_CommandError(output, context);
|
|
475
|
+
}
|
|
476
|
+
const contents = smithyClient.map({
|
|
477
|
+
$metadata: deserializeMetadata(output),
|
|
478
|
+
});
|
|
479
|
+
await smithyClient.collectBody(output.body, context);
|
|
480
|
+
return contents;
|
|
867
481
|
};
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
(
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
482
|
+
const de_UnlockRuleCommand = async (output, context) => {
|
|
483
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
484
|
+
return de_CommandError(output, context);
|
|
485
|
+
}
|
|
486
|
+
const contents = smithyClient.map({
|
|
487
|
+
$metadata: deserializeMetadata(output),
|
|
488
|
+
});
|
|
489
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
490
|
+
const doc = smithyClient.take(data, {
|
|
491
|
+
Description: smithyClient.expectString,
|
|
492
|
+
ExcludeResourceTags: smithyClient._json,
|
|
493
|
+
Identifier: smithyClient.expectString,
|
|
494
|
+
LockConfiguration: smithyClient._json,
|
|
495
|
+
LockEndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
496
|
+
LockState: smithyClient.expectString,
|
|
497
|
+
ResourceTags: smithyClient._json,
|
|
498
|
+
ResourceType: smithyClient.expectString,
|
|
499
|
+
RetentionPeriod: smithyClient._json,
|
|
500
|
+
RuleArn: smithyClient.expectString,
|
|
501
|
+
Status: smithyClient.expectString,
|
|
502
|
+
});
|
|
503
|
+
Object.assign(contents, doc);
|
|
504
|
+
return contents;
|
|
882
505
|
};
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
];
|
|
893
|
-
}).s("AmazonRecycleBin", "LockRule", {}).n("RbinClient", "LockRuleCommand").f(void 0, void 0).ser(se_LockRuleCommand).de(de_LockRuleCommand).build() {
|
|
894
|
-
static {
|
|
895
|
-
__name(this, "LockRuleCommand");
|
|
896
|
-
}
|
|
506
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
507
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
508
|
+
return de_CommandError(output, context);
|
|
509
|
+
}
|
|
510
|
+
const contents = smithyClient.map({
|
|
511
|
+
$metadata: deserializeMetadata(output),
|
|
512
|
+
});
|
|
513
|
+
await smithyClient.collectBody(output.body, context);
|
|
514
|
+
return contents;
|
|
897
515
|
};
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
(
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
516
|
+
const de_UpdateRuleCommand = async (output, context) => {
|
|
517
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
518
|
+
return de_CommandError(output, context);
|
|
519
|
+
}
|
|
520
|
+
const contents = smithyClient.map({
|
|
521
|
+
$metadata: deserializeMetadata(output),
|
|
522
|
+
});
|
|
523
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
524
|
+
const doc = smithyClient.take(data, {
|
|
525
|
+
Description: smithyClient.expectString,
|
|
526
|
+
ExcludeResourceTags: smithyClient._json,
|
|
527
|
+
Identifier: smithyClient.expectString,
|
|
528
|
+
LockEndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
529
|
+
LockState: smithyClient.expectString,
|
|
530
|
+
ResourceTags: smithyClient._json,
|
|
531
|
+
ResourceType: smithyClient.expectString,
|
|
532
|
+
RetentionPeriod: smithyClient._json,
|
|
533
|
+
RuleArn: smithyClient.expectString,
|
|
534
|
+
Status: smithyClient.expectString,
|
|
535
|
+
});
|
|
536
|
+
Object.assign(contents, doc);
|
|
537
|
+
return contents;
|
|
912
538
|
};
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
539
|
+
const de_CommandError = async (output, context) => {
|
|
540
|
+
const parsedOutput = {
|
|
541
|
+
...output,
|
|
542
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
543
|
+
};
|
|
544
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
545
|
+
switch (errorCode) {
|
|
546
|
+
case "InternalServerException":
|
|
547
|
+
case "com.amazonaws.rbin#InternalServerException":
|
|
548
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
549
|
+
case "ServiceQuotaExceededException":
|
|
550
|
+
case "com.amazonaws.rbin#ServiceQuotaExceededException":
|
|
551
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
552
|
+
case "ValidationException":
|
|
553
|
+
case "com.amazonaws.rbin#ValidationException":
|
|
554
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
555
|
+
case "ConflictException":
|
|
556
|
+
case "com.amazonaws.rbin#ConflictException":
|
|
557
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
558
|
+
case "ResourceNotFoundException":
|
|
559
|
+
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
560
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
561
|
+
default:
|
|
562
|
+
const parsedBody = parsedOutput.body;
|
|
563
|
+
return throwDefaultError({
|
|
564
|
+
output,
|
|
565
|
+
parsedBody,
|
|
566
|
+
errorCode,
|
|
567
|
+
});
|
|
568
|
+
}
|
|
927
569
|
};
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
570
|
+
const throwDefaultError = smithyClient.withBaseException(RbinServiceException);
|
|
571
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
572
|
+
const contents = smithyClient.map({});
|
|
573
|
+
const data = parsedOutput.body;
|
|
574
|
+
const doc = smithyClient.take(data, {
|
|
575
|
+
Message: smithyClient.expectString,
|
|
576
|
+
Reason: smithyClient.expectString,
|
|
577
|
+
});
|
|
578
|
+
Object.assign(contents, doc);
|
|
579
|
+
const exception = new ConflictException({
|
|
580
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
581
|
+
...contents,
|
|
582
|
+
});
|
|
583
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
942
584
|
};
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
})
|
|
954
|
-
|
|
955
|
-
__name(this, "UpdateRuleCommand");
|
|
956
|
-
}
|
|
585
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
586
|
+
const contents = smithyClient.map({});
|
|
587
|
+
const data = parsedOutput.body;
|
|
588
|
+
const doc = smithyClient.take(data, {
|
|
589
|
+
Message: smithyClient.expectString,
|
|
590
|
+
});
|
|
591
|
+
Object.assign(contents, doc);
|
|
592
|
+
const exception = new InternalServerException({
|
|
593
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
594
|
+
...contents,
|
|
595
|
+
});
|
|
596
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
957
597
|
};
|
|
598
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
599
|
+
const contents = smithyClient.map({});
|
|
600
|
+
const data = parsedOutput.body;
|
|
601
|
+
const doc = smithyClient.take(data, {
|
|
602
|
+
Message: smithyClient.expectString,
|
|
603
|
+
Reason: smithyClient.expectString,
|
|
604
|
+
});
|
|
605
|
+
Object.assign(contents, doc);
|
|
606
|
+
const exception = new ResourceNotFoundException({
|
|
607
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
608
|
+
...contents,
|
|
609
|
+
});
|
|
610
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
611
|
+
};
|
|
612
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
613
|
+
const contents = smithyClient.map({});
|
|
614
|
+
const data = parsedOutput.body;
|
|
615
|
+
const doc = smithyClient.take(data, {
|
|
616
|
+
Message: smithyClient.expectString,
|
|
617
|
+
Reason: smithyClient.expectString,
|
|
618
|
+
});
|
|
619
|
+
Object.assign(contents, doc);
|
|
620
|
+
const exception = new ServiceQuotaExceededException({
|
|
621
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
622
|
+
...contents,
|
|
623
|
+
});
|
|
624
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
625
|
+
};
|
|
626
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
627
|
+
const contents = smithyClient.map({});
|
|
628
|
+
const data = parsedOutput.body;
|
|
629
|
+
const doc = smithyClient.take(data, {
|
|
630
|
+
Message: smithyClient.expectString,
|
|
631
|
+
Reason: smithyClient.expectString,
|
|
632
|
+
});
|
|
633
|
+
Object.assign(contents, doc);
|
|
634
|
+
const exception = new ValidationException({
|
|
635
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
636
|
+
...contents,
|
|
637
|
+
});
|
|
638
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
639
|
+
};
|
|
640
|
+
const deserializeMetadata = (output) => ({
|
|
641
|
+
httpStatusCode: output.statusCode,
|
|
642
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
643
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
644
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
645
|
+
});
|
|
646
|
+
const _TK = "TagKeys";
|
|
647
|
+
const _tK = "tagKeys";
|
|
648
|
+
|
|
649
|
+
class CreateRuleCommand extends smithyClient.Command
|
|
650
|
+
.classBuilder()
|
|
651
|
+
.ep(commonParams)
|
|
652
|
+
.m(function (Command, cs, config, o) {
|
|
653
|
+
return [
|
|
654
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
655
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
656
|
+
];
|
|
657
|
+
})
|
|
658
|
+
.s("AmazonRecycleBin", "CreateRule", {})
|
|
659
|
+
.n("RbinClient", "CreateRuleCommand")
|
|
660
|
+
.f(void 0, void 0)
|
|
661
|
+
.ser(se_CreateRuleCommand)
|
|
662
|
+
.de(de_CreateRuleCommand)
|
|
663
|
+
.build() {
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
class DeleteRuleCommand extends smithyClient.Command
|
|
667
|
+
.classBuilder()
|
|
668
|
+
.ep(commonParams)
|
|
669
|
+
.m(function (Command, cs, config, o) {
|
|
670
|
+
return [
|
|
671
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
672
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
673
|
+
];
|
|
674
|
+
})
|
|
675
|
+
.s("AmazonRecycleBin", "DeleteRule", {})
|
|
676
|
+
.n("RbinClient", "DeleteRuleCommand")
|
|
677
|
+
.f(void 0, void 0)
|
|
678
|
+
.ser(se_DeleteRuleCommand)
|
|
679
|
+
.de(de_DeleteRuleCommand)
|
|
680
|
+
.build() {
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
class GetRuleCommand extends smithyClient.Command
|
|
684
|
+
.classBuilder()
|
|
685
|
+
.ep(commonParams)
|
|
686
|
+
.m(function (Command, cs, config, o) {
|
|
687
|
+
return [
|
|
688
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
689
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
690
|
+
];
|
|
691
|
+
})
|
|
692
|
+
.s("AmazonRecycleBin", "GetRule", {})
|
|
693
|
+
.n("RbinClient", "GetRuleCommand")
|
|
694
|
+
.f(void 0, void 0)
|
|
695
|
+
.ser(se_GetRuleCommand)
|
|
696
|
+
.de(de_GetRuleCommand)
|
|
697
|
+
.build() {
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
class ListRulesCommand extends smithyClient.Command
|
|
701
|
+
.classBuilder()
|
|
702
|
+
.ep(commonParams)
|
|
703
|
+
.m(function (Command, cs, config, o) {
|
|
704
|
+
return [
|
|
705
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
706
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
707
|
+
];
|
|
708
|
+
})
|
|
709
|
+
.s("AmazonRecycleBin", "ListRules", {})
|
|
710
|
+
.n("RbinClient", "ListRulesCommand")
|
|
711
|
+
.f(void 0, void 0)
|
|
712
|
+
.ser(se_ListRulesCommand)
|
|
713
|
+
.de(de_ListRulesCommand)
|
|
714
|
+
.build() {
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
718
|
+
.classBuilder()
|
|
719
|
+
.ep(commonParams)
|
|
720
|
+
.m(function (Command, cs, config, o) {
|
|
721
|
+
return [
|
|
722
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
723
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
724
|
+
];
|
|
725
|
+
})
|
|
726
|
+
.s("AmazonRecycleBin", "ListTagsForResource", {})
|
|
727
|
+
.n("RbinClient", "ListTagsForResourceCommand")
|
|
728
|
+
.f(void 0, void 0)
|
|
729
|
+
.ser(se_ListTagsForResourceCommand)
|
|
730
|
+
.de(de_ListTagsForResourceCommand)
|
|
731
|
+
.build() {
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
class LockRuleCommand extends smithyClient.Command
|
|
735
|
+
.classBuilder()
|
|
736
|
+
.ep(commonParams)
|
|
737
|
+
.m(function (Command, cs, config, o) {
|
|
738
|
+
return [
|
|
739
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
740
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
741
|
+
];
|
|
742
|
+
})
|
|
743
|
+
.s("AmazonRecycleBin", "LockRule", {})
|
|
744
|
+
.n("RbinClient", "LockRuleCommand")
|
|
745
|
+
.f(void 0, void 0)
|
|
746
|
+
.ser(se_LockRuleCommand)
|
|
747
|
+
.de(de_LockRuleCommand)
|
|
748
|
+
.build() {
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
class TagResourceCommand extends smithyClient.Command
|
|
752
|
+
.classBuilder()
|
|
753
|
+
.ep(commonParams)
|
|
754
|
+
.m(function (Command, cs, config, o) {
|
|
755
|
+
return [
|
|
756
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
757
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
758
|
+
];
|
|
759
|
+
})
|
|
760
|
+
.s("AmazonRecycleBin", "TagResource", {})
|
|
761
|
+
.n("RbinClient", "TagResourceCommand")
|
|
762
|
+
.f(void 0, void 0)
|
|
763
|
+
.ser(se_TagResourceCommand)
|
|
764
|
+
.de(de_TagResourceCommand)
|
|
765
|
+
.build() {
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
class UnlockRuleCommand extends smithyClient.Command
|
|
769
|
+
.classBuilder()
|
|
770
|
+
.ep(commonParams)
|
|
771
|
+
.m(function (Command, cs, config, o) {
|
|
772
|
+
return [
|
|
773
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
774
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
775
|
+
];
|
|
776
|
+
})
|
|
777
|
+
.s("AmazonRecycleBin", "UnlockRule", {})
|
|
778
|
+
.n("RbinClient", "UnlockRuleCommand")
|
|
779
|
+
.f(void 0, void 0)
|
|
780
|
+
.ser(se_UnlockRuleCommand)
|
|
781
|
+
.de(de_UnlockRuleCommand)
|
|
782
|
+
.build() {
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
786
|
+
.classBuilder()
|
|
787
|
+
.ep(commonParams)
|
|
788
|
+
.m(function (Command, cs, config, o) {
|
|
789
|
+
return [
|
|
790
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
791
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
792
|
+
];
|
|
793
|
+
})
|
|
794
|
+
.s("AmazonRecycleBin", "UntagResource", {})
|
|
795
|
+
.n("RbinClient", "UntagResourceCommand")
|
|
796
|
+
.f(void 0, void 0)
|
|
797
|
+
.ser(se_UntagResourceCommand)
|
|
798
|
+
.de(de_UntagResourceCommand)
|
|
799
|
+
.build() {
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
class UpdateRuleCommand extends smithyClient.Command
|
|
803
|
+
.classBuilder()
|
|
804
|
+
.ep(commonParams)
|
|
805
|
+
.m(function (Command, cs, config, o) {
|
|
806
|
+
return [
|
|
807
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
808
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
809
|
+
];
|
|
810
|
+
})
|
|
811
|
+
.s("AmazonRecycleBin", "UpdateRule", {})
|
|
812
|
+
.n("RbinClient", "UpdateRuleCommand")
|
|
813
|
+
.f(void 0, void 0)
|
|
814
|
+
.ser(se_UpdateRuleCommand)
|
|
815
|
+
.de(de_UpdateRuleCommand)
|
|
816
|
+
.build() {
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
const commands = {
|
|
820
|
+
CreateRuleCommand,
|
|
821
|
+
DeleteRuleCommand,
|
|
822
|
+
GetRuleCommand,
|
|
823
|
+
ListRulesCommand,
|
|
824
|
+
ListTagsForResourceCommand,
|
|
825
|
+
LockRuleCommand,
|
|
826
|
+
TagResourceCommand,
|
|
827
|
+
UnlockRuleCommand,
|
|
828
|
+
UntagResourceCommand,
|
|
829
|
+
UpdateRuleCommand,
|
|
830
|
+
};
|
|
831
|
+
class Rbin extends RbinClient {
|
|
832
|
+
}
|
|
833
|
+
smithyClient.createAggregatedClient(commands, Rbin);
|
|
958
834
|
|
|
959
|
-
|
|
960
|
-
var commands = {
|
|
961
|
-
CreateRuleCommand,
|
|
962
|
-
DeleteRuleCommand,
|
|
963
|
-
GetRuleCommand,
|
|
964
|
-
ListRulesCommand,
|
|
965
|
-
ListTagsForResourceCommand,
|
|
966
|
-
LockRuleCommand,
|
|
967
|
-
TagResourceCommand,
|
|
968
|
-
UnlockRuleCommand,
|
|
969
|
-
UntagResourceCommand,
|
|
970
|
-
UpdateRuleCommand
|
|
971
|
-
};
|
|
972
|
-
var Rbin = class extends RbinClient {
|
|
973
|
-
static {
|
|
974
|
-
__name(this, "Rbin");
|
|
975
|
-
}
|
|
976
|
-
};
|
|
977
|
-
(0, import_smithy_client.createAggregatedClient)(commands, Rbin);
|
|
978
|
-
|
|
979
|
-
// src/pagination/ListRulesPaginator.ts
|
|
980
|
-
|
|
981
|
-
var paginateListRules = (0, import_core.createPaginator)(RbinClient, ListRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
982
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
835
|
+
const paginateListRules = core.createPaginator(RbinClient, ListRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
983
836
|
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
RbinClient,
|
|
988
|
-
Rbin,
|
|
989
|
-
$Command,
|
|
990
|
-
CreateRuleCommand,
|
|
991
|
-
DeleteRuleCommand,
|
|
992
|
-
GetRuleCommand,
|
|
993
|
-
ListRulesCommand,
|
|
994
|
-
ListTagsForResourceCommand,
|
|
995
|
-
LockRuleCommand,
|
|
996
|
-
TagResourceCommand,
|
|
997
|
-
UnlockRuleCommand,
|
|
998
|
-
UntagResourceCommand,
|
|
999
|
-
UpdateRuleCommand,
|
|
1000
|
-
paginateListRules,
|
|
1001
|
-
UnlockDelayUnit,
|
|
1002
|
-
ResourceType,
|
|
1003
|
-
RetentionPeriodUnit,
|
|
1004
|
-
LockState,
|
|
1005
|
-
RuleStatus,
|
|
1006
|
-
InternalServerException,
|
|
1007
|
-
ServiceQuotaExceededExceptionReason,
|
|
1008
|
-
ServiceQuotaExceededException,
|
|
1009
|
-
ValidationExceptionReason,
|
|
1010
|
-
ValidationException,
|
|
1011
|
-
ConflictExceptionReason,
|
|
1012
|
-
ConflictException,
|
|
1013
|
-
ResourceNotFoundExceptionReason,
|
|
1014
|
-
ResourceNotFoundException
|
|
837
|
+
Object.defineProperty(exports, "$Command", {
|
|
838
|
+
enumerable: true,
|
|
839
|
+
get: function () { return smithyClient.Command; }
|
|
1015
840
|
});
|
|
1016
|
-
|
|
841
|
+
Object.defineProperty(exports, "__Client", {
|
|
842
|
+
enumerable: true,
|
|
843
|
+
get: function () { return smithyClient.Client; }
|
|
844
|
+
});
|
|
845
|
+
exports.ConflictException = ConflictException;
|
|
846
|
+
exports.ConflictExceptionReason = ConflictExceptionReason;
|
|
847
|
+
exports.CreateRuleCommand = CreateRuleCommand;
|
|
848
|
+
exports.DeleteRuleCommand = DeleteRuleCommand;
|
|
849
|
+
exports.GetRuleCommand = GetRuleCommand;
|
|
850
|
+
exports.InternalServerException = InternalServerException;
|
|
851
|
+
exports.ListRulesCommand = ListRulesCommand;
|
|
852
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
853
|
+
exports.LockRuleCommand = LockRuleCommand;
|
|
854
|
+
exports.LockState = LockState;
|
|
855
|
+
exports.Rbin = Rbin;
|
|
856
|
+
exports.RbinClient = RbinClient;
|
|
857
|
+
exports.RbinServiceException = RbinServiceException;
|
|
858
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
859
|
+
exports.ResourceNotFoundExceptionReason = ResourceNotFoundExceptionReason;
|
|
860
|
+
exports.ResourceType = ResourceType;
|
|
861
|
+
exports.RetentionPeriodUnit = RetentionPeriodUnit;
|
|
862
|
+
exports.RuleStatus = RuleStatus;
|
|
863
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
864
|
+
exports.ServiceQuotaExceededExceptionReason = ServiceQuotaExceededExceptionReason;
|
|
865
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
866
|
+
exports.UnlockDelayUnit = UnlockDelayUnit;
|
|
867
|
+
exports.UnlockRuleCommand = UnlockRuleCommand;
|
|
868
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
869
|
+
exports.UpdateRuleCommand = UpdateRuleCommand;
|
|
870
|
+
exports.ValidationException = ValidationException;
|
|
871
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
872
|
+
exports.paginateListRules = paginateListRules;
|