@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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { SimS3NotificationConfigurationInput } from "../../../../../s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.js";
|
|
2
|
+
import type { SimCfnTemplateValue } from "../../../../template/value/sim-cfn-template-value.js";
|
|
3
|
+
/**
|
|
4
|
+
* Reads the `NotificationConfiguration` property of a
|
|
5
|
+
* Custom::S3BucketNotifications Resource into a
|
|
6
|
+
* PutBucketNotificationConfiguration request.
|
|
7
|
+
*
|
|
8
|
+
* CDK emits the SDK request shape into the Resource, so this translates types
|
|
9
|
+
* rather than structure: what the template says is what the command receives.
|
|
10
|
+
* Only the shape is read here. Whether the configuration is one simulated S3
|
|
11
|
+
* accepts is the command's question, so a template and an SDK caller are
|
|
12
|
+
* answered by the same validation.
|
|
13
|
+
*/
|
|
14
|
+
export declare class SimCdkBucketNotificationConfiguration {
|
|
15
|
+
private readonly shape;
|
|
16
|
+
private readonly filter;
|
|
17
|
+
constructor(logicalId: string);
|
|
18
|
+
/**
|
|
19
|
+
* Read a whole notification configuration.
|
|
20
|
+
*
|
|
21
|
+
* A destination group this simulator cannot deliver to is carried through
|
|
22
|
+
* untouched, so the command refuses it by name rather than dropping it.
|
|
23
|
+
*/
|
|
24
|
+
read(value: SimCfnTemplateValue | undefined): SimS3NotificationConfigurationInput;
|
|
25
|
+
private lambdaConfigurations;
|
|
26
|
+
private lambdaConfiguration;
|
|
27
|
+
private events;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=sim-cdk-bucket-notification-configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-notification-configuration.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,mCAAmC,EACpC,MAAM,kHAAkH,CAAC;AAC1H,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAKhG;;;;;;;;;;GAUG;AACH,qBAAa,qCAAqC;IAChD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmB;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiC;IAExD,YAAY,SAAS,EAAE,MAAM,EAK5B;IAED;;;;;OAKG;IACH,IAAI,CACF,KAAK,EAAE,mBAAmB,GAAG,SAAS,GACrC,mCAAmC,CAwBrC;IAED,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,mBAAmB;IAuB3B,OAAO,CAAC,MAAM;CAOf"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { SimCfnValueShape } from "../../../../template/value/sim-cfn-value-shape.js";
|
|
2
|
+
import { bucketNotificationsError } from "../error/sim-cdk-bucket-notification-error.js";
|
|
3
|
+
import { SimCdkBucketNotificationFilter } from "./sim-cdk-bucket-notification-filter.js";
|
|
4
|
+
/**
|
|
5
|
+
* Reads the `NotificationConfiguration` property of a
|
|
6
|
+
* Custom::S3BucketNotifications Resource into a
|
|
7
|
+
* PutBucketNotificationConfiguration request.
|
|
8
|
+
*
|
|
9
|
+
* CDK emits the SDK request shape into the Resource, so this translates types
|
|
10
|
+
* rather than structure: what the template says is what the command receives.
|
|
11
|
+
* Only the shape is read here. Whether the configuration is one simulated S3
|
|
12
|
+
* accepts is the command's question, so a template and an SDK caller are
|
|
13
|
+
* answered by the same validation.
|
|
14
|
+
*/
|
|
15
|
+
export class SimCdkBucketNotificationConfiguration {
|
|
16
|
+
shape;
|
|
17
|
+
filter;
|
|
18
|
+
constructor(logicalId) {
|
|
19
|
+
this.shape = new SimCfnValueShape((reason) => bucketNotificationsError(logicalId, reason));
|
|
20
|
+
this.filter = new SimCdkBucketNotificationFilter(this.shape);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Read a whole notification configuration.
|
|
24
|
+
*
|
|
25
|
+
* A destination group this simulator cannot deliver to is carried through
|
|
26
|
+
* untouched, so the command refuses it by name rather than dropping it.
|
|
27
|
+
*/
|
|
28
|
+
read(value) {
|
|
29
|
+
const record = this.shape.record(value, "NotificationConfiguration");
|
|
30
|
+
return {
|
|
31
|
+
LambdaFunctionConfigurations: this.shape.present(record["LambdaFunctionConfigurations"], (configurations) => this.lambdaConfigurations(configurations)),
|
|
32
|
+
QueueConfigurations: this.shape.present(record["QueueConfigurations"], (configurations) => this.shape.list(configurations, "QueueConfigurations")),
|
|
33
|
+
TopicConfigurations: this.shape.present(record["TopicConfigurations"], (configurations) => this.shape.list(configurations, "TopicConfigurations")),
|
|
34
|
+
EventBridgeConfiguration: this.shape.present(record["EventBridgeConfiguration"], (configuration) => this.shape.record(configuration, "EventBridgeConfiguration")),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
lambdaConfigurations(value) {
|
|
38
|
+
return this.shape
|
|
39
|
+
.list(value, "LambdaFunctionConfigurations")
|
|
40
|
+
.map((configuration) => this.lambdaConfiguration(configuration));
|
|
41
|
+
}
|
|
42
|
+
lambdaConfiguration(value) {
|
|
43
|
+
const record = this.shape.record(value, "LambdaFunctionConfigurations entry");
|
|
44
|
+
return {
|
|
45
|
+
Id: this.shape.present(record["Id"], (id) => this.shape.string(id, "Id")),
|
|
46
|
+
LambdaFunctionArn: this.shape.present(record["LambdaFunctionArn"], (arn) => this.shape.string(arn, "LambdaFunctionArn")),
|
|
47
|
+
Events: this.shape.present(record["Events"], (events) => this.events(events)),
|
|
48
|
+
Filter: this.shape.present(record["Filter"], (filter) => this.filter.read(filter)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
events(value) {
|
|
52
|
+
return this.shape
|
|
53
|
+
.list(value, "Events")
|
|
54
|
+
.map((event, index) => this.shape.string(event, `Events entry ${String(index)}`));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=sim-cdk-bucket-notification-configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-notification-configuration.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SimS3NotificationFilterInput } from "../../../../../s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.js";
|
|
2
|
+
import type { SimCfnTemplateValue } from "../../../../template/value/sim-cfn-template-value.js";
|
|
3
|
+
import type { SimCfnValueShape } from "../../../../template/value/sim-cfn-value-shape.js";
|
|
4
|
+
/**
|
|
5
|
+
* Reads the object key filter of one notification configuration.
|
|
6
|
+
*
|
|
7
|
+
* Which rule names S3 filters on, and what happens when one is repeated, is
|
|
8
|
+
* the command's question. This reads the three levels of nesting the request
|
|
9
|
+
* shape puts around the rules.
|
|
10
|
+
*/
|
|
11
|
+
export declare class SimCdkBucketNotificationFilter {
|
|
12
|
+
private readonly shape;
|
|
13
|
+
constructor(shape: SimCfnValueShape);
|
|
14
|
+
/**
|
|
15
|
+
* Read a whole filter.
|
|
16
|
+
*/
|
|
17
|
+
read(value: SimCfnTemplateValue): SimS3NotificationFilterInput;
|
|
18
|
+
private keyFilter;
|
|
19
|
+
private filterRule;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=sim-cdk-bucket-notification-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-notification-filter.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAG7B,MAAM,kHAAkH,CAAC;AAC1H,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAChG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAE1F;;;;;;GAMG;AACH,qBAAa,8BAA8B;IACzC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmB;IAEzC,YAAY,KAAK,EAAE,gBAAgB,EAElC;IAED;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,mBAAmB,GAAG,4BAA4B,CAM7D;IAED,OAAO,CAAC,SAAS;IAcjB,OAAO,CAAC,UAAU;CAcnB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads the object key filter of one notification configuration.
|
|
3
|
+
*
|
|
4
|
+
* Which rule names S3 filters on, and what happens when one is repeated, is
|
|
5
|
+
* the command's question. This reads the three levels of nesting the request
|
|
6
|
+
* shape puts around the rules.
|
|
7
|
+
*/
|
|
8
|
+
export class SimCdkBucketNotificationFilter {
|
|
9
|
+
shape;
|
|
10
|
+
constructor(shape) {
|
|
11
|
+
this.shape = shape;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Read a whole filter.
|
|
15
|
+
*/
|
|
16
|
+
read(value) {
|
|
17
|
+
const record = this.shape.record(value, "Filter");
|
|
18
|
+
return {
|
|
19
|
+
Key: this.shape.present(record["Key"], (key) => this.keyFilter(key)),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
keyFilter(value) {
|
|
23
|
+
const record = this.shape.record(value, "Filter Key");
|
|
24
|
+
return {
|
|
25
|
+
FilterRules: this.shape.present(record["FilterRules"], (rules) => this.shape
|
|
26
|
+
.list(rules, "FilterRules")
|
|
27
|
+
.map((rule) => this.filterRule(rule))),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
filterRule(value) {
|
|
31
|
+
const record = this.shape.record(value, "FilterRules entry");
|
|
32
|
+
return {
|
|
33
|
+
Name: this.shape.present(record["Name"], (name) => this.shape.string(name, "FilterRules entry Name")),
|
|
34
|
+
Value: this.shape.present(record["Value"], (ruleValue) => this.shape.string(ruleValue, "FilterRules entry Value")),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=sim-cdk-bucket-notification-filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-notification-filter.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-filter.ts"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,MAAM,OAAO,8BAA8B;IACxB,KAAK,CAAmB;IAEzC,YAAY,KAAuB;QACjC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,KAA0B;QAC7B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAElD,OAAO;YACL,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;SACrE,CAAC;IACJ,CAAC;IAEO,SAAS,CACf,KAA0B;QAE1B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;QAEtD,OAAO;YACL,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,CAC/D,IAAI,CAAC,KAAK;iBACP,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC;iBAC1B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CACxC;SACF,CAAC;IACJ,CAAC;IAEO,UAAU,CAChB,KAA0B;QAE1B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;QAE7D,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAChD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAClD;YACD,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,EAAE,CACvD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,yBAAyB,CAAC,CACxD;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build the error a Custom::S3BucketNotifications Resource is refused with.
|
|
3
|
+
*
|
|
4
|
+
* The wording matters. Sim CloudFormation downgrades a failure whose message
|
|
5
|
+
* reads as an unsupported Resource type into a skip, and a skipped notification
|
|
6
|
+
* Resource is exactly the silence this feature exists to remove: the Stack
|
|
7
|
+
* would deploy with the Bucket and the function and nothing between them. So
|
|
8
|
+
* every refusal here says `Invalid`, and none of them says `Unsupported sim`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function bucketNotificationsError(logicalId: string, reason: string): Error;
|
|
11
|
+
//# sourceMappingURL=sim-cdk-bucket-notification-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-notification-error.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-notifications/error/sim-cdk-bucket-notification-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GACb,KAAK,CAIP"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build the error a Custom::S3BucketNotifications Resource is refused with.
|
|
3
|
+
*
|
|
4
|
+
* The wording matters. Sim CloudFormation downgrades a failure whose message
|
|
5
|
+
* reads as an unsupported Resource type into a skip, and a skipped notification
|
|
6
|
+
* Resource is exactly the silence this feature exists to remove: the Stack
|
|
7
|
+
* would deploy with the Bucket and the function and nothing between them. So
|
|
8
|
+
* every refusal here says `Invalid`, and none of them says `Unsupported sim`.
|
|
9
|
+
*/
|
|
10
|
+
export function bucketNotificationsError(logicalId, reason) {
|
|
11
|
+
return new Error(`Invalid Custom::S3BucketNotifications Resource ${logicalId}: ${reason}`);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=sim-cdk-bucket-notification-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-notification-error.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-notifications/error/sim-cdk-bucket-notification-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,UAAU,wBAAwB,CACtC,SAAiB,EACjB,MAAc;IAEd,OAAO,IAAI,KAAK,CACd,kDAAkD,SAAS,KAAK,MAAM,EAAE,CACzE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue, SimCfnTemplateValueRecord } from "../../../../template/value/sim-cfn-template-value.js";
|
|
2
|
+
/**
|
|
3
|
+
* Reads the properties of one Custom::S3BucketNotifications Resource.
|
|
4
|
+
*
|
|
5
|
+
* A property name CDK does not emit is refused rather than ignored. This
|
|
6
|
+
* Resource is a private contract between CDK and its own provider function, so
|
|
7
|
+
* a name that turns up here is a version of CDK asking for something this
|
|
8
|
+
* simulator has not been told about, and quietly dropping it would leave the
|
|
9
|
+
* Bucket configured differently from the app that was deployed.
|
|
10
|
+
*/
|
|
11
|
+
export declare class SimCdkBucketNotificationProperties {
|
|
12
|
+
private readonly logicalId;
|
|
13
|
+
private readonly properties;
|
|
14
|
+
constructor(logicalId: string, properties: SimCfnTemplateValueRecord);
|
|
15
|
+
/**
|
|
16
|
+
* The Bucket the configuration is applied to.
|
|
17
|
+
*/
|
|
18
|
+
get bucketName(): string;
|
|
19
|
+
/**
|
|
20
|
+
* The configuration to apply, still as the template wrote it.
|
|
21
|
+
*/
|
|
22
|
+
get notificationConfiguration(): SimCfnTemplateValue | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Whether S3 validates the destinations as the configuration is applied.
|
|
25
|
+
*/
|
|
26
|
+
get skipDestinationValidation(): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Refuse a Resource whose configuration CDK does not own outright.
|
|
29
|
+
*
|
|
30
|
+
* `Managed: false` is what CDK emits for a Bucket the app imported rather
|
|
31
|
+
* than declared, and it means merge this configuration with whatever the
|
|
32
|
+
* Bucket already has rather than replace it. Simulated S3 only replaces, so
|
|
33
|
+
* applying it as written would discard configurations that survive on real
|
|
34
|
+
* AWS. Refusing says so at deploy time instead.
|
|
35
|
+
*/
|
|
36
|
+
assertManaged(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Read a boolean property.
|
|
39
|
+
*
|
|
40
|
+
* Real CloudFormation stringifies every custom Resource property before the
|
|
41
|
+
* provider function sees it, which is why CDK's own handler compares against
|
|
42
|
+
* the string "true". The template itself carries a JSON boolean, so both are
|
|
43
|
+
* read here.
|
|
44
|
+
*/
|
|
45
|
+
private flag;
|
|
46
|
+
private refuseUnknownProperties;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=sim-cdk-bucket-notification-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-notification-properties.d.ts","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,sDAAsD,CAAC;AAkB9D;;;;;;;;GAQG;AACH,qBAAa,kCAAkC;IAC7C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA4B;IAEvD,YAAY,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,yBAAyB,EAKnE;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,MAAM,CAWvB;IAED;;OAEG;IACH,IAAI,yBAAyB,IAAI,mBAAmB,GAAG,SAAS,CAE/D;IAED;;OAEG;IACH,IAAI,yBAAyB,IAAI,OAAO,CAEvC;IAED;;;;;;;;OAQG;IACH,aAAa,IAAI,IAAI,CAYpB;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,IAAI;IAsBZ,OAAO,CAAC,uBAAuB;CAWhC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { bucketNotificationsError } from "../error/sim-cdk-bucket-notification-error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The properties CDK puts on a Custom::S3BucketNotifications Resource.
|
|
4
|
+
*
|
|
5
|
+
* `ServiceToken` is read and ignored. It points at CDK's own Python provider
|
|
6
|
+
* function, whose whole job is the PutBucketNotificationConfiguration call this
|
|
7
|
+
* factory makes instead.
|
|
8
|
+
*/
|
|
9
|
+
const knownPropertyNames = new Set([
|
|
10
|
+
"BucketName",
|
|
11
|
+
"Managed",
|
|
12
|
+
"NotificationConfiguration",
|
|
13
|
+
"ServiceToken",
|
|
14
|
+
"SkipDestinationValidation",
|
|
15
|
+
]);
|
|
16
|
+
/**
|
|
17
|
+
* Reads the properties of one Custom::S3BucketNotifications Resource.
|
|
18
|
+
*
|
|
19
|
+
* A property name CDK does not emit is refused rather than ignored. This
|
|
20
|
+
* Resource is a private contract between CDK and its own provider function, so
|
|
21
|
+
* a name that turns up here is a version of CDK asking for something this
|
|
22
|
+
* simulator has not been told about, and quietly dropping it would leave the
|
|
23
|
+
* Bucket configured differently from the app that was deployed.
|
|
24
|
+
*/
|
|
25
|
+
export class SimCdkBucketNotificationProperties {
|
|
26
|
+
logicalId;
|
|
27
|
+
properties;
|
|
28
|
+
constructor(logicalId, properties) {
|
|
29
|
+
this.logicalId = logicalId;
|
|
30
|
+
this.properties = properties;
|
|
31
|
+
this.refuseUnknownProperties();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The Bucket the configuration is applied to.
|
|
35
|
+
*/
|
|
36
|
+
get bucketName() {
|
|
37
|
+
const bucketName = this.properties["BucketName"];
|
|
38
|
+
if (typeof bucketName !== "string" || bucketName === "") {
|
|
39
|
+
throw bucketNotificationsError(this.logicalId, "BucketName must resolve to a Bucket name");
|
|
40
|
+
}
|
|
41
|
+
return bucketName;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The configuration to apply, still as the template wrote it.
|
|
45
|
+
*/
|
|
46
|
+
get notificationConfiguration() {
|
|
47
|
+
return this.properties["NotificationConfiguration"];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Whether S3 validates the destinations as the configuration is applied.
|
|
51
|
+
*/
|
|
52
|
+
get skipDestinationValidation() {
|
|
53
|
+
return this.flag("SkipDestinationValidation", false);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Refuse a Resource whose configuration CDK does not own outright.
|
|
57
|
+
*
|
|
58
|
+
* `Managed: false` is what CDK emits for a Bucket the app imported rather
|
|
59
|
+
* than declared, and it means merge this configuration with whatever the
|
|
60
|
+
* Bucket already has rather than replace it. Simulated S3 only replaces, so
|
|
61
|
+
* applying it as written would discard configurations that survive on real
|
|
62
|
+
* AWS. Refusing says so at deploy time instead.
|
|
63
|
+
*/
|
|
64
|
+
assertManaged() {
|
|
65
|
+
if (!this.flag("Managed", true)) {
|
|
66
|
+
throw bucketNotificationsError(this.logicalId, "Managed is false, which asks S3 to merge this configuration with " +
|
|
67
|
+
"the configurations already on the Bucket rather than replace " +
|
|
68
|
+
"them. Simulated S3 replaces the whole configuration, so the " +
|
|
69
|
+
"merge is not simulated. CDK emits this for a Bucket the app " +
|
|
70
|
+
"imported rather than declared; declare the Bucket in the same " +
|
|
71
|
+
"Stack to get a managed notification configuration");
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Read a boolean property.
|
|
76
|
+
*
|
|
77
|
+
* Real CloudFormation stringifies every custom Resource property before the
|
|
78
|
+
* provider function sees it, which is why CDK's own handler compares against
|
|
79
|
+
* the string "true". The template itself carries a JSON boolean, so both are
|
|
80
|
+
* read here.
|
|
81
|
+
*/
|
|
82
|
+
flag(name, whenAbsent) {
|
|
83
|
+
// eslint-disable-next-line security/detect-object-injection -- one of the two flag names this class names itself.
|
|
84
|
+
const value = this.properties[name];
|
|
85
|
+
if (value === undefined) {
|
|
86
|
+
return whenAbsent;
|
|
87
|
+
}
|
|
88
|
+
if (typeof value === "boolean") {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
if (value === "true" || value === "false") {
|
|
92
|
+
return value === "true";
|
|
93
|
+
}
|
|
94
|
+
throw bucketNotificationsError(this.logicalId, `${name} must be true or false`);
|
|
95
|
+
}
|
|
96
|
+
refuseUnknownProperties() {
|
|
97
|
+
for (const name of Object.keys(this.properties)) {
|
|
98
|
+
if (!knownPropertyNames.has(name)) {
|
|
99
|
+
throw bucketNotificationsError(this.logicalId, `${name} is not a Custom::S3BucketNotifications property this ` +
|
|
100
|
+
"simulation knows about, so it is refused rather than ignored");
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=sim-cdk-bucket-notification-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-notification-properties.js","sourceRoot":"","sources":["../../../../../../../src/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAEzF;;;;;;GAMG;AACH,MAAM,kBAAkB,GAAwB,IAAI,GAAG,CAAC;IACtD,YAAY;IACZ,SAAS;IACT,2BAA2B;IAC3B,cAAc;IACd,2BAA2B;CAC5B,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,OAAO,kCAAkC;IAC5B,SAAS,CAAS;IAClB,UAAU,CAA4B;IAEvD,YAAY,SAAiB,EAAE,UAAqC;QAClE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAE7B,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAED;;OAEG;IACH,IAAI,UAAU;QACZ,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;QAEjD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,EAAE,EAAE,CAAC;YACxD,MAAM,wBAAwB,CAC5B,IAAI,CAAC,SAAS,EACd,0CAA0C,CAC3C,CAAC;QACJ,CAAC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,IAAI,yBAAyB;QAC3B,OAAO,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,IAAI,yBAAyB;QAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;OAQG;IACH,aAAa;QACX,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC;YAChC,MAAM,wBAAwB,CAC5B,IAAI,CAAC,SAAS,EACd,mEAAmE;gBACjE,+DAA+D;gBAC/D,8DAA8D;gBAC9D,8DAA8D;gBAC9D,gEAAgE;gBAChE,mDAAmD,CACtD,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;;;;;OAOG;IACK,IAAI,CAAC,IAAY,EAAE,UAAmB;QAC5C,kHAAkH;QAClH,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAEpC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,UAAU,CAAC;QACpB,CAAC;QAED,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;YAC/B,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,OAAO,EAAE,CAAC;YAC1C,OAAO,KAAK,KAAK,MAAM,CAAC;QAC1B,CAAC;QAED,MAAM,wBAAwB,CAC5B,IAAI,CAAC,SAAS,EACd,GAAG,IAAI,wBAAwB,CAChC,CAAC;IACJ,CAAC;IAEO,uBAAuB;QAC7B,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAChD,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBAClC,MAAM,wBAAwB,CAC5B,IAAI,CAAC,SAAS,EACd,GAAG,IAAI,wDAAwD;oBAC7D,8DAA8D,CACjE,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { MappedFactory } from "@kensio/part-factory";
|
|
2
|
+
import type { CfnTemplateBodyRecord } from "../../../template/sim-cfn-template.js";
|
|
3
|
+
import type { SimCfnTemplateValueRecord } from "../../../template/value/sim-cfn-template-value.js";
|
|
4
|
+
/**
|
|
5
|
+
* What a test asks for when it wants the template CDK synthesizes for
|
|
6
|
+
* `bucket.addEventNotification(...)`.
|
|
7
|
+
*
|
|
8
|
+
* Four Resources stand between a test and a Bucket that notifies a function,
|
|
9
|
+
* and most tests about the custom Resource are about one property of one of
|
|
10
|
+
* them. `notificationProperties` is merged in last, so a test states the one
|
|
11
|
+
* property it is about rather than the whole template.
|
|
12
|
+
*/
|
|
13
|
+
export interface SimCdkBucketNotificationsTemplateInput {
|
|
14
|
+
readonly bucketName: string;
|
|
15
|
+
readonly functionName: string;
|
|
16
|
+
/** The inline function code the notification is delivered to. */
|
|
17
|
+
readonly handlerSource: string;
|
|
18
|
+
/** The configuration the custom Resource carries, in the SDK request shape. */
|
|
19
|
+
readonly notificationConfiguration: SimCfnTemplateValueRecord;
|
|
20
|
+
readonly notificationProperties: SimCfnTemplateValueRecord;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the template grants S3 permission to invoke the function, which
|
|
23
|
+
* CDK always does alongside the notification.
|
|
24
|
+
*/
|
|
25
|
+
readonly permitted: boolean;
|
|
26
|
+
readonly resources: SimCfnTemplateValueRecord;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Builds the template CDK synthesizes for a Bucket event notification.
|
|
30
|
+
*
|
|
31
|
+
* ```typescript
|
|
32
|
+
* const stack = await simAws.cloudFormation().deployTemplate({
|
|
33
|
+
* stackName: "uploads-stack",
|
|
34
|
+
* template: simCdkBucketNotificationsTemplateFactory.make({
|
|
35
|
+
* notificationProperties: { Managed: false },
|
|
36
|
+
* }),
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* The `ServiceToken` points at nothing, as it does in the tests that matter:
|
|
41
|
+
* CDK's provider function is a Python function this simulator skips, and the
|
|
42
|
+
* factory reads the properties around the token rather than the token itself.
|
|
43
|
+
*/
|
|
44
|
+
export declare const simCdkBucketNotificationsTemplateFactory: MappedFactory<SimCdkBucketNotificationsTemplateInput, CfnTemplateBodyRecord, undefined>;
|
|
45
|
+
//# sourceMappingURL=sim-cdk-bucket-notifications-template.factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-notifications-template.factory.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications-template.factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAEnG;;;;;;;;GAQG;AACH,MAAM,WAAW,sCAAsC;IACrD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,iEAAiE;IACjE,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,+EAA+E;IAC/E,QAAQ,CAAC,yBAAyB,EAAE,yBAAyB,CAAC;IAC9D,QAAQ,CAAC,sBAAsB,EAAE,yBAAyB,CAAC;IAC3D;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,yBAAyB,CAAC;CAC/C;AAqBD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,wCAAwC,yFA2DpD,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { MappedFactory } from "@kensio/part-factory";
|
|
2
|
+
const assumeRolePolicyDocument = {
|
|
3
|
+
Version: "2012-10-17",
|
|
4
|
+
Statement: [
|
|
5
|
+
{
|
|
6
|
+
Effect: "Allow",
|
|
7
|
+
Principal: { Service: "lambda.amazonaws.com" },
|
|
8
|
+
Action: "sts:AssumeRole",
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Builds the template CDK synthesizes for a Bucket event notification.
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* const stack = await simAws.cloudFormation().deployTemplate({
|
|
17
|
+
* stackName: "uploads-stack",
|
|
18
|
+
* template: simCdkBucketNotificationsTemplateFactory.make({
|
|
19
|
+
* notificationProperties: { Managed: false },
|
|
20
|
+
* }),
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* The `ServiceToken` points at nothing, as it does in the tests that matter:
|
|
25
|
+
* CDK's provider function is a Python function this simulator skips, and the
|
|
26
|
+
* factory reads the properties around the token rather than the token itself.
|
|
27
|
+
*/
|
|
28
|
+
export const simCdkBucketNotificationsTemplateFactory = new MappedFactory(() => ({
|
|
29
|
+
bucketName: "uploads",
|
|
30
|
+
functionName: "thumbnailer",
|
|
31
|
+
handlerSource: "exports.handler = async () => 'thumbnailed';",
|
|
32
|
+
notificationConfiguration: {
|
|
33
|
+
LambdaFunctionConfigurations: [
|
|
34
|
+
{
|
|
35
|
+
Events: ["s3:ObjectCreated:*"],
|
|
36
|
+
LambdaFunctionArn: { "Fn::GetAtt": ["Handler", "Arn"] },
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
notificationProperties: {},
|
|
41
|
+
permitted: true,
|
|
42
|
+
resources: {},
|
|
43
|
+
}), (input) => ({
|
|
44
|
+
Resources: {
|
|
45
|
+
Bucket: {
|
|
46
|
+
Type: "AWS::S3::Bucket",
|
|
47
|
+
Properties: { BucketName: input.bucketName },
|
|
48
|
+
},
|
|
49
|
+
HandlerRole: {
|
|
50
|
+
Type: "AWS::IAM::Role",
|
|
51
|
+
Properties: {
|
|
52
|
+
RoleName: `${input.functionName}-role`,
|
|
53
|
+
AssumeRolePolicyDocument: assumeRolePolicyDocument,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
Handler: {
|
|
57
|
+
Type: "AWS::Lambda::Function",
|
|
58
|
+
Properties: {
|
|
59
|
+
FunctionName: input.functionName,
|
|
60
|
+
Role: { "Fn::GetAtt": ["HandlerRole", "Arn"] },
|
|
61
|
+
Code: { ZipFile: input.handlerSource },
|
|
62
|
+
Handler: "index.handler",
|
|
63
|
+
Runtime: "nodejs20.x",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
...invokePermission(input).resources,
|
|
67
|
+
BucketNotifications: {
|
|
68
|
+
Type: "Custom::S3BucketNotifications",
|
|
69
|
+
...invokePermission(input).dependsOn,
|
|
70
|
+
Properties: {
|
|
71
|
+
ServiceToken: "arn:aws:lambda:us-east-1:888888888888:function:cdk",
|
|
72
|
+
BucketName: { Ref: "Bucket" },
|
|
73
|
+
NotificationConfiguration: input.notificationConfiguration,
|
|
74
|
+
Managed: true,
|
|
75
|
+
SkipDestinationValidation: false,
|
|
76
|
+
...input.notificationProperties,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
...input.resources,
|
|
80
|
+
},
|
|
81
|
+
}));
|
|
82
|
+
/**
|
|
83
|
+
* What the template carries for the `AWS::Lambda::Permission` CDK writes beside
|
|
84
|
+
* the notification, letting S3 invoke the function for events from this Bucket.
|
|
85
|
+
*
|
|
86
|
+
* The `DependsOn` comes with it, because it is what CDK writes to have the
|
|
87
|
+
* permission in place before S3 validates the destination naming the function.
|
|
88
|
+
*/
|
|
89
|
+
function invokePermission(input) {
|
|
90
|
+
if (!input.permitted) {
|
|
91
|
+
return { resources: {}, dependsOn: {} };
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
dependsOn: { DependsOn: ["HandlerPermission"] },
|
|
95
|
+
resources: {
|
|
96
|
+
HandlerPermission: {
|
|
97
|
+
Type: "AWS::Lambda::Permission",
|
|
98
|
+
Properties: {
|
|
99
|
+
Action: "lambda:InvokeFunction",
|
|
100
|
+
FunctionName: { "Fn::GetAtt": ["Handler", "Arn"] },
|
|
101
|
+
Principal: "s3.amazonaws.com",
|
|
102
|
+
SourceAccount: { Ref: "AWS::AccountId" },
|
|
103
|
+
SourceArn: { "Fn::GetAtt": ["Bucket", "Arn"] },
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=sim-cdk-bucket-notifications-template.factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-notifications-template.factory.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications-template.factory.ts"],"names":[],"mappings":"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"}
|
package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { SimCfnServiceResourceFactory } from "../../../resource/factory/sim-cfn-resource-factory.type.js";
|
|
2
|
+
import type { SimCfnResource, SimCloudFormationResourceCreateContext } from "../../../resource/sim-cfn-resource.js";
|
|
3
|
+
/**
|
|
4
|
+
* CloudFormation Resource factory for CDK Bucket event notifications.
|
|
5
|
+
*
|
|
6
|
+
* CDK never emits the `AWS::S3::Bucket` `NotificationConfiguration` property.
|
|
7
|
+
* Every `bucket.addEventNotification(...)` becomes a
|
|
8
|
+
* `Custom::S3BucketNotifications` Resource backed by a Python provider function
|
|
9
|
+
* whose only job is one PutBucketNotificationConfiguration call. The Resource
|
|
10
|
+
* therefore already carries the SDK request shape, and this factory makes that
|
|
11
|
+
* call through the ordinary command path, so a CDK app and an SDK caller are
|
|
12
|
+
* validated identically.
|
|
13
|
+
*
|
|
14
|
+
* `ServiceToken` is ignored. The provider function it names is skipped on its
|
|
15
|
+
* runtime, as CDK's BucketDeployment provider already is.
|
|
16
|
+
*/
|
|
17
|
+
export declare class SimCdkBucketNotificationsResourceFactory implements SimCfnServiceResourceFactory {
|
|
18
|
+
/**
|
|
19
|
+
* Apply a CDK Bucket notification configuration to the simulated Bucket.
|
|
20
|
+
*
|
|
21
|
+
* Nothing is returned as the Resource's simulated object. A notification
|
|
22
|
+
* configuration has no existence of its own in S3, so there is nothing for
|
|
23
|
+
* `Ref` or `Fn::GetAtt` to answer with, and CDK references neither.
|
|
24
|
+
*/
|
|
25
|
+
create(resourceTypeName: string, resource: SimCfnResource, context: SimCloudFormationResourceCreateContext): Promise<undefined>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=sim-cdk-bucket-notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-notifications.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAC/G,OAAO,KAAK,EACV,cAAc,EACd,sCAAsC,EACvC,MAAM,uCAAuC,CAAC;AAK/C;;;;;;;;;;;;;GAaG;AACH,qBAAa,wCAAyC,YAAW,4BAA4B;IAC3F;;;;;;OAMG;IACG,MAAM,CACV,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,sCAAsC,GAC9C,OAAO,CAAC,SAAS,CAAC,CAkCpB;CACF"}
|
package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SimCdkBucketNotificationConfiguration } from "./configuration/sim-cdk-bucket-notification-configuration.js";
|
|
2
|
+
import { bucketNotificationsError } from "./error/sim-cdk-bucket-notification-error.js";
|
|
3
|
+
import { SimCdkBucketNotificationProperties } from "./property/sim-cdk-bucket-notification-properties.js";
|
|
4
|
+
/**
|
|
5
|
+
* CloudFormation Resource factory for CDK Bucket event notifications.
|
|
6
|
+
*
|
|
7
|
+
* CDK never emits the `AWS::S3::Bucket` `NotificationConfiguration` property.
|
|
8
|
+
* Every `bucket.addEventNotification(...)` becomes a
|
|
9
|
+
* `Custom::S3BucketNotifications` Resource backed by a Python provider function
|
|
10
|
+
* whose only job is one PutBucketNotificationConfiguration call. The Resource
|
|
11
|
+
* therefore already carries the SDK request shape, and this factory makes that
|
|
12
|
+
* call through the ordinary command path, so a CDK app and an SDK caller are
|
|
13
|
+
* validated identically.
|
|
14
|
+
*
|
|
15
|
+
* `ServiceToken` is ignored. The provider function it names is skipped on its
|
|
16
|
+
* runtime, as CDK's BucketDeployment provider already is.
|
|
17
|
+
*/
|
|
18
|
+
export class SimCdkBucketNotificationsResourceFactory {
|
|
19
|
+
/**
|
|
20
|
+
* Apply a CDK Bucket notification configuration to the simulated Bucket.
|
|
21
|
+
*
|
|
22
|
+
* Nothing is returned as the Resource's simulated object. A notification
|
|
23
|
+
* configuration has no existence of its own in S3, so there is nothing for
|
|
24
|
+
* `Ref` or `Fn::GetAtt` to answer with, and CDK references neither.
|
|
25
|
+
*/
|
|
26
|
+
async create(resourceTypeName, resource, context) {
|
|
27
|
+
/* v8 ignore if -- defensive catch; the resolver routes on this name */
|
|
28
|
+
if (resourceTypeName !== "S3BucketNotifications") {
|
|
29
|
+
throw bucketNotificationsError(resource.logicalId, `${resourceTypeName} is not a Resource type this factory creates`);
|
|
30
|
+
}
|
|
31
|
+
const properties = new SimCdkBucketNotificationProperties(resource.logicalId, context.resolvedProperties ?? resource.properties);
|
|
32
|
+
properties.assertManaged();
|
|
33
|
+
const configuration = new SimCdkBucketNotificationConfiguration(resource.logicalId).read(properties.notificationConfiguration);
|
|
34
|
+
await context.simAws
|
|
35
|
+
.accountRegionScope(resource.accountRegionScope.accountId, resource.accountRegionScope.regionName)
|
|
36
|
+
.s3()
|
|
37
|
+
.putBucketNotificationConfiguration({
|
|
38
|
+
input: {
|
|
39
|
+
Bucket: properties.bucketName,
|
|
40
|
+
NotificationConfiguration: configuration,
|
|
41
|
+
SkipDestinationValidation: properties.skipDestinationValidation,
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=sim-cdk-bucket-notifications.js.map
|
package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cdk-bucket-notifications.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qCAAqC,EAAE,MAAM,8DAA8D,CAAC;AACrH,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAE,kCAAkC,EAAE,MAAM,sDAAsD,CAAC;AAE1G;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,wCAAwC;IACnD;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CACV,gBAAwB,EACxB,QAAwB,EACxB,OAA+C;QAE/C,uEAAuE;QACvE,IAAI,gBAAgB,KAAK,uBAAuB,EAAE,CAAC;YACjD,MAAM,wBAAwB,CAC5B,QAAQ,CAAC,SAAS,EAClB,GAAG,gBAAgB,8CAA8C,CAClE,CAAC;QACJ,CAAC;QAED,MAAM,UAAU,GAAG,IAAI,kCAAkC,CACvD,QAAQ,CAAC,SAAS,EAClB,OAAO,CAAC,kBAAkB,IAAI,QAAQ,CAAC,UAAU,CAClD,CAAC;QACF,UAAU,CAAC,aAAa,EAAE,CAAC;QAE3B,MAAM,aAAa,GAAG,IAAI,qCAAqC,CAC7D,QAAQ,CAAC,SAAS,CACnB,CAAC,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC;QAE7C,MAAM,OAAO,CAAC,MAAM;aACjB,kBAAkB,CACjB,QAAQ,CAAC,kBAAkB,CAAC,SAAS,EACrC,QAAQ,CAAC,kBAAkB,CAAC,UAAU,CACvC;aACA,EAAE,EAAE;aACJ,kCAAkC,CAAC;YAClC,KAAK,EAAE;gBACL,MAAM,EAAE,UAAU,CAAC,UAAU;gBAC7B,yBAAyB,EAAE,aAAa;gBACxC,yBAAyB,EAAE,UAAU,CAAC,yBAAyB;aAChE;SACF,CAAC,CAAC;QAEL,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|