@kensio/yulin 1.18.2 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts +15 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-operation.js +54 -2
- package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -1
- package/dist/serve/http/api/sim-aws-api-endpoint.d.ts +3 -0
- package/dist/serve/http/api/sim-aws-api-endpoint.d.ts.map +1 -1
- package/dist/serve/http/api/sim-aws-api-endpoint.js +10 -2
- package/dist/serve/http/api/sim-aws-api-endpoint.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts +6 -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 +6 -0
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.js.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +5 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.d.ts +5 -4
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js +5 -4
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts +13 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js +30 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +9 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
- package/dist/service/cognito/command/auth/auth.command.d.ts +5 -0
- package/dist/service/cognito/command/auth/auth.command.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-answering-user.d.ts +22 -0
- package/dist/service/cognito/command/auth/sim-cognito-answering-user.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-answering-user.js +25 -0
- package/dist/service/cognito/command/auth/sim-cognito-answering-user.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js +9 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +6 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +23 -5
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts +7 -3
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js +9 -3
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow.d.ts +6 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow.js +6 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flows.d.ts +8 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flows.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flows.js +16 -2
- package/dist/service/cognito/command/auth/sim-cognito-auth-flows.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.d.ts +7 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.js +16 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-available-challenges.d.ts +35 -0
- package/dist/service/cognito/command/auth/sim-cognito-available-challenges.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-available-challenges.js +83 -0
- package/dist/service/cognito/command/auth/sim-cognito-available-challenges.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts +3 -0
- package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js +18 -0
- package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.d.ts +54 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.js +87 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.d.ts +55 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.js +64 -0
- package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts +2 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js +2 -2
- package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-response.d.ts +31 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-response.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-response.js +39 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-response.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js +7 -2
- package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.d.ts +44 -0
- package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.js +62 -0
- package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.d.ts +30 -0
- package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.js +36 -0
- package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.js.map +1 -0
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +0 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +1 -0
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js.map +1 -1
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts +1 -0
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts +22 -0
- package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts +4 -4
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +4 -4
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts +6 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js +2 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.d.ts +65 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.d.ts.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.js +71 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.js.map +1 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts +16 -7
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js +26 -7
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-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 +9 -0
- package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-page.d.ts +10 -0
- package/dist/service/cognito/command/sim-cognito-page.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-page.js +11 -7
- package/dist/service/cognito/command/sim-cognito-page.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.d.ts +49 -0
- package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.js +88 -0
- package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.js.map +1 -0
- package/dist/service/cognito/command/user/web-authn.command.d.ts +87 -0
- package/dist/service/cognito/command/user/web-authn.command.d.ts.map +1 -0
- package/dist/service/cognito/command/user/web-authn.command.js +2 -0
- package/dist/service/cognito/command/user/web-authn.command.js.map +1 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts +4 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js +4 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts +5 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js +5 -4
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +4 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +9 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
- package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts +2 -3
- package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts +24 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito-managed-login.error.js +37 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.js.map +1 -1
- package/dist/service/cognito/error/sim-cognito-web-authn.error.d.ts +56 -0
- package/dist/service/cognito/error/sim-cognito-web-authn.error.d.ts.map +1 -0
- package/dist/service/cognito/error/sim-cognito-web-authn.error.js +66 -0
- package/dist/service/cognito/error/sim-cognito-web-authn.error.js.map +1 -0
- package/dist/service/cognito/index.d.ts +9 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +7 -0
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts +2 -2
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js +4 -2
- package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.d.ts +11 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.d.ts.map +1 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.js +28 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +4 -2
- 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 +9 -3
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -1
- package/dist/service/cognito/serve/page/sim-cognito-passkey-page.d.ts +23 -0
- package/dist/service/cognito/serve/page/sim-cognito-passkey-page.d.ts.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-passkey-page.js +36 -0
- package/dist/service/cognito/serve/page/sim-cognito-passkey-page.js.map +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts +13 -1
- 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 +24 -2
- package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -1
- package/dist/service/cognito/sim-cognito-user-factors.d.ts +25 -0
- package/dist/service/cognito/sim-cognito-user-factors.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-user-factors.js +37 -0
- package/dist/service/cognito/sim-cognito-user-factors.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts +33 -2
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js +27 -12
- package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +5 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js +12 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +10 -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 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.d.ts +27 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.js +55 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +6 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +6 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +6 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +7 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
- package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.d.ts +16 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.js +32 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.js.map +1 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts +16 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js +29 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js.map +1 -1
- package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.d.ts +46 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.js +73 -0
- package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-password-policy.d.ts +1 -9
- package/dist/service/cognito/user-pool/sim-cognito-password-policy.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-password-policy.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.d.ts +60 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.js +100 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +11 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +12 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +48 -69
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +58 -73
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +13 -18
- 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 +23 -24
- package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.d.ts +73 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.js +113 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.d.ts +22 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.js +53 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.d.ts +15 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.js +68 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.d.ts +33 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.js +67 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.d.ts +24 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.js +45 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.d.ts +28 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.js +41 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.d.ts +69 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.js +69 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.d.ts +39 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.js +90 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.d.ts +111 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.js +2 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.d.ts +37 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.js +39 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.d.ts +21 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.js +45 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.js.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.d.ts +52 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.js +98 -0
- package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.js.map +1 -0
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.d.ts +5 -4
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.d.ts.map +1 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.js +17 -4
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.js.map +1 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.d.ts +8 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.d.ts.map +1 -1
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.js +10 -3
- package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.js.map +1 -1
- package/dist/service/iam/sigv4/sim-iam-sigv4-signature-check.js +1 -1
- package/dist/service/iam/sigv4/sim-iam-sigv4-signature-check.js.map +1 -1
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.d.ts +26 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.js +32 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.js.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.d.ts +40 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.js +42 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.js.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.d.ts +12 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.js +26 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.js.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.d.ts +13 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.js +20 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.js.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.d.ts +26 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.d.ts.map +1 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.js +47 -0
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.js.map +1 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.d.ts +20 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.d.ts.map +1 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.js +29 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.js.map +1 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.d.ts +3 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.d.ts.map +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.js +4 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.js.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js +5 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts +1 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js +8 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.d.ts +35 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.d.ts.map +1 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.js +73 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.js.map +1 -0
- package/dist/service/lambda/command/create-function/create-function-input.d.ts +1 -0
- package/dist/service/lambda/command/create-function/create-function-input.d.ts.map +1 -1
- package/dist/service/lambda/command/create-function/create-function-input.js +2 -0
- package/dist/service/lambda/command/create-function/create-function-input.js.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.command.d.ts +2 -0
- package/dist/service/lambda/command/create-function/create-function.command.d.ts.map +1 -1
- package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts +5 -1
- package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/delete-function/delete-function.handler.js +5 -1
- package/dist/service/lambda/command/delete-function/delete-function.handler.js.map +1 -1
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.d.ts +24 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.d.ts.map +1 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.js +5 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.js.map +1 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.d.ts +24 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.js +27 -0
- package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.js.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.d.ts +29 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.js +39 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.js.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.d.ts +32 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.d.ts.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.js +62 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.js.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.d.ts +49 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.d.ts.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.js +44 -0
- package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.js.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.d.ts +49 -0
- package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.d.ts.map +1 -0
- package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.js +49 -0
- package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.js.map +1 -0
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +4 -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/command/get-function-event-invoke-config/get-function-event-invoke-config.command.d.ts +25 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.d.ts.map +1 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.js +5 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.js.map +1 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.d.ts +23 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.js +27 -0
- package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.js.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.d.ts +31 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.d.ts.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.js +24 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.js.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.d.ts +43 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.d.ts.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.js +64 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.js.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.d.ts +26 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.d.ts.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.js +33 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.js.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.d.ts +63 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.d.ts.map +1 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.js +88 -0
- package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.js.map +1 -0
- package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts +10 -3
- package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-dispatcher.js +16 -17
- package/dist/service/lambda/command/invoke/invoke-dispatcher.js.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-payload.d.ts +16 -0
- package/dist/service/lambda/command/invoke/invoke-payload.d.ts.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-payload.js +14 -4
- package/dist/service/lambda/command/invoke/invoke-payload.js.map +1 -1
- package/dist/service/lambda/command/invoke/invoke.handler.d.ts +4 -0
- package/dist/service/lambda/command/invoke/invoke.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/invoke/invoke.handler.js +6 -2
- package/dist/service/lambda/command/invoke/invoke.handler.js.map +1 -1
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.d.ts +28 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.d.ts.map +1 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.js +5 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.js.map +1 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.d.ts +23 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.js +31 -0
- package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.js.map +1 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.d.ts +31 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.d.ts.map +1 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.js +5 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.js.map +1 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.d.ts +24 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.js +32 -0
- package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.js.map +1 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts +5 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts.map +1 -1
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js +2 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js.map +1 -1
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts +6 -4
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts.map +1 -1
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.d.ts +30 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.js +5 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.js.map +1 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.d.ts +25 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.js +33 -0
- package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.js.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.d.ts +16 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.d.ts.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.js +31 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.js.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.d.ts +13 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.d.ts.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.js +25 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.js.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.d.ts +15 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.d.ts.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.js +25 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.js.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.d.ts +15 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.d.ts.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.js +2 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.js.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.d.ts +15 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.d.ts.map +1 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.js +23 -0
- package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.js.map +1 -0
- package/dist/service/lambda/destination/sim-aws-lambda-destinations.d.ts +38 -0
- package/dist/service/lambda/destination/sim-aws-lambda-destinations.d.ts.map +1 -0
- package/dist/service/lambda/destination/sim-aws-lambda-destinations.js +78 -0
- package/dist/service/lambda/destination/sim-aws-lambda-destinations.js.map +1 -0
- package/dist/service/lambda/destination/sim-lambda-destination-arn.d.ts +53 -0
- package/dist/service/lambda/destination/sim-lambda-destination-arn.d.ts.map +1 -0
- package/dist/service/lambda/destination/sim-lambda-destination-arn.js +122 -0
- package/dist/service/lambda/destination/sim-lambda-destination-arn.js.map +1 -0
- package/dist/service/lambda/destination/sim-lambda-destination-record.d.ts +53 -0
- package/dist/service/lambda/destination/sim-lambda-destination-record.d.ts.map +1 -0
- package/dist/service/lambda/destination/sim-lambda-destination-record.js +26 -0
- package/dist/service/lambda/destination/sim-lambda-destination-record.js.map +1 -0
- package/dist/service/lambda/destination/sim-lambda-destination-targets.d.ts +49 -0
- package/dist/service/lambda/destination/sim-lambda-destination-targets.d.ts.map +1 -0
- package/dist/service/lambda/destination/sim-lambda-destination-targets.js +25 -0
- package/dist/service/lambda/destination/sim-lambda-destination-targets.js.map +1 -0
- package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.d.ts +17 -0
- package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.d.ts.map +1 -0
- package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.js +26 -0
- package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.js.map +1 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.d.ts +58 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.d.ts.map +1 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.js +86 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.js.map +1 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.d.ts +117 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.d.ts.map +1 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.js +37 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.js.map +1 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.d.ts +35 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.d.ts.map +1 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.js +70 -0
- package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts +3 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function-configuration.factory.d.ts +11 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.factory.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.factory.js +27 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.factory.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts +5 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js +12 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.d.ts +2 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.js +7 -14
- package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.type.d.ts +5 -0
- package/dist/service/lambda/function/sim-lambda-function.type.d.ts.map +1 -1
- package/dist/service/lambda/index.d.ts +2 -0
- package/dist/service/lambda/index.d.ts.map +1 -1
- package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.d.ts +10 -0
- package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.d.ts.map +1 -0
- package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.js +32 -0
- package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.js.map +1 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.d.ts.map +1 -1
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js +2 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts +11 -0
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +17 -1
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
- package/dist/service/lambda/sim-lambda-event-invoke-operations.d.ts +23 -0
- package/dist/service/lambda/sim-lambda-event-invoke-operations.d.ts.map +1 -0
- package/dist/service/lambda/sim-lambda-event-invoke-operations.js +31 -0
- package/dist/service/lambda/sim-lambda-event-invoke-operations.js.map +1 -0
- package/dist/service/lambda/sim-lambda-inspection.d.ts +9 -0
- package/dist/service/lambda/sim-lambda-inspection.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-inspection.js +13 -0
- package/dist/service/lambda/sim-lambda-inspection.js.map +1 -1
- package/dist/service/lambda/sim-lambda-request-options.d.ts +8 -0
- package/dist/service/lambda/sim-lambda-request-options.d.ts.map +1 -0
- package/dist/service/lambda/sim-lambda-request-options.js +2 -0
- package/dist/service/lambda/sim-lambda-request-options.js.map +1 -0
- package/dist/service/lambda/sim-lambda.d.ts +6 -7
- package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda.js +4 -3
- package/dist/service/lambda/sim-lambda.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts +14 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-input.js +20 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-input.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts +14 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js +12 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +23 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-output.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-output.js +7 -1
- package/dist/service/s3/serve/api/sim-s3-api-output.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts +14 -3
- package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-routes.js +2 -1
- package/dist/service/s3/serve/api/sim-s3-api-routes.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CommandHandler } from "../../../../command/command-handler.js";
|
|
2
|
+
import type { SimLambdaEventInvokeConfigStore } from "../../function/event-invoke/sim-lambda-event-invoke-config-store.js";
|
|
3
|
+
import { type EventInvokeConfigCommandOptions, type EventInvokeConfigCommandProperties } from "../event-invoke-config/event-invoke-config-request.js";
|
|
4
|
+
import type { SimUpdateFunctionEventInvokeConfigCommand, SimUpdateFunctionEventInvokeConfigCommandOutput } from "./update-function-event-invoke-config.command.js";
|
|
5
|
+
interface UpdateFunctionEventInvokeConfigCommandHandlerProperties extends EventInvokeConfigCommandProperties {
|
|
6
|
+
readonly eventInvokeConfigs: SimLambdaEventInvokeConfigStore;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Simulated Lambda UpdateFunctionEventInvokeConfigCommand handler.
|
|
10
|
+
*
|
|
11
|
+
* https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/UpdateFunctionEventInvokeConfigCommand/
|
|
12
|
+
*/
|
|
13
|
+
export declare class UpdateFunctionEventInvokeConfigCommandHandler implements CommandHandler<SimUpdateFunctionEventInvokeConfigCommand, SimUpdateFunctionEventInvokeConfigCommandOutput> {
|
|
14
|
+
private readonly eventInvokeConfigs;
|
|
15
|
+
private readonly request;
|
|
16
|
+
private readonly inputParser;
|
|
17
|
+
constructor(properties: UpdateFunctionEventInvokeConfigCommandHandlerProperties);
|
|
18
|
+
/**
|
|
19
|
+
* Change the settings a request named, leaving the rest of the config as it
|
|
20
|
+
* stands.
|
|
21
|
+
*/
|
|
22
|
+
handle(command: SimUpdateFunctionEventInvokeConfigCommand, options?: EventInvokeConfigCommandOptions): Promise<SimUpdateFunctionEventInvokeConfigCommandOutput>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=update-function-event-invoke-config.handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-function-event-invoke-config.handler.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qEAAqE,CAAC;AAE3H,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EAExC,MAAM,uDAAuD,CAAC;AAE/D,OAAO,KAAK,EACV,yCAAyC,EACzC,+CAA+C,EAChD,MAAM,kDAAkD,CAAC;AAE1D,UAAU,uDAAwD,SAAQ,kCAAkC;IAC1G,QAAQ,CAAC,kBAAkB,EAAE,+BAA+B,CAAC;CAC9D;AAED;;;;GAIG;AACH,qBAAa,6CAA8C,YAAW,cAAc,CAClF,yCAAyC,EACzC,+CAA+C,CAChD;IACC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAkC;IACrE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2B;IAEnD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsC;IAElE,YACE,UAAU,EAAE,uDAAuD,EAOpE;IAED;;;OAGG;IACG,MAAM,CACV,OAAO,EAAE,yCAAyC,EAClD,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,+CAA+C,CAAC,CAY1D;CACF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { simLambdaEventInvokeConfiguration } from "../../function/event-invoke/sim-lambda-event-invoke-settings.js";
|
|
2
|
+
import { EventInvokeConfigRequest, } from "../event-invoke-config/event-invoke-config-request.js";
|
|
3
|
+
import { EventInvokeConfigInputParser } from "../event-invoke-config/event-invoke-config-input.js";
|
|
4
|
+
/**
|
|
5
|
+
* Simulated Lambda UpdateFunctionEventInvokeConfigCommand handler.
|
|
6
|
+
*
|
|
7
|
+
* https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/UpdateFunctionEventInvokeConfigCommand/
|
|
8
|
+
*/
|
|
9
|
+
export class UpdateFunctionEventInvokeConfigCommandHandler {
|
|
10
|
+
eventInvokeConfigs;
|
|
11
|
+
request;
|
|
12
|
+
inputParser = new EventInvokeConfigInputParser();
|
|
13
|
+
constructor(properties) {
|
|
14
|
+
this.eventInvokeConfigs = properties.eventInvokeConfigs;
|
|
15
|
+
this.request = new EventInvokeConfigRequest({
|
|
16
|
+
...properties,
|
|
17
|
+
action: "lambda:UpdateFunctionEventInvokeConfig",
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Change the settings a request named, leaving the rest of the config as it
|
|
22
|
+
* stands.
|
|
23
|
+
*/
|
|
24
|
+
async handle(command, options) {
|
|
25
|
+
const resolved = await this.request.resolve(command.input, "UpdateFunctionEventInvokeConfigCommand", options);
|
|
26
|
+
const config = this.eventInvokeConfigs.update({
|
|
27
|
+
...resolved,
|
|
28
|
+
update: this.inputParser.parse(command.input),
|
|
29
|
+
});
|
|
30
|
+
return { $metadata: {}, ...simLambdaEventInvokeConfiguration(config) };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=update-function-event-invoke-config.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-function-event-invoke-config.handler.js","sourceRoot":"","sources":["../../../../../src/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iCAAiC,EAAE,MAAM,iEAAiE,CAAC;AACpH,OAAO,EAGL,wBAAwB,GACzB,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AAUnG;;;;GAIG;AACH,MAAM,OAAO,6CAA6C;IAIvC,kBAAkB,CAAkC;IACpD,OAAO,CAA2B;IAElC,WAAW,GAAG,IAAI,4BAA4B,EAAE,CAAC;IAElE,YACE,UAAmE;QAEnE,IAAI,CAAC,kBAAkB,GAAG,UAAU,CAAC,kBAAkB,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,IAAI,wBAAwB,CAAC;YAC1C,GAAG,UAAU;YACb,MAAM,EAAE,wCAAwC;SACjD,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,MAAM,CACV,OAAkD,EAClD,OAAyC;QAEzC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CACzC,OAAO,CAAC,KAAK,EACb,wCAAwC,EACxC,OAAO,CACR,CAAC;QACF,MAAM,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC;YAC5C,GAAG,QAAQ;YACX,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;SAC9C,CAAC,CAAC;QAEH,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,GAAG,iCAAiC,CAAC,MAAM,CAAC,EAAE,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SimAwsAccountRegionContainer } from "../../../aws/sim-aws-account-region-scope.js";
|
|
2
|
+
import type { SimLambdaDestinationDeliveryRequest } from "../sim-lambda-destination-targets.js";
|
|
3
|
+
/**
|
|
4
|
+
* An event bus a function is sending an asynchronous invocation result to, in
|
|
5
|
+
* the Account and Region the destination ARN names.
|
|
6
|
+
*
|
|
7
|
+
* Real Lambda puts the record in the detail of an event of its own, under the
|
|
8
|
+
* detail type that says whether the invocation succeeded.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SimLambdaDestinationBus {
|
|
11
|
+
/**
|
|
12
|
+
* Put the record on the bus as one event.
|
|
13
|
+
*/
|
|
14
|
+
deliver(scope: SimAwsAccountRegionContainer, request: SimLambdaDestinationDeliveryRequest): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=sim-lambda-destination-bus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-destination-bus.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/destination/deliver/sim-lambda-destination-bus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,sCAAsC,CAAC;AAEhG;;;;;;GAMG;AACH,qBAAa,uBAAuB;IAClC;;OAEG;IACG,OAAO,CACX,KAAK,EAAE,4BAA4B,EACnC,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAAC,IAAI,CAAC,CAmBf;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An event bus a function is sending an asynchronous invocation result to, in
|
|
3
|
+
* the Account and Region the destination ARN names.
|
|
4
|
+
*
|
|
5
|
+
* Real Lambda puts the record in the detail of an event of its own, under the
|
|
6
|
+
* detail type that says whether the invocation succeeded.
|
|
7
|
+
*/
|
|
8
|
+
export class SimLambdaDestinationBus {
|
|
9
|
+
/**
|
|
10
|
+
* Put the record on the bus as one event.
|
|
11
|
+
*/
|
|
12
|
+
async deliver(scope, request) {
|
|
13
|
+
const outcome = request.record.requestContext.condition === "Success"
|
|
14
|
+
? "Success"
|
|
15
|
+
: "Failure";
|
|
16
|
+
await scope.eventBridge().putEvents({
|
|
17
|
+
input: {
|
|
18
|
+
Entries: [
|
|
19
|
+
{
|
|
20
|
+
Source: "lambda",
|
|
21
|
+
DetailType: `Lambda Function Invocation Result - ${outcome}`,
|
|
22
|
+
Detail: JSON.stringify(request.record),
|
|
23
|
+
EventBusName: request.destinationArn.eventBusName,
|
|
24
|
+
Resources: [request.sourceFunctionArn],
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=sim-lambda-destination-bus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-destination-bus.js","sourceRoot":"","sources":["../../../../../src/service/lambda/destination/deliver/sim-lambda-destination-bus.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,OAAO,uBAAuB;IAClC;;OAEG;IACH,KAAK,CAAC,OAAO,CACX,KAAmC,EACnC,OAA4C;QAE5C,MAAM,OAAO,GACX,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,SAAS,KAAK,SAAS;YACnD,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,SAAS,CAAC;QAEhB,MAAM,KAAK,CAAC,WAAW,EAAE,CAAC,SAAS,CAAC;YAClC,KAAK,EAAE;gBACL,OAAO,EAAE;oBACP;wBACE,MAAM,EAAE,QAAQ;wBAChB,UAAU,EAAE,uCAAuC,OAAO,EAAE;wBAC5D,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC;wBACtC,YAAY,EAAE,OAAO,CAAC,cAAc,CAAC,YAAY;wBACjD,SAAS,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC;qBACvC;iBACF;aACF;SACF,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SimAwsAccountRegionContainer } from "../../../aws/sim-aws-account-region-scope.js";
|
|
2
|
+
import type { SimLambdaDestinationDeliveryRequest } from "../sim-lambda-destination-targets.js";
|
|
3
|
+
/**
|
|
4
|
+
* A function a function is sending an asynchronous invocation result to, in
|
|
5
|
+
* the Account and Region the destination ARN names.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SimLambdaDestinationFunction {
|
|
8
|
+
/**
|
|
9
|
+
* Invoke the destination function with the record.
|
|
10
|
+
*/
|
|
11
|
+
deliver(scope: SimAwsAccountRegionContainer, request: SimLambdaDestinationDeliveryRequest): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=sim-lambda-destination-function.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-destination-function.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/destination/deliver/sim-lambda-destination-function.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAEjG,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,sCAAsC,CAAC;AAEhG;;;GAGG;AACH,qBAAa,4BAA4B;IACvC;;OAEG;IACG,OAAO,CACX,KAAK,EAAE,4BAA4B,EACnC,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAAC,IAAI,CAAC,CAiBf;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SimLambdaError } from "../../error/sim-lambda.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* A function a function is sending an asynchronous invocation result to, in
|
|
4
|
+
* the Account and Region the destination ARN names.
|
|
5
|
+
*/
|
|
6
|
+
export class SimLambdaDestinationFunction {
|
|
7
|
+
/**
|
|
8
|
+
* Invoke the destination function with the record.
|
|
9
|
+
*/
|
|
10
|
+
async deliver(scope, request) {
|
|
11
|
+
const { destinationArn: arn } = request;
|
|
12
|
+
const target = scope
|
|
13
|
+
.lambda()
|
|
14
|
+
.getSimFunctionTarget(arn.functionName, arn.functionQualifier);
|
|
15
|
+
if (target === undefined) {
|
|
16
|
+
throw new SimLambdaError(`${arn.value} is not a simulated Lambda function.`);
|
|
17
|
+
}
|
|
18
|
+
// Invoked directly rather than through an Invoke command, because this is
|
|
19
|
+
// already inside the background task standing for the asynchronous
|
|
20
|
+
// invocation, and because a delivery failure has to reach the caller who
|
|
21
|
+
// advanced the clock rather than being swallowed a second time.
|
|
22
|
+
await target.simFunction.invoke(request.record);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=sim-lambda-destination-function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-destination-function.js","sourceRoot":"","sources":["../../../../../src/service/lambda/destination/deliver/sim-lambda-destination-function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGjE;;;GAGG;AACH,MAAM,OAAO,4BAA4B;IACvC;;OAEG;IACH,KAAK,CAAC,OAAO,CACX,KAAmC,EACnC,OAA4C;QAE5C,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;QACxC,MAAM,MAAM,GAAG,KAAK;aACjB,MAAM,EAAE;aACR,oBAAoB,CAAC,GAAG,CAAC,YAAY,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAEjE,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,MAAM,IAAI,cAAc,CACtB,GAAG,GAAG,CAAC,KAAK,sCAAsC,CACnD,CAAC;QACJ,CAAC;QAED,0EAA0E;QAC1E,mEAAmE;QACnE,yEAAyE;QACzE,gEAAgE;QAChE,MAAM,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SimLambdaDestinationSend } from "./sim-lambda-destination-send.js";
|
|
2
|
+
/**
|
|
3
|
+
* A queue a function is sending an asynchronous invocation result to, in the
|
|
4
|
+
* Account and Region the destination ARN names.
|
|
5
|
+
*
|
|
6
|
+
* The message body is the record, as JSON, which is what real Lambda puts on a
|
|
7
|
+
* queue destination.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SimLambdaDestinationQueue {
|
|
10
|
+
/**
|
|
11
|
+
* Put the document on the queue.
|
|
12
|
+
*/
|
|
13
|
+
deliver(send: SimLambdaDestinationSend): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=sim-lambda-destination-queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-destination-queue.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/destination/deliver/sim-lambda-destination-queue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEjF;;;;;;GAMG;AACH,qBAAa,yBAAyB;IACpC;;OAEG;IACG,OAAO,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiB3D;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SimLambdaError } from "../../error/sim-lambda.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* A queue a function is sending an asynchronous invocation result to, in the
|
|
4
|
+
* Account and Region the destination ARN names.
|
|
5
|
+
*
|
|
6
|
+
* The message body is the record, as JSON, which is what real Lambda puts on a
|
|
7
|
+
* queue destination.
|
|
8
|
+
*/
|
|
9
|
+
export class SimLambdaDestinationQueue {
|
|
10
|
+
/**
|
|
11
|
+
* Put the document on the queue.
|
|
12
|
+
*/
|
|
13
|
+
async deliver(send) {
|
|
14
|
+
const queue = send.scope.sqs().findQueue(send.arn.resource);
|
|
15
|
+
if (queue === undefined) {
|
|
16
|
+
throw new SimLambdaError(`${send.arn.value} is not a simulated SQS queue.`);
|
|
17
|
+
}
|
|
18
|
+
// Sent through the ordinary SendMessage path, so what arrives is the same
|
|
19
|
+
// thing an SDK caller would have sent.
|
|
20
|
+
await send.scope
|
|
21
|
+
.sqs()
|
|
22
|
+
.sendMessage({ input: { QueueUrl: queue.arn.url, MessageBody: send.body } }, { sourceArn: send.sourceFunctionArn });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=sim-lambda-destination-queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-destination-queue.js","sourceRoot":"","sources":["../../../../../src/service/lambda/destination/deliver/sim-lambda-destination-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGjE;;;;;;GAMG;AACH,MAAM,OAAO,yBAAyB;IACpC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,IAA8B;QAC1C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAE5D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,IAAI,cAAc,CACtB,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,gCAAgC,CAClD,CAAC;QACJ,CAAC;QAED,0EAA0E;QAC1E,uCAAuC;QACvC,MAAM,IAAI,CAAC,KAAK;aACb,GAAG,EAAE;aACL,WAAW,CACV,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,EAC9D,EAAE,SAAS,EAAE,IAAI,CAAC,iBAAiB,EAAE,CACtC,CAAC;IACN,CAAC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SimAwsAccountRegionContainer } from "../../../aws/sim-aws-account-region-scope.js";
|
|
2
|
+
import type { SimLambdaDestinationArn } from "../sim-lambda-destination-arn.js";
|
|
3
|
+
/**
|
|
4
|
+
* One document on its way to one queue or topic.
|
|
5
|
+
*/
|
|
6
|
+
export interface SimLambdaDestinationSend {
|
|
7
|
+
readonly scope: SimAwsAccountRegionContainer;
|
|
8
|
+
readonly arn: SimLambdaDestinationArn;
|
|
9
|
+
readonly body: string;
|
|
10
|
+
/**
|
|
11
|
+
* The function this came from, supplied to IAM as `aws:SourceArn`.
|
|
12
|
+
*/
|
|
13
|
+
readonly sourceFunctionArn: string;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=sim-lambda-destination-send.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-destination-send.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/destination/deliver/sim-lambda-destination-send.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,KAAK,EAAE,4BAA4B,CAAC;IAC7C,QAAQ,CAAC,GAAG,EAAE,uBAAuB,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-destination-send.js","sourceRoot":"","sources":["../../../../../src/service/lambda/destination/deliver/sim-lambda-destination-send.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SimLambdaDestinationSend } from "./sim-lambda-destination-send.js";
|
|
2
|
+
/**
|
|
3
|
+
* A topic a function is sending an asynchronous invocation result to, in the
|
|
4
|
+
* Account and Region the destination ARN names.
|
|
5
|
+
*
|
|
6
|
+
* The topic then fans the record out to its own subscriptions, so each
|
|
7
|
+
* subscriber sees it inside SNS's envelope.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SimLambdaDestinationTopic {
|
|
10
|
+
/**
|
|
11
|
+
* Publish the document to the topic.
|
|
12
|
+
*/
|
|
13
|
+
deliver(send: SimLambdaDestinationSend): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=sim-lambda-destination-topic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-destination-topic.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/destination/deliver/sim-lambda-destination-topic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEjF;;;;;;GAMG;AACH,qBAAa,yBAAyB;IACpC;;OAEG;IACG,OAAO,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAe3D;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SimLambdaError } from "../../error/sim-lambda.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* A topic a function is sending an asynchronous invocation result to, in the
|
|
4
|
+
* Account and Region the destination ARN names.
|
|
5
|
+
*
|
|
6
|
+
* The topic then fans the record out to its own subscriptions, so each
|
|
7
|
+
* subscriber sees it inside SNS's envelope.
|
|
8
|
+
*/
|
|
9
|
+
export class SimLambdaDestinationTopic {
|
|
10
|
+
/**
|
|
11
|
+
* Publish the document to the topic.
|
|
12
|
+
*/
|
|
13
|
+
async deliver(send) {
|
|
14
|
+
const topic = send.scope.sns().findTopic(send.arn.resource);
|
|
15
|
+
if (topic === undefined) {
|
|
16
|
+
throw new SimLambdaError(`${send.arn.value} is not a simulated SNS topic.`);
|
|
17
|
+
}
|
|
18
|
+
await send.scope
|
|
19
|
+
.sns()
|
|
20
|
+
.publish({ input: { TopicArn: topic.arn.value, Message: send.body } }, { sourceArn: send.sourceFunctionArn });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=sim-lambda-destination-topic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-destination-topic.js","sourceRoot":"","sources":["../../../../../src/service/lambda/destination/deliver/sim-lambda-destination-topic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGjE;;;;;;GAMG;AACH,MAAM,OAAO,yBAAyB;IACpC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,IAA8B;QAC1C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAE5D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,IAAI,cAAc,CACtB,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,gCAAgC,CAClD,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,CAAC,KAAK;aACb,GAAG,EAAE;aACL,OAAO,CACN,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,EAC5D,EAAE,SAAS,EAAE,IAAI,CAAC,iBAAiB,EAAE,CACtC,CAAC;IACN,CAAC;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { SimAws } from "../../aws/sim-aws.js";
|
|
2
|
+
import type { SimLambdaDeadLetterRequest, SimLambdaDestinationDeliveryRequest, SimLambdaDestinationTargets } from "./sim-lambda-destination-targets.js";
|
|
3
|
+
interface SimAwsLambdaDestinationsProperties {
|
|
4
|
+
readonly simAws: SimAws;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Everywhere the functions of one simulated AWS instance send their
|
|
8
|
+
* asynchronous invocation results.
|
|
9
|
+
*
|
|
10
|
+
* The destination is looked up when a result is delivered, never when this is
|
|
11
|
+
* built: reaching another service while this one is being constructed is a
|
|
12
|
+
* cycle with no bottom to it.
|
|
13
|
+
*
|
|
14
|
+
* Real Lambda delivers under the function's own execution role, and delivers
|
|
15
|
+
* nothing when that role cannot write to the destination. The permission is
|
|
16
|
+
* left unchecked here, so a delivery is made as the destination Account's own
|
|
17
|
+
* root. A record that silently goes nowhere is the harder failure to find, and
|
|
18
|
+
* a destination needs no resource policy on real AWS either, so nothing about
|
|
19
|
+
* the destination itself has to be set up for a record to arrive.
|
|
20
|
+
*/
|
|
21
|
+
export declare class SimAwsLambdaDestinations implements SimLambdaDestinationTargets {
|
|
22
|
+
private readonly simAws;
|
|
23
|
+
private readonly queue;
|
|
24
|
+
private readonly topic;
|
|
25
|
+
constructor(properties: SimAwsLambdaDestinationsProperties);
|
|
26
|
+
/**
|
|
27
|
+
* Send one invocation record to the destination its ARN names.
|
|
28
|
+
*/
|
|
29
|
+
deliver(request: SimLambdaDestinationDeliveryRequest): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Send one abandoned event to a dead-letter queue or topic.
|
|
32
|
+
*/
|
|
33
|
+
deadLetter(request: SimLambdaDeadLetterRequest): Promise<void>;
|
|
34
|
+
private send;
|
|
35
|
+
private scopeOf;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=sim-aws-lambda-destinations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-aws-lambda-destinations.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/destination/sim-aws-lambda-destinations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAQnD,OAAO,KAAK,EACV,0BAA0B,EAC1B,mCAAmC,EACnC,2BAA2B,EAC5B,MAAM,qCAAqC,CAAC;AAE7C,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,wBAAyB,YAAW,2BAA2B;IAC1E,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmC;IACzD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmC;IAEzD,YAAY,UAAU,EAAE,kCAAkC,EAEzD;IAED;;OAEG;IACG,OAAO,CAAC,OAAO,EAAE,mCAAmC,GAAG,OAAO,CAAC,IAAI,CAAC,CAsBzE;IAED;;OAEG;IACG,UAAU,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAWnE;IAED,OAAO,CAAC,IAAI;IAWZ,OAAO,CAAC,OAAO;CAGhB"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { SimLambdaDestinationBus } from "./deliver/sim-lambda-destination-bus.js";
|
|
2
|
+
import { SimLambdaDestinationFunction } from "./deliver/sim-lambda-destination-function.js";
|
|
3
|
+
import { SimLambdaDestinationQueue } from "./deliver/sim-lambda-destination-queue.js";
|
|
4
|
+
import { SimLambdaDestinationTopic } from "./deliver/sim-lambda-destination-topic.js";
|
|
5
|
+
/**
|
|
6
|
+
* Everywhere the functions of one simulated AWS instance send their
|
|
7
|
+
* asynchronous invocation results.
|
|
8
|
+
*
|
|
9
|
+
* The destination is looked up when a result is delivered, never when this is
|
|
10
|
+
* built: reaching another service while this one is being constructed is a
|
|
11
|
+
* cycle with no bottom to it.
|
|
12
|
+
*
|
|
13
|
+
* Real Lambda delivers under the function's own execution role, and delivers
|
|
14
|
+
* nothing when that role cannot write to the destination. The permission is
|
|
15
|
+
* left unchecked here, so a delivery is made as the destination Account's own
|
|
16
|
+
* root. A record that silently goes nowhere is the harder failure to find, and
|
|
17
|
+
* a destination needs no resource policy on real AWS either, so nothing about
|
|
18
|
+
* the destination itself has to be set up for a record to arrive.
|
|
19
|
+
*/
|
|
20
|
+
export class SimAwsLambdaDestinations {
|
|
21
|
+
simAws;
|
|
22
|
+
queue = new SimLambdaDestinationQueue();
|
|
23
|
+
topic = new SimLambdaDestinationTopic();
|
|
24
|
+
constructor(properties) {
|
|
25
|
+
this.simAws = properties.simAws;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Send one invocation record to the destination its ARN names.
|
|
29
|
+
*/
|
|
30
|
+
async deliver(request) {
|
|
31
|
+
const { destinationArn: arn } = request;
|
|
32
|
+
const scope = this.scopeOf(arn);
|
|
33
|
+
switch (arn.service) {
|
|
34
|
+
case "sqs": {
|
|
35
|
+
await this.queue.deliver(this.send(request));
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
case "sns": {
|
|
39
|
+
await this.topic.deliver(this.send(request));
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
case "events": {
|
|
43
|
+
await new SimLambdaDestinationBus().deliver(scope, request);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
case "lambda": {
|
|
47
|
+
await new SimLambdaDestinationFunction().deliver(scope, request);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Send one abandoned event to a dead-letter queue or topic.
|
|
54
|
+
*/
|
|
55
|
+
async deadLetter(request) {
|
|
56
|
+
const send = {
|
|
57
|
+
scope: this.scopeOf(request.targetArn),
|
|
58
|
+
arn: request.targetArn,
|
|
59
|
+
body: JSON.stringify(request.payload),
|
|
60
|
+
sourceFunctionArn: request.sourceFunctionArn,
|
|
61
|
+
};
|
|
62
|
+
await (request.targetArn.service === "sqs"
|
|
63
|
+
? this.queue.deliver(send)
|
|
64
|
+
: this.topic.deliver(send));
|
|
65
|
+
}
|
|
66
|
+
send(request) {
|
|
67
|
+
return {
|
|
68
|
+
scope: this.scopeOf(request.destinationArn),
|
|
69
|
+
arn: request.destinationArn,
|
|
70
|
+
body: JSON.stringify(request.record),
|
|
71
|
+
sourceFunctionArn: request.sourceFunctionArn,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
scopeOf(arn) {
|
|
75
|
+
return this.simAws.accountRegionScope(arn.accountId, arn.regionName);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=sim-aws-lambda-destinations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-aws-lambda-destinations.js","sourceRoot":"","sources":["../../../../src/service/lambda/destination/sim-aws-lambda-destinations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAEtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAYtF;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAAS;IACf,KAAK,GAAG,IAAI,yBAAyB,EAAE,CAAC;IACxC,KAAK,GAAG,IAAI,yBAAyB,EAAE,CAAC;IAEzD,YAAY,UAA8C;QACxD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,OAA4C;QACxD,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;QACxC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEhC,QAAQ,GAAG,CAAC,OAAO,EAAE,CAAC;YACpB,KAAK,KAAK,EAAE,CAAC;gBACX,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;gBAC7C,OAAO;YACT,CAAC;YACD,KAAK,KAAK,EAAE,CAAC;gBACX,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;gBAC7C,OAAO;YACT,CAAC;YACD,KAAK,QAAQ,EAAE,CAAC;gBACd,MAAM,IAAI,uBAAuB,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBAC5D,OAAO;YACT,CAAC;YACD,KAAK,QAAQ,EAAE,CAAC;gBACd,MAAM,IAAI,4BAA4B,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;gBACjE,OAAO;YACT,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CAAC,OAAmC;QAClD,MAAM,IAAI,GAA6B;YACrC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;YACtC,GAAG,EAAE,OAAO,CAAC,SAAS;YACtB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;YACrC,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;SAC7C,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,KAAK,KAAK;YACxC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;YAC1B,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAChC,CAAC;IAEO,IAAI,CACV,OAA4C;QAE5C,OAAO;YACL,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC;YAC3C,GAAG,EAAE,OAAO,CAAC,cAAc;YAC3B,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC;YACpC,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;SAC7C,CAAC;IACJ,CAAC;IAEO,OAAO,CAAC,GAA4B;QAC1C,OAAO,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { SimAwsAccountId } from "../../aws/sim-aws-account-id.js";
|
|
2
|
+
import type { AwsRegionName } from "../../aws/sim-aws-region.js";
|
|
3
|
+
/**
|
|
4
|
+
* The services an asynchronous invocation result can be sent to.
|
|
5
|
+
*/
|
|
6
|
+
export declare const simLambdaDestinationServices: readonly ["sqs", "sns", "events", "lambda"];
|
|
7
|
+
export type SimLambdaDestinationService = (typeof simLambdaDestinationServices)[number];
|
|
8
|
+
/**
|
|
9
|
+
* The ARN of somewhere an asynchronous invocation result is sent.
|
|
10
|
+
*
|
|
11
|
+
* Destination ARNs are read here rather than by `parseSimArn`, because the four
|
|
12
|
+
* services write their resource part three ways. A queue and a topic put the
|
|
13
|
+
* name straight after the Account, a function writes `function:<name>`, and an
|
|
14
|
+
* event bus writes `event-bus/<name>`.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SimLambdaDestinationArn {
|
|
17
|
+
readonly value: string;
|
|
18
|
+
readonly service: SimLambdaDestinationService;
|
|
19
|
+
readonly regionName: AwsRegionName;
|
|
20
|
+
readonly accountId: SimAwsAccountId;
|
|
21
|
+
/**
|
|
22
|
+
* The resource part of the ARN, with no type separator taken off it.
|
|
23
|
+
*/
|
|
24
|
+
readonly resource: string;
|
|
25
|
+
private constructor();
|
|
26
|
+
/**
|
|
27
|
+
* Read a destination ARN, refusing one this simulation cannot send to.
|
|
28
|
+
*
|
|
29
|
+
* A destination naming an unsimulated service is refused when the config is
|
|
30
|
+
* written rather than when an invocation first fails, so a function that
|
|
31
|
+
* could never deliver says so at the point it was set up.
|
|
32
|
+
*/
|
|
33
|
+
static of(value: string): SimLambdaDestinationArn;
|
|
34
|
+
/**
|
|
35
|
+
* Refuse an ARN of the right service that names nothing in it.
|
|
36
|
+
*/
|
|
37
|
+
private static refuseUnnamedResource;
|
|
38
|
+
/**
|
|
39
|
+
* The name of a Lambda function this ARN names, or nothing when it names
|
|
40
|
+
* something else in Lambda.
|
|
41
|
+
*/
|
|
42
|
+
get functionName(): string;
|
|
43
|
+
/**
|
|
44
|
+
* The version or alias this ARN qualified the function with.
|
|
45
|
+
*/
|
|
46
|
+
get functionQualifier(): string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* The name of the event bus this ARN names, or nothing when it names
|
|
49
|
+
* something else in EventBridge.
|
|
50
|
+
*/
|
|
51
|
+
get eventBusName(): string;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=sim-lambda-destination-arn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-destination-arn.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/destination/sim-lambda-destination-arn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGjE;;GAEG;AACH,eAAO,MAAM,4BAA4B,YACvC,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,CACA,CAAC;AAEX,MAAM,MAAM,2BAA2B,GACrC,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAyBhD;;;;;;;GAOG;AACH,qBAAa,uBAAuB;IAClC,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,OAAO,EAAE,2BAA2B,CAAC;IACrD,SAAgB,UAAU,EAAE,aAAa,CAAC;IAC1C,SAAgB,SAAS,EAAE,eAAe,CAAC;IAE3C;;OAEG;IACH,SAAgB,QAAQ,EAAE,MAAM,CAAC;IAEjC,OAAO,eAMN;IAED;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,uBAAuB,CAuChD;IAED;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAiBpC;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAIzB;IAED;;OAEG;IACH,IAAI,iBAAiB,IAAI,MAAM,GAAG,SAAS,CAI1C;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAQzB;CACF"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { SimLambdaInvalidParameterValueException } from "../error/sim-lambda.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The services an asynchronous invocation result can be sent to.
|
|
4
|
+
*/
|
|
5
|
+
export const simLambdaDestinationServices = [
|
|
6
|
+
"sqs",
|
|
7
|
+
"sns",
|
|
8
|
+
"events",
|
|
9
|
+
"lambda",
|
|
10
|
+
];
|
|
11
|
+
/**
|
|
12
|
+
* The fewest colon separated parts any destination ARN has.
|
|
13
|
+
*/
|
|
14
|
+
const minimumArnParts = 6;
|
|
15
|
+
const destinationServices = new Set(simLambdaDestinationServices);
|
|
16
|
+
function isDestinationService(value) {
|
|
17
|
+
return destinationServices.has(value);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The ARN of somewhere an asynchronous invocation result is sent.
|
|
21
|
+
*
|
|
22
|
+
* Destination ARNs are read here rather than by `parseSimArn`, because the four
|
|
23
|
+
* services write their resource part three ways. A queue and a topic put the
|
|
24
|
+
* name straight after the Account, a function writes `function:<name>`, and an
|
|
25
|
+
* event bus writes `event-bus/<name>`.
|
|
26
|
+
*/
|
|
27
|
+
export class SimLambdaDestinationArn {
|
|
28
|
+
value;
|
|
29
|
+
service;
|
|
30
|
+
regionName;
|
|
31
|
+
accountId;
|
|
32
|
+
/**
|
|
33
|
+
* The resource part of the ARN, with no type separator taken off it.
|
|
34
|
+
*/
|
|
35
|
+
resource;
|
|
36
|
+
constructor(properties) {
|
|
37
|
+
this.value = properties.value;
|
|
38
|
+
this.service = properties.service;
|
|
39
|
+
this.regionName = properties.regionName;
|
|
40
|
+
this.accountId = properties.accountId;
|
|
41
|
+
this.resource = properties.resource;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Read a destination ARN, refusing one this simulation cannot send to.
|
|
45
|
+
*
|
|
46
|
+
* A destination naming an unsimulated service is refused when the config is
|
|
47
|
+
* written rather than when an invocation first fails, so a function that
|
|
48
|
+
* could never deliver says so at the point it was set up.
|
|
49
|
+
*/
|
|
50
|
+
static of(value) {
|
|
51
|
+
const parts = value.split(":");
|
|
52
|
+
const [prefix, partition, service, regionName, accountId] = parts;
|
|
53
|
+
const resource = parts.slice(minimumArnParts - 1).join(":");
|
|
54
|
+
if (prefix !== "arn" ||
|
|
55
|
+
partition !== "aws" ||
|
|
56
|
+
service === undefined ||
|
|
57
|
+
regionName === undefined ||
|
|
58
|
+
regionName === "" ||
|
|
59
|
+
accountId === undefined ||
|
|
60
|
+
accountId === "" ||
|
|
61
|
+
resource === "" ||
|
|
62
|
+
parts.length < minimumArnParts) {
|
|
63
|
+
throw new SimLambdaInvalidParameterValueException(`The destination ARN ${value} is not an ARN.`);
|
|
64
|
+
}
|
|
65
|
+
if (!isDestinationService(service)) {
|
|
66
|
+
throw new SimLambdaInvalidParameterValueException(`The destination ARN ${value} names ${service}, and a simulated ` +
|
|
67
|
+
"Lambda invocation result is sent to " +
|
|
68
|
+
`${simLambdaDestinationServices.join(", ")} destinations only.`);
|
|
69
|
+
}
|
|
70
|
+
const arn = new this({
|
|
71
|
+
value,
|
|
72
|
+
service,
|
|
73
|
+
regionName: regionName,
|
|
74
|
+
accountId: accountId,
|
|
75
|
+
resource,
|
|
76
|
+
});
|
|
77
|
+
this.refuseUnnamedResource(arn);
|
|
78
|
+
return arn;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Refuse an ARN of the right service that names nothing in it.
|
|
82
|
+
*/
|
|
83
|
+
static refuseUnnamedResource(arn) {
|
|
84
|
+
if (arn.service === "lambda" && arn.functionName === "") {
|
|
85
|
+
throw new SimLambdaInvalidParameterValueException(`The destination ARN ${arn.value} names no function. A function ` +
|
|
86
|
+
"destination is " +
|
|
87
|
+
"arn:aws:lambda:<region>:<account-id>:function:<function-name>");
|
|
88
|
+
}
|
|
89
|
+
if (arn.service === "events" && arn.eventBusName === "") {
|
|
90
|
+
throw new SimLambdaInvalidParameterValueException(`The destination ARN ${arn.value} names no event bus. An ` +
|
|
91
|
+
"EventBridge destination is " +
|
|
92
|
+
"arn:aws:events:<region>:<account-id>:event-bus/<bus-name>");
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The name of a Lambda function this ARN names, or nothing when it names
|
|
97
|
+
* something else in Lambda.
|
|
98
|
+
*/
|
|
99
|
+
get functionName() {
|
|
100
|
+
const [resourceType, name = ""] = this.resource.split(":", 3);
|
|
101
|
+
return resourceType === "function" ? name : "";
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The version or alias this ARN qualified the function with.
|
|
105
|
+
*/
|
|
106
|
+
get functionQualifier() {
|
|
107
|
+
const [resourceType, , qualifier] = this.resource.split(":", 3);
|
|
108
|
+
return resourceType === "function" ? qualifier : undefined;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The name of the event bus this ARN names, or nothing when it names
|
|
112
|
+
* something else in EventBridge.
|
|
113
|
+
*/
|
|
114
|
+
get eventBusName() {
|
|
115
|
+
const [resourceType, name = "", beyond] = this.resource.split("/", 3);
|
|
116
|
+
if (resourceType !== "event-bus" || beyond !== undefined) {
|
|
117
|
+
return "";
|
|
118
|
+
}
|
|
119
|
+
return name;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=sim-lambda-destination-arn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-lambda-destination-arn.js","sourceRoot":"","sources":["../../../../src/service/lambda/destination/sim-lambda-destination-arn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uCAAuC,EAAE,MAAM,8BAA8B,CAAC;AAEvF;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,KAAK;IACL,KAAK;IACL,QAAQ;IACR,QAAQ;CACA,CAAC;AAKX;;GAEG;AACH,MAAM,eAAe,GAAG,CAAC,CAAC;AAE1B,MAAM,mBAAmB,GAAwB,IAAI,GAAG,CACtD,4BAA4B,CAC7B,CAAC;AAEF,SAAS,oBAAoB,CAC3B,KAAa;IAEb,OAAO,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC;AAUD;;;;;;;GAOG;AACH,MAAM,OAAO,uBAAuB;IAClB,KAAK,CAAS;IACd,OAAO,CAA8B;IACrC,UAAU,CAAgB;IAC1B,SAAS,CAAkB;IAE3C;;OAEG;IACa,QAAQ,CAAS;IAEjC,YAAoB,UAA6C;QAC/D,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;IACtC,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,CAAC,KAAa;QACrB,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC;QAClE,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAE5D,IACE,MAAM,KAAK,KAAK;YAChB,SAAS,KAAK,KAAK;YACnB,OAAO,KAAK,SAAS;YACrB,UAAU,KAAK,SAAS;YACxB,UAAU,KAAK,EAAE;YACjB,SAAS,KAAK,SAAS;YACvB,SAAS,KAAK,EAAE;YAChB,QAAQ,KAAK,EAAE;YACf,KAAK,CAAC,MAAM,GAAG,eAAe,EAC9B,CAAC;YACD,MAAM,IAAI,uCAAuC,CAC/C,uBAAuB,KAAK,iBAAiB,CAC9C,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC;YACnC,MAAM,IAAI,uCAAuC,CAC/C,uBAAuB,KAAK,UAAU,OAAO,oBAAoB;gBAC/D,sCAAsC;gBACtC,GAAG,4BAA4B,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAClE,CAAC;QACJ,CAAC;QAED,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC;YACnB,KAAK;YACL,OAAO;YACP,UAAU,EAAE,UAA2B;YACvC,SAAS,EAAE,SAA4B;YACvC,QAAQ;SACT,CAAC,CAAC;QACH,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC;QAEhC,OAAO,GAAG,CAAC;IACb,CAAC;IAED;;OAEG;IACK,MAAM,CAAC,qBAAqB,CAAC,GAA4B;QAC/D,IAAI,GAAG,CAAC,OAAO,KAAK,QAAQ,IAAI,GAAG,CAAC,YAAY,KAAK,EAAE,EAAE,CAAC;YACxD,MAAM,IAAI,uCAAuC,CAC/C,uBAAuB,GAAG,CAAC,KAAK,iCAAiC;gBAC/D,iBAAiB;gBACjB,+DAA+D,CAClE,CAAC;QACJ,CAAC;QAED,IAAI,GAAG,CAAC,OAAO,KAAK,QAAQ,IAAI,GAAG,CAAC,YAAY,KAAK,EAAE,EAAE,CAAC;YACxD,MAAM,IAAI,uCAAuC,CAC/C,uBAAuB,GAAG,CAAC,KAAK,0BAA0B;gBACxD,6BAA6B;gBAC7B,2DAA2D,CAC9D,CAAC;QACJ,CAAC;IACH,CAAC;IACD;;;OAGG;IACH,IAAI,YAAY;QACd,MAAM,CAAC,YAAY,EAAE,IAAI,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAE9D,OAAO,YAAY,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,IAAI,iBAAiB;QACnB,MAAM,CAAC,YAAY,EAAE,AAAD,EAAG,SAAS,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAEhE,OAAO,YAAY,KAAK,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACH,IAAI,YAAY;QACd,MAAM,CAAC,YAAY,EAAE,IAAI,GAAG,EAAE,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAEtE,IAAI,YAAY,KAAK,WAAW,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzD,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|