@cdk8s/awscdk-resolver 0.0.627 → 0.0.629

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 (102) 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 +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
  7. package/node_modules/@aws-sdk/core/package.json +8 -5
  8. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  9. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  10. package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
  11. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  12. package/node_modules/@aws-sdk/credential-provider-node/dist-types/index.d.ts +1 -0
  13. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/index.d.ts +1 -0
  14. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  15. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  16. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  17. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  18. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  19. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +116 -72
  20. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  21. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  22. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  23. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +2 -0
  24. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js +3 -0
  25. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.js +4 -0
  26. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js +1 -0
  27. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +80 -70
  28. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
  29. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +23 -0
  30. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +7 -0
  31. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -2
  32. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commandBuilder.d.ts +8 -4
  33. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +2 -2
  34. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +114 -0
  35. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/index.d.ts +1 -0
  36. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
  37. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +41 -3
  38. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +3 -0
  39. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/Signin.d.ts +17 -0
  40. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +10 -2
  41. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +12 -7
  42. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +4 -4
  43. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +44 -0
  44. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
  45. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
  46. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +9 -0
  47. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +3 -0
  48. package/node_modules/@aws-sdk/nested-clients/package.json +11 -8
  49. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
  50. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  51. package/node_modules/@aws-sdk/types/package.json +2 -2
  52. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  53. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -3
  54. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +2 -2
  55. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +3 -3
  56. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +1 -1
  57. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -2
  58. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
  59. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +20 -20
  60. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +20 -20
  61. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -1
  62. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +3 -3
  63. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +3 -3
  64. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +4 -4
  65. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -4
  66. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +5 -5
  67. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -4
  68. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +1 -1
  69. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +2 -2
  70. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +1 -1
  71. package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getRegionInfo.js +1 -1
  72. package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.browser.js +1 -1
  73. package/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js +1 -1
  74. package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js +1 -1
  75. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/service-customizations/s3.js +1 -1
  76. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/parseURL.js +1 -1
  77. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +20 -20
  78. package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +1 -1
  79. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +1 -1
  80. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +1 -1
  81. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js +1 -1
  82. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +2 -2
  83. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +1 -1
  84. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +1 -1
  85. package/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js +1 -1
  86. package/node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js +1 -1
  87. package/node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js +2 -2
  88. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.js +1 -1
  89. package/node_modules/@smithy/core/dist-es/submodules/transport/isValidHostname.js +1 -1
  90. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +2 -2
  91. package/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
  92. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +2 -2
  93. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
  94. package/node_modules/@smithy/core/package.json +5 -3
  95. package/node_modules/@smithy/credential-provider-imds/package.json +3 -5
  96. package/node_modules/@smithy/fetch-http-handler/package.json +3 -5
  97. package/node_modules/@smithy/node-http-handler/package.json +3 -5
  98. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +11 -11
  99. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +10 -10
  100. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +1 -1
  101. package/node_modules/@smithy/signature-v4/package.json +3 -5
  102. package/package.json +5 -5
@@ -7,17 +7,18 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
7
7
  import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
8
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
9
9
  import type { CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
10
+ import type { CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput } from "./commands/CreateOAuth2TokenWithIAMCommand";
10
11
  import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
11
12
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
12
13
  export { __Client };
13
14
  /**
14
15
  * @public
15
16
  */
16
- export type ServiceInputTypes = CreateOAuth2TokenCommandInput;
17
+ export type ServiceInputTypes = CreateOAuth2TokenCommandInput | CreateOAuth2TokenWithIAMCommandInput;
17
18
  /**
18
19
  * @public
19
20
  */
20
- export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput;
21
+ export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput | CreateOAuth2TokenWithIAMCommandOutput;
21
22
  /**
22
23
  * @public
23
24
  */
@@ -1,17 +1,21 @@
1
1
  import type { EndpointParameterInstructions } from "@smithy/types";
2
- import type { SigninClientResolvedConfig } from "./SigninClient";
2
+ import type { ServiceInputTypes, ServiceOutputTypes, SigninClientResolvedConfig } from "./SigninClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
- export declare const command: <I extends import("./commands").CreateOAuth2TokenCommandInput, O extends import("./commands").CreateOAuth2TokenCommandOutput>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
- new (input: I): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig, import("./commands").CreateOAuth2TokenCommandInput, import("./commands").CreateOAuth2TokenCommandOutput>;
8
- new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig, import("./commands").CreateOAuth2TokenCommandInput, import("./commands").CreateOAuth2TokenCommandOutput>;
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
9
  getEndpointParameterInstructions(): EndpointParameterInstructions;
10
10
  };
