@cdk8s/awscdk-resolver 0.0.724 → 0.0.726

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 (91) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +3 -2
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +2 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -0
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  7. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  8. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +12 -0
  9. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +1 -4
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/client/getDefaultSocketTimeout.js +10 -0
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.browser.js +1 -0
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.native.js +1 -0
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -4
  15. package/node_modules/@aws-sdk/core/dist-types/submodules/client/getDefaultSocketTimeout.d.ts +11 -0
  16. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.browser.d.ts +1 -0
  17. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
  18. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.native.d.ts +1 -0
  19. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +3 -7
  20. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/getDefaultSocketTimeout.d.ts +4 -0
  21. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +1 -0
  22. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
  23. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +1 -0
  24. package/node_modules/@aws-sdk/core/package.json +3 -3
  25. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  26. package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
  27. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
  28. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  29. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  30. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  31. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  32. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  33. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +3 -2
  34. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +10 -2
  35. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +3 -2
  36. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +3 -2
  37. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +3 -2
  38. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -1
  39. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +7 -0
  40. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -1
  41. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -1
  42. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -1
  43. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +2 -1
  44. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
  45. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +1 -2
  46. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +1 -2
  47. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +5 -59
  48. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +5 -33
  49. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -2
  50. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +16 -9
  51. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +8 -39
  52. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +36 -48
  53. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -0
  54. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -0
  55. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  56. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -0
  57. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
  58. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +7 -0
  59. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +1 -0
  60. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +1 -0
  61. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  62. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -0
  63. package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
  64. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  65. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  66. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +11 -4
  67. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +33 -5
  68. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +33 -5
  69. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +1 -0
  70. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js +10 -4
  71. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +11 -5
  72. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/race.js +22 -0
  73. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/race.d.ts +3 -0
  74. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/race.d.ts +3 -0
  75. package/node_modules/@smithy/core/package.json +2 -2
  76. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +34 -33
  77. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +5 -6
  78. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +29 -27
  79. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +7 -3
  80. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +7 -3
  81. package/node_modules/@smithy/node-http-handler/package.json +3 -3
  82. package/node_modules/@smithy/types/dist-types/middleware.d.ts +6 -0
  83. package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +6 -0
  84. package/node_modules/@smithy/types/package.json +1 -1
  85. package/node_modules/tslib/README.md +3 -8
  86. package/node_modules/tslib/package.json +1 -1
  87. package/node_modules/tslib/tslib.d.ts +4 -2
  88. package/node_modules/tslib/tslib.es6.js +10 -1
  89. package/node_modules/tslib/tslib.es6.mjs +10 -1
  90. package/node_modules/tslib/tslib.js +10 -1
  91. package/package.json +6 -6
@@ -1,68 +1,64 @@
1
1
  /**
2
- * AWS credentials structure containing temporary access credentials
3
- *
4
- * Scoped, temporary AWS credentials with a 15-minute duration.
2
+ * Contains the scoped, temporary AWS credentials used to sign requests with SigV4. Valid for 15 minutes.
5
3
  * @public
6
4
  */
7
5
  export interface AccessToken {
8
6
  /**
9
- * AWS access key ID for temporary credentials
7
+ * The AWS access key ID for the temporary credentials.
10
8
  * @public
11
9
  */
12
10
  accessKeyId: string | undefined;
13
11
  /**
14
- * AWS secret access key for temporary credentials
12
+ * The AWS secret access key used to sign requests.
15
13
  * @public
16
14
  */
17
15
  secretAccessKey: string | undefined;
18
16
  /**
19
- * AWS session token for temporary credentials
17
+ * The session token that validates the temporary security credentials.
20
18
  * @public
21
19
  */
22
20
  sessionToken: string | undefined;
23
21
  }
24
22
  /**
25
- * Request body payload for CreateOAuth2Token operation
26
- *
27
- * The operation type is determined by the grant_type parameter:
28
- * - grant_type=authorization_code: Requires code, redirect_uri, code_verifier
29
- * - grant_type=refresh_token: Requires refresh_token
23
+ * The request body for creating an OAuth 2.0 token. Supports both the authorization code and
24
+ * refresh token flows, selected by the "grant_type" parameter.
30
25
  * @public
31
26
  */
