@kensio/yulin 1.17.0 → 1.17.2
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/README.md +1 -0
- package/dist/serve/http/local-server/sim-aws-local-location.d.ts +55 -0
- package/dist/serve/http/local-server/sim-aws-local-location.d.ts.map +1 -0
- package/dist/serve/http/local-server/sim-aws-local-location.js +80 -0
- package/dist/serve/http/local-server/sim-aws-local-location.js.map +1 -0
- package/dist/serve/http/local-server/sim-aws-local-request-handler.d.ts +7 -0
- package/dist/serve/http/local-server/sim-aws-local-request-handler.d.ts.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local-request-handler.js +10 -3
- package/dist/serve/http/local-server/sim-aws-local-request-handler.js.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local-server.d.ts.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local-server.js +5 -0
- package/dist/serve/http/local-server/sim-aws-local-server.js.map +1 -1
- package/dist/serve/http/node-fetch-http-adapter.d.ts +9 -0
- package/dist/serve/http/node-fetch-http-adapter.d.ts.map +1 -1
- package/dist/serve/http/node-fetch-http-adapter.js +17 -1
- package/dist/serve/http/node-fetch-http-adapter.js.map +1 -1
- package/dist/service/acm/certificate/register-sim-acm-certificate.d.ts +41 -0
- package/dist/service/acm/certificate/register-sim-acm-certificate.d.ts.map +1 -0
- package/dist/service/acm/certificate/register-sim-acm-certificate.js +60 -0
- package/dist/service/acm/certificate/register-sim-acm-certificate.js.map +1 -0
- package/dist/service/acm/command/request-certificate/request-certificate.handler.d.ts +9 -0
- package/dist/service/acm/command/request-certificate/request-certificate.handler.d.ts.map +1 -1
- package/dist/service/acm/command/request-certificate/request-certificate.handler.js +18 -1
- package/dist/service/acm/command/request-certificate/request-certificate.handler.js.map +1 -1
- package/dist/service/acm/sim-acm.d.ts +15 -0
- package/dist/service/acm/sim-acm.d.ts.map +1 -1
- package/dist/service/acm/sim-acm.js +21 -0
- package/dist/service/acm/sim-acm.js.map +1 -1
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.d.ts +23 -4
- 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 +56 -14
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.js.map +1 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-invocation.d.ts +1 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-authorizer-invocation.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.d.ts +7 -3
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.js +6 -2
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-invoke-authorizer.js.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.d.ts +11 -12
- 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 +15 -7
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.js.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-http-api-function-target.d.ts +17 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-function-target.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-function-target.js +2 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-function-target.js.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.d.ts.map +1 -1
- package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.js +1 -1
- package/dist/service/apigatewayv2/serve/sim-http-api-integration-invocation.js.map +1 -1
- package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-matcher.js +1 -1
- package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-matcher.js.map +1 -1
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.d.ts +4 -0
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.d.ts.map +1 -1
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.js +7 -2
- package/dist/service/cloudformation/cdk/sim-cdk-assembly-selection.js.map +1 -1
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.d.ts.map +1 -1
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.js +2 -2
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.js.map +1 -1
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.d.ts.map +1 -1
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.js +2 -2
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.d.ts +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.js +6 -4
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.d.ts +4 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts +25 -2
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.js +13 -0
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js +3 -3
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-parse.d.ts +10 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-parse.d.ts.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-parse.js +30 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-parse.js.map +1 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.d.ts +2 -4
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.d.ts.map +1 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.js +2 -3
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-read.js.map +1 -1
- package/dist/service/cloudformation/index.d.ts +1 -1
- package/dist/service/cloudformation/index.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-cfn-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-cfn-value-adapter.js +4 -0
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-cfn-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.d.ts +28 -0
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.js +33 -0
- package/dist/service/cloudformation/resource/cfn/iam/sim-iam-user-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-cfn-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-cfn-value-adapter.js +11 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-cfn-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-alias-cfn.d.ts +29 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-alias-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-alias-cfn.js +31 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-alias-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-version-cfn.d.ts +35 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-version-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-version-cfn.js +40 -0
- package/dist/service/cloudformation/resource/cfn/lambda/sim-lambda-function-version-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.d.ts +6 -0
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.js +3 -0
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.js.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js +1 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js.map +1 -1
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-stage.d.ts +20 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-stage.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-stage.js +80 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-stage.js.map +1 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-template.factory.d.ts +46 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-template.factory.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-template.factory.js +103 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api-template.factory.js.map +1 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api.d.ts +28 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api.js +81 -0
- package/dist/service/cloudformation/sam/api/sim-cfn-sam-http-api.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-declared-event.d.ts +52 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-declared-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-declared-event.js +38 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-declared-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-bridge-rule-event.d.ts +16 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-bridge-rule-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-bridge-rule-event.js +21 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-bridge-rule-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-rule.d.ts +26 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-rule.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-rule.js +84 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-rule.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-kind.d.ts +24 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-kind.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-kind.js +41 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-kind.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-mapping-event.d.ts +20 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-mapping-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-mapping-event.js +56 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-mapping-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-role.d.ts +11 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-role.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-role.js +57 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source-role.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source.resources.d.ts +25 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source.resources.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source.resources.js +42 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-source.resources.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-state.d.ts +17 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-state.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-state.js +26 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-event-state.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.d.ts +32 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.js +70 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.d.ts +20 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.js +71 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.d.ts +14 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.js +38 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.d.ts +18 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.js +56 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.d.ts +20 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.js +41 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.d.ts +29 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.js +23 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.d.ts +33 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.js +103 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.d.ts +22 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.js +76 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.d.ts +17 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.js +22 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.d.ts +15 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.js +97 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.d.ts +23 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.js +60 -0
- package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.js.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-policies.d.ts +31 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-policies.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-policies.js +74 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-policies.js.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-properties.d.ts +24 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-properties.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-properties.js +67 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-properties.js.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-role.d.ts +18 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-role.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-role.js +35 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-role.js.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-template.factory.d.ts +45 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-template.factory.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-template.factory.js +50 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-template.factory.js.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-url.d.ts +19 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-url.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-url.js +37 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function-url.js.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function.d.ts +44 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function.js +74 -0
- package/dist/service/cloudformation/sam/function/sim-cfn-sam-function.js.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-expansion.d.ts +18 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-expansion.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-expansion.js +83 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-expansion.js.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-globals.d.ts +36 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-globals.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-globals.js +76 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-globals.js.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-picked.d.ts +10 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-picked.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-picked.js +11 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-picked.js.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-record.d.ts +40 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-record.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-record.js +50 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-record.js.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-transform.d.ts +23 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-transform.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-transform.js +48 -0
- package/dist/service/cloudformation/sam/sim-cfn-sam-transform.js.map +1 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-key.d.ts +18 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-key.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-key.js +52 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-key.js.map +1 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-template.factory.d.ts +40 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-template.factory.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-template.factory.js +47 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table-template.factory.js.map +1 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table.d.ts +25 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table.d.ts.map +1 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table.js +77 -0
- package/dist/service/cloudformation/sam/table/sim-cfn-sam-simple-table.js.map +1 -0
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.d.ts +1 -0
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.d.ts.map +1 -1
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.js +2 -1
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.js.map +1 -1
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.d.ts.map +1 -1
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.js +4 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.js.map +1 -1
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.d.ts +19 -1
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference.type.d.ts.map +1 -1
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.d.ts +6 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.d.ts.map +1 -1
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.js +9 -3
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.js.map +1 -1
- package/dist/service/cloudformation/template/sim-cfn-template-body-parse.d.ts +19 -0
- package/dist/service/cloudformation/template/sim-cfn-template-body-parse.d.ts.map +1 -0
- package/dist/service/cloudformation/template/sim-cfn-template-body-parse.js +36 -0
- package/dist/service/cloudformation/template/sim-cfn-template-body-parse.js.map +1 -0
- package/dist/service/cloudformation/template/sim-cfn-template.d.ts +11 -4
- package/dist/service/cloudformation/template/sim-cfn-template.d.ts.map +1 -1
- package/dist/service/cloudformation/template/sim-cfn-template.js +16 -13
- package/dist/service/cloudformation/template/sim-cfn-template.js.map +1 -1
- package/dist/service/cloudformation/template/yaml/sim-cfn-template-yaml.d.ts +11 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-template-yaml.d.ts.map +1 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-template-yaml.js +41 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-template-yaml.js.map +1 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-yaml-short-forms.d.ts +17 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-yaml-short-forms.d.ts.map +1 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-yaml-short-forms.js +70 -0
- package/dist/service/cloudformation/template/yaml/sim-cfn-yaml-short-forms.js.map +1 -0
- package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.d.ts +23 -0
- package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.d.ts.map +1 -1
- package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.js +64 -22
- package/dist/service/cloudfront/cff/adapter/sim-cff-request-metadata-adapter.js.map +1 -1
- package/dist/service/cloudfront/command/create-function/create-function-code-size.d.ts +23 -0
- package/dist/service/cloudfront/command/create-function/create-function-code-size.d.ts.map +1 -0
- package/dist/service/cloudfront/command/create-function/create-function-code-size.js +33 -0
- package/dist/service/cloudfront/command/create-function/create-function-code-size.js.map +1 -0
- package/dist/service/cloudfront/command/create-function/create-function.handler.d.ts.map +1 -1
- package/dist/service/cloudfront/command/create-function/create-function.handler.js +2 -0
- package/dist/service/cloudfront/command/create-function/create-function.handler.js.map +1 -1
- package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +11 -0
- package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
- package/dist/service/cloudfront/error/sim-cloudfront.error.js +13 -0
- package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
- package/dist/service/cloudfront/index.d.ts +1 -1
- package/dist/service/cloudfront/index.d.ts.map +1 -1
- package/dist/service/cloudfront/index.js +1 -1
- package/dist/service/cloudfront/index.js.map +1 -1
- package/dist/service/cloudfront/typings/cloudfront-functions.namespace.d.ts +1 -1
- package/dist/service/cloudfront/typings/cloudfront-functions.namespace.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.d.ts +6 -0
- package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.js +22 -6
- package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.d.ts +22 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.js +26 -0
- package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
- package/dist/service/cognito/index.d.ts +2 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +1 -1
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts +24 -0
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-identity-provider.js +26 -0
- package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts +9 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js +2 -2
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js.map +1 -1
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.d.ts +22 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.js +36 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool-client.js.map +1 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.d.ts +25 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.js +30 -0
- package/dist/service/cognito/user-pool/register-sim-cognito-user-pool.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-registration.types.d.ts +40 -0
- package/dist/service/cognito/user-pool/sim-cognito-registration.types.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-registration.types.js +2 -0
- package/dist/service/cognito/user-pool/sim-cognito-registration.types.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-registrations.d.ts +34 -0
- package/dist/service/cognito/user-pool/sim-cognito-registrations.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-registrations.js +28 -0
- package/dist/service/cognito/user-pool/sim-cognito-registrations.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts +9 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js +3 -2
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts +9 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js +18 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts +8 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js +15 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-store.js.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js +26 -19
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js.map +1 -1
- package/dist/service/elbv2/serve/sim-elbv2-invoke-authorizer.js +1 -1
- package/dist/service/elbv2/serve/sim-elbv2-invoke-authorizer.js.map +1 -1
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.d.ts +5 -3
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.d.ts.map +1 -1
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.js +14 -9
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.js.map +1 -1
- package/dist/service/eventbridge/target/sim-event-target-arn.d.ts +13 -6
- package/dist/service/eventbridge/target/sim-event-target-arn.d.ts.map +1 -1
- package/dist/service/eventbridge/target/sim-event-target-arn.js +17 -7
- package/dist/service/eventbridge/target/sim-event-target-arn.js.map +1 -1
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.d.ts +40 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.d.ts.map +1 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.js +65 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.js.map +1 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.d.ts +1 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.d.ts.map +1 -1
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.js +5 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.js.map +1 -1
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.d.ts +11 -20
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.d.ts.map +1 -1
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.js +29 -61
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.js.map +1 -1
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.d.ts +38 -0
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.d.ts.map +1 -0
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.js +79 -0
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-properties-parser.js.map +1 -0
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.d.ts +2 -2
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.d.ts.map +1 -1
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.js +4 -2
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-properties-parser.js.map +1 -1
- package/dist/service/iam/cfn/sim-cfn-iam-policies-parser.d.ts +35 -0
- package/dist/service/iam/cfn/sim-cfn-iam-policies-parser.d.ts.map +1 -0
- package/dist/service/iam/cfn/{role/sim-cfn-iam-role-policies-parser.js → sim-cfn-iam-policies-parser.js} +17 -12
- package/dist/service/iam/cfn/sim-cfn-iam-policies-parser.js.map +1 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.d.ts +11 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.d.ts.map +1 -1
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.js +25 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.js.map +1 -1
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.d.ts +1 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.d.ts.map +1 -1
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.js +6 -0
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.js.map +1 -1
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.d.ts +28 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.d.ts.map +1 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.js +67 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.js.map +1 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.d.ts +26 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.d.ts.map +1 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.js +29 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.js.map +1 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.d.ts +38 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.d.ts.map +1 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.js +80 -0
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-properties-parser.js.map +1 -0
- package/dist/service/iam/command/sim-iam-command.types.d.ts +3 -0
- package/dist/service/iam/command/sim-iam-command.types.d.ts.map +1 -1
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.d.ts +9 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.d.ts.map +1 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.js +2 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.command.js.map +1 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.d.ts +30 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.d.ts.map +1 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.js +44 -0
- package/dist/service/iam/command/user/attach-user-policy/attach-user-policy.handler.js.map +1 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.d.ts +16 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.d.ts.map +1 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.js +2 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.command.js.map +1 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.d.ts +32 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.d.ts.map +1 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.js +59 -0
- package/dist/service/iam/command/user/create-login-profile/create-login-profile.handler.js.map +1 -0
- package/dist/service/iam/command/user/create-user/create-user-record-factory.d.ts.map +1 -1
- package/dist/service/iam/command/user/create-user/create-user-record-factory.js +1 -0
- package/dist/service/iam/command/user/create-user/create-user-record-factory.js.map +1 -1
- package/dist/service/iam/command/user/delete-user/delete-user.command.d.ts +19 -0
- package/dist/service/iam/command/user/delete-user/delete-user.command.d.ts.map +1 -0
- package/dist/service/iam/command/user/delete-user/delete-user.command.js +2 -0
- package/dist/service/iam/command/user/delete-user/delete-user.command.js.map +1 -0
- package/dist/service/iam/command/user/delete-user/delete-user.handler.d.ts +34 -0
- package/dist/service/iam/command/user/delete-user/delete-user.handler.d.ts.map +1 -0
- package/dist/service/iam/command/user/delete-user/delete-user.handler.js +51 -0
- package/dist/service/iam/command/user/delete-user/delete-user.handler.js.map +1 -0
- package/dist/service/iam/command/user/sim-iam-user-command-handlers.d.ts +15 -0
- package/dist/service/iam/command/user/sim-iam-user-command-handlers.d.ts.map +1 -1
- package/dist/service/iam/command/user/sim-iam-user-command-handlers.js +36 -0
- package/dist/service/iam/command/user/sim-iam-user-command-handlers.js.map +1 -1
- package/dist/service/iam/sdk/sim-iam-sdk-command-router.d.ts.map +1 -1
- package/dist/service/iam/sdk/sim-iam-sdk-command-router.js +12 -0
- package/dist/service/iam/sdk/sim-iam-sdk-command-router.js.map +1 -1
- package/dist/service/iam/sim-iam.d.ts +12 -0
- package/dist/service/iam/sim-iam.d.ts.map +1 -1
- package/dist/service/iam/sim-iam.js +18 -0
- package/dist/service/iam/sim-iam.js.map +1 -1
- package/dist/service/iam/user/sim-iam-user-login-profile.d.ts +14 -0
- package/dist/service/iam/user/sim-iam-user-login-profile.d.ts.map +1 -0
- package/dist/service/iam/user/sim-iam-user-login-profile.js +2 -0
- package/dist/service/iam/user/sim-iam-user-login-profile.js.map +1 -0
- package/dist/service/iam/user/sim-iam-user.d.ts +8 -0
- package/dist/service/iam/user/sim-iam-user.d.ts.map +1 -1
- package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.d.ts +30 -0
- package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.d.ts.map +1 -0
- package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.js +41 -0
- package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.js.map +1 -0
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-code-input.js +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-code-input.js.map +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.d.ts +12 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.d.ts.map +1 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.js +15 -3
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-target-function.js.map +1 -1
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.d.ts +6 -1
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.d.ts.map +1 -1
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.js +11 -5
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.js.map +1 -1
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.d.ts +12 -0
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.d.ts.map +1 -0
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.js +22 -0
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.js.map +1 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-created-resource.d.ts +10 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-created-resource.d.ts.map +1 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-created-resource.js +14 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-created-resource.js.map +1 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts +2 -6
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js +24 -19
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts +2 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts.map +1 -1
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js +12 -0
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js.map +1 -1
- package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.d.ts +31 -0
- package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.d.ts.map +1 -0
- package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.js +40 -0
- package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.js.map +1 -0
- package/dist/service/lambda/command/add-permission/add-permission.command.d.ts +1 -0
- package/dist/service/lambda/command/add-permission/add-permission.command.d.ts.map +1 -1
- package/dist/service/lambda/command/add-permission/add-permission.handler.d.ts +8 -1
- package/dist/service/lambda/command/add-permission/add-permission.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/add-permission/add-permission.handler.js +13 -6
- package/dist/service/lambda/command/add-permission/add-permission.handler.js.map +1 -1
- package/dist/service/lambda/command/alias/alias-input.d.ts +21 -0
- package/dist/service/lambda/command/alias/alias-input.d.ts.map +1 -0
- package/dist/service/lambda/command/alias/alias-input.js +30 -0
- package/dist/service/lambda/command/alias/alias-input.js.map +1 -0
- package/dist/service/lambda/command/alias/sim-lambda-alias-commands.d.ts +52 -0
- package/dist/service/lambda/command/alias/sim-lambda-alias-commands.d.ts.map +1 -0
- package/dist/service/lambda/command/alias/sim-lambda-alias-commands.js +49 -0
- package/dist/service/lambda/command/alias/sim-lambda-alias-commands.js.map +1 -0
- package/dist/service/lambda/command/authorize/sim-lambda-resource-policies.d.ts +9 -7
- package/dist/service/lambda/command/authorize/sim-lambda-resource-policies.d.ts.map +1 -1
- package/dist/service/lambda/command/authorize/sim-lambda-resource-policies.js +11 -9
- package/dist/service/lambda/command/authorize/sim-lambda-resource-policies.js.map +1 -1
- package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.d.ts +10 -2
- package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.d.ts.map +1 -1
- package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.js +2 -2
- package/dist/service/lambda/command/authorize/sim-lambda-service-invoke-authorizer.js.map +1 -1
- package/dist/service/lambda/command/create-alias/create-alias.command.d.ts +31 -0
- package/dist/service/lambda/command/create-alias/create-alias.command.d.ts.map +1 -0
- package/dist/service/lambda/command/create-alias/create-alias.command.js +5 -0
- package/dist/service/lambda/command/create-alias/create-alias.command.js.map +1 -0
- package/dist/service/lambda/command/create-alias/create-alias.handler.d.ts +35 -0
- package/dist/service/lambda/command/create-alias/create-alias.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/create-alias/create-alias.handler.js +52 -0
- package/dist/service/lambda/command/create-alias/create-alias.handler.js.map +1 -0
- package/dist/service/lambda/command/create-function/create-function.command.d.ts +1 -1
- package/dist/service/lambda/command/create-function/create-function.command.d.ts.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/create-function/create-function.handler.js +2 -1
- package/dist/service/lambda/command/create-function/create-function.handler.js.map +1 -1
- package/dist/service/lambda/command/delete-alias/delete-alias.command.d.ts +24 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.command.d.ts.map +1 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.command.js +5 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.command.js.map +1 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.handler.d.ts +37 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.handler.js +44 -0
- package/dist/service/lambda/command/delete-alias/delete-alias.handler.js.map +1 -0
- package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts +6 -2
- package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/delete-function/delete-function.handler.js +7 -3
- package/dist/service/lambda/command/delete-function/delete-function.handler.js.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts +8 -0
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.d.ts.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js +11 -2
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping-input.js.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js +13 -6
- package/dist/service/lambda/command/event-source-mapping/create-event-source-mapping.handler.js.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +3 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.js +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
- package/dist/service/lambda/command/get-alias/get-alias.command.d.ts +25 -0
- package/dist/service/lambda/command/get-alias/get-alias.command.d.ts.map +1 -0
- package/dist/service/lambda/command/get-alias/get-alias.command.js +5 -0
- package/dist/service/lambda/command/get-alias/get-alias.command.js.map +1 -0
- package/dist/service/lambda/command/get-alias/get-alias.handler.d.ts +34 -0
- package/dist/service/lambda/command/get-alias/get-alias.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/get-alias/get-alias.handler.js +38 -0
- package/dist/service/lambda/command/get-alias/get-alias.handler.js.map +1 -0
- package/dist/service/lambda/command/get-function/get-function.command.d.ts +2 -1
- package/dist/service/lambda/command/get-function/get-function.command.d.ts.map +1 -1
- package/dist/service/lambda/command/get-function/get-function.handler.d.ts +6 -2
- package/dist/service/lambda/command/get-function/get-function.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/get-function/get-function.handler.js +13 -6
- package/dist/service/lambda/command/get-function/get-function.handler.js.map +1 -1
- package/dist/service/lambda/command/get-policy/get-policy.command.d.ts +1 -0
- package/dist/service/lambda/command/get-policy/get-policy.command.d.ts.map +1 -1
- package/dist/service/lambda/command/get-policy/get-policy.handler.d.ts +8 -3
- package/dist/service/lambda/command/get-policy/get-policy.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/get-policy/get-policy.handler.js +11 -6
- package/dist/service/lambda/command/get-policy/get-policy.handler.js.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-authorizer.d.ts +11 -8
- package/dist/service/lambda/command/invoke/invoke-authorizer.d.ts.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-authorizer.js +11 -8
- package/dist/service/lambda/command/invoke/invoke-authorizer.js.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts +3 -0
- package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts.map +1 -1
- package/dist/service/lambda/command/invoke/invoke-dispatcher.js +5 -2
- package/dist/service/lambda/command/invoke/invoke-dispatcher.js.map +1 -1
- package/dist/service/lambda/command/invoke/invoke.handler.d.ts +9 -2
- package/dist/service/lambda/command/invoke/invoke.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/invoke/invoke.handler.js +20 -10
- package/dist/service/lambda/command/invoke/invoke.handler.js.map +1 -1
- package/dist/service/lambda/command/list-aliases/list-aliases.command.d.ts +30 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.command.d.ts.map +1 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.command.js +5 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.command.js.map +1 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.handler.d.ts +35 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.handler.js +44 -0
- package/dist/service/lambda/command/list-aliases/list-aliases.handler.js.map +1 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.command.d.ts +28 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.command.d.ts.map +1 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.command.js +5 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.command.js.map +1 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.handler.d.ts +35 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.handler.js +43 -0
- package/dist/service/lambda/command/list-versions-by-function/list-versions-by-function.handler.js.map +1 -0
- package/dist/service/lambda/command/permission/sim-lambda-permission-commands.d.ts +8 -3
- package/dist/service/lambda/command/permission/sim-lambda-permission-commands.d.ts.map +1 -1
- package/dist/service/lambda/command/permission/sim-lambda-permission-commands.js +6 -3
- package/dist/service/lambda/command/permission/sim-lambda-permission-commands.js.map +1 -1
- package/dist/service/lambda/command/publish-version/publish-version.command.d.ts +34 -0
- package/dist/service/lambda/command/publish-version/publish-version.command.d.ts.map +1 -0
- package/dist/service/lambda/command/publish-version/publish-version.command.js +5 -0
- package/dist/service/lambda/command/publish-version/publish-version.command.js.map +1 -0
- package/dist/service/lambda/command/publish-version/publish-version.handler.d.ts +37 -0
- package/dist/service/lambda/command/publish-version/publish-version.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/publish-version/publish-version.handler.js +42 -0
- package/dist/service/lambda/command/publish-version/publish-version.handler.js.map +1 -0
- package/dist/service/lambda/command/remove-permission/remove-permission.command.d.ts +1 -0
- package/dist/service/lambda/command/remove-permission/remove-permission.command.d.ts.map +1 -1
- package/dist/service/lambda/command/remove-permission/remove-permission.handler.d.ts +8 -1
- package/dist/service/lambda/command/remove-permission/remove-permission.handler.d.ts.map +1 -1
- package/dist/service/lambda/command/remove-permission/remove-permission.handler.js +12 -5
- package/dist/service/lambda/command/remove-permission/remove-permission.handler.js.map +1 -1
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts +7 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
- package/dist/service/lambda/command/update-alias/update-alias.command.d.ts +31 -0
- package/dist/service/lambda/command/update-alias/update-alias.command.d.ts.map +1 -0
- package/dist/service/lambda/command/update-alias/update-alias.command.js +5 -0
- package/dist/service/lambda/command/update-alias/update-alias.command.js.map +1 -0
- package/dist/service/lambda/command/update-alias/update-alias.handler.d.ts +35 -0
- package/dist/service/lambda/command/update-alias/update-alias.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/update-alias/update-alias.handler.js +48 -0
- package/dist/service/lambda/command/update-alias/update-alias.handler.js.map +1 -0
- package/dist/service/lambda/command/version/sim-lambda-version-commands.d.ts +37 -0
- package/dist/service/lambda/command/version/sim-lambda-version-commands.d.ts.map +1 -0
- package/dist/service/lambda/command/version/sim-lambda-version-commands.js +28 -0
- package/dist/service/lambda/command/version/sim-lambda-version-commands.js.map +1 -0
- package/dist/service/lambda/command/version/version-authorizer.d.ts +29 -0
- package/dist/service/lambda/command/version/version-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/version/version-authorizer.js +39 -0
- package/dist/service/lambda/command/version/version-authorizer.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.d.ts.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.js +2 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-event-source-poller.js.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-function.d.ts +13 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-function.d.ts.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-function.js +13 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-event-source-function.js.map +1 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-consumer.d.ts.map +1 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-consumer.js +2 -1
- package/dist/service/lambda/event-source/poll/sim-lambda-sqs-event-source-consumer.js.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts +9 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.d.ts.map +1 -1
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js +8 -0
- package/dist/service/lambda/event-source/sim-lambda-event-source-mapping.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts +6 -5
- package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-executable-code.js +7 -6
- package/dist/service/lambda/function/code/sim-lambda-executable-code.js.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts +11 -3
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js +13 -7
- package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.d.ts +2 -0
- package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.d.ts.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.js +2 -2
- package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.js.map +1 -1
- package/dist/service/lambda/function/invoke/sim-lambda-process-output.d.ts +104 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-output.d.ts.map +1 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-output.js +133 -0
- package/dist/service/lambda/function/invoke/sim-lambda-process-output.js.map +1 -0
- package/dist/service/lambda/function/logging/sim-lambda-function-logging.d.ts +10 -0
- package/dist/service/lambda/function/logging/sim-lambda-function-logging.d.ts.map +1 -1
- package/dist/service/lambda/function/logging/sim-lambda-function-logging.js +11 -0
- package/dist/service/lambda/function/logging/sim-lambda-function-logging.js.map +1 -1
- package/dist/service/lambda/function/policy/sim-lambda-policy-resource.d.ts +17 -0
- package/dist/service/lambda/function/policy/sim-lambda-policy-resource.d.ts.map +1 -0
- package/dist/service/lambda/function/policy/sim-lambda-policy-resource.js +2 -0
- package/dist/service/lambda/function/policy/sim-lambda-policy-resource.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-arn-parts.d.ts +3 -3
- package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts +43 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.js +22 -0
- package/dist/service/lambda/function/sim-lambda-function-configuration.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-name.d.ts +3 -1
- package/dist/service/lambda/function/sim-lambda-function-name.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function-name.js +3 -1
- package/dist/service/lambda/function/sim-lambda-function-name.js.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function-reference.d.ts +36 -0
- package/dist/service/lambda/function/sim-lambda-function-reference.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-reference.js +56 -0
- package/dist/service/lambda/function/sim-lambda-function-reference.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts +19 -32
- package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.js +33 -14
- package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
- package/dist/service/lambda/function/url/sim-lambda-function-lookup.d.ts +22 -3
- package/dist/service/lambda/function/url/sim-lambda-function-lookup.d.ts.map +1 -1
- package/dist/service/lambda/function/url/sim-lambda-function-lookup.js +24 -4
- package/dist/service/lambda/function/url/sim-lambda-function-lookup.js.map +1 -1
- package/dist/service/lambda/function/version/sim-lambda-function-alias-store.d.ts +55 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias-store.d.ts.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias-store.js +80 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias-store.js.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias.d.ts +60 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias.d.ts.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias.js +57 -0
- package/dist/service/lambda/function/version/sim-lambda-function-alias.js.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-target.d.ts +16 -0
- package/dist/service/lambda/function/version/sim-lambda-function-target.d.ts.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-target.js +2 -0
- package/dist/service/lambda/function/version/sim-lambda-function-target.js.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-version-store.d.ts +80 -0
- package/dist/service/lambda/function/version/sim-lambda-function-version-store.d.ts.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-version-store.js +114 -0
- package/dist/service/lambda/function/version/sim-lambda-function-version-store.js.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-versions.d.ts +61 -0
- package/dist/service/lambda/function/version/sim-lambda-function-versions.d.ts.map +1 -0
- package/dist/service/lambda/function/version/sim-lambda-function-versions.js +96 -0
- package/dist/service/lambda/function/version/sim-lambda-function-versions.js.map +1 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.d.ts.map +1 -1
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js +28 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-routes.d.ts +2 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-routes.d.ts.map +1 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-routes.js +2 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-routes.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts +8 -0
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +25 -0
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
- package/dist/service/lambda/sim-lambda-inspection.d.ts +43 -0
- package/dist/service/lambda/sim-lambda-inspection.d.ts.map +1 -0
- package/dist/service/lambda/sim-lambda-inspection.js +50 -0
- package/dist/service/lambda/sim-lambda-inspection.js.map +1 -0
- package/dist/service/lambda/sim-lambda.d.ts +44 -80
- package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda.js +55 -82
- package/dist/service/lambda/sim-lambda.js.map +1 -1
- package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.d.ts.map +1 -1
- package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.js +2 -2
- package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.js.map +1 -1
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.d.ts +7 -5
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.d.ts.map +1 -1
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.js +15 -9
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.js.map +1 -1
- package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.d.ts +9 -0
- package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.d.ts.map +1 -1
- package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.js +11 -5
- package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.js.map +1 -1
- package/dist/service/s3/command/get-object/get-object-loader.d.ts +5 -3
- package/dist/service/s3/command/get-object/get-object-loader.d.ts.map +1 -1
- package/dist/service/s3/command/get-object/get-object-loader.js +19 -4
- package/dist/service/s3/command/get-object/get-object-loader.js.map +1 -1
- package/dist/service/s3/command/get-object/get-object.command.d.ts +13 -0
- package/dist/service/s3/command/get-object/get-object.command.d.ts.map +1 -1
- package/dist/service/s3/command/get-object/get-object.handler.d.ts +3 -0
- package/dist/service/s3/command/get-object/get-object.handler.d.ts.map +1 -1
- package/dist/service/s3/command/get-object/get-object.handler.js +4 -1
- package/dist/service/s3/command/get-object/get-object.handler.js.map +1 -1
- package/dist/service/s3/error/sim-s3.error.d.ts +13 -0
- package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.js +15 -0
- package/dist/service/s3/error/sim-s3.error.js.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js +23 -10
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts +8 -4
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js +12 -12
- package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js.map +1 -1
- package/dist/service/s3/object/s3-object-range.d.ts +26 -0
- package/dist/service/s3/object/s3-object-range.d.ts.map +1 -0
- package/dist/service/s3/object/s3-object-range.js +89 -0
- package/dist/service/s3/object/s3-object-range.js.map +1 -0
- package/dist/service/s3/object/s3-object-response-headers.d.ts +7 -1
- package/dist/service/s3/object/s3-object-response-headers.d.ts.map +1 -1
- package/dist/service/s3/object/s3-object-response-headers.js +5 -1
- package/dist/service/s3/object/s3-object-response-headers.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-input.d.ts +0 -14
- package/dist/service/s3/serve/api/sim-s3-api-input.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-input.js +0 -29
- package/dist/service/s3/serve/api/sim-s3-api-input.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts +27 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-input.js +47 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-input.js.map +1 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts +5 -0
- package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js +8 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-output.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +2 -2
- package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts +5 -0
- package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-object-reader.js +20 -3
- package/dist/service/s3/serve/sim-s3-rest-object-reader.js.map +1 -1
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.d.ts +5 -4
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.d.ts.map +1 -1
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.js +16 -11
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.js.map +1 -1
- package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.d.ts +8 -4
- package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.d.ts.map +1 -1
- package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.js +11 -10
- package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.js.map +1 -1
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.d.ts +0 -7
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.d.ts.map +1 -1
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.js +7 -41
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.js.map +1 -1
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.d.ts +14 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.d.ts.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.js +26 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-body.js.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.d.ts +11 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.d.ts.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.js +16 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-reference-stand-in.js.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.d.ts +40 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.d.ts.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.js +67 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.js.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.d.ts +8 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.d.ts.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.js +61 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-reference-properties.js.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.d.ts +19 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.d.ts.map +1 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.js +37 -0
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-refusals.js.map +1 -0
- package/dist/service/ssm/sim-ssm.d.ts +5 -0
- package/dist/service/ssm/sim-ssm.d.ts.map +1 -1
- package/dist/service/ssm/sim-ssm.js +7 -0
- package/dist/service/ssm/sim-ssm.js.map +1 -1
- package/package.json +4 -2
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-policies-parser.d.ts +0 -25
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-policies-parser.d.ts.map +0 -1
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-policies-parser.js.map +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { samDeclaredEvents } from "./sim-cfn-sam-declared-event.js";
|
|
2
|
+
import { samDynamoDbEventResources, samSqsEventResources, } from "./sim-cfn-sam-event-source-mapping-event.js";
|
|
3
|
+
import { samDynamoDbEventEdits, samSqsEventEdits, } from "./sim-cfn-sam-event-source-role.js";
|
|
4
|
+
import { samEventBridgeRuleEventResources } from "./sim-cfn-sam-event-bridge-rule-event.js";
|
|
5
|
+
import { samHttpApiEventResources } from "./sim-cfn-sam-http-api-event.js";
|
|
6
|
+
import { samS3EventEdits, samS3EventResources, } from "./sim-cfn-sam-s3-event.js";
|
|
7
|
+
import { samScheduleEventResources } from "./sim-cfn-sam-schedule-event.js";
|
|
8
|
+
import { samScheduleV2EventResources } from "./sim-cfn-sam-schedule-v2-event.js";
|
|
9
|
+
import { samSnsEventResources } from "./sim-cfn-sam-sns-event.js";
|
|
10
|
+
/**
|
|
11
|
+
* The SAM event types this expansion covers, by the name an event writes under
|
|
12
|
+
* `Type`.
|
|
13
|
+
*
|
|
14
|
+
* This table is the list of supported event types, the way the intrinsic
|
|
15
|
+
* function parsers are a table of the supported functions. An event of a type
|
|
16
|
+
* absent from it expands into nothing and leaves the function as it is. The
|
|
17
|
+
* template deploys a function nothing calls, and the deployment stands.
|
|
18
|
+
*/
|
|
19
|
+
const eventExpansions = new Map([
|
|
20
|
+
["DynamoDB", samDynamoDbEventResources],
|
|
21
|
+
["EventBridgeRule", samEventBridgeRuleEventResources],
|
|
22
|
+
["HttpApi", samHttpApiEventResources],
|
|
23
|
+
["S3", samS3EventResources],
|
|
24
|
+
["SNS", samSnsEventResources],
|
|
25
|
+
["SQS", samSqsEventResources],
|
|
26
|
+
["Schedule", samScheduleEventResources],
|
|
27
|
+
["ScheduleV2", samScheduleV2EventResources],
|
|
28
|
+
]);
|
|
29
|
+
/**
|
|
30
|
+
* What one event type changes about Resources it did not make, by the name the
|
|
31
|
+
* event writes under `Type`.
|
|
32
|
+
*
|
|
33
|
+
* This is the second half of the same table, for what an event cannot express
|
|
34
|
+
* as a Resource of its own. An `S3` event notifies a Bucket the template
|
|
35
|
+
* declares, and a polled event grants the function's own execution Role the
|
|
36
|
+
* permission to poll. Keying either by the logical ID it changes would deploy
|
|
37
|
+
* the change in place of the Resource, since expanded Resources are merged
|
|
38
|
+
* last write wins.
|
|
39
|
+
*
|
|
40
|
+
* An event type belongs in both tables where it does both, as all three of
|
|
41
|
+
* these do.
|
|
42
|
+
*/
|
|
43
|
+
const eventEdits = new Map([
|
|
44
|
+
["DynamoDB", samDynamoDbEventEdits],
|
|
45
|
+
["S3", samS3EventEdits],
|
|
46
|
+
["SQS", samSqsEventEdits],
|
|
47
|
+
]);
|
|
48
|
+
/**
|
|
49
|
+
* The Resources the `Events` of a SAM function are expanded into.
|
|
50
|
+
*
|
|
51
|
+
* Every event is expanded on its own and the results are merged, so two events
|
|
52
|
+
* naming the same shared Resource converge on one entry. That is what gives
|
|
53
|
+
* every event naming no `ApiId` the same implicit API, whether the events are
|
|
54
|
+
* on one function or spread over several.
|
|
55
|
+
*/
|
|
56
|
+
export function samFunctionEventResources(properties) {
|
|
57
|
+
return Object.fromEntries(samDeclaredEvents(properties).flatMap((declared) => Object.entries(eventExpansions.get(declared.type)?.(declared.event) ?? {})));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The changes the `Events` of a SAM function make to Resources the template
|
|
61
|
+
* already declares.
|
|
62
|
+
*
|
|
63
|
+
* They are collected rather than applied here, because the Resources they name
|
|
64
|
+
* are the template's own and are nowhere near the function. They are applied
|
|
65
|
+
* once every SAM Resource in the template has been expanded.
|
|
66
|
+
*/
|
|
67
|
+
export function samFunctionEventEdits(properties) {
|
|
68
|
+
return samDeclaredEvents(properties).flatMap((declared) => eventEdits.get(declared.type)?.(declared.event) ?? []);
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=sim-cfn-sam-function-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-function-events.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-function-events.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EACL,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,OAAO,EACL,eAAe,EACf,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAmBlE;;;;;;;;GAQG;AACH,MAAM,eAAe,GAAmD,IAAI,GAAG,CAC7E;IACE,CAAC,UAAU,EAAE,yBAAyB,CAAC;IACvC,CAAC,iBAAiB,EAAE,gCAAgC,CAAC;IACrD,CAAC,SAAS,EAAE,wBAAwB,CAAC;IACrC,CAAC,IAAI,EAAE,mBAAmB,CAAC;IAC3B,CAAC,KAAK,EAAE,oBAAoB,CAAC;IAC7B,CAAC,KAAK,EAAE,oBAAoB,CAAC;IAC7B,CAAC,UAAU,EAAE,yBAAyB,CAAC;IACvC,CAAC,YAAY,EAAE,2BAA2B,CAAC;CAC5C,CACF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,GAA8C,IAAI,GAAG,CAAC;IACpE,CAAC,UAAU,EAAE,qBAAqB,CAAC;IACnC,CAAC,IAAI,EAAE,eAAe,CAAC;IACvB,CAAC,KAAK,EAAE,gBAAgB,CAAC;CAC1B,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,UAAU,yBAAyB,CACvC,UAAuC;IAEvC,OAAO,MAAM,CAAC,WAAW,CACvB,iBAAiB,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CACjD,MAAM,CAAC,OAAO,CACZ,eAAe,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAC3D,CACF,CACF,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CACnC,UAAuC;IAEvC,OAAO,iBAAiB,CAAC,UAAU,CAAC,CAAC,OAAO,CAC1C,CAAC,QAAQ,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CACpE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue } from "../../../template/value/sim-cfn-template-value.js";
|
|
2
|
+
import type { SamFunctionEvent } from "./sim-cfn-sam-function-events.js";
|
|
3
|
+
/**
|
|
4
|
+
* Expand one `HttpApi` event into the Resources that put a route in front of
|
|
5
|
+
* the function.
|
|
6
|
+
*
|
|
7
|
+
* The event becomes an integration to the function, a route pointing at it,
|
|
8
|
+
* and the permission the API invokes the function under. An event naming no
|
|
9
|
+
* `ApiId` brings the implicit API and its stage with it, and an event naming
|
|
10
|
+
* one leaves the API to whatever declared it.
|
|
11
|
+
*
|
|
12
|
+
* The route and the integration are named after the function and the event, so
|
|
13
|
+
* two events on one function are two routes, and two functions answering the
|
|
14
|
+
* same API keep integrations of their own. They are conditioned the way the
|
|
15
|
+
* function is, since a function the template conditioned out has nothing for a
|
|
16
|
+
* route to reach. The implicit API keeps no condition of its own. It is shared,
|
|
17
|
+
* and the other functions on it may be conditioned differently or not at all.
|
|
18
|
+
*/
|
|
19
|
+
export declare function samHttpApiEventResources(event: SamFunctionEvent): Record<string, SimCfnTemplateValue>;
|
|
20
|
+
//# sourceMappingURL=sim-cfn-sam-http-api-event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-http-api-event.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,mDAAmD,CAAC;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAQzE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,gBAAgB,GACtB,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAgBrC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { isSamTemplateRecord } from "../../sim-cfn-sam-record.js";
|
|
2
|
+
import { samHttpApiPermissionResource } from "./sim-cfn-sam-http-api-permission.js";
|
|
3
|
+
import { samHttpApiRouteResource } from "./sim-cfn-sam-http-api-route.js";
|
|
4
|
+
import { samImplicitHttpApiLogicalId, samImplicitHttpApiResources, } from "./sim-cfn-sam-implicit-http-api.js";
|
|
5
|
+
/**
|
|
6
|
+
* Expand one `HttpApi` event into the Resources that put a route in front of
|
|
7
|
+
* the function.
|
|
8
|
+
*
|
|
9
|
+
* The event becomes an integration to the function, a route pointing at it,
|
|
10
|
+
* and the permission the API invokes the function under. An event naming no
|
|
11
|
+
* `ApiId` brings the implicit API and its stage with it, and an event naming
|
|
12
|
+
* one leaves the API to whatever declared it.
|
|
13
|
+
*
|
|
14
|
+
* The route and the integration are named after the function and the event, so
|
|
15
|
+
* two events on one function are two routes, and two functions answering the
|
|
16
|
+
* same API keep integrations of their own. They are conditioned the way the
|
|
17
|
+
* function is, since a function the template conditioned out has nothing for a
|
|
18
|
+
* route to reach. The implicit API keeps no condition of its own. It is shared,
|
|
19
|
+
* and the other functions on it may be conditioned differently or not at all.
|
|
20
|
+
*/
|
|
21
|
+
export function samHttpApiEventResources(event) {
|
|
22
|
+
const apiId = samHttpApiEventApiId(event.properties);
|
|
23
|
+
const prefix = `${event.functionLogicalId}${event.eventName}HttpApi`;
|
|
24
|
+
const integrationLogicalId = `${prefix}Integration`;
|
|
25
|
+
return {
|
|
26
|
+
...(event.properties["ApiId"] === undefined &&
|
|
27
|
+
samImplicitHttpApiResources()),
|
|
28
|
+
[integrationLogicalId]: integrationResource(event, apiId),
|
|
29
|
+
[`${prefix}Route`]: samHttpApiRouteResource({
|
|
30
|
+
apiId,
|
|
31
|
+
integrationLogicalId,
|
|
32
|
+
event,
|
|
33
|
+
}),
|
|
34
|
+
[`${prefix}Permission`]: samHttpApiPermissionResource(event, apiId),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The API this event routes to, as the value the expanded Resources put in
|
|
39
|
+
* their `ApiId`.
|
|
40
|
+
*
|
|
41
|
+
* An event naming an API by logical ID is answered with a `Ref` to it, which
|
|
42
|
+
* an `AWS::Serverless::HttpApi` and an `AWS::ApiGatewayV2::Api` both answer
|
|
43
|
+
* with the API's id. An `ApiId` already written as an intrinsic goes through
|
|
44
|
+
* as it came, since `!Ref MyApi` is how a SAM template usually names one.
|
|
45
|
+
*/
|
|
46
|
+
function samHttpApiEventApiId(properties) {
|
|
47
|
+
const apiId = properties["ApiId"];
|
|
48
|
+
if (apiId === undefined) {
|
|
49
|
+
return { Ref: samImplicitHttpApiLogicalId };
|
|
50
|
+
}
|
|
51
|
+
return isSamTemplateRecord(apiId) ? apiId : { Ref: apiId };
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The AWS::ApiGatewayV2::Integration the route sends its requests through.
|
|
55
|
+
*
|
|
56
|
+
* SAM integrates an `HttpApi` event as a payload format 2.0 proxy. That is the
|
|
57
|
+
* shape the function is handed the request in.
|
|
58
|
+
*/
|
|
59
|
+
function integrationResource(event, apiId) {
|
|
60
|
+
return {
|
|
61
|
+
Type: "AWS::ApiGatewayV2::Integration",
|
|
62
|
+
...event.condition,
|
|
63
|
+
Properties: {
|
|
64
|
+
ApiId: apiId,
|
|
65
|
+
IntegrationType: "AWS_PROXY",
|
|
66
|
+
IntegrationUri: { "Fn::GetAtt": [event.functionLogicalId, "Arn"] },
|
|
67
|
+
PayloadFormatVersion: "2.0",
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=sim-cfn-sam-http-api-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-http-api-event.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-event.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,wBAAwB,CACtC,KAAuB;IAEvB,MAAM,KAAK,GAAG,oBAAoB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACrD,MAAM,MAAM,GAAG,GAAG,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,SAAS,SAAS,CAAC;IACrE,MAAM,oBAAoB,GAAG,GAAG,MAAM,aAAa,CAAC;IAEpD,OAAO;QACL,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,SAAS;YACzC,2BAA2B,EAAE,CAAC;QAChC,CAAC,oBAAoB,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC;QACzD,CAAC,GAAG,MAAM,OAAO,CAAC,EAAE,uBAAuB,CAAC;YAC1C,KAAK;YACL,oBAAoB;YACpB,KAAK;SACN,CAAC;QACF,CAAC,GAAG,MAAM,YAAY,CAAC,EAAE,4BAA4B,CAAC,KAAK,EAAE,KAAK,CAAC;KACpE,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,oBAAoB,CAC3B,UAAqC;IAErC,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAElC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,EAAE,GAAG,EAAE,2BAA2B,EAAE,CAAC;IAC9C,CAAC;IAED,OAAO,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;AAC7D,CAAC;AAED;;;;;GAKG;AACH,SAAS,mBAAmB,CAC1B,KAAuB,EACvB,KAA0B;IAE1B,OAAO;QACL,IAAI,EAAE,gCAAgC;QACtC,GAAG,KAAK,CAAC,SAAS;QAClB,UAAU,EAAE;YACV,KAAK,EAAE,KAAK;YACZ,eAAe,EAAE,WAAW;YAC5B,cAAc,EAAE,EAAE,YAAY,EAAE,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,CAAC,EAAE;YAClE,oBAAoB,EAAE,KAAK;SAC5B;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue, SimCfnTemplateValueRecord } from "../../../template/value/sim-cfn-template-value.js";
|
|
2
|
+
import type { SamFunctionEvent } from "./sim-cfn-sam-function-events.js";
|
|
3
|
+
/**
|
|
4
|
+
* The AWS::Lambda::Permission the API invokes the function under.
|
|
5
|
+
*
|
|
6
|
+
* A Lambda proxy integration works only once the function's resource policy
|
|
7
|
+
* admits API Gateway. Without this the route answers 500.
|
|
8
|
+
*
|
|
9
|
+
* The source ARN wildcards the stage and the route, the grant SAM writes.
|
|
10
|
+
* Every route this API sends the function is one an event of its own asked
|
|
11
|
+
* for.
|
|
12
|
+
*/
|
|
13
|
+
export declare function samHttpApiPermissionResource(event: SamFunctionEvent, apiId: SimCfnTemplateValue): SimCfnTemplateValueRecord;
|
|
14
|
+
//# sourceMappingURL=sim-cfn-sam-http-api-permission.d.ts.map
|
package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-http-api-permission.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,gBAAgB,EACvB,KAAK,EAAE,mBAAmB,GACzB,yBAAyB,CA0B3B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The AWS::Lambda::Permission the API invokes the function under.
|
|
3
|
+
*
|
|
4
|
+
* A Lambda proxy integration works only once the function's resource policy
|
|
5
|
+
* admits API Gateway. Without this the route answers 500.
|
|
6
|
+
*
|
|
7
|
+
* The source ARN wildcards the stage and the route, the grant SAM writes.
|
|
8
|
+
* Every route this API sends the function is one an event of its own asked
|
|
9
|
+
* for.
|
|
10
|
+
*/
|
|
11
|
+
export function samHttpApiPermissionResource(event, apiId) {
|
|
12
|
+
return {
|
|
13
|
+
Type: "AWS::Lambda::Permission",
|
|
14
|
+
...event.condition,
|
|
15
|
+
Properties: {
|
|
16
|
+
Action: "lambda:InvokeFunction",
|
|
17
|
+
FunctionName: { "Fn::GetAtt": [event.functionLogicalId, "Arn"] },
|
|
18
|
+
Principal: "apigateway.amazonaws.com",
|
|
19
|
+
SourceArn: {
|
|
20
|
+
"Fn::Join": [
|
|
21
|
+
"",
|
|
22
|
+
[
|
|
23
|
+
"arn:",
|
|
24
|
+
{ Ref: "AWS::Partition" },
|
|
25
|
+
":execute-api:",
|
|
26
|
+
{ Ref: "AWS::Region" },
|
|
27
|
+
":",
|
|
28
|
+
{ Ref: "AWS::AccountId" },
|
|
29
|
+
":",
|
|
30
|
+
apiId,
|
|
31
|
+
"/*/*",
|
|
32
|
+
],
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=sim-cfn-sam-http-api-permission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-http-api-permission.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-permission.ts"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,MAAM,UAAU,4BAA4B,CAC1C,KAAuB,EACvB,KAA0B;IAE1B,OAAO;QACL,IAAI,EAAE,yBAAyB;QAC/B,GAAG,KAAK,CAAC,SAAS;QAClB,UAAU,EAAE;YACV,MAAM,EAAE,uBAAuB;YAC/B,YAAY,EAAE,EAAE,YAAY,EAAE,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,CAAC,EAAE;YAChE,SAAS,EAAE,0BAA0B;YACrC,SAAS,EAAE;gBACT,UAAU,EAAE;oBACV,EAAE;oBACF;wBACE,MAAM;wBACN,EAAE,GAAG,EAAE,gBAAgB,EAAE;wBACzB,eAAe;wBACf,EAAE,GAAG,EAAE,aAAa,EAAE;wBACtB,GAAG;wBACH,EAAE,GAAG,EAAE,gBAAgB,EAAE;wBACzB,GAAG;wBACH,KAAK;wBACL,MAAM;qBACP;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue, SimCfnTemplateValueRecord } from "../../../template/value/sim-cfn-template-value.js";
|
|
2
|
+
import type { SamFunctionEvent } from "./sim-cfn-sam-function-events.js";
|
|
3
|
+
interface SamHttpApiRouteProperties {
|
|
4
|
+
/** The API the route belongs to. */
|
|
5
|
+
readonly apiId: SimCfnTemplateValue;
|
|
6
|
+
/** The logical ID of the integration the route targets. */
|
|
7
|
+
readonly integrationLogicalId: string;
|
|
8
|
+
readonly event: SamFunctionEvent;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The AWS::ApiGatewayV2::Route the event's path and method are served by.
|
|
12
|
+
*
|
|
13
|
+
* `Auth` on the event is not expanded. The route authorizes nothing, and every
|
|
14
|
+
* request matching it reaches the function.
|
|
15
|
+
*/
|
|
16
|
+
export declare function samHttpApiRouteResource(route: SamHttpApiRouteProperties): SimCfnTemplateValueRecord;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=sim-cfn-sam-http-api-route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-http-api-route.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,UAAU,yBAAyB;IACjC,oCAAoC;IACpC,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;IACpC,2DAA2D;IAC3D,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;CAClC;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,yBAAyB,GAC/B,yBAAyB,CAgB3B"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { simHttpApiDefaultRouteKey } from "../../../../apigatewayv2/api/route/key/sim-http-api-default-route-key.js";
|
|
2
|
+
import { simHttpApiAnyMethod } from "../../../../apigatewayv2/api/route/key/sim-http-api-route-method.js";
|
|
3
|
+
/**
|
|
4
|
+
* The AWS::ApiGatewayV2::Route the event's path and method are served by.
|
|
5
|
+
*
|
|
6
|
+
* `Auth` on the event is not expanded. The route authorizes nothing, and every
|
|
7
|
+
* request matching it reaches the function.
|
|
8
|
+
*/
|
|
9
|
+
export function samHttpApiRouteResource(route) {
|
|
10
|
+
return {
|
|
11
|
+
Type: "AWS::ApiGatewayV2::Route",
|
|
12
|
+
...route.event.condition,
|
|
13
|
+
Properties: {
|
|
14
|
+
ApiId: route.apiId,
|
|
15
|
+
...samHttpApiRouteKey(route.event.properties),
|
|
16
|
+
AuthorizationType: "NONE",
|
|
17
|
+
Target: {
|
|
18
|
+
"Fn::Join": [
|
|
19
|
+
"",
|
|
20
|
+
["integrations/", { Ref: route.integrationLogicalId }],
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The `RouteKey` property the `Path` and `Method` of an `HttpApi` event name.
|
|
28
|
+
*
|
|
29
|
+
* A method the event leaves out is `ANY`, matching the path whatever the
|
|
30
|
+
* request did to it. A method in lower case is upper-cased, the only case a
|
|
31
|
+
* route key takes. A `Path` of `$default` names the catch-all route.
|
|
32
|
+
*
|
|
33
|
+
* An event stating no `Path` names no route key at all. The Route it expands
|
|
34
|
+
* into then refuses itself by name, where a route key guessed from a missing
|
|
35
|
+
* path would be a route no request ever reached.
|
|
36
|
+
*/
|
|
37
|
+
function samHttpApiRouteKey(properties) {
|
|
38
|
+
const path = properties["Path"];
|
|
39
|
+
if (typeof path !== "string") {
|
|
40
|
+
return {};
|
|
41
|
+
}
|
|
42
|
+
if (path === simHttpApiDefaultRouteKey) {
|
|
43
|
+
return { RouteKey: path };
|
|
44
|
+
}
|
|
45
|
+
return { RouteKey: `${samHttpApiMethod(properties)} ${path}` };
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The method half of the route key.
|
|
49
|
+
*/
|
|
50
|
+
function samHttpApiMethod(properties) {
|
|
51
|
+
const method = properties["Method"];
|
|
52
|
+
return typeof method === "string"
|
|
53
|
+
? method.toUpperCase()
|
|
54
|
+
: simHttpApiAnyMethod;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=sim-cfn-sam-http-api-route.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-http-api-route.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-http-api-route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAC;AACrH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qEAAqE,CAAC;AAe1G;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CACrC,KAAgC;IAEhC,OAAO;QACL,IAAI,EAAE,0BAA0B;QAChC,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS;QACxB,UAAU,EAAE;YACV,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,GAAG,kBAAkB,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC;YAC7C,iBAAiB,EAAE,MAAM;YACzB,MAAM,EAAE;gBACN,UAAU,EAAE;oBACV,EAAE;oBACF,CAAC,eAAe,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,oBAAoB,EAAE,CAAC;iBACvD;aACF;SACF;KACF,CAAC;AACJ,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAS,kBAAkB,CACzB,UAAqC;IAErC,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IAEhC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,IAAI,KAAK,yBAAyB,EAAE,CAAC;QACvC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;AACjE,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,UAAqC;IAC7D,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IAEpC,OAAO,OAAO,MAAM,KAAK,QAAQ;QAC/B,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE;QACtB,CAAC,CAAC,mBAAmB,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue } from "../../../template/value/sim-cfn-template-value.js";
|
|
2
|
+
/**
|
|
3
|
+
* The logical ID SAM gives the API that every `HttpApi` event naming no
|
|
4
|
+
* `ApiId` shares. It is the name a template reaches the implicit API by, in an
|
|
5
|
+
* `Output` or in a `Ref` from a Resource of its own.
|
|
6
|
+
*/
|
|
7
|
+
export declare const samImplicitHttpApiLogicalId = "ServerlessHttpApi";
|
|
8
|
+
/**
|
|
9
|
+
* The API and stage an `HttpApi` event naming no `ApiId` is served by.
|
|
10
|
+
*
|
|
11
|
+
* The API is named after the stack, which is the name SAM gives it, and the
|
|
12
|
+
* stage is `$default`: an HTTP API's default stage serves its routes at the
|
|
13
|
+
* root of the endpoint, so a path the event stated is the path a request asks
|
|
14
|
+
* for.
|
|
15
|
+
*
|
|
16
|
+
* Every event naming no `ApiId` produces this same pair, and they are keyed by
|
|
17
|
+
* logical ID, so the API is created once however many events share it.
|
|
18
|
+
*/
|
|
19
|
+
export declare function samImplicitHttpApiResources(): Record<string, SimCfnTemplateValue>;
|
|
20
|
+
//# sourceMappingURL=sim-cfn-sam-implicit-http-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-implicit-http-api.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAE7F;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,sBAAsB,CAAC;AAO/D;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,IAAI,MAAM,CACnD,MAAM,EACN,mBAAmB,CACpB,CAkBA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The logical ID SAM gives the API that every `HttpApi` event naming no
|
|
3
|
+
* `ApiId` shares. It is the name a template reaches the implicit API by, in an
|
|
4
|
+
* `Output` or in a `Ref` from a Resource of its own.
|
|
5
|
+
*/
|
|
6
|
+
export const samImplicitHttpApiLogicalId = "ServerlessHttpApi";
|
|
7
|
+
/**
|
|
8
|
+
* The logical ID SAM gives the implicit API's stage.
|
|
9
|
+
*/
|
|
10
|
+
const implicitStageLogicalId = `${samImplicitHttpApiLogicalId}ApiGatewayDefaultStage`;
|
|
11
|
+
/**
|
|
12
|
+
* The API and stage an `HttpApi` event naming no `ApiId` is served by.
|
|
13
|
+
*
|
|
14
|
+
* The API is named after the stack, which is the name SAM gives it, and the
|
|
15
|
+
* stage is `$default`: an HTTP API's default stage serves its routes at the
|
|
16
|
+
* root of the endpoint, so a path the event stated is the path a request asks
|
|
17
|
+
* for.
|
|
18
|
+
*
|
|
19
|
+
* Every event naming no `ApiId` produces this same pair, and they are keyed by
|
|
20
|
+
* logical ID, so the API is created once however many events share it.
|
|
21
|
+
*/
|
|
22
|
+
export function samImplicitHttpApiResources() {
|
|
23
|
+
return {
|
|
24
|
+
[samImplicitHttpApiLogicalId]: {
|
|
25
|
+
Type: "AWS::ApiGatewayV2::Api",
|
|
26
|
+
Properties: {
|
|
27
|
+
Name: { Ref: "AWS::StackName" },
|
|
28
|
+
ProtocolType: "HTTP",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
[implicitStageLogicalId]: {
|
|
32
|
+
Type: "AWS::ApiGatewayV2::Stage",
|
|
33
|
+
Properties: {
|
|
34
|
+
ApiId: { Ref: samImplicitHttpApiLogicalId },
|
|
35
|
+
StageName: "$default",
|
|
36
|
+
AutoDeploy: true,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=sim-cfn-sam-implicit-http-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-implicit-http-api.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-implicit-http-api.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;AAE/D;;GAEG;AACH,MAAM,sBAAsB,GAAG,GAAG,2BAA2B,wBAAwB,CAAC;AAEtF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,2BAA2B;IAIzC,OAAO;QACL,CAAC,2BAA2B,CAAC,EAAE;YAC7B,IAAI,EAAE,wBAAwB;YAC9B,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,GAAG,EAAE,gBAAgB,EAAE;gBAC/B,YAAY,EAAE,MAAM;aACrB;SACF;QACD,CAAC,sBAAsB,CAAC,EAAE;YACxB,IAAI,EAAE,0BAA0B;YAChC,UAAU,EAAE;gBACV,KAAK,EAAE,EAAE,GAAG,EAAE,2BAA2B,EAAE;gBAC3C,SAAS,EAAE,UAAU;gBACrB,UAAU,EAAE,IAAI;aACjB;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue, SimCfnTemplateValueRecord } from "../../../template/value/sim-cfn-template-value.js";
|
|
2
|
+
/**
|
|
3
|
+
* A change an event makes to a Resource the template already declares.
|
|
4
|
+
*
|
|
5
|
+
* Most events expand into Resources of their own, which are keyed by a logical
|
|
6
|
+
* ID nothing else uses and merged into the template alongside everything else.
|
|
7
|
+
* An `S3` event has nowhere to put one. In CloudFormation a Bucket carries its
|
|
8
|
+
* own notifications, and the event adds to a Resource it did not make. Keying
|
|
9
|
+
* the expansion by the Bucket's logical ID would replace the Bucket, since the
|
|
10
|
+
* expanded Resources are merged last write wins. An edit instead says which
|
|
11
|
+
* Resource it changes, and is handed that Resource to rebuild.
|
|
12
|
+
*/
|
|
13
|
+
export interface SamResourceEdit {
|
|
14
|
+
/** The logical ID of the Resource in the template this edit changes. */
|
|
15
|
+
readonly logicalId: string;
|
|
16
|
+
/** The Resource as the edit leaves it, from the Resource as it stands. */
|
|
17
|
+
readonly edit: (resource: SimCfnTemplateValueRecord) => SimCfnTemplateValueRecord;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The expanded Resources with every edit applied, in the order the edits were
|
|
21
|
+
* collected.
|
|
22
|
+
*
|
|
23
|
+
* Each edit is handed what the one before it left, so two events notifying the
|
|
24
|
+
* same Bucket both reach it. An edit naming a Resource the template does not
|
|
25
|
+
* declare changes nothing, the way an event of a type nothing expands leaves
|
|
26
|
+
* the function as it is.
|
|
27
|
+
*/
|
|
28
|
+
export declare function samEditedResources(resources: Record<string, SimCfnTemplateValue>, edits: readonly SamResourceEdit[]): Record<string, SimCfnTemplateValue>;
|
|
29
|
+
//# sourceMappingURL=sim-cfn-sam-resource-edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-resource-edit.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,mDAAmD,CAAC;AAG3D;;;;;;;;;;GAUG;AACH,MAAM,WAAW,eAAe;IAC9B,wEAAwE;IACxE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,EAAE,CACb,QAAQ,EAAE,yBAAyB,KAChC,yBAAyB,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,EAC9C,KAAK,EAAE,SAAS,eAAe,EAAE,GAChC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAQrC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isSamTemplateRecord } from "../../sim-cfn-sam-record.js";
|
|
2
|
+
/**
|
|
3
|
+
* The expanded Resources with every edit applied, in the order the edits were
|
|
4
|
+
* collected.
|
|
5
|
+
*
|
|
6
|
+
* Each edit is handed what the one before it left, so two events notifying the
|
|
7
|
+
* same Bucket both reach it. An edit naming a Resource the template does not
|
|
8
|
+
* declare changes nothing, the way an event of a type nothing expands leaves
|
|
9
|
+
* the function as it is.
|
|
10
|
+
*/
|
|
11
|
+
export function samEditedResources(resources, edits) {
|
|
12
|
+
return edits.reduce((edited, edit) => ({
|
|
13
|
+
...edited,
|
|
14
|
+
...editedResource(edited[edit.logicalId], edit),
|
|
15
|
+
}), resources);
|
|
16
|
+
}
|
|
17
|
+
function editedResource(resource, edit) {
|
|
18
|
+
if (!isSamTemplateRecord(resource)) {
|
|
19
|
+
return {};
|
|
20
|
+
}
|
|
21
|
+
return { [edit.logicalId]: edit.edit(resource) };
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=sim-cfn-sam-resource-edit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-resource-edit.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-resource-edit.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAsBlE;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAChC,SAA8C,EAC9C,KAAiC;IAEjC,OAAO,KAAK,CAAC,MAAM,CACjB,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACjB,GAAG,MAAM;QACT,GAAG,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;KAChD,CAAC,EACF,SAAS,CACV,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CACrB,QAAyC,EACzC,IAAqB;IAErB,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue } from "../../../template/value/sim-cfn-template-value.js";
|
|
2
|
+
import type { SamFunctionEvent } from "./sim-cfn-sam-declared-event.js";
|
|
3
|
+
import type { SamResourceEdit } from "./sim-cfn-sam-resource-edit.js";
|
|
4
|
+
/**
|
|
5
|
+
* The Resource an `S3` event expands into, which is the permission S3 invokes
|
|
6
|
+
* the function under.
|
|
7
|
+
*
|
|
8
|
+
* S3 checks the function's resource policy as the notification is applied and
|
|
9
|
+
* again on every event, so the Bucket's own Resource is not enough on its own.
|
|
10
|
+
*
|
|
11
|
+
* The grant names the Account rather than the Bucket. A Bucket ARN would have
|
|
12
|
+
* to come from `Fn::GetAtt` on the Bucket, and the Bucket already names the
|
|
13
|
+
* function, which is the circular dependency CloudFormation refuses.
|
|
14
|
+
*/
|
|
15
|
+
export declare function samS3EventResources(event: SamFunctionEvent): Record<string, SimCfnTemplateValue>;
|
|
16
|
+
/**
|
|
17
|
+
* The change an `S3` event makes to the Bucket the template already declares.
|
|
18
|
+
*
|
|
19
|
+
* An S3 notification is a property of the Bucket, so this is the one event type
|
|
20
|
+
* with no Resource of its own to be. The event adds its own
|
|
21
|
+
* `LambdaConfigurations` entries and leaves whatever the Bucket already
|
|
22
|
+
* carried, so a template configuring notifications by hand keeps them and two
|
|
23
|
+
* events on one Bucket both arrive.
|
|
24
|
+
*
|
|
25
|
+
* The Bucket is made to depend on the permission, because S3 refuses a
|
|
26
|
+
* destination it may not invoke and nothing else orders the two.
|
|
27
|
+
*
|
|
28
|
+
* The notification is unconditional even where the function is conditioned. A
|
|
29
|
+
* `Condition` covers a whole Resource, and there is no conditioning a fragment
|
|
30
|
+
* of somebody else's property.
|
|
31
|
+
*/
|
|
32
|
+
export declare function samS3EventEdits(event: SamFunctionEvent): readonly SamResourceEdit[];
|
|
33
|
+
//# sourceMappingURL=sim-cfn-sam-s3-event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-s3-event.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,mDAAmD,CAAC;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAatE;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,gBAAgB,GACtB,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAiBrC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,gBAAgB,GACtB,SAAS,eAAe,EAAE,CAkB5B"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { samValueList } from "../../sim-cfn-sam-record.js";
|
|
2
|
+
import { samS3NotifiedBucket } from "./sim-cfn-sam-s3-notified-bucket.js";
|
|
3
|
+
/**
|
|
4
|
+
* The Resource an `S3` event expands into, which is the permission S3 invokes
|
|
5
|
+
* the function under.
|
|
6
|
+
*
|
|
7
|
+
* S3 checks the function's resource policy as the notification is applied and
|
|
8
|
+
* again on every event, so the Bucket's own Resource is not enough on its own.
|
|
9
|
+
*
|
|
10
|
+
* The grant names the Account rather than the Bucket. A Bucket ARN would have
|
|
11
|
+
* to come from `Fn::GetAtt` on the Bucket, and the Bucket already names the
|
|
12
|
+
* function, which is the circular dependency CloudFormation refuses.
|
|
13
|
+
*/
|
|
14
|
+
export function samS3EventResources(event) {
|
|
15
|
+
if (samS3EventNotification(event) === undefined) {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
[permissionLogicalId(event)]: {
|
|
20
|
+
Type: "AWS::Lambda::Permission",
|
|
21
|
+
...event.condition,
|
|
22
|
+
Properties: {
|
|
23
|
+
Action: "lambda:InvokeFunction",
|
|
24
|
+
FunctionName: { "Fn::GetAtt": [event.functionLogicalId, "Arn"] },
|
|
25
|
+
Principal: "s3.amazonaws.com",
|
|
26
|
+
SourceAccount: { Ref: "AWS::AccountId" },
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The change an `S3` event makes to the Bucket the template already declares.
|
|
33
|
+
*
|
|
34
|
+
* An S3 notification is a property of the Bucket, so this is the one event type
|
|
35
|
+
* with no Resource of its own to be. The event adds its own
|
|
36
|
+
* `LambdaConfigurations` entries and leaves whatever the Bucket already
|
|
37
|
+
* carried, so a template configuring notifications by hand keeps them and two
|
|
38
|
+
* events on one Bucket both arrive.
|
|
39
|
+
*
|
|
40
|
+
* The Bucket is made to depend on the permission, because S3 refuses a
|
|
41
|
+
* destination it may not invoke and nothing else orders the two.
|
|
42
|
+
*
|
|
43
|
+
* The notification is unconditional even where the function is conditioned. A
|
|
44
|
+
* `Condition` covers a whole Resource, and there is no conditioning a fragment
|
|
45
|
+
* of somebody else's property.
|
|
46
|
+
*/
|
|
47
|
+
export function samS3EventEdits(event) {
|
|
48
|
+
const notification = samS3EventNotification(event);
|
|
49
|
+
if (notification === undefined) {
|
|
50
|
+
return [];
|
|
51
|
+
}
|
|
52
|
+
return [
|
|
53
|
+
{
|
|
54
|
+
logicalId: notification.bucketLogicalId,
|
|
55
|
+
edit: (resource) => samS3NotifiedBucket(resource, {
|
|
56
|
+
bucketLogicalId: notification.bucketLogicalId,
|
|
57
|
+
configurations: notification.configurations,
|
|
58
|
+
permissionLogicalId: permissionLogicalId(event),
|
|
59
|
+
}),
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* What the event asks of the Bucket, or nothing where it named no Bucket or no
|
|
65
|
+
* event to be told about.
|
|
66
|
+
*
|
|
67
|
+
* Either one missing leaves the function as it is rather than failing the
|
|
68
|
+
* deployment, the same answer an event of a type nothing expands gets.
|
|
69
|
+
*/
|
|
70
|
+
function samS3EventNotification(event) {
|
|
71
|
+
const bucket = event.properties["Bucket"];
|
|
72
|
+
const configurations = lambdaConfigurations(event);
|
|
73
|
+
if (typeof bucket !== "string" || configurations.length === 0) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
return { bucketLogicalId: bucket, configurations };
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The `LambdaConfigurations` entries the event's `Events` name.
|
|
80
|
+
*
|
|
81
|
+
* `Events` holds one event name or a list of them, where a CloudFormation
|
|
82
|
+
* configuration carries exactly one, so a list of three is three
|
|
83
|
+
* configurations pointing at the same function. The `Filter` an event states is
|
|
84
|
+
* already written the way a Bucket writes one, and goes on each of them.
|
|
85
|
+
*/
|
|
86
|
+
function lambdaConfigurations(event) {
|
|
87
|
+
const filter = event.properties["Filter"];
|
|
88
|
+
return eventNames(event.properties["Events"]).map((name) => ({
|
|
89
|
+
Event: name,
|
|
90
|
+
...(filter !== undefined && { Filter: filter }),
|
|
91
|
+
Function: { "Fn::GetAtt": [event.functionLogicalId, "Arn"] },
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
function eventNames(events) {
|
|
95
|
+
if (typeof events === "string") {
|
|
96
|
+
return [events];
|
|
97
|
+
}
|
|
98
|
+
return samValueList(events).filter((name) => typeof name === "string");
|
|
99
|
+
}
|
|
100
|
+
function permissionLogicalId(event) {
|
|
101
|
+
return `${event.functionLogicalId}${event.eventName}S3Permission`;
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=sim-cfn-sam-s3-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-s3-event.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-s3-event.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAG3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAY1E;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mBAAmB,CACjC,KAAuB;IAEvB,IAAI,sBAAsB,CAAC,KAAK,CAAC,KAAK,SAAS,EAAE,CAAC;QAChD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO;QACL,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,EAAE;YAC5B,IAAI,EAAE,yBAAyB;YAC/B,GAAG,KAAK,CAAC,SAAS;YAClB,UAAU,EAAE;gBACV,MAAM,EAAE,uBAAuB;gBAC/B,YAAY,EAAE,EAAE,YAAY,EAAE,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,CAAC,EAAE;gBAChE,SAAS,EAAE,kBAAkB;gBAC7B,aAAa,EAAE,EAAE,GAAG,EAAE,gBAAgB,EAAE;aACzC;SACF;KACF,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,eAAe,CAC7B,KAAuB;IAEvB,MAAM,YAAY,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAEnD,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO;QACL;YACE,SAAS,EAAE,YAAY,CAAC,eAAe;YACvC,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,CACjB,mBAAmB,CAAC,QAAQ,EAAE;gBAC5B,eAAe,EAAE,YAAY,CAAC,eAAe;gBAC7C,cAAc,EAAE,YAAY,CAAC,cAAc;gBAC3C,mBAAmB,EAAE,mBAAmB,CAAC,KAAK,CAAC;aAChD,CAAC;SACL;KACF,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAS,sBAAsB,CAC7B,KAAuB;IAEvB,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,cAAc,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAEnD,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9D,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;AACrD,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,oBAAoB,CAC3B,KAAuB;IAEvB,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAE1C,OAAO,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC3D,KAAK,EAAE,IAAI;QACX,GAAG,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QAC/C,QAAQ,EAAE,EAAE,YAAY,EAAE,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,CAAC,EAAE;KAC7D,CAAC,CAAC,CAAC;AACN,CAAC;AAED,SAAS,UAAU,CAAC,MAAuC;IACzD,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAED,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC;AACzE,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAuB;IAClD,OAAO,GAAG,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,SAAS,cAAc,CAAC;AACpE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SimCfnTemplateValueRecord } from "../../../template/value/sim-cfn-template-value.js";
|
|
2
|
+
interface SamS3NotifiedBucketProperties {
|
|
3
|
+
/** The logical ID of the Bucket, for a refusal to name it. */
|
|
4
|
+
readonly bucketLogicalId: string;
|
|
5
|
+
/** The `LambdaConfigurations` entries the event adds. */
|
|
6
|
+
readonly configurations: readonly SimCfnTemplateValueRecord[];
|
|
7
|
+
/** The logical ID of the permission S3 invokes the function under. */
|
|
8
|
+
readonly permissionLogicalId: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The Bucket with an event's notifications on it and the permission ahead of
|
|
12
|
+
* it.
|
|
13
|
+
*
|
|
14
|
+
* What the Bucket already carried is kept, so a template configuring
|
|
15
|
+
* notifications by hand keeps them and two events on one Bucket both arrive.
|
|
16
|
+
*
|
|
17
|
+
* The Bucket is made to depend on the permission, because S3 refuses a
|
|
18
|
+
* destination it may not invoke and nothing else orders the two.
|
|
19
|
+
*/
|
|
20
|
+
export declare function samS3NotifiedBucket(resource: SimCfnTemplateValueRecord, notified: SamS3NotifiedBucketProperties): SimCfnTemplateValueRecord;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=sim-cfn-sam-s3-notified-bucket.d.ts.map
|
package/dist/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-s3-notified-bucket.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,yBAAyB,EAC1B,MAAM,mDAAmD,CAAC;AAO3D,UAAU,6BAA6B;IACrC,8DAA8D;IAC9D,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,yDAAyD;IACzD,QAAQ,CAAC,cAAc,EAAE,SAAS,yBAAyB,EAAE,CAAC;IAC9D,sEAAsE;IACtE,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;CACtC;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,yBAAyB,EACnC,QAAQ,EAAE,6BAA6B,GACtC,yBAAyB,CAqB3B"}
|