@kensio/yulin 1.15.1 → 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-user-pool-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +7 -0
- 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-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 +3 -0
- 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 +4 -0
- 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 +7 -6
- 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-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 +26 -9
- 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 +23 -9
- 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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { SimAwsCaller } from "../../../aws/caller/sim-aws-caller.js";
|
|
2
|
+
import type { SimAwsResolvedCaller } from "../../../aws/caller/sim-aws-caller-resolver.js";
|
|
3
|
+
import type { SimIamInterServiceAuthZ } from "../../../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
4
|
+
import type { SimAwsAccountRegionScope } from "../../../aws/sim-aws-account-region-scope.js";
|
|
5
|
+
interface SimCloudWatchAuthorizerProperties {
|
|
6
|
+
readonly iam: SimIamInterServiceAuthZ;
|
|
7
|
+
readonly accountRegionScope: SimAwsAccountRegionScope;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Applies simulated IAM authorization to CloudWatch metric requests.
|
|
11
|
+
*
|
|
12
|
+
* A policy written against a metric ARN is a policy that reaches nothing, here
|
|
13
|
+
* and in an account: teams reaching for one find out at this boundary rather
|
|
14
|
+
* than after a deployment.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SimCloudWatchAuthorizer {
|
|
17
|
+
#private;
|
|
18
|
+
constructor(properties: SimCloudWatchAuthorizerProperties);
|
|
19
|
+
/**
|
|
20
|
+
* Ensure the caller may perform an action on this scope's metrics.
|
|
21
|
+
*/
|
|
22
|
+
authorize(action: string, caller?: SimAwsCaller): SimAwsResolvedCaller;
|
|
23
|
+
/**
|
|
24
|
+
* Ensure the caller may perform an action on one alarm.
|
|
25
|
+
*
|
|
26
|
+
* Alarms are the one thing in CloudWatch a policy can name, so these
|
|
27
|
+
* authorize against the alarm's ARN rather than against `*`. The alarm need
|
|
28
|
+
* not exist: real IAM evaluates a request before the service handles it, so
|
|
29
|
+
* PutMetricAlarm authorizes against the ARN the alarm is about to have.
|
|
30
|
+
*/
|
|
31
|
+
authorizeAlarm(action: string, alarmName: string, caller?: SimAwsCaller): SimAwsResolvedCaller;
|
|
32
|
+
/**
|
|
33
|
+
* Ensure the caller may write into a namespace.
|
|
34
|
+
*
|
|
35
|
+
* The namespace is supplied to IAM as `cloudwatch:namespace`, which is the
|
|
36
|
+
* condition key AWS's own documented publishing policies are written with.
|
|
37
|
+
*/
|
|
38
|
+
authorizeNamespace(action: string, namespace: string, caller?: SimAwsCaller): SimAwsResolvedCaller;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=sim-cloudwatch-authorizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-authorizer.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AACtG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAa7F,UAAU,iCAAiC;IACzC,QAAQ,CAAC,GAAG,EAAE,uBAAuB,CAAC;IACtC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;CACvD;AAED;;;;;;GAMG;AACH,qBAAa,uBAAuB;;IAIlC,YAAY,UAAU,EAAE,iCAAiC,EAGxD;IAED;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,oBAAoB,CAMrE;IAED;;;;;;;OAOG;IACH,cAAc,CACZ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,YAAY,GACpB,oBAAoB,CAMtB;IAED;;;;;OAKG;IACH,kBAAkB,CAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,YAAY,GACpB,oBAAoB,CAOtB;CACF"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { simCloudWatchAlarmArn } from "../../alarm/sim-cloudwatch-alarm-arn.js";
|
|
2
|
+
import { decideSimCloudWatchRequest } from "./sim-cloudwatch-decide.js";
|
|
3
|
+
/**
|
|
4
|
+
* The resource every CloudWatch metric action authorizes against.
|
|
5
|
+
*
|
|
6
|
+
* Metrics have no ARN on real AWS. There is nothing for a policy to name, so
|
|
7
|
+
* every one of these actions is granted on `*` and narrowed, if at all, by
|
|
8
|
+
* condition rather than by resource.
|
|
9
|
+
*/
|
|
10
|
+
const metricResource = "*";
|
|
11
|
+
/**
|
|
12
|
+
* Applies simulated IAM authorization to CloudWatch metric requests.
|
|
13
|
+
*
|
|
14
|
+
* A policy written against a metric ARN is a policy that reaches nothing, here
|
|
15
|
+
* and in an account: teams reaching for one find out at this boundary rather
|
|
16
|
+
* than after a deployment.
|
|
17
|
+
*/
|
|
18
|
+
export class SimCloudWatchAuthorizer {
|
|
19
|
+
#iam;
|
|
20
|
+
#accountRegionScope;
|
|
21
|
+
constructor(properties) {
|
|
22
|
+
this.#iam = properties.iam;
|
|
23
|
+
this.#accountRegionScope = properties.accountRegionScope;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Ensure the caller may perform an action on this scope's metrics.
|
|
27
|
+
*/
|
|
28
|
+
authorize(action, caller) {
|
|
29
|
+
return decideSimCloudWatchRequest(this.#iam, {
|
|
30
|
+
action,
|
|
31
|
+
resource: metricResource,
|
|
32
|
+
caller,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Ensure the caller may perform an action on one alarm.
|
|
37
|
+
*
|
|
38
|
+
* Alarms are the one thing in CloudWatch a policy can name, so these
|
|
39
|
+
* authorize against the alarm's ARN rather than against `*`. The alarm need
|
|
40
|
+
* not exist: real IAM evaluates a request before the service handles it, so
|
|
41
|
+
* PutMetricAlarm authorizes against the ARN the alarm is about to have.
|
|
42
|
+
*/
|
|
43
|
+
authorizeAlarm(action, alarmName, caller) {
|
|
44
|
+
return decideSimCloudWatchRequest(this.#iam, {
|
|
45
|
+
action,
|
|
46
|
+
resource: simCloudWatchAlarmArn(this.#accountRegionScope, alarmName),
|
|
47
|
+
caller,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Ensure the caller may write into a namespace.
|
|
52
|
+
*
|
|
53
|
+
* The namespace is supplied to IAM as `cloudwatch:namespace`, which is the
|
|
54
|
+
* condition key AWS's own documented publishing policies are written with.
|
|
55
|
+
*/
|
|
56
|
+
authorizeNamespace(action, namespace, caller) {
|
|
57
|
+
return decideSimCloudWatchRequest(this.#iam, {
|
|
58
|
+
action,
|
|
59
|
+
resource: metricResource,
|
|
60
|
+
caller,
|
|
61
|
+
namespace,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=sim-cloudwatch-authorizer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-authorizer.js","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAExE;;;;;;GAMG;AACH,MAAM,cAAc,GAAG,GAAG,CAAC;AAO3B;;;;;;GAMG;AACH,MAAM,OAAO,uBAAuB;IACzB,IAAI,CAA0B;IAC9B,mBAAmB,CAA2B;IAEvD,YAAY,UAA6C;QACvD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC;QAC3B,IAAI,CAAC,mBAAmB,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,MAAc,EAAE,MAAqB;QAC7C,OAAO,0BAA0B,CAAC,IAAI,CAAC,IAAI,EAAE;YAC3C,MAAM;YACN,QAAQ,EAAE,cAAc;YACxB,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CACZ,MAAc,EACd,SAAiB,EACjB,MAAqB;QAErB,OAAO,0BAA0B,CAAC,IAAI,CAAC,IAAI,EAAE;YAC3C,MAAM;YACN,QAAQ,EAAE,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC;YACpE,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,kBAAkB,CAChB,MAAc,EACd,SAAiB,EACjB,MAAqB;QAErB,OAAO,0BAA0B,CAAC,IAAI,CAAC,IAAI,EAAE;YAC3C,MAAM;YACN,QAAQ,EAAE,cAAc;YACxB,MAAM;YACN,SAAS;SACV,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { SimAwsCaller } from "../../../aws/caller/sim-aws-caller.js";
|
|
2
|
+
import type { SimAwsResolvedCaller } from "../../../aws/caller/sim-aws-caller-resolver.js";
|
|
3
|
+
import type { SimIamInterServiceAuthZ } from "../../../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
4
|
+
/**
|
|
5
|
+
* One authorization question: what is being done, to what, by whom, and in
|
|
6
|
+
* which namespace where that narrows it.
|
|
7
|
+
*/
|
|
8
|
+
export interface SimCloudWatchAuthorization {
|
|
9
|
+
readonly action: string;
|
|
10
|
+
readonly resource: string;
|
|
11
|
+
readonly caller: SimAwsCaller | undefined;
|
|
12
|
+
readonly namespace?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Put one CloudWatch request to simulated IAM, refusing it if the answer is no.
|
|
16
|
+
*
|
|
17
|
+
* The namespace, where there is one, goes in as `cloudwatch:namespace`, which
|
|
18
|
+
* is the condition key AWS's own documented publishing policies are written
|
|
19
|
+
* with and the only way a policy can narrow an action with no resource to
|
|
20
|
+
* name.
|
|
21
|
+
*/
|
|
22
|
+
export declare function decideSimCloudWatchRequest(iam: SimIamInterServiceAuthZ, request: SimCloudWatchAuthorization): SimAwsResolvedCaller;
|
|
23
|
+
//# sourceMappingURL=sim-cloudwatch-decide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-decide.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/authorize/sim-cloudwatch-decide.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AAItG;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,uBAAuB,EAC5B,OAAO,EAAE,0BAA0B,GAClC,oBAAoB,CAqBtB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SimIamAccessDenied } from "../../../iam/error/sim-iam.error.js";
|
|
2
|
+
import { simCloudWatchNamespaceConditionKey } from "../sim-cloudwatch-request-options.js";
|
|
3
|
+
/**
|
|
4
|
+
* Put one CloudWatch request to simulated IAM, refusing it if the answer is no.
|
|
5
|
+
*
|
|
6
|
+
* The namespace, where there is one, goes in as `cloudwatch:namespace`, which
|
|
7
|
+
* is the condition key AWS's own documented publishing policies are written
|
|
8
|
+
* with and the only way a policy can narrow an action with no resource to
|
|
9
|
+
* name.
|
|
10
|
+
*/
|
|
11
|
+
export function decideSimCloudWatchRequest(iam, request) {
|
|
12
|
+
const { action, resource, namespace } = request;
|
|
13
|
+
const decision = iam.authorize({
|
|
14
|
+
action,
|
|
15
|
+
resource,
|
|
16
|
+
caller: request.caller,
|
|
17
|
+
conditionContext: namespace === undefined
|
|
18
|
+
? undefined
|
|
19
|
+
: { [simCloudWatchNamespaceConditionKey]: namespace },
|
|
20
|
+
});
|
|
21
|
+
if (decision.isDenied) {
|
|
22
|
+
throw new SimIamAccessDenied({
|
|
23
|
+
principal: decision.caller.principal,
|
|
24
|
+
action,
|
|
25
|
+
resource,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return decision.caller;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=sim-cloudwatch-decide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-decide.js","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/authorize/sim-cloudwatch-decide.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAa1F;;;;;;;GAOG;AACH,MAAM,UAAU,0BAA0B,CACxC,GAA4B,EAC5B,OAAmC;IAEnC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAChD,MAAM,QAAQ,GAAG,GAAG,CAAC,SAAS,CAAC;QAC7B,MAAM;QACN,QAAQ;QACR,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,gBAAgB,EACd,SAAS,KAAK,SAAS;YACrB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,EAAE,CAAC,kCAAkC,CAAC,EAAE,SAAS,EAAE;KAC1D,CAAC,CAAC;IAEH,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;QACtB,MAAM,IAAI,kBAAkB,CAAC;YAC3B,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS;YACpC,MAAM;YACN,QAAQ;SACT,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC,MAAM,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { SimResponseMetadata } from "../../../aws/metadata/response-metadata.type.js";
|
|
2
|
+
import type { SimCloudWatchDimensionInput } from "../../metric/sim-cloudwatch-dimension.js";
|
|
3
|
+
/**
|
|
4
|
+
* The summary of many observations one metric datum may carry instead of a
|
|
5
|
+
* single value.
|
|
6
|
+
*/
|
|
7
|
+
export interface SimCloudWatchStatisticSetInput {
|
|
8
|
+
readonly SampleCount?: number | undefined;
|
|
9
|
+
readonly Sum?: number | undefined;
|
|
10
|
+
readonly Minimum?: number | undefined;
|
|
11
|
+
readonly Maximum?: number | undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* One metric's worth of data in a PutMetricData request.
|
|
15
|
+
*/
|
|
16
|
+
export interface SimCloudWatchMetricDatumInput {
|
|
17
|
+
readonly MetricName?: string | undefined;
|
|
18
|
+
readonly Dimensions?: readonly SimCloudWatchDimensionInput[] | undefined;
|
|
19
|
+
readonly Timestamp?: Date | undefined;
|
|
20
|
+
readonly Value?: number | undefined;
|
|
21
|
+
readonly StatisticValues?: SimCloudWatchStatisticSetInput | undefined;
|
|
22
|
+
readonly Values?: readonly number[] | undefined;
|
|
23
|
+
readonly Counts?: readonly number[] | undefined;
|
|
24
|
+
readonly Unit?: string | undefined;
|
|
25
|
+
readonly StorageResolution?: number | undefined;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Minimal structural sim CloudWatch PutMetricData command.
|
|
29
|
+
*
|
|
30
|
+
* https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch/command/PutMetricDataCommand/
|
|
31
|
+
*/
|
|
32
|
+
export interface SimPutMetricDataCommand {
|
|
33
|
+
readonly input: SimPutMetricDataCommandInput;
|
|
34
|
+
}
|
|
35
|
+
export interface SimPutMetricDataCommandInput {
|
|
36
|
+
readonly Namespace?: string | undefined;
|
|
37
|
+
readonly MetricData?: readonly SimCloudWatchMetricDatumInput[] | undefined;
|
|
38
|
+
}
|
|
39
|
+
export interface SimPutMetricDataCommandOutput {
|
|
40
|
+
readonly $metadata: SimResponseMetadata;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=data.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.command.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/data/data.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAE5F;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,2BAA2B,EAAE,GAAG,SAAS,CAAC;IACzE,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,eAAe,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IACtE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjD;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,KAAK,EAAE,4BAA4B,CAAC;CAC9C;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,6BAA6B,EAAE,GAAG,SAAS,CAAC;CAC5E;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.command.js","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/data/data.command.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SimCloudWatchDatapoint } from "../../metric/sim-cloudwatch-datapoint.js";
|
|
2
|
+
import type { SimCloudWatchMetricDatumInput } from "./data.command.js";
|
|
3
|
+
/**
|
|
4
|
+
* Read the observation one metric datum carries.
|
|
5
|
+
*
|
|
6
|
+
* A datum states its values in one of three ways and every one of them reduces
|
|
7
|
+
* to the same count, total and extremes, so they are read into one shape here
|
|
8
|
+
* and the rest of the service never has to know which form was used.
|
|
9
|
+
*/
|
|
10
|
+
export declare function readSimCloudWatchDatapoint(datum: SimCloudWatchMetricDatumInput, defaultTimestamp: Date): SimCloudWatchDatapoint;
|
|
11
|
+
//# sourceMappingURL=sim-cloudwatch-metric-datum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-metric-datum.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAEvF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAcvE;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,6BAA6B,EACpC,gBAAgB,EAAE,IAAI,GACrB,sBAAsB,CAQxB"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { SimCloudWatchInvalidParameterCombinationException, SimCloudWatchInvalidParameterValueException, SimCloudWatchMissingRequiredParameterException, } from "../../error/sim-cloudwatch.error.js";
|
|
2
|
+
import { simCloudWatchUnitOrUndefined } from "../../metric/sim-cloudwatch-unit.js";
|
|
3
|
+
import { readSimCloudWatchStatisticValues, readSimCloudWatchValue, } from "./sim-cloudwatch-observation.js";
|
|
4
|
+
import { readSimCloudWatchValues } from "./sim-cloudwatch-weighted-values.js";
|
|
5
|
+
/**
|
|
6
|
+
* The storage resolution of a standard metric, in seconds. The other value
|
|
7
|
+
* real CloudWatch accepts, one second, makes a high-resolution metric.
|
|
8
|
+
*/
|
|
9
|
+
const standardStorageResolution = 60;
|
|
10
|
+
/**
|
|
11
|
+
* Read the observation one metric datum carries.
|
|
12
|
+
*
|
|
13
|
+
* A datum states its values in one of three ways and every one of them reduces
|
|
14
|
+
* to the same count, total and extremes, so they are read into one shape here
|
|
15
|
+
* and the rest of the service never has to know which form was used.
|
|
16
|
+
*/
|
|
17
|
+
export function readSimCloudWatchDatapoint(datum, defaultTimestamp) {
|
|
18
|
+
refuseHighResolution(datum.StorageResolution);
|
|
19
|
+
return {
|
|
20
|
+
...readObservation(datum),
|
|
21
|
+
timestamp: (datum.Timestamp ?? defaultTimestamp).getTime(),
|
|
22
|
+
unit: simCloudWatchUnitOrUndefined("Unit", datum.Unit),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Read whichever of the three forms the datum used, refusing a datum using
|
|
27
|
+
* none of them or more than one.
|
|
28
|
+
*/
|
|
29
|
+
function readObservation(datum) {
|
|
30
|
+
// Counts says how often each of Values occurred, so on its own it describes
|
|
31
|
+
// nothing. Real CloudWatch refuses the pair apart, and dropping it here
|
|
32
|
+
// would silently discard half of what the caller measured.
|
|
33
|
+
if (datum.Counts !== undefined && datum.Values === undefined) {
|
|
34
|
+
throw new SimCloudWatchInvalidParameterCombinationException("The parameter Counts may only be given with Values.");
|
|
35
|
+
}
|
|
36
|
+
const forms = [
|
|
37
|
+
datum.Value === undefined
|
|
38
|
+
? undefined
|
|
39
|
+
: () => readSimCloudWatchValue(datum.Value),
|
|
40
|
+
datum.StatisticValues === undefined
|
|
41
|
+
? undefined
|
|
42
|
+
: () => readSimCloudWatchStatisticValues(datum.StatisticValues),
|
|
43
|
+
datum.Values === undefined
|
|
44
|
+
? undefined
|
|
45
|
+
: () => readSimCloudWatchValues(datum.Values, datum.Counts),
|
|
46
|
+
].filter((form) => form !== undefined);
|
|
47
|
+
const only = forms.at(0);
|
|
48
|
+
if (only === undefined) {
|
|
49
|
+
throw new SimCloudWatchMissingRequiredParameterException("Each metric datum must carry Value, StatisticValues or Values.");
|
|
50
|
+
}
|
|
51
|
+
if (forms.length > 1) {
|
|
52
|
+
throw new SimCloudWatchInvalidParameterCombinationException("A metric datum must carry only one of Value, StatisticValues and " +
|
|
53
|
+
"Values.");
|
|
54
|
+
}
|
|
55
|
+
return only();
|
|
56
|
+
}
|
|
57
|
+
function refuseHighResolution(storageResolution) {
|
|
58
|
+
if (storageResolution !== undefined &&
|
|
59
|
+
storageResolution !== standardStorageResolution) {
|
|
60
|
+
throw new SimCloudWatchInvalidParameterValueException(`StorageResolution ${storageResolution} is not simulated: only ` +
|
|
61
|
+
`standard ${standardStorageResolution} second resolution is, so a ` +
|
|
62
|
+
`high-resolution metric would be stored and queried here at a ` +
|
|
63
|
+
`resolution it does not have on real AWS.`);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=sim-cloudwatch-metric-datum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-metric-datum.js","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iDAAiD,EACjD,2CAA2C,EAC3C,8CAA8C,GAC/C,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AAEnF,OAAO,EACL,gCAAgC,EAChC,sBAAsB,GAEvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E;;;GAGG;AACH,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,UAAU,0BAA0B,CACxC,KAAoC,EACpC,gBAAsB;IAEtB,oBAAoB,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAE9C,OAAO;QACL,GAAG,eAAe,CAAC,KAAK,CAAC;QACzB,SAAS,EAAE,CAAC,KAAK,CAAC,SAAS,IAAI,gBAAgB,CAAC,CAAC,OAAO,EAAE;QAC1D,IAAI,EAAE,4BAA4B,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC;KACvD,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,eAAe,CACtB,KAAoC;IAEpC,4EAA4E;IAC5E,wEAAwE;IACxE,2DAA2D;IAC3D,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QAC7D,MAAM,IAAI,iDAAiD,CACzD,qDAAqD,CACtD,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG;QACZ,KAAK,CAAC,KAAK,KAAK,SAAS;YACvB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,GAA6B,EAAE,CAAC,sBAAsB,CAAC,KAAK,CAAC,KAAK,CAAC;QACvE,KAAK,CAAC,eAAe,KAAK,SAAS;YACjC,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,GAA6B,EAAE,CAC7B,gCAAgC,CAAC,KAAK,CAAC,eAAe,CAAC;QAC7D,KAAK,CAAC,MAAM,KAAK,SAAS;YACxB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,GAA6B,EAAE,CAC7B,uBAAuB,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KAC1D,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;IAEvC,MAAM,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAEzB,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,8CAA8C,CACtD,gEAAgE,CACjE,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrB,MAAM,IAAI,iDAAiD,CACzD,mEAAmE;YACjE,SAAS,CACZ,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,EAAE,CAAC;AAChB,CAAC;AAED,SAAS,oBAAoB,CAAC,iBAAqC;IACjE,IACE,iBAAiB,KAAK,SAAS;QAC/B,iBAAiB,KAAK,yBAAyB,EAC/C,CAAC;QACD,MAAM,IAAI,2CAA2C,CACnD,qBAAqB,iBAAiB,0BAA0B;YAC9D,YAAY,yBAAyB,8BAA8B;YACnE,+DAA+D;YAC/D,0CAA0C,CAC7C,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read a number a metric may be measured in.
|
|
3
|
+
*/
|
|
4
|
+
export declare function requiredSimCloudWatchMetricValue(field: string, value: number | undefined): number;
|
|
5
|
+
/**
|
|
6
|
+
* Read a number of times a value was observed, which cannot be none.
|
|
7
|
+
*/
|
|
8
|
+
export declare function requiredSimCloudWatchCount(field: string, value: number): number;
|
|
9
|
+
/**
|
|
10
|
+
* Refuse a Values array, and the Counts beside it, that real CloudWatch would
|
|
11
|
+
* refuse.
|
|
12
|
+
*/
|
|
13
|
+
export declare function refuseSimCloudWatchValuesShape(values: readonly number[], counts: readonly number[] | undefined): void;
|
|
14
|
+
//# sourceMappingURL=sim-cloudwatch-metric-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-metric-value.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/data/sim-cloudwatch-metric-value.ts"],"names":[],"mappings":"AAiBA;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,MAAM,CAsBR;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,MAAM,CAQR;AAOD;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GACpC,IAAI,CAmBN"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { SimCloudWatchInvalidParameterCombinationException, SimCloudWatchInvalidParameterValueException, SimCloudWatchMissingRequiredParameterException, } from "../../error/sim-cloudwatch.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The largest magnitude real CloudWatch stores. Values outside it are refused,
|
|
4
|
+
* as are NaN and the infinities.
|
|
5
|
+
*
|
|
6
|
+
* Enforcing it at the edge is what keeps a stored total finite: the widest
|
|
7
|
+
* batch this simulation accepts is a thousand data of a hundred and fifty
|
|
8
|
+
* values each, so nothing summed from values inside this range can reach the
|
|
9
|
+
* top of a double, and no aggregate downstream has to defend against one.
|
|
10
|
+
*/
|
|
11
|
+
const maximumMagnitude = 2 ** 360;
|
|
12
|
+
/**
|
|
13
|
+
* Read a number a metric may be measured in.
|
|
14
|
+
*/
|
|
15
|
+
export function requiredSimCloudWatchMetricValue(field, value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
throw new SimCloudWatchMissingRequiredParameterException(`The parameter ${field} must be present.`);
|
|
18
|
+
}
|
|
19
|
+
if (!Number.isFinite(value)) {
|
|
20
|
+
throw new SimCloudWatchInvalidParameterValueException(`The parameter ${field} must be a number, and NaN and the infinities ` +
|
|
21
|
+
`are not supported.`);
|
|
22
|
+
}
|
|
23
|
+
if (Math.abs(value) > maximumMagnitude) {
|
|
24
|
+
throw new SimCloudWatchInvalidParameterValueException(`The parameter ${field} must be within the range CloudWatch stores, ` +
|
|
25
|
+
`which is -2^360 to 2^360.`);
|
|
26
|
+
}
|
|
27
|
+
return value;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Read a number of times a value was observed, which cannot be none.
|
|
31
|
+
*/
|
|
32
|
+
export function requiredSimCloudWatchCount(field, value) {
|
|
33
|
+
if (requiredSimCloudWatchMetricValue(field, value) <= 0) {
|
|
34
|
+
throw new SimCloudWatchInvalidParameterValueException(`The parameter ${field} must be greater than zero.`);
|
|
35
|
+
}
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* How many unique values one datum may list beside its counts.
|
|
40
|
+
*/
|
|
41
|
+
const maximumValues = 150;
|
|
42
|
+
/**
|
|
43
|
+
* Refuse a Values array, and the Counts beside it, that real CloudWatch would
|
|
44
|
+
* refuse.
|
|
45
|
+
*/
|
|
46
|
+
export function refuseSimCloudWatchValuesShape(values, counts) {
|
|
47
|
+
if (values.length === 0) {
|
|
48
|
+
throw new SimCloudWatchInvalidParameterValueException("The parameter Values must not be empty.");
|
|
49
|
+
}
|
|
50
|
+
if (values.length > maximumValues) {
|
|
51
|
+
throw new SimCloudWatchInvalidParameterValueException(`The parameter Values may list at most ${maximumValues} unique values, ` +
|
|
52
|
+
`and ${values.length} were given.`);
|
|
53
|
+
}
|
|
54
|
+
if (counts !== undefined && counts.length !== values.length) {
|
|
55
|
+
throw new SimCloudWatchInvalidParameterCombinationException("The parameters Values and Counts must have the same number of entries.");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=sim-cloudwatch-metric-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-metric-value.js","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/data/sim-cloudwatch-metric-value.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iDAAiD,EACjD,2CAA2C,EAC3C,8CAA8C,GAC/C,MAAM,qCAAqC,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,gBAAgB,GAAG,CAAC,IAAI,GAAG,CAAC;AAElC;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAC9C,KAAa,EACb,KAAyB;IAEzB,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,8CAA8C,CACtD,iBAAiB,KAAK,mBAAmB,CAC1C,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,2CAA2C,CACnD,iBAAiB,KAAK,gDAAgD;YACpE,oBAAoB,CACvB,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,gBAAgB,EAAE,CAAC;QACvC,MAAM,IAAI,2CAA2C,CACnD,iBAAiB,KAAK,+CAA+C;YACnE,2BAA2B,CAC9B,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,0BAA0B,CACxC,KAAa,EACb,KAAa;IAEb,IAAI,gCAAgC,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QACxD,MAAM,IAAI,2CAA2C,CACnD,iBAAiB,KAAK,6BAA6B,CACpD,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B;;;GAGG;AACH,MAAM,UAAU,8BAA8B,CAC5C,MAAyB,EACzB,MAAqC;IAErC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,2CAA2C,CACnD,yCAAyC,CAC1C,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,GAAG,aAAa,EAAE,CAAC;QAClC,MAAM,IAAI,2CAA2C,CACnD,yCAAyC,aAAa,kBAAkB;YACtE,OAAO,MAAM,CAAC,MAAM,cAAc,CACrC,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC;QAC5D,MAAM,IAAI,iDAAiD,CACzD,wEAAwE,CACzE,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SimCloudWatchDatapoint } from "../../metric/sim-cloudwatch-datapoint.js";
|
|
2
|
+
import type { SimCloudWatchStatisticSetInput } from "./data.command.js";
|
|
3
|
+
/**
|
|
4
|
+
* What a metric datum measures, before it is placed in time.
|
|
5
|
+
*/
|
|
6
|
+
export type SimCloudWatchObservation = Omit<SimCloudWatchDatapoint, "timestamp" | "unit">;
|
|
7
|
+
/**
|
|
8
|
+
* Read a datum stating one measurement.
|
|
9
|
+
*/
|
|
10
|
+
export declare function readSimCloudWatchValue(value: number | undefined): SimCloudWatchObservation;
|
|
11
|
+
/**
|
|
12
|
+
* Read a datum summarising measurements it does not carry.
|
|
13
|
+
*/
|
|
14
|
+
export declare function readSimCloudWatchStatisticValues(statistics: SimCloudWatchStatisticSetInput | undefined): SimCloudWatchObservation;
|
|
15
|
+
//# sourceMappingURL=sim-cloudwatch-observation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-observation.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/data/sim-cloudwatch-observation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAGxE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,sBAAsB,EACtB,WAAW,GAAG,MAAM,CACrB,CAAC;AAEF;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,wBAAwB,CAS1B;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,8BAA8B,GAAG,SAAS,GACrD,wBAAwB,CAkC1B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SimCloudWatchInvalidParameterValueException } from "../../error/sim-cloudwatch.error.js";
|
|
2
|
+
import { requiredSimCloudWatchMetricValue } from "./sim-cloudwatch-metric-value.js";
|
|
3
|
+
/**
|
|
4
|
+
* Read a datum stating one measurement.
|
|
5
|
+
*/
|
|
6
|
+
export function readSimCloudWatchValue(value) {
|
|
7
|
+
const measured = requiredSimCloudWatchMetricValue("Value", value);
|
|
8
|
+
return {
|
|
9
|
+
sampleCount: 1,
|
|
10
|
+
sum: measured,
|
|
11
|
+
minimum: measured,
|
|
12
|
+
maximum: measured,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Read a datum summarising measurements it does not carry.
|
|
17
|
+
*/
|
|
18
|
+
export function readSimCloudWatchStatisticValues(statistics) {
|
|
19
|
+
const observation = {
|
|
20
|
+
sampleCount: requiredSimCloudWatchMetricValue("StatisticValues.SampleCount", statistics?.SampleCount),
|
|
21
|
+
sum: requiredSimCloudWatchMetricValue("StatisticValues.Sum", statistics?.Sum),
|
|
22
|
+
minimum: requiredSimCloudWatchMetricValue("StatisticValues.Minimum", statistics?.Minimum),
|
|
23
|
+
maximum: requiredSimCloudWatchMetricValue("StatisticValues.Maximum", statistics?.Maximum),
|
|
24
|
+
};
|
|
25
|
+
if (observation.sampleCount <= 0) {
|
|
26
|
+
throw new SimCloudWatchInvalidParameterValueException("The parameter StatisticValues.SampleCount must be greater than zero.");
|
|
27
|
+
}
|
|
28
|
+
if (observation.minimum > observation.maximum) {
|
|
29
|
+
throw new SimCloudWatchInvalidParameterValueException("The parameter StatisticValues.Minimum must not be greater than " +
|
|
30
|
+
"StatisticValues.Maximum.");
|
|
31
|
+
}
|
|
32
|
+
return observation;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=sim-cloudwatch-observation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-observation.js","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/data/sim-cloudwatch-observation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2CAA2C,EAAE,MAAM,qCAAqC,CAAC;AAGlG,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAUpF;;GAEG;AACH,MAAM,UAAU,sBAAsB,CACpC,KAAyB;IAEzB,MAAM,QAAQ,GAAG,gCAAgC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAElE,OAAO;QACL,WAAW,EAAE,CAAC;QACd,GAAG,EAAE,QAAQ;QACb,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,QAAQ;KAClB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAC9C,UAAsD;IAEtD,MAAM,WAAW,GAAG;QAClB,WAAW,EAAE,gCAAgC,CAC3C,6BAA6B,EAC7B,UAAU,EAAE,WAAW,CACxB;QACD,GAAG,EAAE,gCAAgC,CACnC,qBAAqB,EACrB,UAAU,EAAE,GAAG,CAChB;QACD,OAAO,EAAE,gCAAgC,CACvC,yBAAyB,EACzB,UAAU,EAAE,OAAO,CACpB;QACD,OAAO,EAAE,gCAAgC,CACvC,yBAAyB,EACzB,UAAU,EAAE,OAAO,CACpB;KACF,CAAC;IAEF,IAAI,WAAW,CAAC,WAAW,IAAI,CAAC,EAAE,CAAC;QACjC,MAAM,IAAI,2CAA2C,CACnD,sEAAsE,CACvE,CAAC;IACJ,CAAC;IAED,IAAI,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC;QAC9C,MAAM,IAAI,2CAA2C,CACnD,iEAAiE;YAC/D,0BAA0B,CAC7B,CAAC;IACJ,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
|
+
import type { SimCloudWatchMetricStore } from "../../metric/sim-cloudwatch-metric-store.js";
|
|
3
|
+
import type { SimCloudWatchAuthorizer } from "../authorize/sim-cloudwatch-authorizer.js";
|
|
4
|
+
import type { SimCloudWatchRequestOptions } from "../sim-cloudwatch-request-options.js";
|
|
5
|
+
import type { SimPutMetricDataCommand, SimPutMetricDataCommandOutput } from "./data.command.js";
|
|
6
|
+
interface SimCloudWatchPutMetricDataProperties {
|
|
7
|
+
readonly metrics: SimCloudWatchMetricStore;
|
|
8
|
+
readonly authorizer: SimCloudWatchAuthorizer;
|
|
9
|
+
readonly clock: SimClock;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The command that records custom metric data.
|
|
13
|
+
*
|
|
14
|
+
* A datum carrying no timestamp is stamped from the simulation's clock rather
|
|
15
|
+
* than the host's, so a test with a frozen or advanced clock gets timestamps it
|
|
16
|
+
* can assert on exactly, and one that moves time on gets datapoints in the
|
|
17
|
+
* period it moved to.
|
|
18
|
+
*/
|
|
19
|
+
export declare class SimCloudWatchPutMetricData {
|
|
20
|
+
#private;
|
|
21
|
+
constructor(properties: SimCloudWatchPutMetricDataProperties);
|
|
22
|
+
/**
|
|
23
|
+
* Record every datum in a request against the metric it names.
|
|
24
|
+
*/
|
|
25
|
+
handle(command: SimPutMetricDataCommand, options?: SimCloudWatchRequestOptions): SimPutMetricDataCommandOutput;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=sim-cloudwatch-put-metric-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-put-metric-data.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAMpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAG5F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,KAAK,EACV,uBAAuB,EACvB,6BAA6B,EAC9B,MAAM,mBAAmB,CAAC;AAU3B,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,OAAO,EAAE,wBAAwB,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,uBAAuB,CAAC;IAC7C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,qBAAa,0BAA0B;;IAKrC,YAAY,UAAU,EAAE,oCAAoC,EAI3D;IAED;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,uBAAuB,EAChC,OAAO,CAAC,EAAE,2BAA2B,GACpC,6BAA6B,CAkC/B;CACF"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { SimCloudWatchInvalidParameterValueException, SimCloudWatchMissingRequiredParameterException, } from "../../error/sim-cloudwatch.error.js";
|
|
2
|
+
import { requiredSimCloudWatchDimensions } from "../../metric/sim-cloudwatch-dimension.js";
|
|
3
|
+
import { requiredSimCloudWatchName } from "../../metric/sim-cloudwatch-name.js";
|
|
4
|
+
import { requiredSimCloudWatchWritableNamespace } from "../../metric/sim-cloudwatch-namespace.js";
|
|
5
|
+
import { readSimCloudWatchDatapoint } from "./sim-cloudwatch-metric-datum.js";
|
|
6
|
+
const putMetricDataAction = "cloudwatch:PutMetricData";
|
|
7
|
+
/**
|
|
8
|
+
* How many metric data entries real CloudWatch takes in one request.
|
|
9
|
+
*/
|
|
10
|
+
const maximumMetricData = 1000;
|
|
11
|
+
/**
|
|
12
|
+
* The command that records custom metric data.
|
|
13
|
+
*
|
|
14
|
+
* A datum carrying no timestamp is stamped from the simulation's clock rather
|
|
15
|
+
* than the host's, so a test with a frozen or advanced clock gets timestamps it
|
|
16
|
+
* can assert on exactly, and one that moves time on gets datapoints in the
|
|
17
|
+
* period it moved to.
|
|
18
|
+
*/
|
|
19
|
+
export class SimCloudWatchPutMetricData {
|
|
20
|
+
#metrics;
|
|
21
|
+
#authorizer;
|
|
22
|
+
#clock;
|
|
23
|
+
constructor(properties) {
|
|
24
|
+
this.#metrics = properties.metrics;
|
|
25
|
+
this.#authorizer = properties.authorizer;
|
|
26
|
+
this.#clock = properties.clock;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Record every datum in a request against the metric it names.
|
|
30
|
+
*/
|
|
31
|
+
handle(command, options) {
|
|
32
|
+
// The namespace is read first because authorization is conditioned on it,
|
|
33
|
+
// and authorization comes before the rest of the input is read, because
|
|
34
|
+
// real IAM decides a request before the service handles it.
|
|
35
|
+
const namespace = requiredSimCloudWatchWritableNamespace(command.input.Namespace);
|
|
36
|
+
this.#authorizer.authorizeNamespace(putMetricDataAction, namespace, options?.caller);
|
|
37
|
+
const data = requiredMetricData(command.input.MetricData);
|
|
38
|
+
const now = this.#clock.now();
|
|
39
|
+
// Every datum is read before any of them is stored, so a request holding
|
|
40
|
+
// one the simulator refuses records none of the others. Real CloudWatch
|
|
41
|
+
// validates the whole request the same way.
|
|
42
|
+
const recordings = data.map((datum) => ({
|
|
43
|
+
identity: {
|
|
44
|
+
namespace,
|
|
45
|
+
metricName: requiredSimCloudWatchName("MetricName", datum.MetricName),
|
|
46
|
+
dimensions: requiredSimCloudWatchDimensions(datum.Dimensions),
|
|
47
|
+
},
|
|
48
|
+
datapoint: readSimCloudWatchDatapoint(datum, now),
|
|
49
|
+
}));
|
|
50
|
+
for (const recording of recordings) {
|
|
51
|
+
this.#metrics.ensure(recording.identity).record(recording.datapoint);
|
|
52
|
+
}
|
|
53
|
+
return { $metadata: {} };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function requiredMetricData(data) {
|
|
57
|
+
if (data === undefined || data.length === 0) {
|
|
58
|
+
throw new SimCloudWatchMissingRequiredParameterException("The parameter MetricData must be present and not empty.");
|
|
59
|
+
}
|
|
60
|
+
if (data.length > maximumMetricData) {
|
|
61
|
+
throw new SimCloudWatchInvalidParameterValueException(`The parameter MetricData must hold at most ${maximumMetricData} ` +
|
|
62
|
+
`entries, and ${data.length} were given.`);
|
|
63
|
+
}
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=sim-cloudwatch-put-metric-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-put-metric-data.js","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.ts"],"names":[],"mappings":"AACA,OAAO,EACL,2CAA2C,EAC3C,8CAA8C,GAC/C,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAE3F,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAOlG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAE9E,MAAM,mBAAmB,GAAG,0BAA0B,CAAC;AAEvD;;GAEG;AACH,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAQ/B;;;;;;;GAOG;AACH,MAAM,OAAO,0BAA0B;IAC5B,QAAQ,CAA2B;IACnC,WAAW,CAA0B;IACrC,MAAM,CAAW;IAE1B,YAAY,UAAgD;QAC1D,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC;IACjC,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAgC,EAChC,OAAqC;QAErC,0EAA0E;QAC1E,wEAAwE;QACxE,4DAA4D;QAC5D,MAAM,SAAS,GAAG,sCAAsC,CACtD,OAAO,CAAC,KAAK,CAAC,SAAS,CACxB,CAAC;QAEF,IAAI,CAAC,WAAW,CAAC,kBAAkB,CACjC,mBAAmB,EACnB,SAAS,EACT,OAAO,EAAE,MAAM,CAChB,CAAC;QAEF,MAAM,IAAI,GAAG,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC1D,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QAE9B,yEAAyE;QACzE,wEAAwE;QACxE,4CAA4C;QAC5C,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACtC,QAAQ,EAAE;gBACR,SAAS;gBACT,UAAU,EAAE,yBAAyB,CAAC,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC;gBACrE,UAAU,EAAE,+BAA+B,CAAC,KAAK,CAAC,UAAU,CAAC;aAC9D;YACD,SAAS,EAAE,0BAA0B,CAAC,KAAK,EAAE,GAAG,CAAC;SAClD,CAAC,CAAC,CAAC;QAEJ,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;YACnC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QACvE,CAAC;QAED,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC3B,CAAC;CACF;AAED,SAAS,kBAAkB,CAAI,IAA8B;IAC3D,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC5C,MAAM,IAAI,8CAA8C,CACtD,yDAAyD,CAC1D,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,CAAC,MAAM,GAAG,iBAAiB,EAAE,CAAC;QACpC,MAAM,IAAI,2CAA2C,CACnD,8CAA8C,iBAAiB,GAAG;YAChE,gBAAgB,IAAI,CAAC,MAAM,cAAc,CAC5C,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SimCloudWatchObservation } from "./sim-cloudwatch-observation.js";
|
|
2
|
+
/**
|
|
3
|
+
* Read a datum stating measurements and how often each of them was seen.
|
|
4
|
+
*
|
|
5
|
+
* They collapse into one observation, because nothing this simulation reports
|
|
6
|
+
* could tell the individual measurements apart afterwards.
|
|
7
|
+
*/
|
|
8
|
+
export declare function readSimCloudWatchValues(values: readonly number[] | undefined, counts: readonly number[] | undefined): SimCloudWatchObservation;
|
|
9
|
+
//# sourceMappingURL=sim-cloudwatch-weighted-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-weighted-values.d.ts","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACrC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GACpC,wBAAwB,CAsB1B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { refuseSimCloudWatchValuesShape, requiredSimCloudWatchCount, requiredSimCloudWatchMetricValue, } from "./sim-cloudwatch-metric-value.js";
|
|
2
|
+
/**
|
|
3
|
+
* Read a datum stating measurements and how often each of them was seen.
|
|
4
|
+
*
|
|
5
|
+
* They collapse into one observation, because nothing this simulation reports
|
|
6
|
+
* could tell the individual measurements apart afterwards.
|
|
7
|
+
*/
|
|
8
|
+
export function readSimCloudWatchValues(values, counts) {
|
|
9
|
+
const measured = values ?? [];
|
|
10
|
+
refuseSimCloudWatchValuesShape(measured, counts);
|
|
11
|
+
return measured.entries().reduce((observation, [index, value]) => {
|
|
12
|
+
const measure = requiredSimCloudWatchMetricValue("Values", value);
|
|
13
|
+
const count = requiredSimCloudWatchCount("Counts", counts?.at(index) ?? 1);
|
|
14
|
+
return {
|
|
15
|
+
sampleCount: observation.sampleCount + count,
|
|
16
|
+
sum: observation.sum + measure * count,
|
|
17
|
+
minimum: Math.min(observation.minimum, measure),
|
|
18
|
+
maximum: Math.max(observation.maximum, measure),
|
|
19
|
+
};
|
|
20
|
+
}, { sampleCount: 0, sum: 0, minimum: Infinity, maximum: -Infinity });
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=sim-cloudwatch-weighted-values.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cloudwatch-weighted-values.js","sourceRoot":"","sources":["../../../../../src/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,kCAAkC,CAAC;AAG1C;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAqC,EACrC,MAAqC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAI,EAAE,CAAC;IAE9B,8BAA8B,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAEjD,OAAO,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,CAC9B,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE;QAC9B,MAAM,OAAO,GAAG,gCAAgC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAClE,MAAM,KAAK,GAAG,0BAA0B,CACtC,QAAQ,EACR,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CACvB,CAAC;QAEF,OAAO;YACL,WAAW,EAAE,WAAW,CAAC,WAAW,GAAG,KAAK;YAC5C,GAAG,EAAE,WAAW,CAAC,GAAG,GAAG,OAAO,GAAG,KAAK;YACtC,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC;YAC/C,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC;SAChD,CAAC;IACJ,CAAC,EACD,EAAE,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,CAClE,CAAC;AACJ,CAAC"}
|