@aws-sdk/types 3.662.0 → 3.667.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.
@@ -0,0 +1 @@
1
+ export {};
package/dist-es/index.js CHANGED
@@ -12,6 +12,7 @@ export * from "./encode";
12
12
  export * from "./endpoint";
13
13
  export * from "./eventStream";
14
14
  export * from "./extensions";
15
+ export * from "./feature-ids";
15
16
  export * from "./http";
16
17
  export * from "./identity";
17
18
  export * from "./logger";
@@ -0,0 +1,59 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export type AwsSdkFeatures = Partial<{
5
+ RESOURCE_MODEL: "A";
6
+ WAITER: "B";
7
+ PAGINATOR: "C";
8
+ RETRY_MODE_LEGACY: "D";
9
+ RETRY_MODE_STANDARD: "E";
10
+ RETRY_MODE_ADAPTIVE: "F";
11
+ S3_EXPRESS_BUCKET: "J";
12
+ S3_ACCESS_GRANTS: "K";
13
+ GZIP_REQUEST_COMPRESSION: "L";
14
+ PROTOCOL_RPC_V2_CBOR: "M";
15
+ ENDPOINT_OVERRIDE: "N";
16
+ ACCOUNT_ID_ENDPOINT: "O";
17
+ ACCOUNT_ID_MODE_PREFERRED: "P";
18
+ ACCOUNT_ID_MODE_DISABLED: "Q";
19
+ ACCOUNT_ID_MODE_REQUIRED: "R";
20
+ SIGV4A_SIGNING: "S";
21
+ FLEXIBLE_CHECKSUMS_REQ_CRC32: "U";
22
+ FLEXIBLE_CHECKSUMS_REQ_CRC32C: "V";
23
+ FLEXIBLE_CHECKSUMS_REQ_CRC64: "W";
24
+ FLEXIBLE_CHECKSUMS_REQ_SHA1: "X";
25
+ FLEXIBLE_CHECKSUMS_REQ_SHA256: "Y";
26
+ FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED: "Z";
27
+ FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED: "a";
28
+ FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED: "b";
29
+ FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED: "c";
30
+ DDB_MAPPER: "d";
31
+ }> & AwsSdkCredentialsFeatures;
32
+ /**
33
+ * @internal
34
+ */
35
+ export type AwsSdkCredentialsFeatures = Partial<{
36
+ RESOLVED_ACCOUNT_ID: "T";
37
+ CREDENTIALS_CODE: "e";
38
+ CREDENTIALS_ENV_VARS: "g";
39
+ CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN: "h";
40
+ CREDENTIALS_STS_ASSUME_ROLE: "i";
41
+ CREDENTIALS_STS_ASSUME_ROLE_SAML: "j";
42
+ CREDENTIALS_STS_ASSUME_ROLE_WEB_ID: "k";
43
+ CREDENTIALS_STS_FEDERATION_TOKEN: "l";
44
+ CREDENTIALS_STS_SESSION_TOKEN: "m";
45
+ CREDENTIALS_PROFILE: "n";
46
+ CREDENTIALS_PROFILE_SOURCE_PROFILE: "o";
47
+ CREDENTIALS_PROFILE_NAMED_PROVIDER: "p";
48
+ CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN: "q";
49
+ CREDENTIALS_PROFILE_SSO: "r";
50
+ CREDENTIALS_SSO: "s";
51
+ CREDENTIALS_PROFILE_SSO_LEGACY: "t";
52
+ CREDENTIALS_SSO_LEGACY: "u";
53
+ CREDENTIALS_PROFILE_PROCESS: "v";
54
+ CREDENTIALS_PROCESS: "w";
55
+ CREDENTIALS_BOTO2_CONFIG_FILE: "x";
56
+ CREDENTIALS_AWS_SDK_STORE: "y";
57
+ CREDENTIALS_HTTP: "z";
58
+ CREDENTIALS_IMDS: "0";
59
+ }>;
@@ -1 +1,6 @@
1
+ import type { AwsCredentialIdentity } from "@smithy/types";
2
+ import type { AwsSdkCredentialsFeatures } from "../feature-ids";
1
3
  export { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
4
+ export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
5
+ $source?: AwsSdkCredentialsFeatures;
6
+ };
@@ -12,6 +12,7 @@ export * from "./encode";
12
12
  export * from "./endpoint";
13
13
  export * from "./eventStream";
14
14
  export * from "./extensions";
15
+ export * from "./feature-ids";
15
16
  export * from "./http";
16
17
  export * from "./identity";
17
18
  export * from "./logger";
@@ -1 +1,13 @@
1
+ import { HandlerExecutionContext } from "@smithy/types";
2
+ import { AwsSdkFeatures } from "./feature-ids";
1
3
  export { AbsoluteLocation, BuildHandler, BuildHandlerArguments, BuildHandlerOptions, BuildHandlerOutput, BuildMiddleware, DeserializeHandler, DeserializeHandlerArguments, DeserializeHandlerOptions, DeserializeHandlerOutput, DeserializeMiddleware, FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput, FinalizeRequestHandlerOptions, FinalizeRequestMiddleware, Handler, HandlerExecutionContext, HandlerOptions, InitializeHandler, InitializeHandlerArguments, InitializeHandlerOptions, InitializeHandlerOutput, InitializeMiddleware, MiddlewareStack, MiddlewareType, Pluggable, Priority, Relation, RelativeLocation, RelativeMiddlewareOptions, SerializeHandler, SerializeHandlerArguments, SerializeHandlerOptions, SerializeHandlerOutput, SerializeMiddleware, Step, Terminalware, } from "@smithy/types";
