@depup/aws-sdk__client-secrets-manager 3.1010.0-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +39 -0
- package/changes.json +42 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +511 -0
- package/dist-cjs/models/SecretsManagerServiceException.js +12 -0
- package/dist-cjs/models/errors.js +184 -0
- package/dist-cjs/runtimeConfig.browser.js +38 -0
- package/dist-cjs/runtimeConfig.js +53 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +43 -0
- package/dist-cjs/schemas/schemas_0.js +665 -0
- package/dist-es/SecretsManager.js +61 -0
- package/dist-es/SecretsManagerClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/BatchGetSecretValueCommand.js +16 -0
- package/dist-es/commands/CancelRotateSecretCommand.js +16 -0
- package/dist-es/commands/CreateSecretCommand.js +16 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +16 -0
- package/dist-es/commands/DeleteSecretCommand.js +16 -0
- package/dist-es/commands/DescribeSecretCommand.js +16 -0
- package/dist-es/commands/GetRandomPasswordCommand.js +16 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +16 -0
- package/dist-es/commands/GetSecretValueCommand.js +16 -0
- package/dist-es/commands/ListSecretVersionIdsCommand.js +16 -0
- package/dist-es/commands/ListSecretsCommand.js +16 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +16 -0
- package/dist-es/commands/PutSecretValueCommand.js +16 -0
- package/dist-es/commands/RemoveRegionsFromReplicationCommand.js +16 -0
- package/dist-es/commands/ReplicateSecretToRegionsCommand.js +16 -0
- package/dist-es/commands/RestoreSecretCommand.js +16 -0
- package/dist-es/commands/RotateSecretCommand.js +16 -0
- package/dist-es/commands/StopReplicationToReplicaCommand.js +16 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/UpdateSecretCommand.js +16 -0
- package/dist-es/commands/UpdateSecretVersionStageCommand.js +16 -0
- package/dist-es/commands/ValidateResourcePolicyCommand.js +16 -0
- package/dist-es/commands/index.js +23 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/SecretsManagerServiceException.js +8 -0
- package/dist-es/models/enums.js +24 -0
- package/dist-es/models/errors.js +169 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/BatchGetSecretValuePaginator.js +4 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListSecretVersionIdsPaginator.js +4 -0
- package/dist-es/pagination/ListSecretsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/runtimeConfig.browser.js +33 -0
- package/dist-es/runtimeConfig.js +48 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +39 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +661 -0
- package/dist-types/SecretsManager.d.ts +220 -0
- package/dist-types/SecretsManagerClient.d.ts +235 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/BatchGetSecretValueCommand.d.ts +210 -0
- package/dist-types/commands/CancelRotateSecretCommand.d.ts +135 -0
- package/dist-types/commands/CreateSecretCommand.d.ts +218 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +126 -0
- package/dist-types/commands/DeleteSecretCommand.d.ts +135 -0
- package/dist-types/commands/DescribeSecretCommand.d.ts +137 -0
- package/dist-types/commands/GetRandomPasswordCommand.d.ts +135 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +138 -0
- package/dist-types/commands/GetSecretValueCommand.d.ts +157 -0
- package/dist-types/commands/ListSecretVersionIdsCommand.d.ts +151 -0
- package/dist-types/commands/ListSecretsCommand.d.ts +208 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +147 -0
- package/dist-types/commands/PutSecretValueCommand.d.ts +183 -0
- package/dist-types/commands/RemoveRegionsFromReplicationCommand.d.ts +122 -0
- package/dist-types/commands/ReplicateSecretToRegionsCommand.d.ts +157 -0
- package/dist-types/commands/RestoreSecretCommand.d.ts +126 -0
- package/dist-types/commands/RotateSecretCommand.d.ts +180 -0
- package/dist-types/commands/StopReplicationToReplicaCommand.d.ts +111 -0
- package/dist-types/commands/TagResourceCommand.d.ts +145 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +134 -0
- package/dist-types/commands/UpdateSecretCommand.d.ts +221 -0
- package/dist-types/commands/UpdateSecretVersionStageCommand.d.ts +187 -0
- package/dist-types/commands/ValidateResourcePolicyCommand.d.ts +161 -0
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +42 -0
- package/dist-types/models/SecretsManagerServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +56 -0
- package/dist-types/models/errors.d.ts +175 -0
- package/dist-types/models/models_0.d.ts +1957 -0
- package/dist-types/pagination/BatchGetSecretValuePaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListSecretVersionIdsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSecretsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +99 -0
- package/dist-types/ts3.4/SecretsManager.d.ts +426 -0
- package/dist-types/ts3.4/SecretsManagerClient.d.ts +258 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/BatchGetSecretValueCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CancelRotateSecretCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateSecretCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteSecretCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DescribeSecretCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetRandomPasswordCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetSecretValueCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListSecretsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutSecretValueCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/RemoveRegionsFromReplicationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RestoreSecretCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/RotateSecretCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/StopReplicationToReplicaCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/UpdateSecretCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +12 -0
- package/dist-types/ts3.4/models/SecretsManagerServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +29 -0
- package/dist-types/ts3.4/models/errors.d.ts +97 -0
- package/dist-types/ts3.4/models/models_0.d.ts +333 -0
- package/dist-types/ts3.4/pagination/BatchGetSecretValuePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListSecretVersionIdsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSecretsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +98 -0
- package/package.json +159 -0
|
@@ -0,0 +1,511 @@
|
|
|
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 schema = require('@smithy/core/schema');
|
|
10
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
11
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
12
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
13
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
14
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
15
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
16
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var errors = require('./models/errors');
|
|
20
|
+
var SecretsManagerServiceException = require('./models/SecretsManagerServiceException');
|
|
21
|
+
|
|
22
|
+
const resolveClientEndpointParameters = (options) => {
|
|
23
|
+
return Object.assign(options, {
|
|
24
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
25
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
26
|
+
defaultSigningName: "secretsmanager",
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const commonParams = {
|
|
30
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
31
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
32
|
+
Region: { type: "builtInParams", name: "region" },
|
|
33
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
37
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
38
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
39
|
+
let _credentials = runtimeConfig.credentials;
|
|
40
|
+
return {
|
|
41
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
42
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
43
|
+
if (index === -1) {
|
|
44
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
httpAuthSchemes() {
|
|
51
|
+
return _httpAuthSchemes;
|
|
52
|
+
},
|
|
53
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
54
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
55
|
+
},
|
|
56
|
+
httpAuthSchemeProvider() {
|
|
57
|
+
return _httpAuthSchemeProvider;
|
|
58
|
+
},
|
|
59
|
+
setCredentials(credentials) {
|
|
60
|
+
_credentials = credentials;
|
|
61
|
+
},
|
|
62
|
+
credentials() {
|
|
63
|
+
return _credentials;
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
68
|
+
return {
|
|
69
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
70
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
71
|
+
credentials: config.credentials(),
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
76
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
77
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
78
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
class SecretsManagerClient extends smithyClient.Client {
|
|
82
|
+
config;
|
|
83
|
+
constructor(...[configuration]) {
|
|
84
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
85
|
+
super(_config_0);
|
|
86
|
+
this.initConfig = _config_0;
|
|
87
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
88
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
89
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
90
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
91
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
92
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
93
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
94
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
95
|
+
this.config = _config_8;
|
|
96
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
103
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
104
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSecretsManagerHttpAuthSchemeParametersProvider,
|
|
105
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
106
|
+
"aws.auth#sigv4": config.credentials,
|
|
107
|
+
}),
|
|
108
|
+
}));
|
|
109
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
110
|
+
}
|
|
111
|
+
destroy() {
|
|
112
|
+
super.destroy();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
class BatchGetSecretValueCommand extends smithyClient.Command
|
|
117
|
+
.classBuilder()
|
|
118
|
+
.ep(commonParams)
|
|
119
|
+
.m(function (Command, cs, config, o) {
|
|
120
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
121
|
+
})
|
|
122
|
+
.s("secretsmanager", "BatchGetSecretValue", {})
|
|
123
|
+
.n("SecretsManagerClient", "BatchGetSecretValueCommand")
|
|
124
|
+
.sc(schemas_0.BatchGetSecretValue$)
|
|
125
|
+
.build() {
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
class CancelRotateSecretCommand extends smithyClient.Command
|
|
129
|
+
.classBuilder()
|
|
130
|
+
.ep(commonParams)
|
|
131
|
+
.m(function (Command, cs, config, o) {
|
|
132
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
133
|
+
})
|
|
134
|
+
.s("secretsmanager", "CancelRotateSecret", {})
|
|
135
|
+
.n("SecretsManagerClient", "CancelRotateSecretCommand")
|
|
136
|
+
.sc(schemas_0.CancelRotateSecret$)
|
|
137
|
+
.build() {
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
class CreateSecretCommand extends smithyClient.Command
|
|
141
|
+
.classBuilder()
|
|
142
|
+
.ep(commonParams)
|
|
143
|
+
.m(function (Command, cs, config, o) {
|
|
144
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
145
|
+
})
|
|
146
|
+
.s("secretsmanager", "CreateSecret", {})
|
|
147
|
+
.n("SecretsManagerClient", "CreateSecretCommand")
|
|
148
|
+
.sc(schemas_0.CreateSecret$)
|
|
149
|
+
.build() {
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
class DeleteResourcePolicyCommand extends smithyClient.Command
|
|
153
|
+
.classBuilder()
|
|
154
|
+
.ep(commonParams)
|
|
155
|
+
.m(function (Command, cs, config, o) {
|
|
156
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
157
|
+
})
|
|
158
|
+
.s("secretsmanager", "DeleteResourcePolicy", {})
|
|
159
|
+
.n("SecretsManagerClient", "DeleteResourcePolicyCommand")
|
|
160
|
+
.sc(schemas_0.DeleteResourcePolicy$)
|
|
161
|
+
.build() {
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
class DeleteSecretCommand extends smithyClient.Command
|
|
165
|
+
.classBuilder()
|
|
166
|
+
.ep(commonParams)
|
|
167
|
+
.m(function (Command, cs, config, o) {
|
|
168
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
169
|
+
})
|
|
170
|
+
.s("secretsmanager", "DeleteSecret", {})
|
|
171
|
+
.n("SecretsManagerClient", "DeleteSecretCommand")
|
|
172
|
+
.sc(schemas_0.DeleteSecret$)
|
|
173
|
+
.build() {
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
class DescribeSecretCommand extends smithyClient.Command
|
|
177
|
+
.classBuilder()
|
|
178
|
+
.ep(commonParams)
|
|
179
|
+
.m(function (Command, cs, config, o) {
|
|
180
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
181
|
+
})
|
|
182
|
+
.s("secretsmanager", "DescribeSecret", {})
|
|
183
|
+
.n("SecretsManagerClient", "DescribeSecretCommand")
|
|
184
|
+
.sc(schemas_0.DescribeSecret$)
|
|
185
|
+
.build() {
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
class GetRandomPasswordCommand extends smithyClient.Command
|
|
189
|
+
.classBuilder()
|
|
190
|
+
.ep(commonParams)
|
|
191
|
+
.m(function (Command, cs, config, o) {
|
|
192
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
193
|
+
})
|
|
194
|
+
.s("secretsmanager", "GetRandomPassword", {})
|
|
195
|
+
.n("SecretsManagerClient", "GetRandomPasswordCommand")
|
|
196
|
+
.sc(schemas_0.GetRandomPassword$)
|
|
197
|
+
.build() {
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
class GetResourcePolicyCommand extends smithyClient.Command
|
|
201
|
+
.classBuilder()
|
|
202
|
+
.ep(commonParams)
|
|
203
|
+
.m(function (Command, cs, config, o) {
|
|
204
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
205
|
+
})
|
|
206
|
+
.s("secretsmanager", "GetResourcePolicy", {})
|
|
207
|
+
.n("SecretsManagerClient", "GetResourcePolicyCommand")
|
|
208
|
+
.sc(schemas_0.GetResourcePolicy$)
|
|
209
|
+
.build() {
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
class GetSecretValueCommand extends smithyClient.Command
|
|
213
|
+
.classBuilder()
|
|
214
|
+
.ep(commonParams)
|
|
215
|
+
.m(function (Command, cs, config, o) {
|
|
216
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
217
|
+
})
|
|
218
|
+
.s("secretsmanager", "GetSecretValue", {})
|
|
219
|
+
.n("SecretsManagerClient", "GetSecretValueCommand")
|
|
220
|
+
.sc(schemas_0.GetSecretValue$)
|
|
221
|
+
.build() {
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
class ListSecretsCommand extends smithyClient.Command
|
|
225
|
+
.classBuilder()
|
|
226
|
+
.ep(commonParams)
|
|
227
|
+
.m(function (Command, cs, config, o) {
|
|
228
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
229
|
+
})
|
|
230
|
+
.s("secretsmanager", "ListSecrets", {})
|
|
231
|
+
.n("SecretsManagerClient", "ListSecretsCommand")
|
|
232
|
+
.sc(schemas_0.ListSecrets$)
|
|
233
|
+
.build() {
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
class ListSecretVersionIdsCommand extends smithyClient.Command
|
|
237
|
+
.classBuilder()
|
|
238
|
+
.ep(commonParams)
|
|
239
|
+
.m(function (Command, cs, config, o) {
|
|
240
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
241
|
+
})
|
|
242
|
+
.s("secretsmanager", "ListSecretVersionIds", {})
|
|
243
|
+
.n("SecretsManagerClient", "ListSecretVersionIdsCommand")
|
|
244
|
+
.sc(schemas_0.ListSecretVersionIds$)
|
|
245
|
+
.build() {
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
class PutResourcePolicyCommand extends smithyClient.Command
|
|
249
|
+
.classBuilder()
|
|
250
|
+
.ep(commonParams)
|
|
251
|
+
.m(function (Command, cs, config, o) {
|
|
252
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
253
|
+
})
|
|
254
|
+
.s("secretsmanager", "PutResourcePolicy", {})
|
|
255
|
+
.n("SecretsManagerClient", "PutResourcePolicyCommand")
|
|
256
|
+
.sc(schemas_0.PutResourcePolicy$)
|
|
257
|
+
.build() {
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
class PutSecretValueCommand extends smithyClient.Command
|
|
261
|
+
.classBuilder()
|
|
262
|
+
.ep(commonParams)
|
|
263
|
+
.m(function (Command, cs, config, o) {
|
|
264
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
265
|
+
})
|
|
266
|
+
.s("secretsmanager", "PutSecretValue", {})
|
|
267
|
+
.n("SecretsManagerClient", "PutSecretValueCommand")
|
|
268
|
+
.sc(schemas_0.PutSecretValue$)
|
|
269
|
+
.build() {
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
class RemoveRegionsFromReplicationCommand extends smithyClient.Command
|
|
273
|
+
.classBuilder()
|
|
274
|
+
.ep(commonParams)
|
|
275
|
+
.m(function (Command, cs, config, o) {
|
|
276
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
277
|
+
})
|
|
278
|
+
.s("secretsmanager", "RemoveRegionsFromReplication", {})
|
|
279
|
+
.n("SecretsManagerClient", "RemoveRegionsFromReplicationCommand")
|
|
280
|
+
.sc(schemas_0.RemoveRegionsFromReplication$)
|
|
281
|
+
.build() {
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
class ReplicateSecretToRegionsCommand extends smithyClient.Command
|
|
285
|
+
.classBuilder()
|
|
286
|
+
.ep(commonParams)
|
|
287
|
+
.m(function (Command, cs, config, o) {
|
|
288
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
289
|
+
})
|
|
290
|
+
.s("secretsmanager", "ReplicateSecretToRegions", {})
|
|
291
|
+
.n("SecretsManagerClient", "ReplicateSecretToRegionsCommand")
|
|
292
|
+
.sc(schemas_0.ReplicateSecretToRegions$)
|
|
293
|
+
.build() {
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
class RestoreSecretCommand extends smithyClient.Command
|
|
297
|
+
.classBuilder()
|
|
298
|
+
.ep(commonParams)
|
|
299
|
+
.m(function (Command, cs, config, o) {
|
|
300
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
301
|
+
})
|
|
302
|
+
.s("secretsmanager", "RestoreSecret", {})
|
|
303
|
+
.n("SecretsManagerClient", "RestoreSecretCommand")
|
|
304
|
+
.sc(schemas_0.RestoreSecret$)
|
|
305
|
+
.build() {
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
class RotateSecretCommand extends smithyClient.Command
|
|
309
|
+
.classBuilder()
|
|
310
|
+
.ep(commonParams)
|
|
311
|
+
.m(function (Command, cs, config, o) {
|
|
312
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
313
|
+
})
|
|
314
|
+
.s("secretsmanager", "RotateSecret", {})
|
|
315
|
+
.n("SecretsManagerClient", "RotateSecretCommand")
|
|
316
|
+
.sc(schemas_0.RotateSecret$)
|
|
317
|
+
.build() {
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
class StopReplicationToReplicaCommand extends smithyClient.Command
|
|
321
|
+
.classBuilder()
|
|
322
|
+
.ep(commonParams)
|
|
323
|
+
.m(function (Command, cs, config, o) {
|
|
324
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
325
|
+
})
|
|
326
|
+
.s("secretsmanager", "StopReplicationToReplica", {})
|
|
327
|
+
.n("SecretsManagerClient", "StopReplicationToReplicaCommand")
|
|
328
|
+
.sc(schemas_0.StopReplicationToReplica$)
|
|
329
|
+
.build() {
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
class TagResourceCommand extends smithyClient.Command
|
|
333
|
+
.classBuilder()
|
|
334
|
+
.ep(commonParams)
|
|
335
|
+
.m(function (Command, cs, config, o) {
|
|
336
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
337
|
+
})
|
|
338
|
+
.s("secretsmanager", "TagResource", {})
|
|
339
|
+
.n("SecretsManagerClient", "TagResourceCommand")
|
|
340
|
+
.sc(schemas_0.TagResource$)
|
|
341
|
+
.build() {
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
345
|
+
.classBuilder()
|
|
346
|
+
.ep(commonParams)
|
|
347
|
+
.m(function (Command, cs, config, o) {
|
|
348
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
349
|
+
})
|
|
350
|
+
.s("secretsmanager", "UntagResource", {})
|
|
351
|
+
.n("SecretsManagerClient", "UntagResourceCommand")
|
|
352
|
+
.sc(schemas_0.UntagResource$)
|
|
353
|
+
.build() {
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
class UpdateSecretCommand extends smithyClient.Command
|
|
357
|
+
.classBuilder()
|
|
358
|
+
.ep(commonParams)
|
|
359
|
+
.m(function (Command, cs, config, o) {
|
|
360
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
361
|
+
})
|
|
362
|
+
.s("secretsmanager", "UpdateSecret", {})
|
|
363
|
+
.n("SecretsManagerClient", "UpdateSecretCommand")
|
|
364
|
+
.sc(schemas_0.UpdateSecret$)
|
|
365
|
+
.build() {
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
class UpdateSecretVersionStageCommand extends smithyClient.Command
|
|
369
|
+
.classBuilder()
|
|
370
|
+
.ep(commonParams)
|
|
371
|
+
.m(function (Command, cs, config, o) {
|
|
372
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
373
|
+
})
|
|
374
|
+
.s("secretsmanager", "UpdateSecretVersionStage", {})
|
|
375
|
+
.n("SecretsManagerClient", "UpdateSecretVersionStageCommand")
|
|
376
|
+
.sc(schemas_0.UpdateSecretVersionStage$)
|
|
377
|
+
.build() {
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
class ValidateResourcePolicyCommand extends smithyClient.Command
|
|
381
|
+
.classBuilder()
|
|
382
|
+
.ep(commonParams)
|
|
383
|
+
.m(function (Command, cs, config, o) {
|
|
384
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
385
|
+
})
|
|
386
|
+
.s("secretsmanager", "ValidateResourcePolicy", {})
|
|
387
|
+
.n("SecretsManagerClient", "ValidateResourcePolicyCommand")
|
|
388
|
+
.sc(schemas_0.ValidateResourcePolicy$)
|
|
389
|
+
.build() {
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
const paginateBatchGetSecretValue = core.createPaginator(SecretsManagerClient, BatchGetSecretValueCommand, "NextToken", "NextToken", "MaxResults");
|
|
393
|
+
|
|
394
|
+
const paginateListSecrets = core.createPaginator(SecretsManagerClient, ListSecretsCommand, "NextToken", "NextToken", "MaxResults");
|
|
395
|
+
|
|
396
|
+
const paginateListSecretVersionIds = core.createPaginator(SecretsManagerClient, ListSecretVersionIdsCommand, "NextToken", "NextToken", "MaxResults");
|
|
397
|
+
|
|
398
|
+
const commands = {
|
|
399
|
+
BatchGetSecretValueCommand,
|
|
400
|
+
CancelRotateSecretCommand,
|
|
401
|
+
CreateSecretCommand,
|
|
402
|
+
DeleteResourcePolicyCommand,
|
|
403
|
+
DeleteSecretCommand,
|
|
404
|
+
DescribeSecretCommand,
|
|
405
|
+
GetRandomPasswordCommand,
|
|
406
|
+
GetResourcePolicyCommand,
|
|
407
|
+
GetSecretValueCommand,
|
|
408
|
+
ListSecretsCommand,
|
|
409
|
+
ListSecretVersionIdsCommand,
|
|
410
|
+
PutResourcePolicyCommand,
|
|
411
|
+
PutSecretValueCommand,
|
|
412
|
+
RemoveRegionsFromReplicationCommand,
|
|
413
|
+
ReplicateSecretToRegionsCommand,
|
|
414
|
+
RestoreSecretCommand,
|
|
415
|
+
RotateSecretCommand,
|
|
416
|
+
StopReplicationToReplicaCommand,
|
|
417
|
+
TagResourceCommand,
|
|
418
|
+
UntagResourceCommand,
|
|
419
|
+
UpdateSecretCommand,
|
|
420
|
+
UpdateSecretVersionStageCommand,
|
|
421
|
+
ValidateResourcePolicyCommand,
|
|
422
|
+
};
|
|
423
|
+
const paginators = {
|
|
424
|
+
paginateBatchGetSecretValue,
|
|
425
|
+
paginateListSecrets,
|
|
426
|
+
paginateListSecretVersionIds,
|
|
427
|
+
};
|
|
428
|
+
class SecretsManager extends SecretsManagerClient {
|
|
429
|
+
}
|
|
430
|
+
smithyClient.createAggregatedClient(commands, SecretsManager, { paginators });
|
|
431
|
+
|
|
432
|
+
const FilterNameStringType = {
|
|
433
|
+
all: "all",
|
|
434
|
+
description: "description",
|
|
435
|
+
name: "name",
|
|
436
|
+
owning_service: "owning-service",
|
|
437
|
+
primary_region: "primary-region",
|
|
438
|
+
tag_key: "tag-key",
|
|
439
|
+
tag_value: "tag-value",
|
|
440
|
+
};
|
|
441
|
+
const StatusType = {
|
|
442
|
+
Failed: "Failed",
|
|
443
|
+
InProgress: "InProgress",
|
|
444
|
+
InSync: "InSync",
|
|
445
|
+
};
|
|
446
|
+
const SortByType = {
|
|
447
|
+
created_date: "created-date",
|
|
448
|
+
last_accessed_date: "last-accessed-date",
|
|
449
|
+
last_changed_date: "last-changed-date",
|
|
450
|
+
name: "name",
|
|
451
|
+
};
|
|
452
|
+
const SortOrderType = {
|
|
453
|
+
asc: "asc",
|
|
454
|
+
desc: "desc",
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
exports.$Command = smithyClient.Command;
|
|
458
|
+
exports.__Client = smithyClient.Client;
|
|
459
|
+
exports.SecretsManagerServiceException = SecretsManagerServiceException.SecretsManagerServiceException;
|
|
460
|
+
exports.BatchGetSecretValueCommand = BatchGetSecretValueCommand;
|
|
461
|
+
exports.CancelRotateSecretCommand = CancelRotateSecretCommand;
|
|
462
|
+
exports.CreateSecretCommand = CreateSecretCommand;
|
|
463
|
+
exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
|
|
464
|
+
exports.DeleteSecretCommand = DeleteSecretCommand;
|
|
465
|
+
exports.DescribeSecretCommand = DescribeSecretCommand;
|
|
466
|
+
exports.FilterNameStringType = FilterNameStringType;
|
|
467
|
+
exports.GetRandomPasswordCommand = GetRandomPasswordCommand;
|
|
468
|
+
exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
|
|
469
|
+
exports.GetSecretValueCommand = GetSecretValueCommand;
|
|
470
|
+
exports.ListSecretVersionIdsCommand = ListSecretVersionIdsCommand;
|
|
471
|
+
exports.ListSecretsCommand = ListSecretsCommand;
|
|
472
|
+
exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
|
|
473
|
+
exports.PutSecretValueCommand = PutSecretValueCommand;
|
|
474
|
+
exports.RemoveRegionsFromReplicationCommand = RemoveRegionsFromReplicationCommand;
|
|
475
|
+
exports.ReplicateSecretToRegionsCommand = ReplicateSecretToRegionsCommand;
|
|
476
|
+
exports.RestoreSecretCommand = RestoreSecretCommand;
|
|
477
|
+
exports.RotateSecretCommand = RotateSecretCommand;
|
|
478
|
+
exports.SecretsManager = SecretsManager;
|
|
479
|
+
exports.SecretsManagerClient = SecretsManagerClient;
|
|
480
|
+
exports.SortByType = SortByType;
|
|
481
|
+
exports.SortOrderType = SortOrderType;
|
|
482
|
+
exports.StatusType = StatusType;
|
|
483
|
+
exports.StopReplicationToReplicaCommand = StopReplicationToReplicaCommand;
|
|
484
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
485
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
486
|
+
exports.UpdateSecretCommand = UpdateSecretCommand;
|
|
487
|
+
exports.UpdateSecretVersionStageCommand = UpdateSecretVersionStageCommand;
|
|
488
|
+
exports.ValidateResourcePolicyCommand = ValidateResourcePolicyCommand;
|
|
489
|
+
exports.paginateBatchGetSecretValue = paginateBatchGetSecretValue;
|
|
490
|
+
exports.paginateListSecretVersionIds = paginateListSecretVersionIds;
|
|
491
|
+
exports.paginateListSecrets = paginateListSecrets;
|
|
492
|
+
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
493
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
494
|
+
Object.defineProperty(exports, '__proto__', {
|
|
495
|
+
enumerable: true,
|
|
496
|
+
value: schemas_0['__proto__']
|
|
497
|
+
});
|
|
498
|
+
|
|
499
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
500
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
501
|
+
});
|
|
502
|
+
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
503
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
504
|
+
Object.defineProperty(exports, '__proto__', {
|
|
505
|
+
enumerable: true,
|
|
506
|
+
value: errors['__proto__']
|
|
507
|
+
});
|
|
508
|
+
|
|
509
|
+
Object.keys(errors).forEach(function (k) {
|
|
510
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
511
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecretsManagerServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class SecretsManagerServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, SecretsManagerServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.SecretsManagerServiceException = SecretsManagerServiceException;
|