32
27
  export interface CreateOAuth2TokenRequestBody {
33
28
  /**
34
- * The client identifier (ARN) used during Sign-In onboarding
35
- * Required for both authorization code and refresh token flows
29
+ * The OAuth 2.0 client identifier. Expected values: "arn:aws:signin:::devtools/same-device"
30
+ * or "arn:aws:signin:::devtools/cross-device".
36
31
  * @public
37
32
  */
38
33
  clientId: string | undefined;
39
34
  /**
40
- * OAuth 2.0 grant type - determines which flow is used
41
- * Must be "authorization_code" or "refresh_token"
35
+ * The OAuth 2.0 grant type. Supported values:
36
+ * - "authorization_code" - Exchange an authorization code for tokens.
37
+ * - "refresh_token" - Use a refresh token to obtain a new access token.
42
38
  * @public
43
39
  */
44
40
  grantType: string | undefined;
45
41
  /**
46
- * The authorization code received from /v1/authorize
47
- * Required only when grant_type=authorization_code
42
+ * The authorization code received from the "/v1/authorize" endpoint.
43
+ * Required when "grant_type=authorization_code".
48
44
  * @public
49
45
  */
50
46
  code?: string | undefined;
51
47
  /**
52
- * The redirect URI that must match the original authorization request
53
- * Required only when grant_type=authorization_code
48
+ * The redirect URI that was used in the original authorization request. Must match exactly.
49
+ * Required when "grant_type=authorization_code".
54
50
  * @public
55
51
  */
56
52
  redirectUri?: string | undefined;
57
53
  /**
58
- * PKCE code verifier to prove possession of the original code challenge
59
- * Required only when grant_type=authorization_code
54
+ * The PKCE code verifier that proves possession of the original code challenge.
55
+ * Required when "grant_type=authorization_code".
60
56
  * @public
61
57
  */
62
58
  codeVerifier?: string | undefined;
63
59
  /**
64
- * The refresh token returned from auth_code redemption
65
- * Required only when grant_type=refresh_token
60
+ * The refresh token issued by a previous token response.
61
+ * Required when "grant_type=refresh_token".
66
62
  * @public
67
63
  */
68
64
  refreshToken?: string | undefined;
@@ -76,49 +72,41 @@ export interface CreateOAuth2TokenRequestBody {
76
72
  */
77
73
  export interface CreateOAuth2TokenRequest {
78
74
  /**
79
- * Flattened token operation inputs
80
- * The specific operation is determined by grant_type in the request body
75
+ * Flattened token operation inputs. The "grant_type" in the request body determines the specific operation.
81
76
  * @public
82
77
  */
83
78
  tokenInput: CreateOAuth2TokenRequestBody | undefined;
84
79
  }
85
80
  /**
86
- * Response body payload for CreateOAuth2Token operation
87
- *
88
- * The response content depends on the grant_type from the request:
89
- * - grant_type=authorization_code: Returns all fields including refresh_token and id_token
90
- * - grant_type=refresh_token: Returns access_token, token_type, expires_in, refresh_token (no id_token)
81
+ * The response body for an OAuth 2.0 token request. The fields returned depend on the "grant_type".
82
+ * The authorization code flow returns "refresh_token" and "id_token". The refresh token flow omits "id_token".
91
83
  * @public
92
84
  */
93
85
  export interface CreateOAuth2TokenResponseBody {
94
86
  /**
95
- * Scoped-down AWS credentials (15 minute duration)
96
- * Present for both authorization code redemption and token refresh
87
+ * The access token issued by the authorization server. The token contains temporary
88
+ * AWS security credentials that you use to sign requests with SigV4.
97
89
  * @public
98
90
  */
99
91
  accessToken: AccessToken | undefined;
100
92
  /**
101
- * Token type indicating this is AWS SigV4 credentials
102
- * Value is "aws_sigv4" for both flows
93
+ * The type of token issued. Value is "aws_sigv4".
103
94
  * @public
104
95
  */
105
96
  tokenType: string | undefined;
106
97
  /**
107
- * Time to expiry in seconds (maximum 900)
108
- * Present for both authorization code redemption and token refresh
98
+ * The number of seconds until the access token expires. Maximum value is 900 seconds (15 minutes).
109
99
  * @public
110
100
  */
111
101
  expiresIn: number | undefined;
112
102
  /**
113
- * Encrypted refresh token with cnf.jkt (SHA-256 thumbprint of presented jwk)
114
- * Always present in responses (required for both flows)
103
+ * A refresh token that can be used to obtain new access tokens without re-authenticating.
115
104
  * @public
116
105
  */
117
106
  refreshToken: string | undefined;
118
107
  /**
119
- * ID token containing user identity information
120
- * Present only in authorization code redemption response (grant_type=authorization_code)
121
- * Not included in token refresh responses
108
+ * A JSON Web Token (JWT) containing user identity claims. Present only when
109
+ * "grant_type=authorization_code". Not included in refresh token responses.
122
110
  * @public
123
111
  */
124
112
  idToken?: string | undefined;
@@ -132,8 +120,8 @@ export interface CreateOAuth2TokenResponseBody {
132
120
  */
133
121
  export interface CreateOAuth2TokenResponse {
134
122
  /**
135
- * Flattened token operation outputs
136
- * The specific response fields depend on the grant_type used in the request
123
+ * Flattened token operation outputs.
124
+ * The specific response fields depend on the grant_type used in the request.
137
125
  * @public
138
126
  */
139
127
  tokenOutput: CreateOAuth2TokenResponseBody | undefined;
@@ -144,7 +132,7 @@ export interface CreateOAuth2TokenResponse {
144
132
  */
145
133
  export interface CreateOAuth2TokenWithIAMRequest {
146
134
  /**
147
- * OAuth 2.0 grant type. Must be "client_credentials".
135
+ * The OAuth 2.0 grant type. Must be "client_credentials".
148
136
  * @public
149
137
  */
150
138
  grantType: string | undefined;
@@ -158,22 +146,22 @@ export interface CreateOAuth2TokenWithIAMRequest {
158
146
  /**
159
147
  * Output structure for CreateOAuth2TokenWithIAM operation
160
148
  *
161
- * Contains the JWT access token, token type, and expiration per RFC 6749 §5.1.
149
+ * Contains the access token, token type, and expiration as defined in RFC 6749 §5.1.
162
150
  * @public
163
151
  */
164
152
  export interface CreateOAuth2TokenWithIAMResponse {
165
153
  /**
166
- * JWT access token containing principal identity, resource scope, and session metadata
154
+ * Access token containing principal identity, resource scope, and session metadata.
167
155
  * @public
168
156
  */
169
157
  accessToken: string | undefined;
170
158
  /**
171
- * Always "Bearer" per OAuth 2.1 specification
159
+ * The token type. Always "Bearer" as defined in RFC 6749.
172
160
  * @public
173
161
  */
174
162
  tokenType: string | undefined;
175
163
  /**
176
- * Token lifetime in seconds. Value is the minimum of session validity and 1 hour.
164
+ * Token lifetime in seconds. Value is the minimum of the caller's session validity and 1 hour (3600 seconds).
177
165
  * @public
178
166
  */
179
167
  expiresIn: number | undefined;
@@ -51,6 +51,7 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
51
51
  defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
52
52
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
53
53
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
54
+ defaultSocketTimeout: number | undefined;
54
55
  defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
55
56
  maxAttempts: number | import("@smithy/types").Provider<number>;
56
57
  region: string | import("@smithy/types").Provider<string>;
@@ -51,6 +51,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
51
51
  defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
52
52
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
53
53
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
54
+ defaultSocketTimeout: number | undefined;
54
55
  defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
55
56
  maxAttempts: number | import("@smithy/types").Provider<number>;
56
57
  region: string | import("@smithy/types").Provider<string>;
@@ -51,6 +51,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
51
51
  defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
52
52
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
53
53
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
54
+ defaultSocketTimeout: number | undefined;
54
55
  defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
55
56
  maxAttempts: number | import("@smithy/types").Provider<number>;
56
57
  region: string | import("@smithy/types").Provider<string>;
@@ -46,6 +46,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
46
46
  defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
47
47
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
48
48
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
49
+ defaultSocketTimeout: number | undefined;
49
50
  defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
50
51
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
51
52
  schemeId: string;
@@ -94,6 +94,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) =>
94
94
  >;
95
95
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
96
96
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
97
+ defaultSocketTimeout: number | undefined;
97
98
  defaultUserAgentProvider: (
98
99
  config?: import("@aws-sdk/core/client").PreviouslyResolved,
99
100
  ) => Promise<import("@smithy/types").UserAgent>;
@@ -3,6 +3,13 @@ export declare const OAuth2ErrorCode: {
3
3
  readonly CONFLICT: "CONFLICT";
4
4
  readonly INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS";
5
5
  readonly INVALID_REQUEST: "INVALID_REQUEST";
6
+ readonly OAUTH_INVALID_GRANT: "invalid_grant";
7
+ readonly OAUTH_INVALID_REQUEST: "invalid_request";
8
+ readonly OAUTH_INVALID_SCOPE: "invalid_scope";
9
+ readonly OAUTH_INVALID_TARGET: "invalid_target";
10
+ readonly OAUTH_RATE_EXCEEDED: "rate_exceeded";
11
+ readonly OAUTH_SERVICE_UNAVAILABLE: "service_unavailable";
12
+ readonly OAUTH_UNSUPPORTED_GRANT_TYPE: "unsupported_grant_type";
6
13
  readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
7
14
  readonly SERVER_ERROR: "server_error";
8
15
  readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
@@ -94,6 +94,7 @@ export declare const getRuntimeConfig: (config: SigninClientConfig) => {
94
94
  >;
95
95
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
96
96
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
97
+ defaultSocketTimeout: number | undefined;
97
98
  defaultUserAgentProvider: (
98
99
  config?: import("@aws-sdk/core/client").PreviouslyResolved,
99
100
  ) => Promise<import("@smithy/types").UserAgent>;
@@ -94,6 +94,7 @@ export declare const getRuntimeConfig: (config: SSOClientConfig) => {
94
94
  >;
95
95
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
96
96
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
97
+ defaultSocketTimeout: number | undefined;
97
98
  defaultUserAgentProvider: (
98
99
  config?: import("@aws-sdk/core/client").PreviouslyResolved,
99
100
  ) => Promise<import("@smithy/types").UserAgent>;
@@ -94,6 +94,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
94
94
  >;
95
95
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
96
96
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
97
+ defaultSocketTimeout: number | undefined;
97
98
  defaultUserAgentProvider: (
98
99
  config?: import("@aws-sdk/core/client").PreviouslyResolved,
99
100
  ) => Promise<import("@smithy/types").UserAgent>;
@@ -78,6 +78,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
78
78
  >;
79
79
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
80
80
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
81
+ defaultSocketTimeout: number | undefined;
81
82
  defaultUserAgentProvider: (
82
83
  config?: import("@aws-sdk/core/client").PreviouslyResolved,
83
84
  ) => Promise<import("@smithy/types").UserAgent>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.997.53",
3
+ "version": "3.998.0",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
6
6
  "license": "Apache-2.0",
@@ -100,12 +100,12 @@
100
100
  "test:watch": "yarn g:vitest watch"
101
101
  },
102
102
  "dependencies": {
103
- "@aws-sdk/core": "^3.979.0",
104
- "@aws-sdk/signature-v4-multi-region": "^3.996.50",
103
+ "@aws-sdk/core": "^3.980.0",
104
+ "@aws-sdk/signature-v4-multi-region": "^3.996.51",
105
105
  "@aws-sdk/types": "^3.975.0",
106
- "@smithy/core": "^3.37.0",
106
+ "@smithy/core": "^3.38.0",
107
107
  "@smithy/fetch-http-handler": "^5.8.0",
108
- "@smithy/node-http-handler": "^4.13.0",
108
+ "@smithy/node-http-handler": "^4.14.0",
109
109
  "@smithy/types": "^4.19.0",
110
110
  "tslib": "^2.6.2"
111
111
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4-multi-region",
3
- "version": "3.996.50",
3
+ "version": "3.996.51",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/signature-v4-multi-region",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@aws-sdk/types": "^3.975.0",
46
- "@smithy/signature-v4": "^5.7.4",
46
+ "@smithy/signature-v4": "^5.7.5",
47
47
  "@smithy/types": "^4.19.0",
48
48
  "tslib": "^2.6.2"
49
49
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.1160.0",
3
+ "version": "3.1162.0",
4
4
  "description": "A collection of token providers",
5
5
  "keywords": [
6
6
  "aws",
@@ -48,10 +48,10 @@
48
48
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.979.0",
52
- "@aws-sdk/nested-clients": "^3.997.53",
51
+ "@aws-sdk/core": "^3.980.0",
52
+ "@aws-sdk/nested-clients": "^3.998.0",
53
53
  "@aws-sdk/types": "^3.975.0",
54
- "@smithy/core": "^3.37.0",
54
+ "@smithy/core": "^3.38.0",
55
55
  "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
@@ -559,16 +559,22 @@ function schemaLogFilter(schema, data) {
559
559
  return SENSITIVE_STRING$1;
560
560
  }
561
561
  if (ns.isListSchema()) {
562
- const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive;
563
- if (isSensitive) {
562
+ const valueSchema = ns.getValueSchema();
563
+ if (valueSchema.getMergedTraits().sensitive) {
564
564
  return SENSITIVE_STRING$1;
565
565
  }
566
+ if (Array.isArray(data)) {
567
+ return data.map((value) => schemaLogFilter(valueSchema, value));
568
+ }
566
569
  }
567
570
  else if (ns.isMapSchema()) {
568
- const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive;
569
- if (isSensitive) {
571
+ const valueSchema = ns.getValueSchema();
572
+ if (ns.getKeySchema().getMergedTraits().sensitive || valueSchema.getMergedTraits().sensitive) {
570
573
  return SENSITIVE_STRING$1;
571
574
  }
575
+ if (typeof data === "object") {
576
+ return Object.fromEntries(Object.entries(data).map(([key, value]) => [key, schemaLogFilter(valueSchema, value)]));
577
+ }
572
578
  }
573
579
  else if (ns.isStructSchema() && typeof data === "object") {
574
580
  const object = data;
@@ -609,6 +615,7 @@ class Command {
609
615
  commandInstance: this,
610
616
  ...smithyContext,
611
617
  ...(options?.metricsRecorder === undefined ? {} : { metricsRecorder: options.metricsRecorder }),
618
+ ...(options?.abortSignal === undefined ? {} : { abortSignal: options.abortSignal }),
612
619
  },
613
620
  };
614
621
  const { requestHandler } = configuration;
@@ -1,6 +1,7 @@
1
1
  const { NoOpLogger, normalizeProvider } = require("@smithy/core/client");
2
2
  const { HttpResponse, HttpRequest } = require("@smithy/core/protocols");
3
3
  const { parseRfc7231DateTime, v4 } = require("@smithy/core/serde");
4
+ const { SMITHY_CONTEXT_KEY } = require("@smithy/types");
4
5
  const { hasOwn } = require("@smithy/core/transport");
5
6
 
6
7
  const isStreamingPayload = (request) => request?.body instanceof ReadableStream;
@@ -80,6 +81,29 @@ function isNodeJsHttp2TransientError(error) {
80
81
  return error.code === "ERR_HTTP2_STREAM_ERROR" && error.message.includes("NGHTTP2_REFUSED_STREAM");
81
82
  }
82
83
 
84
+ const race = (promise, signal) => {
85
+ if (!signal) {
86
+ return promise;
87
+ }
88
+ let cleanup = () => { };
89
+ const aborted = new Promise((_, reject) => {
90
+ const handler = () => reject(createAbortError());
91
+ if (signal.aborted) {
92
+ handler();
93
+ }
94
+ else if (typeof signal.addEventListener === "function") {
95
+ signal.addEventListener("abort", handler, { once: true });
96
+ cleanup = () => signal.removeEventListener("abort", handler);
97
+ }
98
+ else {
99
+ signal.onabort = handler;
100
+ }
101
+ });
102
+ return Promise.race([promise, aborted]).finally(cleanup);
103
+ };
104
+ const createAbortError = () => Object.assign(new Error("Request aborted"), { name: "AbortError" });
105
+ const isAbortError = (error) => typeof error === "object" && error !== null && "name" in error && error.name === "AbortError";
106
+
83
107
  const DEFAULT_RETRY_DELAY_BASE = 100;
84
108
  const MAXIMUM_RETRY_DELAY = 20 * 1000;
85
109
  const THROTTLING_RETRY_DELAY_BASE = 500;
@@ -158,9 +182,11 @@ function bindRetryMiddleware(isStreamingPayload) {
158
182
  return (options) => (next, context) => async (args) => {
159
183
  let retryStrategy = await options.retryStrategy();
160
184
  const maxAttempts = await options.maxAttempts();
185
+ const abortSignal = context[SMITHY_CONTEXT_KEY]?.abortSignal;
161
186
  if (isRetryStrategyV2(retryStrategy)) {
162
187
  retryStrategy = retryStrategy;
163
- let retryToken = await retryStrategy.acquireInitialRetryToken((context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : ""));
188
+ const retryTokenScope = (context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : "");
189
+ let retryToken = await race(retryStrategy.acquireInitialRetryToken(retryTokenScope), abortSignal);
164
190
  let lastError = new Error();
165
191
  let attempts = 0;
166
192
  let totalRetryDelay = 0;
@@ -188,9 +214,12 @@ function bindRetryMiddleware(isStreamingPayload) {
188
214
  throw lastError;
189
215
  }
190
216
  try {
191
- retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
217
+ retryToken = await race(retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo), abortSignal);
192
218
  }
193
- catch (ignoredRefreshError) {
219
+ catch (refreshError) {
220
+ if (abortSignal?.aborted && isAbortError(refreshError)) {
221
+ throw refreshError;
222
+ }
194
223
  if (!lastError.$metadata) {
195
224
  lastError.$metadata = {};
196
225
  }
@@ -202,7 +231,7 @@ function bindRetryMiddleware(isStreamingPayload) {
202
231
  const delay = retryToken.getRetryDelay();
203
232
  totalRetryDelay += (retryToken?.$retryLog?.acquisitionDelay ?? 0) + delay;
204
233
  if (delay > 0) {
205
- await cooldown(delay);
234
+ await race(new Promise((resolve) => setTimeout(resolve, delay)), abortSignal);
206
235
  }
207
236
  }
208
237
  }
@@ -216,7 +245,6 @@ function bindRetryMiddleware(isStreamingPayload) {
216
245
  }
217
246
  };
218
247
  }
219
- const cooldown = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
220
248
  const isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" &&
221
249
  typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" &&
222
250
  typeof retryStrategy.recordSuccess !== "undefined";
@@ -2,6 +2,7 @@ const { Readable } = require("node:stream");
2
2
  const { NoOpLogger, normalizeProvider } = require("@smithy/core/client");
3
3
  const { HttpResponse, HttpRequest } = require("@smithy/core/protocols");
4
4
  const { parseRfc7231DateTime, v4 } = require("@smithy/core/serde");
5
+ const { SMITHY_CONTEXT_KEY } = require("@smithy/types");
5
6
  const { hasOwn } = require("@smithy/core/transport");
6
7
 
7
8
  const isStreamingPayload = (request) => request?.body instanceof Readable ||
@@ -82,6 +83,29 @@ function isNodeJsHttp2TransientError(error) {
82
83
  return error.code === "ERR_HTTP2_STREAM_ERROR" && error.message.includes("NGHTTP2_REFUSED_STREAM");
83
84
  }
84
85
 
86
+ const race = (promise, signal) => {
87
+ if (!signal) {
88
+ return promise;
89
+ }
90
+ let cleanup = () => { };
91
+ const aborted = new Promise((_, reject) => {
92
+ const handler = () => reject(createAbortError());
93
+ if (signal.aborted) {
94
+ handler();
95
+ }
96
+ else if (typeof signal.addEventListener === "function") {
97
+ signal.addEventListener("abort", handler, { once: true });
98
+ cleanup = () => signal.removeEventListener("abort", handler);
99
+ }
100
+ else {
101
+ signal.onabort = handler;
102
+ }
103
+ });
104
+ return Promise.race([promise, aborted]).finally(cleanup);
105
+ };
106
+ const createAbortError = () => Object.assign(new Error("Request aborted"), { name: "AbortError" });
107
+ const isAbortError = (error) => typeof error === "object" && error !== null && "name" in error && error.name === "AbortError";
108
+
85
109
  const DEFAULT_RETRY_DELAY_BASE = 100;
86
110
  const MAXIMUM_RETRY_DELAY = 20 * 1000;
87
111
  const THROTTLING_RETRY_DELAY_BASE = 500;
@@ -160,9 +184,11 @@ function bindRetryMiddleware(isStreamingPayload) {
160
184
  return (options) => (next, context) => async (args) => {
161
185
  let retryStrategy = await options.retryStrategy();
162
186
  const maxAttempts = await options.maxAttempts();
187
+ const abortSignal = context[SMITHY_CONTEXT_KEY]?.abortSignal;
163
188
  if (isRetryStrategyV2(retryStrategy)) {
164
189
  retryStrategy = retryStrategy;
165
- let retryToken = await retryStrategy.acquireInitialRetryToken((context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : ""));
190
+ const retryTokenScope = (context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : "");
191
+ let retryToken = await race(retryStrategy.acquireInitialRetryToken(retryTokenScope), abortSignal);
166
192
  let lastError = new Error();
167
193
  let attempts = 0;
168
194
  let totalRetryDelay = 0;
@@ -190,9 +216,12 @@ function bindRetryMiddleware(isStreamingPayload) {
190
216
  throw lastError;
191
217
  }
192
218
  try {
193
- retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
219
+ retryToken = await race(retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo), abortSignal);
194
220
  }
195
- catch (ignoredRefreshError) {
221
+ catch (refreshError) {
222
+ if (abortSignal?.aborted && isAbortError(refreshError)) {
223
+ throw refreshError;
224
+ }
196
225
  if (!lastError.$metadata) {
197
226
  lastError.$metadata = {};
198
227
  }
@@ -204,7 +233,7 @@ function bindRetryMiddleware(isStreamingPayload) {
204
233
  const delay = retryToken.getRetryDelay();
205
234
  totalRetryDelay += (retryToken?.$retryLog?.acquisitionDelay ?? 0) + delay;
206
235
  if (delay > 0) {
207
- await cooldown(delay);
236
+ await race(new Promise((resolve) => setTimeout(resolve, delay)), abortSignal);
208
237
  }
209
238
  }
210
239
  }
@@ -218,7 +247,6 @@ function bindRetryMiddleware(isStreamingPayload) {
218
247
  }
219
248
  };
220
249
  }
221
- const cooldown = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
222
250
  const isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" &&
223
251
  typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" &&
224
252
  typeof retryStrategy.recordSuccess !== "undefined";
@@ -28,6 +28,7 @@ export class Command {
28
28
  commandInstance: this,
29
29
  ...smithyContext,
30
30
  ...(options?.metricsRecorder === undefined ? {} : { metricsRecorder: options.metricsRecorder }),
31
+ ...(options?.abortSignal === undefined ? {} : { abortSignal: options.abortSignal }),
31
32
  },
32
33
  };
33
34
  const { requestHandler } = configuration;
@@ -9,16 +9,22 @@ export function schemaLogFilter(schema, data) {
9
9
  return SENSITIVE_STRING;
10
10
  }
11
11
  if (ns.isListSchema()) {
12
- const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive;
13
- if (isSensitive) {
12
+ const valueSchema = ns.getValueSchema();
13
+ if (valueSchema.getMergedTraits().sensitive) {
14
14
  return SENSITIVE_STRING;
15
15
  }
16
+ if (Array.isArray(data)) {
17
+ return data.map((value) => schemaLogFilter(valueSchema, value));
18
+ }
16
19
  }
17
20
  else if (ns.isMapSchema()) {
18
- const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive;
19
- if (isSensitive) {
21
+ const valueSchema = ns.getValueSchema();
22
+ if (ns.getKeySchema().getMergedTraits().sensitive || valueSchema.getMergedTraits().sensitive) {
20
23
  return SENSITIVE_STRING;
21
24
  }
25
+ if (typeof data === "object") {
26
+ return Object.fromEntries(Object.entries(data).map(([key, value]) => [key, schemaLogFilter(valueSchema, value)]));
27
+ }
22
28
  }
23
29
  else if (ns.isStructSchema() && typeof data === "object") {
24
30
  const object = data;