@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,76 @@
|
|
|
1
|
+
import { s3BucketNotificationError } from "../../../../s3/cfn/bucket/error/sim-cfn-s3-bucket-error.js";
|
|
2
|
+
import { isSamTemplateRecord, samRecordAt, samValueList, } from "../../sim-cfn-sam-record.js";
|
|
3
|
+
/**
|
|
4
|
+
* The Bucket with an event's notifications on it and the permission ahead of
|
|
5
|
+
* it.
|
|
6
|
+
*
|
|
7
|
+
* What the Bucket already carried is kept, so a template configuring
|
|
8
|
+
* notifications by hand keeps them and two events on one Bucket both arrive.
|
|
9
|
+
*
|
|
10
|
+
* The Bucket is made to depend on the permission, because S3 refuses a
|
|
11
|
+
* destination it may not invoke and nothing else orders the two.
|
|
12
|
+
*/
|
|
13
|
+
export function samS3NotifiedBucket(resource, notified) {
|
|
14
|
+
const properties = samRecordAt(resource, "Properties");
|
|
15
|
+
const configuration = declaredConfiguration(properties, notified);
|
|
16
|
+
return {
|
|
17
|
+
...resource,
|
|
18
|
+
DependsOn: [
|
|
19
|
+
...dependencies(resource["DependsOn"]),
|
|
20
|
+
notified.permissionLogicalId,
|
|
21
|
+
],
|
|
22
|
+
Properties: {
|
|
23
|
+
...properties,
|
|
24
|
+
NotificationConfiguration: {
|
|
25
|
+
...configuration,
|
|
26
|
+
LambdaConfigurations: [
|
|
27
|
+
...declaredLambdaConfigurations(configuration, notified),
|
|
28
|
+
...notified.configurations,
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The `NotificationConfiguration` the Bucket already carries.
|
|
36
|
+
*
|
|
37
|
+
* A Bucket writing it as an intrinsic is refused rather than expanded. The
|
|
38
|
+
* event's own configurations would go on the Bucket and everything the
|
|
39
|
+
* intrinsic resolved to would be dropped, which is a Bucket that quietly stops
|
|
40
|
+
* notifying whatever it used to.
|
|
41
|
+
*/
|
|
42
|
+
function declaredConfiguration(properties, notified) {
|
|
43
|
+
const declared = properties["NotificationConfiguration"];
|
|
44
|
+
if (declared !== undefined && !isSamTemplateRecord(declared)) {
|
|
45
|
+
throw notificationError(notified, "NotificationConfiguration");
|
|
46
|
+
}
|
|
47
|
+
return samRecordAt(properties, "NotificationConfiguration");
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The `LambdaConfigurations` the Bucket already carries, refusing one an event
|
|
51
|
+
* cannot be added to.
|
|
52
|
+
*
|
|
53
|
+
* CloudFormation has no way to append to a list it has not resolved yet, so a
|
|
54
|
+
* list written as an intrinsic is the end of it.
|
|
55
|
+
*/
|
|
56
|
+
function declaredLambdaConfigurations(configuration, notified) {
|
|
57
|
+
const declared = configuration["LambdaConfigurations"];
|
|
58
|
+
if (declared !== undefined && !Array.isArray(declared)) {
|
|
59
|
+
throw notificationError(notified, "LambdaConfigurations");
|
|
60
|
+
}
|
|
61
|
+
return samValueList(declared);
|
|
62
|
+
}
|
|
63
|
+
function notificationError(notified, propertyName) {
|
|
64
|
+
return s3BucketNotificationError(notified.bucketLogicalId, `${propertyName} is written as an intrinsic, and an S3 event on a SAM ` +
|
|
65
|
+
"function has no way to add to one CloudFormation has not resolved " +
|
|
66
|
+
"yet. Declare the notification the event asks for on the Bucket " +
|
|
67
|
+
"instead of stating the event");
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The `DependsOn` a Resource carries as a list, since CloudFormation takes a
|
|
71
|
+
* single logical ID in place of one.
|
|
72
|
+
*/
|
|
73
|
+
function dependencies(dependsOn) {
|
|
74
|
+
return typeof dependsOn === "string" ? [dependsOn] : samValueList(dependsOn);
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=sim-cfn-sam-s3-notified-bucket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-s3-notified-bucket.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-s3-notified-bucket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4DAA4D,CAAC;AAKvG,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,YAAY,GACb,MAAM,6BAA6B,CAAC;AAWrC;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CACjC,QAAmC,EACnC,QAAuC;IAEvC,MAAM,UAAU,GAAG,WAAW,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IACvD,MAAM,aAAa,GAAG,qBAAqB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAElE,OAAO;QACL,GAAG,QAAQ;QACX,SAAS,EAAE;YACT,GAAG,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;YACtC,QAAQ,CAAC,mBAAmB;SAC7B;QACD,UAAU,EAAE;YACV,GAAG,UAAU;YACb,yBAAyB,EAAE;gBACzB,GAAG,aAAa;gBAChB,oBAAoB,EAAE;oBACpB,GAAG,4BAA4B,CAAC,aAAa,EAAE,QAAQ,CAAC;oBACxD,GAAG,QAAQ,CAAC,cAAc;iBAC3B;aACF;SACF;KACF,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,qBAAqB,CAC5B,UAAqC,EACrC,QAAuC;IAEvC,MAAM,QAAQ,GAAG,UAAU,CAAC,2BAA2B,CAAC,CAAC;IAEzD,IAAI,QAAQ,KAAK,SAAS,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7D,MAAM,iBAAiB,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,WAAW,CAAC,UAAU,EAAE,2BAA2B,CAAC,CAAC;AAC9D,CAAC;AAED;;;;;;GAMG;AACH,SAAS,4BAA4B,CACnC,aAAwC,EACxC,QAAuC;IAEvC,MAAM,QAAQ,GAAG,aAAa,CAAC,sBAAsB,CAAC,CAAC;IAEvD,IAAI,QAAQ,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QACvD,MAAM,iBAAiB,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,iBAAiB,CACxB,QAAuC,EACvC,YAAoB;IAEpB,OAAO,yBAAyB,CAC9B,QAAQ,CAAC,eAAe,EACxB,GAAG,YAAY,wDAAwD;QACrE,oEAAoE;QACpE,iEAAiE;QACjE,8BAA8B,CACjC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,YAAY,CACnB,SAA0C;IAE1C,OAAO,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 `Schedule` event into the rule that fires the function on a
|
|
5
|
+
* timer.
|
|
6
|
+
*
|
|
7
|
+
* The event's `Schedule` is the rule's `ScheduleExpression`, which is the
|
|
8
|
+
* whole of what a `Schedule` event says beyond what every rule event says. A
|
|
9
|
+
* rate or cron expression the rule refuses is refused by the rule, naming
|
|
10
|
+
* itself, rather than being read here.
|
|
11
|
+
*
|
|
12
|
+
* An event stating no `Schedule` expands into a rule with nothing to fire it,
|
|
13
|
+
* which the rule then refuses. A schedule guessed for an event that named none
|
|
14
|
+
* would be a function firing on a timer nobody asked for.
|
|
15
|
+
*/
|
|
16
|
+
export declare function samScheduleEventResources(event: SamFunctionEvent): Record<string, SimCfnTemplateValue>;
|
|
17
|
+
//# sourceMappingURL=sim-cfn-sam-schedule-event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-schedule-event.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAE7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,gBAAgB,GACtB,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAOrC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { samEventRuleResources } from "./sim-cfn-sam-event-rule.js";
|
|
2
|
+
/**
|
|
3
|
+
* Expand one `Schedule` event into the rule that fires the function on a
|
|
4
|
+
* timer.
|
|
5
|
+
*
|
|
6
|
+
* The event's `Schedule` is the rule's `ScheduleExpression`, which is the
|
|
7
|
+
* whole of what a `Schedule` event says beyond what every rule event says. A
|
|
8
|
+
* rate or cron expression the rule refuses is refused by the rule, naming
|
|
9
|
+
* itself, rather than being read here.
|
|
10
|
+
*
|
|
11
|
+
* An event stating no `Schedule` expands into a rule with nothing to fire it,
|
|
12
|
+
* which the rule then refuses. A schedule guessed for an event that named none
|
|
13
|
+
* would be a function firing on a timer nobody asked for.
|
|
14
|
+
*/
|
|
15
|
+
export function samScheduleEventResources(event) {
|
|
16
|
+
const expression = event.properties["Schedule"];
|
|
17
|
+
return samEventRuleResources({
|
|
18
|
+
event,
|
|
19
|
+
trigger: expression === undefined ? {} : { ScheduleExpression: expression },
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=sim-cfn-sam-schedule-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-schedule-event.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAGpE;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,yBAAyB,CACvC,KAAuB;IAEvB,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IAEhD,OAAO,qBAAqB,CAAC;QAC3B,KAAK;QACL,OAAO,EAAE,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,UAAU,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 `ScheduleV2` event into the EventBridge Scheduler schedule that
|
|
5
|
+
* invokes the function.
|
|
6
|
+
*
|
|
7
|
+
* This is the other way to put a function on a timer, and it expands into an
|
|
8
|
+
* `AWS::Scheduler::Schedule` rather than a rule. The difference that shows is
|
|
9
|
+
* how the invocation is authorized. A schedule assumes an execution role and
|
|
10
|
+
* invokes as that role, where a rule arrives as a service principal and the
|
|
11
|
+
* function's resource policy decides. So this expands a Role rather than a
|
|
12
|
+
* permission, unless the event named a `RoleArn` of its own to run as.
|
|
13
|
+
*/
|
|
14
|
+
export declare function samScheduleV2EventResources(event: SamFunctionEvent): Record<string, SimCfnTemplateValue>;
|
|
15
|
+
//# sourceMappingURL=sim-cfn-sam-schedule-v2-event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-schedule-v2-event.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,mDAAmD,CAAC;AAG3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAsBzE;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,gBAAgB,GACtB,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAyBrC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { samPickedProperties } from "../../sim-cfn-sam-picked.js";
|
|
2
|
+
import { samEventStateProperty } from "./sim-cfn-sam-event-state.js";
|
|
3
|
+
/**
|
|
4
|
+
* The properties an event and a schedule name the same thing, so expanding
|
|
5
|
+
* them is carrying them across.
|
|
6
|
+
*/
|
|
7
|
+
const carriedProperties = new Set([
|
|
8
|
+
"Description",
|
|
9
|
+
"EndDate",
|
|
10
|
+
"GroupName",
|
|
11
|
+
"KmsKeyArn",
|
|
12
|
+
"Name",
|
|
13
|
+
"ScheduleExpression",
|
|
14
|
+
"ScheduleExpressionTimezone",
|
|
15
|
+
"StartDate",
|
|
16
|
+
]);
|
|
17
|
+
/**
|
|
18
|
+
* The time window AWS requires on a schedule, for an event stating none.
|
|
19
|
+
*/
|
|
20
|
+
const fixedTimeWindow = { Mode: "OFF" };
|
|
21
|
+
/**
|
|
22
|
+
* Expand one `ScheduleV2` event into the EventBridge Scheduler schedule that
|
|
23
|
+
* invokes the function.
|
|
24
|
+
*
|
|
25
|
+
* This is the other way to put a function on a timer, and it expands into an
|
|
26
|
+
* `AWS::Scheduler::Schedule` rather than a rule. The difference that shows is
|
|
27
|
+
* how the invocation is authorized. A schedule assumes an execution role and
|
|
28
|
+
* invokes as that role, where a rule arrives as a service principal and the
|
|
29
|
+
* function's resource policy decides. So this expands a Role rather than a
|
|
30
|
+
* permission, unless the event named a `RoleArn` of its own to run as.
|
|
31
|
+
*/
|
|
32
|
+
export function samScheduleV2EventResources(event) {
|
|
33
|
+
const prefix = `${event.functionLogicalId}${event.eventName}`;
|
|
34
|
+
const roleLogicalId = `${prefix}ScheduleRole`;
|
|
35
|
+
const declaredRoleArn = event.properties["RoleArn"];
|
|
36
|
+
return {
|
|
37
|
+
[`${prefix}Schedule`]: {
|
|
38
|
+
Type: "AWS::Scheduler::Schedule",
|
|
39
|
+
...event.condition,
|
|
40
|
+
Properties: {
|
|
41
|
+
...samPickedProperties(event.properties, carriedProperties),
|
|
42
|
+
...samEventStateProperty(event.properties),
|
|
43
|
+
FlexibleTimeWindow: event.properties["FlexibleTimeWindow"] ?? fixedTimeWindow,
|
|
44
|
+
Target: {
|
|
45
|
+
Arn: { "Fn::GetAtt": [event.functionLogicalId, "Arn"] },
|
|
46
|
+
RoleArn: declaredRoleArn ?? { "Fn::GetAtt": [roleLogicalId, "Arn"] },
|
|
47
|
+
...samPickedProperties(event.properties, new Set(["Input"])),
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
...(declaredRoleArn === undefined && {
|
|
52
|
+
[roleLogicalId]: samScheduleV2RoleResource(event, prefix),
|
|
53
|
+
}),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The AWS::IAM::Role the schedule invokes the function as.
|
|
58
|
+
*
|
|
59
|
+
* Scheduler assumes this role for every invocation, so it trusts the Scheduler
|
|
60
|
+
* service principal and may invoke the one function the event was declared on.
|
|
61
|
+
* A role granting `lambda:InvokeFunction` on everything would be the same
|
|
62
|
+
* schedule with a wider grant than the event asked for.
|
|
63
|
+
*/
|
|
64
|
+
function samScheduleV2RoleResource(event, prefix) {
|
|
65
|
+
return {
|
|
66
|
+
Type: "AWS::IAM::Role",
|
|
67
|
+
...event.condition,
|
|
68
|
+
Properties: {
|
|
69
|
+
AssumeRolePolicyDocument: {
|
|
70
|
+
Version: "2012-10-17",
|
|
71
|
+
Statement: [
|
|
72
|
+
{
|
|
73
|
+
Effect: "Allow",
|
|
74
|
+
Principal: { Service: "scheduler.amazonaws.com" },
|
|
75
|
+
Action: "sts:AssumeRole",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
Policies: [
|
|
80
|
+
{
|
|
81
|
+
PolicyName: `${prefix}ScheduleRolePolicy`,
|
|
82
|
+
PolicyDocument: {
|
|
83
|
+
Version: "2012-10-17",
|
|
84
|
+
Statement: [
|
|
85
|
+
{
|
|
86
|
+
Effect: "Allow",
|
|
87
|
+
Action: "lambda:InvokeFunction",
|
|
88
|
+
Resource: { "Fn::GetAtt": [event.functionLogicalId, "Arn"] },
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=sim-cfn-sam-schedule-v2-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-schedule-v2-event.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-schedule-v2-event.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAGrE;;;GAGG;AACH,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,aAAa;IACb,SAAS;IACT,WAAW;IACX,WAAW;IACX,MAAM;IACN,oBAAoB;IACpB,4BAA4B;IAC5B,WAAW;CACZ,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,eAAe,GAA8B,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAEnE;;;;;;;;;;GAUG;AACH,MAAM,UAAU,2BAA2B,CACzC,KAAuB;IAEvB,MAAM,MAAM,GAAG,GAAG,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;IAC9D,MAAM,aAAa,GAAG,GAAG,MAAM,cAAc,CAAC;IAC9C,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAEpD,OAAO;QACL,CAAC,GAAG,MAAM,UAAU,CAAC,EAAE;YACrB,IAAI,EAAE,0BAA0B;YAChC,GAAG,KAAK,CAAC,SAAS;YAClB,UAAU,EAAE;gBACV,GAAG,mBAAmB,CAAC,KAAK,CAAC,UAAU,EAAE,iBAAiB,CAAC;gBAC3D,GAAG,qBAAqB,CAAC,KAAK,CAAC,UAAU,CAAC;gBAC1C,kBAAkB,EAChB,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,eAAe;gBAC3D,MAAM,EAAE;oBACN,GAAG,EAAE,EAAE,YAAY,EAAE,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,CAAC,EAAE;oBACvD,OAAO,EAAE,eAAe,IAAI,EAAE,YAAY,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,EAAE;oBACpE,GAAG,mBAAmB,CAAC,KAAK,CAAC,UAAU,EAAE,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;iBAC7D;aACF;SACF;QACD,GAAG,CAAC,eAAe,KAAK,SAAS,IAAI;YACnC,CAAC,aAAa,CAAC,EAAE,yBAAyB,CAAC,KAAK,EAAE,MAAM,CAAC;SAC1D,CAAC;KACH,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,yBAAyB,CAChC,KAAuB,EACvB,MAAc;IAEd,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,GAAG,KAAK,CAAC,SAAS;QAClB,UAAU,EAAE;YACV,wBAAwB,EAAE;gBACxB,OAAO,EAAE,YAAY;gBACrB,SAAS,EAAE;oBACT;wBACE,MAAM,EAAE,OAAO;wBACf,SAAS,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE;wBACjD,MAAM,EAAE,gBAAgB;qBACzB;iBACF;aACF;YACD,QAAQ,EAAE;gBACR;oBACE,UAAU,EAAE,GAAG,MAAM,oBAAoB;oBACzC,cAAc,EAAE;wBACd,OAAO,EAAE,YAAY;wBACrB,SAAS,EAAE;4BACT;gCACE,MAAM,EAAE,OAAO;gCACf,MAAM,EAAE,uBAAuB;gCAC/B,QAAQ,EAAE,EAAE,YAAY,EAAE,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,CAAC,EAAE;6BAC7D;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 `SNS` event into the subscription that delivers the topic's
|
|
5
|
+
* messages to the function.
|
|
6
|
+
*
|
|
7
|
+
* The subscription is the function itself rather than a queue in front of it,
|
|
8
|
+
* so the protocol is `lambda` and the endpoint is the function's ARN. SNS
|
|
9
|
+
* consults the function's resource policy on every delivery, so the permission
|
|
10
|
+
* admitting SNS comes with it. Without one the topic has a subscription it
|
|
11
|
+
* cannot deliver to.
|
|
12
|
+
*
|
|
13
|
+
* Everything the event states beside `Topic` goes onto the subscription under
|
|
14
|
+
* the name it already carries, which is how `FilterPolicy` and its scope
|
|
15
|
+
* arrive. `SqsSubscription`, which asks for a queue between the two, is not a
|
|
16
|
+
* subscription property and is refused by the subscription rather than
|
|
17
|
+
* silently deploying the direct delivery the event did not ask for.
|
|
18
|
+
*
|
|
19
|
+
* An event naming no topic expands into nothing, the way a mapping with no
|
|
20
|
+
* source does.
|
|
21
|
+
*/
|
|
22
|
+
export declare function samSnsEventResources(event: SamFunctionEvent): Record<string, SimCfnTemplateValue>;
|
|
23
|
+
//# sourceMappingURL=sim-cfn-sam-sns-event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-sns-event.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,mDAAmD,CAAC;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,gBAAgB,GACtB,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAarC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { samRecordWithout } from "../../sim-cfn-sam-record.js";
|
|
2
|
+
/**
|
|
3
|
+
* Expand one `SNS` event into the subscription that delivers the topic's
|
|
4
|
+
* messages to the function.
|
|
5
|
+
*
|
|
6
|
+
* The subscription is the function itself rather than a queue in front of it,
|
|
7
|
+
* so the protocol is `lambda` and the endpoint is the function's ARN. SNS
|
|
8
|
+
* consults the function's resource policy on every delivery, so the permission
|
|
9
|
+
* admitting SNS comes with it. Without one the topic has a subscription it
|
|
10
|
+
* cannot deliver to.
|
|
11
|
+
*
|
|
12
|
+
* Everything the event states beside `Topic` goes onto the subscription under
|
|
13
|
+
* the name it already carries, which is how `FilterPolicy` and its scope
|
|
14
|
+
* arrive. `SqsSubscription`, which asks for a queue between the two, is not a
|
|
15
|
+
* subscription property and is refused by the subscription rather than
|
|
16
|
+
* silently deploying the direct delivery the event did not ask for.
|
|
17
|
+
*
|
|
18
|
+
* An event naming no topic expands into nothing, the way a mapping with no
|
|
19
|
+
* source does.
|
|
20
|
+
*/
|
|
21
|
+
export function samSnsEventResources(event) {
|
|
22
|
+
const topic = event.properties["Topic"];
|
|
23
|
+
if (topic === undefined) {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
const prefix = `${event.functionLogicalId}${event.eventName}Sns`;
|
|
27
|
+
return {
|
|
28
|
+
[`${prefix}Subscription`]: subscriptionResource(event, topic),
|
|
29
|
+
[`${prefix}Permission`]: permissionResource(event, topic),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function subscriptionResource(event, topic) {
|
|
33
|
+
return {
|
|
34
|
+
Type: "AWS::SNS::Subscription",
|
|
35
|
+
...event.condition,
|
|
36
|
+
Properties: {
|
|
37
|
+
...samRecordWithout(event.properties, "Topic"),
|
|
38
|
+
TopicArn: topic,
|
|
39
|
+
Protocol: "lambda",
|
|
40
|
+
Endpoint: { "Fn::GetAtt": [event.functionLogicalId, "Arn"] },
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The AWS::Lambda::Permission the topic invokes the function under, granted
|
|
46
|
+
* for that topic alone.
|
|
47
|
+
*/
|
|
48
|
+
function permissionResource(event, topic) {
|
|
49
|
+
return {
|
|
50
|
+
Type: "AWS::Lambda::Permission",
|
|
51
|
+
...event.condition,
|
|
52
|
+
Properties: {
|
|
53
|
+
Action: "lambda:InvokeFunction",
|
|
54
|
+
FunctionName: { "Fn::GetAtt": [event.functionLogicalId, "Arn"] },
|
|
55
|
+
Principal: "sns.amazonaws.com",
|
|
56
|
+
SourceArn: topic,
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=sim-cfn-sam-sns-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-sns-event.js","sourceRoot":"","sources":["../../../../../../src/service/cloudformation/sam/function/event/sim-cfn-sam-sns-event.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,oBAAoB,CAClC,KAAuB;IAEvB,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAExC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,MAAM,GAAG,GAAG,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,SAAS,KAAK,CAAC;IAEjE,OAAO;QACL,CAAC,GAAG,MAAM,cAAc,CAAC,EAAE,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC;QAC7D,CAAC,GAAG,MAAM,YAAY,CAAC,EAAE,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC;KAC1D,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAC3B,KAAuB,EACvB,KAA0B;IAE1B,OAAO;QACL,IAAI,EAAE,wBAAwB;QAC9B,GAAG,KAAK,CAAC,SAAS;QAClB,UAAU,EAAE;YACV,GAAG,gBAAgB,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC;YAC9C,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,EAAE,YAAY,EAAE,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,CAAC,EAAE;SAC7D;KACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,kBAAkB,CACzB,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,mBAAmB;YAC9B,SAAS,EAAE,KAAK;SACjB;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue, SimCfnTemplateValueRecord } from "../../template/value/sim-cfn-template-value.js";
|
|
2
|
+
/**
|
|
3
|
+
* The trust policy the Role carries, which lets Lambda assume it.
|
|
4
|
+
*/
|
|
5
|
+
export declare const lambdaAssumeRolePolicyDocument: SimCfnTemplateValueRecord;
|
|
6
|
+
/**
|
|
7
|
+
* The managed policy SAM attaches to every function Role it generates.
|
|
8
|
+
*/
|
|
9
|
+
export declare const basicExecutionPolicyArn: SimCfnTemplateValueRecord;
|
|
10
|
+
/**
|
|
11
|
+
* What the `Policies` of a SAM function say about the Role it is expanded
|
|
12
|
+
* with.
|
|
13
|
+
*/
|
|
14
|
+
export interface SamFunctionPolicies {
|
|
15
|
+
/** Policy documents, named the way SAM names them. */
|
|
16
|
+
readonly inlinePolicies: readonly SimCfnTemplateValueRecord[];
|
|
17
|
+
/** Managed policy ARNs the Role attaches. */
|
|
18
|
+
readonly managedPolicyArns: readonly string[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Read the `Policies` of a SAM function into the two lists an AWS::IAM::Role
|
|
22
|
+
* carries.
|
|
23
|
+
*
|
|
24
|
+
* `Policies` holds one entry or a list of them, and an entry is a policy
|
|
25
|
+
* document, a managed policy ARN, or a SAM policy template naming permissions
|
|
26
|
+
* to generate. The templates are not expanded here. There are around a hundred
|
|
27
|
+
* of them, and the default `SimIamAllowAllAuth` means a Role missing their
|
|
28
|
+
* statements authorizes the same calls either way.
|
|
29
|
+
*/
|
|
30
|
+
export declare function samFunctionPolicies(logicalId: string, policies: SimCfnTemplateValue | undefined): SamFunctionPolicies;
|
|
31
|
+
//# sourceMappingURL=sim-cfn-sam-function-policies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-function-policies.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/sam/function/sim-cfn-sam-function-policies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,gDAAgD,CAAC;AAGxD;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,yBAS5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,yBASrC,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,sDAAsD;IACtD,QAAQ,CAAC,cAAc,EAAE,SAAS,yBAAyB,EAAE,CAAC;IAC9D,6CAA6C;IAC7C,QAAQ,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/C;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,mBAAmB,GAAG,SAAS,GACxC,mBAAmB,CAYrB"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { isSamTemplateRecord } from "../sim-cfn-sam-record.js";
|
|
2
|
+
/**
|
|
3
|
+
* The trust policy the Role carries, which lets Lambda assume it.
|
|
4
|
+
*/
|
|
5
|
+
export const lambdaAssumeRolePolicyDocument = {
|
|
6
|
+
Version: "2012-10-17",
|
|
7
|
+
Statement: [
|
|
8
|
+
{
|
|
9
|
+
Effect: "Allow",
|
|
10
|
+
Principal: { Service: "lambda.amazonaws.com" },
|
|
11
|
+
Action: "sts:AssumeRole",
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The managed policy SAM attaches to every function Role it generates.
|
|
17
|
+
*/
|
|
18
|
+
export const basicExecutionPolicyArn = {
|
|
19
|
+
"Fn::Join": [
|
|
20
|
+
"",
|
|
21
|
+
[
|
|
22
|
+
"arn:",
|
|
23
|
+
{ Ref: "AWS::Partition" },
|
|
24
|
+
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole",
|
|
25
|
+
],
|
|
26
|
+
],
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Read the `Policies` of a SAM function into the two lists an AWS::IAM::Role
|
|
30
|
+
* carries.
|
|
31
|
+
*
|
|
32
|
+
* `Policies` holds one entry or a list of them, and an entry is a policy
|
|
33
|
+
* document, a managed policy ARN, or a SAM policy template naming permissions
|
|
34
|
+
* to generate. The templates are not expanded here. There are around a hundred
|
|
35
|
+
* of them, and the default `SimIamAllowAllAuth` means a Role missing their
|
|
36
|
+
* statements authorizes the same calls either way.
|
|
37
|
+
*/
|
|
38
|
+
export function samFunctionPolicies(logicalId, policies) {
|
|
39
|
+
const entries = policyEntries(policies);
|
|
40
|
+
return {
|
|
41
|
+
inlinePolicies: entries
|
|
42
|
+
.filter((entry) => isPolicyDocument(entry))
|
|
43
|
+
.map((document, index) => ({
|
|
44
|
+
PolicyName: `${logicalId}RolePolicy${String(index)}`,
|
|
45
|
+
PolicyDocument: document,
|
|
46
|
+
})),
|
|
47
|
+
managedPolicyArns: entries.filter((entry) => isManagedPolicyArn(entry)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The `Policies` property as a list, since SAM accepts a single entry in place
|
|
52
|
+
* of one.
|
|
53
|
+
*/
|
|
54
|
+
function policyEntries(policies) {
|
|
55
|
+
if (policies === undefined) {
|
|
56
|
+
return [];
|
|
57
|
+
}
|
|
58
|
+
return Array.isArray(policies) ? policies : [policies];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Whether an entry is a policy document. A policy template is an object of one
|
|
62
|
+
* key naming the template.
|
|
63
|
+
*/
|
|
64
|
+
function isPolicyDocument(entry) {
|
|
65
|
+
return isSamTemplateRecord(entry) && "Statement" in entry;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Whether an entry is a managed policy ARN. A policy template arrives as a
|
|
69
|
+
* bare name.
|
|
70
|
+
*/
|
|
71
|
+
function isManagedPolicyArn(entry) {
|
|
72
|
+
return typeof entry === "string" && entry.startsWith("arn:");
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=sim-cfn-sam-function-policies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-function-policies.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/sam/function/sim-cfn-sam-function-policies.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAA8B;IACvE,OAAO,EAAE,YAAY;IACrB,SAAS,EAAE;QACT;YACE,MAAM,EAAE,OAAO;YACf,SAAS,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;YAC9C,MAAM,EAAE,gBAAgB;SACzB;KACF;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAA8B;IAChE,UAAU,EAAE;QACV,EAAE;QACF;YACE,MAAM;YACN,EAAE,GAAG,EAAE,gBAAgB,EAAE;YACzB,2DAA2D;SAC5D;KACF;CACF,CAAC;AAaF;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CACjC,SAAiB,EACjB,QAAyC;IAEzC,MAAM,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;IAExC,OAAO;QACL,cAAc,EAAE,OAAO;aACpB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;aAC1C,GAAG,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;YACzB,UAAU,EAAE,GAAG,SAAS,aAAa,MAAM,CAAC,KAAK,CAAC,EAAE;YACpD,cAAc,EAAE,QAAQ;SACzB,CAAC,CAAC;QACL,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;KACxE,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,aAAa,CACpB,QAAyC;IAEzC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AACzD,CAAC;AAED;;;GAGG;AACH,SAAS,gBAAgB,CACvB,KAA0B;IAE1B,OAAO,mBAAmB,CAAC,KAAK,CAAC,IAAI,WAAW,IAAI,KAAK,CAAC;AAC5D,CAAC;AAED;;;GAGG;AACH,SAAS,kBAAkB,CAAC,KAA0B;IACpD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue, SimCfnTemplateValueRecord } from "../../template/value/sim-cfn-template-value.js";
|
|
2
|
+
/**
|
|
3
|
+
* The `Properties` of the SAM Resource. A function taking everything it has
|
|
4
|
+
* from `Globals` can leave the section out.
|
|
5
|
+
*/
|
|
6
|
+
export declare function samResourceProperties(resource: SimCfnTemplateValueRecord): SimCfnTemplateValueRecord;
|
|
7
|
+
/**
|
|
8
|
+
* The Resource attributes the expanded Lambda function carries.
|
|
9
|
+
*/
|
|
10
|
+
export declare function samCarriedAttributes(resource: SimCfnTemplateValueRecord): SimCfnTemplateValueRecord;
|
|
11
|
+
/**
|
|
12
|
+
* The `Condition` attribute a Resource expanded beside the function carries.
|
|
13
|
+
*
|
|
14
|
+
* Everything the function was expanded with exists because the function does,
|
|
15
|
+
* so a function the template conditioned out leaves none of them behind for
|
|
16
|
+
* the Stack to create.
|
|
17
|
+
*/
|
|
18
|
+
export declare function samConditionAttribute(condition: SimCfnTemplateValue | undefined): SimCfnTemplateValueRecord;
|
|
19
|
+
/**
|
|
20
|
+
* The properties the expanded Lambda function carries, from the SAM function
|
|
21
|
+
* properties the `Globals` defaults have already been merged into.
|
|
22
|
+
*/
|
|
23
|
+
export declare function samCarriedProperties(functionProperties: SimCfnTemplateValueRecord): SimCfnTemplateValueRecord;
|
|
24
|
+
//# sourceMappingURL=sim-cfn-sam-function-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-function-properties.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/sam/function/sim-cfn-sam-function-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,gDAAgD,CAAC;AAuBxD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,yBAAyB,GAClC,yBAAyB,CAI3B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,yBAAyB,GAClC,yBAAyB,CAE3B;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,mBAAmB,GAAG,SAAS,GACzC,yBAAyB,CAE3B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,kBAAkB,EAAE,yBAAyB,GAC5C,yBAAyB,CAK3B"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { isSamTemplateRecord } from "../sim-cfn-sam-record.js";
|
|
2
|
+
/**
|
|
3
|
+
* The Resource attributes the Lambda function carries over. They are the ones
|
|
4
|
+
* saying whether it is created at all and what has to exist first.
|
|
5
|
+
*/
|
|
6
|
+
const attributeNames = new Set(["Condition", "DependsOn"]);
|
|
7
|
+
/**
|
|
8
|
+
* The properties whose names and meanings are the same on both Resource types,
|
|
9
|
+
* so expanding them is carrying them across.
|
|
10
|
+
*/
|
|
11
|
+
const propertyNames = new Set([
|
|
12
|
+
"Description",
|
|
13
|
+
"Environment",
|
|
14
|
+
"FunctionName",
|
|
15
|
+
"Handler",
|
|
16
|
+
"MemorySize",
|
|
17
|
+
"Runtime",
|
|
18
|
+
"Timeout",
|
|
19
|
+
]);
|
|
20
|
+
/**
|
|
21
|
+
* The `Properties` of the SAM Resource. A function taking everything it has
|
|
22
|
+
* from `Globals` can leave the section out.
|
|
23
|
+
*/
|
|
24
|
+
export function samResourceProperties(resource) {
|
|
25
|
+
const properties = resource["Properties"];
|
|
26
|
+
return isSamTemplateRecord(properties) ? properties : {};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The Resource attributes the expanded Lambda function carries.
|
|
30
|
+
*/
|
|
31
|
+
export function samCarriedAttributes(resource) {
|
|
32
|
+
return picked(resource, attributeNames);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The `Condition` attribute a Resource expanded beside the function carries.
|
|
36
|
+
*
|
|
37
|
+
* Everything the function was expanded with exists because the function does,
|
|
38
|
+
* so a function the template conditioned out leaves none of them behind for
|
|
39
|
+
* the Stack to create.
|
|
40
|
+
*/
|
|
41
|
+
export function samConditionAttribute(condition) {
|
|
42
|
+
return condition === undefined ? {} : { Condition: condition };
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The properties the expanded Lambda function carries, from the SAM function
|
|
46
|
+
* properties the `Globals` defaults have already been merged into.
|
|
47
|
+
*/
|
|
48
|
+
export function samCarriedProperties(functionProperties) {
|
|
49
|
+
return {
|
|
50
|
+
...picked(functionProperties, propertyNames),
|
|
51
|
+
...inlineCode(functionProperties),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The `Code` of a function whose source the template holds inline.
|
|
56
|
+
*/
|
|
57
|
+
function inlineCode(functionProperties) {
|
|
58
|
+
const source = functionProperties["InlineCode"];
|
|
59
|
+
return typeof source === "string" ? { Code: { ZipFile: source } } : {};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The entries of a record whose keys are in the given set.
|
|
63
|
+
*/
|
|
64
|
+
function picked(record, names) {
|
|
65
|
+
return Object.fromEntries(Object.entries(record).filter(([name]) => names.has(name)));
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=sim-cfn-sam-function-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-function-properties.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/sam/function/sim-cfn-sam-function-properties.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;GAGG;AACH,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;AAE3D;;;GAGG;AACH,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC;IAC5B,aAAa;IACb,aAAa;IACb,cAAc;IACd,SAAS;IACT,YAAY;IACZ,SAAS;IACT,SAAS;CACV,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CACnC,QAAmC;IAEnC,MAAM,UAAU,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;IAE1C,OAAO,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAClC,QAAmC;IAEnC,OAAO,MAAM,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;AAC1C,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CACnC,SAA0C;IAE1C,OAAO,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACjE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAClC,kBAA6C;IAE7C,OAAO;QACL,GAAG,MAAM,CAAC,kBAAkB,EAAE,aAAa,CAAC;QAC5C,GAAG,UAAU,CAAC,kBAAkB,CAAC;KAClC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,UAAU,CACjB,kBAA6C;IAE7C,MAAM,MAAM,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAEhD,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACzE,CAAC;AAED;;GAEG;AACH,SAAS,MAAM,CACb,MAAiC,EACjC,KAA0B;IAE1B,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAC3D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SimCfnTemplateValue, SimCfnTemplateValueRecord } from "../../template/value/sim-cfn-template-value.js";
|
|
2
|
+
interface SamFunctionRoleProperties {
|
|
3
|
+
readonly logicalId: string;
|
|
4
|
+
readonly functionProperties: SimCfnTemplateValueRecord;
|
|
5
|
+
readonly condition: SimCfnTemplateValue | undefined;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The AWS::IAM::Role Resource a SAM function is expanded with, for a function
|
|
9
|
+
* that named no Role of its own.
|
|
10
|
+
*
|
|
11
|
+
* Every SAM function gets the basic execution policy, as SAM gives one, and
|
|
12
|
+
* whatever its `Policies` said on top. The Role is conditioned the way the
|
|
13
|
+
* function is. A function the template conditioned out leaves no Role behind
|
|
14
|
+
* for the Stack to create.
|
|
15
|
+
*/
|
|
16
|
+
export declare function samFunctionRoleResource(properties: SamFunctionRoleProperties): SimCfnTemplateValueRecord;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=sim-cfn-sam-function-role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-function-role.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudformation/sam/function/sim-cfn-sam-function-role.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,gDAAgD,CAAC;AAQxD,UAAU,yBAAyB;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,kBAAkB,EAAE,yBAAyB,CAAC;IACvD,QAAQ,CAAC,SAAS,EAAE,mBAAmB,GAAG,SAAS,CAAC;CACrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,yBAAyB,GACpC,yBAAyB,CAmB3B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { samConditionAttribute } from "./sim-cfn-sam-function-properties.js";
|
|
2
|
+
import { basicExecutionPolicyArn, lambdaAssumeRolePolicyDocument, samFunctionPolicies, } from "./sim-cfn-sam-function-policies.js";
|
|
3
|
+
/**
|
|
4
|
+
* The AWS::IAM::Role Resource a SAM function is expanded with, for a function
|
|
5
|
+
* that named no Role of its own.
|
|
6
|
+
*
|
|
7
|
+
* Every SAM function gets the basic execution policy, as SAM gives one, and
|
|
8
|
+
* whatever its `Policies` said on top. The Role is conditioned the way the
|
|
9
|
+
* function is. A function the template conditioned out leaves no Role behind
|
|
10
|
+
* for the Stack to create.
|
|
11
|
+
*/
|
|
12
|
+
export function samFunctionRoleResource(properties) {
|
|
13
|
+
const { logicalId, functionProperties, condition } = properties;
|
|
14
|
+
const policies = samFunctionPolicies(logicalId, functionProperties["Policies"]);
|
|
15
|
+
return {
|
|
16
|
+
Type: "AWS::IAM::Role",
|
|
17
|
+
...samConditionAttribute(condition),
|
|
18
|
+
Properties: {
|
|
19
|
+
AssumeRolePolicyDocument: lambdaAssumeRolePolicyDocument,
|
|
20
|
+
ManagedPolicyArns: [
|
|
21
|
+
basicExecutionPolicyArn,
|
|
22
|
+
...policies.managedPolicyArns,
|
|
23
|
+
],
|
|
24
|
+
...inlinePolicies(policies.inlinePolicies),
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The `Policies` property the Role carries, where the function stated policy
|
|
30
|
+
* documents to put there.
|
|
31
|
+
*/
|
|
32
|
+
function inlinePolicies(policies) {
|
|
33
|
+
return policies.length > 0 ? { Policies: [...policies] } : {};
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=sim-cfn-sam-function-role.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-sam-function-role.js","sourceRoot":"","sources":["../../../../../src/service/cloudformation/sam/function/sim-cfn-sam-function-role.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,uBAAuB,EACvB,8BAA8B,EAC9B,mBAAmB,GACpB,MAAM,oCAAoC,CAAC;AAQ5C;;;;;;;;GAQG;AACH,MAAM,UAAU,uBAAuB,CACrC,UAAqC;IAErC,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,SAAS,EAAE,GAAG,UAAU,CAAC;IAChE,MAAM,QAAQ,GAAG,mBAAmB,CAClC,SAAS,EACT,kBAAkB,CAAC,UAAU,CAAC,CAC/B,CAAC;IAEF,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,GAAG,qBAAqB,CAAC,SAAS,CAAC;QACnC,UAAU,EAAE;YACV,wBAAwB,EAAE,8BAA8B;YACxD,iBAAiB,EAAE;gBACjB,uBAAuB;gBACvB,GAAG,QAAQ,CAAC,iBAAiB;aAC9B;YACD,GAAG,cAAc,CAAC,QAAQ,CAAC,cAAc,CAAC;SAC3C;KACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,cAAc,CACrB,QAA8C;IAE9C,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAChE,CAAC"}
|