@kensio/yulin 1.16.1 → 1.16.3
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/sdk/router/sim-sdk-caller-options.d.ts +2 -2
- package/dist/sdk/router/sim-sdk-caller-options.d.ts.map +1 -1
- package/dist/sdk/router/sim-sdk-command-router.type.d.ts +7 -2
- package/dist/sdk/router/sim-sdk-command-router.type.d.ts.map +1 -1
- package/dist/sdk/sim-sdk-command-dispatcher.d.ts +7 -1
- package/dist/sdk/sim-sdk-command-dispatcher.d.ts.map +1 -1
- package/dist/sdk/sim-sdk-command-dispatcher.js +16 -4
- package/dist/sdk/sim-sdk-command-dispatcher.js.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts +7 -6
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.js +11 -10
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.js.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts +12 -2
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-operation.js +1 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire.types.d.ts +0 -4
- package/dist/sdk/wire/sim-sdk-wire.types.d.ts.map +1 -1
- package/dist/serve/http/api/sim-aws-api-endpoint.d.ts +40 -0
- package/dist/serve/http/api/sim-aws-api-endpoint.d.ts.map +1 -0
- package/dist/serve/http/api/sim-aws-api-endpoint.js +120 -0
- package/dist/serve/http/api/sim-aws-api-endpoint.js.map +1 -0
- package/dist/serve/http/sim-aws-http.d.ts +1 -0
- package/dist/serve/http/sim-aws-http.d.ts.map +1 -1
- package/dist/serve/http/sim-aws-http.js +9 -0
- package/dist/serve/http/sim-aws-http.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +1 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts +8 -0
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.js +13 -0
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.js.map +1 -1
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-lookup.d.ts +28 -0
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-lookup.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-lookup.js +36 -0
- package/dist/service/cloudformation/stack/resource-map/sim-cfn-stack-resource-lookup.js.map +1 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts +10 -28
- package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack.js +11 -2
- package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts +28 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts.map +1 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.type.js +2 -0
- package/dist/service/cloudformation/stack/sim-cfn-stack.type.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +2 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js +2 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts +1 -0
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.d.ts +2 -0
- package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.js +8 -0
- package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
- package/dist/service/cognito/command/user/password-reset.command.d.ts +80 -0
- package/dist/service/cognito/command/user/password-reset.command.d.ts.map +1 -0
- package/dist/service/cognito/command/user/password-reset.command.js +2 -0
- package/dist/service/cognito/command/user/password-reset.command.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.d.ts +74 -0
- package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.js +121 -0
- package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-resetting-user.d.ts +34 -0
- package/dist/service/cognito/command/user/sim-cognito-resetting-user.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-resetting-user.js +54 -0
- package/dist/service/cognito/command/user/sim-cognito-resetting-user.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +3 -3
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.d.ts +29 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.js +36 -0
- package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.js.map +1 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts +23 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.js +27 -0
- package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
- package/dist/service/cognito/index.d.ts +2 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +2 -1
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts +6 -5
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js +18 -5
- package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.d.ts +26 -0
- package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.js +57 -0
- package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +9 -6
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +26 -11
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts +18 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.js +23 -0
- package/dist/service/cognito/serve/page/sim-cognito-page-paths.js.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-provider-links.d.ts +12 -0
- package/dist/service/cognito/serve/page/sim-cognito-provider-links.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-provider-links.js +18 -0
- package/dist/service/cognito/serve/page/sim-cognito-provider-links.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.d.ts +27 -0
- package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.js +65 -0
- package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts +2 -10
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js +16 -21
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -1
- package/dist/service/cognito/sim-cognito-user-directory.d.ts +16 -0
- package/dist/service/cognito/sim-cognito-user-directory.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-user-directory.js +25 -0
- package/dist/service/cognito/sim-cognito-user-directory.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +9 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js +14 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts +10 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js +11 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.d.ts +44 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.js +78 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts +10 -6
- package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts +5 -2
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js +5 -2
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts +15 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js +18 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts +4 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js +5 -2
- package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts +14 -6
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js +20 -9
- package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.d.ts +62 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.js +65 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts +55 -11
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js +67 -10
- package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +15 -12
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js +31 -20
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
- package/dist/service/iam/sim-iam.d.ts +10 -0
- package/dist/service/iam/sim-iam.d.ts.map +1 -1
- package/dist/service/iam/sim-iam.js +10 -0
- package/dist/service/iam/sim-iam.js.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.handler.d.ts +3 -0
- package/dist/service/lambda/command/create-function/create-function.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.handler.js +5 -1
- package/dist/service/lambda/command/create-function/create-function.handler.js.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +2 -0
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts +7 -0
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.js +1 -0
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts +3 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js +3 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts +6 -9
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js +3 -3
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts +11 -3
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js +13 -8
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts +21 -2
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js +18 -2
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts +26 -0
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js +17 -0
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.d.ts +17 -0
- package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.d.ts.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.js +43 -0
- package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.js.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.d.ts +44 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.d.ts.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.js +83 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.d.ts +50 -0
- package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.js +83 -0
- package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-module.d.ts +42 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-module.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-module.js +88 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-module.js.map +1 -0
- package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-wire-request.d.ts → outbound/sim-lambda-http-request.d.ts} +20 -7
- package/dist/service/lambda/function/outbound/sim-lambda-http-request.d.ts.map +1 -0
- package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-wire-request.js → outbound/sim-lambda-http-request.js} +27 -29
- package/dist/service/lambda/function/outbound/sim-lambda-http-request.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-response.d.ts +18 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-response.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-response.js +23 -0
- package/dist/service/lambda/function/outbound/sim-lambda-http-response.js.map +1 -0
- package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-http-target.d.ts → outbound/sim-lambda-http-target.d.ts} +9 -7
- package/dist/service/lambda/function/outbound/sim-lambda-http-target.d.ts.map +1 -0
- package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-http-target.js → outbound/sim-lambda-http-target.js} +4 -38
- package/dist/service/lambda/function/outbound/sim-lambda-http-target.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.d.ts +15 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.js +38 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.d.ts +27 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.d.ts +13 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.js +107 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.js +2 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.js.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.d.ts +16 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.d.ts.map +1 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.js +29 -0
- package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts +12 -6
- package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.js +9 -10
- package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts +8 -0
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +2 -1
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
- package/dist/service/rekognition/collection/sim-rekognition-collection-faces.d.ts +53 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection-faces.d.ts.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection-faces.js +69 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection-faces.js.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection.d.ts +26 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection.d.ts.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection.js +9 -0
- package/dist/service/rekognition/collection/sim-rekognition-collection.js.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-collections.d.ts +50 -0
- package/dist/service/rekognition/collection/sim-rekognition-collections.d.ts.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-collections.js +78 -0
- package/dist/service/rekognition/collection/sim-rekognition-collections.js.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-indexed-face.d.ts +41 -0
- package/dist/service/rekognition/collection/sim-rekognition-indexed-face.d.ts.map +1 -0
- package/dist/service/rekognition/collection/sim-rekognition-indexed-face.js +53 -0
- package/dist/service/rekognition/collection/sim-rekognition-indexed-face.js.map +1 -0
- package/dist/service/rekognition/command/authorize/sim-rekognition-authorizer.d.ts +2 -2
- package/dist/service/rekognition/command/authorize/sim-rekognition-authorizer.d.ts.map +1 -1
- package/dist/service/rekognition/command/authorize/sim-rekognition-authorizer.js +7 -4
- package/dist/service/rekognition/command/authorize/sim-rekognition-authorizer.js.map +1 -1
- package/dist/service/rekognition/command/collection/collection-id.d.ts +9 -0
- package/dist/service/rekognition/command/collection/collection-id.d.ts.map +1 -0
- package/dist/service/rekognition/command/collection/collection-id.js +15 -0
- package/dist/service/rekognition/command/collection/collection-id.js.map +1 -0
- package/dist/service/rekognition/command/collection/collection.command.d.ts +55 -0
- package/dist/service/rekognition/command/collection/collection.command.d.ts.map +1 -0
- package/dist/service/rekognition/command/collection/collection.command.js +2 -0
- package/dist/service/rekognition/command/collection/collection.command.js.map +1 -0
- package/dist/service/rekognition/command/collection/collection.handler.d.ts +40 -0
- package/dist/service/rekognition/command/collection/collection.handler.d.ts.map +1 -0
- package/dist/service/rekognition/command/collection/collection.handler.js +62 -0
- package/dist/service/rekognition/command/collection/collection.handler.js.map +1 -0
- package/dist/service/rekognition/command/face/delete-faces-request.d.ts +10 -0
- package/dist/service/rekognition/command/face/delete-faces-request.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/delete-faces-request.js +18 -0
- package/dist/service/rekognition/command/face/delete-faces-request.js.map +1 -0
- package/dist/service/rekognition/command/face/external-image-id.d.ts +9 -0
- package/dist/service/rekognition/command/face/external-image-id.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/external-image-id.js +28 -0
- package/dist/service/rekognition/command/face/external-image-id.js.map +1 -0
- package/dist/service/rekognition/command/face/face-ids.d.ts +9 -0
- package/dist/service/rekognition/command/face/face-ids.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face-ids.js +48 -0
- package/dist/service/rekognition/command/face/face-ids.js.map +1 -0
- package/dist/service/rekognition/command/face/face-indexer.d.ts +38 -0
- package/dist/service/rekognition/command/face/face-indexer.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face-indexer.js +64 -0
- package/dist/service/rekognition/command/face/face-indexer.js.map +1 -0
- package/dist/service/rekognition/command/face/face-limits.d.ts +22 -0
- package/dist/service/rekognition/command/face/face-limits.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face-limits.js +36 -0
- package/dist/service/rekognition/command/face/face-limits.js.map +1 -0
- package/dist/service/rekognition/command/face/face-listing.d.ts +26 -0
- package/dist/service/rekognition/command/face/face-listing.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face-listing.js +36 -0
- package/dist/service/rekognition/command/face/face-listing.js.map +1 -0
- package/dist/service/rekognition/command/face/face-output.d.ts +65 -0
- package/dist/service/rekognition/command/face/face-output.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face-output.js +8 -0
- package/dist/service/rekognition/command/face/face-output.js.map +1 -0
- package/dist/service/rekognition/command/face/face-searcher.d.ts +32 -0
- package/dist/service/rekognition/command/face/face-searcher.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face-searcher.js +45 -0
- package/dist/service/rekognition/command/face/face-searcher.js.map +1 -0
- package/dist/service/rekognition/command/face/face.command.d.ts +107 -0
- package/dist/service/rekognition/command/face/face.command.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face.command.js +2 -0
- package/dist/service/rekognition/command/face/face.command.js.map +1 -0
- package/dist/service/rekognition/command/face/face.handler.d.ts +62 -0
- package/dist/service/rekognition/command/face/face.handler.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/face.handler.js +99 -0
- package/dist/service/rekognition/command/face/face.handler.js.map +1 -0
- package/dist/service/rekognition/command/face/index-faces-request.d.ts +20 -0
- package/dist/service/rekognition/command/face/index-faces-request.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/index-faces-request.js +39 -0
- package/dist/service/rekognition/command/face/index-faces-request.js.map +1 -0
- package/dist/service/rekognition/command/face/list-faces-page.d.ts +26 -0
- package/dist/service/rekognition/command/face/list-faces-page.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/list-faces-page.js +39 -0
- package/dist/service/rekognition/command/face/list-faces-page.js.map +1 -0
- package/dist/service/rekognition/command/face/list-faces-request.d.ts +17 -0
- package/dist/service/rekognition/command/face/list-faces-request.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/list-faces-request.js +43 -0
- package/dist/service/rekognition/command/face/list-faces-request.js.map +1 -0
- package/dist/service/rekognition/command/face/search-faces-by-image-request.d.ts +24 -0
- package/dist/service/rekognition/command/face/search-faces-by-image-request.d.ts.map +1 -0
- package/dist/service/rekognition/command/face/search-faces-by-image-request.js +61 -0
- package/dist/service/rekognition/command/face/search-faces-by-image-request.js.map +1 -0
- package/dist/service/rekognition/command/sim-rekognition-detection-handlers.d.ts +32 -0
- package/dist/service/rekognition/command/sim-rekognition-detection-handlers.d.ts.map +1 -0
- package/dist/service/rekognition/command/sim-rekognition-detection-handlers.js +37 -0
- package/dist/service/rekognition/command/sim-rekognition-detection-handlers.js.map +1 -0
- package/dist/service/rekognition/error/sim-rekognition.error.d.ts +20 -0
- package/dist/service/rekognition/error/sim-rekognition.error.d.ts.map +1 -1
- package/dist/service/rekognition/error/sim-rekognition.error.js +24 -0
- package/dist/service/rekognition/error/sim-rekognition.error.js.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-detected-face.d.ts +9 -0
- package/dist/service/rekognition/face/sim-rekognition-detected-face.d.ts.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-detected-face.js +12 -0
- package/dist/service/rekognition/face/sim-rekognition-detected-face.js.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.d.ts.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.js.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detection.d.ts +9 -0
- package/dist/service/rekognition/face/sim-rekognition-face-detection.d.ts.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-detection.js +10 -0
- package/dist/service/rekognition/face/sim-rekognition-face-detection.js.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-frame.d.ts +5 -1
- package/dist/service/rekognition/face/sim-rekognition-face-frame.d.ts.map +1 -1
- package/dist/service/rekognition/face/sim-rekognition-face-frame.js +3 -0
- package/dist/service/rekognition/face/sim-rekognition-face-frame.js.map +1 -1
- package/dist/service/rekognition/index.d.ts +3 -1
- package/dist/service/rekognition/index.d.ts.map +1 -1
- package/dist/service/rekognition/index.js +2 -1
- package/dist/service/rekognition/index.js.map +1 -1
- package/dist/service/rekognition/match/sim-rekognition-face-match-declaration.d.ts +29 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-declaration.d.ts.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-declaration.js +2 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-declaration.js.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-result.d.ts +25 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-result.d.ts.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-result.js +44 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-result.js.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-rule.d.ts +26 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-rule.d.ts.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-rule.js +64 -0
- package/dist/service/rekognition/match/sim-rekognition-face-match-rule.js.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-matches.d.ts +32 -0
- package/dist/service/rekognition/match/sim-rekognition-face-matches.d.ts.map +1 -0
- package/dist/service/rekognition/match/sim-rekognition-face-matches.js +39 -0
- package/dist/service/rekognition/match/sim-rekognition-face-matches.js.map +1 -0
- package/dist/service/rekognition/sdk/sim-rekognition-sdk-command-router.d.ts.map +1 -1
- package/dist/service/rekognition/sdk/sim-rekognition-sdk-command-router.js +28 -0
- package/dist/service/rekognition/sdk/sim-rekognition-sdk-command-router.js.map +1 -1
- package/dist/service/rekognition/sim-rekognition.d.ts +51 -3
- package/dist/service/rekognition/sim-rekognition.d.ts.map +1 -1
- package/dist/service/rekognition/sim-rekognition.js +84 -16
- package/dist/service/rekognition/sim-rekognition.js.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket.d.ts +8 -0
- package/dist/service/s3/bucket/sim-s3-bucket.d.ts.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket.js +4 -1
- package/dist/service/s3/bucket/sim-s3-bucket.js.map +1 -1
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts +1 -0
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts.map +1 -1
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js +4 -0
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js.map +1 -1
- package/dist/service/s3/command/create-bucket/create-bucket.handler.d.ts.map +1 -1
- package/dist/service/s3/command/create-bucket/create-bucket.handler.js +1 -0
- package/dist/service/s3/command/create-bucket/create-bucket.handler.js.map +1 -1
- package/dist/service/s3/command/head-bucket/head-bucket-authorizer.d.ts +26 -0
- package/dist/service/s3/command/head-bucket/head-bucket-authorizer.d.ts.map +1 -0
- package/dist/service/s3/command/head-bucket/head-bucket-authorizer.js +48 -0
- package/dist/service/s3/command/head-bucket/head-bucket-authorizer.js.map +1 -0
- package/dist/service/s3/command/head-bucket/head-bucket.command.d.ts +24 -0
- package/dist/service/s3/command/head-bucket/head-bucket.command.d.ts.map +1 -0
- package/dist/service/s3/command/head-bucket/head-bucket.command.js +2 -0
- package/dist/service/s3/command/head-bucket/head-bucket.command.js.map +1 -0
- package/dist/service/s3/command/head-bucket/head-bucket.handler.d.ts +35 -0
- package/dist/service/s3/command/head-bucket/head-bucket.handler.d.ts.map +1 -0
- package/dist/service/s3/command/head-bucket/head-bucket.handler.js +45 -0
- package/dist/service/s3/command/head-bucket/head-bucket.handler.js.map +1 -0
- package/dist/service/s3/command/head-object/head-object-loader.d.ts +17 -0
- package/dist/service/s3/command/head-object/head-object-loader.d.ts.map +1 -0
- package/dist/service/s3/command/head-object/head-object-loader.js +29 -0
- package/dist/service/s3/command/head-object/head-object-loader.js.map +1 -0
- package/dist/service/s3/command/head-object/head-object.command.d.ts +29 -0
- package/dist/service/s3/command/head-object/head-object.command.d.ts.map +1 -0
- package/dist/service/s3/command/head-object/head-object.command.js +2 -0
- package/dist/service/s3/command/head-object/head-object.command.js.map +1 -0
- package/dist/service/s3/command/head-object/head-object.handler.d.ts +38 -0
- package/dist/service/s3/command/head-object/head-object.handler.d.ts.map +1 -0
- package/dist/service/s3/command/head-object/head-object.handler.js +50 -0
- package/dist/service/s3/command/head-object/head-object.handler.js.map +1 -0
- package/dist/service/s3/command/list-buckets/list-buckets-page-builder.d.ts.map +1 -1
- package/dist/service/s3/command/list-buckets/list-buckets-page-builder.js +1 -0
- package/dist/service/s3/command/list-buckets/list-buckets-page-builder.js.map +1 -1
- package/dist/service/s3/command/list-buckets/list-buckets.command.d.ts +1 -0
- package/dist/service/s3/command/list-buckets/list-buckets.command.d.ts.map +1 -1
- package/dist/service/s3/command/object/sim-s3-object-commands.d.ts +4 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.d.ts.map +1 -1
- package/dist/service/s3/command/object/sim-s3-object-commands.js +7 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.js.map +1 -1
- package/dist/service/s3/command/sim-s3-command.types.d.ts +2 -0
- package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.d.ts +12 -0
- package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.js +14 -0
- package/dist/service/s3/error/sim-s3.error.js.map +1 -1
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.d.ts.map +1 -1
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +8 -0
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.d.ts +9 -0
- package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.js +120 -0
- package/dist/service/s3/serve/api/sim-s3-api-bucket-routes.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-configuration-output.d.ts +19 -0
- package/dist/service/s3/serve/api/sim-s3-api-configuration-output.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-configuration-output.js +78 -0
- package/dist/service/s3/serve/api/sim-s3-api-configuration-output.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-head-output.d.ts +22 -0
- package/dist/service/s3/serve/api/sim-s3-api-head-output.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-head-output.js +39 -0
- package/dist/service/s3/serve/api/sim-s3-api-head-output.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-input.d.ts +57 -0
- package/dist/service/s3/serve/api/sim-s3-api-input.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-input.js +112 -0
- package/dist/service/s3/serve/api/sim-s3-api-input.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-listing.d.ts +43 -0
- package/dist/service/s3/serve/api/sim-s3-api-listing.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-listing.js +53 -0
- package/dist/service/s3/serve/api/sim-s3-api-listing.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-notification-read.d.ts +8 -0
- package/dist/service/s3/serve/api/sim-s3-api-notification-read.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-notification-read.js +54 -0
- package/dist/service/s3/serve/api/sim-s3-api-notification-read.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts +6 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +31 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-output.d.ts +10 -0
- package/dist/service/s3/serve/api/sim-s3-api-output.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-output.js +118 -0
- package/dist/service/s3/serve/api/sim-s3-api-output.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-request.d.ts +32 -0
- package/dist/service/s3/serve/api/sim-s3-api-request.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-request.js +48 -0
- package/dist/service/s3/serve/api/sim-s3-api-request.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts +26 -0
- package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-route.type.js +2 -0
- package/dist/service/s3/serve/api/sim-s3-api-route.type.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts +24 -0
- package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-routes.js +90 -0
- package/dist/service/s3/serve/api/sim-s3-api-routes.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-xml-read.d.ts +21 -0
- package/dist/service/s3/serve/api/sim-s3-api-xml-read.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-xml-read.js +64 -0
- package/dist/service/s3/serve/api/sim-s3-api-xml-read.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api.d.ts +29 -0
- package/dist/service/s3/serve/api/sim-s3-api.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api.js +60 -0
- package/dist/service/s3/serve/api/sim-s3-api.js.map +1 -0
- package/dist/service/s3/serve/sim-s3-rest-error-response.d.ts +8 -0
- package/dist/service/s3/serve/sim-s3-rest-error-response.d.ts.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-error-response.js +15 -10
- package/dist/service/s3/serve/sim-s3-rest-error-response.js.map +1 -1
- package/dist/service/s3/sim-s3-operations.d.ts +55 -0
- package/dist/service/s3/sim-s3-operations.d.ts.map +1 -0
- package/dist/service/s3/sim-s3-operations.js +94 -0
- package/dist/service/s3/sim-s3-operations.js.map +1 -0
- package/dist/service/s3/sim-s3.d.ts +6 -41
- package/dist/service/s3/sim-s3.d.ts.map +1 -1
- package/dist/service/s3/sim-s3.js +11 -79
- package/dist/service/s3/sim-s3.js.map +1 -1
- package/dist/service/sts/command/assume-role/assume-role.handler.d.ts +2 -2
- package/dist/service/sts/command/assume-role/assume-role.handler.d.ts.map +1 -1
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.command.d.ts +20 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.command.d.ts.map +1 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.command.js +2 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.command.js.map +1 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.handler.d.ts +37 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.handler.d.ts.map +1 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.handler.js +50 -0
- package/dist/service/sts/command/get-caller-identity/get-caller-identity.handler.js.map +1 -0
- package/dist/service/sts/command/get-caller-identity/sim-sts-caller-user-id.d.ts +15 -0
- package/dist/service/sts/command/get-caller-identity/sim-sts-caller-user-id.d.ts.map +1 -0
- package/dist/service/sts/command/get-caller-identity/sim-sts-caller-user-id.js +47 -0
- package/dist/service/sts/command/get-caller-identity/sim-sts-caller-user-id.js.map +1 -0
- package/dist/service/sts/sdk/sim-sts-sdk-command-router.d.ts.map +1 -1
- package/dist/service/sts/sdk/sim-sts-sdk-command-router.js +4 -0
- package/dist/service/sts/sdk/sim-sts-sdk-command-router.js.map +1 -1
- package/dist/service/sts/serve/sim-sts-api.d.ts +24 -0
- package/dist/service/sts/serve/sim-sts-api.d.ts.map +1 -0
- package/dist/service/sts/serve/sim-sts-api.js +56 -0
- package/dist/service/sts/serve/sim-sts-api.js.map +1 -0
- package/dist/service/sts/serve/sim-sts-query-request.d.ts +19 -0
- package/dist/service/sts/serve/sim-sts-query-request.d.ts.map +1 -0
- package/dist/service/sts/serve/sim-sts-query-request.js +27 -0
- package/dist/service/sts/serve/sim-sts-query-request.js.map +1 -0
- package/dist/service/sts/serve/sim-sts-query-response.d.ts +15 -0
- package/dist/service/sts/serve/sim-sts-query-response.d.ts.map +1 -0
- package/dist/service/sts/serve/sim-sts-query-response.js +42 -0
- package/dist/service/sts/serve/sim-sts-query-response.js.map +1 -0
- package/dist/service/sts/sim-sts.d.ts +9 -2
- package/dist/service/sts/sim-sts.d.ts.map +1 -1
- package/dist/service/sts/sim-sts.js +11 -0
- package/dist/service/sts/sim-sts.js.map +1 -1
- package/dist/util/xml/xml-document.d.ts +42 -0
- package/dist/util/xml/xml-document.d.ts.map +1 -0
- package/dist/util/xml/xml-document.js +97 -0
- package/dist/util/xml/xml-document.js.map +1 -0
- package/dist/util/xml/xml-writer.d.ts +28 -0
- package/dist/util/xml/xml-writer.d.ts.map +1 -0
- package/dist/util/xml/xml-writer.js +53 -0
- package/dist/util/xml/xml-writer.js.map +1 -0
- package/package.json +2 -2
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts +0 -27
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js +0 -78
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts.map +0 -1
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SimAwsCaller } from "../../service/aws/caller/sim-aws-caller.js";
|
|
2
2
|
import type { SimSdkCommandContext } from "./sim-sdk-command-router.type.js";
|
|
3
3
|
/**
|
|
4
4
|
* Simulated service request options carrying the resolved caller.
|
|
@@ -7,7 +7,7 @@ import type { SimSdkCommandContext } from "./sim-sdk-command-router.type.js";
|
|
|
7
7
|
* such as SimS3RequestOptions and SimDynamoDbRequestOptions.
|
|
8
8
|
*/
|
|
9
9
|
export interface SimSdkCallerOptions {
|
|
10
|
-
readonly caller:
|
|
10
|
+
readonly caller: SimAwsCaller;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Build service request options from a routed Command's context, so service
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sdk-caller-options.d.ts","sourceRoot":"","sources":["../../../src/sdk/router/sim-sdk-caller-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"sim-sdk-caller-options.d.ts","sourceRoot":"","sources":["../../../src/sdk/router/sim-sdk-caller-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;CAC/B;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,oBAAoB,GAC5B,mBAAmB,GAAG,SAAS,CAEjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SimAwsCaller } from "../../service/aws/caller/sim-aws-caller.js";
|
|
2
2
|
/**
|
|
3
3
|
* Minimal structural SDK Command shape as received by interception.
|
|
4
4
|
*/
|
|
@@ -15,8 +15,13 @@ export interface SimSdkCommandContext {
|
|
|
15
15
|
* Routes pass it through to the simulated service operation so IAM
|
|
16
16
|
* authorization applies to the caller rather than the Account root
|
|
17
17
|
* default.
|
|
18
|
+
*
|
|
19
|
+
* A caller authenticated elsewhere, such as the SigV4 signature on a served
|
|
20
|
+
* request, arrives already resolved and carries the identity whose policies
|
|
21
|
+
* apply alongside the principal the request is attributed to. An assumed-role
|
|
22
|
+
* session needs that split, because its session ARN owns no policies.
|
|
18
23
|
*/
|
|
19
|
-
readonly caller?:
|
|
24
|
+
readonly caller?: SimAwsCaller | undefined;
|
|
20
25
|
}
|
|
21
26
|
/**
|
|
22
27
|
* Route one intercepted SDK Command to a simulated service operation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sdk-command-router.type.d.ts","sourceRoot":"","sources":["../../../src/sdk/router/sim-sdk-command-router.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"sim-sdk-command-router.type.d.ts","sourceRoot":"","sources":["../../../src/sdk/router/sim-sdk-command-router.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAC/B,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,oBAAoB,KAC1B,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtB;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,qBAAqB,IAAI,SAAS,MAAM,EAAE,CAAC;IAE3C;;;OAGG;IACH,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAAC;CAC5D"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SimAwsCaller } from "../service/aws/caller/sim-aws-caller.js";
|
|
1
2
|
import type { SimAws } from "../service/aws/sim-aws.js";
|
|
2
3
|
/**
|
|
3
4
|
* Dispatches intercepted SDK Commands to simulated AWS service operations.
|
|
@@ -11,8 +12,13 @@ export declare class SimSdkCommandDispatcher {
|
|
|
11
12
|
constructor(simAws: SimAws);
|
|
12
13
|
/**
|
|
13
14
|
* Route one intercepted SDK Command to a simulated service operation.
|
|
15
|
+
*
|
|
16
|
+
* A caller authenticated somewhere else, such as by the SigV4 signature on a
|
|
17
|
+
* served request, is passed in and takes precedence over the ambient one. It
|
|
18
|
+
* carries the identity whose policies apply alongside the principal the
|
|
19
|
+
* request is attributed to, which the ambient caller has no way to express.
|
|
14
20
|
*/
|
|
15
|
-
dispatch(command: object, client: unknown, commandNames: ReadonlySet<string> | undefined): Promise<unknown>;
|
|
21
|
+
dispatch(command: object, client: unknown, commandNames: ReadonlySet<string> | undefined, authenticatedCaller?: SimAwsCaller): Promise<unknown>;
|
|
16
22
|
/**
|
|
17
23
|
* Get the ambient SimAws.runAs caller for this dispatcher's SimAws
|
|
18
24
|
* instance, if one is set.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sdk-command-dispatcher.d.ts","sourceRoot":"","sources":["../../src/sdk/sim-sdk-command-dispatcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-sdk-command-dispatcher.d.ts","sourceRoot":"","sources":["../../src/sdk/sim-sdk-command-dispatcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAWxD;;;;;;GAMG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC,YAAY,MAAM,EAAE,MAAM,EAEzB;IAED;;;;;;;OAOG;IACG,QAAQ,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,EAC7C,mBAAmB,CAAC,EAAE,YAAY,GACjC,OAAO,CAAC,OAAO,CAAC,CAkClB;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa;CAGtB"}
|
|
@@ -17,15 +17,20 @@ export class SimSdkCommandDispatcher {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Route one intercepted SDK Command to a simulated service operation.
|
|
20
|
+
*
|
|
21
|
+
* A caller authenticated somewhere else, such as by the SigV4 signature on a
|
|
22
|
+
* served request, is passed in and takes precedence over the ambient one. It
|
|
23
|
+
* carries the identity whose policies apply alongside the principal the
|
|
24
|
+
* request is attributed to, which the ambient caller has no way to express.
|
|
20
25
|
*/
|
|
21
|
-
async dispatch(command, client, commandNames) {
|
|
26
|
+
async dispatch(command, client, commandNames, authenticatedCaller) {
|
|
22
27
|
const commandName = command.constructor.name;
|
|
23
28
|
if (commandNames !== undefined && !commandNames.has(commandName)) {
|
|
24
29
|
throw new SimSdkCommandNotInterceptedError(`SDK Command ${commandName} is not in this interception's Command ` +
|
|
25
30
|
`allow list`);
|
|
26
31
|
}
|
|
27
32
|
const serviceId = simSdkClientServiceId(client);
|
|
28
|
-
const caller = this.ambientCaller();
|
|
33
|
+
const caller = authenticatedCaller ?? this.ambientCaller();
|
|
29
34
|
const accountId = callerAccountId(caller) ?? this.simAws.defaultAccountId;
|
|
30
35
|
const regionName = await simSdkClientRegionName(client, this.simAws.defaultRegionName);
|
|
31
36
|
const router = resolveSimSdkCommandRouter(this.simAws, serviceId, accountId, regionName);
|
|
@@ -52,11 +57,18 @@ export class SimSdkCommandDispatcher {
|
|
|
52
57
|
}
|
|
53
58
|
/**
|
|
54
59
|
* Resolve the AWS Account a caller belongs to, when it identifies one.
|
|
60
|
+
*
|
|
61
|
+
* Bare credentials name no Account without the IAM registry that would
|
|
62
|
+
* authenticate them, so they resolve to none here and the default Account
|
|
63
|
+
* applies, as it does for a Command sent with no caller at all.
|
|
55
64
|
*/
|
|
56
65
|
function callerAccountId(caller) {
|
|
57
|
-
if (caller === undefined) {
|
|
66
|
+
if (caller === undefined || caller.kind === "credentials") {
|
|
58
67
|
return undefined;
|
|
59
68
|
}
|
|
60
|
-
|
|
69
|
+
// The default principal is unreachable: a resolved caller carries its own,
|
|
70
|
+
// and a bare principal is its own.
|
|
71
|
+
const anonymous = { kind: "anonymous" };
|
|
72
|
+
return new SimAwsCallerResolver().resolve(caller, anonymous).accountId;
|
|
61
73
|
}
|
|
62
74
|
//# sourceMappingURL=sim-sdk-command-dispatcher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sdk-command-dispatcher.js","sourceRoot":"","sources":["../../src/sdk/sim-sdk-command-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-sdk-command-dispatcher.js","sourceRoot":"","sources":["../../src/sdk/sim-sdk-command-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAKxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAErF,OAAO,EACL,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,gCAAgC,EAChC,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAExF;;;;;;GAMG;AACH,MAAM,OAAO,uBAAuB;IACjB,MAAM,CAAS;IAEhC,Y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AAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvD,CAAC;CACF;AAED;;;;;;GAMG;AACH,SAAS,eAAe,CAAC,MAAgC;IACvD,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;QAC1D,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,2EAA2E;IAC3E,mCAAmC;IACnC,MAAM,SAAS,GAAoB,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAEzD,OAAO,IAAI,oBAAoB,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,SAAS,CAAC;AACzE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SimAwsCaller } from "../../service/aws/caller/sim-aws-caller.js";
|
|
1
2
|
import type { AwsRegionName } from "../../service/aws/sim-aws-region.js";
|
|
2
3
|
import type { SimAws } from "../../service/aws/sim-aws.js";
|
|
3
4
|
import type { SimSdkWireRequest, SimSdkWireResponse } from "./sim-sdk-wire.types.js";
|
|
@@ -31,12 +32,12 @@ export declare class SimSdkWireDispatcher {
|
|
|
31
32
|
* it back into the exception the calling code expects to catch. Only a
|
|
32
33
|
* request that cannot be routed at all is thrown, since there is no response
|
|
33
34
|
* that would mean what happened.
|
|
35
|
+
*
|
|
36
|
+
* A caller is passed when something has already authenticated the request,
|
|
37
|
+
* as a served endpoint does by verifying its signature. Without one the
|
|
38
|
+
* ambient run-as caller applies, which is what a sim Lambda's outbound call
|
|
39
|
+
* relies on.
|
|
34
40
|
*/
|
|
35
|
-
dispatch(request: SimSdkWireRequest): Promise<SimSdkWireResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* Route a request to the operation it names, in the Region it was signed
|
|
38
|
-
* for or, unsigned, the Region of the code that sent it.
|
|
39
|
-
*/
|
|
40
|
-
private route;
|
|
41
|
+
dispatch(request: SimSdkWireRequest, caller?: SimAwsCaller): Promise<SimSdkWireResponse>;
|
|
41
42
|
}
|
|
42
43
|
//# sourceMappingURL=sim-sdk-wire-dispatcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sdk-wire-dispatcher.d.ts","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-sdk-wire-dispatcher.d.ts","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAgB3D,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;;GAaG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0B;IACrD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;IAE3C;;;OAGG;IACH,YAAY,MAAM,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,aAAa,EAG7D;IAED;;;;;;;;;;;;;OAaG;IACG,QAAQ,CACZ,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,YAAY,GACpB,OAAO,CAAC,kBAAkB,CAAC,CA6B7B;CACF"}
|
|
@@ -37,27 +37,28 @@ export class SimSdkWireDispatcher {
|
|
|
37
37
|
* it back into the exception the calling code expects to catch. Only a
|
|
38
38
|
* request that cannot be routed at all is thrown, since there is no response
|
|
39
39
|
* that would mean what happened.
|
|
40
|
+
*
|
|
41
|
+
* A caller is passed when something has already authenticated the request,
|
|
42
|
+
* as a served endpoint does by verifying its signature. Without one the
|
|
43
|
+
* ambient run-as caller applies, which is what a sim Lambda's outbound call
|
|
44
|
+
* relies on.
|
|
40
45
|
*/
|
|
41
|
-
async dispatch(request) {
|
|
46
|
+
async dispatch(request, caller) {
|
|
42
47
|
const operation = readSimSdkWireOperation(request);
|
|
43
48
|
if (operation === undefined) {
|
|
44
49
|
throw simSdkUnbridgedWireRequest(request);
|
|
45
50
|
}
|
|
51
|
+
// The operation runs in the Region it was signed for or, unsigned, the
|
|
52
|
+
// Region of the code that sent it.
|
|
53
|
+
const scope = readSimSdkWireCredentialScope(request);
|
|
46
54
|
const contentType = request.headers["content-type"];
|
|
47
55
|
try {
|
|
48
|
-
|
|
56
|
+
const output = await this.dispatcher.dispatch(makeSimSdkWireCommand(operation.commandName, readSimSdkWireInput(request.body)), makeSimSdkWireClient(operation.serviceId, scope?.regionName ?? this.regionName), undefined, caller);
|
|
57
|
+
return simSdkWireOutputResponse(output, contentType);
|
|
49
58
|
}
|
|
50
59
|
catch (error) {
|
|
51
60
|
return simSdkWireErrorResponse(error, contentType);
|
|
52
61
|
}
|
|
53
62
|
}
|
|
54
|
-
/**
|
|
55
|
-
* Route a request to the operation it names, in the Region it was signed
|
|
56
|
-
* for or, unsigned, the Region of the code that sent it.
|
|
57
|
-
*/
|
|
58
|
-
async route(request, operation) {
|
|
59
|
-
const scope = readSimSdkWireCredentialScope(request);
|
|
60
|
-
return await this.dispatcher.dispatch(makeSimSdkWireCommand(operation.commandName, readSimSdkWireInput(request.body)), makeSimSdkWireClient(operation.serviceId, scope?.regionName ?? this.regionName), undefined);
|
|
61
|
-
}
|
|
62
63
|
}
|
|
63
64
|
//# sourceMappingURL=sim-sdk-wire-dispatcher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sdk-wire-dispatcher.js","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-dispatcher.ts"],"names":[],"mappings":"
|
|
1
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AqB,CACnB,SAAS,CAAC,WAAW,EACrB,mBAAmB,CAAC,OAAO,CAAC,IAAI,CAAC,CAClC,EACD,oBAAoB,CAClB,SAAS,CAAC,SAAS,EACnB,KAAK,EAAE,UAAU,IAAI,IAAI,CAAC,UAAU,CACrC,EACD,SAAS,EACT,MAAM,CACP,CAAC;YAEF,OAAO,wBAAwB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QACvD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,uBAAuB,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import type { SimSdkWireRequest } from "./sim-sdk-wire.types.js";
|
|
2
|
+
/**
|
|
3
|
+
* The part of a wire request the two readers below need.
|
|
4
|
+
*
|
|
5
|
+
* An AWS API request says which operation it is and what it was signed for in
|
|
6
|
+
* its headers, so neither question needs the body. That leaves both of them
|
|
7
|
+
* answerable for a request whose body has not been read, which is what a
|
|
8
|
+
* client holding an outgoing request has.
|
|
9
|
+
*/
|
|
10
|
+
type SimSdkWireRequestHeaders = Pick<SimSdkWireRequest, "headers">;
|
|
2
11
|
/**
|
|
3
12
|
* Which simulated service operation a wire request is asking for.
|
|
4
13
|
*/
|
|
@@ -15,7 +24,7 @@ export interface SimSdkWireOperation {
|
|
|
15
24
|
* protocol request addressed to a service with no simulated equivalent, since
|
|
16
25
|
* neither can be answered from the simulation.
|
|
17
26
|
*/
|
|
18
|
-
export declare function readSimSdkWireOperation(request:
|
|
27
|
+
export declare function readSimSdkWireOperation(request: SimSdkWireRequestHeaders): SimSdkWireOperation | undefined;
|
|
19
28
|
/**
|
|
20
29
|
* The credential scope of a SigV4-signed request: the Region and the signing
|
|
21
30
|
* service name the request was signed for.
|
|
@@ -33,5 +42,6 @@ export interface SimSdkWireCredentialScope {
|
|
|
33
42
|
* pointed anywhere, and it is present whatever protocol the service speaks, so
|
|
34
43
|
* an unsupported request can still say which service it was for.
|
|
35
44
|
*/
|
|
36
|
-
export declare function readSimSdkWireCredentialScope(request:
|
|
45
|
+
export declare function readSimSdkWireCredentialScope(request: SimSdkWireRequestHeaders): SimSdkWireCredentialScope | undefined;
|
|
46
|
+
export {};
|
|
37
47
|
//# sourceMappingURL=sim-sdk-wire-operation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sdk-wire-operation.d.ts","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-sdk-wire-operation.d.ts","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAyCjE;;;;;;;GAOG;AACH,KAAK,wBAAwB,GAAG,IAAI,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,6EAA6E;IAC7E,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,sEAAsE;IACtE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,wBAAwB,GAChC,mBAAmB,GAAG,SAAS,CAmBjC;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,wBAAwB,GAChC,yBAAyB,GAAG,SAAS,CAYvC"}
|
|
@@ -29,6 +29,7 @@ const jsonProtocolServiceIds = new Map([
|
|
|
29
29
|
["CertificateManager", "ACM"],
|
|
30
30
|
["DynamoDBStreams_20120810", "DynamoDB Streams"],
|
|
31
31
|
["DynamoDB_20120810", "DynamoDB"],
|
|
32
|
+
["GraniteServiceVersion20100801", "CloudWatch"],
|
|
32
33
|
["Logs_20140328", "CloudWatch Logs"],
|
|
33
34
|
["RekognitionService", "Rekognition"],
|
|
34
35
|
["TrentService", "KMS"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sdk-wire-operation.js","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-operation.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,mBAAmB,GAAG,cAAc,CAAC;AAE3C;;;;;;;;;;;;;GAaG;AACH,MAAM,sBAAsB,GAAgC,IAAI,GAAG,CAAC;IAClE,CAAC,mCAAmC,EAAE,2BAA2B,CAAC;IAClE,CAAC,WAAW,EAAE,aAAa,CAAC;IAC5B,CAAC,oCAAoC,EAAE,KAAK,CAAC;IAC7C,CAAC,WAAW,EAAE,KAAK,CAAC;IACpB,CAAC,WAAW,EAAE,KAAK,CAAC;IACpB,CAAC,oBAAoB,EAAE,KAAK,CAAC;IAC7B,CAAC,0BAA0B,EAAE,kBAAkB,CAAC;IAChD,CAAC,mBAAmB,EAAE,UAAU,CAAC;IACjC,CAAC,eAAe,EAAE,iBAAiB,CAAC;IACpC,CAAC,oBAAoB,EAAE,aAAa,CAAC;IACrC,CAAC,cAAc,EAAE,KAAK,CAAC;IACvB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;CACtC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-sdk-wire-operation.js","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-operation.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,mBAAmB,GAAG,cAAc,CAAC;AAE3C;;;;;;;;;;;;;GAaG;AACH,MAAM,sBAAsB,GAAgC,IAAI,GAAG,CAAC;IAClE,CAAC,mCAAmC,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,CAAC;AAC/D,CAAC;AAWD;;;;;;;;GAQG;AACH,MAAM,UAAU,6BAA6B,CAC3C,OAAiC;IAEjC,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IACvD,MAAM,UAAU,GAAG,qCAAqC,CAAC,IAAI,CAC3D,aAAa,IAAI,EAAE,CACpB,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC;IAErB,MAAM,CAAC,EAAE,UAAU,EAAE,WAAW,CAAC,GAAG,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACjE,IAAI,UAAU,KAAK,SAAS,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC1D,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;AACrC,CAAC"}
|
|
@@ -25,8 +25,4 @@ export interface SimSdkWireResponse {
|
|
|
25
25
|
readonly headers: Readonly<Record<string, string>>;
|
|
26
26
|
readonly body: Uint8Array;
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Answer an AWS API request from a simulated AWS environment.
|
|
30
|
-
*/
|
|
31
|
-
export type SimSdkWireHandler = (request: SimSdkWireRequest) => Promise<SimSdkWireResponse>;
|
|
32
28
|
//# sourceMappingURL=sim-sdk-wire.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-sdk-wire.types.d.ts","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire.types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;CAC3B
|
|
1
|
+
{"version":3,"file":"sim-sdk-wire.types.d.ts","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire.types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;CAC3B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { SimAws } from "../../../service/aws/sim-aws.js";
|
|
2
|
+
interface SimAwsApiEndpointProperties {
|
|
3
|
+
readonly simAws: SimAws;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The general AWS service API, served on one endpoint.
|
|
7
|
+
*
|
|
8
|
+
* Every other served endpoint is routed by hostname, because every other
|
|
9
|
+
* served endpoint belongs to a resource that was issued a hostname. A client
|
|
10
|
+
* given `--endpoint-url` or `AWS_ENDPOINT_URL` sends `Host: localhost:<port>`
|
|
11
|
+
* for every service, so there is no hostname to route on. What the request
|
|
12
|
+
* does carry is its SigV4 credential scope, which names the service and the
|
|
13
|
+
* Region it was signed for, and a client cannot alter either without
|
|
14
|
+
* invalidating the signature.
|
|
15
|
+
*
|
|
16
|
+
* So this endpoint routes on the credential scope. One endpoint URL then
|
|
17
|
+
* serves every simulated service, which is the shape `--endpoint-url` wants.
|
|
18
|
+
*
|
|
19
|
+
* The scope also says which protocol to read the request with. Most simulated
|
|
20
|
+
* services speak the AWS JSON protocol and name their operation in a header.
|
|
21
|
+
* S3 speaks REST-XML and STS speaks Query, and each names its operation
|
|
22
|
+
* somewhere else, so each is read by an endpoint of its own.
|
|
23
|
+
*/
|
|
24
|
+
export declare class SimAwsApiEndpoint {
|
|
25
|
+
private readonly simAws;
|
|
26
|
+
private readonly dispatcher;
|
|
27
|
+
private readonly s3;
|
|
28
|
+
private readonly sts;
|
|
29
|
+
constructor(properties: SimAwsApiEndpointProperties);
|
|
30
|
+
/**
|
|
31
|
+
* Answer an AWS service API request, or decline one that is not signed.
|
|
32
|
+
*
|
|
33
|
+
* An unsigned request says nothing about which service it is for, so it is
|
|
34
|
+
* declined rather than guessed at, and the caller falls back to whatever it
|
|
35
|
+
* does for a hostname the simulation serves nothing at.
|
|
36
|
+
*/
|
|
37
|
+
handle(request: Request): Promise<Response | undefined>;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=sim-aws-api-endpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-aws-api-endpoint.d.ts","sourceRoot":"","sources":["../../../../src/serve/http/api/sim-aws-api-endpoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAK9D,UAAU,2BAA2B;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AASD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAmB;IACtC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAoB;IAExC,YAAY,UAAU,EAAE,2BAA2B,EAKlD;IAED;;;;;;OAMG;IACG,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAuD5D;CACF"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { SimSdkUnbridgedWireRequestError } from "../../../sdk/error/sim-sdk.error.js";
|
|
2
|
+
import { SimSdkWireDispatcher } from "../../../sdk/wire/sim-sdk-wire-dispatcher.js";
|
|
3
|
+
import { readSimSdkWireCredentialScope } from "../../../sdk/wire/sim-sdk-wire-operation.js";
|
|
4
|
+
import { SimS3ApiEndpoint } from "../../../service/s3/serve/api/sim-s3-api.js";
|
|
5
|
+
import { SimStsApiEndpoint } from "../../../service/sts/serve/sim-sts-api.js";
|
|
6
|
+
import { SimAwsReceivedRequest } from "../request/sim-aws-received-request.js";
|
|
7
|
+
/**
|
|
8
|
+
* The SigV4 signing names of the services whose protocol is read by an
|
|
9
|
+
* endpoint of its own rather than by the AWS JSON protocol dispatcher.
|
|
10
|
+
*/
|
|
11
|
+
const s3SigningName = "s3";
|
|
12
|
+
const stsSigningName = "sts";
|
|
13
|
+
/**
|
|
14
|
+
* The general AWS service API, served on one endpoint.
|
|
15
|
+
*
|
|
16
|
+
* Every other served endpoint is routed by hostname, because every other
|
|
17
|
+
* served endpoint belongs to a resource that was issued a hostname. A client
|
|
18
|
+
* given `--endpoint-url` or `AWS_ENDPOINT_URL` sends `Host: localhost:<port>`
|
|
19
|
+
* for every service, so there is no hostname to route on. What the request
|
|
20
|
+
* does carry is its SigV4 credential scope, which names the service and the
|
|
21
|
+
* Region it was signed for, and a client cannot alter either without
|
|
22
|
+
* invalidating the signature.
|
|
23
|
+
*
|
|
24
|
+
* So this endpoint routes on the credential scope. One endpoint URL then
|
|
25
|
+
* serves every simulated service, which is the shape `--endpoint-url` wants.
|
|
26
|
+
*
|
|
27
|
+
* The scope also says which protocol to read the request with. Most simulated
|
|
28
|
+
* services speak the AWS JSON protocol and name their operation in a header.
|
|
29
|
+
* S3 speaks REST-XML and STS speaks Query, and each names its operation
|
|
30
|
+
* somewhere else, so each is read by an endpoint of its own.
|
|
31
|
+
*/
|
|
32
|
+
export class SimAwsApiEndpoint {
|
|
33
|
+
simAws;
|
|
34
|
+
dispatcher;
|
|
35
|
+
s3;
|
|
36
|
+
sts;
|
|
37
|
+
constructor(properties) {
|
|
38
|
+
this.simAws = properties.simAws;
|
|
39
|
+
this.dispatcher = new SimSdkWireDispatcher(properties.simAws);
|
|
40
|
+
this.s3 = new SimS3ApiEndpoint({ simAws: properties.simAws });
|
|
41
|
+
this.sts = new SimStsApiEndpoint({ simAws: properties.simAws });
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Answer an AWS service API request, or decline one that is not signed.
|
|
45
|
+
*
|
|
46
|
+
* An unsigned request says nothing about which service it is for, so it is
|
|
47
|
+
* declined rather than guessed at, and the caller falls back to whatever it
|
|
48
|
+
* does for a hostname the simulation serves nothing at.
|
|
49
|
+
*/
|
|
50
|
+
async handle(request) {
|
|
51
|
+
const received = await SimAwsReceivedRequest.receive(request);
|
|
52
|
+
const wireRequest = simAwsApiWireRequest(request, received.body);
|
|
53
|
+
const scope = readSimSdkWireCredentialScope(wireRequest);
|
|
54
|
+
if (scope === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
const caller = this.simAws.resolveRequestCaller(request, {
|
|
58
|
+
body: received.body,
|
|
59
|
+
expectedScope: {
|
|
60
|
+
serviceName: scope.signingName,
|
|
61
|
+
regionName: scope.regionName,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
// S3 states its operation in the method and path, and STS in a
|
|
65
|
+
// form-encoded field, so neither can be read by the header the AWS JSON
|
|
66
|
+
// protocol names its operation in.
|
|
67
|
+
const body = received.body ?? new Uint8Array();
|
|
68
|
+
if (scope.signingName === s3SigningName) {
|
|
69
|
+
return await this.s3.handle(request, body, caller.toCaller(), scope.regionName);
|
|
70
|
+
}
|
|
71
|
+
if (scope.signingName === stsSigningName) {
|
|
72
|
+
return await this.sts.handle(request, body, caller.toCaller(), scope.regionName);
|
|
73
|
+
}
|
|
74
|
+
let response;
|
|
75
|
+
try {
|
|
76
|
+
response = await this.dispatcher.dispatch(wireRequest, caller.toCaller());
|
|
77
|
+
}
|
|
78
|
+
catch (error) {
|
|
79
|
+
if (error instanceof SimSdkUnbridgedWireRequestError) {
|
|
80
|
+
return simAwsUnservedProtocolResponse(error);
|
|
81
|
+
}
|
|
82
|
+
throw error;
|
|
83
|
+
}
|
|
84
|
+
return new Response(response.body.length === 0 ? null : response.body, {
|
|
85
|
+
status: response.statusCode,
|
|
86
|
+
headers: { ...response.headers },
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Refuse a request whose protocol this endpoint cannot read.
|
|
92
|
+
*
|
|
93
|
+
* `501 Not Implemented` rather than a server error, because the two differ in
|
|
94
|
+
* a way the client acts on: an SDK retries a 500 and gives up on a 501. A
|
|
95
|
+
* request this endpoint will never understand is answered once, and the reason
|
|
96
|
+
* travels in the body for whoever reads the response.
|
|
97
|
+
*/
|
|
98
|
+
function simAwsUnservedProtocolResponse(error) {
|
|
99
|
+
return new Response(`${error.message}\n`, {
|
|
100
|
+
status: 501,
|
|
101
|
+
headers: { "content-type": "text/plain; charset=utf-8" },
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Read a received request as the AWS API request it is on the wire.
|
|
106
|
+
*
|
|
107
|
+
* The body is passed in already buffered, because SigV4 verification needs
|
|
108
|
+
* the same bytes and a request body can only be read once.
|
|
109
|
+
*/
|
|
110
|
+
function simAwsApiWireRequest(request, body) {
|
|
111
|
+
const url = new URL(request.url);
|
|
112
|
+
return {
|
|
113
|
+
method: request.method,
|
|
114
|
+
hostname: url.hostname,
|
|
115
|
+
path: `${url.pathname}${url.search}`,
|
|
116
|
+
headers: Object.fromEntries(request.headers),
|
|
117
|
+
body: body ?? new Uint8Array(),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=sim-aws-api-endpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-aws-api-endpoint.js","sourceRoot":"","sources":["../../../../src/serve/http/api/sim-aws-api-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAG5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAM/E;;;GAGG;AACH,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,cAAc,GAAG,KAAK,CAAC;AAE7B;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,iBAAiB;IACX,MAAM,CAAS;IACf,UAAU,CAAuB;IACjC,EAAE,CAAmB;IACrB,GAAG,CAAoB;IAExC,YAAY,UAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAoB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAC9D,IAAI,CAAC,E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OAAO,CAAC,OAAO,CAAC;QAC5C,IAAI,EAAE,IAAI,IAAI,IAAI,UAAU,EAAE;KAC/B,CAAC;AACJ,CAAC"}
|
|
@@ -9,6 +9,7 @@ export declare class SimAwsHttp {
|
|
|
9
9
|
private readonly simAws;
|
|
10
10
|
private readonly controllers;
|
|
11
11
|
private readonly authenticator;
|
|
12
|
+
private readonly apiEndpoint;
|
|
12
13
|
private readonly authFailureResponse;
|
|
13
14
|
private readonly hints;
|
|
14
15
|
constructor(properties?: SimAwsHttpProperties);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-aws-http.d.ts","sourceRoot":"","sources":["../../../src/serve/http/sim-aws-http.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-aws-http.d.ts","sourceRoot":"","sources":["../../../src/serve/http/sim-aws-http.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAQtD,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAmC;IAC/D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA6B;IAC3D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAoB;IAChD,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAmC;IACvE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA6B;IAEnD,YAAY,UAAU,GAAE,oBAAyB,EAMhD;IAED;;OAEG;IACG,KAAK,CACT,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,EAC7B,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,QAAQ,CAAC,CAEnB;IAED;;;;;;;OAOG;IACG,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAMvD;YAEa,YAAY;IAwC1B;;;;;;OAMG;YACW,WAAW;IAgBzB,OAAO,CAAC,mBAAmB;CAU5B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SimAwsServiceControllerContainer } from "../controller/container/sim-aws-service-controller-container.js";
|
|
2
2
|
import { SimAws } from "../../service/aws/sim-aws.js";
|
|
3
3
|
import { isSimAwsRequestAuthFailure } from "../../service/iam/request/error/sim-aws-request-auth.error.js";
|
|
4
|
+
import { SimAwsApiEndpoint } from "./api/sim-aws-api-endpoint.js";
|
|
4
5
|
import { SimAwsRequestAuthenticator } from "./request/sim-aws-request-authenticator.js";
|
|
5
6
|
import { SimAwsAuthFailureResponse } from "./response/sim-aws-auth-failure-response.js";
|
|
6
7
|
import { SimAwsResponseHints } from "./response/sim-aws-response-hints.js";
|
|
@@ -11,6 +12,7 @@ export class SimAwsHttp {
|
|
|
11
12
|
simAws;
|
|
12
13
|
controllers;
|
|
13
14
|
authenticator;
|
|
15
|
+
apiEndpoint;
|
|
14
16
|
authFailureResponse = new SimAwsAuthFailureResponse();
|
|
15
17
|
hints = new SimAwsResponseHints();
|
|
16
18
|
constructor(properties = {}) {
|
|
@@ -18,6 +20,7 @@ export class SimAwsHttp {
|
|
|
18
20
|
this.simAws = simAws;
|
|
19
21
|
this.controllers = new SimAwsServiceControllerContainer({ simAws });
|
|
20
22
|
this.authenticator = new SimAwsRequestAuthenticator({ simAws });
|
|
23
|
+
this.apiEndpoint = new SimAwsApiEndpoint({ simAws });
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
23
26
|
* Send a Fetch API request to simulated AWS.
|
|
@@ -46,6 +49,12 @@ export class SimAwsHttp {
|
|
|
46
49
|
}
|
|
47
50
|
const target = this.simAws.route53().resolveHttpHost(hostname);
|
|
48
51
|
if (target === undefined) {
|
|
52
|
+
// A signed AWS API request names its service in its credential scope
|
|
53
|
+
// and needs no hostname to route on.
|
|
54
|
+
const apiResponse = await this.apiEndpoint.handle(request);
|
|
55
|
+
if (apiResponse !== undefined) {
|
|
56
|
+
return apiResponse;
|
|
57
|
+
}
|
|
49
58
|
return new Response(`Unknown simulated AWS host ${hostname} \n`, {
|
|
50
59
|
status: 501,
|
|
51
60
|
headers: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-aws-http.js","sourceRoot":"","sources":["../../../src/serve/http/sim-aws-http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,iEAAiE,CAAC;AACnH,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,+DAA+D,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAM3E;;GAEG;AACH,MAAM,OAAO,UAAU;IACJ,MAAM,CAAS;IACf,WAAW,CAAmC;IAC9C,aAAa,CAA6B;IAC1C,mBAAmB,GAAG,IAAI,yBAAyB,EAAE,CAAC;IACtD,KAAK,GAAG,IAAI,mBAAmB,EAAE,CAAC;IAEnD,YAAY,UAAU,GAAyB,EAAE;QAC/C,MAAM,EAAE,MAAM,GAAG,IAAI,MAAM,EAAE,EAAE,GAAG,UAAU,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,IAAI,gCAAgC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QACpE,IAAI,CAAC,aAAa,GAAG,IAAI,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-aws-http.js","sourceRoot":"","sources":["../../../src/serve/http/sim-aws-http.ts"],"names":[],"mappings":"AAAA,OAAO,E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O,IAAI,QAAQ,CACjB,KAAK,YAAY,KAAK;gBACpB,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,IAAI;gBACtB,CAAC,CAAC,yBAAyB,EAC7B,EAAE,MAAM,EAAE,GAAG,EAAE,CAChB,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACK,KAAK,CAAC,WAAW,CACvB,MAA2B,EAC3B,OAAgB;QAEhB,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,YAAY,CAC1D,MAAM,EACN,OAAO,CACR,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEzE,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAC3B,MAAM,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC,EAC9C,cAAc,CAAC,MAAM,CACtB,CAAC;IACJ,CAAC;IAEO,mBAAmB,CAAC,OAAgB;QAC1C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACjC,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QAE5C,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC1B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-aws-account-region-service-builder.d.ts","sourceRoot":"","sources":["../../../../src/service/aws/factory/sim-aws-account-region-service-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAM5C,OAAO,EA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AC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA4C;IACvE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgC;IAC3D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAiB;IAC7C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuB;IACzD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA4B;IAE5D,YAAY,UAAU,EAAE,2CAA2C,EAOlE;IAED,wDAAwD;IACxD,mEAAmE;IACnE,oBAAoB,CAAC,KAAK,EAAE,4BAA4B,GAAG,iBAAiB,CAK3E;IAED;;;;;;;;OAQG;IACH,gBAAgB,CAAC,KAAK,EAAE,4BAA4B,GAAG,aAAa,CAKnE;IAED;;;;;OAKG;IACH,6BAA6B,CAC3B,KAAK,EAAE,4BAA4B,GAClC,0BAA0B,CAO5B;IAED,wDAAwD;IACxD,SAAS,CAAC,KAAK,EAAE,4BAA4B,GAAG,MAAM,CAKrD;IAED;;;;;OAKG;IACH,iBAAiB,CAAC,KAAK,EAAE,4BAA4B,GAAG,cAAc,CAKrE;IAED,oEAAoE;IACpE,UAAU,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAKvD;IAED,2DAA2D;IAC3D,YAAY,CAAC,KAAK,EAAE,4BAA4B,GAAG,SAAS,CAU3D;IAED;;;;;OAKG;IACH,iBAAiB,CAAC,KAAK,EAAE,4BAA4B,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"sim-aws-account-region-service-builder.d.ts","sourceRoot":"","sources":["../../../../src/service/aws/factory/sim-aws-account-region-service-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAM5C,OAAO,EAAE,iBAAiB,E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}
|
|
@@ -138,6 +138,7 @@ export class SimAwsAccountRegionServiceBuilder {
|
|
|
138
138
|
*/
|
|
139
139
|
createRekognition(scope) {
|
|
140
140
|
return new SimRekognition({
|
|
141
|
+
accountRegionScope: scope.accountRegionScope,
|
|
141
142
|
iam: this.accountServices.createIam(scope),
|
|
142
143
|
background: this.background,
|
|
143
144
|
images: simAwsRekognitionImages(this.simAws, scope),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-aws-account-region-service-builder.js","sourceRoot":"","sources":["../../../../src/service/aws/factory/sim-aws-account-region-service-builder.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,gCAAgC,EAChC,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,sEAAsE,CAAC;AACrH,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,M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C,OAAO,IAAI,MAAM,CAAC;YAChB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;YAC5C,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,MAAM,CACZ,KAAmC;QAEnC,OAAO,IAAI,CAAC,eAAe,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"sim-aws-account-region-service-builder.js","sourceRoot":"","sources":["../../../../src/service/aws/factory/sim-aws-account-region-service-builder.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,gCAAgC,EAChC,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,sEAAsE,CAAC;AACrH,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OA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;QAC3C,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAEtC,OAAO,IAAI,MAAM,CAAC;YAChB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;YAC5C,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,MAAM,CACZ,KAAmC;QAEnC,OAAO,IAAI,CAAC,eAAe,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -3,6 +3,7 @@ import { SimSqsEventSourceQueues } from "../../lambda/event-source/queue/sim-sqs
|
|
|
3
3
|
import { SimEcrLambdaContainerImages } from "../../lambda/function/code/image/sim-ecr-lambda-container-images.js";
|
|
4
4
|
import { SimS3LambdaCodeStore } from "../../lambda/function/code/store/sim-s3-lambda-code-store.js";
|
|
5
5
|
import { SimSdkLambdaVmModuleProvider } from "../../lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js";
|
|
6
|
+
import type { SimLambdaOutboundHttp } from "../../lambda/function/outbound/sim-lambda-outbound-http.js";
|
|
6
7
|
import type { SimLambdaUrlRegistry } from "../../lambda/registry/sim-lambda-url-registry.js";
|
|
7
8
|
import type { SimLogsServiceWriter } from "../../logs/write/sim-logs-service-writer.js";
|
|
8
9
|
import type { SimAwsScopedServiceRegistries } from "./sim-aws-scoped-service-registries.js";
|
|
@@ -25,6 +26,7 @@ interface SimAwsLambdaCollaborators {
|
|
|
25
26
|
readonly eventSourceQueues: SimSqsEventSourceQueues;
|
|
26
27
|
readonly eventSourceStreams: SimDynamoDbEventSourceStreams;
|
|
27
28
|
readonly vmSdkModuleProvider: SimSdkLambdaVmModuleProvider;
|
|
29
|
+
readonly outboundHttp: SimLambdaOutboundHttp;
|
|
28
30
|
readonly logs: SimLogsServiceWriter;
|
|
29
31
|
}
|
|
30
32
|
/**
|
|
@@ -47,6 +49,12 @@ interface SimAwsLambdaCollaborators {
|
|
|
47
49
|
* Handler output is recorded to the same Account/Region scope's simulated
|
|
48
50
|
* CloudWatch Logs, since that is where `/aws/lambda/<name>` lives for a
|
|
49
51
|
* function in this scope.
|
|
52
|
+
*
|
|
53
|
+
* The HTTP requests function code makes are answered by this whole SimAws
|
|
54
|
+
* rather than by this scope, because a hostname says which Account and Region
|
|
55
|
+
* serves it: an AWS API request carries the Region it was signed for, and
|
|
56
|
+
* every other hostname is resolved by simulated Route53, which is
|
|
57
|
+
* simulation-wide.
|
|
50
58
|
*/
|
|
51
59
|
export declare function simAwsLambdaCollaborators(properties: SimAwsLambdaCollaboratorsProperties): SimAwsLambdaCollaborators;
|
|
52
60
|
export {};
|