@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
package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { SimCfnServiceResourceFactory } from "../../factory/sim-cfn-resource-factory.type.js";
|
|
2
|
+
/**
|
|
3
|
+
* How one CDK custom Resource hands over its factory.
|
|
4
|
+
*
|
|
5
|
+
* Nothing is passed in, because a custom Resource names the Bucket or the
|
|
6
|
+
* function it acts on in its own properties and reads the Account and Region
|
|
7
|
+
* scope off the Resource being created.
|
|
8
|
+
*/
|
|
9
|
+
type SimCdkCustomResourceFactory = () => SimCfnServiceResourceFactory;
|
|
10
|
+
/**
|
|
11
|
+
* The CDK custom Resource types this simulator creates.
|
|
12
|
+
*
|
|
13
|
+
* CDK reaches several features through a `Custom::` Resource backed by its own
|
|
14
|
+
* Lambda function rather than through a CloudFormation Resource type, so a
|
|
15
|
+
* synthesized template contains them whether or not the app mentions a custom
|
|
16
|
+
* resource. Each entry here replaces the work that function would have done.
|
|
17
|
+
*
|
|
18
|
+
* A `Custom::` type with no entry is not created, which is what the resolver
|
|
19
|
+
* turns into an unsupported-Resource error.
|
|
20
|
+
*/
|
|
21
|
+
export declare const simCdkCustomResourceFactories: ReadonlyMap<string, SimCdkCustomResourceFactory>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=sim-cfn-custom-resource-factories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-custom-resource-factories.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAInG;;;;;;GAMG;AACH,KAAK,2BAA2B,GAAG,MAAM,4BAA4B,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,6BAA6B,EAAE,WAAW,CACrD,MAAM,EACN,2BAA2B,CAY3B,CAAC"}
|
package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SimCdkBucketDeploymentResourceFactory } from "../../../cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.js";
|
|
2
|
+
import { SimCdkBucketNotificationsResourceFactory } from "../../../cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js";
|
|
3
|
+
/**
|
|
4
|
+
* The CDK custom Resource types this simulator creates.
|
|
5
|
+
*
|
|
6
|
+
* CDK reaches several features through a `Custom::` Resource backed by its own
|
|
7
|
+
* Lambda function rather than through a CloudFormation Resource type, so a
|
|
8
|
+
* synthesized template contains them whether or not the app mentions a custom
|
|
9
|
+
* resource. Each entry here replaces the work that function would have done.
|
|
10
|
+
*
|
|
11
|
+
* A `Custom::` type with no entry is not created, which is what the resolver
|
|
12
|
+
* turns into an unsupported-Resource error.
|
|
13
|
+
*/
|
|
14
|
+
export const simCdkCustomResourceFactories = new Map([
|
|
15
|
+
[
|
|
16
|
+
"CDKBucketDeployment",
|
|
17
|
+
() => new SimCdkBucketDeploymentResourceFactory(),
|
|
18
|
+
],
|
|
19
|
+
[
|
|
20
|
+
"S3BucketNotifications",
|
|
21
|
+
() => new SimCdkBucketNotificationsResourceFactory(),
|
|
22
|
+
],
|
|
23
|
+
]);
|
|
24
|
+
//# sourceMappingURL=sim-cfn-custom-resource-factories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-custom-resource-factories.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qCAAqC,EAAE,MAAM,gEAAgE,CAAC;AACvH,OAAO,EAAE,wCAAwC,EAAE,MAAM,sEAAsE,CAAC;AAWhI;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAGtC,IAAI,GAAG,CAAC;IACV;QACE,qBAAqB;QACrB,GAAiC,EAAE,CACjC,IAAI,qCAAqC,EAAE;KAC9C;IACD;QACE,uBAAuB;QACvB,GAAiC,EAAE,CACjC,IAAI,wCAAwC,EAAE;KACjD;CACF,CAAC,CAAC"}
|
package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-service-resolver.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AAChG,OAAO,KAAK,EACV,mCAAmC,EACnC,4BAA4B,EAC7B,MAAM,gDAAgD,CAAC;AAIxD;;GAEG;AACH,wBAAgB,8CAA8C,CAC5D,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,wBAAwB,EAC5C,YAAY,EAAE,mCAAmC,GAChD,4BAA4B,
|
|
1
|
+
{"version":3,"file":"sim-cfn-service-resolver.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AAChG,OAAO,KAAK,EACV,mCAAmC,EACnC,4BAA4B,EAC7B,MAAM,gDAAgD,CAAC;AAIxD;;GAEG;AACH,wBAAgB,8CAA8C,CAC5D,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,wBAAwB,EAC5C,YAAY,EAAE,mCAAmC,GAChD,4BAA4B,CA2B9B"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { simCdkCustomResourceFactories } from "./sim-cfn-custom-resource-factories.js";
|
|
2
2
|
import { simCfnServiceResourceFactories } from "./sim-cfn-service-factories.js";
|
|
3
3
|
/**
|
|
4
4
|
* Resolve a scoped simulated service CloudFormation Resource factory.
|
|
5
5
|
*/
|
|
6
6
|
export function resolveSimCloudFormationServiceResourceFactory(simAws, accountRegionScope, resourceType) {
|
|
7
|
-
if (resourceType.providerName === "Custom" &&
|
|
8
|
-
resourceType.serviceName === "Custom" &&
|
|
9
|
-
resourceType.resourceTypeName === "CDKBucketDeployment") {
|
|
10
|
-
return new SimCdkBucketDeploymentResourceFactory();
|
|
11
|
-
}
|
|
12
7
|
if (resourceType.providerName === "Custom") {
|
|
13
|
-
|
|
8
|
+
return resolveSimCdkCustomResourceFactory(resourceType);
|
|
14
9
|
}
|
|
15
10
|
if (resourceType.providerName !== "AWS") {
|
|
16
11
|
throw new Error(`Unsupported sim CloudFormation Resource provider ${resourceType.providerName}`);
|
|
@@ -21,4 +16,20 @@ export function resolveSimCloudFormationServiceResourceFactory(simAws, accountRe
|
|
|
21
16
|
}
|
|
22
17
|
return serviceFactory(simAws.accountRegionScope(accountRegionScope.accountId, accountRegionScope.regionName));
|
|
23
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Resolve the factory for a CDK custom Resource type.
|
|
21
|
+
*
|
|
22
|
+
* A custom Resource type is two parts, `Custom::<name>`, which the parser reads
|
|
23
|
+
* as a service name of `Custom`. Anything carrying a service name of its own is
|
|
24
|
+
* a type this simulator has not been told about, whatever it ends with.
|
|
25
|
+
*/
|
|
26
|
+
function resolveSimCdkCustomResourceFactory(resourceType) {
|
|
27
|
+
if (resourceType.serviceName === "Custom") {
|
|
28
|
+
const customResourceFactory = simCdkCustomResourceFactories.get(resourceType.resourceTypeName);
|
|
29
|
+
if (customResourceFactory !== undefined) {
|
|
30
|
+
return customResourceFactory();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
throw new Error(`Unsupported sim CloudFormation Custom Resource ${resourceType.resourceTypeName}`);
|
|
34
|
+
}
|
|
24
35
|
//# sourceMappingURL=sim-cfn-service-resolver.js.map
|
package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-service-resolver.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sim-cfn-service-resolver.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAEhF;;GAEG;AACH,MAAM,UAAU,8CAA8C,CAC5D,MAAc,EACd,kBAA4C,EAC5C,YAAiD;IAEjD,IAAI,YAAY,CAAC,YAAY,KAAK,QAAQ,EAAE,CAAC;QAC3C,OAAO,kCAAkC,CAAC,YAAY,CAAC,CAAC;IAC1D,CAAC;IAED,IAAI,YAAY,CAAC,YAAY,KAAK,KAAK,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CACb,oDAAoD,YAAY,CAAC,YAAY,EAAE,CAChF,CAAC;IACJ,CAAC;IAED,MAAM,cAAc,GAAG,8BAA8B,CAAC,GAAG,CACvD,YAAY,CAAC,WAAW,CACzB,CAAC;IAEF,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CACb,mDAAmD,YAAY,CAAC,WAAW,EAAE,CAC9E,CAAC;IACJ,CAAC;IAED,OAAO,cAAc,CACnB,MAAM,CAAC,kBAAkB,CACvB,kBAAkB,CAAC,SAAS,EAC5B,kBAAkB,CAAC,UAAU,CAC9B,CACF,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAS,kCAAkC,CACzC,YAAiD;IAEjD,IAAI,YAAY,CAAC,WAAW,KAAK,QAAQ,EAAE,CAAC;QAC1C,MAAM,qBAAqB,GAAG,6BAA6B,CAAC,GAAG,CAC7D,YAAY,CAAC,gBAAgB,CAC9B,CAAC;QAEF,IAAI,qBAAqB,KAAK,SAAS,EAAE,CAAC;YACxC,OAAO,qBAAqB,EAAE,CAAC;QACjC,CAAC;IACH,CAAC;IAED,MAAM,IAAI,KAAK,CACb,kDAAkD,YAAY,CAAC,gBAAgB,EAAE,CAClF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue, SimCfnTemplateValueRecord } from "./sim-cfn-template-value.js";
|
|
2
|
+
/**
|
|
3
|
+
* Builds the error a value read out of a template is refused with.
|
|
4
|
+
*
|
|
5
|
+
* The caller supplies this so the refusal names the Resource and the property
|
|
6
|
+
* it came from, in wording sim CloudFormation does not downgrade to a skip.
|
|
7
|
+
*/
|
|
8
|
+
export type SimCfnValueShapeErrorBuilder = (reason: string) => Error;
|
|
9
|
+
/**
|
|
10
|
+
* The shape checks a template property is read through.
|
|
11
|
+
*
|
|
12
|
+
* A template is JSON, so a property can be anything, while the request it
|
|
13
|
+
* becomes has a shape. These are the four questions that gets asked, each
|
|
14
|
+
* naming what was wrong through the error the reader was built with.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SimCfnValueShape {
|
|
17
|
+
private readonly error;
|
|
18
|
+
constructor(error: SimCfnValueShapeErrorBuilder);
|
|
19
|
+
/**
|
|
20
|
+
* Read a property the template need not carry, leaving it out when it does
|
|
21
|
+
* not.
|
|
22
|
+
*/
|
|
23
|
+
present<T>(value: SimCfnTemplateValue | undefined, read: (value: SimCfnTemplateValue) => T): T | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* A value that has to be an object.
|
|
26
|
+
*/
|
|
27
|
+
record(value: SimCfnTemplateValue | undefined, name: string): SimCfnTemplateValueRecord;
|
|
28
|
+
/**
|
|
29
|
+
* A value that has to be a list.
|
|
30
|
+
*/
|
|
31
|
+
list(value: SimCfnTemplateValue, name: string): SimCfnTemplateValue[];
|
|
32
|
+
/**
|
|
33
|
+
* An object that may only carry the names given.
|
|
34
|
+
*
|
|
35
|
+
* A name the reader has no behaviour for is refused rather than ignored. A
|
|
36
|
+
* dropped name is the failure worth avoiding: the Resource deploys, and the
|
|
37
|
+
* thing the template asked for is silently not there.
|
|
38
|
+
*/
|
|
39
|
+
knownKeys(record: SimCfnTemplateValueRecord, known: ReadonlySet<string>, name: string): void;
|
|
40
|
+
/**
|
|
41
|
+
* A value that has to be a string.
|
|
42
|
+
*/
|
|
43
|
+
string(value: SimCfnTemplateValue, name: string): string;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=sim-cfn-value-shape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-value-shape.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/value/sim-cfn-value-shape.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,6BAA6B,CAAC;AAErC;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,KAAK,CAAC;AAErE;;;;;;GAMG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA+B;IAErD,YAAY,KAAK,EAAE,4BAA4B,EAE9C;IAED;;;OAGG;IACH,OAAO,CAAC,CAAC,EACP,KAAK,EAAE,mBAAmB,GAAG,SAAS,EACtC,IAAI,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,CAAC,GACtC,CAAC,GAAG,SAAS,CAMf;IAED;;OAEG;IACH,MAAM,CACJ,KAAK,EAAE,mBAAmB,GAAG,SAAS,EACtC,IAAI,EAAE,MAAM,GACX,yBAAyB,CAM3B;IAED;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAMpE;IAED;;;;;;OAMG;IACH,SAAS,CACP,MAAM,EAAE,yBAAyB,EACjC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,EAC1B,IAAI,EAAE,MAAM,GACX,IAAI,CASN;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAMvD;CACF"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { isRecord } from "../../../../util/type-guard/record.js";
|
|
2
|
+
/**
|
|
3
|
+
* The shape checks a template property is read through.
|
|
4
|
+
*
|
|
5
|
+
* A template is JSON, so a property can be anything, while the request it
|
|
6
|
+
* becomes has a shape. These are the four questions that gets asked, each
|
|
7
|
+
* naming what was wrong through the error the reader was built with.
|
|
8
|
+
*/
|
|
9
|
+
export class SimCfnValueShape {
|
|
10
|
+
error;
|
|
11
|
+
constructor(error) {
|
|
12
|
+
this.error = error;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Read a property the template need not carry, leaving it out when it does
|
|
16
|
+
* not.
|
|
17
|
+
*/
|
|
18
|
+
present(value, read) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
return read(value);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A value that has to be an object.
|
|
26
|
+
*/
|
|
27
|
+
record(value, name) {
|
|
28
|
+
if (!isTemplateRecord(value)) {
|
|
29
|
+
throw this.error(`${name} must be an object`);
|
|
30
|
+
}
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A value that has to be a list.
|
|
35
|
+
*/
|
|
36
|
+
list(value, name) {
|
|
37
|
+
if (!Array.isArray(value)) {
|
|
38
|
+
throw this.error(`${name} must be a list`);
|
|
39
|
+
}
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* An object that may only carry the names given.
|
|
44
|
+
*
|
|
45
|
+
* A name the reader has no behaviour for is refused rather than ignored. A
|
|
46
|
+
* dropped name is the failure worth avoiding: the Resource deploys, and the
|
|
47
|
+
* thing the template asked for is silently not there.
|
|
48
|
+
*/
|
|
49
|
+
knownKeys(record, known, name) {
|
|
50
|
+
for (const key of Object.keys(record)) {
|
|
51
|
+
if (!known.has(key)) {
|
|
52
|
+
throw this.error(`${key} is not a ${name} property this simulation reads, so it is ` +
|
|
53
|
+
"refused rather than ignored");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A value that has to be a string.
|
|
59
|
+
*/
|
|
60
|
+
string(value, name) {
|
|
61
|
+
if (typeof value !== "string") {
|
|
62
|
+
throw this.error(`${name} must be a string`);
|
|
63
|
+
}
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Whether a template value is an object rather than a list or a primitive.
|
|
69
|
+
*/
|
|
70
|
+
function isTemplateRecord(value) {
|
|
71
|
+
return isRecord(value);
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=sim-cfn-value-shape.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-value-shape.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/template/value/sim-cfn-value-shape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAcjE;;;;;;GAMG;AACH,MAAM,OAAO,gBAAgB;IACV,KAAK,CAA+B;IAErD,YAAY,KAAmC;QAC7C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;OAGG;IACH,OAAO,CACL,KAAsC,EACtC,IAAuC;QAEvC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,KAAsC,EACtC,IAAY;QAEZ,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,oBAAoB,CAAC,CAAC;QAChD,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,KAA0B,EAAE,IAAY;QAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,iBAAiB,CAAC,CAAC;QAC7C,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;;;OAMG;IACH,SAAS,CACP,MAAiC,EACjC,KAA0B,EAC1B,IAAY;QAEZ,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YACtC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;gBACpB,MAAM,IAAI,CAAC,KAAK,CACd,GAAG,GAAG,aAAa,IAAI,4CAA4C;oBACjE,6BAA6B,CAChC,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAA0B,EAAE,IAAY;QAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,mBAAmB,CAAC,CAAC;QAC/C,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAED;;GAEG;AACH,SAAS,gBAAgB,CACvB,KAAsC;IAEtC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC"}
|
|
@@ -6,6 +6,18 @@ import type { SimDynamoDbTransactWrite } from "./sim-dynamodb-transact-write.js"
|
|
|
6
6
|
* Nothing is written until every action has been checked against what is
|
|
7
7
|
* stored, which is what makes a transaction one step rather than a run of
|
|
8
8
|
* writes that might stop part way.
|
|
9
|
+
*
|
|
10
|
+
* The checking is in two parts, because they answer differently. A condition
|
|
11
|
+
* that did not hold cancels the transaction and is reported as that action's
|
|
12
|
+
* reason, so every action is asked before any of them is prepared. Anything
|
|
13
|
+
* else the table would refuse the write for is the request being wrong, and it
|
|
14
|
+
* only comes out of preparing the write itself.
|
|
15
|
+
*
|
|
16
|
+
* So every write is prepared before any of them is committed, rather than the
|
|
17
|
+
* checks a prepared write makes being moved up into `assertApplicableTo`.
|
|
18
|
+
* Moving them would work today and would quietly stop working the moment a
|
|
19
|
+
* check was added anywhere else on the write path. Staging holds whatever the
|
|
20
|
+
* write path refuses, wherever the check lives.
|
|
9
21
|
*/
|
|
10
22
|
export declare function applySimDynamoDbTransaction(targets: readonly SimDynamoDbTransactTarget<SimDynamoDbTransactWrite>[]): void;
|
|
11
23
|
//# sourceMappingURL=sim-dynamodb-transact-cancellation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-transact-cancellation.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-cancellation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAmBjF
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-transact-cancellation.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-cancellation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAmBjF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,SAAS,yBAAyB,CAAC,wBAAwB,CAAC,EAAE,GACtE,IAAI,CAQN"}
|
|
@@ -19,11 +19,24 @@ const conditionalCheckFailed = "ConditionalCheckFailed";
|
|
|
19
19
|
* Nothing is written until every action has been checked against what is
|
|
20
20
|
* stored, which is what makes a transaction one step rather than a run of
|
|
21
21
|
* writes that might stop part way.
|
|
22
|
+
*
|
|
23
|
+
* The checking is in two parts, because they answer differently. A condition
|
|
24
|
+
* that did not hold cancels the transaction and is reported as that action's
|
|
25
|
+
* reason, so every action is asked before any of them is prepared. Anything
|
|
26
|
+
* else the table would refuse the write for is the request being wrong, and it
|
|
27
|
+
* only comes out of preparing the write itself.
|
|
28
|
+
*
|
|
29
|
+
* So every write is prepared before any of them is committed, rather than the
|
|
30
|
+
* checks a prepared write makes being moved up into `assertApplicableTo`.
|
|
31
|
+
* Moving them would work today and would quietly stop working the moment a
|
|
32
|
+
* check was added anywhere else on the write path. Staging holds whatever the
|
|
33
|
+
* write path refuses, wherever the check lives.
|
|
22
34
|
*/
|
|
23
35
|
export function applySimDynamoDbTransaction(targets) {
|
|
24
36
|
assertApplies(targets);
|
|
25
|
-
|
|
26
|
-
|
|
37
|
+
const writes = targets.map(({ item, table }) => item.prepareFor(table));
|
|
38
|
+
for (const write of writes) {
|
|
39
|
+
write.commit();
|
|
27
40
|
}
|
|
28
41
|
}
|
|
29
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-transact-cancellation.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-cancellation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0CAA0C,EAC1C,uCAAuC,GACxC,MAAM,+BAA+B,CAAC;AAMvC;;;;;GAKG;AACH,MAAM,IAAI,GAAG,MAAM,CAAC;AAEpB;;;;;GAKG;AACH,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AAExD
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-transact-cancellation.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-cancellation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0CAA0C,EAC1C,uCAAuC,GACxC,MAAM,+BAA+B,CAAC;AAMvC;;;;;GAKG;AACH,MAAM,IAAI,GAAG,MAAM,CAAC;AAEpB;;;;;GAKG;AACH,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AAExD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,2BAA2B,CACzC,OAAuE;IAEvE,aAAa,CAAC,OAAO,CAAC,CAAC;IAEvB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAExE,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,KAAK,CAAC,MAAM,EAAE,CAAC;IACjB,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,SAAS,aAAa,CACpB,OAAuE;IAEvE,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IAEzE,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QACpD,OAAO;IACT,CAAC;IAED,MAAM,IAAI,uCAAuC,CAAC,OAAO,CAAC,CAAC;AAC7D,CAAC;AAED;;;;;;GAMG;AACH,SAAS,SAAS,CAChB,KAA+B,EAC/B,KAAuB;IAEvB,IAAI,CAAC;QACH,KAAK,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,0CAA0C,EAAE,CAAC;YAChE,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACxB,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,gBAAgB,CACvB,MAAkD;IAElD,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;IACnE,CAAC;IAED,OAAO;QACL,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,IAAI,EAAE,MAAM,CAAC,IAAI;KAClB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-transact-key-actions.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-key-actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-transact-key-actions.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-key-actions.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,KAAK,EACV,iCAAiC,EACjC,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AAiF/B;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,yBAAyB,GACjC,wBAAwB,CAM1B;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CACnD,OAAO,EAAE,iCAAiC,GACzC,wBAAwB,CAa1B"}
|
|
@@ -32,8 +32,19 @@ class SimDynamoDbTransactKeyAction {
|
|
|
32
32
|
*/
|
|
33
33
|
class SimDynamoDbTransactDeleteAction extends SimDynamoDbTransactKeyAction {
|
|
34
34
|
action = "dynamodb:DeleteItem";
|
|
35
|
-
|
|
36
|
-
table.
|
|
35
|
+
prepareFor(table) {
|
|
36
|
+
return table.writes.prepareRemoval(this.key);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The write a condition check makes, which is none.
|
|
41
|
+
*
|
|
42
|
+
* A condition check is prepared and committed like the actions that do write,
|
|
43
|
+
* so a transaction has one shape to apply rather than two.
|
|
44
|
+
*/
|
|
45
|
+
class SimDynamoDbTransactNoWrite {
|
|
46
|
+
commit() {
|
|
47
|
+
return;
|
|
37
48
|
}
|
|
38
49
|
}
|
|
39
50
|
/**
|
|
@@ -44,9 +55,10 @@ class SimDynamoDbTransactDeleteAction extends SimDynamoDbTransactKeyAction {
|
|
|
44
55
|
*/
|
|
45
56
|
class SimDynamoDbTransactConditionCheckAction extends SimDynamoDbTransactKeyAction {
|
|
46
57
|
action = "dynamodb:ConditionCheckItem";
|
|
47
|
-
|
|
58
|
+
prepareFor() {
|
|
48
59
|
// A condition check changes nothing. What it does happened when its
|
|
49
60
|
// condition was checked against the item it names.
|
|
61
|
+
return new SimDynamoDbTransactNoWrite();
|
|
50
62
|
}
|
|
51
63
|
}
|
|
52
64
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-transact-key-actions.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-key-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-transact-key-actions.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-key-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAI/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAOvE;;;;;GAKG;AACH,MAAe,4BAA4B;IAEzB,SAAS,CAAqB;IAE3B,GAAG,CAAkB;IAEvB,KAAK,CAA4B;IAElD,YACE,SAA6B,EAC7B,GAAoB,EACpB,KAAgC;QAEhC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,KAAuB;QAC3B,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClC,CAAC;IAED,kBAAkB,CAAC,KAAuB;QACxC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACrD,CAAC;CAGF;AAED;;;GAGG;AACH,MAAM,+BAAgC,SAAQ,4BAA4B;IACxD,MAAM,GAAG,qBAAqB,CAAC;IAE/C,UAAU,CAAC,KAAuB;QAChC,OAAO,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/C,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,0BAA0B;IAC9B,MAAM;QACJ,OAAO;IACT,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,uCAAwC,SAAQ,4BAA4B;IAChE,MAAM,GAAG,6BAA6B,CAAC;IAEvD,UAAU;QACR,oEAAoE;QACpE,mDAAmD;QACnD,OAAO,IAAI,0BAA0B,EAAE,CAAC;IAC1C,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,6BAA6B,CAC3C,OAAkC;IAElC,OAAO,IAAI,+BAA+B,CACxC,OAAO,CAAC,SAAS,EACjB,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,EAC/B,yBAAyB,CAAC,IAAI,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qCAAqC,CACnD,OAA0C;IAE1C,IAAI,OAAO,CAAC,mBAAmB,KAAK,SAAS,EAAE,CAAC;QAC9C,MAAM,IAAI,8BAA8B,CACtC,yEAAyE;YACvE,cAAc,CACjB,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,uCAAuC,CAChD,OAAO,CAAC,SAAS,EACjB,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,EAC/B,yBAAyB,CAAC,IAAI,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-transact-put-action.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-put-action.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-transact-put-action.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-put-action.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAuCpE;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,sBAAsB,GAC9B,wBAAwB,CAU1B"}
|
|
@@ -23,8 +23,8 @@ class SimDynamoDbTransactPutAction {
|
|
|
23
23
|
assertApplicableTo(table) {
|
|
24
24
|
this.check.assertHoldsFor(table.itemUnder(this.item));
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
table.
|
|
26
|
+
prepareFor(table) {
|
|
27
|
+
return table.writes.prepareItem(this.item);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-transact-put-action.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-put-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-transact-put-action.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-put-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGlE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAIpF;;GAEG;AACH,MAAM,4BAA4B;IAChB,MAAM,GAAG,kBAAkB,CAAC;IAC5B,SAAS,CAAqB;IAE7B,IAAI,CAAkB;IACtB,KAAK,CAA4B;IAElD,YACE,SAA6B,EAC7B,IAAqB,EACrB,KAAgC;QAEhC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,KAAuB;QAC3B,OAAO,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,kBAAkB,CAAC,KAAuB;QACxC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACxD,CAAC;IAED,UAAU,CAAC,KAAuB;QAChC,OAAO,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,0BAA0B,CACxC,OAA+B;IAE/B,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC/B,MAAM,IAAI,8BAA8B,CAAC,wBAAwB,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,IAAI,4BAA4B,CACrC,OAAO,CAAC,SAAS,EACjB,eAAe,CAAC,mBAAmB,CAAC,OAAO,CAAC,IAAI,CAAC,EACjD,yBAAyB,CAAC,IAAI,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-transact-update-action.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-update-action.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-transact-update-action.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-update-action.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AA8CvE;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,yBAAyB,GACjC,wBAAwB,CAa1B"}
|
|
@@ -24,8 +24,12 @@ class SimDynamoDbTransactUpdateAction {
|
|
|
24
24
|
this.plan.check.assertHoldsFor(table.getItem(this.key));
|
|
25
25
|
this.plan.assertLeavesKeyAlone(table.keySchema.attributeNames());
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
prepareFor(table) {
|
|
28
|
+
// Working the updated item out is itself refusable, since an update can
|
|
29
|
+
// take an item past the 400 KB one item holds. Doing it here rather than
|
|
30
|
+
// on the way to the table store is what keeps that failure ahead of the
|
|
31
|
+
// first write of the transaction.
|
|
32
|
+
return table.writes.prepareItem(this.plan.applyTo(table.getItem(this.key), this.key));
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-transact-update-action.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-update-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-transact-update-action.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-update-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAI/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAI5E;;GAEG;AACH,MAAM,+BAA+B;IACnB,MAAM,GAAG,qBAAqB,CAAC;IAC/B,SAAS,CAAqB;IAE7B,GAAG,CAAkB;IACrB,IAAI,CAAwB;IAE7C,YACE,SAA6B,EAC7B,GAAoB,EACpB,IAA2B;QAE3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,KAAuB;QAC3B,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClC,CAAC;IAED,kBAAkB,CAAC,KAAuB;QACxC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QACxD,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,UAAU,CAAC,KAAuB;QAChC,wEAAwE;QACxE,yEAAyE;QACzE,wEAAwE;QACxE,kCAAkC;QAClC,OAAO,KAAK,CAAC,MAAM,CAAC,WAAW,CAC7B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CACrD,CAAC;IACJ,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,UAAU,6BAA6B,CAC3C,OAAkC;IAElC,IAAI,OAAO,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;QAC3C,MAAM,IAAI,8BAA8B,CACtC,qEAAqE;YACnE,4BAA4B,CAC/B,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,+BAA+B,CACxC,OAAO,CAAC,SAAS,EACjB,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,EAC/B,qBAAqB,CAAC,IAAI,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SimDynamoDbTable } from "../../table/sim-dynamodb-table.js";
|
|
2
|
+
import type { SimDynamoDbTableWrite } from "../../table/sim-dynamodb-table-writes.js";
|
|
2
3
|
import type { SimDynamoDbTransactWriteItem } from "./transact.command.js";
|
|
3
4
|
/**
|
|
4
5
|
* One action of a transactional write.
|
|
@@ -40,9 +41,12 @@ export interface SimDynamoDbTransactWrite {
|
|
|
40
41
|
*/
|
|
41
42
|
assertApplicableTo(table: SimDynamoDbTable): void;
|
|
42
43
|
/**
|
|
43
|
-
*
|
|
44
|
+
* Work out the write this action makes, without making it.
|
|
45
|
+
*
|
|
46
|
+
* Anything the table would refuse the write for is refused here, so the
|
|
47
|
+
* transaction can prepare every action before committing any of them.
|
|
44
48
|
*/
|
|
45
|
-
|
|
49
|
+
prepareFor(table: SimDynamoDbTable): SimDynamoDbTableWrite;
|
|
46
50
|
}
|
|
47
51
|
/**
|
|
48
52
|
* Read one entry of a transactional write.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-transact-write.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-write.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-transact-write.d.ts","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-write.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAOtF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAE1E;;;;;;;GAOG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAEvC;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,WAAW,IAAI,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAAC;IAEvC;;;;;;;;OAQG;IACH,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAElD;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,gBAAgB,GAAG,qBAAqB,CAAC;CAC5D;AAUD;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,4BAA4B,GACjC,wBAAwB,CAqB1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-dynamodb-transact-write.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-transact-write.js","sourceRoot":"","sources":["../../../../../src/service/dynamodb/command/transact/sim-dynamodb-transact-write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,EACL,qCAAqC,EACrC,6BAA6B,GAC9B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAgEzF;;;;;;GAMG;AACH,MAAM,UAAU,4BAA4B,CAC1C,IAAkC;IAElC,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;IAEvB,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,8BAA8B,CACtC,qEAAqE;YACnE,mDAAmD,CACtD,CAAC;IACJ,CAAC;IAED,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,8BAA8B,CACtC,qEAAqE;YACnE,wCAAwC,OAAO;iBAC5C,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC;iBAC5B,IAAI,CAAC,OAAO,CAAC,EAAE,CACrB,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;AACrB,CAAC;AAED;;;;;GAKG;AACH,SAAS,SAAS,CAChB,IAAkC;IAElC,MAAM,EACJ,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,KAAK,GACtB,GAAG,IAAI,CAAC;IACT,MAAM,OAAO,GAAqC,EAAE,CAAC;IAErD,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,GAA6B,EAAE,CAAC,0BAA0B,CAAC,GAAG,CAAC;SACtE,CAAC,CAAC;IACL,CAAC;IAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,GAA6B,EAAE,CACnC,6BAA6B,CAAC,MAAM,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;IAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,GAA6B,EAAE,CACnC,6BAA6B,CAAC,MAAM,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;IAED,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,GAA6B,EAAE,CACnC,qCAAqC,CAAC,KAAK,CAAC;SAC/C,CAAC,CAAC;IACL,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { SimDynamoDbItem } from "../item/sim-dynamodb-item.js";
|
|
2
|
+
import type { SimDynamoDbSecondaryIndexes } from "../secondary-index/sim-dynamodb-secondary-indexes.js";
|
|
3
|
+
import type { SimDynamoDbTableTimeToLive } from "../time-to-live/sim-dynamodb-table-time-to-live.js";
|
|
4
|
+
import type { SimDynamoDbTableDefinition } from "./sim-dynamodb-table-definition.js";
|
|
5
|
+
import type { SimDynamoDbTableItems } from "./sim-dynamodb-table-items.js";
|
|
6
|
+
/**
|
|
7
|
+
* Where a prepared write lands once it is committed.
|
|
8
|
+
*/
|
|
9
|
+
interface SimDynamoDbTableStore {
|
|
10
|
+
readonly items: SimDynamoDbTableItems;
|
|
11
|
+
readonly timeToLive: SimDynamoDbTableTimeToLive;
|
|
12
|
+
}
|
|
13
|
+
interface SimDynamoDbTableWritesProperties extends SimDynamoDbTableStore {
|
|
14
|
+
readonly definition: SimDynamoDbTableDefinition;
|
|
15
|
+
readonly indexes: SimDynamoDbSecondaryIndexes;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A write to a table that has passed everything it could be refused for.
|
|
19
|
+
*
|
|
20
|
+
* Committing it stores what was prepared and nothing else, so it cannot throw.
|
|
21
|
+
* That is what lets a transaction prepare all of its writes and then apply them
|
|
22
|
+
* knowing none of them will fail part way through.
|
|
23
|
+
*/
|
|
24
|
+
export interface SimDynamoDbTableWrite {
|
|
25
|
+
/**
|
|
26
|
+
* Make this write, and answer with whatever item it displaced.
|
|
27
|
+
*/
|
|
28
|
+
commit(): SimDynamoDbItem | undefined;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* How one table takes a write, in the two steps a transaction needs.
|
|
32
|
+
*
|
|
33
|
+
* Preparing a write does everything that can be refused, and committing it does
|
|
34
|
+
* everything that cannot. Every write in the service goes through both, so a
|
|
35
|
+
* check added to the write path is on the preparing side by construction rather
|
|
36
|
+
* than by anyone remembering to put it there.
|
|
37
|
+
*/
|
|
38
|
+
export declare class SimDynamoDbTableWrites {
|
|
39
|
+
private readonly store;
|
|
40
|
+
private readonly definition;
|
|
41
|
+
private readonly indexes;
|
|
42
|
+
constructor(properties: SimDynamoDbTableWritesProperties);
|
|
43
|
+
/**
|
|
44
|
+
* Check an item can be written to this table, without writing it.
|
|
45
|
+
*/
|
|
46
|
+
prepareItem(item: SimDynamoDbItem): SimDynamoDbTableWrite;
|
|
47
|
+
/**
|
|
48
|
+
* Check a key can be removed from this table, without removing it.
|
|
49
|
+
*
|
|
50
|
+
* A key holding nothing is prepared as readily as one holding an item.
|
|
51
|
+
* DynamoDB deletes by key rather than by item, so removing a key that is
|
|
52
|
+
* already free asks for the state it is already in.
|
|
53
|
+
*/
|
|
54
|
+
prepareRemoval(key: SimDynamoDbItem): SimDynamoDbTableWrite;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
57
|
+
//# sourceMappingURL=sim-dynamodb-table-writes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-table-writes.d.ts","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-table-writes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACxG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AACrG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAE3E;;GAEG;AACH,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC;CACjD;AAED,UAAU,gCAAiC,SAAQ,qBAAqB;IACtE,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC;IAChD,QAAQ,CAAC,OAAO,EAAE,2BAA2B,CAAC;CAC/C;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,IAAI,eAAe,GAAG,SAAS,CAAC;CACvC;AA8CD;;;;;;;GAOG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAC9C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA6B;IACxD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA8B;IAEtD,YAAY,UAAU,EAAE,gCAAgC,EAIvD;IAED;;OAEG;IACH,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,qBAAqB,CASxD;IAED;;;;;;OAMG;IACH,cAAc,CAAC,GAAG,EAAE,eAAe,GAAG,qBAAqB,CAK1D;CACF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A prepared put, which is an item and the key it goes under.
|
|
3
|
+
*/
|
|
4
|
+
class SimDynamoDbTableItemWrite {
|
|
5
|
+
store;
|
|
6
|
+
key;
|
|
7
|
+
item;
|
|
8
|
+
constructor(store, key, item) {
|
|
9
|
+
this.store = store;
|
|
10
|
+
this.key = key;
|
|
11
|
+
this.item = item;
|
|
12
|
+
}
|
|
13
|
+
commit() {
|
|
14
|
+
const replaced = this.store.items.put(this.key, this.item);
|
|
15
|
+
this.store.timeToLive.scheduleFor(this.key, this.item);
|
|
16
|
+
return replaced;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A prepared delete, which is the key the item to remove is held under.
|
|
21
|
+
*/
|
|
22
|
+
class SimDynamoDbTableItemRemoval {
|
|
23
|
+
store;
|
|
24
|
+
key;
|
|
25
|
+
constructor(store, key) {
|
|
26
|
+
this.store = store;
|
|
27
|
+
this.key = key;
|
|
28
|
+
}
|
|
29
|
+
commit() {
|
|
30
|
+
return this.store.items.remove(this.key);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* How one table takes a write, in the two steps a transaction needs.
|
|
35
|
+
*
|
|
36
|
+
* Preparing a write does everything that can be refused, and committing it does
|
|
37
|
+
* everything that cannot. Every write in the service goes through both, so a
|
|
38
|
+
* check added to the write path is on the preparing side by construction rather
|
|
39
|
+
* than by anyone remembering to put it there.
|
|
40
|
+
*/
|
|
41
|
+
export class SimDynamoDbTableWrites {
|
|
42
|
+
store;
|
|
43
|
+
definition;
|
|
44
|
+
indexes;
|
|
45
|
+
constructor(properties) {
|
|
46
|
+
this.store = { items: properties.items, timeToLive: properties.timeToLive };
|
|
47
|
+
this.definition = properties.definition;
|
|
48
|
+
this.indexes = properties.indexes;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check an item can be written to this table, without writing it.
|
|
52
|
+
*/
|
|
53
|
+
prepareItem(item) {
|
|
54
|
+
const key = this.definition.itemKey.of(item);
|
|
55
|
+
// An item need not carry an index's key attributes, since a secondary
|
|
56
|
+
// index of either kind is sparse. Carrying one as a type the index did not
|
|
57
|
+
// declare is refused, since the index could never hold it.
|
|
58
|
+
this.indexes.assertItemKeyTypes(item, this.definition.attributeDefinitions);
|
|
59
|
+
return new SimDynamoDbTableItemWrite(this.store, key, item);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check a key can be removed from this table, without removing it.
|
|
63
|
+
*
|
|
64
|
+
* A key holding nothing is prepared as readily as one holding an item.
|
|
65
|
+
* DynamoDB deletes by key rather than by item, so removing a key that is
|
|
66
|
+
* already free asks for the state it is already in.
|
|
67
|
+
*/
|
|
68
|
+
prepareRemoval(key) {
|
|
69
|
+
return new SimDynamoDbTableItemRemoval(this.store, this.definition.itemKey.ofKey(key));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=sim-dynamodb-table-writes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-dynamodb-table-writes.js","sourceRoot":"","sources":["../../../../src/service/dynamodb/table/sim-dynamodb-table-writes.ts"],"names":[],"mappings":"AAiCA;;GAEG;AACH,MAAM,yBAAyB;IACZ,KAAK,CAAwB;IAC7B,GAAG,CAAS;IACZ,IAAI,CAAkB;IAEvC,YACE,KAA4B,EAC5B,GAAW,EACX,IAAqB;QAErB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,MAAM;QACJ,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAE3D,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAEvD,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAED;;GAEG;AACH,MAAM,2BAA2B;IACd,KAAK,CAAwB;IAC7B,GAAG,CAAS;IAE7B,YAAY,KAA4B,EAAE,GAAW;QACnD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3C,CAAC;CACF;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,sBAAsB;IAChB,KAAK,CAAwB;IAC7B,UAAU,CAA6B;IACvC,OAAO,CAA8B;IAEtD,YAAY,UAA4C;QACtD,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,UAAU,CAAC,UAAU,EAAE,CAAC;QAC5E,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,IAAqB;QAC/B,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;QAE7C,sEAAsE;QACtE,2EAA2E;QAC3E,2DAA2D;QAC3D,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;QAE5E,OAAO,IAAI,yBAAyB,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;OAMG;IACH,cAAc,CAAC,GAAoB;QACjC,OAAO,IAAI,2BAA2B,CACpC,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CACnC,CAAC;IACJ,CAAC;CACF"}
|