@aws-sdk/client-secrets-manager 3.614.0 → 3.616.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 CHANGED
@@ -178,19 +178,19 @@ var _SecretsManagerClient = class _SecretsManagerClient extends import_smithy_cl
178
178
  const _config_1 = resolveClientEndpointParameters(_config_0);
179
179
  const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
180
180
  const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
181
- const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
182
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
183
- const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
181
+ const _config_4 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_3);
182
+ const _config_5 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_4);
183
+ const _config_6 = (0, import_middleware_retry.resolveRetryConfig)(_config_5);
184
184
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
185
185
  const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
186
186
  super(_config_8);
187
187
  this.config = _config_8;
188
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
189
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
190
188
  this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
191
189
  this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
192
190
  this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
193
191
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
192
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
193
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
194
194
  this.middlewareStack.use(
195
195
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
196
196
  httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
@@ -19,19 +19,19 @@ export class SecretsManagerClient extends __Client {
19
19
  const _config_1 = resolveClientEndpointParameters(_config_0);
20
20
  const _config_2 = resolveRegionConfig(_config_1);
21
21
  const _config_3 = resolveEndpointConfig(_config_2);
22
- const _config_4 = resolveRetryConfig(_config_3);
23
- const _config_5 = resolveHostHeaderConfig(_config_4);
24
- const _config_6 = resolveUserAgentConfig(_config_5);
22
+ const _config_4 = resolveHostHeaderConfig(_config_3);
23
+ const _config_5 = resolveUserAgentConfig(_config_4);
24
+ const _config_6 = resolveRetryConfig(_config_5);
25
25
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
26
26
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
27
27
  super(_config_8);
28
28
  this.config = _config_8;
29
- this.middlewareStack.use(getRetryPlugin(this.config));
30
- this.middlewareStack.use(getContentLengthPlugin(this.config));
31
29
  this.middlewareStack.use(getHostHeaderPlugin(this.config));
32
30
  this.middlewareStack.use(getLoggerPlugin(this.config));
33
31
  this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
34
32
  this.middlewareStack.use(getUserAgentPlugin(this.config));
33
+ this.middlewareStack.use(getRetryPlugin(this.config));
34
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
35
35
  this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
36
36
  httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
37
37
  identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
@@ -154,7 +154,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
154
154
  /**
155
155
  * @public
156
156
  */
157
- export type SecretsManagerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
157
+ export type SecretsManagerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & HostHeaderInputConfig & UserAgentInputConfig & RetryInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
158
158
  /**
159
159
  * @public
160
160
  *
@@ -165,7 +165,7 @@ export interface SecretsManagerClientConfig extends SecretsManagerClientConfigTy
165
165
  /**
166
166
  * @public
167
167
  */
168
- export type SecretsManagerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
168
+ export type SecretsManagerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HostHeaderResolvedConfig & UserAgentResolvedConfig & RetryResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
169
169
  /**
170
170
  * @public
171
171
  *
@@ -63,6 +63,9 @@ declare const CreateSecretCommand_base: {
63
63
  * IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
64
64
  * and access control in Secrets Manager</a>. </p>
65
65
  * <p>To encrypt the secret with a KMS key other than <code>aws/secretsmanager</code>, you need <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permission to the key. </p>
66
+ * <important>
67
+ * <p>When you enter commands in a command shell, there is a risk of the command history being accessed or utilities having access to your command parameters. This is a concern if the command includes the value of a secret. Learn how to <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/security_cli-exposure-risks.html">Mitigate the risks of using command-line tools to store Secrets Manager secrets</a>.</p>
68
+ * </important>
66
69
  * @example
67
70
  * Use a bare-bones client and the command you need to make an API call.
68
71
  * ```javascript
@@ -55,6 +55,9 @@ declare const PutSecretValueCommand_base: {
55
55
  * For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions">
56
56
  * IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
57
57
  * and access control in Secrets Manager</a>. </p>
58
+ * <important>
59
+ * <p>When you enter commands in a command shell, there is a risk of the command history being accessed or utilities having access to your command parameters. This is a concern if the command includes the value of a secret. Learn how to <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/security_cli-exposure-risks.html">Mitigate the risks of using command-line tools to store Secrets Manager secrets</a>.</p>
60
+ * </important>
58
61
  * @example
59
62
  * Use a bare-bones client and the command you need to make an API call.
60
63
  * ```javascript
@@ -52,8 +52,11 @@ declare const UpdateSecretCommand_base: {
52
52
  * IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
53
53
  * and access control in Secrets Manager</a>.
54
54
  * If you use a customer managed key, you must also have <code>kms:GenerateDataKey</code>, <code>kms:Encrypt</code>, and
55
- * <code>kms:Decrypt</code> permissions on the key. If you change the KMS key and you don't have <code>kms:Encrypt</code> permission to the new key, Secrets Manager does not re-ecrypt existing secret versions with the new key. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/security-encryption.html">
55
+ * <code>kms:Decrypt</code> permissions on the key. If you change the KMS key and you don't have <code>kms:Encrypt</code> permission to the new key, Secrets Manager does not re-encrypt existing secret versions with the new key. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/security-encryption.html">
56
56
  * Secret encryption and decryption</a>.</p>
57
+ * <important>
58
+ * <p>When you enter commands in a command shell, there is a risk of the command history being accessed or utilities having access to your command parameters. This is a concern if the command includes the value of a secret. Learn how to <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/security_cli-exposure-risks.html">Mitigate the risks of using command-line tools to store Secrets Manager secrets</a>.</p>
59
+ * </important>
57
60
  * @example
58
61
  * Use a bare-bones client and the command you need to make an API call.
59
62
  * ```javascript
@@ -1798,7 +1798,7 @@ export interface UpdateSecretRequest {
1798
1798
  /**
1799
1799
  * <p>The ARN, key ID, or alias of the KMS key that Secrets Manager
1800
1800
  * uses to encrypt new secret versions as well as any existing versions with the staging labels
1801
- * <code>AWSCURRENT</code>, <code>AWSPENDING</code>, or <code>AWSPREVIOUS</code>. If you don't have <code>kms:Encrypt</code> permission to the new key, Secrets Manager does not re-ecrypt existing secret versions with the new key. For more information about versions and staging labels, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version">Concepts: Version</a>.</p>
1801
+ * <code>AWSCURRENT</code>, <code>AWSPENDING</code>, or <code>AWSPREVIOUS</code>. If you don't have <code>kms:Encrypt</code> permission to the new key, Secrets Manager does not re-encrypt existing secret versions with the new key. For more information about versions and staging labels, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/getting-started.html#term_version">Concepts: Version</a>.</p>
1802
1802
  * <p>A key alias is always prefixed by <code>alias/</code>, for example <code>alias/aws/secretsmanager</code>.
1803
1803
  * For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/alias-about.html">About aliases</a>.</p>
1804
1804
  * <p>If you set this to an empty string, Secrets Manager uses the Amazon Web Services managed key
@@ -32,8 +32,8 @@ export declare const getRuntimeConfig: (config: SecretsManagerClientConfig) => {
32
32
  logger?: import("@smithy/types").Logger | undefined;
33
33
  }) => import("@smithy/types").EndpointV2;
34
34
  tls?: boolean | undefined;
35
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
36
35
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
36
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
37
37
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
38
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SecretsManagerHttpAuthSchemeProvider;
39
39
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -32,8 +32,8 @@ export declare const getRuntimeConfig: (config: SecretsManagerClientConfig) => {
32
32
  logger?: import("@smithy/types").Logger | undefined;
33
33
  }) => import("@smithy/types").EndpointV2;
34
34
  tls?: boolean | undefined;
35
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
36
35
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
36
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
37
37
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
38
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SecretsManagerHttpAuthSchemeProvider;
39
39
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -31,8 +31,8 @@ export declare const getRuntimeConfig: (config: SecretsManagerClientConfig) => {
31
31
  logger?: import("@smithy/types").Logger | undefined;
32
32
  }) => import("@smithy/types").EndpointV2;
33
33
  tls?: boolean | undefined;
34
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
35
34
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
35
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
36
36
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
37
37
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SecretsManagerHttpAuthSchemeProvider;
38
38
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -223,9 +223,9 @@ export type SecretsManagerClientConfigType = Partial<
223
223
  ClientDefaults &
224
224
  RegionInputConfig &
225
225
  EndpointInputConfig<EndpointParameters> &
226
- RetryInputConfig &
227
226
  HostHeaderInputConfig &
228
227
  UserAgentInputConfig &
228
+ RetryInputConfig &
229
229
  HttpAuthSchemeInputConfig &
230
230
  ClientInputEndpointParameters;
231
231
  export interface SecretsManagerClientConfig
@@ -236,9 +236,9 @@ export type SecretsManagerClientResolvedConfigType =
236
236
  RuntimeExtensionsConfig &
237
237
  RegionResolvedConfig &
238
238
  EndpointResolvedConfig<EndpointParameters> &
239
- RetryResolvedConfig &
240
239
  HostHeaderResolvedConfig &
241
240
  UserAgentResolvedConfig &
241
+ RetryResolvedConfig &
242
242
  HttpAuthSchemeResolvedConfig &
243
243
  ClientResolvedEndpointParameters;
244
244
  export interface SecretsManagerClientResolvedConfig
@@ -56,11 +56,11 @@ export declare const getRuntimeConfig: (config: SecretsManagerClientConfig) => {
56
56
  }
57
57
  ) => import("@smithy/types").EndpointV2;
58
58
  tls?: boolean | undefined;
59
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
59
60
  retryStrategy?:
60
61
  | import("@smithy/types").RetryStrategy
61
62
  | import("@smithy/types").RetryStrategyV2
62
63
  | undefined;
63
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
64
64
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
65
65
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SecretsManagerHttpAuthSchemeProvider;
66
66
  credentials?:
@@ -60,11 +60,11 @@ export declare const getRuntimeConfig: (config: SecretsManagerClientConfig) => {
60
60
  }
61
61
  ) => import("@smithy/types").EndpointV2;
62
62
  tls?: boolean | undefined;
63
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
63
64
  retryStrategy?:
64
65
  | import("@smithy/types").RetryStrategy
65
66
  | import("@smithy/types").RetryStrategyV2
66
67
  | undefined;
67
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
68
68
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
69
69
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SecretsManagerHttpAuthSchemeProvider;
70
70
  credentials?:
@@ -50,11 +50,11 @@ export declare const getRuntimeConfig: (config: SecretsManagerClientConfig) => {
50
50
  }
51
51
  ) => import("@smithy/types").EndpointV2;
52
52
  tls?: boolean | undefined;
53
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
53
54
  retryStrategy?:
54
55
  | import("@smithy/types").RetryStrategy
55
56
  | import("@smithy/types").RetryStrategyV2
56
57
  | undefined;
57
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
58
58
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
59
59
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SecretsManagerHttpAuthSchemeProvider;
60
60
  credentials?:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-secrets-manager",
3
3
  "description": "AWS SDK for JavaScript Secrets Manager Client for Node.js, Browser and React Native",
4
- "version": "3.614.0",
4
+ "version": "3.616.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-secrets-manager",
@@ -20,40 +20,40 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.614.0",
24
- "@aws-sdk/client-sts": "3.614.0",
25
- "@aws-sdk/core": "3.614.0",
26
- "@aws-sdk/credential-provider-node": "3.614.0",
27
- "@aws-sdk/middleware-host-header": "3.609.0",
23
+ "@aws-sdk/client-sso-oidc": "3.616.0",
24
+ "@aws-sdk/client-sts": "3.616.0",
25
+ "@aws-sdk/core": "3.616.0",
26
+ "@aws-sdk/credential-provider-node": "3.616.0",
27
+ "@aws-sdk/middleware-host-header": "3.616.0",
28
28
  "@aws-sdk/middleware-logger": "3.609.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.609.0",
30
- "@aws-sdk/middleware-user-agent": "3.614.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.616.0",
30
+ "@aws-sdk/middleware-user-agent": "3.616.0",
31
31
  "@aws-sdk/region-config-resolver": "3.614.0",
32
32
  "@aws-sdk/types": "3.609.0",
33
33
  "@aws-sdk/util-endpoints": "3.614.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.609.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.614.0",
36
36
  "@smithy/config-resolver": "^3.0.5",
37
- "@smithy/core": "^2.2.6",
38
- "@smithy/fetch-http-handler": "^3.2.1",
37
+ "@smithy/core": "^2.2.7",
38
+ "@smithy/fetch-http-handler": "^3.2.2",
39
39
  "@smithy/hash-node": "^3.0.3",
40
40
  "@smithy/invalid-dependency": "^3.0.3",
41
- "@smithy/middleware-content-length": "^3.0.3",
41
+ "@smithy/middleware-content-length": "^3.0.4",
42
42
  "@smithy/middleware-endpoint": "^3.0.5",
43
- "@smithy/middleware-retry": "^3.0.9",
43
+ "@smithy/middleware-retry": "^3.0.10",
44
44
  "@smithy/middleware-serde": "^3.0.3",
45
45
  "@smithy/middleware-stack": "^3.0.3",
46
46
  "@smithy/node-config-provider": "^3.1.4",
47
- "@smithy/node-http-handler": "^3.1.2",
48
- "@smithy/protocol-http": "^4.0.3",
49
- "@smithy/smithy-client": "^3.1.7",
47
+ "@smithy/node-http-handler": "^3.1.3",
48
+ "@smithy/protocol-http": "^4.0.4",
49
+ "@smithy/smithy-client": "^3.1.8",
50
50
  "@smithy/types": "^3.3.0",
51
51
  "@smithy/url-parser": "^3.0.3",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.9",
56
- "@smithy/util-defaults-mode-node": "^3.0.9",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.10",
56
+ "@smithy/util-defaults-mode-node": "^3.0.10",
57
57
  "@smithy/util-endpoints": "^2.0.5",
58
58
  "@smithy/util-middleware": "^3.0.3",
59
59
  "@smithy/util-retry": "^3.0.3",