@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,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The event notification configuration of one simulated S3 Bucket.
|
|
3
|
+
*
|
|
4
|
+
* A Bucket has one configuration rather than a list of them, which is why
|
|
5
|
+
* PutBucketNotificationConfiguration replaces the whole thing: real S3 has no
|
|
6
|
+
* way to add one destination without restating the others.
|
|
7
|
+
*/
|
|
8
|
+
export class SimS3NotificationConfiguration {
|
|
9
|
+
lambdaNotifications;
|
|
10
|
+
constructor(lambdaNotifications = []) {
|
|
11
|
+
this.lambdaNotifications = lambdaNotifications;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The configuration a Bucket nobody has configured has.
|
|
15
|
+
*/
|
|
16
|
+
static empty() {
|
|
17
|
+
return new SimS3NotificationConfiguration();
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Whether this Bucket notifies anything at all.
|
|
21
|
+
*/
|
|
22
|
+
get notifiesNothing() {
|
|
23
|
+
return this.lambdaNotifications.length === 0;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The destinations an event about an object key should reach.
|
|
27
|
+
*/
|
|
28
|
+
matching(event, key) {
|
|
29
|
+
return this.lambdaNotifications.filter((notification) => notification.matches(event, key));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* This configuration as GetBucketNotificationConfiguration reports it.
|
|
33
|
+
*
|
|
34
|
+
* A destination group with nothing in it is left out rather than reported
|
|
35
|
+
* empty, which is what real S3 answers for a Bucket with no configuration.
|
|
36
|
+
*/
|
|
37
|
+
toOutput() {
|
|
38
|
+
if (this.notifiesNothing) {
|
|
39
|
+
return {};
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
LambdaFunctionConfigurations: this.lambdaNotifications.map((notification) => notification.toOutput()),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=sim-s3-notification-configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-s3-notification-configuration.js","sourceRoot":"","sources":["../../../../../src/service/s3/bucket/notification/sim-s3-notification-configuration.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,MAAM,OAAO,8BAA8B;IACzB,mBAAmB,CAAqC;IAExE,YAAY,mBAAmB,GAAuC,EAAE;QACtE,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAK;QACV,OAAO,IAAI,8BAA8B,EAAE,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,KAAK,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,KAA6B,EAC7B,GAAW;QAEX,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CACtD,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CACjC,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,QAAQ;QACN,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YACzB,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO;YACL,4BAA4B,EAAE,IAAI,CAAC,mBAAmB,CAAC,GAAG,CACxD,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,CAC1C;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The event types simulated S3 can actually raise.
|
|
3
|
+
*
|
|
4
|
+
* These are the concrete members that a configured event expands to. Real S3
|
|
5
|
+
* has many more, and the ones it has that this simulator cannot produce are
|
|
6
|
+
* refused by name rather than accepted and never delivered.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SIM_S3_NOTIFICATION_EVENTS: readonly ["s3:ObjectCreated:Put", "s3:ObjectRemoved:Delete"];
|
|
9
|
+
export type SimS3NotificationEvent = (typeof SIM_S3_NOTIFICATION_EVENTS)[number];
|
|
10
|
+
/**
|
|
11
|
+
* The concrete events a configured event type covers.
|
|
12
|
+
*
|
|
13
|
+
* An event type real S3 has but this simulator cannot raise is refused as not
|
|
14
|
+
* implemented. Anything else is not an S3 event type at all, which is what
|
|
15
|
+
* real S3 answers InvalidArgument to.
|
|
16
|
+
*/
|
|
17
|
+
export declare function simS3ExpandNotificationEvent(event: string): readonly SimS3NotificationEvent[];
|
|
18
|
+
//# sourceMappingURL=sim-s3-notification-event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-s3-notification-event.d.ts","sourceRoot":"","sources":["../../../../../src/service/s3/bucket/notification/sim-s3-notification-event.ts"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,YACrC,sBAAsB,EACtB,yBAAyB,CACjB,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAqB9C;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,MAAM,GACZ,SAAS,sBAAsB,EAAE,CAiBnC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { SimS3InvalidArgument, SimS3NotImplemented, } from "../../error/sim-s3.error.js";
|
|
2
|
+
import { SIM_S3_UNSIMULATED_NOTIFICATION_EVENTS } from "./sim-s3-unsimulated-notification-events.js";
|
|
3
|
+
/**
|
|
4
|
+
* The event types simulated S3 can actually raise.
|
|
5
|
+
*
|
|
6
|
+
* These are the concrete members that a configured event expands to. Real S3
|
|
7
|
+
* has many more, and the ones it has that this simulator cannot produce are
|
|
8
|
+
* refused by name rather than accepted and never delivered.
|
|
9
|
+
*/
|
|
10
|
+
export const SIM_S3_NOTIFICATION_EVENTS = [
|
|
11
|
+
"s3:ObjectCreated:Put",
|
|
12
|
+
"s3:ObjectRemoved:Delete",
|
|
13
|
+
];
|
|
14
|
+
/**
|
|
15
|
+
* What each configurable event type expands to.
|
|
16
|
+
*
|
|
17
|
+
* A `:*` event is expanded before anything compares two configurations,
|
|
18
|
+
* because the overlap rule is about event sets rather than event strings: real
|
|
19
|
+
* S3 refuses `s3:ObjectCreated:*` alongside `s3:ObjectCreated:Put` on the same
|
|
20
|
+
* filter, and comparing the two as strings would accept it.
|
|
21
|
+
*
|
|
22
|
+
* The wildcards expand only to the members this simulator can raise. The other
|
|
23
|
+
* members are refused by name, so nothing can configure one and then wonder
|
|
24
|
+
* why the wildcard never covered it.
|
|
25
|
+
*/
|
|
26
|
+
const eventExpansions = new Map([
|
|
27
|
+
["s3:ObjectCreated:*", ["s3:ObjectCreated:Put"]],
|
|
28
|
+
["s3:ObjectCreated:Put", ["s3:ObjectCreated:Put"]],
|
|
29
|
+
["s3:ObjectRemoved:*", ["s3:ObjectRemoved:Delete"]],
|
|
30
|
+
["s3:ObjectRemoved:Delete", ["s3:ObjectRemoved:Delete"]],
|
|
31
|
+
]);
|
|
32
|
+
/**
|
|
33
|
+
* The concrete events a configured event type covers.
|
|
34
|
+
*
|
|
35
|
+
* An event type real S3 has but this simulator cannot raise is refused as not
|
|
36
|
+
* implemented. Anything else is not an S3 event type at all, which is what
|
|
37
|
+
* real S3 answers InvalidArgument to.
|
|
38
|
+
*/
|
|
39
|
+
export function simS3ExpandNotificationEvent(event) {
|
|
40
|
+
const expansion = eventExpansions.get(event);
|
|
41
|
+
if (expansion !== undefined) {
|
|
42
|
+
return expansion;
|
|
43
|
+
}
|
|
44
|
+
if (SIM_S3_UNSIMULATED_NOTIFICATION_EVENTS.has(event)) {
|
|
45
|
+
throw new SimS3NotImplemented(`Simulated S3 does not raise the event type ${event}. It raises ` +
|
|
46
|
+
`${eventExpansions.keys().toArray().join(", ")}.`);
|
|
47
|
+
}
|
|
48
|
+
throw new SimS3InvalidArgument(`The event ${event} is not a supported S3 event type.`);
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=sim-s3-notification-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-s3-notification-event.js","sourceRoot":"","sources":["../../../../../src/service/s3/bucket/notification/sim-s3-notification-event.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AAErG;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,sBAAsB;IACtB,yBAAyB;CACjB,CAAC;AAKX;;;;;;;;;;;GAWG;AACH,MAAM,eAAe,GAAG,IAAI,GAAG,CAA4C;IACzE,CAAC,oBAAoB,EAAE,CAAC,sBAAsB,CAAC,CAAC;IAChD,CAAC,sBAAsB,EAAE,CAAC,sBAAsB,CAAC,CAAC;IAClD,CAAC,oBAAoB,EAAE,CAAC,yBAAyB,CAAC,CAAC;IACnD,CAAC,yBAAyB,EAAE,CAAC,yBAAyB,CAAC,CAAC;CACzD,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,UAAU,4BAA4B,CAC1C,KAAa;IAEb,MAAM,SAAS,GAAG,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAE7C,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,sCAAsC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,mBAAmB,CAC3B,8CAA8C,KAAK,cAAc;YAC/D,GAAG,eAAe,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CACpD,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,oBAAoB,CAC5B,aAAa,KAAK,oCAAoC,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { SimS3NotificationFilterInput } from "../../command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.js";
|
|
2
|
+
/**
|
|
3
|
+
* The object key filter of one notification configuration.
|
|
4
|
+
*
|
|
5
|
+
* An absent prefix or suffix is held as an empty string rather than as
|
|
6
|
+
* undefined, because that is what it means to S3: the root prefix matches every
|
|
7
|
+
* key and overlaps every other prefix, and the same goes for the root suffix.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SimS3NotificationFilter {
|
|
10
|
+
readonly prefix: string;
|
|
11
|
+
readonly suffix: string;
|
|
12
|
+
constructor(prefix?: string, suffix?: string);
|
|
13
|
+
/**
|
|
14
|
+
* Read the filter of one notification configuration.
|
|
15
|
+
*
|
|
16
|
+
* A filter rule name S3 does not have is refused by name, as is a rule name
|
|
17
|
+
* repeated twice, which real S3 refuses rather than taking the last one.
|
|
18
|
+
*/
|
|
19
|
+
static fromInput(filter: SimS3NotificationFilterInput | undefined): SimS3NotificationFilter;
|
|
20
|
+
/**
|
|
21
|
+
* Whether an object key passes this filter.
|
|
22
|
+
*/
|
|
23
|
+
matches(key: string): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether some object key could pass both this filter and another.
|
|
26
|
+
*
|
|
27
|
+
* Two prefixes overlap when a key could begin with both, which is to say
|
|
28
|
+
* when one is a prefix of the other, and two suffixes overlap on the same
|
|
29
|
+
* reasoning at the other end. A filter pair only conflicts when both ends
|
|
30
|
+
* overlap: `images` with `.jpg` and `images` with `.png` share a prefix but
|
|
31
|
+
* no key ends both ways, which is why real S3 accepts that pair.
|
|
32
|
+
*/
|
|
33
|
+
overlaps(other: SimS3NotificationFilter): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* This filter as a notification configuration reports it, or nothing when it
|
|
36
|
+
* filters nothing.
|
|
37
|
+
*/
|
|
38
|
+
toOutput(): SimS3NotificationFilterInput | undefined;
|
|
39
|
+
private prefixesOverlap;
|
|
40
|
+
private suffixesOverlap;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=sim-s3-notification-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-s3-notification-filter.d.ts","sourceRoot":"","sources":["../../../../../src/service/s3/bucket/notification/sim-s3-notification-filter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,4BAA4B,EAE7B,MAAM,sGAAsG,CAAC;AAE9G;;;;;;GAMG;AACH,qBAAa,uBAAuB;IAClC,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,SAAgB,MAAM,EAAE,MAAM,CAAC;IAE/B,YAAY,MAAM,SAAK,EAAE,MAAM,SAAK,EAGnC;IAED;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CACd,MAAM,EAAE,4BAA4B,GAAG,SAAS,GAC/C,uBAAuB,CAqBzB;IAED;;OAEG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE5B;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAIhD;IAED;;;OAGG;IACH,QAAQ,IAAI,4BAA4B,GAAG,SAAS,CAgBnD;IAED,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,eAAe;CAGxB"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { SimS3InvalidArgument } from "../../error/sim-s3.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The object key filter of one notification configuration.
|
|
4
|
+
*
|
|
5
|
+
* An absent prefix or suffix is held as an empty string rather than as
|
|
6
|
+
* undefined, because that is what it means to S3: the root prefix matches every
|
|
7
|
+
* key and overlaps every other prefix, and the same goes for the root suffix.
|
|
8
|
+
*/
|
|
9
|
+
export class SimS3NotificationFilter {
|
|
10
|
+
prefix;
|
|
11
|
+
suffix;
|
|
12
|
+
constructor(prefix = "", suffix = "") {
|
|
13
|
+
this.prefix = prefix;
|
|
14
|
+
this.suffix = suffix;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Read the filter of one notification configuration.
|
|
18
|
+
*
|
|
19
|
+
* A filter rule name S3 does not have is refused by name, as is a rule name
|
|
20
|
+
* repeated twice, which real S3 refuses rather than taking the last one.
|
|
21
|
+
*/
|
|
22
|
+
static fromInput(filter) {
|
|
23
|
+
const rules = filter?.Key?.FilterRules ?? [];
|
|
24
|
+
const values = new Map();
|
|
25
|
+
for (const rule of rules) {
|
|
26
|
+
const name = simS3NotificationFilterRuleName(rule);
|
|
27
|
+
if (values.has(name)) {
|
|
28
|
+
throw new SimS3InvalidArgument(`Filter rule ${name} is specified more than once in one ` +
|
|
29
|
+
"notification configuration.");
|
|
30
|
+
}
|
|
31
|
+
values.set(name, rule.Value ?? "");
|
|
32
|
+
}
|
|
33
|
+
return new SimS3NotificationFilter(values.get("prefix"), values.get("suffix"));
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Whether an object key passes this filter.
|
|
37
|
+
*/
|
|
38
|
+
matches(key) {
|
|
39
|
+
return key.startsWith(this.prefix) && key.endsWith(this.suffix);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Whether some object key could pass both this filter and another.
|
|
43
|
+
*
|
|
44
|
+
* Two prefixes overlap when a key could begin with both, which is to say
|
|
45
|
+
* when one is a prefix of the other, and two suffixes overlap on the same
|
|
46
|
+
* reasoning at the other end. A filter pair only conflicts when both ends
|
|
47
|
+
* overlap: `images` with `.jpg` and `images` with `.png` share a prefix but
|
|
48
|
+
* no key ends both ways, which is why real S3 accepts that pair.
|
|
49
|
+
*/
|
|
50
|
+
overlaps(other) {
|
|
51
|
+
return (this.prefixesOverlap(other.prefix) && this.suffixesOverlap(other.suffix));
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* This filter as a notification configuration reports it, or nothing when it
|
|
55
|
+
* filters nothing.
|
|
56
|
+
*/
|
|
57
|
+
toOutput() {
|
|
58
|
+
const rules = [];
|
|
59
|
+
if (this.prefix !== "") {
|
|
60
|
+
rules.push({ Name: "prefix", Value: this.prefix });
|
|
61
|
+
}
|
|
62
|
+
if (this.suffix !== "") {
|
|
63
|
+
rules.push({ Name: "suffix", Value: this.suffix });
|
|
64
|
+
}
|
|
65
|
+
if (rules.length === 0) {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
return { Key: { FilterRules: rules } };
|
|
69
|
+
}
|
|
70
|
+
prefixesOverlap(other) {
|
|
71
|
+
return this.prefix.startsWith(other) || other.startsWith(this.prefix);
|
|
72
|
+
}
|
|
73
|
+
suffixesOverlap(other) {
|
|
74
|
+
return this.suffix.endsWith(other) || other.endsWith(this.suffix);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The filter rule name a rule names, refusing anything S3 does not filter on.
|
|
79
|
+
*
|
|
80
|
+
* The name is matched case-insensitively because the SDK and the REST XML
|
|
81
|
+
* disagree about the capitalisation, while the value is taken as written.
|
|
82
|
+
*/
|
|
83
|
+
function simS3NotificationFilterRuleName(rule) {
|
|
84
|
+
const name = (rule.Name ?? "").toLowerCase();
|
|
85
|
+
if (name !== "prefix" && name !== "suffix") {
|
|
86
|
+
throw new SimS3InvalidArgument(`Unsupported notification filter rule name ${rule.Name ?? "(none)"}. ` +
|
|
87
|
+
"S3 filters object keys on prefix and suffix.");
|
|
88
|
+
}
|
|
89
|
+
return name;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=sim-s3-notification-filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-s3-notification-filter.js","sourceRoot":"","sources":["../../../../../src/service/s3/bucket/notification/sim-s3-notification-filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAMnE;;;;;;GAMG;AACH,MAAM,OAAO,uBAAuB;IAClB,MAAM,CAAS;IACf,MAAM,CAAS;IAE/B,YAAY,MAAM,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE;QAClC,IAAI,CAA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/**
|
|
3
|
+
* Refuse a configuration whose destinations would both want the same event.
|
|
4
|
+
*
|
|
5
|
+
* Real S3 will not store two configurations that share an event type and whose
|
|
6
|
+
* key filters could both match the same key, because it has no rule for which
|
|
7
|
+
* of them wins. Overlapping prefixes are allowed when the suffixes do not
|
|
8
|
+
* overlap, which is how one function takes the `.jpg` files under a prefix and
|
|
9
|
+
* another takes the `.png` files under the same one.
|
|
10
|
+
*
|
|
11
|
+
* The comparison is on expanded event sets rather than on the configured event
|
|
12
|
+
* strings, so `s3:ObjectCreated:*` conflicts with `s3:ObjectCreated:Put` as it
|
|
13
|
+
* does on real S3.
|
|
14
|
+
*/
|
|
15
|
+
export declare function simS3AssertNoNotificationOverlap(notifications: readonly SimS3LambdaNotification[]): void;
|
|
16
|
+
//# sourceMappingURL=sim-s3-notification-overlap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-s3-notification-overlap.d.ts","sourceRoot":"","sources":["../../../../../src/service/s3/bucket/notification/sim-s3-notification-overlap.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E;;;;;;;;;;;;GAYG;AACH,wBAAgB,gCAAgC,CAC9C,aAAa,EAAE,SAAS,uBAAuB,EAAE,GAChD,IAAI,CAiBN"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SimS3InvalidArgument } from "../../error/sim-s3.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* Refuse a configuration whose destinations would both want the same event.
|
|
4
|
+
*
|
|
5
|
+
* Real S3 will not store two configurations that share an event type and whose
|
|
6
|
+
* key filters could both match the same key, because it has no rule for which
|
|
7
|
+
* of them wins. Overlapping prefixes are allowed when the suffixes do not
|
|
8
|
+
* overlap, which is how one function takes the `.jpg` files under a prefix and
|
|
9
|
+
* another takes the `.png` files under the same one.
|
|
10
|
+
*
|
|
11
|
+
* The comparison is on expanded event sets rather than on the configured event
|
|
12
|
+
* strings, so `s3:ObjectCreated:*` conflicts with `s3:ObjectCreated:Put` as it
|
|
13
|
+
* does on real S3.
|
|
14
|
+
*/
|
|
15
|
+
export function simS3AssertNoNotificationOverlap(notifications) {
|
|
16
|
+
for (const [index, notification] of notifications.entries()) {
|
|
17
|
+
const rest = notifications.slice(index + 1);
|
|
18
|
+
for (const other of rest) {
|
|
19
|
+
if (notification.sharesEventsWith(other) &&
|
|
20
|
+
notification.filter.overlaps(other.filter)) {
|
|
21
|
+
throw new SimS3InvalidArgument(`Configurations ${notification.id} and ${other.id} overlap. ` +
|
|
22
|
+
"Configurations on the same Bucket cannot share an event type " +
|
|
23
|
+
"with object key filters that could both match the same key.");
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=sim-s3-notification-overlap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-s3-notification-overlap.js","sourceRoot":"","sources":["../../../../../src/service/s3/bucket/notification/sim-s3-notification-overlap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,gCAAgC,CAC9C,aAAiD;IAEjD,KAAK,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,aAAa,CAAC,OAAO,EAAE,EAAE,CAAC;QAC5D,MAAM,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAE5C,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE,CAAC;YACzB,IACE,YAAY,CAAC,gBAAgB,CAAC,KAAK,CAAC;gBACpC,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,EAC1C,CAAC;gBACD,MAAM,IAAI,oBAAoB,CAC5B,kBAAkB,YAAY,CAAC,EAAE,QAAQ,KAAK,CAAC,EAAE,YAAY;oBAC3D,+DAA+D;oBAC/D,6DAA6D,CAChE,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The event types real S3 has that this simulator does not raise.
|
|
3
|
+
*
|
|
4
|
+
* Listed so an unsimulated event type is refused as unsimulated rather than as
|
|
5
|
+
* a typo, which are different problems with different fixes. Everything here
|
|
6
|
+
* either describes an S3 feature the simulator has no model of, such as
|
|
7
|
+
* versioning, replication or lifecycle rules, or a way of creating an Object
|
|
8
|
+
* that it has no command for.
|
|
9
|
+
*
|
|
10
|
+
* https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-event-types-and-destinations.html
|
|
11
|
+
*/
|
|
12
|
+
export declare const SIM_S3_UNSIMULATED_NOTIFICATION_EVENTS: ReadonlySet<string>;
|
|
13
|
+
//# sourceMappingURL=sim-s3-unsimulated-notification-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-s3-unsimulated-notification-events.d.ts","sourceRoot":"","sources":["../../../../../src/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sCAAsC,EAAE,WAAW,CAAC,MAAM,CAyBnE,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The event types real S3 has that this simulator does not raise.
|
|
3
|
+
*
|
|
4
|
+
* Listed so an unsimulated event type is refused as unsimulated rather than as
|
|
5
|
+
* a typo, which are different problems with different fixes. Everything here
|
|
6
|
+
* either describes an S3 feature the simulator has no model of, such as
|
|
7
|
+
* versioning, replication or lifecycle rules, or a way of creating an Object
|
|
8
|
+
* that it has no command for.
|
|
9
|
+
*
|
|
10
|
+
* https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-event-types-and-destinations.html
|
|
11
|
+
*/
|
|
12
|
+
export const SIM_S3_UNSIMULATED_NOTIFICATION_EVENTS = new Set([
|
|
13
|
+
"s3:IntelligentTiering",
|
|
14
|
+
"s3:LifecycleExpiration:*",
|
|
15
|
+
"s3:LifecycleExpiration:Delete",
|
|
16
|
+
"s3:LifecycleExpiration:DeleteMarkerCreated",
|
|
17
|
+
"s3:LifecycleTransition",
|
|
18
|
+
"s3:ObjectAcl:Put",
|
|
19
|
+
"s3:ObjectCreated:CompleteMultipartUpload",
|
|
20
|
+
"s3:ObjectCreated:Copy",
|
|
21
|
+
"s3:ObjectCreated:Post",
|
|
22
|
+
"s3:ObjectRemoved:DeleteMarkerCreated",
|
|
23
|
+
"s3:ObjectRestore:*",
|
|
24
|
+
"s3:ObjectRestore:Completed",
|
|
25
|
+
"s3:ObjectRestore:Delete",
|
|
26
|
+
"s3:ObjectRestore:Post",
|
|
27
|
+
"s3:ObjectTagging:*",
|
|
28
|
+
"s3:ObjectTagging:Delete",
|
|
29
|
+
"s3:ObjectTagging:Put",
|
|
30
|
+
"s3:ReducedRedundancyLostObject",
|
|
31
|
+
"s3:Replication:*",
|
|
32
|
+
"s3:Replication:OperationFailedReplication",
|
|
33
|
+
"s3:Replication:OperationMissedThreshold",
|
|
34
|
+
"s3:Replication:OperationNotTracked",
|
|
35
|
+
"s3:Replication:OperationReplicatedAfterThreshold",
|
|
36
|
+
]);
|
|
37
|
+
//# sourceMappingURL=sim-s3-unsimulated-notification-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-s3-unsimulated-notification-events.js","sourceRoot":"","sources":["../../../../../src/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,sCAAsC,GACjD,IAAI,GAAG,CAAC;IACN,uBAAuB;IACvB,0BAA0B;IAC1B,+BAA+B;IAC/B,4CAA4C;IAC5C,wBAAwB;IACxB,kBAAkB;IAClB,0CAA0C;IAC1C,uBAAuB;IACvB,uBAAuB;IACvB,sCAAsC;IACtC,oBAAoB;IACpB,4BAA4B;IAC5B,yBAAyB;IACzB,uBAAuB;IACvB,oBAAoB;IACpB,yBAAyB;IACzB,sBAAsB;IACtB,gCAAgC;IAChC,kBAAkB;IAClB,2CAA2C;IAC3C,yCAAyC;IACzC,oCAAoC;IACpC,kDAAkD;CACnD,CAAC,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { SimS3BucketStorage } from "../storage/s3-bucket-storage.js";
|
|
|
3
3
|
import type { SimS3Object } from "../object/s3-object.js";
|
|
4
4
|
import { SimS3BucketWebsite } from "./website/sim-s3-bucket-website.js";
|
|
5
5
|
import { SimS3PublicAccessBlock } from "./public-access/sim-s3-public-access-block.js";
|
|
6
|
+
import { SimS3NotificationConfiguration } from "./notification/sim-s3-notification-configuration.js";
|
|
6
7
|
import type { SimAwsAccountRegionScope } from "../../aws/sim-aws-account-region-scope.js";
|
|
7
8
|
import type { SimIamPolicyDocument } from "../../iam/policy/sim-iam-policy.js";
|
|
8
9
|
export type SimS3BucketName = Brand<string, "SimS3BucketName">;
|
|
@@ -13,6 +14,7 @@ interface SimS3BucketProperties {
|
|
|
13
14
|
readonly website?: SimS3BucketWebsite;
|
|
14
15
|
readonly policy?: SimIamPolicyDocument | undefined;
|
|
15
16
|
readonly publicAccessBlock?: SimS3PublicAccessBlock;
|
|
17
|
+
readonly notifications?: SimS3NotificationConfiguration;
|
|
16
18
|
}
|
|
17
19
|
/**
|
|
18
20
|
* Simulated S3 Bucket.
|
|
@@ -24,6 +26,7 @@ export declare class SimS3Bucket {
|
|
|
24
26
|
private website;
|
|
25
27
|
private policy;
|
|
26
28
|
private publicAccessBlock;
|
|
29
|
+
private notifications;
|
|
27
30
|
constructor(properties: SimS3BucketProperties);
|
|
28
31
|
/**
|
|
29
32
|
* Put a simulated S3 Object into storage.
|
|
@@ -37,6 +40,16 @@ export declare class SimS3Bucket {
|
|
|
37
40
|
* List simulated S3 Objects from storage.
|
|
38
41
|
*/
|
|
39
42
|
listObjects(prefix?: string): Promise<SimS3Object[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Remove a simulated S3 Object from storage.
|
|
45
|
+
*
|
|
46
|
+
* Real S3 DeleteObject is idempotent, so a key that was not there is not an
|
|
47
|
+
* error. Whether there was an Object to remove is still reported, because a
|
|
48
|
+
* deletion that removed nothing is not an event: real S3 raises
|
|
49
|
+
* `s3:ObjectRemoved:Delete` when an Object was deleted, not when a deletion
|
|
50
|
+
* was requested.
|
|
51
|
+
*/
|
|
52
|
+
deleteObject(key: string): Promise<boolean>;
|
|
40
53
|
/**
|
|
41
54
|
* Change the storage implementation for this simulated S3 Bucket.
|
|
42
55
|
*/
|
|
@@ -79,6 +92,17 @@ export declare class SimS3Bucket {
|
|
|
79
92
|
* new Bucket starts in, rather than leaving it unprotected.
|
|
80
93
|
*/
|
|
81
94
|
deletePublicAccessBlock(): void;
|
|
95
|
+
/**
|
|
96
|
+
* Replace this Bucket's event notification configuration.
|
|
97
|
+
*
|
|
98
|
+
* Real S3 holds one configuration per Bucket rather than a list of them, so
|
|
99
|
+
* this replaces what was there instead of adding to it.
|
|
100
|
+
*/
|
|
101
|
+
configureNotifications(notifications: SimS3NotificationConfiguration): void;
|
|
102
|
+
/**
|
|
103
|
+
* Get this Bucket's event notification configuration.
|
|
104
|
+
*/
|
|
105
|
+
getNotifications(): SimS3NotificationConfiguration;
|
|
82
106
|
/**
|
|
83
107
|
* Get the simulated AWS account Region scope for this Bucket.
|
|
84
108
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-s3-bucket.d.ts","sourceRoot":"","sources":["../../../../src/service/s3/bucket/sim-s3-bucket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAA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ED;;OAEG;IACH,gBAAgB,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAElD;IAED;;OAEG;IACH,UAAU,IAAI,kBAAkB,CAE/B;IAED;;OAEG;IACH,eAAe,CAAC,MAAM,EAAE,oBAAoB,GAAG,IAAI,CAElD;IAED;;OAEG;IACH,SAAS,IAAI,oBAAoB,GAAG,SAAS,CAE5C;IAED;;;;;OAKG;IACH,YAAY,IAAI,IAAI,CAEnB;IAED;;OAEG;IACH,0BAA0B,CAAC,iBAAiB,EAAE,sBAAsB,GAAG,IAAI,CAE1E;IAED;;OAEG;IACH,oBAAoB,IAAI,sBAAsB,CAE7C;IAED;;;;;OAKG;IACH,uBAAuB,IAAI,IAAI,CAE9B;IAED;;;;;OAKG;IACH,sBAAsB,CAAC,aAAa,EAAE,8BAA8B,GAAG,IAAI,CAE1E;IAED;;OAEG;IACH,gBAAgB,IAAI,8BAA8B,CAEjD;IAED;;OAEG;IACH,qBAAqB,IAAI,wBAAwB,CAEhD;IAED;;OAEG;IACH,aAAa,IAAI,GAAG,CAMnB;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MemoryS3BucketStorage } from "../storage/s3-memory-storage.js";
|
|
2
2
|
import { SimS3BucketWebsite } from "./website/sim-s3-bucket-website.js";
|
|
3
3
|
import { SimS3PublicAccessBlock } from "./public-access/sim-s3-public-access-block.js";
|
|
4
|
+
import { SimS3NotificationConfiguration } from "./notification/sim-s3-notification-configuration.js";
|
|
4
5
|
import { simS3BucketWebsiteUrl } from "./website/sim-s3-bucket-website-url.js";
|
|
5
6
|
import { validateS3BucketName } from "./validate/validate-s3-bucket-name.js";
|
|
6
7
|
import { simAwsAccountRegionScopeFactory } from "../../aws/sim-aws-account-region-scope.factory.js";
|
|
@@ -14,8 +15,9 @@ export class SimS3Bucket {
|
|
|
14
15
|
website;
|
|
15
16
|
policy;
|
|
16
17
|
publicAccessBlock;
|
|
18
|
+
notifications;
|
|
17
19
|
constructor(properties) {
|
|
18
|
-
const { bucketName, accountRegionScope = simAwsAccountRegionScopeFactory.make(), storage = new MemoryS3BucketStorage(), website = new SimS3BucketWebsite(), policy, publicAccessBlock = SimS3PublicAccessBlock.blockingAll(), } = properties;
|
|
20
|
+
const { bucketName, accountRegionScope = simAwsAccountRegionScopeFactory.make(), storage = new MemoryS3BucketStorage(), website = new SimS3BucketWebsite(), policy, publicAccessBlock = SimS3PublicAccessBlock.blockingAll(), notifications = SimS3NotificationConfiguration.empty(), } = properties;
|
|
19
21
|
validateS3BucketName(bucketName);
|
|
20
22
|
this.bucketName = bucketName;
|
|
21
23
|
this.accountRegionScope = accountRegionScope;
|
|
@@ -23,6 +25,7 @@ export class SimS3Bucket {
|
|
|
23
25
|
this.website = website;
|
|
24
26
|
this.policy = policy;
|
|
25
27
|
this.publicAccessBlock = publicAccessBlock;
|
|
28
|
+
this.notifications = notifications;
|
|
26
29
|
}
|
|
27
30
|
/**
|
|
28
31
|
* Put a simulated S3 Object into storage.
|
|
@@ -42,6 +45,18 @@ export class SimS3Bucket {
|
|
|
42
45
|
async listObjects(prefix) {
|
|
43
46
|
return await this.storage.listObjects(prefix);
|
|
44
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Remove a simulated S3 Object from storage.
|
|
50
|
+
*
|
|
51
|
+
* Real S3 DeleteObject is idempotent, so a key that was not there is not an
|
|
52
|
+
* error. Whether there was an Object to remove is still reported, because a
|
|
53
|
+
* deletion that removed nothing is not an event: real S3 raises
|
|
54
|
+
* `s3:ObjectRemoved:Delete` when an Object was deleted, not when a deletion
|
|
55
|
+
* was requested.
|
|
56
|
+
*/
|
|
57
|
+
async deleteObject(key) {
|
|
58
|
+
return await this.storage.deleteObject(key);
|
|
59
|
+
}
|
|
45
60
|
/**
|
|
46
61
|
* Change the storage implementation for this simulated S3 Bucket.
|
|
47
62
|
*/
|
|
@@ -102,6 +117,21 @@ export class SimS3Bucket {
|
|
|
102
117
|
deletePublicAccessBlock() {
|
|
103
118
|
this.publicAccessBlock = SimS3PublicAccessBlock.blockingAll();
|
|
104
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Replace this Bucket's event notification configuration.
|
|
122
|
+
*
|
|
123
|
+
* Real S3 holds one configuration per Bucket rather than a list of them, so
|
|
124
|
+
* this replaces what was there instead of adding to it.
|
|
125
|
+
*/
|
|
126
|
+
configureNotifications(notifications) {
|
|
127
|
+
this.notifications = notifications;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Get this Bucket's event notification configuration.
|
|
131
|
+
*/
|
|
132
|
+
getNotifications() {
|
|
133
|
+
return this.notifications;
|
|
134
|
+
}
|
|
105
135
|
/**
|
|
106
136
|
* Get the simulated AWS account Region scope for this Bucket.
|
|
107
137
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-s3-bucket.js","sourceRoot":"","sources":["../../../../src/service/s3/bucket/sim-s3-bucket.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-s3-bucket.js","sourceRoot":"","sources":["../../../../src/service/s3/bucket/sim-s3-bucket.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,8BAA8B,EAAE,MAAM,qDAAqD,CAAC;AAGrG,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AAcpG;;GAE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C,kBAAkB,EACvB,IAAI,CAAC,OAAO,CACb,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build the error a property of an AWS::S3::Bucket 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 Bucket
|
|
6
|
+
* property is the dangerous case here: the Bucket is still created, so the
|
|
7
|
+
* Stack looks right and behaves differently. So every refusal says `Invalid`,
|
|
8
|
+
* and none of them says `Unsupported sim`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function s3BucketResourceError(logicalId: string, reason: string): Error;
|
|
11
|
+
/**
|
|
12
|
+
* Build the error the NotificationConfiguration of an AWS::S3::Bucket Resource
|
|
13
|
+
* is refused with.
|
|
14
|
+
*
|
|
15
|
+
* The property is named separately from the Resource because the shape it is
|
|
16
|
+
* read through is deep, and a reader that says only which Resource failed
|
|
17
|
+
* leaves the Stack owner hunting for the level that was wrong.
|
|
18
|
+
*/
|
|
19
|
+
export declare function s3BucketNotificationError(logicalId: string, reason: string): Error;
|
|
20
|
+
//# sourceMappingURL=sim-cfn-s3-bucket-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-s3-bucket-error.d.ts","sourceRoot":"","sources":["../../../../../../src/service/s3/cfn/bucket/error/sim-cfn-s3-bucket-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GACb,KAAK,CAEP;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GACb,KAAK,CAIP"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build the error a property of an AWS::S3::Bucket 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 Bucket
|
|
6
|
+
* property is the dangerous case here: the Bucket is still created, so the
|
|
7
|
+
* Stack looks right and behaves differently. So every refusal says `Invalid`,
|
|
8
|
+
* and none of them says `Unsupported sim`.
|
|
9
|
+
*/
|
|
10
|
+
export function s3BucketResourceError(logicalId, reason) {
|
|
11
|
+
return new Error(`Invalid AWS::S3::Bucket Resource ${logicalId}: ${reason}`);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Build the error the NotificationConfiguration of an AWS::S3::Bucket Resource
|
|
15
|
+
* is refused with.
|
|
16
|
+
*
|
|
17
|
+
* The property is named separately from the Resource because the shape it is
|
|
18
|
+
* read through is deep, and a reader that says only which Resource failed
|
|
19
|
+
* leaves the Stack owner hunting for the level that was wrong.
|
|
20
|
+
*/
|
|
21
|
+
export function s3BucketNotificationError(logicalId, reason) {
|
|
22
|
+
return new Error(`Invalid AWS::S3::Bucket NotificationConfiguration in Resource ${logicalId}: ${reason}`);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=sim-cfn-s3-bucket-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-s3-bucket-error.js","sourceRoot":"","sources":["../../../../../../src/service/s3/cfn/bucket/error/sim-cfn-s3-bucket-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,UAAU,qBAAqB,CACnC,SAAiB,EACjB,MAAc;IAEd,OAAO,IAAI,KAAK,CAAC,oCAAoC,SAAS,KAAK,MAAM,EAAE,CAAC,CAAC;AAC/E,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,yBAAyB,CACvC,SAAiB,EACjB,MAAc;IAEd,OAAO,IAAI,KAAK,CACd,iEAAiE,SAAS,KAAK,MAAM,EAAE,CACxF,CAAC;AACJ,CAAC"}
|
package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue } from "../../../../cloudformation/template/value/sim-cfn-template-value.js";
|
|
2
|
+
import type { SimS3NotificationConfigurationInput } from "../../../command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.js";
|
|
3
|
+
/**
|
|
4
|
+
* Reads the `NotificationConfiguration` property of an AWS::S3::Bucket Resource
|
|
5
|
+
* into a PutBucketNotificationConfiguration request.
|
|
6
|
+
*
|
|
7
|
+
* CloudFormation and the SDK name the same configuration differently in four
|
|
8
|
+
* places, and each of them is a silent failure if read at the wrong name:
|
|
9
|
+
* `LambdaConfigurations` against `LambdaFunctionConfigurations`, a single
|
|
10
|
+
* `Event` string against an `Events` list, `Function` against
|
|
11
|
+
* `LambdaFunctionArn`, and `Filter.S3Key.Rules` against `Filter.Key.FilterRules`.
|
|
12
|
+
*
|
|
13
|
+
* Only the shape is read here. Whether the configuration is one simulated S3
|
|
14
|
+
* accepts is the command's question, so a template and an SDK caller are
|
|
15
|
+
* answered by the same validation.
|
|
16
|
+
*/
|
|
17
|
+
export declare class SimCfnS3BucketNotificationConfiguration {
|
|
18
|
+
private readonly shape;
|
|
19
|
+
private readonly filter;
|
|
20
|
+
constructor(logicalId: string);
|
|
21
|
+
/**
|
|
22
|
+
* Read a whole notification configuration.
|
|
23
|
+
*
|
|
24
|
+
* A destination group this simulator cannot deliver to is carried through
|
|
25
|
+
* untouched, so the command refuses it by name rather than dropping it. The
|
|
26
|
+
* names happen to match: CloudFormation and the SDK both call them
|
|
27
|
+
* `QueueConfigurations`, `TopicConfigurations` and `EventBridgeConfiguration`.
|
|
28
|
+
*/
|
|
29
|
+
read(value: SimCfnTemplateValue): SimS3NotificationConfigurationInput;
|
|
30
|
+
private lambdaConfigurations;
|
|
31
|
+
private lambdaConfiguration;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=sim-cfn-s3-bucket-notification-configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-s3-bucket-notification-configuration.d.ts","sourceRoot":"","sources":["../../../../../../src/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qEAAqE,CAAC;AAE/G,OAAO,KAAK,EAEV,mCAAmC,EACpC,MAAM,yGAAyG,CAAC;AA0BjH;;;;;;;;;;;;;GAaG;AACH,qBAAa,uCAAuC;IAClD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmB;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmC;IAE1D,YAAY,SAAS,EAAE,MAAM,EAK5B;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,KAAK,EAAE,mBAAmB,GAAG,mCAAmC,CA6BpE;IAED,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,mBAAmB;CAwB5B"}
|