@kensio/yulin 1.0.0 → 1.1.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/serve/payload-2/sim-payload-2-event.type.d.ts +14 -1
- package/dist/serve/payload-2/sim-payload-2-event.type.d.ts.map +1 -1
- package/dist/serve/payload-2/sim-payload-2-request-context.d.ts +6 -1
- package/dist/serve/payload-2/sim-payload-2-request-context.d.ts.map +1 -1
- package/dist/serve/payload-2/sim-payload-2-request-context.js +4 -0
- package/dist/serve/payload-2/sim-payload-2-request-context.js.map +1 -1
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-header-identity-source.d.ts +22 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-header-identity-source.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-header-identity-source.js +27 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-header-identity-source.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-identity-source-parser.d.ts +47 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-identity-source-parser.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-identity-source-parser.js +92 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-identity-source-parser.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-identity-source.d.ts +47 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-identity-source.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-identity-source.js +16 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-identity-source.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-identity-sources.d.ts +29 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-identity-sources.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-identity-sources.js +42 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-identity-sources.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-query-string-identity-source.d.ts +19 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-query-string-identity-source.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-query-string-identity-source.js +24 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-query-string-identity-source.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-route-key-identity-source.d.ts +25 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-route-key-identity-source.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-route-key-identity-source.js +26 -0
- package/dist/service/apigatewayv2/api/authorizer/identity/sim-http-api-route-key-identity-source.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorization.d.ts +24 -8
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorization.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorization.js +17 -4
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorization.js.map +1 -1
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer-result-cache.d.ts +49 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer-result-cache.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer-result-cache.js +74 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer-result-cache.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer.d.ts +27 -21
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer.js +5 -23
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer.js.map +1 -1
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-bearer-token.d.ts +9 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-bearer-token.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-bearer-token.js +23 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-bearer-token.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-authorizer.d.ts +29 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-authorizer.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-authorizer.js +32 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-authorizer.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-verification.d.ts +2 -2
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-verification.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-verification.js.map +1 -1
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-request-authorizer.d.ts +56 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-request-authorizer.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-request-authorizer.js +63 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-request-authorizer.js.map +1 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.d.ts +8 -2
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.js +16 -5
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.js.map +1 -1
- package/dist/service/apigatewayv2/api/route/sim-http-api-route.d.ts +8 -10
- package/dist/service/apigatewayv2/api/route/sim-http-api-route.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/route/sim-http-api-route.js +3 -3
- package/dist/service/apigatewayv2/api/route/sim-http-api-route.js.map +1 -1
- package/dist/service/apigatewayv2/api/sim-http-api-execute-api-arn.d.ts +29 -2
- package/dist/service/apigatewayv2/api/sim-http-api-execute-api-arn.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/sim-http-api-execute-api-arn.js +40 -2
- package/dist/service/apigatewayv2/api/sim-http-api-execute-api-arn.js.map +1 -1
- package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.d.ts +6 -0
- package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.js +5 -1
- package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.js.map +1 -1
- package/dist/service/apigatewayv2/api/sim-http-api-proxy-authorization.d.ts +7 -0
- package/dist/service/apigatewayv2/api/sim-http-api-proxy-authorization.d.ts.map +1 -1
- package/dist/service/apigatewayv2/api/sim-http-api-proxy-authorization.js +10 -1
- package/dist/service/apigatewayv2/api/sim-http-api-proxy-authorization.js.map +1 -1
- package/dist/service/apigatewayv2/api/sim-http-api-proxy-request-authorizer.d.ts +45 -0
- package/dist/service/apigatewayv2/api/sim-http-api-proxy-request-authorizer.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-proxy-request-authorizer.js +55 -0
- package/dist/service/apigatewayv2/api/sim-http-api-proxy-request-authorizer.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.d.ts +4 -5
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.d.ts.map +1 -1
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.js +4 -5
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.d.ts +6 -4
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.d.ts.map +1 -1
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.js +29 -15
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-jwt-configuration-properties.d.ts +30 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-jwt-configuration-properties.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-jwt-configuration-properties.js +33 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-jwt-configuration-properties.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-request-authorizer-properties.d.ts +36 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-request-authorizer-properties.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-request-authorizer-properties.js +32 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-request-authorizer-properties.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-values.d.ts +4 -25
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-values.d.ts.map +1 -1
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-values.js +4 -55
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-values.js.map +1 -1
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-scalar-values.d.ts +49 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-scalar-values.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-scalar-values.js +98 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-scalar-values.js.map +1 -0
- package/dist/service/apigatewayv2/command/authorizer/authorizer.command.d.ts +7 -2
- package/dist/service/apigatewayv2/command/authorizer/authorizer.command.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.d.ts +9 -10
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.js +22 -24
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.js.map +1 -1
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-input.d.ts +20 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-input.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-input.js +15 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-input.js.map +1 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-options.d.ts +22 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-options.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-options.js +26 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-options.js.map +1 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.d.ts +23 -5
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.js +41 -4
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.js.map +1 -1
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-request-authorizer-input.d.ts +58 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-request-authorizer-input.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-request-authorizer-input.js +120 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-request-authorizer-input.js.map +1 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization-options.d.ts +30 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization-options.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization-options.js +55 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization-options.js.map +1 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization.d.ts +11 -12
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization.js +36 -45
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization.js.map +1 -1
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorizer-input.d.ts +26 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorizer-input.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorizer-input.js +40 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorizer-input.js.map +1 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.d.ts.map +1 -1
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.js +4 -6
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.js.map +1 -1
- package/dist/service/apigatewayv2/index.d.ts +11 -2
- package/dist/service/apigatewayv2/index.d.ts.map +1 -1
- package/dist/service/apigatewayv2/index.js +8 -1
- package/dist/service/apigatewayv2/index.js.map +1 -1
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-identity-source.d.ts +25 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-identity-source.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-identity-source.js +41 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-identity-source.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-jwt-authorizer-scheme.d.ts +19 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-jwt-authorizer-scheme.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-jwt-authorizer-scheme.js +32 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-jwt-authorizer-scheme.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-request-authorizer-scheme.d.ts +21 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-request-authorizer-scheme.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-request-authorizer-scheme.js +51 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-request-authorizer-scheme.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-route-authorization.d.ts +11 -2
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-route-authorization.d.ts.map +1 -1
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-route-authorization.js +26 -7
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-route-authorization.js.map +1 -1
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-scheme.d.ts +9 -9
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-scheme.d.ts.map +1 -1
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-scheme.js +42 -45
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-scheme.js.map +1 -1
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-schemes.d.ts +3 -2
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-schemes.d.ts.map +1 -1
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-schemes.js +3 -3
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-schemes.js.map +1 -1
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-value.d.ts +10 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-value.d.ts.map +1 -1
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-value.js +26 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-value.js.map +1 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-decisions.d.ts +36 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-decisions.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-decisions.js +39 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-decisions.js.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-event.d.ts +58 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-event.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-event.js +58 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-event.js.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-invocation.d.ts +36 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-invocation.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-invocation.js +52 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-invocation.js.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-policy.d.ts +27 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-policy.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-policy.js +56 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-policy.js.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-response.d.ts +52 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-response.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-response.js +112 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-response.js.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.d.ts +60 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.js +64 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.js.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-jwt-route-authorizer.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-jwt-route-authorizer.js +10 -5
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-jwt-route-authorizer.js.map +1 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-request-route-authorizer.d.ts +42 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-request-route-authorizer.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-request-route-authorizer.js +57 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-request-route-authorizer.js.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorizer.d.ts +10 -2
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorizer.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorizer.js +10 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorizer.js.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.d.ts +7 -14
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.js +23 -63
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.js.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.d.ts +14 -7
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.js +12 -4
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.js.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.d.ts +46 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.js +70 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.js.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-refusal-response.d.ts +18 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-refusal-response.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-refusal-response.js +30 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-refusal-response.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +19 -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 +30 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.d.ts +61 -0
- package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -0
- package/dist/service/aws/sim-aws-service-accessors.js +71 -0
- package/dist/service/aws/sim-aws-service-accessors.js.map +1 -0
- package/dist/service/aws/sim-aws.d.ts +10 -46
- package/dist/service/aws/sim-aws.d.ts.map +1 -1
- package/dist/service/aws/sim-aws.js +12 -60
- package/dist/service/aws/sim-aws.js.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.d.ts +29 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.js +57 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-filter.d.ts +21 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-filter.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-filter.js +38 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-filter.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/error/sim-cdk-bucket-notification-error.d.ts +11 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/error/sim-cdk-bucket-notification-error.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/error/sim-cdk-bucket-notification-error.js +13 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/error/sim-cdk-bucket-notification-error.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.d.ts +48 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.js +105 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications-template.factory.d.ts +45 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications-template.factory.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications-template.factory.js +109 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications-template.factory.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.d.ts +27 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js +47 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js.map +1 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.d.ts +23 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.js +24 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.js.map +1 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js +18 -7
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js.map +1 -1
- package/dist/service/cloudformation/template/value/sim-cfn-value-shape.d.ts +45 -0
- package/dist/service/cloudformation/template/value/sim-cfn-value-shape.d.ts.map +1 -0
- package/dist/service/cloudformation/template/value/sim-cfn-value-shape.js +73 -0
- package/dist/service/cloudformation/template/value/sim-cfn-value-shape.js.map +1 -0
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-cancellation.d.ts +12 -0
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-cancellation.d.ts.map +1 -1
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-cancellation.js +15 -2
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-cancellation.js.map +1 -1
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-key-actions.d.ts.map +1 -1
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-key-actions.js +15 -3
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-key-actions.js.map +1 -1
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-put-action.d.ts.map +1 -1
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-put-action.js +2 -2
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-put-action.js.map +1 -1
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-update-action.d.ts.map +1 -1
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-update-action.js +6 -2
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-update-action.js.map +1 -1
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-write.d.ts +6 -2
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-write.d.ts.map +1 -1
- package/dist/service/dynamodb/command/transact/sim-dynamodb-transact-write.js.map +1 -1
- package/dist/service/dynamodb/table/sim-dynamodb-table-writes.d.ts +57 -0
- package/dist/service/dynamodb/table/sim-dynamodb-table-writes.d.ts.map +1 -0
- package/dist/service/dynamodb/table/sim-dynamodb-table-writes.js +72 -0
- package/dist/service/dynamodb/table/sim-dynamodb-table-writes.js.map +1 -0
- package/dist/service/dynamodb/table/sim-dynamodb-table.d.ts +9 -4
- package/dist/service/dynamodb/table/sim-dynamodb-table.d.ts.map +1 -1
- package/dist/service/dynamodb/table/sim-dynamodb-table.js +17 -13
- package/dist/service/dynamodb/table/sim-dynamodb-table.js.map +1 -1
- package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.d.ts +56 -0
- package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.js +59 -0
- package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.js.map +1 -0
- package/dist/service/lambda/function/policy/sim-lambda-permission.d.ts +13 -2
- package/dist/service/lambda/function/policy/sim-lambda-permission.d.ts.map +1 -1
- package/dist/service/lambda/function/policy/sim-lambda-permission.js +17 -4
- package/dist/service/lambda/function/policy/sim-lambda-permission.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.d.ts +39 -0
- package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.js +46 -0
- package/dist/service/s3/bucket/notification/sim-s3-lambda-notification.js.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.d.ts +27 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.js +88 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.js.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.d.ts +34 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.js +46 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.js.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts +18 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.js +50 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.js.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-filter.d.ts +42 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-filter.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-filter.js +91 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-filter.js.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.d.ts +16 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.js +28 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-overlap.js.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.d.ts +13 -0
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js +37 -0
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js.map +1 -0
- package/dist/service/s3/bucket/sim-s3-bucket.d.ts +24 -0
- package/dist/service/s3/bucket/sim-s3-bucket.d.ts.map +1 -1
- package/dist/service/s3/bucket/sim-s3-bucket.js +31 -1
- package/dist/service/s3/bucket/sim-s3-bucket.js.map +1 -1
- package/dist/service/s3/cfn/bucket/error/sim-cfn-s3-bucket-error.d.ts +20 -0
- package/dist/service/s3/cfn/bucket/error/sim-cfn-s3-bucket-error.d.ts.map +1 -0
- package/dist/service/s3/cfn/bucket/error/sim-cfn-s3-bucket-error.js +24 -0
- package/dist/service/s3/cfn/bucket/error/sim-cfn-s3-bucket-error.js.map +1 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.d.ts +33 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.d.ts.map +1 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.js +82 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.js.map +1 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-filter.d.ts +22 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-filter.d.ts.map +1 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-filter.js +54 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-filter.js.map +1 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-handler.resources.d.ts +26 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-handler.resources.d.ts.map +1 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-handler.resources.js +60 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-handler.resources.js.map +1 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-template.factory.d.ts +44 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-template.factory.d.ts.map +1 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-template.factory.js +67 -0
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-template.factory.js.map +1 -0
- package/dist/service/s3/cfn/bucket/public-access/sim-cfn-s3-bucket-public-access-configuration.d.ts +24 -0
- package/dist/service/s3/cfn/bucket/public-access/sim-cfn-s3-bucket-public-access-configuration.d.ts.map +1 -0
- package/dist/service/s3/cfn/bucket/public-access/sim-cfn-s3-bucket-public-access-configuration.js +33 -0
- package/dist/service/s3/cfn/bucket/public-access/sim-cfn-s3-bucket-public-access-configuration.js.map +1 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-configurator.d.ts +36 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-configurator.d.ts.map +1 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-configurator.js +69 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-configurator.js.map +1 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.d.ts +9 -5
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.d.ts.map +1 -1
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.js +22 -62
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.js.map +1 -1
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.d.ts +33 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.d.ts.map +1 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.js +105 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.js.map +1 -0
- package/dist/service/s3/cfn/bucket/website/sim-cfn-s3-bucket-website-configuration.d.ts +29 -0
- package/dist/service/s3/cfn/bucket/website/sim-cfn-s3-bucket-website-configuration.d.ts.map +1 -0
- package/dist/service/s3/cfn/bucket/website/sim-cfn-s3-bucket-website-configuration.js +59 -0
- package/dist/service/s3/cfn/bucket/website/sim-cfn-s3-bucket-website-configuration.js.map +1 -0
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts +34 -0
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.d.ts.map +1 -0
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js +35 -0
- package/dist/service/s3/command/bucket/sim-s3-bucket-commands.js.map +1 -0
- package/dist/service/s3/command/bucket-policy/sim-s3-bucket-policy-commands.d.ts +23 -0
- package/dist/service/s3/command/bucket-policy/sim-s3-bucket-policy-commands.d.ts.map +1 -0
- package/dist/service/s3/command/bucket-policy/sim-s3-bucket-policy-commands.js +31 -0
- package/dist/service/s3/command/bucket-policy/sim-s3-bucket-policy-commands.js.map +1 -0
- package/dist/service/s3/command/delete-object/delete-object-authorizer.d.ts +33 -0
- package/dist/service/s3/command/delete-object/delete-object-authorizer.d.ts.map +1 -0
- package/dist/service/s3/command/delete-object/delete-object-authorizer.js +46 -0
- package/dist/service/s3/command/delete-object/delete-object-authorizer.js.map +1 -0
- package/dist/service/s3/command/delete-object/delete-object.command.d.ts +24 -0
- package/dist/service/s3/command/delete-object/delete-object.command.d.ts.map +1 -0
- package/dist/service/s3/command/delete-object/delete-object.command.js +2 -0
- package/dist/service/s3/command/delete-object/delete-object.command.js.map +1 -0
- package/dist/service/s3/command/delete-object/delete-object.handler.d.ts +38 -0
- package/dist/service/s3/command/delete-object/delete-object.handler.d.ts.map +1 -0
- package/dist/service/s3/command/delete-object/delete-object.handler.js +53 -0
- package/dist/service/s3/command/delete-object/delete-object.handler.js.map +1 -0
- package/dist/service/s3/command/delete-objects/delete-object-attempt.d.ts +12 -0
- package/dist/service/s3/command/delete-objects/delete-object-attempt.d.ts.map +1 -0
- package/dist/service/s3/command/delete-objects/delete-object-attempt.js +15 -0
- package/dist/service/s3/command/delete-objects/delete-object-attempt.js.map +1 -0
- package/dist/service/s3/command/delete-objects/delete-objects-key-removal.d.ts +28 -0
- package/dist/service/s3/command/delete-objects/delete-objects-key-removal.d.ts.map +1 -0
- package/dist/service/s3/command/delete-objects/delete-objects-key-removal.js +39 -0
- package/dist/service/s3/command/delete-objects/delete-objects-key-removal.js.map +1 -0
- package/dist/service/s3/command/delete-objects/delete-objects-outcome.d.ts +34 -0
- package/dist/service/s3/command/delete-objects/delete-objects-outcome.d.ts.map +1 -0
- package/dist/service/s3/command/delete-objects/delete-objects-outcome.js +64 -0
- package/dist/service/s3/command/delete-objects/delete-objects-outcome.js.map +1 -0
- package/dist/service/s3/command/delete-objects/delete-objects-request.d.ts +14 -0
- package/dist/service/s3/command/delete-objects/delete-objects-request.d.ts.map +1 -0
- package/dist/service/s3/command/delete-objects/delete-objects-request.js +34 -0
- package/dist/service/s3/command/delete-objects/delete-objects-request.js.map +1 -0
- package/dist/service/s3/command/delete-objects/delete-objects.command.d.ts +53 -0
- package/dist/service/s3/command/delete-objects/delete-objects.command.d.ts.map +1 -0
- package/dist/service/s3/command/delete-objects/delete-objects.command.js +2 -0
- package/dist/service/s3/command/delete-objects/delete-objects.command.js.map +1 -0
- package/dist/service/s3/command/delete-objects/delete-objects.handler.d.ts +36 -0
- package/dist/service/s3/command/delete-objects/delete-objects.handler.d.ts.map +1 -0
- package/dist/service/s3/command/delete-objects/delete-objects.handler.js +43 -0
- package/dist/service/s3/command/delete-objects/delete-objects.handler.js.map +1 -0
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts +34 -0
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts.map +1 -0
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.js +2 -0
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.js.map +1 -0
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.d.ts +35 -0
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.d.ts.map +1 -0
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.js +40 -0
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.handler.js.map +1 -0
- package/dist/service/s3/command/notification/sim-s3-notification-authorizer.d.ts +33 -0
- package/dist/service/s3/command/notification/sim-s3-notification-authorizer.d.ts.map +1 -0
- package/dist/service/s3/command/notification/sim-s3-notification-authorizer.js +50 -0
- package/dist/service/s3/command/notification/sim-s3-notification-authorizer.js.map +1 -0
- package/dist/service/s3/command/notification/sim-s3-notification-commands.d.ts +19 -0
- package/dist/service/s3/command/notification/sim-s3-notification-commands.d.ts.map +1 -0
- package/dist/service/s3/command/notification/sim-s3-notification-commands.js +24 -0
- package/dist/service/s3/command/notification/sim-s3-notification-commands.js.map +1 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.d.ts +31 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.d.ts.map +1 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.js +45 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.js.map +1 -0
- package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-commands.d.ts +23 -0
- package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-commands.d.ts.map +1 -0
- package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-commands.js +31 -0
- package/dist/service/s3/command/public-access-block/sim-s3-public-access-block-commands.js.map +1 -0
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts +64 -0
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts.map +1 -0
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.js +2 -0
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.js.map +1 -0
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.d.ts +39 -0
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.d.ts.map +1 -0
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.js +50 -0
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.handler.js.map +1 -0
- package/dist/service/s3/command/put-object/put-object-authorizer.d.ts +6 -1
- package/dist/service/s3/command/put-object/put-object-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/put-object/put-object-authorizer.js +5 -0
- package/dist/service/s3/command/put-object/put-object-authorizer.js.map +1 -1
- package/dist/service/s3/command/put-object/put-object.handler.d.ts +3 -0
- package/dist/service/s3/command/put-object/put-object.handler.d.ts.map +1 -1
- package/dist/service/s3/command/put-object/put-object.handler.js +6 -1
- package/dist/service/s3/command/put-object/put-object.handler.js.map +1 -1
- package/dist/service/s3/command/sim-s3-bucket-command-state.d.ts +23 -0
- package/dist/service/s3/command/sim-s3-bucket-command-state.d.ts.map +1 -0
- package/dist/service/s3/command/sim-s3-bucket-command-state.js +2 -0
- package/dist/service/s3/command/sim-s3-bucket-command-state.js.map +1 -0
- package/dist/service/s3/command/sim-s3-command.types.d.ts +4 -0
- package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
- package/dist/service/s3/command/sim-s3-request-options.d.ts +11 -0
- package/dist/service/s3/command/sim-s3-request-options.d.ts.map +1 -0
- package/dist/service/s3/command/sim-s3-request-options.js +2 -0
- package/dist/service/s3/command/sim-s3-request-options.js.map +1 -0
- package/dist/service/s3/error/sim-s3-notification.error.d.ts +24 -0
- package/dist/service/s3/error/sim-s3-notification.error.d.ts.map +1 -0
- package/dist/service/s3/error/sim-s3-notification.error.js +24 -0
- package/dist/service/s3/error/sim-s3-notification.error.js.map +1 -0
- package/dist/service/s3/error/sim-s3.error.d.ts +32 -0
- package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.js +38 -0
- package/dist/service/s3/error/sim-s3.error.js.map +1 -1
- package/dist/service/s3/index.d.ts +1 -0
- package/dist/service/s3/index.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts +48 -0
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js +78 -0
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js.map +1 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-lambda-notification-destination.d.ts +30 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-lambda-notification-destination.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-lambda-notification-destination.js +40 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-lambda-notification-destination.js.map +1 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts +24 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js +45 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js.map +1 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-functions.d.ts +23 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-functions.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-functions.js +2 -0
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-functions.js.map +1 -0
- package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.d.ts +20 -0
- package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.js +30 -0
- package/dist/service/s3/notification/destination/sim-s3-notification-destination-check.js.map +1 -0
- package/dist/service/s3/notification/destination/sim-s3-notification-destination.d.ts +50 -0
- package/dist/service/s3/notification/destination/sim-s3-notification-destination.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sim-s3-notification-destination.js +2 -0
- package/dist/service/s3/notification/destination/sim-s3-notification-destination.js.map +1 -0
- package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.d.ts +36 -0
- package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.js +48 -0
- package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.js.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-event-principal.d.ts +13 -0
- package/dist/service/s3/notification/event/sim-s3-event-principal.d.ts.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-event-principal.js +20 -0
- package/dist/service/s3/notification/event/sim-s3-event-principal.js.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-event-records.d.ts +21 -0
- package/dist/service/s3/notification/event/sim-s3-event-records.d.ts.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-event-records.js +90 -0
- package/dist/service/s3/notification/event/sim-s3-event-records.js.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-object-etag.d.ts +8 -0
- package/dist/service/s3/notification/event/sim-s3-object-etag.d.ts.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-object-etag.js +11 -0
- package/dist/service/s3/notification/event/sim-s3-object-etag.js.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-object-event-builder.d.ts +63 -0
- package/dist/service/s3/notification/event/sim-s3-object-event-builder.d.ts.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-object-event-builder.js +65 -0
- package/dist/service/s3/notification/event/sim-s3-object-event-builder.js.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-object-event.d.ts +42 -0
- package/dist/service/s3/notification/event/sim-s3-object-event.d.ts.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-object-event.js +38 -0
- package/dist/service/s3/notification/event/sim-s3-object-event.js.map +1 -0
- package/dist/service/s3/notification/sim-s3-notification-ceiling.d.ts +26 -0
- package/dist/service/s3/notification/sim-s3-notification-ceiling.d.ts.map +1 -0
- package/dist/service/s3/notification/sim-s3-notification-ceiling.js +39 -0
- package/dist/service/s3/notification/sim-s3-notification-ceiling.js.map +1 -0
- package/dist/service/s3/notification/sim-s3-notification-dispatcher.d.ts +33 -0
- package/dist/service/s3/notification/sim-s3-notification-dispatcher.d.ts.map +1 -0
- package/dist/service/s3/notification/sim-s3-notification-dispatcher.js +50 -0
- package/dist/service/s3/notification/sim-s3-notification-dispatcher.js.map +1 -0
- package/dist/service/s3/notification/sim-s3-notification-failures.d.ts +56 -0
- package/dist/service/s3/notification/sim-s3-notification-failures.d.ts.map +1 -0
- package/dist/service/s3/notification/sim-s3-notification-failures.js +80 -0
- package/dist/service/s3/notification/sim-s3-notification-failures.js.map +1 -0
- package/dist/service/s3/notification/sim-s3-notification-schedule.d.ts +31 -0
- package/dist/service/s3/notification/sim-s3-notification-schedule.d.ts.map +1 -0
- package/dist/service/s3/notification/sim-s3-notification-schedule.js +35 -0
- package/dist/service/s3/notification/sim-s3-notification-schedule.js.map +1 -0
- package/dist/service/s3/notification/sim-s3-object-notifier.d.ts +38 -0
- package/dist/service/s3/notification/sim-s3-object-notifier.d.ts.map +1 -0
- package/dist/service/s3/notification/sim-s3-object-notifier.js +46 -0
- package/dist/service/s3/notification/sim-s3-object-notifier.js.map +1 -0
- package/dist/service/s3/notification/sim-s3-object-sequencers.d.ts +19 -0
- package/dist/service/s3/notification/sim-s3-object-sequencers.d.ts.map +1 -0
- package/dist/service/s3/notification/sim-s3-object-sequencers.js +24 -0
- package/dist/service/s3/notification/sim-s3-object-sequencers.js.map +1 -0
- 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 +16 -0
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-controller.d.ts +8 -1
- package/dist/service/s3/serve/sim-s3-rest-controller.d.ts.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-controller.js +15 -27
- package/dist/service/s3/serve/sim-s3-rest-controller.js.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts +17 -0
- package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts.map +1 -0
- package/dist/service/s3/serve/sim-s3-rest-object-reader.js +40 -0
- package/dist/service/s3/serve/sim-s3-rest-object-reader.js.map +1 -0
- package/dist/service/s3/serve/sim-s3-rest-refusal.js +2 -2
- package/dist/service/s3/serve/sim-s3-rest-refusal.js.map +1 -1
- package/dist/service/s3/sim-s3-commands.d.ts +51 -0
- package/dist/service/s3/sim-s3-commands.d.ts.map +1 -0
- package/dist/service/s3/sim-s3-commands.js +49 -0
- package/dist/service/s3/sim-s3-commands.js.map +1 -0
- package/dist/service/s3/sim-s3.d.ts +39 -27
- package/dist/service/s3/sim-s3.d.ts.map +1 -1
- package/dist/service/s3/sim-s3.js +50 -20
- package/dist/service/s3/sim-s3.js.map +1 -1
- package/dist/service/s3/storage/filesystem/s3-filesystem-object-keys.d.ts +27 -0
- package/dist/service/s3/storage/filesystem/s3-filesystem-object-keys.d.ts.map +1 -0
- package/dist/service/s3/storage/filesystem/s3-filesystem-object-keys.js +55 -0
- package/dist/service/s3/storage/filesystem/s3-filesystem-object-keys.js.map +1 -0
- package/dist/service/s3/storage/filesystem/s3-filesystem-storage.d.ts +11 -2
- package/dist/service/s3/storage/filesystem/s3-filesystem-storage.d.ts.map +1 -1
- package/dist/service/s3/storage/filesystem/s3-filesystem-storage.js +23 -33
- package/dist/service/s3/storage/filesystem/s3-filesystem-storage.js.map +1 -1
- package/dist/service/s3/storage/s3-bucket-storage.d.ts +8 -0
- package/dist/service/s3/storage/s3-bucket-storage.d.ts.map +1 -1
- package/dist/service/s3/storage/s3-memory-storage.d.ts +7 -0
- package/dist/service/s3/storage/s3-memory-storage.d.ts.map +1 -1
- package/dist/service/s3/storage/s3-memory-storage.js +9 -0
- package/dist/service/s3/storage/s3-memory-storage.js.map +1 -1
- package/dist/service/sqs/cfn/queue-policy/sim-cfn-sqs-queue-policy-creator.d.ts +42 -0
- package/dist/service/sqs/cfn/queue-policy/sim-cfn-sqs-queue-policy-creator.d.ts.map +1 -0
- package/dist/service/sqs/cfn/queue-policy/sim-cfn-sqs-queue-policy-creator.js +79 -0
- package/dist/service/sqs/cfn/queue-policy/sim-cfn-sqs-queue-policy-creator.js.map +1 -0
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.d.ts +3 -3
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.d.ts.map +1 -1
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.js +10 -3
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.js.map +1 -1
- package/dist/service/sqs/command/authorize/sim-sqs-authorizer.d.ts +23 -8
- package/dist/service/sqs/command/authorize/sim-sqs-authorizer.d.ts.map +1 -1
- package/dist/service/sqs/command/authorize/sim-sqs-authorizer.js +35 -13
- package/dist/service/sqs/command/authorize/sim-sqs-authorizer.js.map +1 -1
- package/dist/service/sqs/command/authorize/sim-sqs-condition-context.d.ts +13 -0
- package/dist/service/sqs/command/authorize/sim-sqs-condition-context.d.ts.map +1 -0
- package/dist/service/sqs/command/authorize/sim-sqs-condition-context.js +17 -0
- package/dist/service/sqs/command/authorize/sim-sqs-condition-context.js.map +1 -0
- package/dist/service/sqs/command/authorize/sim-sqs-queue-resource-policies.d.ts +12 -0
- package/dist/service/sqs/command/authorize/sim-sqs-queue-resource-policies.d.ts.map +1 -0
- package/dist/service/sqs/command/authorize/sim-sqs-queue-resource-policies.js +25 -0
- package/dist/service/sqs/command/authorize/sim-sqs-queue-resource-policies.js.map +1 -0
- package/dist/service/sqs/command/message/sim-sqs-change-message-visibility.d.ts +2 -5
- package/dist/service/sqs/command/message/sim-sqs-change-message-visibility.d.ts.map +1 -1
- package/dist/service/sqs/command/message/sim-sqs-change-message-visibility.js +1 -1
- package/dist/service/sqs/command/message/sim-sqs-change-message-visibility.js.map +1 -1
- package/dist/service/sqs/command/message/sim-sqs-delete-message-commands.d.ts +3 -6
- package/dist/service/sqs/command/message/sim-sqs-delete-message-commands.d.ts.map +1 -1
- package/dist/service/sqs/command/message/sim-sqs-delete-message-commands.js +2 -2
- package/dist/service/sqs/command/message/sim-sqs-delete-message-commands.js.map +1 -1
- package/dist/service/sqs/command/message/sim-sqs-receive-message.d.ts +2 -5
- package/dist/service/sqs/command/message/sim-sqs-receive-message.d.ts.map +1 -1
- package/dist/service/sqs/command/message/sim-sqs-receive-message.js +1 -1
- package/dist/service/sqs/command/message/sim-sqs-receive-message.js.map +1 -1
- package/dist/service/sqs/command/message/sim-sqs-send-message-commands.d.ts +3 -6
- package/dist/service/sqs/command/message/sim-sqs-send-message-commands.d.ts.map +1 -1
- package/dist/service/sqs/command/message/sim-sqs-send-message-commands.js +2 -2
- package/dist/service/sqs/command/message/sim-sqs-send-message-commands.js.map +1 -1
- package/dist/service/sqs/command/queue/sim-sqs-create-queue.d.ts +2 -5
- package/dist/service/sqs/command/queue/sim-sqs-create-queue.d.ts.map +1 -1
- package/dist/service/sqs/command/queue/sim-sqs-create-queue.js +1 -1
- package/dist/service/sqs/command/queue/sim-sqs-create-queue.js.map +1 -1
- package/dist/service/sqs/command/queue/sim-sqs-queue-access.d.ts +22 -14
- package/dist/service/sqs/command/queue/sim-sqs-queue-access.d.ts.map +1 -1
- package/dist/service/sqs/command/queue/sim-sqs-queue-access.js +31 -20
- package/dist/service/sqs/command/queue/sim-sqs-queue-access.js.map +1 -1
- package/dist/service/sqs/command/queue/sim-sqs-queue-attribute-commands.d.ts +4 -7
- package/dist/service/sqs/command/queue/sim-sqs-queue-attribute-commands.d.ts.map +1 -1
- package/dist/service/sqs/command/queue/sim-sqs-queue-attribute-commands.js +3 -3
- package/dist/service/sqs/command/queue/sim-sqs-queue-attribute-commands.js.map +1 -1
- package/dist/service/sqs/command/queue/sim-sqs-queue-commands.d.ts +4 -7
- package/dist/service/sqs/command/queue/sim-sqs-queue-commands.d.ts.map +1 -1
- package/dist/service/sqs/command/queue/sim-sqs-queue-commands.js +3 -3
- package/dist/service/sqs/command/queue/sim-sqs-queue-commands.js.map +1 -1
- package/dist/service/sqs/command/queue/sim-sqs-unsimulated-queue-input.d.ts +4 -1
- package/dist/service/sqs/command/queue/sim-sqs-unsimulated-queue-input.d.ts.map +1 -1
- package/dist/service/sqs/command/queue/sim-sqs-unsimulated-queue-input.js +4 -1
- package/dist/service/sqs/command/queue/sim-sqs-unsimulated-queue-input.js.map +1 -1
- package/dist/service/sqs/command/sim-sqs-request-options.d.ts +31 -0
- package/dist/service/sqs/command/sim-sqs-request-options.d.ts.map +1 -0
- package/dist/service/sqs/command/sim-sqs-request-options.js +10 -0
- package/dist/service/sqs/command/sim-sqs-request-options.js.map +1 -0
- package/dist/service/sqs/index.d.ts +3 -1
- package/dist/service/sqs/index.d.ts.map +1 -1
- package/dist/service/sqs/index.js +2 -0
- package/dist/service/sqs/index.js.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-names.js +4 -4
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-names.js.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-numbers.d.ts +8 -0
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-numbers.d.ts.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-numbers.js +21 -5
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-numbers.js.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-specs.d.ts +14 -2
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-specs.d.ts.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-specs.js +17 -2
- package/dist/service/sqs/queue/sim-sqs-queue-attribute-specs.js.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-attributes.d.ts +12 -14
- package/dist/service/sqs/queue/sim-sqs-queue-attributes.d.ts.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-attributes.js +24 -42
- package/dist/service/sqs/queue/sim-sqs-queue-attributes.js.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-json-attribute.d.ts +53 -0
- package/dist/service/sqs/queue/sim-sqs-queue-json-attribute.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-json-attribute.js +66 -0
- package/dist/service/sqs/queue/sim-sqs-queue-json-attribute.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-json-attributes.d.ts +40 -0
- package/dist/service/sqs/queue/sim-sqs-queue-json-attributes.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-json-attributes.js +65 -0
- package/dist/service/sqs/queue/sim-sqs-queue-json-attributes.js.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-policy.d.ts +33 -0
- package/dist/service/sqs/queue/sim-sqs-queue-policy.d.ts.map +1 -0
- package/dist/service/sqs/queue/sim-sqs-queue-policy.js +84 -0
- package/dist/service/sqs/queue/sim-sqs-queue-policy.js.map +1 -0
- package/dist/service/sqs/sim-sqs.d.ts +1 -4
- package/dist/service/sqs/sim-sqs.d.ts.map +1 -1
- package/dist/service/sqs/sim-sqs.js.map +1 -1
- package/package.json +1 -1
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-identity-source.d.ts +0 -31
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-identity-source.d.ts.map +0 -1
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-identity-source.js +0 -78
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-identity-source.js.map +0 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-integration-authorizer.d.ts +0 -42
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-integration-authorizer.d.ts.map +0 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-integration-authorizer.js +0 -49
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-integration-authorizer.js.map +0 -1
- package/dist/service/s3/command/sim-s3-command-handlers.d.ts +0 -91
- package/dist/service/s3/command/sim-s3-command-handlers.d.ts.map +0 -1
- package/dist/service/s3/command/sim-s3-command-handlers.js +0 -115
- package/dist/service/s3/command/sim-s3-command-handlers.js.map +0 -1
|
@@ -10,8 +10,9 @@ export interface SimHttpApiJwtConfigurationInput {
|
|
|
10
10
|
/**
|
|
11
11
|
* Minimal structural sim API Gateway v2 CreateAuthorizer command.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* `AuthorizerCredentialsArn` is absent here on purpose. It names a Role API
|
|
14
|
+
* Gateway assumes to invoke the authorizer function, and nothing here assumes
|
|
15
|
+
* one, so it is refused by name rather than accepted and ignored.
|
|
15
16
|
*
|
|
16
17
|
* https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/apigatewayv2/command/CreateAuthorizerCommand/
|
|
17
18
|
*/
|
|
@@ -24,6 +25,10 @@ export interface SimCreateAuthorizerCommandInput {
|
|
|
24
25
|
readonly AuthorizerType?: string | undefined;
|
|
25
26
|
readonly IdentitySource?: readonly string[] | undefined;
|
|
26
27
|
readonly JwtConfiguration?: SimHttpApiJwtConfigurationInput | undefined;
|
|
28
|
+
readonly AuthorizerUri?: string | undefined;
|
|
29
|
+
readonly AuthorizerPayloadFormatVersion?: string | undefined;
|
|
30
|
+
readonly EnableSimpleResponses?: boolean | undefined;
|
|
31
|
+
readonly AuthorizerResultTtlInSeconds?: number | undefined;
|
|
27
32
|
}
|
|
28
33
|
export interface SimCreateAuthorizerCommandOutput extends SimHttpApiAuthorizerView {
|
|
29
34
|
readonly $metadata: SimResponseMetadata;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorizer.command.d.ts","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/authorizer.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,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B;IAChF,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,KAAK,EAAE,6BAA6B,CAAC;CAC/C;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,KAAK,EAAE,SAAS,wBAAwB,EAAE,CAAC;IACpD,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,KAAK,EAAE,+BAA+B,CAAC;CACjD;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC"}
|
|
@@ -12,11 +12,10 @@ export declare class SimHttpApiAuthorizerCommands {
|
|
|
12
12
|
/**
|
|
13
13
|
* Handle a CreateAuthorizer command.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* every request.
|
|
15
|
+
* The two kinds of authorizer are configured by different halves of this
|
|
16
|
+
* input, and which half applies is settled by the reader for the type asked
|
|
17
|
+
* for, so an option written against the other kind is refused by name rather
|
|
18
|
+
* than accepted and never applied.
|
|
20
19
|
*/
|
|
21
20
|
createAuthorizer(command: SimCreateAuthorizerCommand, options?: SimApiGatewayV2RequestOptions): SimCreateAuthorizerCommandOutput;
|
|
22
21
|
/**
|
|
@@ -26,11 +25,11 @@ export declare class SimHttpApiAuthorizerCommands {
|
|
|
26
25
|
/**
|
|
27
26
|
* Handle a DeleteAuthorizer command.
|
|
28
27
|
*
|
|
29
|
-
* A route still pointing at the deleted authorizer keeps its
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
28
|
+
* A route still pointing at the deleted authorizer keeps its authorization
|
|
29
|
+
* type and refuses every request, since there is no longer anything to send
|
|
30
|
+
* the request through. What real API Gateway does with such a route is not
|
|
31
|
+
* established, so the route stays closed rather than being opened or
|
|
32
|
+
* repointed.
|
|
34
33
|
*/
|
|
35
34
|
deleteAuthorizer(command: SimDeleteAuthorizerCommand, options?: SimApiGatewayV2RequestOptions): SimDeleteAuthorizerCommandOutput;
|
|
36
35
|
}
|
package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-http-api-authorizer-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-http-api-authorizer-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAE9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EACV,0BAA0B,EAC1B,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAChC,wBAAwB,EACxB,8BAA8B,EAC/B,MAAM,yBAAyB,CAAC;AAsBjC;;GAEG;AACH,qBAAa,4BAA4B;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C,YAAY,UAAU,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAA;KAAE,EAE5D;IAED;;;;;;;OAOG;IACH,gBAAgB,CACd,OAAO,EAAE,0BAA0B,EACnC,OAAO,CAAC,EAAE,6BAA6B,GACtC,gCAAgC,CA2BlC;IAED;;OAEG;IACH,cAAc,CACZ,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,6BAA6B,GACtC,8BAA8B,CAiBhC;IAED;;;;;;;;OAQG;IACH,gBAAgB,CACd,OAAO,EAAE,0BAA0B,EACnC,OAAO,CAAC,EAAE,6BAA6B,GACtC,gCAAgC,CA0BlC;CACF"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { SimHttpApiAuthorizer } from "../../api/authorizer/sim-http-api-authorizer.js";
|
|
2
1
|
import { SimApiGatewayV2NotFound } from "../../error/sim-api-gateway-v2.error.js";
|
|
3
2
|
import { SimApiGatewayV2UnsimulatedInput } from "../sim-api-gateway-v2-unsimulated-input.js";
|
|
4
|
-
import {
|
|
3
|
+
import { simHttpApiAuthorizerInput } from "./sim-http-api-authorizer-input.js";
|
|
5
4
|
const authorizersPath = "/authorizers";
|
|
6
5
|
const acceptedCreateAuthorizerOptions = [
|
|
7
6
|
"ApiId",
|
|
@@ -9,7 +8,15 @@ const acceptedCreateAuthorizerOptions = [
|
|
|
9
8
|
"AuthorizerType",
|
|
10
9
|
"IdentitySource",
|
|
11
10
|
"JwtConfiguration",
|
|
11
|
+
"AuthorizerUri",
|
|
12
|
+
"AuthorizerPayloadFormatVersion",
|
|
13
|
+
"EnableSimpleResponses",
|
|
14
|
+
"AuthorizerResultTtlInSeconds",
|
|
12
15
|
];
|
|
16
|
+
/**
|
|
17
|
+
* The authorizer types simulated.
|
|
18
|
+
*/
|
|
19
|
+
const simulatedAuthorizerTypes = ["JWT", "REQUEST"];
|
|
13
20
|
/**
|
|
14
21
|
* The commands addressing the authorizers of an API.
|
|
15
22
|
*/
|
|
@@ -21,36 +28,27 @@ export class SimHttpApiAuthorizerCommands {
|
|
|
21
28
|
/**
|
|
22
29
|
* Handle a CreateAuthorizer command.
|
|
23
30
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* every request.
|
|
31
|
+
* The two kinds of authorizer are configured by different halves of this
|
|
32
|
+
* input, and which half applies is settled by the reader for the type asked
|
|
33
|
+
* for, so an option written against the other kind is refused by name rather
|
|
34
|
+
* than accepted and never applied.
|
|
29
35
|
*/
|
|
30
36
|
createAuthorizer(command, options) {
|
|
31
37
|
const { input } = command;
|
|
32
38
|
const unsimulated = new SimApiGatewayV2UnsimulatedInput("CreateAuthorizer");
|
|
33
39
|
unsimulated.refuseUnaccepted(input, acceptedCreateAuthorizerOptions);
|
|
34
40
|
const apiId = unsimulated.require("ApiId", input.ApiId);
|
|
35
|
-
|
|
41
|
+
unsimulated.require("Name", input.Name);
|
|
36
42
|
unsimulated.require("AuthorizerType", input.AuthorizerType);
|
|
37
|
-
unsimulated.
|
|
38
|
-
|
|
39
|
-
const authorizerInput = new SimHttpApiJwtAuthorizerInput(input);
|
|
40
|
-
const identitySource = authorizerInput.identitySource();
|
|
41
|
-
const jwtConfiguration = authorizerInput.jwtConfiguration();
|
|
43
|
+
unsimulated.refuseUnlessOneOf("AuthorizerType", input.AuthorizerType, simulatedAuthorizerTypes, "an HTTP API has these two kinds of authorizer and no others");
|
|
44
|
+
const authorizerInput = simHttpApiAuthorizerInput(input);
|
|
42
45
|
const api = this.access.api({
|
|
43
46
|
method: "POST",
|
|
44
47
|
apiId,
|
|
45
48
|
childPath: authorizersPath,
|
|
46
49
|
caller: options?.caller,
|
|
47
50
|
});
|
|
48
|
-
const authorizer =
|
|
49
|
-
authorizerId: api.authorizers.allocateId(),
|
|
50
|
-
name,
|
|
51
|
-
identitySource,
|
|
52
|
-
jwtConfiguration,
|
|
53
|
-
});
|
|
51
|
+
const authorizer = authorizerInput.read(api.authorizers.allocateId());
|
|
54
52
|
api.authorizers.add(authorizer);
|
|
55
53
|
return { ...authorizer.view(), $metadata: {} };
|
|
56
54
|
}
|
|
@@ -76,11 +74,11 @@ export class SimHttpApiAuthorizerCommands {
|
|
|
76
74
|
/**
|
|
77
75
|
* Handle a DeleteAuthorizer command.
|
|
78
76
|
*
|
|
79
|
-
* A route still pointing at the deleted authorizer keeps its
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
77
|
+
* A route still pointing at the deleted authorizer keeps its authorization
|
|
78
|
+
* type and refuses every request, since there is no longer anything to send
|
|
79
|
+
* the request through. What real API Gateway does with such a route is not
|
|
80
|
+
* established, so the route stays closed rather than being opened or
|
|
81
|
+
* repointed.
|
|
84
82
|
*/
|
|
85
83
|
deleteAuthorizer(command, options) {
|
|
86
84
|
const unsimulated = new SimApiGatewayV2UnsimulatedInput("DeleteAuthorizer");
|
package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-http-api-authorizer-commands.js","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sim-http-api-authorizer-commands.js","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF,OAAO,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAU7F,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAE/E,MAAM,eAAe,GAAG,cAAc,CAAC;AAEvC,MAAM,+BAA+B,GAAG;IACtC,OAAO;IACP,MAAM;IACN,gBAAgB;IAChB,gBAAgB;IAChB,kBAAkB;IAClB,eAAe;IACf,gCAAgC;IAChC,uB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C,YAAY,CAC3B,CAAC;QAEF,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;YAC1B,MAAM,EAAE,QAAQ;YAChB,KAAK;YACL,SAAS,EAAE,GAAG,eAAe,IAAI,YAAY,EAAE;YAC/C,MAAM,EAAE,OAAO,EAAE,MAAM;SACxB,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAEtD,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;YAC7B,MAAM,IAAI,uBAAuB,CAC/B,yBAAyB,YAAY,WAAW,KAAK,EAAE,CACxD,CAAC;QACJ,CAAC;QAED,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QAEhD,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SimHttpApiAuthorizer, SimHttpApiAuthorizerId } from "../../api/authorizer/sim-http-api-authorizer.js";
|
|
2
|
+
import type { SimCreateAuthorizerCommandInput } from "./authorizer.command.js";
|
|
3
|
+
/**
|
|
4
|
+
* Reads one kind of authorizer out of a CreateAuthorizer input.
|
|
5
|
+
*
|
|
6
|
+
* The two kinds are configured by different halves of the same input, so each
|
|
7
|
+
* reader states what its own kind requires and refuses what belongs to the
|
|
8
|
+
* other, rather than the command handler knowing both.
|
|
9
|
+
*/
|
|
10
|
+
export interface SimHttpApiAuthorizerInput {
|
|
11
|
+
read(authorizerId: SimHttpApiAuthorizerId): SimHttpApiAuthorizer;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The reader for the kind of authorizer this input asks for.
|
|
15
|
+
*
|
|
16
|
+
* The type itself is checked by the command before this is reached, so
|
|
17
|
+
* anything that is not `REQUEST` here is `JWT`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function simHttpApiAuthorizerInput(input: SimCreateAuthorizerCommandInput): SimHttpApiAuthorizerInput;
|
|
20
|
+
//# sourceMappingURL=sim-http-api-authorizer-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-authorizer-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,iDAAiD,CAAC;AACzD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAI/E;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,YAAY,EAAE,sBAAsB,GAAG,oBAAoB,CAAC;CAClE;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,+BAA+B,GACrC,yBAAyB,CAM3B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SimHttpApiJwtAuthorizerInput } from "./sim-http-api-jwt-authorizer-input.js";
|
|
2
|
+
import { SimHttpApiRequestAuthorizerInput } from "./sim-http-api-request-authorizer-input.js";
|
|
3
|
+
/**
|
|
4
|
+
* The reader for the kind of authorizer this input asks for.
|
|
5
|
+
*
|
|
6
|
+
* The type itself is checked by the command before this is reached, so
|
|
7
|
+
* anything that is not `REQUEST` here is `JWT`.
|
|
8
|
+
*/
|
|
9
|
+
export function simHttpApiAuthorizerInput(input) {
|
|
10
|
+
if (input.AuthorizerType === "REQUEST") {
|
|
11
|
+
return new SimHttpApiRequestAuthorizerInput(input);
|
|
12
|
+
}
|
|
13
|
+
return new SimHttpApiJwtAuthorizerInput(input);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=sim-http-api-authorizer-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-authorizer-input.js","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-input.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AAa9F;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CACvC,KAAsC;IAEtC,IAAI,KAAK,CAAC,cAAc,KAAK,SAAS,EAAE,CAAC;QACvC,OAAO,IAAI,gCAAgC,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;IAED,OAAO,IAAI,4BAA4B,CAAC,KAAK,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The value shapes an authorizer option arrives in.
|
|
3
|
+
*/
|
|
4
|
+
type SimHttpApiAuthorizerOption = string | number | boolean | object | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* Refuses an option belonging to the other kind of authorizer.
|
|
7
|
+
*
|
|
8
|
+
* The two kinds are configured by different halves of one command input, and
|
|
9
|
+
* API Gateway refuses an option written against the kind that has no use for
|
|
10
|
+
* it. Accepting it here would make an authorizer look configured for something
|
|
11
|
+
* nothing would apply.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SimHttpApiAuthorizerOptions {
|
|
14
|
+
private readonly authorizerType;
|
|
15
|
+
constructor(authorizerType: string);
|
|
16
|
+
/**
|
|
17
|
+
* Refuse an option this kind of authorizer does not take.
|
|
18
|
+
*/
|
|
19
|
+
refuse(option: string, value: SimHttpApiAuthorizerOption, reason: string): void;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=sim-http-api-authorizer-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-authorizer-options.d.ts","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-options.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,KAAK,0BAA0B,GAC7B,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAEjD;;;;;;;GAOG;AACH,qBAAa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IAExC,YAAY,cAAc,EAAE,MAAM,EAEjC;IAED;;OAEG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,0BAA0B,EACjC,MAAM,EAAE,MAAM,GACb,IAAI,CASN;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SimApiGatewayV2BadRequest } from "../../error/sim-api-gateway-v2.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* Refuses an option belonging to the other kind of authorizer.
|
|
4
|
+
*
|
|
5
|
+
* The two kinds are configured by different halves of one command input, and
|
|
6
|
+
* API Gateway refuses an option written against the kind that has no use for
|
|
7
|
+
* it. Accepting it here would make an authorizer look configured for something
|
|
8
|
+
* nothing would apply.
|
|
9
|
+
*/
|
|
10
|
+
export class SimHttpApiAuthorizerOptions {
|
|
11
|
+
authorizerType;
|
|
12
|
+
constructor(authorizerType) {
|
|
13
|
+
this.authorizerType = authorizerType;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Refuse an option this kind of authorizer does not take.
|
|
17
|
+
*/
|
|
18
|
+
refuse(option, value, reason) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
throw new SimApiGatewayV2BadRequest(`CreateAuthorizer ${option} is set on a ${this.authorizerType} ` +
|
|
23
|
+
`authorizer, ${reason}`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=sim-http-api-authorizer-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-authorizer-options.js","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAQpF;;;;;;;GAOG;AACH,MAAM,OAAO,2BAA2B;IACrB,cAAc,CAAS;IAExC,YAAY,cAAsB;QAChC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,MAAc,EACd,KAAiC,EACjC,MAAc;QAEd,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO;QACT,CAAC;QAED,MAAM,IAAI,yBAAyB,CACjC,oBAAoB,MAAM,gBAAgB,IAAI,CAAC,cAAc,GAAG;YAC9D,eAAe,MAAM,EAAE,CAC1B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { SimHttpApiAuthorizerId } from "../../api/authorizer/sim-http-api-authorizer.js";
|
|
2
|
+
import { SimHttpApiJwtAuthorizer } from "../../api/authorizer/sim-http-api-jwt-authorizer.js";
|
|
3
3
|
import type { SimCreateAuthorizerCommandInput } from "./authorizer.command.js";
|
|
4
|
+
import type { SimHttpApiAuthorizerInput } from "./sim-http-api-authorizer-input.js";
|
|
4
5
|
/**
|
|
5
6
|
* Reads the two structured inputs a JWT authorizer is created from.
|
|
6
7
|
*
|
|
@@ -9,17 +10,34 @@ import type { SimCreateAuthorizerCommandInput } from "./authorizer.command.js";
|
|
|
9
10
|
* and an authorizer with no identity source would look for the token nowhere,
|
|
10
11
|
* and both of those look like a signing problem to whoever hits the route.
|
|
11
12
|
*/
|
|
12
|
-
export declare class SimHttpApiJwtAuthorizerInput {
|
|
13
|
+
export declare class SimHttpApiJwtAuthorizerInput implements SimHttpApiAuthorizerInput {
|
|
13
14
|
private readonly input;
|
|
15
|
+
private readonly options;
|
|
16
|
+
private readonly identitySourceParser;
|
|
14
17
|
constructor(input: SimCreateAuthorizerCommandInput);
|
|
18
|
+
/**
|
|
19
|
+
* The JWT authorizer this input asks for.
|
|
20
|
+
*/
|
|
21
|
+
read(authorizerId: SimHttpApiAuthorizerId): SimHttpApiJwtAuthorizer;
|
|
22
|
+
/**
|
|
23
|
+
* Refuse the options only a Lambda `REQUEST` authorizer takes.
|
|
24
|
+
*
|
|
25
|
+
* Real API Gateway refuses each of these on a JWT authorizer too: there is
|
|
26
|
+
* no function to invoke, no event to build and no decision to cache.
|
|
27
|
+
*/
|
|
28
|
+
private refuseRequestOptions;
|
|
15
29
|
/**
|
|
16
30
|
* The one header or query string parameter the token is read from.
|
|
31
|
+
*
|
|
32
|
+
* A JWT authorizer takes one source and API Gateway refuses a second, so the
|
|
33
|
+
* rule is here rather than on the command input a `REQUEST` authorizer takes
|
|
34
|
+
* a list through.
|
|
17
35
|
*/
|
|
18
|
-
identitySource
|
|
36
|
+
private identitySource;
|
|
19
37
|
/**
|
|
20
38
|
* The issuer this authorizer trusts and the audiences it accepts.
|
|
21
39
|
*/
|
|
22
|
-
jwtConfiguration
|
|
40
|
+
private jwtConfiguration;
|
|
23
41
|
private issuer;
|
|
24
42
|
/**
|
|
25
43
|
* The audiences the authorizer accepts.
|
package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-http-api-jwt-authorizer-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sim-http-api-jwt-authorizer-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAG9F,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAG9F,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAGpF;;;;;;;GAOG;AACH,qBAAa,4BAA6B,YAAW,yBAAyB;IAC5E,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkC;IACxD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0C;IAClE,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAwC;IAE7E,YAAY,KAAK,EAAE,+BAA+B,EAEjD;IAED;;OAEG;IACH,IAAI,CAAC,YAAY,EAAE,sBAAsB,GAAG,uBAAuB,CASlE;IAED;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IA0B5B;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAsBtB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAexB,OAAO,CAAC,MAAM;IAUd;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ;CAWjB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SimHttpApiIdentitySourceParser } from "../../api/authorizer/identity/sim-http-api-identity-source-parser.js";
|
|
2
|
+
import { SimHttpApiJwtAuthorizer } from "../../api/authorizer/sim-http-api-jwt-authorizer.js";
|
|
2
3
|
import { SimHttpApiJwtConfiguration } from "../../api/authorizer/sim-http-api-jwt-configuration.js";
|
|
3
4
|
import { SimApiGatewayV2BadRequest } from "../../error/sim-api-gateway-v2.error.js";
|
|
5
|
+
import { SimHttpApiAuthorizerOptions } from "./sim-http-api-authorizer-options.js";
|
|
4
6
|
/**
|
|
5
7
|
* Reads the two structured inputs a JWT authorizer is created from.
|
|
6
8
|
*
|
|
@@ -11,11 +13,44 @@ import { SimApiGatewayV2BadRequest } from "../../error/sim-api-gateway-v2.error.
|
|
|
11
13
|
*/
|
|
12
14
|
export class SimHttpApiJwtAuthorizerInput {
|
|
13
15
|
input;
|
|
16
|
+
options = new SimHttpApiAuthorizerOptions("JWT");
|
|
17
|
+
identitySourceParser = new SimHttpApiIdentitySourceParser();
|
|
14
18
|
constructor(input) {
|
|
15
19
|
this.input = input;
|
|
16
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* The JWT authorizer this input asks for.
|
|
23
|
+
*/
|
|
24
|
+
read(authorizerId) {
|
|
25
|
+
this.refuseRequestOptions();
|
|
26
|
+
return new SimHttpApiJwtAuthorizer({
|
|
27
|
+
authorizerId,
|
|
28
|
+
name: this.input.Name ?? "",
|
|
29
|
+
identitySource: this.identitySource(),
|
|
30
|
+
jwtConfiguration: this.jwtConfiguration(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Refuse the options only a Lambda `REQUEST` authorizer takes.
|
|
35
|
+
*
|
|
36
|
+
* Real API Gateway refuses each of these on a JWT authorizer too: there is
|
|
37
|
+
* no function to invoke, no event to build and no decision to cache.
|
|
38
|
+
*/
|
|
39
|
+
refuseRequestOptions() {
|
|
40
|
+
this.options.refuse("AuthorizerUri", this.input.AuthorizerUri, "which names the function a REQUEST authorizer invokes, and a JWT " +
|
|
41
|
+
"authorizer invokes nothing");
|
|
42
|
+
this.options.refuse("AuthorizerPayloadFormatVersion", this.input.AuthorizerPayloadFormatVersion, "which is the format a REQUEST authorizer's event is built in, and a " +
|
|
43
|
+
"JWT authorizer builds no event");
|
|
44
|
+
this.options.refuse("EnableSimpleResponses", this.input.EnableSimpleResponses, "which chooses the shape a REQUEST authorizer answers in, and a JWT " +
|
|
45
|
+
"authorizer answers nothing");
|
|
46
|
+
this.options.refuse("AuthorizerResultTtlInSeconds", this.input.AuthorizerResultTtlInSeconds, "and a JWT authorizer caches nothing: every request is verified again");
|
|
47
|
+
}
|
|
17
48
|
/**
|
|
18
49
|
* The one header or query string parameter the token is read from.
|
|
50
|
+
*
|
|
51
|
+
* A JWT authorizer takes one source and API Gateway refuses a second, so the
|
|
52
|
+
* rule is here rather than on the command input a `REQUEST` authorizer takes
|
|
53
|
+
* a list through.
|
|
19
54
|
*/
|
|
20
55
|
identitySource() {
|
|
21
56
|
const sources = this.input.IdentitySource ?? [];
|
|
@@ -24,10 +59,12 @@ export class SimHttpApiJwtAuthorizerInput {
|
|
|
24
59
|
}
|
|
25
60
|
if (sources.length > 1) {
|
|
26
61
|
throw new SimApiGatewayV2BadRequest(`CreateAuthorizer IdentitySource has ${String(sources.length)} ` +
|
|
27
|
-
`entries:
|
|
28
|
-
`
|
|
62
|
+
`entries: a JWT authorizer takes one, and only the first would be ` +
|
|
63
|
+
`read here`);
|
|
29
64
|
}
|
|
30
|
-
|
|
65
|
+
// The request-only forms: a JWT authorizer reads the token the client
|
|
66
|
+
// sent, so `$context.routeKey` is refused for it as it is on AWS.
|
|
67
|
+
return this.identitySourceParser.requestSource(sources[0] ?? "");
|
|
31
68
|
}
|
|
32
69
|
/**
|
|
33
70
|
* The issuer this authorizer trusts and the audiences it accepts.
|
package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-http-api-jwt-authorizer-input.js","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-http-api-jwt-authorizer-input.js","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sEAAsE,CAAC;AAEtH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAGpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAEnF;;;;;;;GAOG;AACH,MAAM,OAAO,4BAA4B;IACtB,KAAK,CAAkC;IACvC,OAAO,GAAG,IAAI,2BAA2B,CAAC,KA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ED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { SimHttpApiAuthorizerId } from "../../api/authorizer/sim-http-api-authorizer.js";
|
|
2
|
+
import { SimHttpApiRequestAuthorizer } from "../../api/authorizer/sim-http-api-request-authorizer.js";
|
|
3
|
+
import type { SimCreateAuthorizerCommandInput } from "./authorizer.command.js";
|
|
4
|
+
import type { SimHttpApiAuthorizerInput } from "./sim-http-api-authorizer-input.js";
|
|
5
|
+
/**
|
|
6
|
+
* Reads the inputs a Lambda `REQUEST` authorizer is created from.
|
|
7
|
+
*
|
|
8
|
+
* The function and the payload format are both required rather than defaulted.
|
|
9
|
+
* An authorizer naming no function has nothing to ask, and API Gateway itself
|
|
10
|
+
* defaults the payload format to `1.0`, which builds a different event and is
|
|
11
|
+
* refused across this simulation, so it is named rather than assumed.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SimHttpApiRequestAuthorizerInput implements SimHttpApiAuthorizerInput {
|
|
14
|
+
private readonly input;
|
|
15
|
+
private readonly options;
|
|
16
|
+
private readonly identitySourceParser;
|
|
17
|
+
constructor(input: SimCreateAuthorizerCommandInput);
|
|
18
|
+
/**
|
|
19
|
+
* The `REQUEST` authorizer this input asks for.
|
|
20
|
+
*/
|
|
21
|
+
read(authorizerId: SimHttpApiAuthorizerId): SimHttpApiRequestAuthorizer;
|
|
22
|
+
/**
|
|
23
|
+
* The function this authorizer invokes.
|
|
24
|
+
*
|
|
25
|
+
* An `AuthorizerUri` is written in the same wrapped form an integration URI
|
|
26
|
+
* is, so it is read by the same parser and refused for the same reasons.
|
|
27
|
+
*/
|
|
28
|
+
private lambdaUri;
|
|
29
|
+
/**
|
|
30
|
+
* Require payload format 2.0 by name.
|
|
31
|
+
*
|
|
32
|
+
* A `REQUEST` authorizer with no payload format is a `1.0` authorizer on
|
|
33
|
+
* real AWS, which builds a different event and answers in a different shape,
|
|
34
|
+
* so an unstated format is refused rather than read as the one simulated.
|
|
35
|
+
*/
|
|
36
|
+
private requirePayloadFormatVersion;
|
|
37
|
+
/**
|
|
38
|
+
* How long this authorizer's decisions are held for.
|
|
39
|
+
*
|
|
40
|
+
* Zero, and saying nothing, both mean no caching, which is what AWS defaults
|
|
41
|
+
* an authorizer to. AWS accepts a whole number of seconds up to an hour, so
|
|
42
|
+
* anything else is refused here rather than held for a period no deployed
|
|
43
|
+
* authorizer could be configured with. That includes `NaN`, which no
|
|
44
|
+
* comparison refuses and which would otherwise hold a decision for ever.
|
|
45
|
+
*/
|
|
46
|
+
private resultTtlSeconds;
|
|
47
|
+
/**
|
|
48
|
+
* The identity sources every request has to carry before the function is
|
|
49
|
+
* invoked at all.
|
|
50
|
+
*
|
|
51
|
+
* At least one is required. An authorizer with none is invoked for every
|
|
52
|
+
* request on real AWS, including requests carrying nothing, and that is a
|
|
53
|
+
* different thing from the authorizer this simulation runs, so it is refused
|
|
54
|
+
* rather than treated as an authorizer nothing gates.
|
|
55
|
+
*/
|
|
56
|
+
private identitySources;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=sim-http-api-request-authorizer-input.d.ts.map
|
package/dist/service/apigatewayv2/command/authorizer/sim-http-api-request-authorizer-input.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-request-authorizer-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-request-authorizer-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAG9F,OAAO,EAEL,2BAA2B,EAC5B,MAAM,yDAAyD,CAAC;AAIjE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAQpF;;;;;;;GAOG;AACH,qBAAa,gCAAiC,YAAW,yBAAyB;IAChF,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkC;IACxD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA8C;IACtE,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAwC;IAE7E,YAAY,KAAK,EAAE,+BAA+B,EAEjD;IAED;;OAEG;IACH,IAAI,CAAC,YAAY,EAAE,sBAAsB,GAAG,2BAA2B,CAoBtE;IAED;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IAYjB;;;;;;OAMG;IACH,OAAO,CAAC,2BAA2B;IAoBnC;;;;;;;;OAQG;IACH,OAAO,CAAC,gBAAgB;IA0BxB;;;;;;;;OAQG;IACH,OAAO,CAAC,eAAe;CAexB"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { SimHttpApiIdentitySourceParser } from "../../api/authorizer/identity/sim-http-api-identity-source-parser.js";
|
|
2
|
+
import { SimHttpApiIdentitySources } from "../../api/authorizer/identity/sim-http-api-identity-sources.js";
|
|
3
|
+
import { simHttpApiAuthorizerPayloadFormatVersion, SimHttpApiRequestAuthorizer, } from "../../api/authorizer/sim-http-api-request-authorizer.js";
|
|
4
|
+
import { SimHttpApiLambdaUri } from "../../api/integration/sim-http-api-lambda-uri.js";
|
|
5
|
+
import { SimApiGatewayV2BadRequest } from "../../error/sim-api-gateway-v2.error.js";
|
|
6
|
+
import { SimApiGatewayV2UnsimulatedInput } from "../sim-api-gateway-v2-unsimulated-input.js";
|
|
7
|
+
import { SimHttpApiAuthorizerOptions } from "./sim-http-api-authorizer-options.js";
|
|
8
|
+
/**
|
|
9
|
+
* The longest AWS holds a Lambda authorizer's decision for.
|
|
10
|
+
*/
|
|
11
|
+
const maximumResultTtlSeconds = 3600;
|
|
12
|
+
/**
|
|
13
|
+
* Reads the inputs a Lambda `REQUEST` authorizer is created from.
|
|
14
|
+
*
|
|
15
|
+
* The function and the payload format are both required rather than defaulted.
|
|
16
|
+
* An authorizer naming no function has nothing to ask, and API Gateway itself
|
|
17
|
+
* defaults the payload format to `1.0`, which builds a different event and is
|
|
18
|
+
* refused across this simulation, so it is named rather than assumed.
|
|
19
|
+
*/
|
|
20
|
+
export class SimHttpApiRequestAuthorizerInput {
|
|
21
|
+
input;
|
|
22
|
+
options = new SimHttpApiAuthorizerOptions("REQUEST");
|
|
23
|
+
identitySourceParser = new SimHttpApiIdentitySourceParser();
|
|
24
|
+
constructor(input) {
|
|
25
|
+
this.input = input;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The `REQUEST` authorizer this input asks for.
|
|
29
|
+
*/
|
|
30
|
+
read(authorizerId) {
|
|
31
|
+
this.options.refuse("JwtConfiguration", this.input.JwtConfiguration, "and a REQUEST authorizer verifies no token: its function decides");
|
|
32
|
+
this.requirePayloadFormatVersion();
|
|
33
|
+
// Read before the sources are parsed, so an authorizer asking to cache a
|
|
34
|
+
// decision it could not key is told that rather than told it needs a
|
|
35
|
+
// source for the reason an uncached authorizer needs one.
|
|
36
|
+
const resultTtlSeconds = this.resultTtlSeconds();
|
|
37
|
+
return new SimHttpApiRequestAuthorizer({
|
|
38
|
+
authorizerId,
|
|
39
|
+
name: this.input.Name ?? "",
|
|
40
|
+
lambdaUri: this.lambdaUri(),
|
|
41
|
+
identitySources: this.identitySources(),
|
|
42
|
+
enableSimpleResponses: this.input.EnableSimpleResponses ?? false,
|
|
43
|
+
resultTtlSeconds,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The function this authorizer invokes.
|
|
48
|
+
*
|
|
49
|
+
* An `AuthorizerUri` is written in the same wrapped form an integration URI
|
|
50
|
+
* is, so it is read by the same parser and refused for the same reasons.
|
|
51
|
+
*/
|
|
52
|
+
lambdaUri() {
|
|
53
|
+
const uri = this.input.AuthorizerUri;
|
|
54
|
+
if (uri === undefined || uri.length === 0) {
|
|
55
|
+
throw new SimApiGatewayV2BadRequest("CreateAuthorizer with AuthorizerType REQUEST requires AuthorizerUri");
|
|
56
|
+
}
|
|
57
|
+
return SimHttpApiLambdaUri.parseAuthorizerUri(uri);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Require payload format 2.0 by name.
|
|
61
|
+
*
|
|
62
|
+
* A `REQUEST` authorizer with no payload format is a `1.0` authorizer on
|
|
63
|
+
* real AWS, which builds a different event and answers in a different shape,
|
|
64
|
+
* so an unstated format is refused rather than read as the one simulated.
|
|
65
|
+
*/
|
|
66
|
+
requirePayloadFormatVersion() {
|
|
67
|
+
const version = this.input.AuthorizerPayloadFormatVersion;
|
|
68
|
+
if (version === undefined) {
|
|
69
|
+
throw new SimApiGatewayV2BadRequest("CreateAuthorizer with AuthorizerType REQUEST requires " +
|
|
70
|
+
"AuthorizerPayloadFormatVersion: AWS defaults it to '1.0', which " +
|
|
71
|
+
"builds a different event and is not simulated");
|
|
72
|
+
}
|
|
73
|
+
new SimApiGatewayV2UnsimulatedInput("CreateAuthorizer").refuseUnless("AuthorizerPayloadFormatVersion", version, simHttpApiAuthorizerPayloadFormatVersion, "a 1.0 authorizer receives a different event and answers a policy " +
|
|
74
|
+
"against a method ARN, and none of that is built here");
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* How long this authorizer's decisions are held for.
|
|
78
|
+
*
|
|
79
|
+
* Zero, and saying nothing, both mean no caching, which is what AWS defaults
|
|
80
|
+
* an authorizer to. AWS accepts a whole number of seconds up to an hour, so
|
|
81
|
+
* anything else is refused here rather than held for a period no deployed
|
|
82
|
+
* authorizer could be configured with. That includes `NaN`, which no
|
|
83
|
+
* comparison refuses and which would otherwise hold a decision for ever.
|
|
84
|
+
*/
|
|
85
|
+
resultTtlSeconds() {
|
|
86
|
+
const ttl = this.input.AuthorizerResultTtlInSeconds ?? 0;
|
|
87
|
+
if (!Number.isSafeInteger(ttl) ||
|
|
88
|
+
ttl < 0 ||
|
|
89
|
+
ttl > maximumResultTtlSeconds) {
|
|
90
|
+
throw new SimApiGatewayV2BadRequest(`CreateAuthorizer AuthorizerResultTtlInSeconds is ${String(ttl)}: AWS ` +
|
|
91
|
+
`holds an authorizer's decision for a whole number of seconds ` +
|
|
92
|
+
`between 0 and ${String(maximumResultTtlSeconds)}`);
|
|
93
|
+
}
|
|
94
|
+
if (ttl > 0 && (this.input.IdentitySource ?? []).length === 0) {
|
|
95
|
+
throw new SimApiGatewayV2BadRequest("CreateAuthorizer AuthorizerResultTtlInSeconds is set on an " +
|
|
96
|
+
"authorizer with no IdentitySource: a cached decision is keyed on " +
|
|
97
|
+
"the identity source values, so AWS has nothing to key it on");
|
|
98
|
+
}
|
|
99
|
+
return ttl;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The identity sources every request has to carry before the function is
|
|
103
|
+
* invoked at all.
|
|
104
|
+
*
|
|
105
|
+
* At least one is required. An authorizer with none is invoked for every
|
|
106
|
+
* request on real AWS, including requests carrying nothing, and that is a
|
|
107
|
+
* different thing from the authorizer this simulation runs, so it is refused
|
|
108
|
+
* rather than treated as an authorizer nothing gates.
|
|
109
|
+
*/
|
|
110
|
+
identitySources() {
|
|
111
|
+
const sources = this.input.IdentitySource ?? [];
|
|
112
|
+
if (sources.length === 0) {
|
|
113
|
+
throw new SimApiGatewayV2BadRequest("CreateAuthorizer requires IdentitySource: an authorizer with none " +
|
|
114
|
+
"is invoked for every request on AWS, including one carrying " +
|
|
115
|
+
"nothing, and that is not simulated");
|
|
116
|
+
}
|
|
117
|
+
return new SimHttpApiIdentitySources(sources.map((source) => this.identitySourceParser.parse(source)));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=sim-http-api-request-authorizer-input.js.map
|
package/dist/service/apigatewayv2/command/authorizer/sim-http-api-request-authorizer-input.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-request-authorizer-input.js","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/command/authorizer/sim-http-api-request-authorizer-input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sEAAsE,CAAC;AACtH,OAAO,EAAE,yBAAyB,EAAE,MAAM,gEA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