@kensio/yulin 1.15.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/sdk/error/sim-sdk.error.d.ts +10 -0
- package/dist/sdk/error/sim-sdk.error.d.ts.map +1 -1
- package/dist/sdk/error/sim-sdk.error.js +10 -0
- package/dist/sdk/error/sim-sdk.error.js.map +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.js +5 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-command.d.ts +20 -0
- package/dist/sdk/wire/sim-sdk-wire-command.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-command.js +31 -0
- package/dist/sdk/wire/sim-sdk-wire-command.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts +42 -0
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.js +63 -0
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-json.d.ts +26 -0
- package/dist/sdk/wire/sim-sdk-wire-json.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-json.js +59 -0
- package/dist/sdk/wire/sim-sdk-wire-json.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts +37 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.js +79 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-response.d.ts +17 -0
- package/dist/sdk/wire/sim-sdk-wire-response.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-response.js +67 -0
- package/dist/sdk/wire/sim-sdk-wire-response.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-unbridged.d.ts +17 -0
- package/dist/sdk/wire/sim-sdk-wire-unbridged.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-unbridged.js +25 -0
- package/dist/sdk/wire/sim-sdk-wire-unbridged.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire.types.d.ts +32 -0
- package/dist/sdk/wire/sim-sdk-wire.types.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire.types.js +2 -0
- package/dist/sdk/wire/sim-sdk-wire.types.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint-style.d.ts +33 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint-style.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint-style.js +2 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint-style.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-builder.d.ts.map +1 -1
- package/dist/serve/payload-2/sim-payload-2-event-builder.js +2 -2
- package/dist/serve/payload-2/sim-payload-2-event-builder.js.map +1 -1
- package/dist/serve/payload-2/sim-payload-2-event-query.d.ts +12 -0
- package/dist/serve/payload-2/sim-payload-2-event-query.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-query.js +15 -0
- package/dist/serve/payload-2/sim-payload-2-event-query.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-request.d.ts +32 -0
- package/dist/serve/payload-2/sim-payload-2-event-request.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-request.js +42 -0
- package/dist/serve/payload-2/sim-payload-2-event-request.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event.factory.d.ts +15 -0
- package/dist/serve/payload-2/sim-payload-2-event.factory.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event.factory.js +71 -0
- package/dist/serve/payload-2/sim-payload-2-event.factory.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-request-parts.d.ts +23 -12
- package/dist/serve/payload-2/sim-payload-2-request-parts.d.ts.map +1 -1
- package/dist/serve/payload-2/sim-payload-2-request-parts.js +38 -26
- package/dist/serve/payload-2/sim-payload-2-request-parts.js.map +1 -1
- package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.d.ts +35 -0
- package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.d.ts.map +1 -0
- package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.js +65 -0
- package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.js.map +1 -0
- package/dist/service/apigatewayv2/index.d.ts +1 -0
- package/dist/service/apigatewayv2/index.d.ts.map +1 -1
- package/dist/service/apigatewayv2/index.js +1 -0
- package/dist/service/apigatewayv2/index.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +10 -36
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +16 -63
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.d.ts +22 -0
- package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.d.ts.map +1 -0
- package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.js +20 -0
- package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-registered-service-builder.d.ts +71 -0
- package/dist/service/aws/factory/sim-aws-registered-service-builder.d.ts.map +1 -0
- package/dist/service/aws/factory/sim-aws-registered-service-builder.js +96 -0
- package/dist/service/aws/factory/sim-aws-registered-service-builder.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts +9 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js +11 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts +7 -0
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.js +19 -5
- package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.d.ts +6 -0
- package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.js +8 -0
- package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.d.ts +6 -0
- package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.js +8 -0
- package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.d.ts +26 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.js +28 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.d.ts +6 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.js +13 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.d.ts +6 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.js +19 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.d.ts +27 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.js +46 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.d.ts +33 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.js +48 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.d.ts +27 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.js +29 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +4 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +8 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
- package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.d.ts +34 -0
- package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.js +51 -0
- package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.js.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.d.ts +54 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.js +70 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.js.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.d.ts +30 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.js +58 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.js.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.d.ts +26 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.js +56 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.js.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.d.ts +37 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.js +19 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.d.ts +10 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.js +11 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.d.ts +33 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.js +2 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.d.ts +32 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.js +75 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.d.ts +26 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.js +16 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.d.ts +23 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.js +37 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.d.ts +55 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.js +84 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.d.ts +18 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.js +29 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.d.ts +24 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.js +33 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.d.ts +57 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.js +84 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.d.ts +19 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.js +48 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.d.ts +16 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.js +31 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.js.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.d.ts +33 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.js +41 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.js.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.d.ts +39 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.js +80 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.js.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.d.ts +20 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.js +80 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.js.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.d.ts +56 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.js +107 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.js.map +1 -0
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.d.ts +29 -0
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.js +43 -0
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/alarm.command.d.ts +155 -0
- package/dist/service/cloudwatch/command/alarm/alarm.command.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/alarm.command.js +2 -0
- package/dist/service/cloudwatch/command/alarm/alarm.command.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.d.ts +19 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.js +56 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.d.ts +22 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.js +2 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.d.ts +15 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.js +61 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.d.ts +7 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.js +39 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.d.ts +20 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.js +52 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.d.ts +25 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.js +60 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.d.ts +12 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.js +59 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.d.ts +23 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.js +63 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.d.ts +19 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.js +47 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.js.map +1 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.d.ts +41 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.js +65 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.js.map +1 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.d.ts +23 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.js +30 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.js.map +1 -0
- package/dist/service/cloudwatch/command/data/data.command.d.ts +42 -0
- package/dist/service/cloudwatch/command/data/data.command.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/data.command.js +2 -0
- package/dist/service/cloudwatch/command/data/data.command.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.d.ts +11 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.js +66 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.d.ts +14 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.js +58 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.d.ts +15 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.js +34 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.d.ts +28 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.js +66 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.d.ts +9 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.js +22 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.js.map +1 -0
- package/dist/service/cloudwatch/command/query/query.command.d.ts +133 -0
- package/dist/service/cloudwatch/command/query/query.command.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/query.command.js +2 -0
- package/dist/service/cloudwatch/command/query/query.command.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.d.ts +25 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.js +46 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.d.ts +25 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.js +55 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.d.ts +23 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.js +46 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.d.ts +25 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.js +63 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.d.ts +26 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.js +61 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.d.ts +20 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.js +36 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.d.ts +12 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.js +27 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.d.ts +20 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.js +52 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.d.ts +10 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.js +20 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.d.ts +17 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.js +45 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.js.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.d.ts +7 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.js +2 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.js.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-page.d.ts +24 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-page.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-page.js +36 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-page.js.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.d.ts +21 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.js +10 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.js.map +1 -0
- package/dist/service/cloudwatch/error/sim-cloudwatch.error.d.ts +48 -0
- package/dist/service/cloudwatch/error/sim-cloudwatch.error.d.ts.map +1 -0
- package/dist/service/cloudwatch/error/sim-cloudwatch.error.js +51 -0
- package/dist/service/cloudwatch/error/sim-cloudwatch.error.js.map +1 -0
- package/dist/service/cloudwatch/index.d.ts +26 -0
- package/dist/service/cloudwatch/index.d.ts.map +1 -0
- package/dist/service/cloudwatch/index.js +25 -0
- package/dist/service/cloudwatch/index.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.d.ts +54 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.js +29 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.d.ts +37 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.js +42 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.d.ts +46 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.js +61 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.d.ts +53 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.js +45 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-name.d.ts +22 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-name.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-name.js +54 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-name.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.d.ts +22 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.js +34 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-period.d.ts +32 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-period.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-period.js +70 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-period.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.d.ts +20 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.js +51 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.d.ts +16 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.js +25 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.d.ts +18 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.js +56 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.js.map +1 -0
- package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.d.ts +18 -0
- package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.d.ts.map +1 -0
- package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.js +60 -0
- package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.js.map +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.d.ts +47 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.d.ts.map +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.js +86 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.js.map +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch.d.ts +98 -0
- package/dist/service/cloudwatch/sim-cloudwatch.d.ts.map +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch.js +138 -0
- package/dist/service/cloudwatch/sim-cloudwatch.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-account-recovery.d.ts +32 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-account-recovery.d.ts.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-account-recovery.js +61 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-account-recovery.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts +2 -3
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +23 -9
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.d.ts +30 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.js +47 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +8 -4
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js +7 -3
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js +3 -1
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts +3 -4
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js +3 -22
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts +9 -16
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js +9 -26
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts +12 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js +19 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js +5 -4
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +6 -2
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +8 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts +10 -8
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.d.ts +10 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.js +12 -0
- package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
- package/dist/service/cognito/index.d.ts +1 -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/user-pool/sim-cognito-account-recovery.d.ts +86 -0
- package/dist/service/cognito/user-pool/sim-cognito-account-recovery.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-account-recovery.js +127 -0
- package/dist/service/cognito/user-pool/sim-cognito-account-recovery.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.d.ts +22 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.js +52 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +34 -15
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +30 -15
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +2 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-username-attributes.d.ts +87 -0
- package/dist/service/cognito/user-pool/sim-cognito-username-attributes.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-username-attributes.js +137 -0
- package/dist/service/cognito/user-pool/sim-cognito-username-attributes.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.d.ts +25 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.js +39 -2
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.js.map +1 -1
- package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.d.ts +47 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.d.ts.map +1 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.js +96 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.js.map +1 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.d.ts +36 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.d.ts.map +1 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.js +64 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.js.map +1 -0
- package/dist/service/lambda/factory/lambda-function-url-event.factory.d.ts +37 -0
- package/dist/service/lambda/factory/lambda-function-url-event.factory.d.ts.map +1 -0
- package/dist/service/lambda/factory/lambda-function-url-event.factory.js +55 -0
- package/dist/service/lambda/factory/lambda-function-url-event.factory.js.map +1 -0
- package/dist/service/lambda/factory/lambda-sqs-event.factory.d.ts +37 -0
- package/dist/service/lambda/factory/lambda-sqs-event.factory.d.ts.map +1 -0
- package/dist/service/lambda/factory/lambda-sqs-event.factory.js +78 -0
- package/dist/service/lambda/factory/lambda-sqs-event.factory.js.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts +27 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js +78 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts +23 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js +111 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts +37 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js +78 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js.map +1 -0
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.d.ts +5 -3
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts +10 -2
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js +21 -6
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.d.ts +12 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.d.ts.map +1 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.js +2 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.js.map +1 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.js +5 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.js.map +1 -1
- package/dist/service/lambda/function/environment/sim-lambda-environment.d.ts.map +1 -1
- package/dist/service/lambda/function/environment/sim-lambda-environment.js +2 -0
- package/dist/service/lambda/function/environment/sim-lambda-environment.js.map +1 -1
- package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.d.ts +19 -0
- package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.d.ts.map +1 -0
- package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.js +20 -0
- package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.js.map +1 -0
- package/dist/service/lambda/index.d.ts +3 -0
- package/dist/service/lambda/index.d.ts.map +1 -1
- package/dist/service/lambda/index.js +3 -0
- package/dist/service/lambda/index.js.map +1 -1
- package/dist/service/s3/factory/s3-notification-event-object.d.ts +10 -0
- package/dist/service/s3/factory/s3-notification-event-object.d.ts.map +1 -0
- package/dist/service/s3/factory/s3-notification-event-object.js +12 -0
- package/dist/service/s3/factory/s3-notification-event-object.js.map +1 -0
- package/dist/service/s3/factory/s3-notification-event.factory.d.ts +45 -0
- package/dist/service/s3/factory/s3-notification-event.factory.d.ts.map +1 -0
- package/dist/service/s3/factory/s3-notification-event.factory.js +102 -0
- package/dist/service/s3/factory/s3-notification-event.factory.js.map +1 -0
- package/dist/service/s3/index.d.ts +2 -0
- package/dist/service/s3/index.d.ts.map +1 -1
- package/dist/service/s3/index.js +1 -0
- package/dist/service/s3/index.js.map +1 -1
- package/dist/service/s3/notification/event/sim-s3-event-records.d.ts +32 -1
- package/dist/service/s3/notification/event/sim-s3-event-records.d.ts.map +1 -1
- package/dist/service/s3/notification/event/sim-s3-event-records.js +5 -5
- package/dist/service/s3/notification/event/sim-s3-event-records.js.map +1 -1
- package/dist/service/s3/notification/event/sim-s3-event.type.d.ts +83 -0
- package/dist/service/s3/notification/event/sim-s3-event.type.d.ts.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-event.type.js +2 -0
- package/dist/service/s3/notification/event/sim-s3-event.type.js.map +1 -0
- package/dist/service/ses/account/sim-ses-account.d.ts +59 -0
- package/dist/service/ses/account/sim-ses-account.d.ts.map +1 -0
- package/dist/service/ses/account/sim-ses-account.js +66 -0
- package/dist/service/ses/account/sim-ses-account.js.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts +35 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js +52 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.d.ts +37 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.d.ts.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.js +61 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.js.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.d.ts +17 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.d.ts.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.js +48 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.js.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-error.d.ts +24 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-error.d.ts.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-error.js +39 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-error.js.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.d.ts +13 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.d.ts.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.js +13 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.js.map +1 -0
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts +28 -0
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js +69 -0
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js.map +1 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.d.ts +30 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.d.ts.map +1 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.js +48 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.js.map +1 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.d.ts +58 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.d.ts.map +1 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.js +121 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.js.map +1 -0
- package/dist/service/ses/command/account/account.command.d.ts +59 -0
- package/dist/service/ses/command/account/account.command.d.ts.map +1 -0
- package/dist/service/ses/command/account/account.command.js +2 -0
- package/dist/service/ses/command/account/account.command.js.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-commands.d.ts +34 -0
- package/dist/service/ses/command/account/sim-ses-account-commands.d.ts.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-commands.js +41 -0
- package/dist/service/ses/command/account/sim-ses-account-commands.js.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-details-input.d.ts +11 -0
- package/dist/service/ses/command/account/sim-ses-account-details-input.d.ts.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-details-input.js +50 -0
- package/dist/service/ses/command/account/sim-ses-account-details-input.js.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-report.d.ts +21 -0
- package/dist/service/ses/command/account/sim-ses-account-report.d.ts.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-report.js +45 -0
- package/dist/service/ses/command/account/sim-ses-account-report.js.map +1 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.d.ts +55 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.d.ts.map +1 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.js +78 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.js.map +1 -0
- package/dist/service/ses/command/identity/identity.command.d.ts +84 -0
- package/dist/service/ses/command/identity/identity.command.d.ts.map +1 -0
- package/dist/service/ses/command/identity/identity.command.js +2 -0
- package/dist/service/ses/command/identity/identity.command.js.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.d.ts +44 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.d.ts.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.js +92 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.js.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.d.ts +12 -0
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.d.ts.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.js +26 -0
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.js.map +1 -0
- package/dist/service/ses/command/send/send.command.d.ts +71 -0
- package/dist/service/ses/command/send/send.command.d.ts.map +1 -0
- package/dist/service/ses/command/send/send.command.js +2 -0
- package/dist/service/ses/command/send/send.command.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-content.d.ts +24 -0
- package/dist/service/ses/command/send/sim-ses-content.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-content.js +40 -0
- package/dist/service/ses/command/send/sim-ses-content.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-read-content.d.ts +19 -0
- package/dist/service/ses/command/send/sim-ses-read-content.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-read-content.js +2 -0
- package/dist/service/ses/command/send/sim-ses-read-content.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-send-email.d.ts +36 -0
- package/dist/service/ses/command/send/sim-ses-send-email.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-send-email.js +80 -0
- package/dist/service/ses/command/send/sim-ses-send-email.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-simple-content.d.ts +12 -0
- package/dist/service/ses/command/send/sim-ses-simple-content.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-simple-content.js +33 -0
- package/dist/service/ses/command/send/sim-ses-simple-content.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-template-send.d.ts +34 -0
- package/dist/service/ses/command/send/sim-ses-template-send.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-template-send.js +101 -0
- package/dist/service/ses/command/send/sim-ses-template-send.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.d.ts +12 -0
- package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.js +26 -0
- package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.d.ts +36 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.js +50 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.js.map +1 -0
- package/dist/service/ses/command/sim-ses-command.types.d.ts +8 -0
- package/dist/service/ses/command/sim-ses-command.types.d.ts.map +1 -0
- package/dist/service/ses/command/sim-ses-command.types.js +2 -0
- package/dist/service/ses/command/sim-ses-command.types.js.map +1 -0
- package/dist/service/ses/command/sim-ses-page.d.ts +20 -0
- package/dist/service/ses/command/sim-ses-page.d.ts.map +1 -0
- package/dist/service/ses/command/sim-ses-page.js +49 -0
- package/dist/service/ses/command/sim-ses-page.js.map +1 -0
- package/dist/service/ses/command/sim-ses-request-options.d.ts +12 -0
- package/dist/service/ses/command/sim-ses-request-options.d.ts.map +1 -0
- package/dist/service/ses/command/sim-ses-request-options.js +2 -0
- package/dist/service/ses/command/sim-ses-request-options.js.map +1 -0
- package/dist/service/ses/command/template/sim-ses-template-commands.d.ts +56 -0
- package/dist/service/ses/command/template/sim-ses-template-commands.d.ts.map +1 -0
- package/dist/service/ses/command/template/sim-ses-template-commands.js +96 -0
- package/dist/service/ses/command/template/sim-ses-template-commands.js.map +1 -0
- package/dist/service/ses/command/template/sim-ses-template-reporting.d.ts +14 -0
- package/dist/service/ses/command/template/sim-ses-template-reporting.d.ts.map +1 -0
- package/dist/service/ses/command/template/sim-ses-template-reporting.js +23 -0
- package/dist/service/ses/command/template/sim-ses-template-reporting.js.map +1 -0
- package/dist/service/ses/command/template/template.command.d.ts +98 -0
- package/dist/service/ses/command/template/template.command.d.ts.map +1 -0
- package/dist/service/ses/command/template/template.command.js +2 -0
- package/dist/service/ses/command/template/template.command.js.map +1 -0
- package/dist/service/ses/email/sim-ses-address.d.ts +15 -0
- package/dist/service/ses/email/sim-ses-address.d.ts.map +1 -0
- package/dist/service/ses/email/sim-ses-address.js +29 -0
- package/dist/service/ses/email/sim-ses-address.js.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email-store.d.ts +33 -0
- package/dist/service/ses/email/sim-ses-sent-email-store.d.ts.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email-store.js +42 -0
- package/dist/service/ses/email/sim-ses-sent-email-store.js.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email.d.ts +78 -0
- package/dist/service/ses/email/sim-ses-sent-email.d.ts.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email.js +61 -0
- package/dist/service/ses/email/sim-ses-sent-email.js.map +1 -0
- package/dist/service/ses/error/sim-ses.error.d.ts +70 -0
- package/dist/service/ses/error/sim-ses.error.d.ts.map +1 -0
- package/dist/service/ses/error/sim-ses.error.js +77 -0
- package/dist/service/ses/error/sim-ses.error.js.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-name.d.ts +34 -0
- package/dist/service/ses/identity/sim-ses-identity-name.d.ts.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-name.js +90 -0
- package/dist/service/ses/identity/sim-ses-identity-name.js.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-store.d.ts +62 -0
- package/dist/service/ses/identity/sim-ses-identity-store.d.ts.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-store.js +93 -0
- package/dist/service/ses/identity/sim-ses-identity-store.js.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity.d.ts +63 -0
- package/dist/service/ses/identity/sim-ses-identity.d.ts.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity.js +62 -0
- package/dist/service/ses/identity/sim-ses-identity.js.map +1 -0
- package/dist/service/ses/index.d.ts +13 -0
- package/dist/service/ses/index.d.ts.map +1 -0
- package/dist/service/ses/index.js +11 -0
- package/dist/service/ses/index.js.map +1 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.d.ts +18 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.d.ts.map +1 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.js +72 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.js.map +1 -0
- package/dist/service/ses/sim-ses-arn.d.ts +20 -0
- package/dist/service/ses/sim-ses-arn.d.ts.map +1 -0
- package/dist/service/ses/sim-ses-arn.js +25 -0
- package/dist/service/ses/sim-ses-arn.js.map +1 -0
- package/dist/service/ses/sim-ses-commands.d.ts +37 -0
- package/dist/service/ses/sim-ses-commands.d.ts.map +1 -0
- package/dist/service/ses/sim-ses-commands.js +75 -0
- package/dist/service/ses/sim-ses-commands.js.map +1 -0
- package/dist/service/ses/sim-ses-v2.d.ts +139 -0
- package/dist/service/ses/sim-ses-v2.d.ts.map +1 -0
- package/dist/service/ses/sim-ses-v2.js +195 -0
- package/dist/service/ses/sim-ses-v2.js.map +1 -0
- package/dist/service/ses/template/sim-ses-render.d.ts +16 -0
- package/dist/service/ses/template/sim-ses-render.d.ts.map +1 -0
- package/dist/service/ses/template/sim-ses-render.js +88 -0
- package/dist/service/ses/template/sim-ses-render.js.map +1 -0
- package/dist/service/ses/template/sim-ses-template-content.d.ts +28 -0
- package/dist/service/ses/template/sim-ses-template-content.d.ts.map +1 -0
- package/dist/service/ses/template/sim-ses-template-content.js +67 -0
- package/dist/service/ses/template/sim-ses-template-content.js.map +1 -0
- package/dist/service/ses/template/sim-ses-template-store.d.ts +47 -0
- package/dist/service/ses/template/sim-ses-template-store.d.ts.map +1 -0
- package/dist/service/ses/template/sim-ses-template-store.js +81 -0
- package/dist/service/ses/template/sim-ses-template-store.js.map +1 -0
- package/dist/service/ses/template/sim-ses-template.d.ts +38 -0
- package/dist/service/ses/template/sim-ses-template.d.ts.map +1 -0
- package/dist/service/ses/template/sim-ses-template.js +39 -0
- package/dist/service/ses/template/sim-ses-template.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-body.d.ts +10 -5
- package/dist/service/sqs/message/sim-sqs-message-body.d.ts.map +1 -1
- package/dist/service/sqs/message/sim-sqs-message-body.js +13 -6
- package/dist/service/sqs/message/sim-sqs-message-body.js.map +1 -1
- package/dist/util/factory/sim-records-event.factory.d.ts +60 -0
- package/dist/util/factory/sim-records-event.factory.d.ts.map +1 -0
- package/dist/util/factory/sim-records-event.factory.js +47 -0
- package/dist/util/factory/sim-records-event.factory.js.map +1 -0
- package/package.json +12 -2
- package/dist/service/cognito/command/sim-cognito-canonical-value.d.ts +0 -28
- package/dist/service/cognito/command/sim-cognito-canonical-value.d.ts.map +0 -1
- package/dist/service/cognito/command/sim-cognito-canonical-value.js +0 -44
- package/dist/service/cognito/command/sim-cognito-canonical-value.js.map +0 -1
- package/dist/service/cognito/command/sim-cognito-unsimulated-structure.d.ts +0 -23
- package/dist/service/cognito/command/sim-cognito-unsimulated-structure.d.ts.map +0 -1
- package/dist/service/cognito/command/sim-cognito-unsimulated-structure.js +0 -38
- package/dist/service/cognito/command/sim-cognito-unsimulated-structure.js.map +0 -1
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts +0 -45
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts.map +0 -1
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js +0 -46
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js.map +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { SimCloudWatchInvalidParameterValueException, SimCloudWatchMissingRequiredParameterException, } from "../error/sim-cloudwatch.error.js";
|
|
2
|
+
import { aggregateSimCloudWatchDatapoints, } from "./sim-cloudwatch-datapoint.js";
|
|
3
|
+
/**
|
|
4
|
+
* The shortest period real CloudWatch offers a standard-resolution metric.
|
|
5
|
+
*/
|
|
6
|
+
export const simCloudWatchMinimumPeriodSeconds = 60;
|
|
7
|
+
const millisecondsPerSecond = 1000;
|
|
8
|
+
/**
|
|
9
|
+
* Read a period, refusing one real CloudWatch would refuse.
|
|
10
|
+
*
|
|
11
|
+
* Anything shorter than a minute, or not a whole number of minutes, belongs to
|
|
12
|
+
* high-resolution metrics, which this simulation does not store.
|
|
13
|
+
*/
|
|
14
|
+
export function requiredSimCloudWatchPeriod(period) {
|
|
15
|
+
if (period === undefined) {
|
|
16
|
+
throw new SimCloudWatchMissingRequiredParameterException("The parameter Period must be present.");
|
|
17
|
+
}
|
|
18
|
+
if (!Number.isSafeInteger(period) ||
|
|
19
|
+
period < simCloudWatchMinimumPeriodSeconds ||
|
|
20
|
+
period % simCloudWatchMinimumPeriodSeconds !== 0) {
|
|
21
|
+
throw new SimCloudWatchInvalidParameterValueException(`The parameter Period must be a multiple of ` +
|
|
22
|
+
`${simCloudWatchMinimumPeriodSeconds} seconds and at least ` +
|
|
23
|
+
`${simCloudWatchMinimumPeriodSeconds}. High-resolution metrics are ` +
|
|
24
|
+
`not simulated.`);
|
|
25
|
+
}
|
|
26
|
+
return period;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The instant the period holding a timestamp begins.
|
|
30
|
+
*
|
|
31
|
+
* Periods are measured from the epoch rather than from the request's start
|
|
32
|
+
* time, so the same observation lands in the same bucket whatever window is
|
|
33
|
+
* asked for. That is what real CloudWatch does for every period that divides an
|
|
34
|
+
* hour, which is every period a test is likely to ask for.
|
|
35
|
+
*/
|
|
36
|
+
export function simCloudWatchPeriodStart(timestamp, periodSeconds) {
|
|
37
|
+
const periodMilliseconds = periodSeconds * millisecondsPerSecond;
|
|
38
|
+
return Math.floor(timestamp / periodMilliseconds) * periodMilliseconds;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Combine datapoints into one aggregate per period holding any, earliest
|
|
42
|
+
* first.
|
|
43
|
+
*
|
|
44
|
+
* Bucketing and combining are one step rather than two so that a period can
|
|
45
|
+
* only exist here because something was written into it. A caller therefore
|
|
46
|
+
* gets an aggregate for every period it is given, and has no empty case to
|
|
47
|
+
* handle that could never arise.
|
|
48
|
+
*/
|
|
49
|
+
export function simCloudWatchPeriodAggregates(datapoints, periodSeconds) {
|
|
50
|
+
const buckets = new Map();
|
|
51
|
+
for (const datapoint of datapoints) {
|
|
52
|
+
const start = simCloudWatchPeriodStart(datapoint.timestamp, periodSeconds);
|
|
53
|
+
const bucket = buckets.get(start);
|
|
54
|
+
if (bucket === undefined) {
|
|
55
|
+
buckets.set(start, [datapoint]);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
bucket.push(datapoint);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return new Map(buckets
|
|
62
|
+
.entries()
|
|
63
|
+
.toArray()
|
|
64
|
+
.toSorted(([left], [right]) => left - right)
|
|
65
|
+
.map(([start, inPeriod]) => [
|
|
66
|
+
start,
|
|
67
|
+
aggregateSimCloudWatchDatapoints(inPeriod),
|
|
68
|
+
]));
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=sim-cloudwatch-period.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-period.js","sourceRoot":"","sources":["../../../../src/service/cloudwatch/metric/sim-cloudwatch-period.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2CAA2C,EAC3C,8CAA8C,GAC/C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,gCAAgC,GAGjC,MAAM,+BAA+B,CAAC;AAEvC;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAEpD,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CAAC,MAAe;IACzD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,MAAM,IAAI,8CAA8C,CACtD,uCAAuC,CACxC,CAAC;IACJ,CAAC;IAED,IACE,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC;QAC7B,MAAM,GAAG,iCAAiC;QAC1C,MAAM,GAAG,iCAAiC,KAAK,CAAC,EAChD,CAAC;QACD,MAAM,IAAI,2CAA2C,CACnD,6CAA6C;YAC3C,GAAG,iCAAiC,wBAAwB;YAC5D,GAAG,iCAAiC,gCAAgC;YACpE,gBAAgB,CACnB,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CACtC,SAAiB,EACjB,aAAqB;IAErB,MAAM,kBAAkB,GAAG,aAAa,GAAG,qBAAqB,CAAC;IAEjE,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;AACzE,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,6BAA6B,CAC3C,UAA6C,EAC7C,aAAqB;IAErB,MAAM,OAAO,GAAG,IAAI,GAAG,EAGpB,CAAC;IAEJ,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,KAAK,GAAG,wBAAwB,CAAC,SAAS,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAElC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;QAClC,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;IAED,OAAO,IAAI,GAAG,CACZ,OAAO;SACJ,OAAO,EAAE;SACT,OAAO,EAAE;SACT,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,IAAI,GAAG,KAAK,CAAC;SAC3C,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC;QAC1B,KAAK;QACL,gCAAgC,CAAC,QAAQ,CAAC;KAC3C,CAAC,CACL,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SimCloudWatchAggregate } from "./sim-cloudwatch-datapoint.js";
|
|
2
|
+
/**
|
|
3
|
+
* The statistics real CloudWatch can answer from a stored metric.
|
|
4
|
+
*
|
|
5
|
+
* Percentiles are the notable absence. They need the individual values behind
|
|
6
|
+
* a period, which a `StatisticValues` datum never carries, so CloudWatch itself
|
|
7
|
+
* cannot report one for a metric published that way. Rather than answer for
|
|
8
|
+
* some metrics and not others, this simulation answers for none and says so.
|
|
9
|
+
*/
|
|
10
|
+
export declare const simCloudWatchStatistics: readonly ["SampleCount", "Average", "Sum", "Minimum", "Maximum"];
|
|
11
|
+
export type SimCloudWatchStatistic = (typeof simCloudWatchStatistics)[number];
|
|
12
|
+
/**
|
|
13
|
+
* Read a statistic name, refusing one CloudWatch does not offer.
|
|
14
|
+
*/
|
|
15
|
+
export declare function requiredSimCloudWatchStatistic(statistic: string): SimCloudWatchStatistic;
|
|
16
|
+
/**
|
|
17
|
+
* Read one statistic out of a period's combined observations.
|
|
18
|
+
*/
|
|
19
|
+
export declare function simCloudWatchStatisticValue(aggregate: SimCloudWatchAggregate, statistic: SimCloudWatchStatistic): number;
|
|
20
|
+
//# sourceMappingURL=sim-cloudwatch-statistic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-statistic.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudwatch/metric/sim-cloudwatch-statistic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE5E;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,YAClC,aAAa,EACb,SAAS,EACT,KAAK,EACL,SAAS,EACT,SAAS,CACD,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,MAAM,GAChB,sBAAsB,CAYxB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,sBAAsB,EACjC,SAAS,EAAE,sBAAsB,GAChC,MAAM,CAkBR"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { SimCloudWatchInvalidParameterValueException } from "../error/sim-cloudwatch.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The statistics real CloudWatch can answer from a stored metric.
|
|
4
|
+
*
|
|
5
|
+
* Percentiles are the notable absence. They need the individual values behind
|
|
6
|
+
* a period, which a `StatisticValues` datum never carries, so CloudWatch itself
|
|
7
|
+
* cannot report one for a metric published that way. Rather than answer for
|
|
8
|
+
* some metrics and not others, this simulation answers for none and says so.
|
|
9
|
+
*/
|
|
10
|
+
export const simCloudWatchStatistics = [
|
|
11
|
+
"SampleCount",
|
|
12
|
+
"Average",
|
|
13
|
+
"Sum",
|
|
14
|
+
"Minimum",
|
|
15
|
+
"Maximum",
|
|
16
|
+
];
|
|
17
|
+
/**
|
|
18
|
+
* Read a statistic name, refusing one CloudWatch does not offer.
|
|
19
|
+
*/
|
|
20
|
+
export function requiredSimCloudWatchStatistic(statistic) {
|
|
21
|
+
const found = simCloudWatchStatistics.find((one) => one === statistic);
|
|
22
|
+
if (found === undefined) {
|
|
23
|
+
throw new SimCloudWatchInvalidParameterValueException(`The statistic ${statistic} is not one this simulation reports. ` +
|
|
24
|
+
`Percentiles and other extended statistics are not simulated; use ` +
|
|
25
|
+
`one of ${simCloudWatchStatistics.join(", ")}.`);
|
|
26
|
+
}
|
|
27
|
+
return found;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Read one statistic out of a period's combined observations.
|
|
31
|
+
*/
|
|
32
|
+
export function simCloudWatchStatisticValue(aggregate, statistic) {
|
|
33
|
+
switch (statistic) {
|
|
34
|
+
case "SampleCount": {
|
|
35
|
+
return aggregate.sampleCount;
|
|
36
|
+
}
|
|
37
|
+
case "Average": {
|
|
38
|
+
return aggregate.average;
|
|
39
|
+
}
|
|
40
|
+
case "Sum": {
|
|
41
|
+
return aggregate.sum;
|
|
42
|
+
}
|
|
43
|
+
case "Minimum": {
|
|
44
|
+
return aggregate.minimum;
|
|
45
|
+
}
|
|
46
|
+
case "Maximum": {
|
|
47
|
+
return aggregate.maximum;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=sim-cloudwatch-statistic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-statistic.js","sourceRoot":"","sources":["../../../../src/service/cloudwatch/metric/sim-cloudwatch-statistic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2CAA2C,EAAE,MAAM,kCAAkC,CAAC;AAG/F;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,aAAa;IACb,SAAS;IACT,KAAK;IACL,SAAS;IACT,SAAS;CACD,CAAC;AAIX;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAC5C,SAAiB;IAEjB,MAAM,KAAK,GAAG,uBAAuB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC;IAEvE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,2CAA2C,CACnD,iBAAiB,SAAS,uCAAuC;YAC/D,mEAAmE;YACnE,UAAU,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAClD,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2BAA2B,CACzC,SAAiC,EACjC,SAAiC;IAEjC,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,aAAa,EAAE,CAAC;YACnB,OAAO,SAAS,CAAC,WAAW,CAAC;QAC/B,CAAC;QACD,KAAK,SAAS,EAAE,CAAC;YACf,OAAO,SAAS,CAAC,OAAO,CAAC;QAC3B,CAAC;QACD,KAAK,KAAK,EAAE,CAAC;YACX,OAAO,SAAS,CAAC,GAAG,CAAC;QACvB,CAAC;QACD,KAAK,SAAS,EAAE,CAAC;YACf,OAAO,SAAS,CAAC,OAAO,CAAC;QAC3B,CAAC;QACD,KAAK,SAAS,EAAE,CAAC;YACf,OAAO,SAAS,CAAC,OAAO,CAAC;QAC3B,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The window a metric query asks about, in milliseconds since the epoch.
|
|
3
|
+
*
|
|
4
|
+
* The start is included and the end is not, which is how real CloudWatch reads
|
|
5
|
+
* the two: a request ending on the minute does not pick up that minute's
|
|
6
|
+
* datapoint.
|
|
7
|
+
*/
|
|
8
|
+
export interface SimCloudWatchTimeRange {
|
|
9
|
+
readonly startTime: number;
|
|
10
|
+
readonly endTime: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Read the window a query asks about, refusing one real CloudWatch would.
|
|
14
|
+
*/
|
|
15
|
+
export declare function requiredSimCloudWatchTimeRange(startTime?: Date, endTime?: Date): SimCloudWatchTimeRange;
|
|
16
|
+
//# sourceMappingURL=sim-cloudwatch-time-range.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-time-range.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudwatch/metric/sim-cloudwatch-time-range.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,SAAS,CAAC,EAAE,IAAI,EAChB,OAAO,CAAC,EAAE,IAAI,GACb,sBAAsB,CAaxB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SimCloudWatchInvalidParameterValueException, SimCloudWatchMissingRequiredParameterException, } from "../error/sim-cloudwatch.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* Read the window a query asks about, refusing one real CloudWatch would.
|
|
4
|
+
*/
|
|
5
|
+
export function requiredSimCloudWatchTimeRange(startTime, endTime) {
|
|
6
|
+
const range = {
|
|
7
|
+
startTime: requiredTime("StartTime", startTime),
|
|
8
|
+
endTime: requiredTime("EndTime", endTime),
|
|
9
|
+
};
|
|
10
|
+
if (range.startTime >= range.endTime) {
|
|
11
|
+
throw new SimCloudWatchInvalidParameterValueException("The parameter StartTime must be earlier than EndTime.");
|
|
12
|
+
}
|
|
13
|
+
return range;
|
|
14
|
+
}
|
|
15
|
+
function requiredTime(field, time) {
|
|
16
|
+
if (time === undefined) {
|
|
17
|
+
throw new SimCloudWatchMissingRequiredParameterException(`The parameter ${field} must be present.`);
|
|
18
|
+
}
|
|
19
|
+
const milliseconds = time.getTime();
|
|
20
|
+
if (Number.isNaN(milliseconds)) {
|
|
21
|
+
throw new SimCloudWatchInvalidParameterValueException(`The parameter ${field} must be a valid date.`);
|
|
22
|
+
}
|
|
23
|
+
return milliseconds;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=sim-cloudwatch-time-range.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-time-range.js","sourceRoot":"","sources":["../../../../src/service/cloudwatch/metric/sim-cloudwatch-time-range.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2CAA2C,EAC3C,8CAA8C,GAC/C,MAAM,kCAAkC,CAAC;AAc1C;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAC5C,SAAgB,EAChB,OAAc;IAEd,MAAM,KAAK,GAAG;QACZ,SAAS,EAAE,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC;QAC/C,OAAO,EAAE,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC;KAC1C,CAAC;IAEF,IAAI,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;QACrC,MAAM,IAAI,2CAA2C,CACnD,uDAAuD,CACxD,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,YAAY,CAAC,KAAa,EAAE,IAAsB;IACzD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,8CAA8C,CACtD,iBAAiB,KAAK,mBAAmB,CAC1C,CAAC;IACJ,CAAC;IAED,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAEpC,IAAI,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,2CAA2C,CACnD,iBAAiB,KAAK,wBAAwB,CAC/C,CAAC;IACJ,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The units real CloudWatch accepts, which are a closed set rather than free
|
|
3
|
+
* text: `StandardUnit` in the API model.
|
|
4
|
+
*
|
|
5
|
+
* A value outside it is refused rather than stored, because a metric published
|
|
6
|
+
* in a unit CloudWatch does not have would be refused in an account, and one
|
|
7
|
+
* read back by such a unit would match nothing here while failing there.
|
|
8
|
+
*/
|
|
9
|
+
export declare const simCloudWatchUnits: readonly ["Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Count", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second", "None"];
|
|
10
|
+
export type SimCloudWatchUnit = (typeof simCloudWatchUnits)[number];
|
|
11
|
+
/**
|
|
12
|
+
* Read a unit, refusing one real CloudWatch does not have.
|
|
13
|
+
*
|
|
14
|
+
* An absent unit stays absent: a metric may be published without one, and a
|
|
15
|
+
* query naming none reads whatever units the metric holds.
|
|
16
|
+
*/
|
|
17
|
+
export declare function simCloudWatchUnitOrUndefined(field: string, unit?: string): SimCloudWatchUnit | undefined;
|
|
18
|
+
//# sourceMappingURL=sim-cloudwatch-unit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-unit.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudwatch/metric/sim-cloudwatch-unit.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,YAC7B,SAAS,EACT,cAAc,EACd,cAAc,EACd,OAAO,EACP,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,MAAM,EACN,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,MAAM,CACE,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,MAAM,GACZ,iBAAiB,GAAG,SAAS,CAe/B"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { SimCloudWatchInvalidParameterValueException } from "../error/sim-cloudwatch.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The units real CloudWatch accepts, which are a closed set rather than free
|
|
4
|
+
* text: `StandardUnit` in the API model.
|
|
5
|
+
*
|
|
6
|
+
* A value outside it is refused rather than stored, because a metric published
|
|
7
|
+
* in a unit CloudWatch does not have would be refused in an account, and one
|
|
8
|
+
* read back by such a unit would match nothing here while failing there.
|
|
9
|
+
*/
|
|
10
|
+
export const simCloudWatchUnits = [
|
|
11
|
+
"Seconds",
|
|
12
|
+
"Microseconds",
|
|
13
|
+
"Milliseconds",
|
|
14
|
+
"Bytes",
|
|
15
|
+
"Kilobytes",
|
|
16
|
+
"Megabytes",
|
|
17
|
+
"Gigabytes",
|
|
18
|
+
"Terabytes",
|
|
19
|
+
"Bits",
|
|
20
|
+
"Kilobits",
|
|
21
|
+
"Megabits",
|
|
22
|
+
"Gigabits",
|
|
23
|
+
"Terabits",
|
|
24
|
+
"Percent",
|
|
25
|
+
"Count",
|
|
26
|
+
"Bytes/Second",
|
|
27
|
+
"Kilobytes/Second",
|
|
28
|
+
"Megabytes/Second",
|
|
29
|
+
"Gigabytes/Second",
|
|
30
|
+
"Terabytes/Second",
|
|
31
|
+
"Bits/Second",
|
|
32
|
+
"Kilobits/Second",
|
|
33
|
+
"Megabits/Second",
|
|
34
|
+
"Gigabits/Second",
|
|
35
|
+
"Terabits/Second",
|
|
36
|
+
"Count/Second",
|
|
37
|
+
"None",
|
|
38
|
+
];
|
|
39
|
+
/**
|
|
40
|
+
* Read a unit, refusing one real CloudWatch does not have.
|
|
41
|
+
*
|
|
42
|
+
* An absent unit stays absent: a metric may be published without one, and a
|
|
43
|
+
* query naming none reads whatever units the metric holds.
|
|
44
|
+
*/
|
|
45
|
+
export function simCloudWatchUnitOrUndefined(field, unit) {
|
|
46
|
+
if (unit === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
const found = simCloudWatchUnits.find((one) => one === unit);
|
|
50
|
+
if (found === undefined) {
|
|
51
|
+
throw new SimCloudWatchInvalidParameterValueException(`The parameter ${field} must be one of the units CloudWatch has, and ` +
|
|
52
|
+
`${unit} is not one of them.`);
|
|
53
|
+
}
|
|
54
|
+
return found;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=sim-cloudwatch-unit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-unit.js","sourceRoot":"","sources":["../../../../src/service/cloudwatch/metric/sim-cloudwatch-unit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2CAA2C,EAAE,MAAM,kCAAkC,CAAC;AAE/F;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,SAAS;IACT,cAAc;IACd,cAAc;IACd,OAAO;IACP,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,MAAM;IACN,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,SAAS;IACT,OAAO;IACP,cAAc;IACd,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,aAAa;IACb,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,cAAc;IACd,MAAM;CACE,CAAC;AAIX;;;;;GAKG;AACH,MAAM,UAAU,4BAA4B,CAC1C,KAAa,EACb,IAAa;IAEb,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC;IAE7D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,2CAA2C,CACnD,iBAAiB,KAAK,gDAAgD;YACpE,GAAG,IAAI,sBAAsB,CAChC,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type SimSdkCommandRoute, type SimSdkCommandRouter } from "../../../sdk/index.js";
|
|
2
|
+
import type { SimCloudWatch } from "../sim-cloudwatch.js";
|
|
3
|
+
/**
|
|
4
|
+
* Routes intercepted SDK Commands to one scoped simulated CloudWatch.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SimCloudWatchSdkCommandRouter implements SimSdkCommandRouter {
|
|
7
|
+
#private;
|
|
8
|
+
constructor(simCloudWatch: SimCloudWatch);
|
|
9
|
+
/**
|
|
10
|
+
* The SDK Command names simulated CloudWatch can handle.
|
|
11
|
+
*/
|
|
12
|
+
supportedCommandNames(): readonly string[];
|
|
13
|
+
/**
|
|
14
|
+
* Get the route for an SDK Command name, if simulated CloudWatch supports it.
|
|
15
|
+
*/
|
|
16
|
+
route(commandName: string): SimSdkCommandRoute | undefined;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=sim-cloudwatch-sdk-command-router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-sdk-command-router.d.ts","sourceRoot":"","sources":["../../../../src/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAc/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,qBAAa,6BAA8B,YAAW,mBAAmB;;IAGvE,YAAY,aAAa,EAAE,aAAa,EA2EvC;IAED;;OAEG;IACH,qBAAqB,IAAI,SAAS,MAAM,EAAE,CAEzC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAEzD;CACF"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { simSdkCallerOptions, } from "../../../sdk/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Routes intercepted SDK Commands to one scoped simulated CloudWatch.
|
|
4
|
+
*/
|
|
5
|
+
export class SimCloudWatchSdkCommandRouter {
|
|
6
|
+
#routes;
|
|
7
|
+
constructor(simCloudWatch) {
|
|
8
|
+
this.#routes = new Map([
|
|
9
|
+
[
|
|
10
|
+
"PutMetricDataCommand",
|
|
11
|
+
async (command, context) => await simCloudWatch.putMetricData(command, simSdkCallerOptions(context)),
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"ListMetricsCommand",
|
|
15
|
+
async (command, context) => await simCloudWatch.listMetrics(command, simSdkCallerOptions(context)),
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"GetMetricStatisticsCommand",
|
|
19
|
+
async (command, context) => await simCloudWatch.getMetricStatistics(command, simSdkCallerOptions(context)),
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"GetMetricDataCommand",
|
|
23
|
+
async (command, context) => await simCloudWatch.getMetricData(command, simSdkCallerOptions(context)),
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"PutMetricAlarmCommand",
|
|
27
|
+
async (command, context) => await simCloudWatch.putMetricAlarm(command, simSdkCallerOptions(context)),
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"DescribeAlarmsCommand",
|
|
31
|
+
async (command, context) => await simCloudWatch.describeAlarms(command, simSdkCallerOptions(context)),
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"DeleteAlarmsCommand",
|
|
35
|
+
async (command, context) => await simCloudWatch.deleteAlarms(command, simSdkCallerOptions(context)),
|
|
36
|
+
],
|
|
37
|
+
[
|
|
38
|
+
"SetAlarmStateCommand",
|
|
39
|
+
async (command, context) => await simCloudWatch.setAlarmState(command, simSdkCallerOptions(context)),
|
|
40
|
+
],
|
|
41
|
+
[
|
|
42
|
+
"DescribeAlarmHistoryCommand",
|
|
43
|
+
async (command, context) => await simCloudWatch.describeAlarmHistory(command, simSdkCallerOptions(context)),
|
|
44
|
+
],
|
|
45
|
+
]);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The SDK Command names simulated CloudWatch can handle.
|
|
49
|
+
*/
|
|
50
|
+
supportedCommandNames() {
|
|
51
|
+
return this.#routes.keys().toArray();
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Get the route for an SDK Command name, if simulated CloudWatch supports it.
|
|
55
|
+
*/
|
|
56
|
+
route(commandName) {
|
|
57
|
+
return this.#routes.get(commandName);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=sim-cloudwatch-sdk-command-router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-sdk-command-router.js","sourceRoot":"","sources":["../../../../src/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAGpB,MAAM,uBAAuB,CAAC;AAgB/B;;GAEG;AACH,MAAM,OAAO,6BAA6B;IAC/B,OAAO,CAA0C;IAE1D,YAAY,aAA4B;QACtC,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,CAA6B;YACjD;gBACE,sBAAsB;gBACtB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,aAAa,CAAC,aAAa,CAC/B,OAAkC,EAClC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;aACJ;YACD;gBACE,oBAAoB;gBACpB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,aAAa,CAAC,WAAW,CAC7B,OAAgC,EAChC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;aACJ;YACD;gBACE,4BAA4B;gBAC5B,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,aAAa,CAAC,mBAAmB,CACrC,OAAwC,EACxC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;aACJ;YACD;gBACE,sBAAsB;gBACtB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,aAAa,CAAC,aAAa,CAC/B,OAAkC,EAClC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;aACJ;YACD;gBACE,uBAAuB;gBACvB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,aAAa,CAAC,cAAc,CAChC,OAAmC,EACnC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;aACJ;YACD;gBACE,uBAAuB;gBACvB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,aAAa,CAAC,cAAc,CAChC,OAAmC,EACnC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;aACJ;YACD;gBACE,qBAAqB;gBACrB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,aAAa,CAAC,YAAY,CAC9B,OAAiC,EACjC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;aACJ;YACD;gBACE,sBAAsB;gBACtB,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,aAAa,CAAC,aAAa,CAC/B,OAAkC,EAClC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;aACJ;YACD;gBACE,6BAA6B;gBAC7B,KAAK,EAAE,OAAO,EAAE,OAAO,EAAoB,EAAE,CAC3C,MAAM,aAAa,CAAC,oBAAoB,CACtC,OAAyC,EACzC,mBAAmB,CAAC,OAAO,CAAC,CAC7B;aACJ;SACF,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,qBAAqB;QACnB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAmB;QACvB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;CACF"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type BackgroundScheduler } from "../../util/background/background.js";
|
|
2
|
+
import type { SimAwsAccountRegionScope } from "../aws/sim-aws-account-region-scope.js";
|
|
3
|
+
import { type SimIamInterServiceAuthZ } from "../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
4
|
+
import { SimCloudWatchAlarmActions } from "./alarm/action/sim-cloudwatch-alarm-actions.js";
|
|
5
|
+
import { type SimCloudWatchAlarmTargets } from "./alarm/action/sim-cloudwatch-alarm-targets.js";
|
|
6
|
+
import { SimCloudWatchAlarmStore } from "./alarm/sim-cloudwatch-alarm-store.js";
|
|
7
|
+
import { SimCloudWatchAlarmReads } from "./command/alarm/sim-cloudwatch-alarm-reads.js";
|
|
8
|
+
import { SimCloudWatchAlarmWrites } from "./command/alarm/sim-cloudwatch-alarm-writes.js";
|
|
9
|
+
import { SimCloudWatchSetAlarmState } from "./command/alarm/sim-cloudwatch-set-alarm-state.js";
|
|
10
|
+
import { SimCloudWatchPutMetricData } from "./command/data/sim-cloudwatch-put-metric-data.js";
|
|
11
|
+
import { SimCloudWatchGetMetricData } from "./command/query/sim-cloudwatch-get-metric-data.js";
|
|
12
|
+
import { SimCloudWatchGetMetricStatistics } from "./command/query/sim-cloudwatch-get-metric-statistics.js";
|
|
13
|
+
import { SimCloudWatchListMetrics } from "./command/query/sim-cloudwatch-list-metrics.js";
|
|
14
|
+
import { SimCloudWatchMetricStore } from "./metric/sim-cloudwatch-metric-store.js";
|
|
15
|
+
export interface SimCloudWatchProperties {
|
|
16
|
+
readonly accountRegionScope?: SimAwsAccountRegionScope;
|
|
17
|
+
readonly iam?: SimIamInterServiceAuthZ;
|
|
18
|
+
readonly background?: BackgroundScheduler;
|
|
19
|
+
/**
|
|
20
|
+
* Where an alarm's actions reach. A SimCloudWatch built on its own has no
|
|
21
|
+
* other simulated services, so it holds alarms and notifies none of them.
|
|
22
|
+
*/
|
|
23
|
+
readonly alarmTargets?: SimCloudWatchAlarmTargets;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The collaborators one simulated CloudWatch scope is built from.
|
|
27
|
+
*
|
|
28
|
+
* Held apart from SimCloudWatch for the same reason simulated CloudWatch Logs
|
|
29
|
+
* holds its own: the facade is one method per SDK Command and grows by one with
|
|
30
|
+
* every operation added, so the wiring deciding what those methods delegate to
|
|
31
|
+
* needs somewhere it is not competing for room with them.
|
|
32
|
+
*/
|
|
33
|
+
export declare class SimCloudWatchCommands {
|
|
34
|
+
readonly metrics: SimCloudWatchMetricStore;
|
|
35
|
+
readonly putMetricData: SimCloudWatchPutMetricData;
|
|
36
|
+
readonly listMetrics: SimCloudWatchListMetrics;
|
|
37
|
+
readonly getMetricStatistics: SimCloudWatchGetMetricStatistics;
|
|
38
|
+
readonly getMetricData: SimCloudWatchGetMetricData;
|
|
39
|
+
readonly alarms: SimCloudWatchAlarmStore;
|
|
40
|
+
readonly alarmWrites: SimCloudWatchAlarmWrites;
|
|
41
|
+
readonly alarmReads: SimCloudWatchAlarmReads;
|
|
42
|
+
readonly setAlarmState: SimCloudWatchSetAlarmState;
|
|
43
|
+
readonly alarmActions: SimCloudWatchAlarmActions;
|
|
44
|
+
readonly background: BackgroundScheduler;
|
|
45
|
+
constructor(properties?: SimCloudWatchProperties);
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=sim-cloudwatch-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-commands.d.ts","sourceRoot":"","sources":["../../../src/service/cloudwatch/sim-cloudwatch-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEvF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;AAE/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;AAC/F,OAAO,EAAE,gCAAgC,EAAE,MAAM,yDAAyD,CAAC;AAC3G,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAEnF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,wBAAwB,CAAC;IACvD,QAAQ,CAAC,GAAG,CAAC,EAAE,uBAAuB,CAAC;IACvC,QAAQ,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IAE1C;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,yBAAyB,CAAC;CACnD;AAED;;;;;;;GAOG;AACH,qBAAa,qBAAqB;IAChC,QAAQ,CAAC,OAAO,EAAE,wBAAwB,CAAC;IAC3C,QAAQ,CAAC,aAAa,EAAE,0BAA0B,CAAC;IACnD,QAAQ,CAAC,WAAW,EAAE,wBAAwB,CAAC;IAC/C,QAAQ,CAAC,mBAAmB,EAAE,gCAAgC,CAAC;IAC/D,QAAQ,CAAC,aAAa,EAAE,0BAA0B,CAAC;IACnD,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC;IACzC,QAAQ,CAAC,WAAW,EAAE,wBAAwB,CAAC;IAC/C,QAAQ,CAAC,UAAU,EAAE,uBAAuB,CAAC;IAC7C,QAAQ,CAAC,aAAa,EAAE,0BAA0B,CAAC;IACnD,QAAQ,CAAC,YAAY,EAAE,yBAAyB,CAAC;IACjD,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IAEzC,YAAY,UAAU,GAAE,uBAA4B,EAuDnD;CACF"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { BackgroundTasks, } from "../../util/background/background.js";
|
|
2
|
+
import { simAwsAccountRegionScopeFactory } from "../aws/sim-aws-account-region-scope.factory.js";
|
|
3
|
+
import { SimIamAllowAllAuth, } from "../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
4
|
+
import { SimCloudWatchAlarmActions } from "./alarm/action/sim-cloudwatch-alarm-actions.js";
|
|
5
|
+
import { SimCloudWatchNoAlarmTargets, } from "./alarm/action/sim-cloudwatch-alarm-targets.js";
|
|
6
|
+
import { SimCloudWatchAlarmSchedule } from "./alarm/sim-cloudwatch-alarm-schedule.js";
|
|
7
|
+
import { SimCloudWatchAlarmStore } from "./alarm/sim-cloudwatch-alarm-store.js";
|
|
8
|
+
import { SimCloudWatchAlarmReads } from "./command/alarm/sim-cloudwatch-alarm-reads.js";
|
|
9
|
+
import { SimCloudWatchAlarmWrites } from "./command/alarm/sim-cloudwatch-alarm-writes.js";
|
|
10
|
+
import { SimCloudWatchSetAlarmState } from "./command/alarm/sim-cloudwatch-set-alarm-state.js";
|
|
11
|
+
import { SimCloudWatchAuthorizer } from "./command/authorize/sim-cloudwatch-authorizer.js";
|
|
12
|
+
import { SimCloudWatchPutMetricData } from "./command/data/sim-cloudwatch-put-metric-data.js";
|
|
13
|
+
import { SimCloudWatchGetMetricData } from "./command/query/sim-cloudwatch-get-metric-data.js";
|
|
14
|
+
import { SimCloudWatchGetMetricStatistics } from "./command/query/sim-cloudwatch-get-metric-statistics.js";
|
|
15
|
+
import { SimCloudWatchListMetrics } from "./command/query/sim-cloudwatch-list-metrics.js";
|
|
16
|
+
import { SimCloudWatchMetricStore } from "./metric/sim-cloudwatch-metric-store.js";
|
|
17
|
+
/**
|
|
18
|
+
* The collaborators one simulated CloudWatch scope is built from.
|
|
19
|
+
*
|
|
20
|
+
* Held apart from SimCloudWatch for the same reason simulated CloudWatch Logs
|
|
21
|
+
* holds its own: the facade is one method per SDK Command and grows by one with
|
|
22
|
+
* every operation added, so the wiring deciding what those methods delegate to
|
|
23
|
+
* needs somewhere it is not competing for room with them.
|
|
24
|
+
*/
|
|
25
|
+
export class SimCloudWatchCommands {
|
|
26
|
+
metrics;
|
|
27
|
+
putMetricData;
|
|
28
|
+
listMetrics;
|
|
29
|
+
getMetricStatistics;
|
|
30
|
+
getMetricData;
|
|
31
|
+
alarms;
|
|
32
|
+
alarmWrites;
|
|
33
|
+
alarmReads;
|
|
34
|
+
setAlarmState;
|
|
35
|
+
alarmActions;
|
|
36
|
+
background;
|
|
37
|
+
constructor(properties = {}) {
|
|
38
|
+
const { accountRegionScope = simAwsAccountRegionScopeFactory.make(), iam = new SimIamAllowAllAuth(), background = new BackgroundTasks(), alarmTargets = new SimCloudWatchNoAlarmTargets(), } = properties;
|
|
39
|
+
const authorizer = new SimCloudWatchAuthorizer({ iam, accountRegionScope });
|
|
40
|
+
const metrics = new SimCloudWatchMetricStore();
|
|
41
|
+
const alarms = new SimCloudWatchAlarmStore();
|
|
42
|
+
const alarmActions = new SimCloudWatchAlarmActions({
|
|
43
|
+
targets: alarmTargets,
|
|
44
|
+
accountRegionScope,
|
|
45
|
+
});
|
|
46
|
+
const schedule = new SimCloudWatchAlarmSchedule({
|
|
47
|
+
metrics,
|
|
48
|
+
actions: alarmActions,
|
|
49
|
+
background,
|
|
50
|
+
});
|
|
51
|
+
this.background = background;
|
|
52
|
+
this.metrics = metrics;
|
|
53
|
+
this.putMetricData = new SimCloudWatchPutMetricData({
|
|
54
|
+
metrics,
|
|
55
|
+
authorizer,
|
|
56
|
+
clock: background,
|
|
57
|
+
});
|
|
58
|
+
this.listMetrics = new SimCloudWatchListMetrics({
|
|
59
|
+
metrics,
|
|
60
|
+
authorizer,
|
|
61
|
+
clock: background,
|
|
62
|
+
});
|
|
63
|
+
this.getMetricStatistics = new SimCloudWatchGetMetricStatistics({
|
|
64
|
+
metrics,
|
|
65
|
+
authorizer,
|
|
66
|
+
});
|
|
67
|
+
this.getMetricData = new SimCloudWatchGetMetricData({
|
|
68
|
+
metrics,
|
|
69
|
+
authorizer,
|
|
70
|
+
});
|
|
71
|
+
this.alarms = alarms;
|
|
72
|
+
this.alarmActions = alarmActions;
|
|
73
|
+
const alarmContext = {
|
|
74
|
+
alarms,
|
|
75
|
+
schedule,
|
|
76
|
+
actions: alarmActions,
|
|
77
|
+
authorizer,
|
|
78
|
+
accountRegionScope,
|
|
79
|
+
clock: background,
|
|
80
|
+
};
|
|
81
|
+
this.alarmWrites = new SimCloudWatchAlarmWrites(alarmContext);
|
|
82
|
+
this.setAlarmState = new SimCloudWatchSetAlarmState(alarmContext);
|
|
83
|
+
this.alarmReads = new SimCloudWatchAlarmReads(alarmContext);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=sim-cloudwatch-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-commands.js","sourceRoot":"","sources":["../../../src/service/cloudwatch/sim-cloudwatch-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,GAChB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EACL,kBAAkB,GAEnB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EACL,2BAA2B,GAE5B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;AAC/F,OAAO,EAAE,gCAAgC,EAAE,MAAM,yDAAyD,CAAC;AAC3G,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAcnF;;;;;;;GAOG;AACH,MAAM,OAAO,qBAAqB;IACvB,OAAO,CAA2B;IAClC,aAAa,CAA6B;IAC1C,WAAW,CAA2B;IACtC,mBAAmB,CAAmC;IACtD,aAAa,CAA6B;IAC1C,MAAM,CAA0B;IAChC,WAAW,CAA2B;IACtC,UAAU,CAA0B;IACpC,aAAa,CAA6B;IAC1C,YAAY,CAA4B;IACxC,UAAU,CAAsB;IAEzC,YAAY,UAAU,GAA4B,EAAE;QAClD,MAAM,EACJ,kBAAkB,GAAG,+BAA+B,CAAC,IAAI,EAAE,EAC3D,GAAG,GAAG,IAAI,kBAAkB,EAAE,EAC9B,UAAU,GAAG,IAAI,eAAe,EAAE,EAClC,YAAY,GAAG,IAAI,2BAA2B,EAAE,GACjD,GAAG,UAAU,CAAC;QAEf,MAAM,UAAU,GAAG,IAAI,uBAAuB,CAAC,EAAE,GAAG,EAAE,kBAAkB,EAAE,CAAC,CAAC;QAC5E,MAAM,OAAO,GAAG,IAAI,wBAAwB,EAAE,CAAC;QAC/C,MAAM,MAAM,GAAG,IAAI,uBAAuB,EAAE,CAAC;QAC7C,MAAM,YAAY,GAAG,IAAI,yBAAyB,CAAC;YACjD,OAAO,EAAE,YAAY;YACrB,kBAAkB;SACnB,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG,IAAI,0BAA0B,CAAC;YAC9C,OAAO;YACP,OAAO,EAAE,YAAY;YACrB,UAAU;SACX,CAAC,CAAC;QAEH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,GAAG,IAAI,0BAA0B,CAAC;YAClD,OAAO;YACP,UAAU;YACV,KAAK,EAAE,UAAU;SAClB,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,GAAG,IAAI,wBAAwB,CAAC;YAC9C,OAAO;YACP,UAAU;YACV,KAAK,EAAE,UAAU;SAClB,CAAC,CAAC;QACH,IAAI,CAAC,mBAAmB,GAAG,IAAI,gCAAgC,CAAC;YAC9D,OAAO;YACP,UAAU;SACX,CAAC,CAAC;QACH,IAAI,CAAC,aAAa,GAAG,IAAI,0BAA0B,CAAC;YAClD,OAAO;YACP,UAAU;SACX,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,MAAM,YAAY,GAAG;YACnB,MAAM;YACN,QAAQ;YACR,OAAO,EAAE,YAAY;YACrB,UAAU;YACV,kBAAkB;YAClB,KAAK,EAAE,UAAU;SAClB,CAAC;QAEF,IAAI,CAAC,WAAW,GAAG,IAAI,wBAAwB,CAAC,YAAY,CAAC,CAAC;QAC9D,IAAI,CAAC,aAAa,GAAG,IAAI,0BAA0B,CAAC,YAAY,CAAC,CAAC;QAClE,IAAI,CAAC,UAAU,GAAG,IAAI,uBAAuB,CAAC,YAAY,CAAC,CAAC;IAC9D,CAAC;CACF"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { SimSdkCommandRouter } from "../../sdk/router/sim-sdk-command-router.type.js";
|
|
2
|
+
import { SimCloudWatchCfnResourceFactory } from "./cfn/sim-cloudwatch-cfn-resource-factory.js";
|
|
3
|
+
import type * as simCloudWatchCommands from "./command/sim-cloudwatch-command.types.js";
|
|
4
|
+
import type { SimCloudWatchRequestOptions } from "./command/sim-cloudwatch-request-options.js";
|
|
5
|
+
import type { SimCloudWatchAlarmActionFailure } from "./alarm/action/sim-cloudwatch-alarm-action-failures.js";
|
|
6
|
+
import type { SimCloudWatchAlarm } from "./alarm/sim-cloudwatch-alarm.js";
|
|
7
|
+
import type { SimCloudWatchMetric } from "./metric/sim-cloudwatch-metric.js";
|
|
8
|
+
import { type SimCloudWatchProperties } from "./sim-cloudwatch-commands.js";
|
|
9
|
+
/**
|
|
10
|
+
* Simulated CloudWatch metrics. Handles SDK commands. Emulates AWS behaviour
|
|
11
|
+
* and state.
|
|
12
|
+
*
|
|
13
|
+
* Metrics are scoped to an account and region, as they are on real AWS: a
|
|
14
|
+
* metric published in one region is invisible from another, and there is no
|
|
15
|
+
* ARN to reach one across the boundary.
|
|
16
|
+
*
|
|
17
|
+
* Only custom metrics live here. Nothing in this simulation publishes into the
|
|
18
|
+
* `AWS/` namespaces, so a query for `AWS/Lambda` `Invocations` finds nothing
|
|
19
|
+
* rather than a number that was never measured.
|
|
20
|
+
*/
|
|
21
|
+
export declare class SimCloudWatch {
|
|
22
|
+
#private;
|
|
23
|
+
constructor(properties?: SimCloudWatchProperties);
|
|
24
|
+
/**
|
|
25
|
+
* Every metric in this scope, in the order each was first written to.
|
|
26
|
+
*
|
|
27
|
+
* This is the simulator's own accessor, for tests inspecting metric state
|
|
28
|
+
* without going through a Command and its authorization.
|
|
29
|
+
*/
|
|
30
|
+
allMetrics(): readonly SimCloudWatchMetric[];
|
|
31
|
+
/**
|
|
32
|
+
* Every alarm in this scope, in the order each was created.
|
|
33
|
+
*
|
|
34
|
+
* This is the simulator's own accessor, for tests inspecting alarm state
|
|
35
|
+
* without going through a Command and its authorization.
|
|
36
|
+
*/
|
|
37
|
+
allAlarms(): readonly SimCloudWatchAlarm[];
|
|
38
|
+
/**
|
|
39
|
+
* Find an alarm by name.
|
|
40
|
+
*
|
|
41
|
+
* This is the simulator's own accessor, for tests inspecting one alarm
|
|
42
|
+
* without going through a Command and its authorization.
|
|
43
|
+
*/
|
|
44
|
+
findAlarm(alarmName: string): SimCloudWatchAlarm | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Every alarm notification this scope could not send.
|
|
47
|
+
*
|
|
48
|
+
* A failed action is invisible on real CloudWatch: the alarm changes state
|
|
49
|
+
* either way and nothing reports the failure. Keeping it is what lets a test
|
|
50
|
+
* find out that the alarm it set up reached nothing.
|
|
51
|
+
*/
|
|
52
|
+
get alarmActionFailures(): readonly SimCloudWatchAlarmActionFailure[];
|
|
53
|
+
/**
|
|
54
|
+
* Handle a PutMetricData Command from the SDK.
|
|
55
|
+
*/
|
|
56
|
+
putMetricData(command: simCloudWatchCommands.SimPutMetricDataCommand, options?: SimCloudWatchRequestOptions): Promise<simCloudWatchCommands.SimPutMetricDataCommandOutput>;
|
|
57
|
+
/**
|
|
58
|
+
* Handle a ListMetrics Command from the SDK.
|
|
59
|
+
*/
|
|
60
|
+
listMetrics(command: simCloudWatchCommands.SimListMetricsCommand, options?: SimCloudWatchRequestOptions): Promise<simCloudWatchCommands.SimListMetricsCommandOutput>;
|
|
61
|
+
/**
|
|
62
|
+
* Handle a GetMetricStatistics Command from the SDK.
|
|
63
|
+
*/
|
|
64
|
+
getMetricStatistics(command: simCloudWatchCommands.SimGetMetricStatisticsCommand, options?: SimCloudWatchRequestOptions): Promise<simCloudWatchCommands.SimGetMetricStatisticsCommandOutput>;
|
|
65
|
+
/**
|
|
66
|
+
* Handle a GetMetricData Command from the SDK.
|
|
67
|
+
*/
|
|
68
|
+
getMetricData(command: simCloudWatchCommands.SimGetMetricDataCommand, options?: SimCloudWatchRequestOptions): Promise<simCloudWatchCommands.SimGetMetricDataCommandOutput>;
|
|
69
|
+
/**
|
|
70
|
+
* Handle a PutMetricAlarm Command from the SDK.
|
|
71
|
+
*/
|
|
72
|
+
putMetricAlarm(command: simCloudWatchCommands.SimPutMetricAlarmCommand, options?: SimCloudWatchRequestOptions): Promise<simCloudWatchCommands.SimPutMetricAlarmCommandOutput>;
|
|
73
|
+
/**
|
|
74
|
+
* Handle a DescribeAlarms Command from the SDK.
|
|
75
|
+
*/
|
|
76
|
+
describeAlarms(command: simCloudWatchCommands.SimDescribeAlarmsCommand, options?: SimCloudWatchRequestOptions): Promise<simCloudWatchCommands.SimDescribeAlarmsCommandOutput>;
|
|
77
|
+
/**
|
|
78
|
+
* Handle a DeleteAlarms Command from the SDK.
|
|
79
|
+
*/
|
|
80
|
+
deleteAlarms(command: simCloudWatchCommands.SimDeleteAlarmsCommand, options?: SimCloudWatchRequestOptions): Promise<simCloudWatchCommands.SimDeleteAlarmsCommandOutput>;
|
|
81
|
+
/**
|
|
82
|
+
* Handle a SetAlarmState Command from the SDK.
|
|
83
|
+
*/
|
|
84
|
+
setAlarmState(command: simCloudWatchCommands.SimSetAlarmStateCommand, options?: SimCloudWatchRequestOptions): Promise<simCloudWatchCommands.SimSetAlarmStateCommandOutput>;
|
|
85
|
+
/**
|
|
86
|
+
* Handle a DescribeAlarmHistory Command from the SDK.
|
|
87
|
+
*/
|
|
88
|
+
describeAlarmHistory(command: simCloudWatchCommands.SimDescribeAlarmHistoryCommand, options?: SimCloudWatchRequestOptions): Promise<simCloudWatchCommands.SimDescribeAlarmHistoryCommandOutput>;
|
|
89
|
+
/**
|
|
90
|
+
* Get the CloudFormation Resource factory for AWS::CloudWatch::* Resources.
|
|
91
|
+
*/
|
|
92
|
+
cfnResourceFactory(): SimCloudWatchCfnResourceFactory;
|
|
93
|
+
/**
|
|
94
|
+
* Get this service's SDK Command router for SDK client interception.
|
|
95
|
+
*/
|
|
96
|
+
sdkCommandRouter(): SimSdkCommandRouter;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=sim-cloudwatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch.d.ts","sourceRoot":"","sources":["../../../src/service/cloudwatch/sim-cloudwatch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,EAAE,+BAA+B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,KAAK,qBAAqB,MAAM,2CAA2C,CAAC;AACxF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC/F,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAC;AAC9G,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,8BAA8B,CAAC;AAEtC;;;;;;;;;;;GAWG;AACH,qBAAa,aAAa;;IAOxB,YAAY,UAAU,GAAE,uBAA4B,EAEnD;IAED;;;;;OAKG;IACH,UAAU,IAAI,SAAS,mBAAmB,EAAE,CAE3C;IAED;;;;;OAKG;IACH,SAAS,IAAI,SAAS,kBAAkB,EAAE,CAEzC;IAED;;;;;OAKG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAE3D;IAED;;;;;;OAMG;IACH,IAAI,mBAAmB,IAAI,SAAS,+BAA+B,EAAE,CAEpE;IAED;;OAEG;IACG,aAAa,CACjB,OAAO,EAAE,qBAAqB,CAAC,uBAAuB,EACtD,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,6BAA6B,CAAC,CAG9D;IAED;;OAEG;IACG,WAAW,CACf,OAAO,EAAE,qBAAqB,CAAC,qBAAqB,EACpD,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,2BAA2B,CAAC,CAG5D;IAED;;OAEG;IACG,mBAAmB,CACvB,OAAO,EAAE,qBAAqB,CAAC,6BAA6B,EAC5D,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,mCAAmC,CAAC,CAGpE;IAED;;OAEG;IACG,aAAa,CACjB,OAAO,EAAE,qBAAqB,CAAC,uBAAuB,EACtD,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,6BAA6B,CAAC,CAG9D;IAED;;OAEG;IACG,cAAc,CAClB,OAAO,EAAE,qBAAqB,CAAC,wBAAwB,EACvD,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,8BAA8B,CAAC,CAG/D;IAED;;OAEG;IACG,cAAc,CAClB,OAAO,EAAE,qBAAqB,CAAC,wBAAwB,EACvD,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,8BAA8B,CAAC,CAG/D;IAED;;OAEG;IACG,YAAY,CAChB,OAAO,EAAE,qBAAqB,CAAC,sBAAsB,EACrD,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,4BAA4B,CAAC,CAG7D;IAED;;OAEG;IACG,aAAa,CACjB,OAAO,EAAE,qBAAqB,CAAC,uBAAuB,EACtD,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,6BAA6B,CAAC,CAG9D;IAED;;OAEG;IACG,oBAAoB,CACxB,OAAO,EAAE,qBAAqB,CAAC,8BAA8B,EAC7D,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,oCAAoC,CAAC,CAGrE;IAED;;OAEG;IACH,kBAAkB,IAAI,+BAA+B,CAEpD;IAED;;OAEG;IACH,gBAAgB,IAAI,mBAAmB,CAEtC;CACF"}
|