4
+ /**
5
+ * @internal
6
+ * Contains reserved keys for AWS SDK internal usage of the
7
+ * handler execution context object.
8
+ */
9
+ export interface AwsHandlerExecutionContext extends HandlerExecutionContext {
10
+ __aws_sdk_context?: {
11
+ features?: AwsSdkFeatures;
12
+ };
13
+ }
@@ -0,0 +1,54 @@
1
+ export type AwsSdkFeatures = Partial<{
2
+ RESOURCE_MODEL: "A";
3
+ WAITER: "B";
4
+ PAGINATOR: "C";
5
+ RETRY_MODE_LEGACY: "D";
6
+ RETRY_MODE_STANDARD: "E";
7
+ RETRY_MODE_ADAPTIVE: "F";
8
+ S3_EXPRESS_BUCKET: "J";
9
+ S3_ACCESS_GRANTS: "K";
10
+ GZIP_REQUEST_COMPRESSION: "L";
11
+ PROTOCOL_RPC_V2_CBOR: "M";
12
+ ENDPOINT_OVERRIDE: "N";
13
+ ACCOUNT_ID_ENDPOINT: "O";
14
+ ACCOUNT_ID_MODE_PREFERRED: "P";
15
+ ACCOUNT_ID_MODE_DISABLED: "Q";
16
+ ACCOUNT_ID_MODE_REQUIRED: "R";
17
+ SIGV4A_SIGNING: "S";
18
+ FLEXIBLE_CHECKSUMS_REQ_CRC32: "U";
19
+ FLEXIBLE_CHECKSUMS_REQ_CRC32C: "V";
20
+ FLEXIBLE_CHECKSUMS_REQ_CRC64: "W";
21
+ FLEXIBLE_CHECKSUMS_REQ_SHA1: "X";
22
+ FLEXIBLE_CHECKSUMS_REQ_SHA256: "Y";
23
+ FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED: "Z";
24
+ FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED: "a";
25
+ FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED: "b";
26
+ FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED: "c";
27
+ DDB_MAPPER: "d";
28
+ }> &
29
+ AwsSdkCredentialsFeatures;
30
+ export type AwsSdkCredentialsFeatures = Partial<{
31
+ RESOLVED_ACCOUNT_ID: "T";
32
+ CREDENTIALS_CODE: "e";
33
+ CREDENTIALS_ENV_VARS: "g";
34
+ CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN: "h";
35
+ CREDENTIALS_STS_ASSUME_ROLE: "i";
36
+ CREDENTIALS_STS_ASSUME_ROLE_SAML: "j";
37
+ CREDENTIALS_STS_ASSUME_ROLE_WEB_ID: "k";
38
+ CREDENTIALS_STS_FEDERATION_TOKEN: "l";
39
+ CREDENTIALS_STS_SESSION_TOKEN: "m";
40
+ CREDENTIALS_PROFILE: "n";
41
+ CREDENTIALS_PROFILE_SOURCE_PROFILE: "o";
42
+ CREDENTIALS_PROFILE_NAMED_PROVIDER: "p";
43
+ CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN: "q";
44
+ CREDENTIALS_PROFILE_SSO: "r";
45
+ CREDENTIALS_SSO: "s";
46
+ CREDENTIALS_PROFILE_SSO_LEGACY: "t";
47
+ CREDENTIALS_SSO_LEGACY: "u";
48
+ CREDENTIALS_PROFILE_PROCESS: "v";
49
+ CREDENTIALS_PROCESS: "w";
50
+ CREDENTIALS_BOTO2_CONFIG_FILE: "x";
51
+ CREDENTIALS_AWS_SDK_STORE: "y";
52
+ CREDENTIALS_HTTP: "z";
53
+ CREDENTIALS_IMDS: "0";
54
+ }>;
@@ -1,4 +1,9 @@
1
+ import { AwsCredentialIdentity } from "@smithy/types";
2
+ import { AwsSdkCredentialsFeatures } from "../feature-ids";
1
3
  export {
2
4
  AwsCredentialIdentity,
3
5
  AwsCredentialIdentityProvider,
4
6
  } from "@smithy/types";
7
+ export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
8
+ $source?: AwsSdkCredentialsFeatures;
9
+ };
@@ -12,6 +12,7 @@ export * from "./encode";
12
12
  export * from "./endpoint";
13
13
  export * from "./eventStream";
14
14
  export * from "./extensions";
15
+ export * from "./feature-ids";
15
16
  export * from "./http";
16
17
  export * from "./identity";
17
18
  export * from "./logger";
@@ -1,3 +1,5 @@
1
+ import { HandlerExecutionContext } from "@smithy/types";
2
+ import { AwsSdkFeatures } from "./feature-ids";
1
3
  export {
2
4
  AbsoluteLocation,
3
5
  BuildHandler,
@@ -38,3 +40,8 @@ export {
38
40
  Step,
39
41
  Terminalware,
40
42
  } from "@smithy/types";
43
+ export interface AwsHandlerExecutionContext extends HandlerExecutionContext {
44
+ __aws_sdk_context?: {
45
+ features?: AwsSdkFeatures;
46
+ };
47
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.662.0",
3
+ "version": "3.667.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",