@aws-sdk/client-secrets-manager 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 +1582 -1740
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1809 +1,1651 @@
|
|
|
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
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
EncryptionFailure: () => EncryptionFailure,
|
|
34
|
-
FilterNameStringType: () => FilterNameStringType,
|
|
35
|
-
GetRandomPasswordCommand: () => GetRandomPasswordCommand,
|
|
36
|
-
GetRandomPasswordResponseFilterSensitiveLog: () => GetRandomPasswordResponseFilterSensitiveLog,
|
|
37
|
-
GetResourcePolicyCommand: () => GetResourcePolicyCommand,
|
|
38
|
-
GetSecretValueCommand: () => GetSecretValueCommand,
|
|
39
|
-
GetSecretValueResponseFilterSensitiveLog: () => GetSecretValueResponseFilterSensitiveLog,
|
|
40
|
-
InternalServiceError: () => InternalServiceError,
|
|
41
|
-
InvalidNextTokenException: () => InvalidNextTokenException,
|
|
42
|
-
InvalidParameterException: () => InvalidParameterException,
|
|
43
|
-
InvalidRequestException: () => InvalidRequestException,
|
|
44
|
-
LimitExceededException: () => LimitExceededException,
|
|
45
|
-
ListSecretVersionIdsCommand: () => ListSecretVersionIdsCommand,
|
|
46
|
-
ListSecretsCommand: () => ListSecretsCommand,
|
|
47
|
-
MalformedPolicyDocumentException: () => MalformedPolicyDocumentException,
|
|
48
|
-
PreconditionNotMetException: () => PreconditionNotMetException,
|
|
49
|
-
PublicPolicyException: () => PublicPolicyException,
|
|
50
|
-
PutResourcePolicyCommand: () => PutResourcePolicyCommand,
|
|
51
|
-
PutSecretValueCommand: () => PutSecretValueCommand,
|
|
52
|
-
PutSecretValueRequestFilterSensitiveLog: () => PutSecretValueRequestFilterSensitiveLog,
|
|
53
|
-
RemoveRegionsFromReplicationCommand: () => RemoveRegionsFromReplicationCommand,
|
|
54
|
-
ReplicateSecretToRegionsCommand: () => ReplicateSecretToRegionsCommand,
|
|
55
|
-
ResourceExistsException: () => ResourceExistsException,
|
|
56
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
57
|
-
RestoreSecretCommand: () => RestoreSecretCommand,
|
|
58
|
-
RotateSecretCommand: () => RotateSecretCommand,
|
|
59
|
-
SecretValueEntryFilterSensitiveLog: () => SecretValueEntryFilterSensitiveLog,
|
|
60
|
-
SecretsManager: () => SecretsManager,
|
|
61
|
-
SecretsManagerClient: () => SecretsManagerClient,
|
|
62
|
-
SecretsManagerServiceException: () => SecretsManagerServiceException,
|
|
63
|
-
SortOrderType: () => SortOrderType,
|
|
64
|
-
StatusType: () => StatusType,
|
|
65
|
-
StopReplicationToReplicaCommand: () => StopReplicationToReplicaCommand,
|
|
66
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
67
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
68
|
-
UpdateSecretCommand: () => UpdateSecretCommand,
|
|
69
|
-
UpdateSecretRequestFilterSensitiveLog: () => UpdateSecretRequestFilterSensitiveLog,
|
|
70
|
-
UpdateSecretVersionStageCommand: () => UpdateSecretVersionStageCommand,
|
|
71
|
-
ValidateResourcePolicyCommand: () => ValidateResourcePolicyCommand,
|
|
72
|
-
__Client: () => import_smithy_client.Client,
|
|
73
|
-
paginateBatchGetSecretValue: () => paginateBatchGetSecretValue,
|
|
74
|
-
paginateListSecretVersionIds: () => paginateListSecretVersionIds,
|
|
75
|
-
paginateListSecrets: () => paginateListSecrets
|
|
76
|
-
});
|
|
77
|
-
module.exports = __toCommonJS(index_exports);
|
|
78
|
-
|
|
79
|
-
// src/SecretsManagerClient.ts
|
|
80
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
81
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
82
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
83
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
84
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
85
|
-
var import_core = require("@smithy/core");
|
|
86
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
87
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
88
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
89
|
-
|
|
90
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
91
|
-
|
|
92
|
-
// src/endpoint/EndpointParameters.ts
|
|
93
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
94
|
-
return Object.assign(options, {
|
|
95
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
96
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
97
|
-
defaultSigningName: "secretsmanager"
|
|
98
|
-
});
|
|
99
|
-
}, "resolveClientEndpointParameters");
|
|
100
|
-
var commonParams = {
|
|
101
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
102
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
103
|
-
Region: { type: "builtInParams", name: "region" },
|
|
104
|
-
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
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "secretsmanager",
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
105
33
|
};
|
|
106
34
|
|
|
107
|
-
|
|
108
|
-
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
109
73
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
114
79
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
80
|
+
class SecretsManagerClient extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSecretsManagerHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
108
|
+
}
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
143
111
|
}
|
|
144
|
-
|
|
145
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
146
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
147
|
-
return {
|
|
148
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
149
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
150
|
-
credentials: config.credentials()
|
|
151
|
-
};
|
|
152
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
112
|
+
}
|
|
153
113
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
161
|
-
);
|
|
162
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
163
|
-
return Object.assign(
|
|
164
|
-
runtimeConfig,
|
|
165
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
166
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
167
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
168
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
169
|
-
);
|
|
170
|
-
}, "resolveRuntimeExtensions");
|
|
114
|
+
class SecretsManagerServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, SecretsManagerServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
171
120
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
config;
|
|
181
|
-
constructor(...[configuration]) {
|
|
182
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
183
|
-
super(_config_0);
|
|
184
|
-
this.initConfig = _config_0;
|
|
185
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
186
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
187
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
188
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
189
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
190
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
191
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
192
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
193
|
-
this.config = _config_8;
|
|
194
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
195
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
196
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
197
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
198
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
199
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
200
|
-
this.middlewareStack.use(
|
|
201
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
202
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSecretsManagerHttpAuthSchemeParametersProvider,
|
|
203
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
204
|
-
"aws.auth#sigv4": config.credentials
|
|
205
|
-
}), "identityProviderConfigProvider")
|
|
206
|
-
})
|
|
207
|
-
);
|
|
208
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
212
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
213
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
214
|
-
*/
|
|
215
|
-
destroy() {
|
|
216
|
-
super.destroy();
|
|
217
|
-
}
|
|
121
|
+
const FilterNameStringType = {
|
|
122
|
+
all: "all",
|
|
123
|
+
description: "description",
|
|
124
|
+
name: "name",
|
|
125
|
+
owning_service: "owning-service",
|
|
126
|
+
primary_region: "primary-region",
|
|
127
|
+
tag_key: "tag-key",
|
|
128
|
+
tag_value: "tag-value",
|
|
218
129
|
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
130
|
+
class DecryptionFailure extends SecretsManagerServiceException {
|
|
131
|
+
name = "DecryptionFailure";
|
|
132
|
+
$fault = "client";
|
|
133
|
+
Message;
|
|
134
|
+
constructor(opts) {
|
|
135
|
+
super({
|
|
136
|
+
name: "DecryptionFailure",
|
|
137
|
+
$fault: "client",
|
|
138
|
+
...opts,
|
|
139
|
+
});
|
|
140
|
+
Object.setPrototypeOf(this, DecryptionFailure.prototype);
|
|
141
|
+
this.Message = opts.Message;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
class InternalServiceError extends SecretsManagerServiceException {
|
|
145
|
+
name = "InternalServiceError";
|
|
146
|
+
$fault = "server";
|
|
147
|
+
Message;
|
|
148
|
+
constructor(opts) {
|
|
149
|
+
super({
|
|
150
|
+
name: "InternalServiceError",
|
|
151
|
+
$fault: "server",
|
|
152
|
+
...opts,
|
|
153
|
+
});
|
|
154
|
+
Object.setPrototypeOf(this, InternalServiceError.prototype);
|
|
155
|
+
this.Message = opts.Message;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
class InvalidNextTokenException extends SecretsManagerServiceException {
|
|
159
|
+
name = "InvalidNextTokenException";
|
|
160
|
+
$fault = "client";
|
|
161
|
+
Message;
|
|
162
|
+
constructor(opts) {
|
|
163
|
+
super({
|
|
164
|
+
name: "InvalidNextTokenException",
|
|
165
|
+
$fault: "client",
|
|
166
|
+
...opts,
|
|
167
|
+
});
|
|
168
|
+
Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
|
|
169
|
+
this.Message = opts.Message;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
class InvalidParameterException extends SecretsManagerServiceException {
|
|
173
|
+
name = "InvalidParameterException";
|
|
174
|
+
$fault = "client";
|
|
175
|
+
Message;
|
|
176
|
+
constructor(opts) {
|
|
177
|
+
super({
|
|
178
|
+
name: "InvalidParameterException",
|
|
179
|
+
$fault: "client",
|
|
180
|
+
...opts,
|
|
181
|
+
});
|
|
182
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
183
|
+
this.Message = opts.Message;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
class InvalidRequestException extends SecretsManagerServiceException {
|
|
187
|
+
name = "InvalidRequestException";
|
|
188
|
+
$fault = "client";
|
|
189
|
+
Message;
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "InvalidRequestException",
|
|
193
|
+
$fault: "client",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
197
|
+
this.Message = opts.Message;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
class ResourceNotFoundException extends SecretsManagerServiceException {
|
|
201
|
+
name = "ResourceNotFoundException";
|
|
202
|
+
$fault = "client";
|
|
203
|
+
Message;
|
|
204
|
+
constructor(opts) {
|
|
205
|
+
super({
|
|
206
|
+
name: "ResourceNotFoundException",
|
|
207
|
+
$fault: "client",
|
|
208
|
+
...opts,
|
|
209
|
+
});
|
|
210
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
211
|
+
this.Message = opts.Message;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
const StatusType = {
|
|
215
|
+
Failed: "Failed",
|
|
216
|
+
InProgress: "InProgress",
|
|
217
|
+
InSync: "InSync",
|
|
244
218
|
};
|
|
219
|
+
class EncryptionFailure extends SecretsManagerServiceException {
|
|
220
|
+
name = "EncryptionFailure";
|
|
221
|
+
$fault = "client";
|
|
222
|
+
Message;
|
|
223
|
+
constructor(opts) {
|
|
224
|
+
super({
|
|
225
|
+
name: "EncryptionFailure",
|
|
226
|
+
$fault: "client",
|
|
227
|
+
...opts,
|
|
228
|
+
});
|
|
229
|
+
Object.setPrototypeOf(this, EncryptionFailure.prototype);
|
|
230
|
+
this.Message = opts.Message;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
class LimitExceededException extends SecretsManagerServiceException {
|
|
234
|
+
name = "LimitExceededException";
|
|
235
|
+
$fault = "client";
|
|
236
|
+
Message;
|
|
237
|
+
constructor(opts) {
|
|
238
|
+
super({
|
|
239
|
+
name: "LimitExceededException",
|
|
240
|
+
$fault: "client",
|
|
241
|
+
...opts,
|
|
242
|
+
});
|
|
243
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
244
|
+
this.Message = opts.Message;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
class MalformedPolicyDocumentException extends SecretsManagerServiceException {
|
|
248
|
+
name = "MalformedPolicyDocumentException";
|
|
249
|
+
$fault = "client";
|
|
250
|
+
Message;
|
|
251
|
+
constructor(opts) {
|
|
252
|
+
super({
|
|
253
|
+
name: "MalformedPolicyDocumentException",
|
|
254
|
+
$fault: "client",
|
|
255
|
+
...opts,
|
|
256
|
+
});
|
|
257
|
+
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
|
258
|
+
this.Message = opts.Message;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
class PreconditionNotMetException extends SecretsManagerServiceException {
|
|
262
|
+
name = "PreconditionNotMetException";
|
|
263
|
+
$fault = "client";
|
|
264
|
+
Message;
|
|
265
|
+
constructor(opts) {
|
|
266
|
+
super({
|
|
267
|
+
name: "PreconditionNotMetException",
|
|
268
|
+
$fault: "client",
|
|
269
|
+
...opts,
|
|
270
|
+
});
|
|
271
|
+
Object.setPrototypeOf(this, PreconditionNotMetException.prototype);
|
|
272
|
+
this.Message = opts.Message;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
class ResourceExistsException extends SecretsManagerServiceException {
|
|
276
|
+
name = "ResourceExistsException";
|
|
277
|
+
$fault = "client";
|
|
278
|
+
Message;
|
|
279
|
+
constructor(opts) {
|
|
280
|
+
super({
|
|
281
|
+
name: "ResourceExistsException",
|
|
282
|
+
$fault: "client",
|
|
283
|
+
...opts,
|
|
284
|
+
});
|
|
285
|
+
Object.setPrototypeOf(this, ResourceExistsException.prototype);
|
|
286
|
+
this.Message = opts.Message;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
const SortOrderType = {
|
|
290
|
+
asc: "asc",
|
|
291
|
+
desc: "desc",
|
|
292
|
+
};
|
|
293
|
+
class PublicPolicyException extends SecretsManagerServiceException {
|
|
294
|
+
name = "PublicPolicyException";
|
|
295
|
+
$fault = "client";
|
|
296
|
+
Message;
|
|
297
|
+
constructor(opts) {
|
|
298
|
+
super({
|
|
299
|
+
name: "PublicPolicyException",
|
|
300
|
+
$fault: "client",
|
|
301
|
+
...opts,
|
|
302
|
+
});
|
|
303
|
+
Object.setPrototypeOf(this, PublicPolicyException.prototype);
|
|
304
|
+
this.Message = opts.Message;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
const SecretValueEntryFilterSensitiveLog = (obj) => ({
|
|
308
|
+
...obj,
|
|
309
|
+
...(obj.SecretBinary && { SecretBinary: smithyClient.SENSITIVE_STRING }),
|
|
310
|
+
...(obj.SecretString && { SecretString: smithyClient.SENSITIVE_STRING }),
|
|
311
|
+
});
|
|
312
|
+
const BatchGetSecretValueResponseFilterSensitiveLog = (obj) => ({
|
|
313
|
+
...obj,
|
|
314
|
+
...(obj.SecretValues && { SecretValues: obj.SecretValues.map((item) => SecretValueEntryFilterSensitiveLog(item)) }),
|
|
315
|
+
});
|
|
316
|
+
const CreateSecretRequestFilterSensitiveLog = (obj) => ({
|
|
317
|
+
...obj,
|
|
318
|
+
...(obj.SecretBinary && { SecretBinary: smithyClient.SENSITIVE_STRING }),
|
|
319
|
+
...(obj.SecretString && { SecretString: smithyClient.SENSITIVE_STRING }),
|
|
320
|
+
});
|
|
321
|
+
const GetRandomPasswordResponseFilterSensitiveLog = (obj) => ({
|
|
322
|
+
...obj,
|
|
323
|
+
...(obj.RandomPassword && { RandomPassword: smithyClient.SENSITIVE_STRING }),
|
|
324
|
+
});
|
|
325
|
+
const GetSecretValueResponseFilterSensitiveLog = (obj) => ({
|
|
326
|
+
...obj,
|
|
327
|
+
...(obj.SecretBinary && { SecretBinary: smithyClient.SENSITIVE_STRING }),
|
|
328
|
+
...(obj.SecretString && { SecretString: smithyClient.SENSITIVE_STRING }),
|
|
329
|
+
});
|
|
330
|
+
const PutSecretValueRequestFilterSensitiveLog = (obj) => ({
|
|
331
|
+
...obj,
|
|
332
|
+
...(obj.SecretBinary && { SecretBinary: smithyClient.SENSITIVE_STRING }),
|
|
333
|
+
...(obj.SecretString && { SecretString: smithyClient.SENSITIVE_STRING }),
|
|
334
|
+
...(obj.RotationToken && { RotationToken: smithyClient.SENSITIVE_STRING }),
|
|
335
|
+
});
|
|
336
|
+
const UpdateSecretRequestFilterSensitiveLog = (obj) => ({
|
|
337
|
+
...obj,
|
|
338
|
+
...(obj.SecretBinary && { SecretBinary: smithyClient.SENSITIVE_STRING }),
|
|
339
|
+
...(obj.SecretString && { SecretString: smithyClient.SENSITIVE_STRING }),
|
|
340
|
+
});
|
|
245
341
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
342
|
+
const se_BatchGetSecretValueCommand = async (input, context) => {
|
|
343
|
+
const headers = sharedHeaders("BatchGetSecretValue");
|
|
344
|
+
let body;
|
|
345
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
346
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
|
+
};
|
|
348
|
+
const se_CancelRotateSecretCommand = async (input, context) => {
|
|
349
|
+
const headers = sharedHeaders("CancelRotateSecret");
|
|
350
|
+
let body;
|
|
351
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
352
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
353
|
+
};
|
|
354
|
+
const se_CreateSecretCommand = async (input, context) => {
|
|
355
|
+
const headers = sharedHeaders("CreateSecret");
|
|
356
|
+
let body;
|
|
357
|
+
body = JSON.stringify(se_CreateSecretRequest(input, context));
|
|
358
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
+
};
|
|
360
|
+
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
361
|
+
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
362
|
+
let body;
|
|
363
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
364
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
|
+
};
|
|
366
|
+
const se_DeleteSecretCommand = async (input, context) => {
|
|
367
|
+
const headers = sharedHeaders("DeleteSecret");
|
|
368
|
+
let body;
|
|
369
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
370
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
371
|
+
};
|
|
372
|
+
const se_DescribeSecretCommand = async (input, context) => {
|
|
373
|
+
const headers = sharedHeaders("DescribeSecret");
|
|
374
|
+
let body;
|
|
375
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
376
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
|
+
};
|
|
378
|
+
const se_GetRandomPasswordCommand = async (input, context) => {
|
|
379
|
+
const headers = sharedHeaders("GetRandomPassword");
|
|
380
|
+
let body;
|
|
381
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
382
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
383
|
+
};
|
|
384
|
+
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
385
|
+
const headers = sharedHeaders("GetResourcePolicy");
|
|
386
|
+
let body;
|
|
387
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
388
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
389
|
+
};
|
|
390
|
+
const se_GetSecretValueCommand = async (input, context) => {
|
|
391
|
+
const headers = sharedHeaders("GetSecretValue");
|
|
392
|
+
let body;
|
|
393
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
394
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
395
|
+
};
|
|
396
|
+
const se_ListSecretsCommand = async (input, context) => {
|
|
397
|
+
const headers = sharedHeaders("ListSecrets");
|
|
398
|
+
let body;
|
|
399
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
400
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
|
+
};
|
|
402
|
+
const se_ListSecretVersionIdsCommand = async (input, context) => {
|
|
403
|
+
const headers = sharedHeaders("ListSecretVersionIds");
|
|
404
|
+
let body;
|
|
405
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
406
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
407
|
+
};
|
|
408
|
+
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
409
|
+
const headers = sharedHeaders("PutResourcePolicy");
|
|
410
|
+
let body;
|
|
411
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
412
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
413
|
+
};
|
|
414
|
+
const se_PutSecretValueCommand = async (input, context) => {
|
|
415
|
+
const headers = sharedHeaders("PutSecretValue");
|
|
416
|
+
let body;
|
|
417
|
+
body = JSON.stringify(se_PutSecretValueRequest(input, context));
|
|
418
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
419
|
+
};
|
|
420
|
+
const se_RemoveRegionsFromReplicationCommand = async (input, context) => {
|
|
421
|
+
const headers = sharedHeaders("RemoveRegionsFromReplication");
|
|
422
|
+
let body;
|
|
423
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
424
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
425
|
+
};
|
|
426
|
+
const se_ReplicateSecretToRegionsCommand = async (input, context) => {
|
|
427
|
+
const headers = sharedHeaders("ReplicateSecretToRegions");
|
|
428
|
+
let body;
|
|
429
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
430
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
431
|
+
};
|
|
432
|
+
const se_RestoreSecretCommand = async (input, context) => {
|
|
433
|
+
const headers = sharedHeaders("RestoreSecret");
|
|
434
|
+
let body;
|
|
435
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
436
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
|
+
};
|
|
438
|
+
const se_RotateSecretCommand = async (input, context) => {
|
|
439
|
+
const headers = sharedHeaders("RotateSecret");
|
|
440
|
+
let body;
|
|
441
|
+
body = JSON.stringify(se_RotateSecretRequest(input));
|
|
442
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
443
|
+
};
|
|
444
|
+
const se_StopReplicationToReplicaCommand = async (input, context) => {
|
|
445
|
+
const headers = sharedHeaders("StopReplicationToReplica");
|
|
446
|
+
let body;
|
|
447
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
448
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
449
|
+
};
|
|
450
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
451
|
+
const headers = sharedHeaders("TagResource");
|
|
452
|
+
let body;
|
|
453
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
454
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
455
|
+
};
|
|
456
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
457
|
+
const headers = sharedHeaders("UntagResource");
|
|
458
|
+
let body;
|
|
459
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
460
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
461
|
+
};
|
|
462
|
+
const se_UpdateSecretCommand = async (input, context) => {
|
|
463
|
+
const headers = sharedHeaders("UpdateSecret");
|
|
464
|
+
let body;
|
|
465
|
+
body = JSON.stringify(se_UpdateSecretRequest(input, context));
|
|
466
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
467
|
+
};
|
|
468
|
+
const se_UpdateSecretVersionStageCommand = async (input, context) => {
|
|
469
|
+
const headers = sharedHeaders("UpdateSecretVersionStage");
|
|
470
|
+
let body;
|
|
471
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
472
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
473
|
+
};
|
|
474
|
+
const se_ValidateResourcePolicyCommand = async (input, context) => {
|
|
475
|
+
const headers = sharedHeaders("ValidateResourcePolicy");
|
|
476
|
+
let body;
|
|
477
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
478
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
479
|
+
};
|
|
480
|
+
const de_BatchGetSecretValueCommand = async (output, context) => {
|
|
481
|
+
if (output.statusCode >= 300) {
|
|
482
|
+
return de_CommandError(output, context);
|
|
483
|
+
}
|
|
484
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
485
|
+
let contents = {};
|
|
486
|
+
contents = de_BatchGetSecretValueResponse(data, context);
|
|
487
|
+
const response = {
|
|
488
|
+
$metadata: deserializeMetadata(output),
|
|
489
|
+
...contents,
|
|
490
|
+
};
|
|
491
|
+
return response;
|
|
492
|
+
};
|
|
493
|
+
const de_CancelRotateSecretCommand = async (output, context) => {
|
|
494
|
+
if (output.statusCode >= 300) {
|
|
495
|
+
return de_CommandError(output, context);
|
|
496
|
+
}
|
|
497
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
498
|
+
let contents = {};
|
|
499
|
+
contents = smithyClient._json(data);
|
|
500
|
+
const response = {
|
|
501
|
+
$metadata: deserializeMetadata(output),
|
|
502
|
+
...contents,
|
|
503
|
+
};
|
|
504
|
+
return response;
|
|
505
|
+
};
|
|
506
|
+
const de_CreateSecretCommand = async (output, context) => {
|
|
507
|
+
if (output.statusCode >= 300) {
|
|
508
|
+
return de_CommandError(output, context);
|
|
509
|
+
}
|
|
510
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
511
|
+
let contents = {};
|
|
512
|
+
contents = de_CreateSecretResponse(data);
|
|
513
|
+
const response = {
|
|
514
|
+
$metadata: deserializeMetadata(output),
|
|
515
|
+
...contents,
|
|
516
|
+
};
|
|
517
|
+
return response;
|
|
518
|
+
};
|
|
519
|
+
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
520
|
+
if (output.statusCode >= 300) {
|
|
521
|
+
return de_CommandError(output, context);
|
|
522
|
+
}
|
|
523
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
524
|
+
let contents = {};
|
|
525
|
+
contents = smithyClient._json(data);
|
|
526
|
+
const response = {
|
|
527
|
+
$metadata: deserializeMetadata(output),
|
|
528
|
+
...contents,
|
|
529
|
+
};
|
|
530
|
+
return response;
|
|
531
|
+
};
|
|
532
|
+
const de_DeleteSecretCommand = async (output, context) => {
|
|
533
|
+
if (output.statusCode >= 300) {
|
|
534
|
+
return de_CommandError(output, context);
|
|
535
|
+
}
|
|
536
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
537
|
+
let contents = {};
|
|
538
|
+
contents = de_DeleteSecretResponse(data);
|
|
539
|
+
const response = {
|
|
540
|
+
$metadata: deserializeMetadata(output),
|
|
541
|
+
...contents,
|
|
542
|
+
};
|
|
543
|
+
return response;
|
|
544
|
+
};
|
|
545
|
+
const de_DescribeSecretCommand = async (output, context) => {
|
|
546
|
+
if (output.statusCode >= 300) {
|
|
547
|
+
return de_CommandError(output, context);
|
|
548
|
+
}
|
|
549
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
550
|
+
let contents = {};
|
|
551
|
+
contents = de_DescribeSecretResponse(data);
|
|
552
|
+
const response = {
|
|
553
|
+
$metadata: deserializeMetadata(output),
|
|
554
|
+
...contents,
|
|
555
|
+
};
|
|
556
|
+
return response;
|
|
557
|
+
};
|
|
558
|
+
const de_GetRandomPasswordCommand = async (output, context) => {
|
|
559
|
+
if (output.statusCode >= 300) {
|
|
560
|
+
return de_CommandError(output, context);
|
|
561
|
+
}
|
|
562
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
563
|
+
let contents = {};
|
|
564
|
+
contents = smithyClient._json(data);
|
|
565
|
+
const response = {
|
|
566
|
+
$metadata: deserializeMetadata(output),
|
|
567
|
+
...contents,
|
|
568
|
+
};
|
|
569
|
+
return response;
|
|
570
|
+
};
|
|
571
|
+
const de_GetResourcePolicyCommand = async (output, context) => {
|
|
572
|
+
if (output.statusCode >= 300) {
|
|
573
|
+
return de_CommandError(output, context);
|
|
574
|
+
}
|
|
575
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
576
|
+
let contents = {};
|
|
577
|
+
contents = smithyClient._json(data);
|
|
578
|
+
const response = {
|
|
579
|
+
$metadata: deserializeMetadata(output),
|
|
580
|
+
...contents,
|
|
581
|
+
};
|
|
582
|
+
return response;
|
|
583
|
+
};
|
|
584
|
+
const de_GetSecretValueCommand = async (output, context) => {
|
|
585
|
+
if (output.statusCode >= 300) {
|
|
586
|
+
return de_CommandError(output, context);
|
|
587
|
+
}
|
|
588
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
589
|
+
let contents = {};
|
|
590
|
+
contents = de_GetSecretValueResponse(data, context);
|
|
591
|
+
const response = {
|
|
592
|
+
$metadata: deserializeMetadata(output),
|
|
593
|
+
...contents,
|
|
594
|
+
};
|
|
595
|
+
return response;
|
|
596
|
+
};
|
|
597
|
+
const de_ListSecretsCommand = async (output, context) => {
|
|
598
|
+
if (output.statusCode >= 300) {
|
|
599
|
+
return de_CommandError(output, context);
|
|
600
|
+
}
|
|
601
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
602
|
+
let contents = {};
|
|
603
|
+
contents = de_ListSecretsResponse(data);
|
|
604
|
+
const response = {
|
|
605
|
+
$metadata: deserializeMetadata(output),
|
|
606
|
+
...contents,
|
|
607
|
+
};
|
|
608
|
+
return response;
|
|
609
|
+
};
|
|
610
|
+
const de_ListSecretVersionIdsCommand = async (output, context) => {
|
|
611
|
+
if (output.statusCode >= 300) {
|
|
612
|
+
return de_CommandError(output, context);
|
|
613
|
+
}
|
|
614
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
615
|
+
let contents = {};
|
|
616
|
+
contents = de_ListSecretVersionIdsResponse(data);
|
|
617
|
+
const response = {
|
|
618
|
+
$metadata: deserializeMetadata(output),
|
|
619
|
+
...contents,
|
|
620
|
+
};
|
|
621
|
+
return response;
|
|
622
|
+
};
|
|
623
|
+
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
624
|
+
if (output.statusCode >= 300) {
|
|
625
|
+
return de_CommandError(output, context);
|
|
626
|
+
}
|
|
627
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
628
|
+
let contents = {};
|
|
629
|
+
contents = smithyClient._json(data);
|
|
630
|
+
const response = {
|
|
631
|
+
$metadata: deserializeMetadata(output),
|
|
632
|
+
...contents,
|
|
633
|
+
};
|
|
634
|
+
return response;
|
|
635
|
+
};
|
|
636
|
+
const de_PutSecretValueCommand = async (output, context) => {
|
|
637
|
+
if (output.statusCode >= 300) {
|
|
638
|
+
return de_CommandError(output, context);
|
|
639
|
+
}
|
|
640
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
641
|
+
let contents = {};
|
|
642
|
+
contents = smithyClient._json(data);
|
|
643
|
+
const response = {
|
|
644
|
+
$metadata: deserializeMetadata(output),
|
|
645
|
+
...contents,
|
|
646
|
+
};
|
|
647
|
+
return response;
|
|
648
|
+
};
|
|
649
|
+
const de_RemoveRegionsFromReplicationCommand = async (output, context) => {
|
|
650
|
+
if (output.statusCode >= 300) {
|
|
651
|
+
return de_CommandError(output, context);
|
|
652
|
+
}
|
|
653
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
654
|
+
let contents = {};
|
|
655
|
+
contents = de_RemoveRegionsFromReplicationResponse(data);
|
|
656
|
+
const response = {
|
|
657
|
+
$metadata: deserializeMetadata(output),
|
|
658
|
+
...contents,
|
|
659
|
+
};
|
|
660
|
+
return response;
|
|
661
|
+
};
|
|
662
|
+
const de_ReplicateSecretToRegionsCommand = async (output, context) => {
|
|
663
|
+
if (output.statusCode >= 300) {
|
|
664
|
+
return de_CommandError(output, context);
|
|
665
|
+
}
|
|
666
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
667
|
+
let contents = {};
|
|
668
|
+
contents = de_ReplicateSecretToRegionsResponse(data);
|
|
669
|
+
const response = {
|
|
670
|
+
$metadata: deserializeMetadata(output),
|
|
671
|
+
...contents,
|
|
672
|
+
};
|
|
673
|
+
return response;
|
|
674
|
+
};
|
|
675
|
+
const de_RestoreSecretCommand = async (output, context) => {
|
|
676
|
+
if (output.statusCode >= 300) {
|
|
677
|
+
return de_CommandError(output, context);
|
|
678
|
+
}
|
|
679
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
680
|
+
let contents = {};
|
|
681
|
+
contents = smithyClient._json(data);
|
|
682
|
+
const response = {
|
|
683
|
+
$metadata: deserializeMetadata(output),
|
|
684
|
+
...contents,
|
|
685
|
+
};
|
|
686
|
+
return response;
|
|
687
|
+
};
|
|
688
|
+
const de_RotateSecretCommand = async (output, context) => {
|
|
689
|
+
if (output.statusCode >= 300) {
|
|
690
|
+
return de_CommandError(output, context);
|
|
691
|
+
}
|
|
692
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
693
|
+
let contents = {};
|
|
694
|
+
contents = smithyClient._json(data);
|
|
695
|
+
const response = {
|
|
696
|
+
$metadata: deserializeMetadata(output),
|
|
697
|
+
...contents,
|
|
698
|
+
};
|
|
699
|
+
return response;
|
|
700
|
+
};
|
|
701
|
+
const de_StopReplicationToReplicaCommand = async (output, context) => {
|
|
702
|
+
if (output.statusCode >= 300) {
|
|
703
|
+
return de_CommandError(output, context);
|
|
704
|
+
}
|
|
705
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
706
|
+
let contents = {};
|
|
707
|
+
contents = smithyClient._json(data);
|
|
708
|
+
const response = {
|
|
709
|
+
$metadata: deserializeMetadata(output),
|
|
710
|
+
...contents,
|
|
711
|
+
};
|
|
712
|
+
return response;
|
|
713
|
+
};
|
|
714
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
715
|
+
if (output.statusCode >= 300) {
|
|
716
|
+
return de_CommandError(output, context);
|
|
717
|
+
}
|
|
718
|
+
await smithyClient.collectBody(output.body, context);
|
|
719
|
+
const response = {
|
|
720
|
+
$metadata: deserializeMetadata(output),
|
|
721
|
+
};
|
|
722
|
+
return response;
|
|
723
|
+
};
|
|
724
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
725
|
+
if (output.statusCode >= 300) {
|
|
726
|
+
return de_CommandError(output, context);
|
|
727
|
+
}
|
|
728
|
+
await smithyClient.collectBody(output.body, context);
|
|
729
|
+
const response = {
|
|
730
|
+
$metadata: deserializeMetadata(output),
|
|
731
|
+
};
|
|
732
|
+
return response;
|
|
733
|
+
};
|
|
734
|
+
const de_UpdateSecretCommand = async (output, context) => {
|
|
735
|
+
if (output.statusCode >= 300) {
|
|
736
|
+
return de_CommandError(output, context);
|
|
737
|
+
}
|
|
738
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
739
|
+
let contents = {};
|
|
740
|
+
contents = smithyClient._json(data);
|
|
741
|
+
const response = {
|
|
742
|
+
$metadata: deserializeMetadata(output),
|
|
743
|
+
...contents,
|
|
744
|
+
};
|
|
745
|
+
return response;
|
|
746
|
+
};
|
|
747
|
+
const de_UpdateSecretVersionStageCommand = async (output, context) => {
|
|
748
|
+
if (output.statusCode >= 300) {
|
|
749
|
+
return de_CommandError(output, context);
|
|
750
|
+
}
|
|
751
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
752
|
+
let contents = {};
|
|
753
|
+
contents = smithyClient._json(data);
|
|
754
|
+
const response = {
|
|
755
|
+
$metadata: deserializeMetadata(output),
|
|
756
|
+
...contents,
|
|
757
|
+
};
|
|
758
|
+
return response;
|
|
759
|
+
};
|
|
760
|
+
const de_ValidateResourcePolicyCommand = async (output, context) => {
|
|
761
|
+
if (output.statusCode >= 300) {
|
|
762
|
+
return de_CommandError(output, context);
|
|
763
|
+
}
|
|
764
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
765
|
+
let contents = {};
|
|
766
|
+
contents = smithyClient._json(data);
|
|
767
|
+
const response = {
|
|
768
|
+
$metadata: deserializeMetadata(output),
|
|
769
|
+
...contents,
|
|
770
|
+
};
|
|
771
|
+
return response;
|
|
772
|
+
};
|
|
773
|
+
const de_CommandError = async (output, context) => {
|
|
774
|
+
const parsedOutput = {
|
|
775
|
+
...output,
|
|
776
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
777
|
+
};
|
|
778
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
+
switch (errorCode) {
|
|
780
|
+
case "DecryptionFailure":
|
|
781
|
+
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
782
|
+
throw await de_DecryptionFailureRes(parsedOutput);
|
|
783
|
+
case "InternalServiceError":
|
|
784
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
785
|
+
throw await de_InternalServiceErrorRes(parsedOutput);
|
|
786
|
+
case "InvalidNextTokenException":
|
|
787
|
+
case "com.amazonaws.secretsmanager#InvalidNextTokenException":
|
|
788
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput);
|
|
789
|
+
case "InvalidParameterException":
|
|
790
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
791
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput);
|
|
792
|
+
case "InvalidRequestException":
|
|
793
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
794
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput);
|
|
795
|
+
case "ResourceNotFoundException":
|
|
796
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
797
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
798
|
+
case "EncryptionFailure":
|
|
799
|
+
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
800
|
+
throw await de_EncryptionFailureRes(parsedOutput);
|
|
801
|
+
case "LimitExceededException":
|
|
802
|
+
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
803
|
+
throw await de_LimitExceededExceptionRes(parsedOutput);
|
|
804
|
+
case "MalformedPolicyDocumentException":
|
|
805
|
+
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
806
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput);
|
|
807
|
+
case "PreconditionNotMetException":
|
|
808
|
+
case "com.amazonaws.secretsmanager#PreconditionNotMetException":
|
|
809
|
+
throw await de_PreconditionNotMetExceptionRes(parsedOutput);
|
|
810
|
+
case "ResourceExistsException":
|
|
811
|
+
case "com.amazonaws.secretsmanager#ResourceExistsException":
|
|
812
|
+
throw await de_ResourceExistsExceptionRes(parsedOutput);
|
|
813
|
+
case "PublicPolicyException":
|
|
814
|
+
case "com.amazonaws.secretsmanager#PublicPolicyException":
|
|
815
|
+
throw await de_PublicPolicyExceptionRes(parsedOutput);
|
|
816
|
+
default:
|
|
817
|
+
const parsedBody = parsedOutput.body;
|
|
818
|
+
return throwDefaultError({
|
|
819
|
+
output,
|
|
820
|
+
parsedBody,
|
|
821
|
+
errorCode,
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
};
|
|
825
|
+
const de_DecryptionFailureRes = async (parsedOutput, context) => {
|
|
826
|
+
const body = parsedOutput.body;
|
|
827
|
+
const deserialized = smithyClient._json(body);
|
|
828
|
+
const exception = new DecryptionFailure({
|
|
829
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
830
|
+
...deserialized,
|
|
271
831
|
});
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
name = "InternalServiceError";
|
|
281
|
-
$fault = "server";
|
|
282
|
-
Message;
|
|
283
|
-
/**
|
|
284
|
-
* @internal
|
|
285
|
-
*/
|
|
286
|
-
constructor(opts) {
|
|
287
|
-
super({
|
|
288
|
-
name: "InternalServiceError",
|
|
289
|
-
$fault: "server",
|
|
290
|
-
...opts
|
|
832
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
833
|
+
};
|
|
834
|
+
const de_EncryptionFailureRes = async (parsedOutput, context) => {
|
|
835
|
+
const body = parsedOutput.body;
|
|
836
|
+
const deserialized = smithyClient._json(body);
|
|
837
|
+
const exception = new EncryptionFailure({
|
|
838
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
839
|
+
...deserialized,
|
|
291
840
|
});
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
name = "InvalidNextTokenException";
|
|
301
|
-
$fault = "client";
|
|
302
|
-
Message;
|
|
303
|
-
/**
|
|
304
|
-
* @internal
|
|
305
|
-
*/
|
|
306
|
-
constructor(opts) {
|
|
307
|
-
super({
|
|
308
|
-
name: "InvalidNextTokenException",
|
|
309
|
-
$fault: "client",
|
|
310
|
-
...opts
|
|
841
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
842
|
+
};
|
|
843
|
+
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
844
|
+
const body = parsedOutput.body;
|
|
845
|
+
const deserialized = smithyClient._json(body);
|
|
846
|
+
const exception = new InternalServiceError({
|
|
847
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
848
|
+
...deserialized,
|
|
311
849
|
});
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
name = "InvalidParameterException";
|
|
321
|
-
$fault = "client";
|
|
322
|
-
Message;
|
|
323
|
-
/**
|
|
324
|
-
* @internal
|
|
325
|
-
*/
|
|
326
|
-
constructor(opts) {
|
|
327
|
-
super({
|
|
328
|
-
name: "InvalidParameterException",
|
|
329
|
-
$fault: "client",
|
|
330
|
-
...opts
|
|
850
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
851
|
+
};
|
|
852
|
+
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
853
|
+
const body = parsedOutput.body;
|
|
854
|
+
const deserialized = smithyClient._json(body);
|
|
855
|
+
const exception = new InvalidNextTokenException({
|
|
856
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
857
|
+
...deserialized,
|
|
331
858
|
});
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
name = "InvalidRequestException";
|
|
341
|
-
$fault = "client";
|
|
342
|
-
Message;
|
|
343
|
-
/**
|
|
344
|
-
* @internal
|
|
345
|
-
*/
|
|
346
|
-
constructor(opts) {
|
|
347
|
-
super({
|
|
348
|
-
name: "InvalidRequestException",
|
|
349
|
-
$fault: "client",
|
|
350
|
-
...opts
|
|
859
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
860
|
+
};
|
|
861
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
862
|
+
const body = parsedOutput.body;
|
|
863
|
+
const deserialized = smithyClient._json(body);
|
|
864
|
+
const exception = new InvalidParameterException({
|
|
865
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
866
|
+
...deserialized,
|
|
351
867
|
});
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
name = "ResourceNotFoundException";
|
|
361
|
-
$fault = "client";
|
|
362
|
-
Message;
|
|
363
|
-
/**
|
|
364
|
-
* @internal
|
|
365
|
-
*/
|
|
366
|
-
constructor(opts) {
|
|
367
|
-
super({
|
|
368
|
-
name: "ResourceNotFoundException",
|
|
369
|
-
$fault: "client",
|
|
370
|
-
...opts
|
|
868
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
869
|
+
};
|
|
870
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
871
|
+
const body = parsedOutput.body;
|
|
872
|
+
const deserialized = smithyClient._json(body);
|
|
873
|
+
const exception = new InvalidRequestException({
|
|
874
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
875
|
+
...deserialized,
|
|
371
876
|
});
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
};
|
|
381
|
-
var EncryptionFailure = class _EncryptionFailure extends SecretsManagerServiceException {
|
|
382
|
-
static {
|
|
383
|
-
__name(this, "EncryptionFailure");
|
|
384
|
-
}
|
|
385
|
-
name = "EncryptionFailure";
|
|
386
|
-
$fault = "client";
|
|
387
|
-
Message;
|
|
388
|
-
/**
|
|
389
|
-
* @internal
|
|
390
|
-
*/
|
|
391
|
-
constructor(opts) {
|
|
392
|
-
super({
|
|
393
|
-
name: "EncryptionFailure",
|
|
394
|
-
$fault: "client",
|
|
395
|
-
...opts
|
|
877
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
878
|
+
};
|
|
879
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
880
|
+
const body = parsedOutput.body;
|
|
881
|
+
const deserialized = smithyClient._json(body);
|
|
882
|
+
const exception = new LimitExceededException({
|
|
883
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
884
|
+
...deserialized,
|
|
396
885
|
});
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
name = "LimitExceededException";
|
|
406
|
-
$fault = "client";
|
|
407
|
-
Message;
|
|
408
|
-
/**
|
|
409
|
-
* @internal
|
|
410
|
-
*/
|
|
411
|
-
constructor(opts) {
|
|
412
|
-
super({
|
|
413
|
-
name: "LimitExceededException",
|
|
414
|
-
$fault: "client",
|
|
415
|
-
...opts
|
|
886
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
887
|
+
};
|
|
888
|
+
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
889
|
+
const body = parsedOutput.body;
|
|
890
|
+
const deserialized = smithyClient._json(body);
|
|
891
|
+
const exception = new MalformedPolicyDocumentException({
|
|
892
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
893
|
+
...deserialized,
|
|
416
894
|
});
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
name = "MalformedPolicyDocumentException";
|
|
426
|
-
$fault = "client";
|
|
427
|
-
Message;
|
|
428
|
-
/**
|
|
429
|
-
* @internal
|
|
430
|
-
*/
|
|
431
|
-
constructor(opts) {
|
|
432
|
-
super({
|
|
433
|
-
name: "MalformedPolicyDocumentException",
|
|
434
|
-
$fault: "client",
|
|
435
|
-
...opts
|
|
895
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
896
|
+
};
|
|
897
|
+
const de_PreconditionNotMetExceptionRes = async (parsedOutput, context) => {
|
|
898
|
+
const body = parsedOutput.body;
|
|
899
|
+
const deserialized = smithyClient._json(body);
|
|
900
|
+
const exception = new PreconditionNotMetException({
|
|
901
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
902
|
+
...deserialized,
|
|
436
903
|
});
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
name = "PreconditionNotMetException";
|
|
446
|
-
$fault = "client";
|
|
447
|
-
Message;
|
|
448
|
-
/**
|
|
449
|
-
* @internal
|
|
450
|
-
*/
|
|
451
|
-
constructor(opts) {
|
|
452
|
-
super({
|
|
453
|
-
name: "PreconditionNotMetException",
|
|
454
|
-
$fault: "client",
|
|
455
|
-
...opts
|
|
904
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
905
|
+
};
|
|
906
|
+
const de_PublicPolicyExceptionRes = async (parsedOutput, context) => {
|
|
907
|
+
const body = parsedOutput.body;
|
|
908
|
+
const deserialized = smithyClient._json(body);
|
|
909
|
+
const exception = new PublicPolicyException({
|
|
910
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
911
|
+
...deserialized,
|
|
456
912
|
});
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
name = "ResourceExistsException";
|
|
466
|
-
$fault = "client";
|
|
467
|
-
Message;
|
|
468
|
-
/**
|
|
469
|
-
* @internal
|
|
470
|
-
*/
|
|
471
|
-
constructor(opts) {
|
|
472
|
-
super({
|
|
473
|
-
name: "ResourceExistsException",
|
|
474
|
-
$fault: "client",
|
|
475
|
-
...opts
|
|
913
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
914
|
+
};
|
|
915
|
+
const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
|
|
916
|
+
const body = parsedOutput.body;
|
|
917
|
+
const deserialized = smithyClient._json(body);
|
|
918
|
+
const exception = new ResourceExistsException({
|
|
919
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
920
|
+
...deserialized,
|
|
476
921
|
});
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
var PublicPolicyException = class _PublicPolicyException extends SecretsManagerServiceException {
|
|
486
|
-
static {
|
|
487
|
-
__name(this, "PublicPolicyException");
|
|
488
|
-
}
|
|
489
|
-
name = "PublicPolicyException";
|
|
490
|
-
$fault = "client";
|
|
491
|
-
Message;
|
|
492
|
-
/**
|
|
493
|
-
* @internal
|
|
494
|
-
*/
|
|
495
|
-
constructor(opts) {
|
|
496
|
-
super({
|
|
497
|
-
name: "PublicPolicyException",
|
|
498
|
-
$fault: "client",
|
|
499
|
-
...opts
|
|
922
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
923
|
+
};
|
|
924
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
925
|
+
const body = parsedOutput.body;
|
|
926
|
+
const deserialized = smithyClient._json(body);
|
|
927
|
+
const exception = new ResourceNotFoundException({
|
|
928
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
929
|
+
...deserialized,
|
|
500
930
|
});
|
|
501
|
-
|
|
502
|
-
this.Message = opts.Message;
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
var SecretValueEntryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
506
|
-
...obj,
|
|
507
|
-
...obj.SecretBinary && { SecretBinary: import_smithy_client.SENSITIVE_STRING },
|
|
508
|
-
...obj.SecretString && { SecretString: import_smithy_client.SENSITIVE_STRING }
|
|
509
|
-
}), "SecretValueEntryFilterSensitiveLog");
|
|
510
|
-
var BatchGetSecretValueResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
511
|
-
...obj,
|
|
512
|
-
...obj.SecretValues && { SecretValues: obj.SecretValues.map((item) => SecretValueEntryFilterSensitiveLog(item)) }
|
|
513
|
-
}), "BatchGetSecretValueResponseFilterSensitiveLog");
|
|
514
|
-
var CreateSecretRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
515
|
-
...obj,
|
|
516
|
-
...obj.SecretBinary && { SecretBinary: import_smithy_client.SENSITIVE_STRING },
|
|
517
|
-
...obj.SecretString && { SecretString: import_smithy_client.SENSITIVE_STRING }
|
|
518
|
-
}), "CreateSecretRequestFilterSensitiveLog");
|
|
519
|
-
var GetRandomPasswordResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
520
|
-
...obj,
|
|
521
|
-
...obj.RandomPassword && { RandomPassword: import_smithy_client.SENSITIVE_STRING }
|
|
522
|
-
}), "GetRandomPasswordResponseFilterSensitiveLog");
|
|
523
|
-
var GetSecretValueResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
524
|
-
...obj,
|
|
525
|
-
...obj.SecretBinary && { SecretBinary: import_smithy_client.SENSITIVE_STRING },
|
|
526
|
-
...obj.SecretString && { SecretString: import_smithy_client.SENSITIVE_STRING }
|
|
527
|
-
}), "GetSecretValueResponseFilterSensitiveLog");
|
|
528
|
-
var PutSecretValueRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
529
|
-
...obj,
|
|
530
|
-
...obj.SecretBinary && { SecretBinary: import_smithy_client.SENSITIVE_STRING },
|
|
531
|
-
...obj.SecretString && { SecretString: import_smithy_client.SENSITIVE_STRING },
|
|
532
|
-
...obj.RotationToken && { RotationToken: import_smithy_client.SENSITIVE_STRING }
|
|
533
|
-
}), "PutSecretValueRequestFilterSensitiveLog");
|
|
534
|
-
var UpdateSecretRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
535
|
-
...obj,
|
|
536
|
-
...obj.SecretBinary && { SecretBinary: import_smithy_client.SENSITIVE_STRING },
|
|
537
|
-
...obj.SecretString && { SecretString: import_smithy_client.SENSITIVE_STRING }
|
|
538
|
-
}), "UpdateSecretRequestFilterSensitiveLog");
|
|
539
|
-
|
|
540
|
-
// src/protocols/Aws_json1_1.ts
|
|
541
|
-
var import_core2 = require("@aws-sdk/core");
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
var import_uuid = require("@smithy/uuid");
|
|
545
|
-
var se_BatchGetSecretValueCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
546
|
-
const headers = sharedHeaders("BatchGetSecretValue");
|
|
547
|
-
let body;
|
|
548
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
549
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
550
|
-
}, "se_BatchGetSecretValueCommand");
|
|
551
|
-
var se_CancelRotateSecretCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
552
|
-
const headers = sharedHeaders("CancelRotateSecret");
|
|
553
|
-
let body;
|
|
554
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
555
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
556
|
-
}, "se_CancelRotateSecretCommand");
|
|
557
|
-
var se_CreateSecretCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
558
|
-
const headers = sharedHeaders("CreateSecret");
|
|
559
|
-
let body;
|
|
560
|
-
body = JSON.stringify(se_CreateSecretRequest(input, context));
|
|
561
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
562
|
-
}, "se_CreateSecretCommand");
|
|
563
|
-
var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
564
|
-
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
565
|
-
let body;
|
|
566
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
567
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
568
|
-
}, "se_DeleteResourcePolicyCommand");
|
|
569
|
-
var se_DeleteSecretCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
570
|
-
const headers = sharedHeaders("DeleteSecret");
|
|
571
|
-
let body;
|
|
572
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
573
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
574
|
-
}, "se_DeleteSecretCommand");
|
|
575
|
-
var se_DescribeSecretCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
576
|
-
const headers = sharedHeaders("DescribeSecret");
|
|
577
|
-
let body;
|
|
578
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
579
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
580
|
-
}, "se_DescribeSecretCommand");
|
|
581
|
-
var se_GetRandomPasswordCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
582
|
-
const headers = sharedHeaders("GetRandomPassword");
|
|
583
|
-
let body;
|
|
584
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
585
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
586
|
-
}, "se_GetRandomPasswordCommand");
|
|
587
|
-
var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
588
|
-
const headers = sharedHeaders("GetResourcePolicy");
|
|
589
|
-
let body;
|
|
590
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
591
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
592
|
-
}, "se_GetResourcePolicyCommand");
|
|
593
|
-
var se_GetSecretValueCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
594
|
-
const headers = sharedHeaders("GetSecretValue");
|
|
595
|
-
let body;
|
|
596
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
597
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
598
|
-
}, "se_GetSecretValueCommand");
|
|
599
|
-
var se_ListSecretsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
600
|
-
const headers = sharedHeaders("ListSecrets");
|
|
601
|
-
let body;
|
|
602
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
603
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
604
|
-
}, "se_ListSecretsCommand");
|
|
605
|
-
var se_ListSecretVersionIdsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
606
|
-
const headers = sharedHeaders("ListSecretVersionIds");
|
|
607
|
-
let body;
|
|
608
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
609
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
610
|
-
}, "se_ListSecretVersionIdsCommand");
|
|
611
|
-
var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
612
|
-
const headers = sharedHeaders("PutResourcePolicy");
|
|
613
|
-
let body;
|
|
614
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
615
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
616
|
-
}, "se_PutResourcePolicyCommand");
|
|
617
|
-
var se_PutSecretValueCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
618
|
-
const headers = sharedHeaders("PutSecretValue");
|
|
619
|
-
let body;
|
|
620
|
-
body = JSON.stringify(se_PutSecretValueRequest(input, context));
|
|
621
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
622
|
-
}, "se_PutSecretValueCommand");
|
|
623
|
-
var se_RemoveRegionsFromReplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
624
|
-
const headers = sharedHeaders("RemoveRegionsFromReplication");
|
|
625
|
-
let body;
|
|
626
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
627
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
628
|
-
}, "se_RemoveRegionsFromReplicationCommand");
|
|
629
|
-
var se_ReplicateSecretToRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
630
|
-
const headers = sharedHeaders("ReplicateSecretToRegions");
|
|
631
|
-
let body;
|
|
632
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
633
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
634
|
-
}, "se_ReplicateSecretToRegionsCommand");
|
|
635
|
-
var se_RestoreSecretCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
636
|
-
const headers = sharedHeaders("RestoreSecret");
|
|
637
|
-
let body;
|
|
638
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
639
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
640
|
-
}, "se_RestoreSecretCommand");
|
|
641
|
-
var se_RotateSecretCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
642
|
-
const headers = sharedHeaders("RotateSecret");
|
|
643
|
-
let body;
|
|
644
|
-
body = JSON.stringify(se_RotateSecretRequest(input, context));
|
|
645
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
646
|
-
}, "se_RotateSecretCommand");
|
|
647
|
-
var se_StopReplicationToReplicaCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
648
|
-
const headers = sharedHeaders("StopReplicationToReplica");
|
|
649
|
-
let body;
|
|
650
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
651
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
652
|
-
}, "se_StopReplicationToReplicaCommand");
|
|
653
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
654
|
-
const headers = sharedHeaders("TagResource");
|
|
655
|
-
let body;
|
|
656
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
657
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
658
|
-
}, "se_TagResourceCommand");
|
|
659
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
660
|
-
const headers = sharedHeaders("UntagResource");
|
|
661
|
-
let body;
|
|
662
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
663
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
664
|
-
}, "se_UntagResourceCommand");
|
|
665
|
-
var se_UpdateSecretCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
666
|
-
const headers = sharedHeaders("UpdateSecret");
|
|
667
|
-
let body;
|
|
668
|
-
body = JSON.stringify(se_UpdateSecretRequest(input, context));
|
|
669
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
670
|
-
}, "se_UpdateSecretCommand");
|
|
671
|
-
var se_UpdateSecretVersionStageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
672
|
-
const headers = sharedHeaders("UpdateSecretVersionStage");
|
|
673
|
-
let body;
|
|
674
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
675
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
676
|
-
}, "se_UpdateSecretVersionStageCommand");
|
|
677
|
-
var se_ValidateResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
678
|
-
const headers = sharedHeaders("ValidateResourcePolicy");
|
|
679
|
-
let body;
|
|
680
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
681
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
682
|
-
}, "se_ValidateResourcePolicyCommand");
|
|
683
|
-
var de_BatchGetSecretValueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
684
|
-
if (output.statusCode >= 300) {
|
|
685
|
-
return de_CommandError(output, context);
|
|
686
|
-
}
|
|
687
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
688
|
-
let contents = {};
|
|
689
|
-
contents = de_BatchGetSecretValueResponse(data, context);
|
|
690
|
-
const response = {
|
|
691
|
-
$metadata: deserializeMetadata(output),
|
|
692
|
-
...contents
|
|
693
|
-
};
|
|
694
|
-
return response;
|
|
695
|
-
}, "de_BatchGetSecretValueCommand");
|
|
696
|
-
var de_CancelRotateSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
697
|
-
if (output.statusCode >= 300) {
|
|
698
|
-
return de_CommandError(output, context);
|
|
699
|
-
}
|
|
700
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
701
|
-
let contents = {};
|
|
702
|
-
contents = (0, import_smithy_client._json)(data);
|
|
703
|
-
const response = {
|
|
704
|
-
$metadata: deserializeMetadata(output),
|
|
705
|
-
...contents
|
|
706
|
-
};
|
|
707
|
-
return response;
|
|
708
|
-
}, "de_CancelRotateSecretCommand");
|
|
709
|
-
var de_CreateSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
710
|
-
if (output.statusCode >= 300) {
|
|
711
|
-
return de_CommandError(output, context);
|
|
712
|
-
}
|
|
713
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
714
|
-
let contents = {};
|
|
715
|
-
contents = de_CreateSecretResponse(data, context);
|
|
716
|
-
const response = {
|
|
717
|
-
$metadata: deserializeMetadata(output),
|
|
718
|
-
...contents
|
|
719
|
-
};
|
|
720
|
-
return response;
|
|
721
|
-
}, "de_CreateSecretCommand");
|
|
722
|
-
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
723
|
-
if (output.statusCode >= 300) {
|
|
724
|
-
return de_CommandError(output, context);
|
|
725
|
-
}
|
|
726
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
727
|
-
let contents = {};
|
|
728
|
-
contents = (0, import_smithy_client._json)(data);
|
|
729
|
-
const response = {
|
|
730
|
-
$metadata: deserializeMetadata(output),
|
|
731
|
-
...contents
|
|
732
|
-
};
|
|
733
|
-
return response;
|
|
734
|
-
}, "de_DeleteResourcePolicyCommand");
|
|
735
|
-
var de_DeleteSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
736
|
-
if (output.statusCode >= 300) {
|
|
737
|
-
return de_CommandError(output, context);
|
|
738
|
-
}
|
|
739
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
740
|
-
let contents = {};
|
|
741
|
-
contents = de_DeleteSecretResponse(data, context);
|
|
742
|
-
const response = {
|
|
743
|
-
$metadata: deserializeMetadata(output),
|
|
744
|
-
...contents
|
|
745
|
-
};
|
|
746
|
-
return response;
|
|
747
|
-
}, "de_DeleteSecretCommand");
|
|
748
|
-
var de_DescribeSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
749
|
-
if (output.statusCode >= 300) {
|
|
750
|
-
return de_CommandError(output, context);
|
|
751
|
-
}
|
|
752
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
753
|
-
let contents = {};
|
|
754
|
-
contents = de_DescribeSecretResponse(data, context);
|
|
755
|
-
const response = {
|
|
756
|
-
$metadata: deserializeMetadata(output),
|
|
757
|
-
...contents
|
|
758
|
-
};
|
|
759
|
-
return response;
|
|
760
|
-
}, "de_DescribeSecretCommand");
|
|
761
|
-
var de_GetRandomPasswordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
762
|
-
if (output.statusCode >= 300) {
|
|
763
|
-
return de_CommandError(output, context);
|
|
764
|
-
}
|
|
765
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
766
|
-
let contents = {};
|
|
767
|
-
contents = (0, import_smithy_client._json)(data);
|
|
768
|
-
const response = {
|
|
769
|
-
$metadata: deserializeMetadata(output),
|
|
770
|
-
...contents
|
|
771
|
-
};
|
|
772
|
-
return response;
|
|
773
|
-
}, "de_GetRandomPasswordCommand");
|
|
774
|
-
var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
775
|
-
if (output.statusCode >= 300) {
|
|
776
|
-
return de_CommandError(output, context);
|
|
777
|
-
}
|
|
778
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
779
|
-
let contents = {};
|
|
780
|
-
contents = (0, import_smithy_client._json)(data);
|
|
781
|
-
const response = {
|
|
782
|
-
$metadata: deserializeMetadata(output),
|
|
783
|
-
...contents
|
|
784
|
-
};
|
|
785
|
-
return response;
|
|
786
|
-
}, "de_GetResourcePolicyCommand");
|
|
787
|
-
var de_GetSecretValueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
788
|
-
if (output.statusCode >= 300) {
|
|
789
|
-
return de_CommandError(output, context);
|
|
790
|
-
}
|
|
791
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
792
|
-
let contents = {};
|
|
793
|
-
contents = de_GetSecretValueResponse(data, context);
|
|
794
|
-
const response = {
|
|
795
|
-
$metadata: deserializeMetadata(output),
|
|
796
|
-
...contents
|
|
797
|
-
};
|
|
798
|
-
return response;
|
|
799
|
-
}, "de_GetSecretValueCommand");
|
|
800
|
-
var de_ListSecretsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
801
|
-
if (output.statusCode >= 300) {
|
|
802
|
-
return de_CommandError(output, context);
|
|
803
|
-
}
|
|
804
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
805
|
-
let contents = {};
|
|
806
|
-
contents = de_ListSecretsResponse(data, context);
|
|
807
|
-
const response = {
|
|
808
|
-
$metadata: deserializeMetadata(output),
|
|
809
|
-
...contents
|
|
810
|
-
};
|
|
811
|
-
return response;
|
|
812
|
-
}, "de_ListSecretsCommand");
|
|
813
|
-
var de_ListSecretVersionIdsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
814
|
-
if (output.statusCode >= 300) {
|
|
815
|
-
return de_CommandError(output, context);
|
|
816
|
-
}
|
|
817
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
818
|
-
let contents = {};
|
|
819
|
-
contents = de_ListSecretVersionIdsResponse(data, context);
|
|
820
|
-
const response = {
|
|
821
|
-
$metadata: deserializeMetadata(output),
|
|
822
|
-
...contents
|
|
823
|
-
};
|
|
824
|
-
return response;
|
|
825
|
-
}, "de_ListSecretVersionIdsCommand");
|
|
826
|
-
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
827
|
-
if (output.statusCode >= 300) {
|
|
828
|
-
return de_CommandError(output, context);
|
|
829
|
-
}
|
|
830
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
831
|
-
let contents = {};
|
|
832
|
-
contents = (0, import_smithy_client._json)(data);
|
|
833
|
-
const response = {
|
|
834
|
-
$metadata: deserializeMetadata(output),
|
|
835
|
-
...contents
|
|
836
|
-
};
|
|
837
|
-
return response;
|
|
838
|
-
}, "de_PutResourcePolicyCommand");
|
|
839
|
-
var de_PutSecretValueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
840
|
-
if (output.statusCode >= 300) {
|
|
841
|
-
return de_CommandError(output, context);
|
|
842
|
-
}
|
|
843
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
844
|
-
let contents = {};
|
|
845
|
-
contents = (0, import_smithy_client._json)(data);
|
|
846
|
-
const response = {
|
|
847
|
-
$metadata: deserializeMetadata(output),
|
|
848
|
-
...contents
|
|
849
|
-
};
|
|
850
|
-
return response;
|
|
851
|
-
}, "de_PutSecretValueCommand");
|
|
852
|
-
var de_RemoveRegionsFromReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
853
|
-
if (output.statusCode >= 300) {
|
|
854
|
-
return de_CommandError(output, context);
|
|
855
|
-
}
|
|
856
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
857
|
-
let contents = {};
|
|
858
|
-
contents = de_RemoveRegionsFromReplicationResponse(data, context);
|
|
859
|
-
const response = {
|
|
860
|
-
$metadata: deserializeMetadata(output),
|
|
861
|
-
...contents
|
|
862
|
-
};
|
|
863
|
-
return response;
|
|
864
|
-
}, "de_RemoveRegionsFromReplicationCommand");
|
|
865
|
-
var de_ReplicateSecretToRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
866
|
-
if (output.statusCode >= 300) {
|
|
867
|
-
return de_CommandError(output, context);
|
|
868
|
-
}
|
|
869
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
870
|
-
let contents = {};
|
|
871
|
-
contents = de_ReplicateSecretToRegionsResponse(data, context);
|
|
872
|
-
const response = {
|
|
873
|
-
$metadata: deserializeMetadata(output),
|
|
874
|
-
...contents
|
|
875
|
-
};
|
|
876
|
-
return response;
|
|
877
|
-
}, "de_ReplicateSecretToRegionsCommand");
|
|
878
|
-
var de_RestoreSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
879
|
-
if (output.statusCode >= 300) {
|
|
880
|
-
return de_CommandError(output, context);
|
|
881
|
-
}
|
|
882
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
883
|
-
let contents = {};
|
|
884
|
-
contents = (0, import_smithy_client._json)(data);
|
|
885
|
-
const response = {
|
|
886
|
-
$metadata: deserializeMetadata(output),
|
|
887
|
-
...contents
|
|
888
|
-
};
|
|
889
|
-
return response;
|
|
890
|
-
}, "de_RestoreSecretCommand");
|
|
891
|
-
var de_RotateSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
|
-
if (output.statusCode >= 300) {
|
|
893
|
-
return de_CommandError(output, context);
|
|
894
|
-
}
|
|
895
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
896
|
-
let contents = {};
|
|
897
|
-
contents = (0, import_smithy_client._json)(data);
|
|
898
|
-
const response = {
|
|
899
|
-
$metadata: deserializeMetadata(output),
|
|
900
|
-
...contents
|
|
901
|
-
};
|
|
902
|
-
return response;
|
|
903
|
-
}, "de_RotateSecretCommand");
|
|
904
|
-
var de_StopReplicationToReplicaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
905
|
-
if (output.statusCode >= 300) {
|
|
906
|
-
return de_CommandError(output, context);
|
|
907
|
-
}
|
|
908
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
909
|
-
let contents = {};
|
|
910
|
-
contents = (0, import_smithy_client._json)(data);
|
|
911
|
-
const response = {
|
|
912
|
-
$metadata: deserializeMetadata(output),
|
|
913
|
-
...contents
|
|
914
|
-
};
|
|
915
|
-
return response;
|
|
916
|
-
}, "de_StopReplicationToReplicaCommand");
|
|
917
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
918
|
-
if (output.statusCode >= 300) {
|
|
919
|
-
return de_CommandError(output, context);
|
|
920
|
-
}
|
|
921
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
922
|
-
const response = {
|
|
923
|
-
$metadata: deserializeMetadata(output)
|
|
924
|
-
};
|
|
925
|
-
return response;
|
|
926
|
-
}, "de_TagResourceCommand");
|
|
927
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
|
-
if (output.statusCode >= 300) {
|
|
929
|
-
return de_CommandError(output, context);
|
|
930
|
-
}
|
|
931
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
932
|
-
const response = {
|
|
933
|
-
$metadata: deserializeMetadata(output)
|
|
934
|
-
};
|
|
935
|
-
return response;
|
|
936
|
-
}, "de_UntagResourceCommand");
|
|
937
|
-
var de_UpdateSecretCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
938
|
-
if (output.statusCode >= 300) {
|
|
939
|
-
return de_CommandError(output, context);
|
|
940
|
-
}
|
|
941
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
942
|
-
let contents = {};
|
|
943
|
-
contents = (0, import_smithy_client._json)(data);
|
|
944
|
-
const response = {
|
|
945
|
-
$metadata: deserializeMetadata(output),
|
|
946
|
-
...contents
|
|
947
|
-
};
|
|
948
|
-
return response;
|
|
949
|
-
}, "de_UpdateSecretCommand");
|
|
950
|
-
var de_UpdateSecretVersionStageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
951
|
-
if (output.statusCode >= 300) {
|
|
952
|
-
return de_CommandError(output, context);
|
|
953
|
-
}
|
|
954
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
955
|
-
let contents = {};
|
|
956
|
-
contents = (0, import_smithy_client._json)(data);
|
|
957
|
-
const response = {
|
|
958
|
-
$metadata: deserializeMetadata(output),
|
|
959
|
-
...contents
|
|
960
|
-
};
|
|
961
|
-
return response;
|
|
962
|
-
}, "de_UpdateSecretVersionStageCommand");
|
|
963
|
-
var de_ValidateResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
964
|
-
if (output.statusCode >= 300) {
|
|
965
|
-
return de_CommandError(output, context);
|
|
966
|
-
}
|
|
967
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
968
|
-
let contents = {};
|
|
969
|
-
contents = (0, import_smithy_client._json)(data);
|
|
970
|
-
const response = {
|
|
971
|
-
$metadata: deserializeMetadata(output),
|
|
972
|
-
...contents
|
|
973
|
-
};
|
|
974
|
-
return response;
|
|
975
|
-
}, "de_ValidateResourcePolicyCommand");
|
|
976
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
977
|
-
const parsedOutput = {
|
|
978
|
-
...output,
|
|
979
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
980
|
-
};
|
|
981
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
982
|
-
switch (errorCode) {
|
|
983
|
-
case "DecryptionFailure":
|
|
984
|
-
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
985
|
-
throw await de_DecryptionFailureRes(parsedOutput, context);
|
|
986
|
-
case "InternalServiceError":
|
|
987
|
-
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
988
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
989
|
-
case "InvalidNextTokenException":
|
|
990
|
-
case "com.amazonaws.secretsmanager#InvalidNextTokenException":
|
|
991
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
992
|
-
case "InvalidParameterException":
|
|
993
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
994
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
995
|
-
case "InvalidRequestException":
|
|
996
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
997
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
998
|
-
case "ResourceNotFoundException":
|
|
999
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1000
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1001
|
-
case "EncryptionFailure":
|
|
1002
|
-
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
1003
|
-
throw await de_EncryptionFailureRes(parsedOutput, context);
|
|
1004
|
-
case "LimitExceededException":
|
|
1005
|
-
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
1006
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "MalformedPolicyDocumentException":
|
|
1008
|
-
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
1009
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "PreconditionNotMetException":
|
|
1011
|
-
case "com.amazonaws.secretsmanager#PreconditionNotMetException":
|
|
1012
|
-
throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "ResourceExistsException":
|
|
1014
|
-
case "com.amazonaws.secretsmanager#ResourceExistsException":
|
|
1015
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "PublicPolicyException":
|
|
1017
|
-
case "com.amazonaws.secretsmanager#PublicPolicyException":
|
|
1018
|
-
throw await de_PublicPolicyExceptionRes(parsedOutput, context);
|
|
1019
|
-
default:
|
|
1020
|
-
const parsedBody = parsedOutput.body;
|
|
1021
|
-
return throwDefaultError({
|
|
1022
|
-
output,
|
|
1023
|
-
parsedBody,
|
|
1024
|
-
errorCode
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
}, "de_CommandError");
|
|
1028
|
-
var de_DecryptionFailureRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1029
|
-
const body = parsedOutput.body;
|
|
1030
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1031
|
-
const exception = new DecryptionFailure({
|
|
1032
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1033
|
-
...deserialized
|
|
1034
|
-
});
|
|
1035
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1036
|
-
}, "de_DecryptionFailureRes");
|
|
1037
|
-
var de_EncryptionFailureRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1038
|
-
const body = parsedOutput.body;
|
|
1039
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1040
|
-
const exception = new EncryptionFailure({
|
|
1041
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1042
|
-
...deserialized
|
|
1043
|
-
});
|
|
1044
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1045
|
-
}, "de_EncryptionFailureRes");
|
|
1046
|
-
var de_InternalServiceErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1047
|
-
const body = parsedOutput.body;
|
|
1048
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1049
|
-
const exception = new InternalServiceError({
|
|
1050
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1051
|
-
...deserialized
|
|
1052
|
-
});
|
|
1053
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1054
|
-
}, "de_InternalServiceErrorRes");
|
|
1055
|
-
var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1056
|
-
const body = parsedOutput.body;
|
|
1057
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1058
|
-
const exception = new InvalidNextTokenException({
|
|
1059
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1060
|
-
...deserialized
|
|
1061
|
-
});
|
|
1062
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1063
|
-
}, "de_InvalidNextTokenExceptionRes");
|
|
1064
|
-
var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1065
|
-
const body = parsedOutput.body;
|
|
1066
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1067
|
-
const exception = new InvalidParameterException({
|
|
1068
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1069
|
-
...deserialized
|
|
1070
|
-
});
|
|
1071
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1072
|
-
}, "de_InvalidParameterExceptionRes");
|
|
1073
|
-
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1074
|
-
const body = parsedOutput.body;
|
|
1075
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1076
|
-
const exception = new InvalidRequestException({
|
|
1077
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1078
|
-
...deserialized
|
|
1079
|
-
});
|
|
1080
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1081
|
-
}, "de_InvalidRequestExceptionRes");
|
|
1082
|
-
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1083
|
-
const body = parsedOutput.body;
|
|
1084
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1085
|
-
const exception = new LimitExceededException({
|
|
1086
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1087
|
-
...deserialized
|
|
1088
|
-
});
|
|
1089
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1090
|
-
}, "de_LimitExceededExceptionRes");
|
|
1091
|
-
var de_MalformedPolicyDocumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1092
|
-
const body = parsedOutput.body;
|
|
1093
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1094
|
-
const exception = new MalformedPolicyDocumentException({
|
|
1095
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1096
|
-
...deserialized
|
|
1097
|
-
});
|
|
1098
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1099
|
-
}, "de_MalformedPolicyDocumentExceptionRes");
|
|
1100
|
-
var de_PreconditionNotMetExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1101
|
-
const body = parsedOutput.body;
|
|
1102
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1103
|
-
const exception = new PreconditionNotMetException({
|
|
1104
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1105
|
-
...deserialized
|
|
1106
|
-
});
|
|
1107
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1108
|
-
}, "de_PreconditionNotMetExceptionRes");
|
|
1109
|
-
var de_PublicPolicyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1110
|
-
const body = parsedOutput.body;
|
|
1111
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1112
|
-
const exception = new PublicPolicyException({
|
|
1113
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1114
|
-
...deserialized
|
|
1115
|
-
});
|
|
1116
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1117
|
-
}, "de_PublicPolicyExceptionRes");
|
|
1118
|
-
var de_ResourceExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1119
|
-
const body = parsedOutput.body;
|
|
1120
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1121
|
-
const exception = new ResourceExistsException({
|
|
1122
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1123
|
-
...deserialized
|
|
1124
|
-
});
|
|
1125
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1126
|
-
}, "de_ResourceExistsExceptionRes");
|
|
1127
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1128
|
-
const body = parsedOutput.body;
|
|
1129
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1130
|
-
const exception = new ResourceNotFoundException({
|
|
1131
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1132
|
-
...deserialized
|
|
1133
|
-
});
|
|
1134
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1135
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1136
|
-
var se_CreateSecretRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1137
|
-
return (0, import_smithy_client.take)(input, {
|
|
1138
|
-
AddReplicaRegions: import_smithy_client._json,
|
|
1139
|
-
ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1140
|
-
Description: [],
|
|
1141
|
-
ForceOverwriteReplicaSecret: [],
|
|
1142
|
-
KmsKeyId: [],
|
|
1143
|
-
Name: [],
|
|
1144
|
-
SecretBinary: context.base64Encoder,
|
|
1145
|
-
SecretString: [],
|
|
1146
|
-
Tags: import_smithy_client._json
|
|
1147
|
-
});
|
|
1148
|
-
}, "se_CreateSecretRequest");
|
|
1149
|
-
var se_PutSecretValueRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1150
|
-
return (0, import_smithy_client.take)(input, {
|
|
1151
|
-
ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1152
|
-
RotationToken: [],
|
|
1153
|
-
SecretBinary: context.base64Encoder,
|
|
1154
|
-
SecretId: [],
|
|
1155
|
-
SecretString: [],
|
|
1156
|
-
VersionStages: import_smithy_client._json
|
|
1157
|
-
});
|
|
1158
|
-
}, "se_PutSecretValueRequest");
|
|
1159
|
-
var se_RotateSecretRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1160
|
-
return (0, import_smithy_client.take)(input, {
|
|
1161
|
-
ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1162
|
-
RotateImmediately: [],
|
|
1163
|
-
RotationLambdaARN: [],
|
|
1164
|
-
RotationRules: import_smithy_client._json,
|
|
1165
|
-
SecretId: []
|
|
1166
|
-
});
|
|
1167
|
-
}, "se_RotateSecretRequest");
|
|
1168
|
-
var se_UpdateSecretRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1169
|
-
return (0, import_smithy_client.take)(input, {
|
|
1170
|
-
ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1171
|
-
Description: [],
|
|
1172
|
-
KmsKeyId: [],
|
|
1173
|
-
SecretBinary: context.base64Encoder,
|
|
1174
|
-
SecretId: [],
|
|
1175
|
-
SecretString: []
|
|
1176
|
-
});
|
|
1177
|
-
}, "se_UpdateSecretRequest");
|
|
1178
|
-
var de_BatchGetSecretValueResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1179
|
-
return (0, import_smithy_client.take)(output, {
|
|
1180
|
-
Errors: import_smithy_client._json,
|
|
1181
|
-
NextToken: import_smithy_client.expectString,
|
|
1182
|
-
SecretValues: /* @__PURE__ */ __name((_) => de_SecretValuesType(_, context), "SecretValues")
|
|
1183
|
-
});
|
|
1184
|
-
}, "de_BatchGetSecretValueResponse");
|
|
1185
|
-
var de_CreateSecretResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1186
|
-
return (0, import_smithy_client.take)(output, {
|
|
1187
|
-
ARN: import_smithy_client.expectString,
|
|
1188
|
-
Name: import_smithy_client.expectString,
|
|
1189
|
-
ReplicationStatus: /* @__PURE__ */ __name((_) => de_ReplicationStatusListType(_, context), "ReplicationStatus"),
|
|
1190
|
-
VersionId: import_smithy_client.expectString
|
|
1191
|
-
});
|
|
1192
|
-
}, "de_CreateSecretResponse");
|
|
1193
|
-
var de_DeleteSecretResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1194
|
-
return (0, import_smithy_client.take)(output, {
|
|
1195
|
-
ARN: import_smithy_client.expectString,
|
|
1196
|
-
DeletionDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeletionDate"),
|
|
1197
|
-
Name: import_smithy_client.expectString
|
|
1198
|
-
});
|
|
1199
|
-
}, "de_DeleteSecretResponse");
|
|
1200
|
-
var de_DescribeSecretResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1201
|
-
return (0, import_smithy_client.take)(output, {
|
|
1202
|
-
ARN: import_smithy_client.expectString,
|
|
1203
|
-
CreatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedDate"),
|
|
1204
|
-
DeletedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeletedDate"),
|
|
1205
|
-
Description: import_smithy_client.expectString,
|
|
1206
|
-
KmsKeyId: import_smithy_client.expectString,
|
|
1207
|
-
LastAccessedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastAccessedDate"),
|
|
1208
|
-
LastChangedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastChangedDate"),
|
|
1209
|
-
LastRotatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastRotatedDate"),
|
|
1210
|
-
Name: import_smithy_client.expectString,
|
|
1211
|
-
NextRotationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "NextRotationDate"),
|
|
1212
|
-
OwningService: import_smithy_client.expectString,
|
|
1213
|
-
PrimaryRegion: import_smithy_client.expectString,
|
|
1214
|
-
ReplicationStatus: /* @__PURE__ */ __name((_) => de_ReplicationStatusListType(_, context), "ReplicationStatus"),
|
|
1215
|
-
RotationEnabled: import_smithy_client.expectBoolean,
|
|
1216
|
-
RotationLambdaARN: import_smithy_client.expectString,
|
|
1217
|
-
RotationRules: import_smithy_client._json,
|
|
1218
|
-
Tags: import_smithy_client._json,
|
|
1219
|
-
VersionIdsToStages: import_smithy_client._json
|
|
1220
|
-
});
|
|
1221
|
-
}, "de_DescribeSecretResponse");
|
|
1222
|
-
var de_GetSecretValueResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1223
|
-
return (0, import_smithy_client.take)(output, {
|
|
1224
|
-
ARN: import_smithy_client.expectString,
|
|
1225
|
-
CreatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedDate"),
|
|
1226
|
-
Name: import_smithy_client.expectString,
|
|
1227
|
-
SecretBinary: context.base64Decoder,
|
|
1228
|
-
SecretString: import_smithy_client.expectString,
|
|
1229
|
-
VersionId: import_smithy_client.expectString,
|
|
1230
|
-
VersionStages: import_smithy_client._json
|
|
1231
|
-
});
|
|
1232
|
-
}, "de_GetSecretValueResponse");
|
|
1233
|
-
var de_ListSecretsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1234
|
-
return (0, import_smithy_client.take)(output, {
|
|
1235
|
-
NextToken: import_smithy_client.expectString,
|
|
1236
|
-
SecretList: /* @__PURE__ */ __name((_) => de_SecretListType(_, context), "SecretList")
|
|
1237
|
-
});
|
|
1238
|
-
}, "de_ListSecretsResponse");
|
|
1239
|
-
var de_ListSecretVersionIdsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1240
|
-
return (0, import_smithy_client.take)(output, {
|
|
1241
|
-
ARN: import_smithy_client.expectString,
|
|
1242
|
-
Name: import_smithy_client.expectString,
|
|
1243
|
-
NextToken: import_smithy_client.expectString,
|
|
1244
|
-
Versions: /* @__PURE__ */ __name((_) => de_SecretVersionsListType(_, context), "Versions")
|
|
1245
|
-
});
|
|
1246
|
-
}, "de_ListSecretVersionIdsResponse");
|
|
1247
|
-
var de_RemoveRegionsFromReplicationResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1248
|
-
return (0, import_smithy_client.take)(output, {
|
|
1249
|
-
ARN: import_smithy_client.expectString,
|
|
1250
|
-
ReplicationStatus: /* @__PURE__ */ __name((_) => de_ReplicationStatusListType(_, context), "ReplicationStatus")
|
|
1251
|
-
});
|
|
1252
|
-
}, "de_RemoveRegionsFromReplicationResponse");
|
|
1253
|
-
var de_ReplicateSecretToRegionsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1254
|
-
return (0, import_smithy_client.take)(output, {
|
|
1255
|
-
ARN: import_smithy_client.expectString,
|
|
1256
|
-
ReplicationStatus: /* @__PURE__ */ __name((_) => de_ReplicationStatusListType(_, context), "ReplicationStatus")
|
|
1257
|
-
});
|
|
1258
|
-
}, "de_ReplicateSecretToRegionsResponse");
|
|
1259
|
-
var de_ReplicationStatusListType = /* @__PURE__ */ __name((output, context) => {
|
|
1260
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1261
|
-
return de_ReplicationStatusType(entry, context);
|
|
1262
|
-
});
|
|
1263
|
-
return retVal;
|
|
1264
|
-
}, "de_ReplicationStatusListType");
|
|
1265
|
-
var de_ReplicationStatusType = /* @__PURE__ */ __name((output, context) => {
|
|
1266
|
-
return (0, import_smithy_client.take)(output, {
|
|
1267
|
-
KmsKeyId: import_smithy_client.expectString,
|
|
1268
|
-
LastAccessedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastAccessedDate"),
|
|
1269
|
-
Region: import_smithy_client.expectString,
|
|
1270
|
-
Status: import_smithy_client.expectString,
|
|
1271
|
-
StatusMessage: import_smithy_client.expectString
|
|
1272
|
-
});
|
|
1273
|
-
}, "de_ReplicationStatusType");
|
|
1274
|
-
var de_SecretListEntry = /* @__PURE__ */ __name((output, context) => {
|
|
1275
|
-
return (0, import_smithy_client.take)(output, {
|
|
1276
|
-
ARN: import_smithy_client.expectString,
|
|
1277
|
-
CreatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedDate"),
|
|
1278
|
-
DeletedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeletedDate"),
|
|
1279
|
-
Description: import_smithy_client.expectString,
|
|
1280
|
-
KmsKeyId: import_smithy_client.expectString,
|
|
1281
|
-
LastAccessedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastAccessedDate"),
|
|
1282
|
-
LastChangedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastChangedDate"),
|
|
1283
|
-
LastRotatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastRotatedDate"),
|
|
1284
|
-
Name: import_smithy_client.expectString,
|
|
1285
|
-
NextRotationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "NextRotationDate"),
|
|
1286
|
-
OwningService: import_smithy_client.expectString,
|
|
1287
|
-
PrimaryRegion: import_smithy_client.expectString,
|
|
1288
|
-
RotationEnabled: import_smithy_client.expectBoolean,
|
|
1289
|
-
RotationLambdaARN: import_smithy_client.expectString,
|
|
1290
|
-
RotationRules: import_smithy_client._json,
|
|
1291
|
-
SecretVersionsToStages: import_smithy_client._json,
|
|
1292
|
-
Tags: import_smithy_client._json
|
|
1293
|
-
});
|
|
1294
|
-
}, "de_SecretListEntry");
|
|
1295
|
-
var de_SecretListType = /* @__PURE__ */ __name((output, context) => {
|
|
1296
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1297
|
-
return de_SecretListEntry(entry, context);
|
|
1298
|
-
});
|
|
1299
|
-
return retVal;
|
|
1300
|
-
}, "de_SecretListType");
|
|
1301
|
-
var de_SecretValueEntry = /* @__PURE__ */ __name((output, context) => {
|
|
1302
|
-
return (0, import_smithy_client.take)(output, {
|
|
1303
|
-
ARN: import_smithy_client.expectString,
|
|
1304
|
-
CreatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedDate"),
|
|
1305
|
-
Name: import_smithy_client.expectString,
|
|
1306
|
-
SecretBinary: context.base64Decoder,
|
|
1307
|
-
SecretString: import_smithy_client.expectString,
|
|
1308
|
-
VersionId: import_smithy_client.expectString,
|
|
1309
|
-
VersionStages: import_smithy_client._json
|
|
1310
|
-
});
|
|
1311
|
-
}, "de_SecretValueEntry");
|
|
1312
|
-
var de_SecretValuesType = /* @__PURE__ */ __name((output, context) => {
|
|
1313
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1314
|
-
return de_SecretValueEntry(entry, context);
|
|
1315
|
-
});
|
|
1316
|
-
return retVal;
|
|
1317
|
-
}, "de_SecretValuesType");
|
|
1318
|
-
var de_SecretVersionsListEntry = /* @__PURE__ */ __name((output, context) => {
|
|
1319
|
-
return (0, import_smithy_client.take)(output, {
|
|
1320
|
-
CreatedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedDate"),
|
|
1321
|
-
KmsKeyIds: import_smithy_client._json,
|
|
1322
|
-
LastAccessedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastAccessedDate"),
|
|
1323
|
-
VersionId: import_smithy_client.expectString,
|
|
1324
|
-
VersionStages: import_smithy_client._json
|
|
1325
|
-
});
|
|
1326
|
-
}, "de_SecretVersionsListEntry");
|
|
1327
|
-
var de_SecretVersionsListType = /* @__PURE__ */ __name((output, context) => {
|
|
1328
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1329
|
-
return de_SecretVersionsListEntry(entry, context);
|
|
1330
|
-
});
|
|
1331
|
-
return retVal;
|
|
1332
|
-
}, "de_SecretVersionsListType");
|
|
1333
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1334
|
-
httpStatusCode: output.statusCode,
|
|
1335
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1336
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1337
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1338
|
-
}), "deserializeMetadata");
|
|
1339
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(SecretsManagerServiceException);
|
|
1340
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1341
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1342
|
-
const contents = {
|
|
1343
|
-
protocol,
|
|
1344
|
-
hostname,
|
|
1345
|
-
port,
|
|
1346
|
-
method: "POST",
|
|
1347
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1348
|
-
headers
|
|
1349
|
-
};
|
|
1350
|
-
if (resolvedHostname !== void 0) {
|
|
1351
|
-
contents.hostname = resolvedHostname;
|
|
1352
|
-
}
|
|
1353
|
-
if (body !== void 0) {
|
|
1354
|
-
contents.body = body;
|
|
1355
|
-
}
|
|
1356
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
1357
|
-
}, "buildHttpRpcRequest");
|
|
1358
|
-
function sharedHeaders(operation) {
|
|
1359
|
-
return {
|
|
1360
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1361
|
-
"x-amz-target": `secretsmanager.${operation}`
|
|
1362
|
-
};
|
|
1363
|
-
}
|
|
1364
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
1365
|
-
|
|
1366
|
-
// src/commands/BatchGetSecretValueCommand.ts
|
|
1367
|
-
var BatchGetSecretValueCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1368
|
-
return [
|
|
1369
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1370
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1371
|
-
];
|
|
1372
|
-
}).s("secretsmanager", "BatchGetSecretValue", {}).n("SecretsManagerClient", "BatchGetSecretValueCommand").f(void 0, BatchGetSecretValueResponseFilterSensitiveLog).ser(se_BatchGetSecretValueCommand).de(de_BatchGetSecretValueCommand).build() {
|
|
1373
|
-
static {
|
|
1374
|
-
__name(this, "BatchGetSecretValueCommand");
|
|
1375
|
-
}
|
|
931
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1376
932
|
};
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
__name(this, "CancelRotateSecretCommand");
|
|
1390
|
-
}
|
|
933
|
+
const se_CreateSecretRequest = (input, context) => {
|
|
934
|
+
return smithyClient.take(input, {
|
|
935
|
+
AddReplicaRegions: smithyClient._json,
|
|
936
|
+
ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
|
|
937
|
+
Description: [],
|
|
938
|
+
ForceOverwriteReplicaSecret: [],
|
|
939
|
+
KmsKeyId: [],
|
|
940
|
+
Name: [],
|
|
941
|
+
SecretBinary: context.base64Encoder,
|
|
942
|
+
SecretString: [],
|
|
943
|
+
Tags: smithyClient._json,
|
|
944
|
+
});
|
|
1391
945
|
};
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
];
|
|
1402
|
-
}).s("secretsmanager", "CreateSecret", {}).n("SecretsManagerClient", "CreateSecretCommand").f(CreateSecretRequestFilterSensitiveLog, void 0).ser(se_CreateSecretCommand).de(de_CreateSecretCommand).build() {
|
|
1403
|
-
static {
|
|
1404
|
-
__name(this, "CreateSecretCommand");
|
|
1405
|
-
}
|
|
946
|
+
const se_PutSecretValueRequest = (input, context) => {
|
|
947
|
+
return smithyClient.take(input, {
|
|
948
|
+
ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
|
|
949
|
+
RotationToken: [],
|
|
950
|
+
SecretBinary: context.base64Encoder,
|
|
951
|
+
SecretId: [],
|
|
952
|
+
SecretString: [],
|
|
953
|
+
VersionStages: smithyClient._json,
|
|
954
|
+
});
|
|
1406
955
|
};
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1416
|
-
];
|
|
1417
|
-
}).s("secretsmanager", "DeleteResourcePolicy", {}).n("SecretsManagerClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
|
|
1418
|
-
static {
|
|
1419
|
-
__name(this, "DeleteResourcePolicyCommand");
|
|
1420
|
-
}
|
|
956
|
+
const se_RotateSecretRequest = (input, context) => {
|
|
957
|
+
return smithyClient.take(input, {
|
|
958
|
+
ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
|
|
959
|
+
RotateImmediately: [],
|
|
960
|
+
RotationLambdaARN: [],
|
|
961
|
+
RotationRules: smithyClient._json,
|
|
962
|
+
SecretId: [],
|
|
963
|
+
});
|
|
1421
964
|
};
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
];
|
|
1432
|
-
}).s("secretsmanager", "DeleteSecret", {}).n("SecretsManagerClient", "DeleteSecretCommand").f(void 0, void 0).ser(se_DeleteSecretCommand).de(de_DeleteSecretCommand).build() {
|
|
1433
|
-
static {
|
|
1434
|
-
__name(this, "DeleteSecretCommand");
|
|
1435
|
-
}
|
|
965
|
+
const se_UpdateSecretRequest = (input, context) => {
|
|
966
|
+
return smithyClient.take(input, {
|
|
967
|
+
ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
|
|
968
|
+
Description: [],
|
|
969
|
+
KmsKeyId: [],
|
|
970
|
+
SecretBinary: context.base64Encoder,
|
|
971
|
+
SecretId: [],
|
|
972
|
+
SecretString: [],
|
|
973
|
+
});
|
|
1436
974
|
};
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
return [
|
|
1444
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1445
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1446
|
-
];
|
|
1447
|
-
}).s("secretsmanager", "DescribeSecret", {}).n("SecretsManagerClient", "DescribeSecretCommand").f(void 0, void 0).ser(se_DescribeSecretCommand).de(de_DescribeSecretCommand).build() {
|
|
1448
|
-
static {
|
|
1449
|
-
__name(this, "DescribeSecretCommand");
|
|
1450
|
-
}
|
|
975
|
+
const de_BatchGetSecretValueResponse = (output, context) => {
|
|
976
|
+
return smithyClient.take(output, {
|
|
977
|
+
Errors: smithyClient._json,
|
|
978
|
+
NextToken: smithyClient.expectString,
|
|
979
|
+
SecretValues: (_) => de_SecretValuesType(_, context),
|
|
980
|
+
});
|
|
1451
981
|
};
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1460
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1461
|
-
];
|
|
1462
|
-
}).s("secretsmanager", "GetRandomPassword", {}).n("SecretsManagerClient", "GetRandomPasswordCommand").f(void 0, GetRandomPasswordResponseFilterSensitiveLog).ser(se_GetRandomPasswordCommand).de(de_GetRandomPasswordCommand).build() {
|
|
1463
|
-
static {
|
|
1464
|
-
__name(this, "GetRandomPasswordCommand");
|
|
1465
|
-
}
|
|
982
|
+
const de_CreateSecretResponse = (output, context) => {
|
|
983
|
+
return smithyClient.take(output, {
|
|
984
|
+
ARN: smithyClient.expectString,
|
|
985
|
+
Name: smithyClient.expectString,
|
|
986
|
+
ReplicationStatus: (_) => de_ReplicationStatusListType(_),
|
|
987
|
+
VersionId: smithyClient.expectString,
|
|
988
|
+
});
|
|
1466
989
|
};
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
return [
|
|
1474
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1475
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1476
|
-
];
|
|
1477
|
-
}).s("secretsmanager", "GetResourcePolicy", {}).n("SecretsManagerClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
|
|
1478
|
-
static {
|
|
1479
|
-
__name(this, "GetResourcePolicyCommand");
|
|
1480
|
-
}
|
|
990
|
+
const de_DeleteSecretResponse = (output, context) => {
|
|
991
|
+
return smithyClient.take(output, {
|
|
992
|
+
ARN: smithyClient.expectString,
|
|
993
|
+
DeletionDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
994
|
+
Name: smithyClient.expectString,
|
|
995
|
+
});
|
|
1481
996
|
};
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
997
|
+
const de_DescribeSecretResponse = (output, context) => {
|
|
998
|
+
return smithyClient.take(output, {
|
|
999
|
+
ARN: smithyClient.expectString,
|
|
1000
|
+
CreatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1001
|
+
DeletedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1002
|
+
Description: smithyClient.expectString,
|
|
1003
|
+
KmsKeyId: smithyClient.expectString,
|
|
1004
|
+
LastAccessedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1005
|
+
LastChangedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1006
|
+
LastRotatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1007
|
+
Name: smithyClient.expectString,
|
|
1008
|
+
NextRotationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1009
|
+
OwningService: smithyClient.expectString,
|
|
1010
|
+
PrimaryRegion: smithyClient.expectString,
|
|
1011
|
+
ReplicationStatus: (_) => de_ReplicationStatusListType(_),
|
|
1012
|
+
RotationEnabled: smithyClient.expectBoolean,
|
|
1013
|
+
RotationLambdaARN: smithyClient.expectString,
|
|
1014
|
+
RotationRules: smithyClient._json,
|
|
1015
|
+
Tags: smithyClient._json,
|
|
1016
|
+
VersionIdsToStages: smithyClient._json,
|
|
1017
|
+
});
|
|
1496
1018
|
};
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
}).s("secretsmanager", "ListSecrets", {}).n("SecretsManagerClient", "ListSecretsCommand").f(void 0, void 0).ser(se_ListSecretsCommand).de(de_ListSecretsCommand).build() {
|
|
1508
|
-
static {
|
|
1509
|
-
__name(this, "ListSecretsCommand");
|
|
1510
|
-
}
|
|
1019
|
+
const de_GetSecretValueResponse = (output, context) => {
|
|
1020
|
+
return smithyClient.take(output, {
|
|
1021
|
+
ARN: smithyClient.expectString,
|
|
1022
|
+
CreatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1023
|
+
Name: smithyClient.expectString,
|
|
1024
|
+
SecretBinary: context.base64Decoder,
|
|
1025
|
+
SecretString: smithyClient.expectString,
|
|
1026
|
+
VersionId: smithyClient.expectString,
|
|
1027
|
+
VersionStages: smithyClient._json,
|
|
1028
|
+
});
|
|
1511
1029
|
};
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
var ListSecretVersionIdsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1518
|
-
return [
|
|
1519
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1520
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1521
|
-
];
|
|
1522
|
-
}).s("secretsmanager", "ListSecretVersionIds", {}).n("SecretsManagerClient", "ListSecretVersionIdsCommand").f(void 0, void 0).ser(se_ListSecretVersionIdsCommand).de(de_ListSecretVersionIdsCommand).build() {
|
|
1523
|
-
static {
|
|
1524
|
-
__name(this, "ListSecretVersionIdsCommand");
|
|
1525
|
-
}
|
|
1030
|
+
const de_ListSecretsResponse = (output, context) => {
|
|
1031
|
+
return smithyClient.take(output, {
|
|
1032
|
+
NextToken: smithyClient.expectString,
|
|
1033
|
+
SecretList: (_) => de_SecretListType(_),
|
|
1034
|
+
});
|
|
1526
1035
|
};
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1535
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1536
|
-
];
|
|
1537
|
-
}).s("secretsmanager", "PutResourcePolicy", {}).n("SecretsManagerClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
|
|
1538
|
-
static {
|
|
1539
|
-
__name(this, "PutResourcePolicyCommand");
|
|
1540
|
-
}
|
|
1036
|
+
const de_ListSecretVersionIdsResponse = (output, context) => {
|
|
1037
|
+
return smithyClient.take(output, {
|
|
1038
|
+
ARN: smithyClient.expectString,
|
|
1039
|
+
Name: smithyClient.expectString,
|
|
1040
|
+
NextToken: smithyClient.expectString,
|
|
1041
|
+
Versions: (_) => de_SecretVersionsListType(_),
|
|
1042
|
+
});
|
|
1541
1043
|
};
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
var PutSecretValueCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1548
|
-
return [
|
|
1549
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1550
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1551
|
-
];
|
|
1552
|
-
}).s("secretsmanager", "PutSecretValue", {}).n("SecretsManagerClient", "PutSecretValueCommand").f(PutSecretValueRequestFilterSensitiveLog, void 0).ser(se_PutSecretValueCommand).de(de_PutSecretValueCommand).build() {
|
|
1553
|
-
static {
|
|
1554
|
-
__name(this, "PutSecretValueCommand");
|
|
1555
|
-
}
|
|
1044
|
+
const de_RemoveRegionsFromReplicationResponse = (output, context) => {
|
|
1045
|
+
return smithyClient.take(output, {
|
|
1046
|
+
ARN: smithyClient.expectString,
|
|
1047
|
+
ReplicationStatus: (_) => de_ReplicationStatusListType(_),
|
|
1048
|
+
});
|
|
1556
1049
|
};
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
var RemoveRegionsFromReplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1563
|
-
return [
|
|
1564
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1565
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1566
|
-
];
|
|
1567
|
-
}).s("secretsmanager", "RemoveRegionsFromReplication", {}).n("SecretsManagerClient", "RemoveRegionsFromReplicationCommand").f(void 0, void 0).ser(se_RemoveRegionsFromReplicationCommand).de(de_RemoveRegionsFromReplicationCommand).build() {
|
|
1568
|
-
static {
|
|
1569
|
-
__name(this, "RemoveRegionsFromReplicationCommand");
|
|
1570
|
-
}
|
|
1050
|
+
const de_ReplicateSecretToRegionsResponse = (output, context) => {
|
|
1051
|
+
return smithyClient.take(output, {
|
|
1052
|
+
ARN: smithyClient.expectString,
|
|
1053
|
+
ReplicationStatus: (_) => de_ReplicationStatusListType(_),
|
|
1054
|
+
});
|
|
1571
1055
|
};
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1580
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1581
|
-
];
|
|
1582
|
-
}).s("secretsmanager", "ReplicateSecretToRegions", {}).n("SecretsManagerClient", "ReplicateSecretToRegionsCommand").f(void 0, void 0).ser(se_ReplicateSecretToRegionsCommand).de(de_ReplicateSecretToRegionsCommand).build() {
|
|
1583
|
-
static {
|
|
1584
|
-
__name(this, "ReplicateSecretToRegionsCommand");
|
|
1585
|
-
}
|
|
1056
|
+
const de_ReplicationStatusListType = (output, context) => {
|
|
1057
|
+
const retVal = (output || [])
|
|
1058
|
+
.filter((e) => e != null)
|
|
1059
|
+
.map((entry) => {
|
|
1060
|
+
return de_ReplicationStatusType(entry);
|
|
1061
|
+
});
|
|
1062
|
+
return retVal;
|
|
1586
1063
|
};
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1596
|
-
];
|
|
1597
|
-
}).s("secretsmanager", "RestoreSecret", {}).n("SecretsManagerClient", "RestoreSecretCommand").f(void 0, void 0).ser(se_RestoreSecretCommand).de(de_RestoreSecretCommand).build() {
|
|
1598
|
-
static {
|
|
1599
|
-
__name(this, "RestoreSecretCommand");
|
|
1600
|
-
}
|
|
1064
|
+
const de_ReplicationStatusType = (output, context) => {
|
|
1065
|
+
return smithyClient.take(output, {
|
|
1066
|
+
KmsKeyId: smithyClient.expectString,
|
|
1067
|
+
LastAccessedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1068
|
+
Region: smithyClient.expectString,
|
|
1069
|
+
Status: smithyClient.expectString,
|
|
1070
|
+
StatusMessage: smithyClient.expectString,
|
|
1071
|
+
});
|
|
1601
1072
|
};
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1073
|
+
const de_SecretListEntry = (output, context) => {
|
|
1074
|
+
return smithyClient.take(output, {
|
|
1075
|
+
ARN: smithyClient.expectString,
|
|
1076
|
+
CreatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1077
|
+
DeletedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1078
|
+
Description: smithyClient.expectString,
|
|
1079
|
+
KmsKeyId: smithyClient.expectString,
|
|
1080
|
+
LastAccessedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1081
|
+
LastChangedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1082
|
+
LastRotatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1083
|
+
Name: smithyClient.expectString,
|
|
1084
|
+
NextRotationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1085
|
+
OwningService: smithyClient.expectString,
|
|
1086
|
+
PrimaryRegion: smithyClient.expectString,
|
|
1087
|
+
RotationEnabled: smithyClient.expectBoolean,
|
|
1088
|
+
RotationLambdaARN: smithyClient.expectString,
|
|
1089
|
+
RotationRules: smithyClient._json,
|
|
1090
|
+
SecretVersionsToStages: smithyClient._json,
|
|
1091
|
+
Tags: smithyClient._json,
|
|
1092
|
+
});
|
|
1616
1093
|
};
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1094
|
+
const de_SecretListType = (output, context) => {
|
|
1095
|
+
const retVal = (output || [])
|
|
1096
|
+
.filter((e) => e != null)
|
|
1097
|
+
.map((entry) => {
|
|
1098
|
+
return de_SecretListEntry(entry);
|
|
1099
|
+
});
|
|
1100
|
+
return retVal;
|
|
1101
|
+
};
|
|
1102
|
+
const de_SecretValueEntry = (output, context) => {
|
|
1103
|
+
return smithyClient.take(output, {
|
|
1104
|
+
ARN: smithyClient.expectString,
|
|
1105
|
+
CreatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1106
|
+
Name: smithyClient.expectString,
|
|
1107
|
+
SecretBinary: context.base64Decoder,
|
|
1108
|
+
SecretString: smithyClient.expectString,
|
|
1109
|
+
VersionId: smithyClient.expectString,
|
|
1110
|
+
VersionStages: smithyClient._json,
|
|
1111
|
+
});
|
|
1112
|
+
};
|
|
1113
|
+
const de_SecretValuesType = (output, context) => {
|
|
1114
|
+
const retVal = (output || [])
|
|
1115
|
+
.filter((e) => e != null)
|
|
1116
|
+
.map((entry) => {
|
|
1117
|
+
return de_SecretValueEntry(entry, context);
|
|
1118
|
+
});
|
|
1119
|
+
return retVal;
|
|
1120
|
+
};
|
|
1121
|
+
const de_SecretVersionsListEntry = (output, context) => {
|
|
1122
|
+
return smithyClient.take(output, {
|
|
1123
|
+
CreatedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1124
|
+
KmsKeyIds: smithyClient._json,
|
|
1125
|
+
LastAccessedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1126
|
+
VersionId: smithyClient.expectString,
|
|
1127
|
+
VersionStages: smithyClient._json,
|
|
1128
|
+
});
|
|
1129
|
+
};
|
|
1130
|
+
const de_SecretVersionsListType = (output, context) => {
|
|
1131
|
+
const retVal = (output || [])
|
|
1132
|
+
.filter((e) => e != null)
|
|
1133
|
+
.map((entry) => {
|
|
1134
|
+
return de_SecretVersionsListEntry(entry);
|
|
1135
|
+
});
|
|
1136
|
+
return retVal;
|
|
1137
|
+
};
|
|
1138
|
+
const deserializeMetadata = (output) => ({
|
|
1139
|
+
httpStatusCode: output.statusCode,
|
|
1140
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1141
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1142
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1143
|
+
});
|
|
1144
|
+
const throwDefaultError = smithyClient.withBaseException(SecretsManagerServiceException);
|
|
1145
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1146
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1147
|
+
const contents = {
|
|
1148
|
+
protocol,
|
|
1149
|
+
hostname,
|
|
1150
|
+
port,
|
|
1151
|
+
method: "POST",
|
|
1152
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1153
|
+
headers,
|
|
1154
|
+
};
|
|
1155
|
+
if (body !== undefined) {
|
|
1156
|
+
contents.body = body;
|
|
1157
|
+
}
|
|
1158
|
+
return new protocolHttp.HttpRequest(contents);
|
|
1631
1159
|
};
|
|
1160
|
+
function sharedHeaders(operation) {
|
|
1161
|
+
return {
|
|
1162
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1163
|
+
"x-amz-target": `secretsmanager.${operation}`,
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1632
1166
|
|
|
1633
|
-
|
|
1167
|
+
class BatchGetSecretValueCommand extends smithyClient.Command
|
|
1168
|
+
.classBuilder()
|
|
1169
|
+
.ep(commonParams)
|
|
1170
|
+
.m(function (Command, cs, config, o) {
|
|
1171
|
+
return [
|
|
1172
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1173
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1174
|
+
];
|
|
1175
|
+
})
|
|
1176
|
+
.s("secretsmanager", "BatchGetSecretValue", {})
|
|
1177
|
+
.n("SecretsManagerClient", "BatchGetSecretValueCommand")
|
|
1178
|
+
.f(void 0, BatchGetSecretValueResponseFilterSensitiveLog)
|
|
1179
|
+
.ser(se_BatchGetSecretValueCommand)
|
|
1180
|
+
.de(de_BatchGetSecretValueCommand)
|
|
1181
|
+
.build() {
|
|
1182
|
+
}
|
|
1634
1183
|
|
|
1184
|
+
class CancelRotateSecretCommand extends smithyClient.Command
|
|
1185
|
+
.classBuilder()
|
|
1186
|
+
.ep(commonParams)
|
|
1187
|
+
.m(function (Command, cs, config, o) {
|
|
1188
|
+
return [
|
|
1189
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1190
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1191
|
+
];
|
|
1192
|
+
})
|
|
1193
|
+
.s("secretsmanager", "CancelRotateSecret", {})
|
|
1194
|
+
.n("SecretsManagerClient", "CancelRotateSecretCommand")
|
|
1195
|
+
.f(void 0, void 0)
|
|
1196
|
+
.ser(se_CancelRotateSecretCommand)
|
|
1197
|
+
.de(de_CancelRotateSecretCommand)
|
|
1198
|
+
.build() {
|
|
1199
|
+
}
|
|
1635
1200
|
|
|
1201
|
+
class CreateSecretCommand extends smithyClient.Command
|
|
1202
|
+
.classBuilder()
|
|
1203
|
+
.ep(commonParams)
|
|
1204
|
+
.m(function (Command, cs, config, o) {
|
|
1205
|
+
return [
|
|
1206
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1207
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1208
|
+
];
|
|
1209
|
+
})
|
|
1210
|
+
.s("secretsmanager", "CreateSecret", {})
|
|
1211
|
+
.n("SecretsManagerClient", "CreateSecretCommand")
|
|
1212
|
+
.f(CreateSecretRequestFilterSensitiveLog, void 0)
|
|
1213
|
+
.ser(se_CreateSecretCommand)
|
|
1214
|
+
.de(de_CreateSecretCommand)
|
|
1215
|
+
.build() {
|
|
1216
|
+
}
|
|
1636
1217
|
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
(
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
}
|
|
1218
|
+
class DeleteResourcePolicyCommand extends smithyClient.Command
|
|
1219
|
+
.classBuilder()
|
|
1220
|
+
.ep(commonParams)
|
|
1221
|
+
.m(function (Command, cs, config, o) {
|
|
1222
|
+
return [
|
|
1223
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1224
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1225
|
+
];
|
|
1226
|
+
})
|
|
1227
|
+
.s("secretsmanager", "DeleteResourcePolicy", {})
|
|
1228
|
+
.n("SecretsManagerClient", "DeleteResourcePolicyCommand")
|
|
1229
|
+
.f(void 0, void 0)
|
|
1230
|
+
.ser(se_DeleteResourcePolicyCommand)
|
|
1231
|
+
.de(de_DeleteResourcePolicyCommand)
|
|
1232
|
+
.build() {
|
|
1233
|
+
}
|
|
1647
1234
|
|
|
1648
|
-
|
|
1235
|
+
class DeleteSecretCommand extends smithyClient.Command
|
|
1236
|
+
.classBuilder()
|
|
1237
|
+
.ep(commonParams)
|
|
1238
|
+
.m(function (Command, cs, config, o) {
|
|
1239
|
+
return [
|
|
1240
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1241
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1242
|
+
];
|
|
1243
|
+
})
|
|
1244
|
+
.s("secretsmanager", "DeleteSecret", {})
|
|
1245
|
+
.n("SecretsManagerClient", "DeleteSecretCommand")
|
|
1246
|
+
.f(void 0, void 0)
|
|
1247
|
+
.ser(se_DeleteSecretCommand)
|
|
1248
|
+
.de(de_DeleteSecretCommand)
|
|
1249
|
+
.build() {
|
|
1250
|
+
}
|
|
1649
1251
|
|
|
1252
|
+
class DescribeSecretCommand extends smithyClient.Command
|
|
1253
|
+
.classBuilder()
|
|
1254
|
+
.ep(commonParams)
|
|
1255
|
+
.m(function (Command, cs, config, o) {
|
|
1256
|
+
return [
|
|
1257
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1258
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1259
|
+
];
|
|
1260
|
+
})
|
|
1261
|
+
.s("secretsmanager", "DescribeSecret", {})
|
|
1262
|
+
.n("SecretsManagerClient", "DescribeSecretCommand")
|
|
1263
|
+
.f(void 0, void 0)
|
|
1264
|
+
.ser(se_DescribeSecretCommand)
|
|
1265
|
+
.de(de_DescribeSecretCommand)
|
|
1266
|
+
.build() {
|
|
1267
|
+
}
|
|
1650
1268
|
|
|
1269
|
+
class GetRandomPasswordCommand extends smithyClient.Command
|
|
1270
|
+
.classBuilder()
|
|
1271
|
+
.ep(commonParams)
|
|
1272
|
+
.m(function (Command, cs, config, o) {
|
|
1273
|
+
return [
|
|
1274
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1275
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1276
|
+
];
|
|
1277
|
+
})
|
|
1278
|
+
.s("secretsmanager", "GetRandomPassword", {})
|
|
1279
|
+
.n("SecretsManagerClient", "GetRandomPasswordCommand")
|
|
1280
|
+
.f(void 0, GetRandomPasswordResponseFilterSensitiveLog)
|
|
1281
|
+
.ser(se_GetRandomPasswordCommand)
|
|
1282
|
+
.de(de_GetRandomPasswordCommand)
|
|
1283
|
+
.build() {
|
|
1284
|
+
}
|
|
1651
1285
|
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
(
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
}
|
|
1286
|
+
class GetResourcePolicyCommand extends smithyClient.Command
|
|
1287
|
+
.classBuilder()
|
|
1288
|
+
.ep(commonParams)
|
|
1289
|
+
.m(function (Command, cs, config, o) {
|
|
1290
|
+
return [
|
|
1291
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1292
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1293
|
+
];
|
|
1294
|
+
})
|
|
1295
|
+
.s("secretsmanager", "GetResourcePolicy", {})
|
|
1296
|
+
.n("SecretsManagerClient", "GetResourcePolicyCommand")
|
|
1297
|
+
.f(void 0, void 0)
|
|
1298
|
+
.ser(se_GetResourcePolicyCommand)
|
|
1299
|
+
.de(de_GetResourcePolicyCommand)
|
|
1300
|
+
.build() {
|
|
1301
|
+
}
|
|
1662
1302
|
|
|
1663
|
-
|
|
1303
|
+
class GetSecretValueCommand extends smithyClient.Command
|
|
1304
|
+
.classBuilder()
|
|
1305
|
+
.ep(commonParams)
|
|
1306
|
+
.m(function (Command, cs, config, o) {
|
|
1307
|
+
return [
|
|
1308
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1309
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1310
|
+
];
|
|
1311
|
+
})
|
|
1312
|
+
.s("secretsmanager", "GetSecretValue", {})
|
|
1313
|
+
.n("SecretsManagerClient", "GetSecretValueCommand")
|
|
1314
|
+
.f(void 0, GetSecretValueResponseFilterSensitiveLog)
|
|
1315
|
+
.ser(se_GetSecretValueCommand)
|
|
1316
|
+
.de(de_GetSecretValueCommand)
|
|
1317
|
+
.build() {
|
|
1318
|
+
}
|
|
1664
1319
|
|
|
1320
|
+
class ListSecretsCommand extends smithyClient.Command
|
|
1321
|
+
.classBuilder()
|
|
1322
|
+
.ep(commonParams)
|
|
1323
|
+
.m(function (Command, cs, config, o) {
|
|
1324
|
+
return [
|
|
1325
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1326
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1327
|
+
];
|
|
1328
|
+
})
|
|
1329
|
+
.s("secretsmanager", "ListSecrets", {})
|
|
1330
|
+
.n("SecretsManagerClient", "ListSecretsCommand")
|
|
1331
|
+
.f(void 0, void 0)
|
|
1332
|
+
.ser(se_ListSecretsCommand)
|
|
1333
|
+
.de(de_ListSecretsCommand)
|
|
1334
|
+
.build() {
|
|
1335
|
+
}
|
|
1665
1336
|
|
|
1337
|
+
class ListSecretVersionIdsCommand extends smithyClient.Command
|
|
1338
|
+
.classBuilder()
|
|
1339
|
+
.ep(commonParams)
|
|
1340
|
+
.m(function (Command, cs, config, o) {
|
|
1341
|
+
return [
|
|
1342
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1343
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1344
|
+
];
|
|
1345
|
+
})
|
|
1346
|
+
.s("secretsmanager", "ListSecretVersionIds", {})
|
|
1347
|
+
.n("SecretsManagerClient", "ListSecretVersionIdsCommand")
|
|
1348
|
+
.f(void 0, void 0)
|
|
1349
|
+
.ser(se_ListSecretVersionIdsCommand)
|
|
1350
|
+
.de(de_ListSecretVersionIdsCommand)
|
|
1351
|
+
.build() {
|
|
1352
|
+
}
|
|
1666
1353
|
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
(
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
}
|
|
1354
|
+
class PutResourcePolicyCommand extends smithyClient.Command
|
|
1355
|
+
.classBuilder()
|
|
1356
|
+
.ep(commonParams)
|
|
1357
|
+
.m(function (Command, cs, config, o) {
|
|
1358
|
+
return [
|
|
1359
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1360
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1361
|
+
];
|
|
1362
|
+
})
|
|
1363
|
+
.s("secretsmanager", "PutResourcePolicy", {})
|
|
1364
|
+
.n("SecretsManagerClient", "PutResourcePolicyCommand")
|
|
1365
|
+
.f(void 0, void 0)
|
|
1366
|
+
.ser(se_PutResourcePolicyCommand)
|
|
1367
|
+
.de(de_PutResourcePolicyCommand)
|
|
1368
|
+
.build() {
|
|
1369
|
+
}
|
|
1677
1370
|
|
|
1678
|
-
|
|
1371
|
+
class PutSecretValueCommand extends smithyClient.Command
|
|
1372
|
+
.classBuilder()
|
|
1373
|
+
.ep(commonParams)
|
|
1374
|
+
.m(function (Command, cs, config, o) {
|
|
1375
|
+
return [
|
|
1376
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1377
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1378
|
+
];
|
|
1379
|
+
})
|
|
1380
|
+
.s("secretsmanager", "PutSecretValue", {})
|
|
1381
|
+
.n("SecretsManagerClient", "PutSecretValueCommand")
|
|
1382
|
+
.f(PutSecretValueRequestFilterSensitiveLog, void 0)
|
|
1383
|
+
.ser(se_PutSecretValueCommand)
|
|
1384
|
+
.de(de_PutSecretValueCommand)
|
|
1385
|
+
.build() {
|
|
1386
|
+
}
|
|
1679
1387
|
|
|
1388
|
+
class RemoveRegionsFromReplicationCommand extends smithyClient.Command
|
|
1389
|
+
.classBuilder()
|
|
1390
|
+
.ep(commonParams)
|
|
1391
|
+
.m(function (Command, cs, config, o) {
|
|
1392
|
+
return [
|
|
1393
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1394
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1395
|
+
];
|
|
1396
|
+
})
|
|
1397
|
+
.s("secretsmanager", "RemoveRegionsFromReplication", {})
|
|
1398
|
+
.n("SecretsManagerClient", "RemoveRegionsFromReplicationCommand")
|
|
1399
|
+
.f(void 0, void 0)
|
|
1400
|
+
.ser(se_RemoveRegionsFromReplicationCommand)
|
|
1401
|
+
.de(de_RemoveRegionsFromReplicationCommand)
|
|
1402
|
+
.build() {
|
|
1403
|
+
}
|
|
1680
1404
|
|
|
1405
|
+
class ReplicateSecretToRegionsCommand extends smithyClient.Command
|
|
1406
|
+
.classBuilder()
|
|
1407
|
+
.ep(commonParams)
|
|
1408
|
+
.m(function (Command, cs, config, o) {
|
|
1409
|
+
return [
|
|
1410
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1411
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1412
|
+
];
|
|
1413
|
+
})
|
|
1414
|
+
.s("secretsmanager", "ReplicateSecretToRegions", {})
|
|
1415
|
+
.n("SecretsManagerClient", "ReplicateSecretToRegionsCommand")
|
|
1416
|
+
.f(void 0, void 0)
|
|
1417
|
+
.ser(se_ReplicateSecretToRegionsCommand)
|
|
1418
|
+
.de(de_ReplicateSecretToRegionsCommand)
|
|
1419
|
+
.build() {
|
|
1420
|
+
}
|
|
1681
1421
|
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
(
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
}
|
|
1422
|
+
class RestoreSecretCommand extends smithyClient.Command
|
|
1423
|
+
.classBuilder()
|
|
1424
|
+
.ep(commonParams)
|
|
1425
|
+
.m(function (Command, cs, config, o) {
|
|
1426
|
+
return [
|
|
1427
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1428
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1429
|
+
];
|
|
1430
|
+
})
|
|
1431
|
+
.s("secretsmanager", "RestoreSecret", {})
|
|
1432
|
+
.n("SecretsManagerClient", "RestoreSecretCommand")
|
|
1433
|
+
.f(void 0, void 0)
|
|
1434
|
+
.ser(se_RestoreSecretCommand)
|
|
1435
|
+
.de(de_RestoreSecretCommand)
|
|
1436
|
+
.build() {
|
|
1437
|
+
}
|
|
1692
1438
|
|
|
1693
|
-
|
|
1439
|
+
class RotateSecretCommand extends smithyClient.Command
|
|
1440
|
+
.classBuilder()
|
|
1441
|
+
.ep(commonParams)
|
|
1442
|
+
.m(function (Command, cs, config, o) {
|
|
1443
|
+
return [
|
|
1444
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1445
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1446
|
+
];
|
|
1447
|
+
})
|
|
1448
|
+
.s("secretsmanager", "RotateSecret", {})
|
|
1449
|
+
.n("SecretsManagerClient", "RotateSecretCommand")
|
|
1450
|
+
.f(void 0, void 0)
|
|
1451
|
+
.ser(se_RotateSecretCommand)
|
|
1452
|
+
.de(de_RotateSecretCommand)
|
|
1453
|
+
.build() {
|
|
1454
|
+
}
|
|
1694
1455
|
|
|
1456
|
+
class StopReplicationToReplicaCommand extends smithyClient.Command
|
|
1457
|
+
.classBuilder()
|
|
1458
|
+
.ep(commonParams)
|
|
1459
|
+
.m(function (Command, cs, config, o) {
|
|
1460
|
+
return [
|
|
1461
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1462
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1463
|
+
];
|
|
1464
|
+
})
|
|
1465
|
+
.s("secretsmanager", "StopReplicationToReplica", {})
|
|
1466
|
+
.n("SecretsManagerClient", "StopReplicationToReplicaCommand")
|
|
1467
|
+
.f(void 0, void 0)
|
|
1468
|
+
.ser(se_StopReplicationToReplicaCommand)
|
|
1469
|
+
.de(de_StopReplicationToReplicaCommand)
|
|
1470
|
+
.build() {
|
|
1471
|
+
}
|
|
1695
1472
|
|
|
1473
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1474
|
+
.classBuilder()
|
|
1475
|
+
.ep(commonParams)
|
|
1476
|
+
.m(function (Command, cs, config, o) {
|
|
1477
|
+
return [
|
|
1478
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1479
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1480
|
+
];
|
|
1481
|
+
})
|
|
1482
|
+
.s("secretsmanager", "TagResource", {})
|
|
1483
|
+
.n("SecretsManagerClient", "TagResourceCommand")
|
|
1484
|
+
.f(void 0, void 0)
|
|
1485
|
+
.ser(se_TagResourceCommand)
|
|
1486
|
+
.de(de_TagResourceCommand)
|
|
1487
|
+
.build() {
|
|
1488
|
+
}
|
|
1696
1489
|
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
(
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
}
|
|
1490
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1491
|
+
.classBuilder()
|
|
1492
|
+
.ep(commonParams)
|
|
1493
|
+
.m(function (Command, cs, config, o) {
|
|
1494
|
+
return [
|
|
1495
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1496
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1497
|
+
];
|
|
1498
|
+
})
|
|
1499
|
+
.s("secretsmanager", "UntagResource", {})
|
|
1500
|
+
.n("SecretsManagerClient", "UntagResourceCommand")
|
|
1501
|
+
.f(void 0, void 0)
|
|
1502
|
+
.ser(se_UntagResourceCommand)
|
|
1503
|
+
.de(de_UntagResourceCommand)
|
|
1504
|
+
.build() {
|
|
1505
|
+
}
|
|
1707
1506
|
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
ReplicateSecretToRegionsCommand,
|
|
1725
|
-
RestoreSecretCommand,
|
|
1726
|
-
RotateSecretCommand,
|
|
1727
|
-
StopReplicationToReplicaCommand,
|
|
1728
|
-
TagResourceCommand,
|
|
1729
|
-
UntagResourceCommand,
|
|
1730
|
-
UpdateSecretCommand,
|
|
1731
|
-
UpdateSecretVersionStageCommand,
|
|
1732
|
-
ValidateResourcePolicyCommand
|
|
1733
|
-
};
|
|
1734
|
-
var SecretsManager = class extends SecretsManagerClient {
|
|
1735
|
-
static {
|
|
1736
|
-
__name(this, "SecretsManager");
|
|
1737
|
-
}
|
|
1738
|
-
};
|
|
1739
|
-
(0, import_smithy_client.createAggregatedClient)(commands, SecretsManager);
|
|
1507
|
+
class UpdateSecretCommand extends smithyClient.Command
|
|
1508
|
+
.classBuilder()
|
|
1509
|
+
.ep(commonParams)
|
|
1510
|
+
.m(function (Command, cs, config, o) {
|
|
1511
|
+
return [
|
|
1512
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1513
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1514
|
+
];
|
|
1515
|
+
})
|
|
1516
|
+
.s("secretsmanager", "UpdateSecret", {})
|
|
1517
|
+
.n("SecretsManagerClient", "UpdateSecretCommand")
|
|
1518
|
+
.f(UpdateSecretRequestFilterSensitiveLog, void 0)
|
|
1519
|
+
.ser(se_UpdateSecretCommand)
|
|
1520
|
+
.de(de_UpdateSecretCommand)
|
|
1521
|
+
.build() {
|
|
1522
|
+
}
|
|
1740
1523
|
|
|
1741
|
-
|
|
1524
|
+
class UpdateSecretVersionStageCommand extends smithyClient.Command
|
|
1525
|
+
.classBuilder()
|
|
1526
|
+
.ep(commonParams)
|
|
1527
|
+
.m(function (Command, cs, config, o) {
|
|
1528
|
+
return [
|
|
1529
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1530
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1531
|
+
];
|
|
1532
|
+
})
|
|
1533
|
+
.s("secretsmanager", "UpdateSecretVersionStage", {})
|
|
1534
|
+
.n("SecretsManagerClient", "UpdateSecretVersionStageCommand")
|
|
1535
|
+
.f(void 0, void 0)
|
|
1536
|
+
.ser(se_UpdateSecretVersionStageCommand)
|
|
1537
|
+
.de(de_UpdateSecretVersionStageCommand)
|
|
1538
|
+
.build() {
|
|
1539
|
+
}
|
|
1742
1540
|
|
|
1743
|
-
|
|
1541
|
+
class ValidateResourcePolicyCommand extends smithyClient.Command
|
|
1542
|
+
.classBuilder()
|
|
1543
|
+
.ep(commonParams)
|
|
1544
|
+
.m(function (Command, cs, config, o) {
|
|
1545
|
+
return [
|
|
1546
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1547
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1548
|
+
];
|
|
1549
|
+
})
|
|
1550
|
+
.s("secretsmanager", "ValidateResourcePolicy", {})
|
|
1551
|
+
.n("SecretsManagerClient", "ValidateResourcePolicyCommand")
|
|
1552
|
+
.f(void 0, void 0)
|
|
1553
|
+
.ser(se_ValidateResourcePolicyCommand)
|
|
1554
|
+
.de(de_ValidateResourcePolicyCommand)
|
|
1555
|
+
.build() {
|
|
1556
|
+
}
|
|
1744
1557
|
|
|
1745
|
-
|
|
1558
|
+
const commands = {
|
|
1559
|
+
BatchGetSecretValueCommand,
|
|
1560
|
+
CancelRotateSecretCommand,
|
|
1561
|
+
CreateSecretCommand,
|
|
1562
|
+
DeleteResourcePolicyCommand,
|
|
1563
|
+
DeleteSecretCommand,
|
|
1564
|
+
DescribeSecretCommand,
|
|
1565
|
+
GetRandomPasswordCommand,
|
|
1566
|
+
GetResourcePolicyCommand,
|
|
1567
|
+
GetSecretValueCommand,
|
|
1568
|
+
ListSecretsCommand,
|
|
1569
|
+
ListSecretVersionIdsCommand,
|
|
1570
|
+
PutResourcePolicyCommand,
|
|
1571
|
+
PutSecretValueCommand,
|
|
1572
|
+
RemoveRegionsFromReplicationCommand,
|
|
1573
|
+
ReplicateSecretToRegionsCommand,
|
|
1574
|
+
RestoreSecretCommand,
|
|
1575
|
+
RotateSecretCommand,
|
|
1576
|
+
StopReplicationToReplicaCommand,
|
|
1577
|
+
TagResourceCommand,
|
|
1578
|
+
UntagResourceCommand,
|
|
1579
|
+
UpdateSecretCommand,
|
|
1580
|
+
UpdateSecretVersionStageCommand,
|
|
1581
|
+
ValidateResourcePolicyCommand,
|
|
1582
|
+
};
|
|
1583
|
+
class SecretsManager extends SecretsManagerClient {
|
|
1584
|
+
}
|
|
1585
|
+
smithyClient.createAggregatedClient(commands, SecretsManager);
|
|
1746
1586
|
|
|
1747
|
-
|
|
1587
|
+
const paginateBatchGetSecretValue = core.createPaginator(SecretsManagerClient, BatchGetSecretValueCommand, "NextToken", "NextToken", "MaxResults");
|
|
1748
1588
|
|
|
1749
|
-
|
|
1589
|
+
const paginateListSecretVersionIds = core.createPaginator(SecretsManagerClient, ListSecretVersionIdsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1750
1590
|
|
|
1751
|
-
|
|
1752
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1591
|
+
const paginateListSecrets = core.createPaginator(SecretsManagerClient, ListSecretsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1753
1592
|
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
SecretsManagerClient,
|
|
1758
|
-
SecretsManager,
|
|
1759
|
-
$Command,
|
|
1760
|
-
BatchGetSecretValueCommand,
|
|
1761
|
-
CancelRotateSecretCommand,
|
|
1762
|
-
CreateSecretCommand,
|
|
1763
|
-
DeleteResourcePolicyCommand,
|
|
1764
|
-
DeleteSecretCommand,
|
|
1765
|
-
DescribeSecretCommand,
|
|
1766
|
-
GetRandomPasswordCommand,
|
|
1767
|
-
GetResourcePolicyCommand,
|
|
1768
|
-
GetSecretValueCommand,
|
|
1769
|
-
ListSecretVersionIdsCommand,
|
|
1770
|
-
ListSecretsCommand,
|
|
1771
|
-
PutResourcePolicyCommand,
|
|
1772
|
-
PutSecretValueCommand,
|
|
1773
|
-
RemoveRegionsFromReplicationCommand,
|
|
1774
|
-
ReplicateSecretToRegionsCommand,
|
|
1775
|
-
RestoreSecretCommand,
|
|
1776
|
-
RotateSecretCommand,
|
|
1777
|
-
StopReplicationToReplicaCommand,
|
|
1778
|
-
TagResourceCommand,
|
|
1779
|
-
UntagResourceCommand,
|
|
1780
|
-
UpdateSecretCommand,
|
|
1781
|
-
UpdateSecretVersionStageCommand,
|
|
1782
|
-
ValidateResourcePolicyCommand,
|
|
1783
|
-
paginateBatchGetSecretValue,
|
|
1784
|
-
paginateListSecretVersionIds,
|
|
1785
|
-
paginateListSecrets,
|
|
1786
|
-
FilterNameStringType,
|
|
1787
|
-
DecryptionFailure,
|
|
1788
|
-
InternalServiceError,
|
|
1789
|
-
InvalidNextTokenException,
|
|
1790
|
-
InvalidParameterException,
|
|
1791
|
-
InvalidRequestException,
|
|
1792
|
-
ResourceNotFoundException,
|
|
1793
|
-
StatusType,
|
|
1794
|
-
EncryptionFailure,
|
|
1795
|
-
LimitExceededException,
|
|
1796
|
-
MalformedPolicyDocumentException,
|
|
1797
|
-
PreconditionNotMetException,
|
|
1798
|
-
ResourceExistsException,
|
|
1799
|
-
SortOrderType,
|
|
1800
|
-
PublicPolicyException,
|
|
1801
|
-
SecretValueEntryFilterSensitiveLog,
|
|
1802
|
-
BatchGetSecretValueResponseFilterSensitiveLog,
|
|
1803
|
-
CreateSecretRequestFilterSensitiveLog,
|
|
1804
|
-
GetRandomPasswordResponseFilterSensitiveLog,
|
|
1805
|
-
GetSecretValueResponseFilterSensitiveLog,
|
|
1806
|
-
PutSecretValueRequestFilterSensitiveLog,
|
|
1807
|
-
UpdateSecretRequestFilterSensitiveLog
|
|
1593
|
+
Object.defineProperty(exports, "$Command", {
|
|
1594
|
+
enumerable: true,
|
|
1595
|
+
get: function () { return smithyClient.Command; }
|
|
1808
1596
|
});
|
|
1809
|
-
|
|
1597
|
+
Object.defineProperty(exports, "__Client", {
|
|
1598
|
+
enumerable: true,
|
|
1599
|
+
get: function () { return smithyClient.Client; }
|
|
1600
|
+
});
|
|
1601
|
+
exports.BatchGetSecretValueCommand = BatchGetSecretValueCommand;
|
|
1602
|
+
exports.BatchGetSecretValueResponseFilterSensitiveLog = BatchGetSecretValueResponseFilterSensitiveLog;
|
|
1603
|
+
exports.CancelRotateSecretCommand = CancelRotateSecretCommand;
|
|
1604
|
+
exports.CreateSecretCommand = CreateSecretCommand;
|
|
1605
|
+
exports.CreateSecretRequestFilterSensitiveLog = CreateSecretRequestFilterSensitiveLog;
|
|
1606
|
+
exports.DecryptionFailure = DecryptionFailure;
|
|
1607
|
+
exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
|
|
1608
|
+
exports.DeleteSecretCommand = DeleteSecretCommand;
|
|
1609
|
+
exports.DescribeSecretCommand = DescribeSecretCommand;
|
|
1610
|
+
exports.EncryptionFailure = EncryptionFailure;
|
|
1611
|
+
exports.FilterNameStringType = FilterNameStringType;
|
|
1612
|
+
exports.GetRandomPasswordCommand = GetRandomPasswordCommand;
|
|
1613
|
+
exports.GetRandomPasswordResponseFilterSensitiveLog = GetRandomPasswordResponseFilterSensitiveLog;
|
|
1614
|
+
exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
|
|
1615
|
+
exports.GetSecretValueCommand = GetSecretValueCommand;
|
|
1616
|
+
exports.GetSecretValueResponseFilterSensitiveLog = GetSecretValueResponseFilterSensitiveLog;
|
|
1617
|
+
exports.InternalServiceError = InternalServiceError;
|
|
1618
|
+
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
1619
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
1620
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
1621
|
+
exports.LimitExceededException = LimitExceededException;
|
|
1622
|
+
exports.ListSecretVersionIdsCommand = ListSecretVersionIdsCommand;
|
|
1623
|
+
exports.ListSecretsCommand = ListSecretsCommand;
|
|
1624
|
+
exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
|
|
1625
|
+
exports.PreconditionNotMetException = PreconditionNotMetException;
|
|
1626
|
+
exports.PublicPolicyException = PublicPolicyException;
|
|
1627
|
+
exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
|
|
1628
|
+
exports.PutSecretValueCommand = PutSecretValueCommand;
|
|
1629
|
+
exports.PutSecretValueRequestFilterSensitiveLog = PutSecretValueRequestFilterSensitiveLog;
|
|
1630
|
+
exports.RemoveRegionsFromReplicationCommand = RemoveRegionsFromReplicationCommand;
|
|
1631
|
+
exports.ReplicateSecretToRegionsCommand = ReplicateSecretToRegionsCommand;
|
|
1632
|
+
exports.ResourceExistsException = ResourceExistsException;
|
|
1633
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1634
|
+
exports.RestoreSecretCommand = RestoreSecretCommand;
|
|
1635
|
+
exports.RotateSecretCommand = RotateSecretCommand;
|
|
1636
|
+
exports.SecretValueEntryFilterSensitiveLog = SecretValueEntryFilterSensitiveLog;
|
|
1637
|
+
exports.SecretsManager = SecretsManager;
|
|
1638
|
+
exports.SecretsManagerClient = SecretsManagerClient;
|
|
1639
|
+
exports.SecretsManagerServiceException = SecretsManagerServiceException;
|
|
1640
|
+
exports.SortOrderType = SortOrderType;
|
|
1641
|
+
exports.StatusType = StatusType;
|
|
1642
|
+
exports.StopReplicationToReplicaCommand = StopReplicationToReplicaCommand;
|
|
1643
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1644
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1645
|
+
exports.UpdateSecretCommand = UpdateSecretCommand;
|
|
1646
|
+
exports.UpdateSecretRequestFilterSensitiveLog = UpdateSecretRequestFilterSensitiveLog;
|
|
1647
|
+
exports.UpdateSecretVersionStageCommand = UpdateSecretVersionStageCommand;
|
|
1648
|
+
exports.ValidateResourcePolicyCommand = ValidateResourcePolicyCommand;
|
|
1649
|
+
exports.paginateBatchGetSecretValue = paginateBatchGetSecretValue;
|
|
1650
|
+
exports.paginateListSecretVersionIds = paginateListSecretVersionIds;
|
|
1651
|
+
exports.paginateListSecrets = paginateListSecrets;
|