@kensio/yulin 1.18.0 → 1.18.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/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts +8 -2
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js +9 -3
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-web-acl.d.ts +25 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-web-acl.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-web-acl.js +36 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-web-acl.js.map +1 -0
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js +6 -5
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +10 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.d.ts +27 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.d.ts.map +1 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.js +35 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.js.map +1 -0
- package/dist/service/cognito/command/auth/auth.command.d.ts +31 -0
- package/dist/service/cognito/command/auth/auth.command.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +2 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +13 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.d.ts +35 -0
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.js +51 -0
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.js.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts +3 -8
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js +24 -17
- package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.d.ts +56 -0
- package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.d.ts.map +1 -0
- package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.js +50 -0
- package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.js.map +1 -0
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +0 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts +4 -3
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +5 -3
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js.map +1 -1
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts +3 -1
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts +3 -3
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts.map +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js +5 -4
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts +1 -1
- package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
- package/dist/service/cognito/index.d.ts +1 -0
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +1 -0
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.d.ts.map +1 -1
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.js +4 -0
- package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.js.map +1 -1
- package/dist/service/cognito/sim-cognito-authentication.d.ts +8 -0
- package/dist/service/cognito/sim-cognito-authentication.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-authentication.js +11 -0
- package/dist/service/cognito/sim-cognito-authentication.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts +11 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js +17 -2
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts +41 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js +62 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +5 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js +7 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.d.ts +11 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.js +17 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.js.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.d.ts +61 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.js +80 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.d.ts +10 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.js +22 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.d.ts +48 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.js +79 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +7 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +7 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +6 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +7 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts +34 -0
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js +40 -1
- package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js.map +1 -1
- package/dist/service/lambda/command/create-function/create-function-input.js +1 -1
- package/dist/service/lambda/command/create-function/create-function-input.js.map +1 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +17 -0
- 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 +43 -0
- package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
- package/dist/service/lambda/command/list-functions/list-functions-authorizer.d.ts +31 -0
- package/dist/service/lambda/command/list-functions/list-functions-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions-authorizer.js +41 -0
- package/dist/service/lambda/command/list-functions/list-functions-authorizer.js.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions.command.d.ts +34 -0
- package/dist/service/lambda/command/list-functions/list-functions.command.d.ts.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions.command.js +5 -0
- package/dist/service/lambda/command/list-functions/list-functions.command.js.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions.handler.d.ts +35 -0
- package/dist/service/lambda/command/list-functions/list-functions.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/list-functions/list-functions.handler.js +46 -0
- package/dist/service/lambda/command/list-functions/list-functions.handler.js.map +1 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts +3 -0
- package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
- package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.d.ts +27 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.js +37 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.js.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-input.d.ts +16 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-input.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-input.js +30 -0
- package/dist/service/lambda/command/update-function-code/update-function-code-input.js.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.command.d.ts +41 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.command.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.command.js +5 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.command.js.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.handler.d.ts +52 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.handler.js +72 -0
- package/dist/service/lambda/command/update-function-code/update-function-code.handler.js.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.d.ts +28 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.js +38 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.js.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts +23 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js +29 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts +42 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.js +5 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.js.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.d.ts +50 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.d.ts.map +1 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.js +61 -0
- package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.js.map +1 -0
- package/dist/service/lambda/function/code/lambda-code-source.d.ts +15 -2
- package/dist/service/lambda/function/code/lambda-code-source.d.ts.map +1 -1
- package/dist/service/lambda/function/code/lambda-code-source.js +19 -14
- package/dist/service/lambda/function/code/lambda-code-source.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts +6 -0
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-code-resolver.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts +28 -0
- 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 +10 -0
- package/dist/service/lambda/function/code/sim-lambda-executable-code.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js +2 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts +11 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts.map +1 -1
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js +16 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js.map +1 -1
- package/dist/service/lambda/{command/create-function/create-function-environment-names.d.ts → function/environment/lambda-environment-variable-names.d.ts} +1 -1
- package/dist/service/lambda/function/environment/lambda-environment-variable-names.d.ts.map +1 -0
- package/dist/service/lambda/{command/create-function/create-function-environment-names.js → function/environment/lambda-environment-variable-names.js} +1 -1
- package/dist/service/lambda/function/environment/lambda-environment-variable-names.js.map +1 -0
- package/dist/service/lambda/{command/create-function/create-function-environment.d.ts → function/environment/lambda-environment-variables.d.ts} +2 -2
- package/dist/service/lambda/function/environment/lambda-environment-variables.d.ts.map +1 -0
- package/dist/service/lambda/{command/create-function/create-function-environment.js → function/environment/lambda-environment-variables.js} +2 -2
- package/dist/service/lambda/function/environment/lambda-environment-variables.js.map +1 -0
- package/dist/service/lambda/function/environment/lambda-reserved-variable-names.d.ts.map +1 -0
- package/dist/service/lambda/function/environment/lambda-reserved-variable-names.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts +35 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js +54 -0
- package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts +34 -56
- package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.js +43 -9
- package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
- package/dist/service/lambda/function/sim-lambda-function.type.d.ts +53 -0
- package/dist/service/lambda/function/sim-lambda-function.type.d.ts.map +1 -0
- package/dist/service/lambda/function/sim-lambda-function.type.js +2 -0
- package/dist/service/lambda/function/sim-lambda-function.type.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 +12 -0
- package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-function-input.d.ts +27 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-input.d.ts.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-input.js +76 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-input.js.map +1 -0
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.d.ts.map +1 -1
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js +19 -58
- package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +1 -0
- package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
- package/dist/service/lambda/sim-lambda.d.ts +6 -0
- package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
- package/dist/service/lambda/sim-lambda.js +12 -0
- package/dist/service/lambda/sim-lambda.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.js +7 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js +0 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js.map +1 -1
- package/dist/service/s3/command/copy-object/copy-object-builder.d.ts +34 -0
- package/dist/service/s3/command/copy-object/copy-object-builder.d.ts.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object-builder.js +40 -0
- package/dist/service/s3/command/copy-object/copy-object-builder.js.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object-source.d.ts +37 -0
- package/dist/service/s3/command/copy-object/copy-object-source.d.ts.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object-source.js +80 -0
- package/dist/service/s3/command/copy-object/copy-object-source.js.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object.command.d.ts +41 -0
- package/dist/service/s3/command/copy-object/copy-object.command.d.ts.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object.command.js +2 -0
- package/dist/service/s3/command/copy-object/copy-object.command.js.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object.handler.d.ts +43 -0
- package/dist/service/s3/command/copy-object/copy-object.handler.d.ts.map +1 -0
- package/dist/service/s3/command/copy-object/copy-object.handler.js +76 -0
- package/dist/service/s3/command/copy-object/copy-object.handler.js.map +1 -0
- package/dist/service/s3/command/list-objects/list-objects-authorizer.d.ts +6 -4
- package/dist/service/s3/command/list-objects/list-objects-authorizer.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects-authorizer.js +6 -4
- package/dist/service/s3/command/list-objects/list-objects-authorizer.js.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects-page-builder.d.ts +4 -2
- package/dist/service/s3/command/list-objects/list-objects-page-builder.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects-page-builder.js +8 -2
- package/dist/service/s3/command/list-objects/list-objects-page-builder.js.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects.command.d.ts +7 -0
- package/dist/service/s3/command/list-objects/list-objects.command.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects.handler.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects/list-objects.handler.js +2 -0
- package/dist/service/s3/command/list-objects/list-objects.handler.js.map +1 -1
- package/dist/service/s3/command/list-objects-v2/list-objects-v2-page-builder.d.ts +1 -0
- package/dist/service/s3/command/list-objects-v2/list-objects-v2-page-builder.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects-v2/list-objects-v2-page-builder.js +6 -1
- package/dist/service/s3/command/list-objects-v2/list-objects-v2-page-builder.js.map +1 -1
- package/dist/service/s3/command/list-objects-v2/list-objects-v2.command.d.ts +8 -2
- package/dist/service/s3/command/list-objects-v2/list-objects-v2.command.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects-v2/list-objects-v2.handler.d.ts.map +1 -1
- package/dist/service/s3/command/list-objects-v2/list-objects-v2.handler.js +2 -0
- package/dist/service/s3/command/list-objects-v2/list-objects-v2.handler.js.map +1 -1
- package/dist/service/s3/command/object/sim-s3-object-commands.d.ts +4 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.d.ts.map +1 -1
- package/dist/service/s3/command/object/sim-s3-object-commands.js +7 -0
- package/dist/service/s3/command/object/sim-s3-object-commands.js.map +1 -1
- package/dist/service/s3/command/sim-s3-command.types.d.ts +1 -0
- package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.d.ts +11 -0
- package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
- package/dist/service/s3/error/sim-s3.error.js +13 -0
- package/dist/service/s3/error/sim-s3.error.js.map +1 -1
- package/dist/service/s3/object/s3-common-prefix.d.ts +22 -0
- package/dist/service/s3/object/s3-common-prefix.d.ts.map +1 -0
- package/dist/service/s3/object/s3-common-prefix.js +16 -0
- package/dist/service/s3/object/s3-common-prefix.js.map +1 -0
- package/dist/service/s3/object/s3-object-listing.d.ts +9 -2
- package/dist/service/s3/object/s3-object-listing.d.ts.map +1 -1
- package/dist/service/s3/object/s3-object-listing.js +70 -13
- package/dist/service/s3/object/s3-object-listing.js.map +1 -1
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.d.ts.map +1 -1
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +4 -0
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js.map +1 -1
- 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 +2 -0
- package/dist/service/s3/serve/api/sim-s3-api-input.js.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-listing.d.ts +5 -0
- package/dist/service/s3/serve/api/sim-s3-api-listing.d.ts.map +1 -1
- package/dist/service/s3/serve/api/sim-s3-api-listing.js +6 -1
- package/dist/service/s3/serve/api/sim-s3-api-listing.js.map +1 -1
- package/dist/service/s3/sim-s3-operations.d.ts +2 -0
- package/dist/service/s3/sim-s3-operations.d.ts.map +1 -1
- package/dist/service/s3/sim-s3-operations.js +4 -0
- package/dist/service/s3/sim-s3-operations.js.map +1 -1
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.d.ts +4 -0
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.d.ts.map +1 -1
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.js +9 -0
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.js.map +1 -1
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-skip.d.ts +22 -0
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-skip.d.ts.map +1 -0
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-skip.js +28 -0
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-skip.js.map +1 -0
- package/dist/service/wafv2/cfn/sim-cfn-waf-resource-error.d.ts +25 -6
- package/dist/service/wafv2/cfn/sim-cfn-waf-resource-error.d.ts.map +1 -1
- package/dist/service/wafv2/cfn/sim-cfn-waf-resource-error.js +32 -7
- package/dist/service/wafv2/cfn/sim-cfn-waf-resource-error.js.map +1 -1
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.d.ts +16 -0
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.d.ts.map +1 -0
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.js +22 -0
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.js.map +1 -0
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.d.ts +13 -4
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.d.ts.map +1 -1
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.js +21 -11
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.js.map +1 -1
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.d.ts +11 -1
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.d.ts.map +1 -1
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.js +19 -2
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.js.map +1 -1
- package/dist/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.d.ts +9 -0
- package/dist/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.d.ts.map +1 -1
- package/dist/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.js +9 -0
- package/dist/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.js.map +1 -1
- package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.d.ts +2 -0
- package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.d.ts.map +1 -1
- package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.js +3 -0
- package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.js.map +1 -1
- package/dist/service/wafv2/index.d.ts +1 -0
- package/dist/service/wafv2/index.d.ts.map +1 -1
- package/dist/service/wafv2/index.js.map +1 -1
- package/dist/service/wafv2/managed/sim-waf-managed-group-statement.d.ts.map +1 -1
- package/dist/service/wafv2/managed/sim-waf-managed-group-statement.js +1 -0
- package/dist/service/wafv2/managed/sim-waf-managed-group-statement.js.map +1 -1
- package/dist/service/wafv2/sim-wafv2-commands.d.ts.map +1 -1
- package/dist/service/wafv2/sim-wafv2-commands.js +3 -0
- package/dist/service/wafv2/sim-wafv2-commands.js.map +1 -1
- package/dist/service/wafv2/sim-wafv2.d.ts +12 -0
- package/dist/service/wafv2/sim-wafv2.d.ts.map +1 -1
- package/dist/service/wafv2/sim-wafv2.js +18 -0
- package/dist/service/wafv2/sim-wafv2.js.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-rate-based-input.d.ts +49 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based-input.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based-input.js +94 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based-input.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.d.ts +22 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.js +41 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.type.d.ts +18 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.type.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.type.js +2 -0
- package/dist/service/wafv2/statement/sim-waf-rate-based.type.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-counter.d.ts +29 -0
- package/dist/service/wafv2/statement/sim-waf-rate-counter.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-rate-counter.js +35 -0
- package/dist/service/wafv2/statement/sim-waf-rate-counter.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-statement.d.ts +6 -0
- package/dist/service/wafv2/statement/sim-waf-statement.d.ts.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-statement.js +4 -0
- package/dist/service/wafv2/statement/sim-waf-statement.js.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-statement.type.d.ts +2 -1
- package/dist/service/wafv2/statement/sim-waf-statement.type.d.ts.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.d.ts +10 -0
- package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.d.ts.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.js +40 -0
- package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.js.map +1 -0
- package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.d.ts.map +1 -1
- package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.js +0 -5
- package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.js.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.d.ts.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.js +25 -2
- package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.js.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-rule.type.d.ts +6 -0
- package/dist/service/wafv2/web-acl/sim-waf-rule.type.d.ts.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-unevaluatable-rules.d.ts +26 -0
- package/dist/service/wafv2/web-acl/sim-waf-unevaluatable-rules.d.ts.map +1 -0
- package/dist/service/wafv2/web-acl/sim-waf-unevaluatable-rules.js +34 -0
- package/dist/service/wafv2/web-acl/sim-waf-unevaluatable-rules.js.map +1 -0
- package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.d.ts.map +1 -1
- package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.js +16 -1
- package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.js.map +1 -1
- package/dist/util/clock/sim-clock-control.d.ts +8 -0
- package/dist/util/clock/sim-clock-control.d.ts.map +1 -1
- package/dist/util/clock/sim-clock-control.js +10 -1
- package/dist/util/clock/sim-clock-control.js.map +1 -1
- package/package.json +1 -1
- package/dist/service/lambda/command/create-function/create-function-environment-names.d.ts.map +0 -1
- package/dist/service/lambda/command/create-function/create-function-environment-names.js.map +0 -1
- package/dist/service/lambda/command/create-function/create-function-environment.d.ts.map +0 -1
- package/dist/service/lambda/command/create-function/create-function-environment.js.map +0 -1
- package/dist/service/lambda/command/create-function/lambda-reserved-variable-names.d.ts.map +0 -1
- package/dist/service/lambda/command/create-function/lambda-reserved-variable-names.js.map +0 -1
- /package/dist/service/lambda/{command/create-function → function/environment}/lambda-reserved-variable-names.d.ts +0 -0
- /package/dist/service/lambda/{command/create-function → function/environment}/lambda-reserved-variable-names.js +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { simCfnWafSkippedResourceError } from "../sim-cfn-waf-resource-error.js";
|
|
2
|
+
import { wafWebAclAssociationResourceType } from "../sim-cfn-waf-resource-types.js";
|
|
3
|
+
/**
|
|
4
|
+
* The error an association naming a web ACL that is not here is skipped with,
|
|
5
|
+
* or nothing when the web ACL is there.
|
|
6
|
+
*
|
|
7
|
+
* An association is the pair of ARNs it holds, and this one has lost half of
|
|
8
|
+
* itself. There is nothing to put in front of the resource, so the association
|
|
9
|
+
* is recorded and stepped over.
|
|
10
|
+
*
|
|
11
|
+
* That covers a template naming a web ACL from a real account, and one whose
|
|
12
|
+
* web ACL is in another Region or another Account. Skipping the association
|
|
13
|
+
* costs the rest of the template nothing, because an association is the only
|
|
14
|
+
* Resource that carries the reference. Whatever it would have gone in front of
|
|
15
|
+
* deploys and serves, unprotected.
|
|
16
|
+
*
|
|
17
|
+
* `AssociateWebACL` refuses the same ARN, as real WAFv2 refuses it. A request
|
|
18
|
+
* that asks for an association gets an answer about that association, and a
|
|
19
|
+
* template asking for twelve Resources gets the eleven that are left.
|
|
20
|
+
*/
|
|
21
|
+
export function simCfnWafAssociationSkipError(wafV2, resource, webAclArn) {
|
|
22
|
+
if (wafV2.findWebAclByArn(webAclArn) !== undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
return simCfnWafSkippedResourceError(wafWebAclAssociationResourceType, resource.logicalId, `it names web ACL ${webAclArn}, which this simulation does not hold, so ` +
|
|
26
|
+
`there is nothing to put in front of the resource`);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=sim-cfn-waf-association-skip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-waf-association-skip.js","sourceRoot":"","sources":["../../../../../src/service/wafv2/cfn/association/sim-cfn-waf-association-skip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAEpF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,6BAA6B,CAC3C,KAAe,EACf,QAAwB,EACxB,SAAiB;IAEjB,IAAI,KAAK,CAAC,eAAe,CAAC,SAAS,CAAC,KAAK,SAAS,EAAE,CAAC;QACnD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,6BAA6B,CAClC,gCAAgC,EAChC,QAAQ,CAAC,SAAS,EAClB,oBAAoB,SAAS,4CAA4C;QACvE,kDAAkD,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -1,14 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Build the error a Resource of a simulated WAFv2 type is refused with.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* invalid.
|
|
4
|
+
* Sim CloudFormation fails a stack on this one, so it is kept for a Resource
|
|
5
|
+
* nothing coherent could be deployed from: a `Rules` property that is not a
|
|
6
|
+
* list, a scope outside `REGIONAL` and `CLOUDFRONT`, an association naming no
|
|
7
|
+
* resource. Something WAFv2 cannot evaluate is a different thing and takes the
|
|
8
|
+
* skip below.
|
|
10
9
|
*/
|
|
11
10
|
export declare function simCfnWafResourceError(resourceType: string, logicalId: string, reason: string, cause?: unknown): Error;
|
|
11
|
+
/**
|
|
12
|
+
* Build the error a Resource carrying something WAFv2 cannot evaluate is
|
|
13
|
+
* skipped with.
|
|
14
|
+
*
|
|
15
|
+
* The "Unsupported sim ... CloudFormation" wording is what sim CloudFormation
|
|
16
|
+
* reads as a Resource to record and step over, so the Resource lands on
|
|
17
|
+
* `stack.skippedResources` carrying the reason WAFv2 gave, and the rest of the
|
|
18
|
+
* template deploys.
|
|
19
|
+
*
|
|
20
|
+
* Skipping keeps the caution the refusal was written with. A web ACL that
|
|
21
|
+
* accepted a rule it cannot evaluate would allow a request AWS blocks, and a
|
|
22
|
+
* web ACL that is missing allows exactly as much as a stack that never
|
|
23
|
+
* deployed. What it drops is the blast radius: a user pool, a table, a secret
|
|
24
|
+
* and two functions in the same template are no business of one rule.
|
|
25
|
+
*/
|
|
26
|
+
export declare function simCfnWafSkippedResourceError(resourceType: string, logicalId: string, reason: string, cause?: unknown): Error;
|
|
12
27
|
/**
|
|
13
28
|
* Run the simulated WAFv2 commands one Resource is made of, naming the
|
|
14
29
|
* Resource in whatever they refuse.
|
|
@@ -21,6 +36,10 @@ export declare function simCfnWafResourceError(resourceType: string, logicalId:
|
|
|
21
36
|
* a template can hold several. Only WAFv2's own errors are renamed, so a
|
|
22
37
|
* refusal the CloudFormation layer decided keeps the wording it was written
|
|
23
38
|
* with.
|
|
39
|
+
*
|
|
40
|
+
* The two kinds of refusal part company here. Input WAFv2 will not take is a
|
|
41
|
+
* failed Resource, and input it takes and this simulation cannot evaluate is a
|
|
42
|
+
* skipped one.
|
|
24
43
|
*/
|
|
25
44
|
export declare function simCfnWafResourceCommand<T>(resourceType: string, logicalId: string, run: () => Promise<T>): Promise<T>;
|
|
26
45
|
//# sourceMappingURL=sim-cfn-waf-resource-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-waf-resource-error.d.ts","sourceRoot":"","sources":["../../../../src/service/wafv2/cfn/sim-cfn-waf-resource-error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-cfn-waf-resource-error.d.ts","sourceRoot":"","sources":["../../../../src/service/wafv2/cfn/sim-cfn-waf-resource-error.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,OAAO,GACd,KAAK,CAIP;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,6BAA6B,CAC3C,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,OAAO,GACd,KAAK,CAMP;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,wBAAwB,CAAC,CAAC,EAC9C,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACpB,OAAO,CAAC,CAAC,CAAC,CAwBZ"}
|
|
@@ -1,19 +1,37 @@
|
|
|
1
|
-
import { SimWafError } from "../error/sim-wafv2.error.js";
|
|
1
|
+
import { SimWafError, SimWafUnsimulatedInputException, } from "../error/sim-wafv2.error.js";
|
|
2
2
|
/**
|
|
3
3
|
* Build the error a Resource of a simulated WAFv2 type is refused with.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* invalid.
|
|
5
|
+
* Sim CloudFormation fails a stack on this one, so it is kept for a Resource
|
|
6
|
+
* nothing coherent could be deployed from: a `Rules` property that is not a
|
|
7
|
+
* list, a scope outside `REGIONAL` and `CLOUDFRONT`, an association naming no
|
|
8
|
+
* resource. Something WAFv2 cannot evaluate is a different thing and takes the
|
|
9
|
+
* skip below.
|
|
11
10
|
*/
|
|
12
11
|
export function simCfnWafResourceError(resourceType, logicalId, reason, cause) {
|
|
13
12
|
return new Error(`Invalid ${resourceType} Resource ${logicalId}: ${reason}`, {
|
|
14
13
|
cause,
|
|
15
14
|
});
|
|
16
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Build the error a Resource carrying something WAFv2 cannot evaluate is
|
|
18
|
+
* skipped with.
|
|
19
|
+
*
|
|
20
|
+
* The "Unsupported sim ... CloudFormation" wording is what sim CloudFormation
|
|
21
|
+
* reads as a Resource to record and step over, so the Resource lands on
|
|
22
|
+
* `stack.skippedResources` carrying the reason WAFv2 gave, and the rest of the
|
|
23
|
+
* template deploys.
|
|
24
|
+
*
|
|
25
|
+
* Skipping keeps the caution the refusal was written with. A web ACL that
|
|
26
|
+
* accepted a rule it cannot evaluate would allow a request AWS blocks, and a
|
|
27
|
+
* web ACL that is missing allows exactly as much as a stack that never
|
|
28
|
+
* deployed. What it drops is the blast radius: a user pool, a table, a secret
|
|
29
|
+
* and two functions in the same template are no business of one rule.
|
|
30
|
+
*/
|
|
31
|
+
export function simCfnWafSkippedResourceError(resourceType, logicalId, reason, cause) {
|
|
32
|
+
return new Error(`Unsupported sim WAFv2 CloudFormation ${resourceType} Resource ` +
|
|
33
|
+
`${logicalId}: ${reason}`, { cause });
|
|
34
|
+
}
|
|
17
35
|
/**
|
|
18
36
|
* Run the simulated WAFv2 commands one Resource is made of, naming the
|
|
19
37
|
* Resource in whatever they refuse.
|
|
@@ -26,12 +44,19 @@ export function simCfnWafResourceError(resourceType, logicalId, reason, cause) {
|
|
|
26
44
|
* a template can hold several. Only WAFv2's own errors are renamed, so a
|
|
27
45
|
* refusal the CloudFormation layer decided keeps the wording it was written
|
|
28
46
|
* with.
|
|
47
|
+
*
|
|
48
|
+
* The two kinds of refusal part company here. Input WAFv2 will not take is a
|
|
49
|
+
* failed Resource, and input it takes and this simulation cannot evaluate is a
|
|
50
|
+
* skipped one.
|
|
29
51
|
*/
|
|
30
52
|
export async function simCfnWafResourceCommand(resourceType, logicalId, run) {
|
|
31
53
|
try {
|
|
32
54
|
return await run();
|
|
33
55
|
}
|
|
34
56
|
catch (error) {
|
|
57
|
+
if (error instanceof SimWafUnsimulatedInputException) {
|
|
58
|
+
throw simCfnWafSkippedResourceError(resourceType, logicalId, error.message, error);
|
|
59
|
+
}
|
|
35
60
|
if (error instanceof SimWafError) {
|
|
36
61
|
throw simCfnWafResourceError(resourceType, logicalId, error.message, error);
|
|
37
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-waf-resource-error.js","sourceRoot":"","sources":["../../../../src/service/wafv2/cfn/sim-cfn-waf-resource-error.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"sim-cfn-waf-resource-error.js","sourceRoot":"","sources":["../../../../src/service/wafv2/cfn/sim-cfn-waf-resource-error.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;GAQG;AACH,MAAM,UAAU,sBAAsB,CACpC,YAAoB,EACpB,SAAiB,EACjB,MAAc,EACd,KAAe;IAEf,OAAO,IAAI,KAAK,CAAC,WAAW,YAAY,aAAa,SAAS,KAAK,MAAM,EAAE,EAAE;QAC3E,KAAK;KACN,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,6BAA6B,CAC3C,YAAoB,EACpB,SAAiB,EACjB,MAAc,EACd,KAAe;IAEf,OAAO,IAAI,KAAK,CACd,wCAAwC,YAAY,YAAY;QAC9D,GAAG,SAAS,KAAK,MAAM,EAAE,EAC3B,EAAE,KAAK,EAAE,CACV,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,YAAoB,EACpB,SAAiB,EACjB,GAAqB;IAErB,IAAI,CAAC;QACH,OAAO,MAAM,GAAG,EAAE,CAAC;IACrB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,+BAA+B,EAAE,CAAC;YACrD,MAAM,6BAA6B,CACjC,YAAY,EACZ,SAAS,EACT,KAAK,CAAC,OAAO,EACb,KAAK,CACN,CAAC;QACJ,CAAC;QAED,IAAI,KAAK,YAAY,WAAW,EAAE,CAAC;YACjC,MAAM,sBAAsB,CAC1B,YAAY,EACZ,SAAS,EACT,KAAK,CAAC,OAAO,EACb,KAAK,CACN,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-resource.js";
|
|
2
|
+
import type { SimCreateWebAclCommandInput } from "../../command/web-acl/web-acl.command.js";
|
|
3
|
+
import type { SimWafV2 } from "../../sim-wafv2.js";
|
|
4
|
+
import type { SimWafRuleInput } from "../../web-acl/sim-waf-rule.type.js";
|
|
5
|
+
/**
|
|
6
|
+
* The rules of a template web ACL to deploy, which are the ones this
|
|
7
|
+
* simulation can evaluate.
|
|
8
|
+
*
|
|
9
|
+
* Each rule left out is recorded on the Resource under its own name, because a
|
|
10
|
+
* web ACL is a list of rules that all look alike from the outside and the name
|
|
11
|
+
* is the only thing that says which one went missing. The reason is the one
|
|
12
|
+
* `CreateWebACL` refuses the rule with, so a reader gets the same sentence
|
|
13
|
+
* wherever they meet it.
|
|
14
|
+
*/
|
|
15
|
+
export declare function simCfnWafEvaluatableRules(wafV2: SimWafV2, resource: SimCfnResource, input: SimCreateWebAclCommandInput): readonly SimWafRuleInput[] | undefined;
|
|
16
|
+
//# sourceMappingURL=sim-cfn-waf-evaluatable-rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-waf-evaluatable-rules.d.ts","sourceRoot":"","sources":["../../../../../src/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAE1E;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,2BAA2B,GACjC,SAAS,eAAe,EAAE,GAAG,SAAS,CAcxC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The rules of a template web ACL to deploy, which are the ones this
|
|
3
|
+
* simulation can evaluate.
|
|
4
|
+
*
|
|
5
|
+
* Each rule left out is recorded on the Resource under its own name, because a
|
|
6
|
+
* web ACL is a list of rules that all look alike from the outside and the name
|
|
7
|
+
* is the only thing that says which one went missing. The reason is the one
|
|
8
|
+
* `CreateWebACL` refuses the rule with, so a reader gets the same sentence
|
|
9
|
+
* wherever they meet it.
|
|
10
|
+
*/
|
|
11
|
+
export function simCfnWafEvaluatableRules(wafV2, resource, input) {
|
|
12
|
+
const unevaluatable = wafV2.unevaluatableWebAclRules(input);
|
|
13
|
+
if (unevaluatable.length === 0) {
|
|
14
|
+
return input.Rules;
|
|
15
|
+
}
|
|
16
|
+
const dropped = new Set(unevaluatable.map(({ index }) => index));
|
|
17
|
+
for (const rule of unevaluatable) {
|
|
18
|
+
resource.ignoreProperty(`Rules.${rule.name}`, rule.reason);
|
|
19
|
+
}
|
|
20
|
+
return input.Rules?.filter((_, index) => !dropped.has(index));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=sim-cfn-waf-evaluatable-rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-waf-evaluatable-rules.js","sourceRoot":"","sources":["../../../../../src/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,MAAM,UAAU,yBAAyB,CACvC,KAAe,EACf,QAAwB,EACxB,KAAkC;IAElC,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;IAE5D,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO,KAAK,CAAC,KAAK,CAAC;IACrB,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEjE,KAAK,MAAM,IAAI,IAAI,aAAa,EAAE,CAAC;QACjC,QAAQ,CAAC,cAAc,CAAC,SAAS,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IAED,OAAO,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -7,18 +7,27 @@ import { SimCfnWafResourceConfig } from "../sim-cfn-waf-resource-config.js";
|
|
|
7
7
|
* default action and the custom response bodies are handed over as the
|
|
8
8
|
* template wrote them. They are not read here at all: every rule is compiled
|
|
9
9
|
* by CreateWebACL, which is where a statement kind Yulin cannot evaluate is
|
|
10
|
-
*
|
|
10
|
+
* found, and reading them twice would mean two answers to the same question.
|
|
11
11
|
*/
|
|
12
12
|
export declare class SimCfnWafWebAclConfig extends SimCfnWafResourceConfig {
|
|
13
13
|
protected get resourceType(): string;
|
|
14
14
|
/**
|
|
15
15
|
* The input the web ACL this Resource describes is created from.
|
|
16
16
|
*
|
|
17
|
-
* The properties this simulation has no behaviour for are
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* The properties this simulation has no behaviour for are left out of it and
|
|
18
|
+
* recorded, so the web ACL deploys with the rest of what the template wrote.
|
|
19
|
+
* An SDK caller is refused for the same properties, because a request that
|
|
20
|
+
* was answered and then quietly dropped is a worse answer than a refusal.
|
|
20
21
|
*/
|
|
21
22
|
createInput(): SimCreateWebAclCommandInput;
|
|
23
|
+
/**
|
|
24
|
+
* Record the web ACL members this simulation has no behaviour for.
|
|
25
|
+
*
|
|
26
|
+
* Each of them changes what a web ACL does on real WAF, so a web ACL
|
|
27
|
+
* deployed without one behaves differently to the one the template
|
|
28
|
+
* describes. `stack.ignoredProperties` is where a test reads that.
|
|
29
|
+
*/
|
|
30
|
+
private recordUnsimulatedMembers;
|
|
22
31
|
/**
|
|
23
32
|
* The rules the template declared.
|
|
24
33
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-waf-web-acl-config.d.ts","sourceRoot":"","sources":["../../../../../src/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cfn-waf-web-acl-config.d.ts","sourceRoot":"","sources":["../../../../../src/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAG5E;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,SAAQ,uBAAuB;IAChE,cAAuB,YAAY,IAAI,MAAM,CAE5C;IAED;;;;;;;OAOG;IACH,WAAW,IAAI,2BAA2B,CAgBzC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;;;;;OAMG;IACH,OAAO,CAAC,KAAK;CAad"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { simWafUnsimulatedWebAclMembers } from "../../command/web-acl/sim-wafv2-unsimulated-web-acl-input.js";
|
|
1
2
|
import { SimCfnWafResourceConfig } from "../sim-cfn-waf-resource-config.js";
|
|
2
3
|
import { wafWebAclResourceType } from "../sim-cfn-waf-resource-types.js";
|
|
3
4
|
/**
|
|
@@ -7,7 +8,7 @@ import { wafWebAclResourceType } from "../sim-cfn-waf-resource-types.js";
|
|
|
7
8
|
* default action and the custom response bodies are handed over as the
|
|
8
9
|
* template wrote them. They are not read here at all: every rule is compiled
|
|
9
10
|
* by CreateWebACL, which is where a statement kind Yulin cannot evaluate is
|
|
10
|
-
*
|
|
11
|
+
* found, and reading them twice would mean two answers to the same question.
|
|
11
12
|
*/
|
|
12
13
|
export class SimCfnWafWebAclConfig extends SimCfnWafResourceConfig {
|
|
13
14
|
get resourceType() {
|
|
@@ -16,11 +17,13 @@ export class SimCfnWafWebAclConfig extends SimCfnWafResourceConfig {
|
|
|
16
17
|
/**
|
|
17
18
|
* The input the web ACL this Resource describes is created from.
|
|
18
19
|
*
|
|
19
|
-
* The properties this simulation has no behaviour for are
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* The properties this simulation has no behaviour for are left out of it and
|
|
21
|
+
* recorded, so the web ACL deploys with the rest of what the template wrote.
|
|
22
|
+
* An SDK caller is refused for the same properties, because a request that
|
|
23
|
+
* was answered and then quietly dropped is a worse answer than a refusal.
|
|
22
24
|
*/
|
|
23
25
|
createInput() {
|
|
26
|
+
this.recordUnsimulatedMembers();
|
|
24
27
|
return {
|
|
25
28
|
Name: this.name(),
|
|
26
29
|
Scope: this.scope(),
|
|
@@ -29,15 +32,22 @@ export class SimCfnWafWebAclConfig extends SimCfnWafResourceConfig {
|
|
|
29
32
|
Rules: this.rules(),
|
|
30
33
|
VisibilityConfig: this.value("VisibilityConfig"),
|
|
31
34
|
CustomResponseBodies: this.value("CustomResponseBodies"),
|
|
32
|
-
CaptchaConfig: this.value("CaptchaConfig"),
|
|
33
|
-
ChallengeConfig: this.value("ChallengeConfig"),
|
|
34
|
-
TokenDomains: this.strings("TokenDomains"),
|
|
35
|
-
AssociationConfig: this.value("AssociationConfig"),
|
|
36
|
-
DataProtectionConfig: this.value("DataProtectionConfig"),
|
|
37
|
-
OnSourceDDoSProtectionConfig: this.value("OnSourceDDoSProtectionConfig"),
|
|
38
|
-
ApplicationConfig: this.value("ApplicationConfig"),
|
|
39
35
|
};
|
|
40
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Record the web ACL members this simulation has no behaviour for.
|
|
39
|
+
*
|
|
40
|
+
* Each of them changes what a web ACL does on real WAF, so a web ACL
|
|
41
|
+
* deployed without one behaves differently to the one the template
|
|
42
|
+
* describes. `stack.ignoredProperties` is where a test reads that.
|
|
43
|
+
*/
|
|
44
|
+
recordUnsimulatedMembers() {
|
|
45
|
+
for (const [member, reason] of simWafUnsimulatedWebAclMembers) {
|
|
46
|
+
if (this.value(member) !== undefined) {
|
|
47
|
+
this.resource.ignoreProperty(member, `${member} is not simulated: ${reason}`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
41
51
|
/**
|
|
42
52
|
* The rules the template declared.
|
|
43
53
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-waf-web-acl-config.js","sourceRoot":"","sources":["../../../../../src/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;;;;;GAQG;AACH,MAAM,OAAO,qBAAsB,SAAQ,uBAAuB;IAChE,IAAuB,YAAY;QACjC,OAAO,qBAAqB,CAAC;IAC/B,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"sim-cfn-waf-web-acl-config.js","sourceRoot":"","sources":["../../../../../src/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAE,MAAM,8DAA8D,CAAC;AAC9G,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;;;;;GAQG;AACH,MAAM,OAAO,qBAAsB,SAAQ,uBAAuB;IAChE,IAAuB,YAAY;QACjC,OAAO,qBAAqB,CAAC;IAC/B,CAAC;IAED;;;;;;;OAOG;IACH,WAAW;QACT,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAEhC,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;YACnB,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;YAC/B,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,eAAe,CAE5B;YACb,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;YACnB,gBAAgB,EAAE,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC;YAChD,oBAAoB,EAAE,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAE1C;SACd,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACK,wBAAwB;QAC9B,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,8BAA8B,EAAE,CAAC;YAC9D,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,CAAC;gBACrC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAC1B,MAAM,EACN,GAAG,MAAM,sBAAsB,MAAM,EAAE,CACxC,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACK,KAAK;QACX,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAElC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;QACtC,CAAC;QAED,OAAO,KAAmC,CAAC;IAC7C,CAAC;CACF"}
|
|
@@ -11,7 +11,17 @@ interface SimCfnWafWebAclCreatorProperties {
|
|
|
11
11
|
* The web ACL is created through the ordinary CreateWebACL command rather than
|
|
12
12
|
* constructed directly, so one a template deployed is the same thing an SDK
|
|
13
13
|
* caller would have got: the same compilation of every rule, and the same
|
|
14
|
-
*
|
|
14
|
+
* refusals.
|
|
15
|
+
*
|
|
16
|
+
* A rule this simulation cannot evaluate is the exception, and the two part
|
|
17
|
+
* company over it. An SDK caller has the whole web ACL refused. A template
|
|
18
|
+
* deploys the web ACL without that rule and records it on
|
|
19
|
+
* `stack.ignoredProperties`, because the alternative is one rule taking a
|
|
20
|
+
* user pool, a table and two functions in the same template down with it.
|
|
21
|
+
*
|
|
22
|
+
* The web ACL is then real, and thinner than the one the template describes.
|
|
23
|
+
* That is the cost of deploying it at all, and the record of the dropped rule
|
|
24
|
+
* is what a test reads to know the size of it.
|
|
15
25
|
*/
|
|
16
26
|
export declare class SimCfnWafWebAclCreator {
|
|
17
27
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-waf-web-acl-creator.d.ts","sourceRoot":"","sources":["../../../../../src/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAClH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-cfn-waf-web-acl-creator.d.ts","sourceRoot":"","sources":["../../../../../src/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAClH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAMrE,UAAU,gCAAgC;IACxC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,sBAAsB;;IAGjC,YAAY,UAAU,EAAE,gCAAgC,EAEvD;IAED;;OAEG;IACG,MAAM,CACV,QAAQ,EAAE,cAAc,EACxB,UAAU,EAAE,yBAAyB,GACpC,OAAO,CAAC,YAAY,CAAC,CAoCvB;IAED;;;;;;;OAOG;IACG,MAAM,CAAC,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAc1E;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { assertDefined } from "../../../../util/type-guard/defined.js";
|
|
2
2
|
import { simCfnWafResourceCommand } from "../sim-cfn-waf-resource-error.js";
|
|
3
3
|
import { wafWebAclResourceType } from "../sim-cfn-waf-resource-types.js";
|
|
4
|
+
import { simCfnWafEvaluatableRules } from "./sim-cfn-waf-evaluatable-rules.js";
|
|
4
5
|
import { SimCfnWafWebAclConfig } from "./sim-cfn-waf-web-acl-config.js";
|
|
5
6
|
/**
|
|
6
7
|
* Creates simulated web ACLs from AWS::WAFv2::WebACL Resources.
|
|
@@ -8,7 +9,17 @@ import { SimCfnWafWebAclConfig } from "./sim-cfn-waf-web-acl-config.js";
|
|
|
8
9
|
* The web ACL is created through the ordinary CreateWebACL command rather than
|
|
9
10
|
* constructed directly, so one a template deployed is the same thing an SDK
|
|
10
11
|
* caller would have got: the same compilation of every rule, and the same
|
|
11
|
-
*
|
|
12
|
+
* refusals.
|
|
13
|
+
*
|
|
14
|
+
* A rule this simulation cannot evaluate is the exception, and the two part
|
|
15
|
+
* company over it. An SDK caller has the whole web ACL refused. A template
|
|
16
|
+
* deploys the web ACL without that rule and records it on
|
|
17
|
+
* `stack.ignoredProperties`, because the alternative is one rule taking a
|
|
18
|
+
* user pool, a table and two functions in the same template down with it.
|
|
19
|
+
*
|
|
20
|
+
* The web ACL is then real, and thinner than the one the template describes.
|
|
21
|
+
* That is the cost of deploying it at all, and the record of the dropped rule
|
|
22
|
+
* is what a test reads to know the size of it.
|
|
12
23
|
*/
|
|
13
24
|
export class SimCfnWafWebAclCreator {
|
|
14
25
|
#wafV2;
|
|
@@ -23,8 +34,14 @@ export class SimCfnWafWebAclCreator {
|
|
|
23
34
|
resource,
|
|
24
35
|
properties,
|
|
25
36
|
}).createInput();
|
|
37
|
+
const deployable = {
|
|
38
|
+
...input,
|
|
39
|
+
Rules: simCfnWafEvaluatableRules(this.#wafV2, resource, input),
|
|
40
|
+
};
|
|
26
41
|
return await simCfnWafResourceCommand(wafWebAclResourceType, resource.logicalId, async () => {
|
|
27
|
-
const created = await this.#wafV2.createWebAcl({
|
|
42
|
+
const created = await this.#wafV2.createWebAcl({
|
|
43
|
+
input: deployable,
|
|
44
|
+
});
|
|
28
45
|
const arn = created.Summary?.ARN;
|
|
29
46
|
assertDefined(arn, `sim WAFv2 web ACL ARN for CloudFormation Resource ${resource.logicalId}`);
|
|
30
47
|
const webAcl = this.#wafV2.findWebAclByArn(arn);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-cfn-waf-web-acl-creator.js","sourceRoot":"","sources":["../../../../../src/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAKvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAMxE
|
|
1
|
+
{"version":3,"file":"sim-cfn-waf-web-acl-creator.js","sourceRoot":"","sources":["../../../../../src/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;A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AK,CAAC,MAAM,CAAC,QAAwB,EAAE,MAAoB;QACzD,MAAM,wBAAwB,CAC5B,qBAAqB,EACrB,QAAQ,CAAC,SAAS,EAClB,KAAK,IAAI,EAAE,CACT,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;YAC7B,KAAK,EAAE;gBACL,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,EAAE,EAAE,MAAM,CAAC,EAAE;gBACb,SAAS,EAAE,MAAM,CAAC,SAAS;aAC5B;SACF,CAAC,CACL,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import type { SimWafWebAclWriteInput } from "./web-acl.command.js";
|
|
2
|
+
/**
|
|
3
|
+
* Why each web ACL member this simulation does not model is refused, by the
|
|
4
|
+
* name a request and a template both write.
|
|
5
|
+
*
|
|
6
|
+
* The refusal below and the CloudFormation layer read the same list. One
|
|
7
|
+
* throws and the other records the member and deploys the web ACL without it,
|
|
8
|
+
* and neither should be able to grow a reason the other has not got.
|
|
9
|
+
*/
|
|
10
|
+
export declare const simWafUnsimulatedWebAclMembers: ReadonlyMap<string, string>;
|
|
2
11
|
/**
|
|
3
12
|
* Refuse the web ACL members this simulation does not model.
|
|
4
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-wafv2-unsimulated-web-acl-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AA2CnE;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,sBAAsB,EAC7B,SAAS,EAAE,MAAM,GAChB,IAAI,CAYN"}
|
|
1
|
+
{"version":3,"file":"sim-wafv2-unsimulated-web-acl-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AA2CnE;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CACA,CAAC;AAExE;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,sBAAsB,EAC7B,SAAS,EAAE,MAAM,GAChB,IAAI,CAYN"}
|
|
@@ -29,6 +29,15 @@ const refusedMembers = [
|
|
|
29
29
|
"it configures the WAF-hosted sign-in pages, which are not simulated",
|
|
30
30
|
],
|
|
31
31
|
];
|
|
32
|
+
/**
|
|
33
|
+
* Why each web ACL member this simulation does not model is refused, by the
|
|
34
|
+
* name a request and a template both write.
|
|
35
|
+
*
|
|
36
|
+
* The refusal below and the CloudFormation layer read the same list. One
|
|
37
|
+
* throws and the other records the member and deploys the web ACL without it,
|
|
38
|
+
* and neither should be able to grow a reason the other has not got.
|
|
39
|
+
*/
|
|
40
|
+
export const simWafUnsimulatedWebAclMembers = new Map(refusedMembers.map(([, member, reason]) => [member, reason]));
|
|
32
41
|
/**
|
|
33
42
|
* Refuse the web ACL members this simulation does not model.
|
|
34
43
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-wafv2-unsimulated-web-acl-input.js","sourceRoot":"","sources":["../../../../../src/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAYzD,MAAM,YAAY,GAChB,2EAA2E;IAC3E,qBAAqB,CAAC;AAExB,MAAM,cAAc,GAAmC;IACrD,CAAC,CAAC,KAAK,EAAW,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,eAAe,EAAE,YAAY,CAAC;IACxE,CAAC,CAAC,KAAK,EAAW,EAAE,CAAC,KAAK,CAAC,eAAe,EAAE,iBAAiB,EAAE,YAAY,CAAC;IAC5E,CAAC,CAAC,KAAK,EAAW,EAAE,CAAC,KAAK,CAAC,YAAY,EAAE,cAAc,EAAE,YAAY,CAAC;IACtE;QACE,CAAC,KAAK,EAAW,EAAE,CAAC,KAAK,CAAC,iBAAiB;QAC3C,mBAAmB;QACnB,mEAAmE;YACjE,+DAA+D;KAClE;IACD;QACE,CAAC,KAAK,EAAW,EAAE,CAAC,KAAK,CAAC,oBAAoB;QAC9C,sBAAsB;QACtB,0EAA0E;YACxE,kBAAkB;KACrB;IACD;QACE,CAAC,KAAK,EAAW,EAAE,CAAC,KAAK,CAAC,4BAA4B;QACtD,8BAA8B;QAC9B,oEAAoE;KACrE;IACD;QACE,CAAC,KAAK,EAAW,EAAE,CAAC,KAAK,CAAC,iBAAiB;QAC3C,mBAAmB;QACnB,qEAAqE;KACtE;CACF,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,kCAAkC,CAChD,KAA6B,EAC7B,SAAiB;IAEjB,gBAAgB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAExC,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,cAAc,EAAE,CAAC;QACpD,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,+BAA+B,CACvC,GAAG,SAAS,YAAY,MAAM,oCAC5B,MACF,EAAE,CACH,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"sim-wafv2-unsimulated-web-acl-input.js","sourceRoot":"","sources":["../../../../../src/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MA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AAI,IAAI,CAAC,KAAK,CAAC,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,+BAA+B,CACvC,GAAG,SAAS,YAAY,MAAM,oCAC5B,MACF,EAAE,CACH,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
1
2
|
import type { SimAwsAccountRegionScope } from "../../../aws/sim-aws-account-region-scope.js";
|
|
2
3
|
import type { SimWafAssociations } from "../../association/sim-waf-associations.js";
|
|
3
4
|
import type { SimWafManagedRules } from "../../managed/sim-waf-managed-rules.js";
|
|
@@ -14,6 +15,7 @@ interface SimWafWebAclCommandsProperties {
|
|
|
14
15
|
readonly managedRules: SimWafManagedRules;
|
|
15
16
|
readonly authorizer: SimWafAuthorizer;
|
|
16
17
|
readonly accountRegionScope: SimAwsAccountRegionScope;
|
|
18
|
+
readonly clock: SimClock;
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
19
21
|
* The commands that make, read, list, change and remove web ACLs.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-wafv2-web-acl-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAClG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAGpF,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAO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ACH,OAAO,CAAC,OAAO;CAehB"}
|
|
@@ -20,6 +20,7 @@ export class SimWafWebAclCommands {
|
|
|
20
20
|
#managedRules;
|
|
21
21
|
#authorizer;
|
|
22
22
|
#accountRegionScope;
|
|
23
|
+
#clock;
|
|
23
24
|
constructor(properties) {
|
|
24
25
|
this.#webAcls = properties.webAcls;
|
|
25
26
|
this.#regexPatternSets = properties.regexPatternSets;
|
|
@@ -27,6 +28,7 @@ export class SimWafWebAclCommands {
|
|
|
27
28
|
this.#managedRules = properties.managedRules;
|
|
28
29
|
this.#authorizer = properties.authorizer;
|
|
29
30
|
this.#accountRegionScope = properties.accountRegionScope;
|
|
31
|
+
this.#clock = properties.clock;
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
32
34
|
* Make a web ACL from a default action and a list of rules.
|
|
@@ -44,6 +46,7 @@ export class SimWafWebAclCommands {
|
|
|
44
46
|
configuration: configurationOf(input),
|
|
45
47
|
regexPatternSets: this.#regexPatternSets,
|
|
46
48
|
managedRules: this.#managedRules,
|
|
49
|
+
clock: this.#clock,
|
|
47
50
|
});
|
|
48
51
|
this.#authorizer.authorizeResource("wafv2:CreateWebACL", webAcl.arn, options?.caller);
|
|
49
52
|
return { $metadata: {}, Summary: this.#webAcls.add(webAcl).summary() };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-wafv2-web-acl-commands.js","sourceRoot":"","sources":["../../../../../src/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-wafv2-web-acl-commands.js","sourceRoot":"","sources":["../../../../../src/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAI/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,E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AAQ,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAE7B,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC3B,CAAC;IAED;;OAEG;IACK,OAAO,CACb,KAA0B,EAC1B,MAAc,EACd,OAAyC;QAEzC,OAAO,qBAAqB,CAAC;YAC3B,KAAK,EAAE,IAAI,CAAC,QAAQ;YACpB,KAAK;YACL,IAAI,EAAE,QAAQ;YACd,MAAM;YACN,UAAU,EAAE,IAAI,CAAC,WAAW;YAC5B,kBAAkB,EAAE,IAAI,CAAC,mBAAmB;YAC5C,MAAM,EAAE,OAAO,EAAE,MAAM;SACxB,CAAC,CAAC;IACL,CAAC;CACF;AAED,SAAS,eAAe,CACtB,KAA6B;IAE7B,OAAO;QACL,aAAa,EAAE,KAAK,CAAC,aAAa;QAClC,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,oBAAoB,EAAE,KAAK,CAAC,oBAAoB;QAChD,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;QACxC,WAAW,EAAE,KAAK,CAAC,WAAW;KAC/B,CAAC;AACJ,CAAC"}
|
|
@@ -30,6 +30,7 @@ export type { SimWafManagedRuleGroupStatementInput, SimWafOverrideActionInput, S
|
|
|
30
30
|
export { simWafBlockedHttpResponse, type SimWafBlockedResponse, simWafDefaultBlockedResponse, } from "./evaluate/sim-waf-blocked-response.js";
|
|
31
31
|
export { type SimWafInspectedRequest, simWafInspectedRequest, } from "./evaluate/sim-waf-inspected-request.js";
|
|
32
32
|
export { simWafInspectionLimitBytes } from "./statement/sim-waf-field-content.js";
|
|
33
|
+
export type { SimWafRateBasedStatementInput } from "./statement/sim-waf-rate-based.type.js";
|
|
33
34
|
export type { SimWafStatementInput } from "./statement/sim-waf-statement.type.js";
|
|
34
35
|
export { SimWafAssociatedItemException, SimWafDeclarationError, SimWafDuplicateItemException, SimWafError, type SimWafErrorMetadata, SimWafInvalidParameterException, SimWafNonexistentItemException, SimWafOptimisticLockException, SimWafUnavailableEntityException, SimWafUnsimulatedInputException, } from "./error/sim-wafv2.error.js";
|
|
35
36
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/wafv2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACxE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,YAAY,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EACL,KAAK,WAAW,EAChB,sBAAsB,EACtB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,cAAc,EACd,eAAe,EACf,KAAK,kBAAkB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EACL,4BAA4B,EAC5B,KAAK,uBAAuB,EAC5B,uBAAuB,EACvB,KAAK,2BAA2B,EAChC,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,0BAA0B,EAC1B,KAAK,wBAAwB,GAC9B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,kBAAkB,EAClB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,GACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,eAAe,EACf,uBAAuB,GACxB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EACL,cAAc,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MAAM,6BAA6B,CAAC;AAM3D,OAAO,EACL,WAAW,GAEZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EACL,kBAAkB,GAEnB,MAAM,oCAAoC,CAAC;AAQ5C,OAAO,EACL,yBAAyB,EAEzB,4BAA4B,GAC7B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,sBAAsB,GACvB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,4BAA4B,EAC5B,WAAW,EAEX,+BAA+B,EAC/B,8BAA8B,EAC9B,6BAA6B,EAC7B,gCAAgC,EAChC,+BAA+B,GAChC,MAAM,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-waf-managed-group-statement.d.ts","sourceRoot":"","sources":["../../../../src/service/wafv2/managed/sim-waf-managed-group-statement.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EAChB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,KAAK,EACV,oCAAoC,EACpC,yBAAyB,EAC1B,MAAM,iCAAiC,CAAC;AAGzC,UAAU,gCAAgC;IACxC,QAAQ,CAAC,SAAS,EAAE,oCAAoC,CAAC;IACzD,QAAQ,CAAC,cAAc,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAC/D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;CACjC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,gCAAgC,GAC3C,mBAAmB,
|
|
1
|
+
{"version":3,"file":"sim-waf-managed-group-statement.d.ts","sourceRoot":"","sources":["../../../../src/service/wafv2/managed/sim-waf-managed-group-statement.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EAChB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,KAAK,EACV,oCAAoC,EACpC,yBAAyB,EAC1B,MAAM,iCAAiC,CAAC;AAGzC,UAAU,gCAAgC;IACxC,QAAQ,CAAC,SAAS,EAAE,oCAAoC,CAAC;IACzD,QAAQ,CAAC,cAAc,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAC/D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;CACjC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,gCAAgC,GAC3C,mBAAmB,CA2DrB"}
|
|
@@ -26,6 +26,7 @@ export function compileSimWafManagedRuleGroup(properties) {
|
|
|
26
26
|
? undefined
|
|
27
27
|
: compileSimWafStatement(statement.ScopeDownStatement, {
|
|
28
28
|
regexPatternSets: scope.regexPatternSets,
|
|
29
|
+
clock: scope.clock,
|
|
29
30
|
ruleName,
|
|
30
31
|
});
|
|
31
32
|
// Every rule in the three simulated groups blocks by default, and a group
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-waf-managed-group-statement.js","sourceRoot":"","sources":["../../../../src/service/wafv2/managed/sim-waf-managed-group-statement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAK5D,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAKjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AASzE;;;;;;;;;;;;;GAaG;AACH,MA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KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;YAC/B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;gBAC/D,SAAS;YACX,CAAC;YAED,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,cAAc,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;YAE5D,MAAM,MAAM,GAAG,QAAQ;gBACrB,CAAC,CAAC,OAAO;gBACT,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,CAAC;YAE3C,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC;gBACzB,OAAO,MAAM,CAAC;YAChB,CAAC;YAED,OAAO,GAAG,IAAI,CAAC;QACjB,CAAC;QAED,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;IACvC,CAAC,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"sim-waf-managed-group-statement.js","sourceRoot":"","sources":["../../../../src/service/wafv2/managed/sim-waf-managed-group-statement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAK5D,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAKjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AASzE;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,6BAA6B,CAC3C,UAA4C;IAE5C,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,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