@aws-sdk/client-secrets-manager 3.926.0 → 3.928.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.
Files changed (47) hide show
  1. package/dist-cjs/index.js +808 -1068
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/SecretsManagerClient.js +2 -0
  4. package/dist-es/commands/BatchGetSecretValueCommand.js +3 -10
  5. package/dist-es/commands/CancelRotateSecretCommand.js +3 -9
  6. package/dist-es/commands/CreateSecretCommand.js +3 -10
  7. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  8. package/dist-es/commands/DeleteSecretCommand.js +3 -9
  9. package/dist-es/commands/DescribeSecretCommand.js +3 -9
  10. package/dist-es/commands/GetRandomPasswordCommand.js +3 -10
  11. package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
  12. package/dist-es/commands/GetSecretValueCommand.js +3 -10
  13. package/dist-es/commands/ListSecretVersionIdsCommand.js +3 -9
  14. package/dist-es/commands/ListSecretsCommand.js +3 -9
  15. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  16. package/dist-es/commands/PutSecretValueCommand.js +3 -10
  17. package/dist-es/commands/RemoveRegionsFromReplicationCommand.js +3 -9
  18. package/dist-es/commands/ReplicateSecretToRegionsCommand.js +3 -9
  19. package/dist-es/commands/RestoreSecretCommand.js +3 -9
  20. package/dist-es/commands/RotateSecretCommand.js +3 -9
  21. package/dist-es/commands/StopReplicationToReplicaCommand.js +3 -9
  22. package/dist-es/commands/TagResourceCommand.js +3 -9
  23. package/dist-es/commands/UntagResourceCommand.js +3 -9
  24. package/dist-es/commands/UpdateSecretCommand.js +3 -10
  25. package/dist-es/commands/UpdateSecretVersionStageCommand.js +3 -9
  26. package/dist-es/commands/ValidateResourcePolicyCommand.js +3 -9
  27. package/dist-es/models/models_0.js +0 -35
  28. package/dist-es/runtimeConfig.shared.js +7 -0
  29. package/dist-es/schemas/schemas_0.js +731 -0
  30. package/dist-types/SecretsManagerClient.d.ts +10 -1
  31. package/dist-types/models/models_0.d.ts +0 -28
  32. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  33. package/dist-types/runtimeConfig.d.ts +1 -0
  34. package/dist-types/runtimeConfig.native.d.ts +1 -0
  35. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  36. package/dist-types/schemas/schemas_0.d.ts +112 -0
  37. package/dist-types/ts3.4/SecretsManagerClient.d.ts +4 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +0 -21
  39. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  40. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  41. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  42. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  43. package/dist-types/ts3.4/schemas/schemas_0.d.ts +119 -0
  44. package/package.json +5 -6
  45. package/dist-es/protocols/Aws_json1_1.js +0 -834
  46. package/dist-types/protocols/Aws_json1_1.d.ts +0 -209
  47. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -281
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ValidateResourcePolicyCommand, se_ValidateResourcePolicyCommand } from "../protocols/Aws_json1_1";
4
+ import { ValidateResourcePolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ValidateResourcePolicyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("secretsmanager", "ValidateResourcePolicy", {})
17
13
  .n("SecretsManagerClient", "ValidateResourcePolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ValidateResourcePolicyCommand)
20
- .de(de_ValidateResourcePolicyCommand)
14
+ .sc(ValidateResourcePolicy)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { SecretsManagerServiceException as __BaseException } from "./SecretsManagerServiceException";
3
2
  export const FilterNameStringType = {
4
3
  all: "all",
@@ -186,37 +185,3 @@ export class PublicPolicyException extends __BaseException {
186
185
  this.Message = opts.Message;
187
186
  }
188
187
  }
189
- export const SecretValueEntryFilterSensitiveLog = (obj) => ({
190
- ...obj,
191
- ...(obj.SecretBinary && { SecretBinary: SENSITIVE_STRING }),
192
- ...(obj.SecretString && { SecretString: SENSITIVE_STRING }),
193
- });
194
- export const BatchGetSecretValueResponseFilterSensitiveLog = (obj) => ({
195
- ...obj,
196
- ...(obj.SecretValues && { SecretValues: obj.SecretValues.map((item) => SecretValueEntryFilterSensitiveLog(item)) }),
197
- });
198
- export const CreateSecretRequestFilterSensitiveLog = (obj) => ({
199
- ...obj,
200
- ...(obj.SecretBinary && { SecretBinary: SENSITIVE_STRING }),
201
- ...(obj.SecretString && { SecretString: SENSITIVE_STRING }),
202
- });
203
- export const GetRandomPasswordResponseFilterSensitiveLog = (obj) => ({
204
- ...obj,
205
- ...(obj.RandomPassword && { RandomPassword: SENSITIVE_STRING }),
206
- });
207
- export const GetSecretValueResponseFilterSensitiveLog = (obj) => ({
208
- ...obj,
209
- ...(obj.SecretBinary && { SecretBinary: SENSITIVE_STRING }),
210
- ...(obj.SecretString && { SecretString: SENSITIVE_STRING }),
211
- });
212
- export const PutSecretValueRequestFilterSensitiveLog = (obj) => ({
213
- ...obj,
214
- ...(obj.SecretBinary && { SecretBinary: SENSITIVE_STRING }),
215
- ...(obj.SecretString && { SecretString: SENSITIVE_STRING }),
216
- ...(obj.RotationToken && { RotationToken: SENSITIVE_STRING }),
217
- });
218
- export const UpdateSecretRequestFilterSensitiveLog = (obj) => ({
219
- ...obj,
220
- ...(obj.SecretBinary && { SecretBinary: SENSITIVE_STRING }),
221
- ...(obj.SecretString && { SecretString: SENSITIVE_STRING }),
222
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.secretsmanager",
29
+ serviceTarget: "secretsmanager",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "Secrets Manager",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,