11
11
  /**
12
12
  * @internal
13
13
  */
14
14
  export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _ep1: EndpointParameterInstructions;
15
19
  /**
16
20
  * @internal
17
21
  */
@@ -19,8 +19,8 @@ export interface CreateOAuth2TokenCommandInput extends CreateOAuth2TokenRequest
19
19
  export interface CreateOAuth2TokenCommandOutput extends CreateOAuth2TokenResponse, __MetadataBearer {
20
20
  }
21
21
  declare const CreateOAuth2TokenCommand_base: {
22
- new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig, CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput>;
23
- new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig, CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput>;
22
+ new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
@@ -0,0 +1,114 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateOAuth2TokenWithIAMRequest, CreateOAuth2TokenWithIAMResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateOAuth2TokenWithIAMCommand}.
11
+ */
12
+ export interface CreateOAuth2TokenWithIAMCommandInput extends CreateOAuth2TokenWithIAMRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateOAuth2TokenWithIAMCommand}.
18
+ */
19
+ export interface CreateOAuth2TokenWithIAMCommandOutput extends CreateOAuth2TokenWithIAMResponse, __MetadataBearer {
20
+ }
21
+ declare const CreateOAuth2TokenWithIAMCommand_base: {
22
+ new (input: CreateOAuth2TokenWithIAMCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateOAuth2TokenWithIAMCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * Grants permission to exchange client credentials for an OAuth 2.0 access token
28
+ * scoped to a resource that can be used to access AWS services from applications
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { SigninClient, CreateOAuth2TokenWithIAMCommand } from "@aws-sdk/client-signin"; // ES Modules import
33
+ * // const { SigninClient, CreateOAuth2TokenWithIAMCommand } = require("@aws-sdk/client-signin"); // CommonJS import
34
+ * // import type { SigninClientConfig } from "@aws-sdk/client-signin";
35
+ * const config = {}; // type is SigninClientConfig
36
+ * const client = new SigninClient(config);
37
+ * const input = { // CreateOAuth2TokenWithIAMRequest
38
+ * grantType: "STRING_VALUE", // required
39
+ * resource: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new CreateOAuth2TokenWithIAMCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // CreateOAuth2TokenWithIAMResponse
44
+ * // accessToken: "STRING_VALUE", // required
45
+ * // tokenType: "STRING_VALUE", // required
46
+ * // expiresIn: Number("int"), // required
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param CreateOAuth2TokenWithIAMCommandInput - {@link CreateOAuth2TokenWithIAMCommandInput}
52
+ * @returns {@link CreateOAuth2TokenWithIAMCommandOutput}
53
+ * @see {@link CreateOAuth2TokenWithIAMCommandInput} for command's `input` shape.
54
+ * @see {@link CreateOAuth2TokenWithIAMCommandOutput} for command's `response` shape.
55
+ * @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * Error thrown for access denied scenarios with flexible HTTP status mapping
59
+ *
60
+ * Runtime HTTP Status Code Mapping:
61
+ * - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
62
+ * - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
63
+ *
64
+ * The specific HTTP status code is determined at runtime based on the error enum value.
65
+ * Consumers should use the error field to determine the specific access denial reason.
66
+ *
67
+ * @throws {@link InternalServerException} (server fault)
68
+ * Error thrown when an internal server error occurs
69
+ *
70
+ * HTTP Status Code: 500 Internal Server Error
71
+ *
72
+ * Used for unexpected server-side errors that prevent request processing.
73
+ *
74
+ * @throws {@link TooManyRequestsError} (client fault)
75
+ * Error thrown when rate limit is exceeded
76
+ *
77
+ * HTTP Status Code: 429 Too Many Requests
78
+ *
79
+ * Possible OAuth2ErrorCode values:
80
+ * - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
81
+ *
82
+ * Possible causes:
83
+ * - Too many token requests from the same client
84
+ * - Rate limiting based on client_id or IP address
85
+ * - Abuse prevention mechanisms triggered
86
+ * - Service protection against excessive token generation
87
+ *
88
+ * @throws {@link ValidationException} (client fault)
89
+ * Error thrown when request validation fails
90
+ *
91
+ * HTTP Status Code: 400 Bad Request
92
+ *
93
+ * Used for request validation errors such as malformed parameters,
94
+ * missing required fields, or invalid parameter values.
95
+ *
96
+ * @throws {@link SigninServiceException}
97
+ * <p>Base exception class for all service exceptions from Signin service.</p>
98
+ *
99
+ *
100
+ * @public
101
+ */
102
+ export declare class CreateOAuth2TokenWithIAMCommand extends CreateOAuth2TokenWithIAMCommand_base {
103
+ /** @internal type navigation helper, not in runtime. */
104
+ protected static __types: {
105
+ api: {
106
+ input: CreateOAuth2TokenWithIAMRequest;
107
+ output: CreateOAuth2TokenWithIAMResponse;
108
+ };
109
+ sdk: {
110
+ input: CreateOAuth2TokenWithIAMCommandInput;
111
+ output: CreateOAuth2TokenWithIAMCommandOutput;
112
+ };
113
+ };
114
+ }
@@ -1 +1,2 @@
1
1
  export * from "./CreateOAuth2TokenCommand";
2
+ export * from "./CreateOAuth2TokenWithIAMCommand";
@@ -48,4 +48,5 @@ export interface EndpointParameters extends __EndpointParameters {
48
48
  Endpoint?: string | undefined;
49
49
  Region?: string | undefined;
50
50
  IsControlPlane?: boolean | undefined;
51
+ IsOAuthEndpoint?: boolean | undefined;
51
52
  }
@@ -1,9 +1,7 @@
1
1
  /**
2
2
  * AWS credentials structure containing temporary access credentials
3
3
  *
4
- * The scoped-down, 15 minute duration AWS credentials.
5
- * Scoping down will be based on CLI policy (CLI team needs to create it).
6
- * Similar to cloud shell implementation.
4
+ * Scoped, temporary AWS credentials with a 15-minute duration.
7
5
  * @public
8
6
  */
9
7
  export interface AccessToken {
@@ -140,3 +138,43 @@ export interface CreateOAuth2TokenResponse {
140
138
  */
141
139
  tokenOutput: CreateOAuth2TokenResponseBody | undefined;
142
140
  }
141
+ /**
142
+ * Input structure for CreateOAuth2TokenWithIAM operation
143
+ * @public
144
+ */
145
+ export interface CreateOAuth2TokenWithIAMRequest {
146
+ /**
147
+ * OAuth 2.0 grant type. Must be "client_credentials".
148
+ * @public
149
+ */
150
+ grantType: string | undefined;
151
+ /**
152
+ * The OAuth resource for which the access token is requested.
153
+ * Example: "aws-mcp.amazonaws.com".
154
+ * @public
155
+ */
156
+ resource: string | undefined;
157
+ }
158
+ /**
159
+ * Output structure for CreateOAuth2TokenWithIAM operation
160
+ *
161
+ * Contains the JWT access token, token type, and expiration per RFC 6749 §5.1.
162
+ * @public
163
+ */
164
+ export interface CreateOAuth2TokenWithIAMResponse {
165
+ /**
166
+ * JWT access token containing principal identity, resource scope, and session metadata
167
+ * @public
168
+ */
169
+ accessToken: string | undefined;
170
+ /**
171
+ * Always "Bearer" per OAuth 2.1 specification
172
+ * @public
173
+ */
174
+ tokenType: string | undefined;
175
+ /**
176
+ * Token lifetime in seconds. Value is the minimum of session validity and 1 hour.
177
+ * @public
178
+ */
179
+ expiresIn: number | undefined;
180
+ }
@@ -16,4 +16,7 @@ export declare var CreateOAuth2TokenRequest$: StaticStructureSchema;
16
16
  export declare var CreateOAuth2TokenRequestBody$: StaticStructureSchema;
17
17
  export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
18
18
  export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
19
+ export declare var CreateOAuth2TokenWithIAMRequest$: StaticStructureSchema;
20
+ export declare var CreateOAuth2TokenWithIAMResponse$: StaticStructureSchema;
19
21
  export declare var CreateOAuth2Token$: StaticOperationSchema;
22
+ export declare var CreateOAuth2TokenWithIAM$: StaticOperationSchema;
@@ -3,6 +3,10 @@ import {
3
3
  CreateOAuth2TokenCommandInput,
4
4
  CreateOAuth2TokenCommandOutput,
5
5
  } from "./commands/CreateOAuth2TokenCommand";
6
+ import {
7
+ CreateOAuth2TokenWithIAMCommandInput,
8
+ CreateOAuth2TokenWithIAMCommandOutput,
9
+ } from "./commands/CreateOAuth2TokenWithIAMCommand";
6
10
  import { SigninClient } from "./SigninClient";
7
11
  export interface Signin {
8
12
  createOAuth2Token(
@@ -18,5 +22,18 @@ export interface Signin {
18
22
  options: __HttpHandlerOptions,
19
23
  cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void
20
24
  ): void;
25
+ createOAuth2TokenWithIAM(
26
+ args: CreateOAuth2TokenWithIAMCommandInput,
27
+ options?: __HttpHandlerOptions
28
+ ): Promise<CreateOAuth2TokenWithIAMCommandOutput>;
29
+ createOAuth2TokenWithIAM(
30
+ args: CreateOAuth2TokenWithIAMCommandInput,
31
+ cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void
32
+ ): void;
33
+ createOAuth2TokenWithIAM(
34
+ args: CreateOAuth2TokenWithIAMCommandInput,
35
+ options: __HttpHandlerOptions,
36
+ cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void
37
+ ): void;
21
38
  }
22
39
  export declare class Signin extends SigninClient implements Signin {}
@@ -40,6 +40,10 @@ import {
40
40
  CreateOAuth2TokenCommandInput,
41
41
  CreateOAuth2TokenCommandOutput,
42
42
  } from "./commands/CreateOAuth2TokenCommand";
43
+ import {
44
+ CreateOAuth2TokenWithIAMCommandInput,
45
+ CreateOAuth2TokenWithIAMCommandOutput,
46
+ } from "./commands/CreateOAuth2TokenWithIAMCommand";
43
47
  import {
44
48
  ClientInputEndpointParameters,
45
49
  ClientResolvedEndpointParameters,
@@ -47,8 +51,12 @@ import {
47
51
  } from "./endpoint/EndpointParameters";
48
52
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
49
53
  export { __Client };
50
- export type ServiceInputTypes = CreateOAuth2TokenCommandInput;
51
- export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput;
54
+ export type ServiceInputTypes =
55
+ | CreateOAuth2TokenCommandInput
56
+ | CreateOAuth2TokenWithIAMCommandInput;
57
+ export type ServiceOutputTypes =
58
+ | CreateOAuth2TokenCommandOutput
59
+ | CreateOAuth2TokenWithIAMCommandOutput;
52
60
  export interface ClientDefaults
53
61
  extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
54
62
  requestHandler?: __HttpHandlerUserInput;
@@ -1,8 +1,12 @@
1
1
  import { EndpointParameterInstructions } from "@smithy/types";
2
- import { SigninClientResolvedConfig } from "./SigninClient";
2
+ import {
3
+ ServiceInputTypes,
4
+ ServiceOutputTypes,
5
+ SigninClientResolvedConfig,
6
+ } from "./SigninClient";
3
7
  export declare const command: <
4
- I extends import("./commands").CreateOAuth2TokenCommandInput,
5
- O extends import("./commands").CreateOAuth2TokenCommandOutput
8
+ I extends ServiceInputTypes,
9
+ O extends ServiceOutputTypes
6
10
  >(
7
11
  added: EndpointParameterInstructions,
8
12
  plugins: (
@@ -19,8 +23,8 @@ export declare const command: <
19
23
  I,
20
24
  O,
21
25
  SigninClientResolvedConfig,
22
- import("./commands").CreateOAuth2TokenCommandInput,
23
- import("./commands").CreateOAuth2TokenCommandOutput
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
24
28
  >;
25
29
  new (
26
30
  ...[input]: import("@smithy/types").OptionalParameter<I>
@@ -28,12 +32,13 @@ export declare const command: <
28
32
  I,
29
33
  O,
30
34
  SigninClientResolvedConfig,
31
- import("./commands").CreateOAuth2TokenCommandInput,
32
- import("./commands").CreateOAuth2TokenCommandOutput
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
33
37
  >;
34
38
  getEndpointParameterInstructions(): EndpointParameterInstructions;
35
39
  };
36
40
  export declare const _ep0: EndpointParameterInstructions;
41
+ export declare const _ep1: EndpointParameterInstructions;
37
42
  export declare const _mw0: (
38
43
  Command: any,
39
44
  cs: any,
@@ -16,8 +16,8 @@ declare const CreateOAuth2TokenCommand_base: {
16
16
  CreateOAuth2TokenCommandInput,
17
17
  CreateOAuth2TokenCommandOutput,
18
18
  import("..").SigninClientResolvedConfig,
19
- CreateOAuth2TokenCommandInput,
20
- CreateOAuth2TokenCommandOutput
19
+ import("..").ServiceInputTypes,
20
+ import("..").ServiceOutputTypes
21
21
  >;
22
22
  new (
23
23
  input: CreateOAuth2TokenCommandInput
@@ -25,8 +25,8 @@ declare const CreateOAuth2TokenCommand_base: {
25
25
  CreateOAuth2TokenCommandInput,
26
26
  CreateOAuth2TokenCommandOutput,
27
27
  import("..").SigninClientResolvedConfig,
28
- CreateOAuth2TokenCommandInput,
29
- CreateOAuth2TokenCommandOutput
28
+ import("..").ServiceInputTypes,
29
+ import("..").ServiceOutputTypes
30
30
  >;
31
31
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
32
32
  };
@@ -0,0 +1,44 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ CreateOAuth2TokenWithIAMRequest,
4
+ CreateOAuth2TokenWithIAMResponse,
5
+ } from "../models/models_0";
6
+ export { __MetadataBearer };
7
+ export interface CreateOAuth2TokenWithIAMCommandInput
8
+ extends CreateOAuth2TokenWithIAMRequest {}
9
+ export interface CreateOAuth2TokenWithIAMCommandOutput
10
+ extends CreateOAuth2TokenWithIAMResponse,
11
+ __MetadataBearer {}
12
+ declare const CreateOAuth2TokenWithIAMCommand_base: {
13
+ new (
14
+ input: CreateOAuth2TokenWithIAMCommandInput
15
+ ): import("@smithy/core/client").CommandImpl<
16
+ CreateOAuth2TokenWithIAMCommandInput,
17
+ CreateOAuth2TokenWithIAMCommandOutput,
18
+ import("..").SigninClientResolvedConfig,
19
+ import("..").ServiceInputTypes,
20
+ import("..").ServiceOutputTypes
21
+ >;
22
+ new (
23
+ input: CreateOAuth2TokenWithIAMCommandInput
24
+ ): import("@smithy/core/client").CommandImpl<
25
+ CreateOAuth2TokenWithIAMCommandInput,
26
+ CreateOAuth2TokenWithIAMCommandOutput,
27
+ import("..").SigninClientResolvedConfig,
28
+ import("..").ServiceInputTypes,
29
+ import("..").ServiceOutputTypes
30
+ >;
31
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
32
+ };
33
+ export declare class CreateOAuth2TokenWithIAMCommand extends CreateOAuth2TokenWithIAMCommand_base {
34
+ protected static __types: {
35
+ api: {
36
+ input: CreateOAuth2TokenWithIAMRequest;
37
+ output: CreateOAuth2TokenWithIAMResponse;
38
+ };
39
+ sdk: {
40
+ input: CreateOAuth2TokenWithIAMCommandInput;
41
+ output: CreateOAuth2TokenWithIAMCommandOutput;
42
+ };
43
+ };
44
+ }
@@ -1 +1,2 @@
1
1
  export * from "./CreateOAuth2TokenCommand";
2
+ export * from "./CreateOAuth2TokenWithIAMCommand";
@@ -49,4 +49,5 @@ export interface EndpointParameters extends __EndpointParameters {
49
49
  Endpoint?: string | undefined;
50
50
  Region?: string | undefined;
51
51
  IsControlPlane?: boolean | undefined;
52
+ IsOAuthEndpoint?: boolean | undefined;
52
53
  }
@@ -24,3 +24,12 @@ export interface CreateOAuth2TokenResponseBody {
24
24
  export interface CreateOAuth2TokenResponse {
25
25
  tokenOutput: CreateOAuth2TokenResponseBody | undefined;
26
26
  }
27
+ export interface CreateOAuth2TokenWithIAMRequest {
28
+ grantType: string | undefined;
29
+ resource: string | undefined;
30
+ }
31
+ export interface CreateOAuth2TokenWithIAMResponse {
32
+ accessToken: string | undefined;
33
+ tokenType: string | undefined;
34
+ expiresIn: number | undefined;
35
+ }
@@ -15,4 +15,7 @@ export declare var CreateOAuth2TokenRequest$: StaticStructureSchema;
15
15
  export declare var CreateOAuth2TokenRequestBody$: StaticStructureSchema;
16
16
  export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
17
17
  export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
18
+ export declare var CreateOAuth2TokenWithIAMRequest$: StaticStructureSchema;
19
+ export declare var CreateOAuth2TokenWithIAMResponse$: StaticStructureSchema;
18
20
  export declare var CreateOAuth2Token$: StaticOperationSchema;
21
+ export declare var CreateOAuth2TokenWithIAM$: StaticOperationSchema;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.997.31",
3
+ "version": "3.997.32",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,13 +28,13 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "^3.975.1",
32
- "@aws-sdk/signature-v4-multi-region": "^3.996.39",
33
- "@aws-sdk/types": "^3.974.0",
34
- "@smithy/core": "^3.29.2",
35
- "@smithy/fetch-http-handler": "^5.6.4",
36
- "@smithy/node-http-handler": "^4.9.4",
37
- "@smithy/types": "^4.16.0",
31
+ "@aws-sdk/core": "^3.975.2",
32
+ "@aws-sdk/signature-v4-multi-region": "^3.996.40",
33
+ "@aws-sdk/types": "^3.974.1",
34
+ "@smithy/core": "^3.29.3",
35
+ "@smithy/fetch-http-handler": "^5.6.5",
36
+ "@smithy/node-http-handler": "^4.9.5",
37
+ "@smithy/types": "^4.16.1",
38
38
  "tslib": "^2.6.2"
39
39
  },
40
40
  "devDependencies": {
@@ -47,6 +47,9 @@
47
47
  "<4.5": {
48
48
  "dist-types/*": [
49
49
  "dist-types/ts3.4/*"
50
+ ],
51
+ "*": [
52
+ "dist-types/ts3.4/submodules/*/index.d.ts"
50
53
  ]
51
54
  }
52
55
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4-multi-region",
3
- "version": "3.996.39",
3
+ "version": "3.996.40",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:browser": "node ./test-browser/browser-build/esbuild",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/types": "^3.974.0",
29
+ "@aws-sdk/types": "^3.974.1",
30
30
  "@smithy/signature-v4": "^5.6.3",
31
- "@smithy/types": "^4.16.0",
31
+ "@smithy/types": "^4.16.1",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.1083.0",
3
+ "version": "3.1087.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,11 +29,11 @@
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "dependencies": {
32
- "@aws-sdk/core": "^3.975.1",
33
- "@aws-sdk/nested-clients": "^3.997.31",
34
- "@aws-sdk/types": "^3.974.0",
35
- "@smithy/core": "^3.29.2",
36
- "@smithy/types": "^4.16.0",
32
+ "@aws-sdk/core": "^3.975.2",
33
+ "@aws-sdk/nested-clients": "^3.997.32",
34
+ "@aws-sdk/types": "^3.974.1",
35
+ "@smithy/core": "^3.29.3",
36
+ "@smithy/types": "^4.16.1",
37
37
  "tslib": "^2.6.2"
38
38
  },
39
39
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.974.0",
3
+ "version": "3.974.1",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "directory": "packages-internal/types"
43
43
  },
44
44
  "dependencies": {
45
- "@smithy/types": "^4.16.0",
45
+ "@smithy/types": "^4.16.1",
46
46
  "tslib": "^2.6.2"
47
47
  },
48
48
  "devDependencies": {
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@aws-sdk/xml-builder",
3
- "version": "3.972.34",
3
+ "version": "3.972.35",
4
4
  "description": "XML utilities for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/types": "^4.16.0",
6
+ "@smithy/types": "^4.16.1",
7
7
  "tslib": "^2.6.2"
8
8
  },
9
9
  "scripts": {
@@ -928,7 +928,7 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
928
928
  try {
929
929
  contents.headers["content-length"] = String(calculateBodyLength(body));
930
930
  }
931
- catch (e) { }
931
+ catch (ignored) { }
932
932
  }
933
933
  return new HttpRequest(contents);
934
934
  };
@@ -1177,7 +1177,7 @@ class SmithyRpcV2CborProtocol extends RpcProtocol {
1177
1177
  try {
1178
1178
  request.headers["content-length"] = String(request.body.byteLength);
1179
1179
  }
1180
- catch (e) { }
1180
+ catch (ignored) { }
1181
1181
  }
1182
1182
  const { service, operation } = getSmithyContext(context);
1183
1183
  const path = `/service/${service}/operation/${operation}`;
@@ -1209,7 +1209,7 @@ class SmithyRpcV2CborProtocol extends RpcProtocol {
1209
1209
  try {
1210
1210
  errorSchema = registry.getSchema(errorName);
1211
1211
  }
1212
- catch (e) {
1212
+ catch (ignored) {
1213
1213
  if (dataObject.Message) {
1214
1214
  dataObject.message = dataObject.Message;
1215
1215
  }
@@ -245,7 +245,7 @@ const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFip
245
245
 
246
246
  const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => {
247
247
  const partition = getResolvedPartition(region, { partitionHash });
248
- const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;
248
+ const resolvedRegion = region in regionHash ? region : (partitionHash[partition]?.endpoint ?? region);
249
249
  const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
250
250
  const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
251
251
  const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);
@@ -291,7 +291,7 @@ const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => memoize(async () =
291
291
  const useMobileConfiguration = () => {
292
292
  const navigator = window?.navigator;
293
293
  if (navigator?.connection) {
294
- const { effectiveType, rtt, downlink } = navigator?.connection;
294
+ const { effectiveType, rtt, downlink } = navigator.connection;
295
295
  const slow = (typeof effectiveType === "string" && effectiveType !== "4g") || Number(rtt) > 100 || Number(downlink) < 10;
296
296
  if (slow) {
297
297
  return true;
@@ -207,7 +207,7 @@ const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(
207
207
  const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
208
208
  const getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join(getHomeDir(), ".aws", "credentials");
209
209
 
210
- const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
210
+ const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/;
211
211
  const profileNameBlockList = ["__proto__", "profile __proto__"];
212
212
  const parseIni = (iniData) => {
213
213
  const map = {};
@@ -355,7 +355,7 @@ function getSelectorName(functionString) {
355
355
  constants.delete("ENV");
356
356
  return [...constants].join(", ");
357
357
  }
358
- catch (e) {
358
+ catch (ignored) {
359
359
  return functionString;
360
360
  }
361
361
  }
@@ -659,7 +659,7 @@ const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFip
659
659
 
660
660
  const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => {
661
661
  const partition = getResolvedPartition(region, { partitionHash });
662
- const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;
662
+ const resolvedRegion = region in regionHash ? region : (partitionHash[partition]?.endpoint ?? region);
663
663
  const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
664
664
  const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
665
665
  const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);