@kensio/yulin 1.15.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/sdk/error/sim-sdk.error.d.ts +10 -0
- package/dist/sdk/error/sim-sdk.error.d.ts.map +1 -1
- package/dist/sdk/error/sim-sdk.error.js +10 -0
- package/dist/sdk/error/sim-sdk.error.js.map +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.js +5 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
- package/dist/sdk/wire/sim-sdk-wire-command.d.ts +20 -0
- package/dist/sdk/wire/sim-sdk-wire-command.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-command.js +31 -0
- package/dist/sdk/wire/sim-sdk-wire-command.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts +42 -0
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.js +63 -0
- package/dist/sdk/wire/sim-sdk-wire-dispatcher.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-json.d.ts +26 -0
- package/dist/sdk/wire/sim-sdk-wire-json.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-json.js +59 -0
- package/dist/sdk/wire/sim-sdk-wire-json.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts +37 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.js +79 -0
- package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-response.d.ts +17 -0
- package/dist/sdk/wire/sim-sdk-wire-response.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-response.js +67 -0
- package/dist/sdk/wire/sim-sdk-wire-response.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-unbridged.d.ts +17 -0
- package/dist/sdk/wire/sim-sdk-wire-unbridged.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire-unbridged.js +25 -0
- package/dist/sdk/wire/sim-sdk-wire-unbridged.js.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire.types.d.ts +32 -0
- package/dist/sdk/wire/sim-sdk-wire.types.d.ts.map +1 -0
- package/dist/sdk/wire/sim-sdk-wire.types.js +2 -0
- package/dist/sdk/wire/sim-sdk-wire.types.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint-style.d.ts +33 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint-style.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint-style.js +2 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint-style.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-builder.d.ts.map +1 -1
- package/dist/serve/payload-2/sim-payload-2-event-builder.js +2 -2
- package/dist/serve/payload-2/sim-payload-2-event-builder.js.map +1 -1
- package/dist/serve/payload-2/sim-payload-2-event-query.d.ts +12 -0
- package/dist/serve/payload-2/sim-payload-2-event-query.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-query.js +15 -0
- package/dist/serve/payload-2/sim-payload-2-event-query.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-request.d.ts +32 -0
- package/dist/serve/payload-2/sim-payload-2-event-request.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-request.js +42 -0
- package/dist/serve/payload-2/sim-payload-2-event-request.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event.factory.d.ts +15 -0
- package/dist/serve/payload-2/sim-payload-2-event.factory.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event.factory.js +71 -0
- package/dist/serve/payload-2/sim-payload-2-event.factory.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-request-parts.d.ts +23 -12
- package/dist/serve/payload-2/sim-payload-2-request-parts.d.ts.map +1 -1
- package/dist/serve/payload-2/sim-payload-2-request-parts.js +38 -26
- package/dist/serve/payload-2/sim-payload-2-request-parts.js.map +1 -1
- package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.d.ts +35 -0
- package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.d.ts.map +1 -0
- package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.js +65 -0
- package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.js.map +1 -0
- package/dist/service/apigatewayv2/index.d.ts +1 -0
- package/dist/service/apigatewayv2/index.d.ts.map +1 -1
- package/dist/service/apigatewayv2/index.js +1 -0
- package/dist/service/apigatewayv2/index.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +10 -36
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +16 -63
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.d.ts +22 -0
- package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.d.ts.map +1 -0
- package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.js +20 -0
- package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-registered-service-builder.d.ts +71 -0
- package/dist/service/aws/factory/sim-aws-registered-service-builder.d.ts.map +1 -0
- package/dist/service/aws/factory/sim-aws-registered-service-builder.js +96 -0
- package/dist/service/aws/factory/sim-aws-registered-service-builder.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts +9 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js +11 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts +7 -0
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.js +19 -5
- package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.d.ts +6 -0
- package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.js +8 -0
- package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.d.ts +6 -0
- package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.js +8 -0
- package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.d.ts +26 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.js +28 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.d.ts +6 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.js +13 -0
- package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.d.ts +6 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.js +19 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.d.ts +27 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.js +46 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.d.ts +33 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.js +48 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.d.ts +27 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.js +29 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +4 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +8 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
- package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.d.ts +34 -0
- package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.js +51 -0
- package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.js.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.d.ts +54 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.js +70 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.js.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.d.ts +30 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.js +58 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.js.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.d.ts +26 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.js +56 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.js.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.d.ts +37 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.js +19 -0
- package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.d.ts +10 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.js +11 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.d.ts +33 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.js +2 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.d.ts +32 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.js +75 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.d.ts +26 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.js +16 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.d.ts +23 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.js +37 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.d.ts +55 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.js +84 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.d.ts +18 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.js +29 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.d.ts +24 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.js +33 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.d.ts +57 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.js +84 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.d.ts +19 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.js +48 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.js.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.d.ts +16 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.d.ts.map +1 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.js +31 -0
- package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.js.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.d.ts +33 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.js +41 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.js.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.d.ts +39 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.js +80 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.js.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.d.ts +20 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.js +80 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.js.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.d.ts +56 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.js +107 -0
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.js.map +1 -0
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.d.ts +29 -0
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.js +43 -0
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/alarm.command.d.ts +155 -0
- package/dist/service/cloudwatch/command/alarm/alarm.command.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/alarm.command.js +2 -0
- package/dist/service/cloudwatch/command/alarm/alarm.command.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.d.ts +19 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.js +56 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.d.ts +22 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.js +2 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.d.ts +15 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.js +61 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.d.ts +7 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.js +39 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.d.ts +20 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.js +52 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.d.ts +25 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.js +60 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.d.ts +12 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.js +59 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.d.ts +23 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.js +63 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.js.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.d.ts +19 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.js +47 -0
- package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.js.map +1 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.d.ts +41 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.js +65 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.js.map +1 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.d.ts +23 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.js +30 -0
- package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.js.map +1 -0
- package/dist/service/cloudwatch/command/data/data.command.d.ts +42 -0
- package/dist/service/cloudwatch/command/data/data.command.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/data.command.js +2 -0
- package/dist/service/cloudwatch/command/data/data.command.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.d.ts +11 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.js +66 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.d.ts +14 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.js +58 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.d.ts +15 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.js +34 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.d.ts +28 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.js +66 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.js.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.d.ts +9 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.js +22 -0
- package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.js.map +1 -0
- package/dist/service/cloudwatch/command/query/query.command.d.ts +133 -0
- package/dist/service/cloudwatch/command/query/query.command.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/query.command.js +2 -0
- package/dist/service/cloudwatch/command/query/query.command.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.d.ts +25 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.js +46 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.d.ts +25 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.js +55 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.d.ts +23 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.js +46 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.d.ts +25 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.js +63 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.d.ts +26 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.js +61 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.d.ts +20 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.js +36 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.d.ts +12 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.js +27 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.d.ts +20 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.js +52 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.d.ts +10 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.js +20 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.js.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.d.ts +17 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.js +45 -0
- package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.js.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.d.ts +7 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.js +2 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.js.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-page.d.ts +24 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-page.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-page.js +36 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-page.js.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.d.ts +21 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.d.ts.map +1 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.js +10 -0
- package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.js.map +1 -0
- package/dist/service/cloudwatch/error/sim-cloudwatch.error.d.ts +48 -0
- package/dist/service/cloudwatch/error/sim-cloudwatch.error.d.ts.map +1 -0
- package/dist/service/cloudwatch/error/sim-cloudwatch.error.js +51 -0
- package/dist/service/cloudwatch/error/sim-cloudwatch.error.js.map +1 -0
- package/dist/service/cloudwatch/index.d.ts +26 -0
- package/dist/service/cloudwatch/index.d.ts.map +1 -0
- package/dist/service/cloudwatch/index.js +25 -0
- package/dist/service/cloudwatch/index.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.d.ts +54 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.js +29 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.d.ts +37 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.js +42 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.d.ts +46 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.js +61 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.d.ts +53 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.js +45 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-name.d.ts +22 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-name.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-name.js +54 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-name.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.d.ts +22 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.js +34 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-period.d.ts +32 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-period.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-period.js +70 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-period.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.d.ts +20 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.js +51 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.d.ts +16 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.js +25 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.js.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.d.ts +18 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.d.ts.map +1 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.js +56 -0
- package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.js.map +1 -0
- package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.d.ts +18 -0
- package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.d.ts.map +1 -0
- package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.js +60 -0
- package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.js.map +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.d.ts +47 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.d.ts.map +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.js +86 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.js.map +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch.d.ts +98 -0
- package/dist/service/cloudwatch/sim-cloudwatch.d.ts.map +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch.js +138 -0
- package/dist/service/cloudwatch/sim-cloudwatch.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-account-recovery.d.ts +32 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-account-recovery.d.ts.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-account-recovery.js +61 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-account-recovery.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts +2 -3
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +23 -9
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.d.ts +30 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.d.ts.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.js +47 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.js.map +1 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +8 -4
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js +7 -3
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js +3 -1
- package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts +3 -4
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js +3 -22
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts +9 -16
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js +9 -26
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts +12 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js +19 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js +5 -4
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +6 -2
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +8 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts +10 -8
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.d.ts +10 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.js +12 -0
- package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
- package/dist/service/cognito/index.d.ts +1 -1
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +1 -1
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-account-recovery.d.ts +86 -0
- package/dist/service/cognito/user-pool/sim-cognito-account-recovery.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-account-recovery.js +127 -0
- package/dist/service/cognito/user-pool/sim-cognito-account-recovery.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.d.ts +22 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.js +52 -0
- package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +34 -15
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +30 -15
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +2 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-username-attributes.d.ts +87 -0
- package/dist/service/cognito/user-pool/sim-cognito-username-attributes.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-username-attributes.js +137 -0
- package/dist/service/cognito/user-pool/sim-cognito-username-attributes.js.map +1 -0
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.d.ts +25 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.js +39 -2
- package/dist/service/cognito/user-pool/user/sim-cognito-user-store.js.map +1 -1
- package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.d.ts +47 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.d.ts.map +1 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.js +96 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.js.map +1 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.d.ts +36 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.d.ts.map +1 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.js +64 -0
- package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.js.map +1 -0
- package/dist/service/lambda/factory/lambda-function-url-event.factory.d.ts +37 -0
- package/dist/service/lambda/factory/lambda-function-url-event.factory.d.ts.map +1 -0
- package/dist/service/lambda/factory/lambda-function-url-event.factory.js +55 -0
- package/dist/service/lambda/factory/lambda-function-url-event.factory.js.map +1 -0
- package/dist/service/lambda/factory/lambda-sqs-event.factory.d.ts +37 -0
- package/dist/service/lambda/factory/lambda-sqs-event.factory.d.ts.map +1 -0
- package/dist/service/lambda/factory/lambda-sqs-event.factory.js +78 -0
- package/dist/service/lambda/factory/lambda-sqs-event.factory.js.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts +27 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js +78 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts +23 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js +111 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts +37 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts.map +1 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js +78 -0
- package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js.map +1 -0
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.d.ts +5 -3
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts +10 -2
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js +21 -6
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.d.ts +12 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.d.ts.map +1 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.js +2 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.js.map +1 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.d.ts.map +1 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.js +5 -1
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.js.map +1 -1
- package/dist/service/lambda/function/environment/sim-lambda-environment.d.ts.map +1 -1
- package/dist/service/lambda/function/environment/sim-lambda-environment.js +2 -0
- package/dist/service/lambda/function/environment/sim-lambda-environment.js.map +1 -1
- package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.d.ts +19 -0
- package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.d.ts.map +1 -0
- package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.js +20 -0
- package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.js.map +1 -0
- package/dist/service/lambda/index.d.ts +3 -0
- package/dist/service/lambda/index.d.ts.map +1 -1
- package/dist/service/lambda/index.js +3 -0
- package/dist/service/lambda/index.js.map +1 -1
- package/dist/service/s3/factory/s3-notification-event-object.d.ts +10 -0
- package/dist/service/s3/factory/s3-notification-event-object.d.ts.map +1 -0
- package/dist/service/s3/factory/s3-notification-event-object.js +12 -0
- package/dist/service/s3/factory/s3-notification-event-object.js.map +1 -0
- package/dist/service/s3/factory/s3-notification-event.factory.d.ts +45 -0
- package/dist/service/s3/factory/s3-notification-event.factory.d.ts.map +1 -0
- package/dist/service/s3/factory/s3-notification-event.factory.js +102 -0
- package/dist/service/s3/factory/s3-notification-event.factory.js.map +1 -0
- package/dist/service/s3/index.d.ts +2 -0
- package/dist/service/s3/index.d.ts.map +1 -1
- package/dist/service/s3/index.js +1 -0
- package/dist/service/s3/index.js.map +1 -1
- package/dist/service/s3/notification/event/sim-s3-event-records.d.ts +32 -1
- package/dist/service/s3/notification/event/sim-s3-event-records.d.ts.map +1 -1
- package/dist/service/s3/notification/event/sim-s3-event-records.js +5 -5
- package/dist/service/s3/notification/event/sim-s3-event-records.js.map +1 -1
- package/dist/service/s3/notification/event/sim-s3-event.type.d.ts +83 -0
- package/dist/service/s3/notification/event/sim-s3-event.type.d.ts.map +1 -0
- package/dist/service/s3/notification/event/sim-s3-event.type.js +2 -0
- package/dist/service/s3/notification/event/sim-s3-event.type.js.map +1 -0
- package/dist/service/ses/account/sim-ses-account.d.ts +59 -0
- package/dist/service/ses/account/sim-ses-account.d.ts.map +1 -0
- package/dist/service/ses/account/sim-ses-account.js +66 -0
- package/dist/service/ses/account/sim-ses-account.js.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts +35 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js +52 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.d.ts +37 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.d.ts.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.js +61 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.js.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.d.ts +17 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.d.ts.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.js +48 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.js.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-error.d.ts +24 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-error.d.ts.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-error.js +39 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-error.js.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.d.ts +13 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.d.ts.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.js +13 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.js.map +1 -0
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts +28 -0
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js +69 -0
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js.map +1 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.d.ts +30 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.d.ts.map +1 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.js +48 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.js.map +1 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.d.ts +58 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.d.ts.map +1 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.js +121 -0
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.js.map +1 -0
- package/dist/service/ses/command/account/account.command.d.ts +59 -0
- package/dist/service/ses/command/account/account.command.d.ts.map +1 -0
- package/dist/service/ses/command/account/account.command.js +2 -0
- package/dist/service/ses/command/account/account.command.js.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-commands.d.ts +34 -0
- package/dist/service/ses/command/account/sim-ses-account-commands.d.ts.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-commands.js +41 -0
- package/dist/service/ses/command/account/sim-ses-account-commands.js.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-details-input.d.ts +11 -0
- package/dist/service/ses/command/account/sim-ses-account-details-input.d.ts.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-details-input.js +50 -0
- package/dist/service/ses/command/account/sim-ses-account-details-input.js.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-report.d.ts +21 -0
- package/dist/service/ses/command/account/sim-ses-account-report.d.ts.map +1 -0
- package/dist/service/ses/command/account/sim-ses-account-report.js +45 -0
- package/dist/service/ses/command/account/sim-ses-account-report.js.map +1 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.d.ts +55 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.d.ts.map +1 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.js +78 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.js.map +1 -0
- package/dist/service/ses/command/identity/identity.command.d.ts +84 -0
- package/dist/service/ses/command/identity/identity.command.d.ts.map +1 -0
- package/dist/service/ses/command/identity/identity.command.js +2 -0
- package/dist/service/ses/command/identity/identity.command.js.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.d.ts +44 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.d.ts.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.js +92 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.js.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.d.ts +12 -0
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.d.ts.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.js +26 -0
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.js.map +1 -0
- package/dist/service/ses/command/send/send.command.d.ts +71 -0
- package/dist/service/ses/command/send/send.command.d.ts.map +1 -0
- package/dist/service/ses/command/send/send.command.js +2 -0
- package/dist/service/ses/command/send/send.command.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-content.d.ts +24 -0
- package/dist/service/ses/command/send/sim-ses-content.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-content.js +40 -0
- package/dist/service/ses/command/send/sim-ses-content.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-read-content.d.ts +19 -0
- package/dist/service/ses/command/send/sim-ses-read-content.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-read-content.js +2 -0
- package/dist/service/ses/command/send/sim-ses-read-content.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-send-email.d.ts +36 -0
- package/dist/service/ses/command/send/sim-ses-send-email.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-send-email.js +80 -0
- package/dist/service/ses/command/send/sim-ses-send-email.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-simple-content.d.ts +12 -0
- package/dist/service/ses/command/send/sim-ses-simple-content.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-simple-content.js +33 -0
- package/dist/service/ses/command/send/sim-ses-simple-content.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-template-send.d.ts +34 -0
- package/dist/service/ses/command/send/sim-ses-template-send.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-template-send.js +101 -0
- package/dist/service/ses/command/send/sim-ses-template-send.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.d.ts +12 -0
- package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.js +26 -0
- package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.d.ts +36 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.js +50 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.js.map +1 -0
- package/dist/service/ses/command/sim-ses-command.types.d.ts +8 -0
- package/dist/service/ses/command/sim-ses-command.types.d.ts.map +1 -0
- package/dist/service/ses/command/sim-ses-command.types.js +2 -0
- package/dist/service/ses/command/sim-ses-command.types.js.map +1 -0
- package/dist/service/ses/command/sim-ses-page.d.ts +20 -0
- package/dist/service/ses/command/sim-ses-page.d.ts.map +1 -0
- package/dist/service/ses/command/sim-ses-page.js +49 -0
- package/dist/service/ses/command/sim-ses-page.js.map +1 -0
- package/dist/service/ses/command/sim-ses-request-options.d.ts +12 -0
- package/dist/service/ses/command/sim-ses-request-options.d.ts.map +1 -0
- package/dist/service/ses/command/sim-ses-request-options.js +2 -0
- package/dist/service/ses/command/sim-ses-request-options.js.map +1 -0
- package/dist/service/ses/command/template/sim-ses-template-commands.d.ts +56 -0
- package/dist/service/ses/command/template/sim-ses-template-commands.d.ts.map +1 -0
- package/dist/service/ses/command/template/sim-ses-template-commands.js +96 -0
- package/dist/service/ses/command/template/sim-ses-template-commands.js.map +1 -0
- package/dist/service/ses/command/template/sim-ses-template-reporting.d.ts +14 -0
- package/dist/service/ses/command/template/sim-ses-template-reporting.d.ts.map +1 -0
- package/dist/service/ses/command/template/sim-ses-template-reporting.js +23 -0
- package/dist/service/ses/command/template/sim-ses-template-reporting.js.map +1 -0
- package/dist/service/ses/command/template/template.command.d.ts +98 -0
- package/dist/service/ses/command/template/template.command.d.ts.map +1 -0
- package/dist/service/ses/command/template/template.command.js +2 -0
- package/dist/service/ses/command/template/template.command.js.map +1 -0
- package/dist/service/ses/email/sim-ses-address.d.ts +15 -0
- package/dist/service/ses/email/sim-ses-address.d.ts.map +1 -0
- package/dist/service/ses/email/sim-ses-address.js +29 -0
- package/dist/service/ses/email/sim-ses-address.js.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email-store.d.ts +33 -0
- package/dist/service/ses/email/sim-ses-sent-email-store.d.ts.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email-store.js +42 -0
- package/dist/service/ses/email/sim-ses-sent-email-store.js.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email.d.ts +78 -0
- package/dist/service/ses/email/sim-ses-sent-email.d.ts.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email.js +61 -0
- package/dist/service/ses/email/sim-ses-sent-email.js.map +1 -0
- package/dist/service/ses/error/sim-ses.error.d.ts +70 -0
- package/dist/service/ses/error/sim-ses.error.d.ts.map +1 -0
- package/dist/service/ses/error/sim-ses.error.js +77 -0
- package/dist/service/ses/error/sim-ses.error.js.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-name.d.ts +34 -0
- package/dist/service/ses/identity/sim-ses-identity-name.d.ts.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-name.js +90 -0
- package/dist/service/ses/identity/sim-ses-identity-name.js.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-store.d.ts +62 -0
- package/dist/service/ses/identity/sim-ses-identity-store.d.ts.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-store.js +93 -0
- package/dist/service/ses/identity/sim-ses-identity-store.js.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity.d.ts +63 -0
- package/dist/service/ses/identity/sim-ses-identity.d.ts.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity.js +62 -0
- package/dist/service/ses/identity/sim-ses-identity.js.map +1 -0
- package/dist/service/ses/index.d.ts +13 -0
- package/dist/service/ses/index.d.ts.map +1 -0
- package/dist/service/ses/index.js +11 -0
- package/dist/service/ses/index.js.map +1 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.d.ts +18 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.d.ts.map +1 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.js +72 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.js.map +1 -0
- package/dist/service/ses/sim-ses-arn.d.ts +20 -0
- package/dist/service/ses/sim-ses-arn.d.ts.map +1 -0
- package/dist/service/ses/sim-ses-arn.js +25 -0
- package/dist/service/ses/sim-ses-arn.js.map +1 -0
- package/dist/service/ses/sim-ses-commands.d.ts +37 -0
- package/dist/service/ses/sim-ses-commands.d.ts.map +1 -0
- package/dist/service/ses/sim-ses-commands.js +75 -0
- package/dist/service/ses/sim-ses-commands.js.map +1 -0
- package/dist/service/ses/sim-ses-v2.d.ts +139 -0
- package/dist/service/ses/sim-ses-v2.d.ts.map +1 -0
- package/dist/service/ses/sim-ses-v2.js +195 -0
- package/dist/service/ses/sim-ses-v2.js.map +1 -0
- package/dist/service/ses/template/sim-ses-render.d.ts +16 -0
- package/dist/service/ses/template/sim-ses-render.d.ts.map +1 -0
- package/dist/service/ses/template/sim-ses-render.js +88 -0
- package/dist/service/ses/template/sim-ses-render.js.map +1 -0
- package/dist/service/ses/template/sim-ses-template-content.d.ts +28 -0
- package/dist/service/ses/template/sim-ses-template-content.d.ts.map +1 -0
- package/dist/service/ses/template/sim-ses-template-content.js +67 -0
- package/dist/service/ses/template/sim-ses-template-content.js.map +1 -0
- package/dist/service/ses/template/sim-ses-template-store.d.ts +47 -0
- package/dist/service/ses/template/sim-ses-template-store.d.ts.map +1 -0
- package/dist/service/ses/template/sim-ses-template-store.js +81 -0
- package/dist/service/ses/template/sim-ses-template-store.js.map +1 -0
- package/dist/service/ses/template/sim-ses-template.d.ts +38 -0
- package/dist/service/ses/template/sim-ses-template.d.ts.map +1 -0
- package/dist/service/ses/template/sim-ses-template.js +39 -0
- package/dist/service/ses/template/sim-ses-template.js.map +1 -0
- package/dist/service/sqs/message/sim-sqs-message-body.d.ts +10 -5
- package/dist/service/sqs/message/sim-sqs-message-body.d.ts.map +1 -1
- package/dist/service/sqs/message/sim-sqs-message-body.js +13 -6
- package/dist/service/sqs/message/sim-sqs-message-body.js.map +1 -1
- package/dist/util/factory/sim-records-event.factory.d.ts +60 -0
- package/dist/util/factory/sim-records-event.factory.d.ts.map +1 -0
- package/dist/util/factory/sim-records-event.factory.js +47 -0
- package/dist/util/factory/sim-records-event.factory.js.map +1 -0
- package/package.json +12 -2
- package/dist/service/cognito/command/sim-cognito-canonical-value.d.ts +0 -28
- package/dist/service/cognito/command/sim-cognito-canonical-value.d.ts.map +0 -1
- package/dist/service/cognito/command/sim-cognito-canonical-value.js +0 -44
- package/dist/service/cognito/command/sim-cognito-canonical-value.js.map +0 -1
- package/dist/service/cognito/command/sim-cognito-unsimulated-structure.d.ts +0 -23
- package/dist/service/cognito/command/sim-cognito-unsimulated-structure.d.ts.map +0 -1
- package/dist/service/cognito/command/sim-cognito-unsimulated-structure.js +0 -38
- package/dist/service/cognito/command/sim-cognito-unsimulated-structure.js.map +0 -1
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts +0 -45
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts.map +0 -1
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js +0 -46
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js.map +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { SimCfnServiceResourceFactory } from "../../cloudformation/resource/factory/sim-cfn-resource-factory.type.js";
|
|
2
|
+
import type { SimCfnResource, SimCloudFormationResourceCreateContext } from "../../cloudformation/resource/sim-cfn-resource.js";
|
|
3
|
+
import type { SimSesV2 } from "../sim-ses-v2.js";
|
|
4
|
+
interface SimSesCfnResourceFactoryProperties {
|
|
5
|
+
readonly ses: SimSesV2;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* CloudFormation Resource factory for simulated SES resources.
|
|
9
|
+
*
|
|
10
|
+
* Email identities and templates are the two AWS::SES::* Resource types this
|
|
11
|
+
* simulation models. Configuration sets, contact lists and receipt rules need
|
|
12
|
+
* machinery it does not have, so a template declaring one is reported as
|
|
13
|
+
* unsupported rather than quietly treated as deployed.
|
|
14
|
+
*/
|
|
15
|
+
export declare class SimSesCfnResourceFactory implements SimCfnServiceResourceFactory {
|
|
16
|
+
#private;
|
|
17
|
+
constructor(properties: SimSesCfnResourceFactoryProperties);
|
|
18
|
+
/**
|
|
19
|
+
* Create a simulated SES resource from a CloudFormation Resource.
|
|
20
|
+
*/
|
|
21
|
+
create(resourceTypeName: string, resource: SimCfnResource, context: SimCloudFormationResourceCreateContext): Promise<object | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* Delete a simulated SES resource created from a CloudFormation Resource.
|
|
24
|
+
*/
|
|
25
|
+
delete(resourceTypeName: string, resource: SimCfnResource): Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=sim-ses-cfn-resource-factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-cfn-resource-factory.d.ts","sourceRoot":"","sources":["../../../../src/service/ses/cfn/sim-ses-cfn-resource-factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wEAAwE,CAAC;AAC3H,OAAO,KAAK,EACV,cAAc,EACd,sCAAsC,EACvC,MAAM,mDAAmD,CAAC;AAE3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AASjD,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,qBAAa,wBAAyB,YAAW,4BAA4B;;IAI3E,YAAY,UAAU,EAAE,kCAAkC,EAOzD;IAED;;OAEG;IACG,MAAM,CACV,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,sCAAsC,GAC9C,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAc7B;IAED;;OAEG;IACG,MAAM,CACV,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAkBf;CACF"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { assertDefined } from "../../../util/type-guard/defined.js";
|
|
2
|
+
import { SimCfnSesIdentityCreator } from "./identity/sim-cfn-ses-identity-creator.js";
|
|
3
|
+
import { sesEmailIdentityResourceTypeName, sesTemplateResourceTypeName, } from "./sim-cfn-ses-resource-types.js";
|
|
4
|
+
import { SimCfnSesTemplateCreator } from "./template/sim-cfn-ses-template-creator.js";
|
|
5
|
+
/**
|
|
6
|
+
* CloudFormation Resource factory for simulated SES resources.
|
|
7
|
+
*
|
|
8
|
+
* Email identities and templates are the two AWS::SES::* Resource types this
|
|
9
|
+
* simulation models. Configuration sets, contact lists and receipt rules need
|
|
10
|
+
* machinery it does not have, so a template declaring one is reported as
|
|
11
|
+
* unsupported rather than quietly treated as deployed.
|
|
12
|
+
*/
|
|
13
|
+
export class SimSesCfnResourceFactory {
|
|
14
|
+
#identityCreator;
|
|
15
|
+
#templateCreator;
|
|
16
|
+
constructor(properties) {
|
|
17
|
+
this.#identityCreator = new SimCfnSesIdentityCreator({
|
|
18
|
+
ses: properties.ses,
|
|
19
|
+
});
|
|
20
|
+
this.#templateCreator = new SimCfnSesTemplateCreator({
|
|
21
|
+
ses: properties.ses,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Create a simulated SES resource from a CloudFormation Resource.
|
|
26
|
+
*/
|
|
27
|
+
async create(resourceTypeName, resource, context) {
|
|
28
|
+
const properties = context.resolvedProperties ?? resource.properties;
|
|
29
|
+
switch (resourceTypeName) {
|
|
30
|
+
case sesEmailIdentityResourceTypeName: {
|
|
31
|
+
return await this.#identityCreator.create(resource, properties);
|
|
32
|
+
}
|
|
33
|
+
case sesTemplateResourceTypeName: {
|
|
34
|
+
return await this.#templateCreator.create(resource, properties);
|
|
35
|
+
}
|
|
36
|
+
default: {
|
|
37
|
+
throw unsupportedResourceType(resourceTypeName, "");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Delete a simulated SES resource created from a CloudFormation Resource.
|
|
43
|
+
*/
|
|
44
|
+
async delete(resourceTypeName, resource) {
|
|
45
|
+
switch (resourceTypeName) {
|
|
46
|
+
case sesEmailIdentityResourceTypeName: {
|
|
47
|
+
await this.#identityCreator.delete(created(resource, "identity"));
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
case sesTemplateResourceTypeName: {
|
|
51
|
+
await this.#templateCreator.delete(created(resource, "template"));
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
default: {
|
|
55
|
+
throw unsupportedResourceType(resourceTypeName, " deletion");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function created(resource, described) {
|
|
61
|
+
const simResource = resource.simResource;
|
|
62
|
+
assertDefined(simResource, `sim SES ${described} for CloudFormation Resource ${resource.logicalId}`);
|
|
63
|
+
return simResource;
|
|
64
|
+
}
|
|
65
|
+
function unsupportedResourceType(resourceTypeName, operationSuffix) {
|
|
66
|
+
return new Error(`Unsupported sim SES CloudFormation Resource ` +
|
|
67
|
+
`${resourceTypeName}${operationSuffix}`);
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=sim-ses-cfn-resource-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-cfn-resource-factory.js","sourceRoot":"","sources":["../../../../src/service/ses/cfn/sim-ses-cfn-resource-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AASpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,EACL,gCAAgC,EAChC,2BAA2B,GAC5B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAMtF;;;;;;;GAOG;AACH,MAAM,OAAO,wBAAwB;IAC1B,gBAAgB,CAA2B;IAC3C,gBAAgB,CAA2B;IAEpD,YAAY,UAA8C;QACxD,IAAI,CAAC,gBAAgB,GAAG,IAAI,wBAAwB,CAAC;YACnD,GAAG,EAAE,UAAU,CAAC,GAAG;SACpB,CAAC,CAAC;QACH,IAAI,CAAC,gBAAgB,GAAG,IAAI,wBAAwB,CAAC;YACnD,GAAG,EAAE,UAAU,CAAC,GAAG;SACpB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,gBAAwB,EACxB,QAAwB,EACxB,OAA+C;QAE/C,MAAM,UAAU,GAAG,OAAO,CAAC,kBAAkB,IAAI,QAAQ,CAAC,UAAU,CAAC;QAErE,QAAQ,gBAAgB,EAAE,CAAC;YACzB,KAAK,gCAAgC,EAAE,CAAC;gBACtC,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;YAClE,CAAC;YACD,KAAK,2BAA2B,EAAE,CAAC;gBACjC,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;YAClE,CAAC;YACD,SAAS,CAAC;gBACR,MAAM,uBAAuB,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;YACtD,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,gBAAwB,EACxB,QAAwB;QAExB,QAAQ,gBAAgB,EAAE,CAAC;YACzB,KAAK,gCAAgC,EAAE,CAAC;gBACtC,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAChC,OAAO,CAAiB,QAAQ,EAAE,UAAU,CAAC,CAC9C,CAAC;gBACF,OAAO;YACT,CAAC;YACD,KAAK,2BAA2B,EAAE,CAAC;gBACjC,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAChC,OAAO,CAAiB,QAAQ,EAAE,UAAU,CAAC,CAC9C,CAAC;gBACF,OAAO;YACT,CAAC;YACD,SAAS,CAAC;gBACR,MAAM,uBAAuB,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;YAC/D,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAED,SAAS,OAAO,CACd,QAAwB,EACxB,SAAiB;IAEjB,MAAM,WAAW,GAAG,QAAQ,CAAC,WAA4B,CAAC;IAE1D,aAAa,CACX,WAAW,EACX,WAAW,SAAS,gCAAgC,QAAQ,CAAC,SAAS,EAAE,CACzE,CAAC;IAEF,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,uBAAuB,CAC9B,gBAAwB,EACxB,eAAuB;IAEvB,OAAO,IAAI,KAAK,CACd,8CAA8C;QAC5C,GAAG,gBAAgB,GAAG,eAAe,EAAE,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-resource.js";
|
|
2
|
+
import type { SimCfnTemplateValueRecord } from "../../../cloudformation/template/value/sim-cfn-template-value.js";
|
|
3
|
+
import type { SimSesV2 } from "../../sim-ses-v2.js";
|
|
4
|
+
import type { SimSesTemplate } from "../../template/sim-ses-template.js";
|
|
5
|
+
interface SimCfnSesTemplateCreatorProperties {
|
|
6
|
+
readonly ses: SimSesV2;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Creates simulated email templates from AWS::SES::Template Resources.
|
|
10
|
+
*
|
|
11
|
+
* The template goes through the ordinary CreateEmailTemplate command, so one a
|
|
12
|
+
* stack deployed is rendered by exactly the same code as one an SDK caller
|
|
13
|
+
* made. That is what makes a template carrying Handlebars this simulation does
|
|
14
|
+
* not render fail the deploy rather than sit in the stack waiting to fail at
|
|
15
|
+
* the first send.
|
|
16
|
+
*/
|
|
17
|
+
export declare class SimCfnSesTemplateCreator {
|
|
18
|
+
#private;
|
|
19
|
+
constructor(properties: SimCfnSesTemplateCreatorProperties);
|
|
20
|
+
/**
|
|
21
|
+
* Create a template from an AWS::SES::Template Resource.
|
|
22
|
+
*/
|
|
23
|
+
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord): Promise<SimSesTemplate>;
|
|
24
|
+
/**
|
|
25
|
+
* Delete a template created from an AWS::SES::Template Resource.
|
|
26
|
+
*/
|
|
27
|
+
delete(template: SimSesTemplate): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=sim-cfn-ses-template-creator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-ses-template-creator.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/cfn/template/sim-cfn-ses-template-creator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAClH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAKzE,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,qBAAa,wBAAwB;;IAGnC,YAAY,UAAU,EAAE,kCAAkC,EAEzD;IAED;;OAEG;IACG,MAAM,CACV,QAAQ,EAAE,cAAc,EACxB,UAAU,EAAE,yBAAyB,GACpC,OAAO,CAAC,cAAc,CAAC,CA4BzB;IAED;;OAEG;IACG,MAAM,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAIpD;CACF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { assertDefined } from "../../../../util/type-guard/defined.js";
|
|
2
|
+
import { simCfnSesResourceCreation } from "../sim-cfn-ses-resource-error.js";
|
|
3
|
+
import { sesTemplateResourceType } from "../sim-cfn-ses-resource-types.js";
|
|
4
|
+
import { SimCfnSesTemplateProperties } from "./sim-cfn-ses-template-properties.js";
|
|
5
|
+
/**
|
|
6
|
+
* Creates simulated email templates from AWS::SES::Template Resources.
|
|
7
|
+
*
|
|
8
|
+
* The template goes through the ordinary CreateEmailTemplate command, so one a
|
|
9
|
+
* stack deployed is rendered by exactly the same code as one an SDK caller
|
|
10
|
+
* made. That is what makes a template carrying Handlebars this simulation does
|
|
11
|
+
* not render fail the deploy rather than sit in the stack waiting to fail at
|
|
12
|
+
* the first send.
|
|
13
|
+
*/
|
|
14
|
+
export class SimCfnSesTemplateCreator {
|
|
15
|
+
#ses;
|
|
16
|
+
constructor(properties) {
|
|
17
|
+
this.#ses = properties.ses;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Create a template from an AWS::SES::Template Resource.
|
|
21
|
+
*/
|
|
22
|
+
async create(resource, properties) {
|
|
23
|
+
const templateProperties = new SimCfnSesTemplateProperties({
|
|
24
|
+
resource,
|
|
25
|
+
properties,
|
|
26
|
+
});
|
|
27
|
+
const templateName = templateProperties.templateName();
|
|
28
|
+
const content = templateProperties.content();
|
|
29
|
+
templateProperties.recordIgnoredProperties();
|
|
30
|
+
return await simCfnSesResourceCreation(sesTemplateResourceType, resource.logicalId, async () => {
|
|
31
|
+
await this.#ses.createEmailTemplate({
|
|
32
|
+
input: { TemplateName: templateName, TemplateContent: content },
|
|
33
|
+
});
|
|
34
|
+
const template = this.#ses.findTemplate(templateName);
|
|
35
|
+
assertDefined(template, `sim SES template ${templateName} after CloudFormation creation`);
|
|
36
|
+
return template;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Delete a template created from an AWS::SES::Template Resource.
|
|
41
|
+
*/
|
|
42
|
+
async delete(template) {
|
|
43
|
+
await this.#ses.deleteEmailTemplate({
|
|
44
|
+
input: { TemplateName: template.templateName },
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=sim-cfn-ses-template-creator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-ses-template-creator.js","sourceRoot":"","sources":["../../../../../src/service/ses/cfn/template/sim-cfn-ses-template-creator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAKvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAMnF;;;;;;;;GAQG;AACH,MAAM,OAAO,wBAAwB;IAC1B,IAAI,CAAW;IAExB,YAAY,UAA8C;QACxD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,QAAwB,EACxB,UAAqC;QAErC,MAAM,kBAAkB,GAAG,IAAI,2BAA2B,CAAC;YACzD,QAAQ;YACR,UAAU;SACX,CAAC,CAAC;QACH,MAAM,YAAY,GAAG,kBAAkB,CAAC,YAAY,EAAE,CAAC;QACvD,MAAM,OAAO,GAAG,kBAAkB,CAAC,OAAO,EAAE,CAAC;QAE7C,kBAAkB,CAAC,uBAAuB,EAAE,CAAC;QAE7C,OAAO,MAAM,yBAAyB,CACpC,uBAAuB,EACvB,QAAQ,CAAC,SAAS,EAClB,KAAK,IAAI,EAAE;YACT,MAAM,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC;gBAClC,KAAK,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE;aAChE,CAAC,CAAC;YAEH,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;YAEtD,aAAa,CACX,QAAQ,EACR,oBAAoB,YAAY,gCAAgC,CACjE,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,QAAwB;QACnC,MAAM,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC;YAClC,KAAK,EAAE,EAAE,YAAY,EAAE,QAAQ,CAAC,YAAY,EAAE;SAC/C,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-resource.js";
|
|
2
|
+
import type { SimCfnTemplateValueRecord } from "../../../cloudformation/template/value/sim-cfn-template-value.js";
|
|
3
|
+
import type { SimSesEmailTemplateContent } from "../../command/template/template.command.js";
|
|
4
|
+
interface SimCfnSesTemplatePropertiesProperties {
|
|
5
|
+
readonly resource: SimCfnResource;
|
|
6
|
+
readonly properties: SimCfnTemplateValueRecord;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Reads AWS::SES::Template CloudFormation properties into the shape
|
|
10
|
+
* CreateEmailTemplate takes.
|
|
11
|
+
*
|
|
12
|
+
* Everything a template Resource says is nested inside one `Template`
|
|
13
|
+
* property, which is unusual for a CloudFormation Resource and is why this
|
|
14
|
+
* reads a record out of a record.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SimCfnSesTemplateProperties {
|
|
17
|
+
#private;
|
|
18
|
+
constructor(properties: SimCfnSesTemplatePropertiesProperties);
|
|
19
|
+
/**
|
|
20
|
+
* Record the properties the template is created without acting on.
|
|
21
|
+
*
|
|
22
|
+
* Everything a template Resource can usefully say is wording, so in practice
|
|
23
|
+
* this catches a misspelling: `TextPart` written `Textpart` would otherwise
|
|
24
|
+
* be dropped in silence and the message would go out with a missing body and
|
|
25
|
+
* nothing to explain it. Both levels are walked, since a stray property can
|
|
26
|
+
* sit beside `Template` as well as inside it.
|
|
27
|
+
*/
|
|
28
|
+
recordIgnoredProperties(): void;
|
|
29
|
+
/**
|
|
30
|
+
* The template name.
|
|
31
|
+
*
|
|
32
|
+
* An unnamed template is named after the stack and the logical ID, as real
|
|
33
|
+
* CloudFormation names one.
|
|
34
|
+
*/
|
|
35
|
+
templateName(): string;
|
|
36
|
+
/**
|
|
37
|
+
* The wording, in the shape CreateEmailTemplate takes it.
|
|
38
|
+
*
|
|
39
|
+
* A part the template does not set is left out rather than sent as an empty
|
|
40
|
+
* string, so a template with only a text body reports no HTML part rather
|
|
41
|
+
* than an empty one.
|
|
42
|
+
*/
|
|
43
|
+
content(): SimSesEmailTemplateContent;
|
|
44
|
+
/**
|
|
45
|
+
* One part of the wording, or nothing where the template does not set it.
|
|
46
|
+
*
|
|
47
|
+
* The names are mapped at the call sites above rather than through a table,
|
|
48
|
+
* because the two APIs disagree and it is worth being able to see which is
|
|
49
|
+
* which: `AWS::SES::Template` kept the names the older SES API used, so a
|
|
50
|
+
* template says `SubjectPart` where `CreateEmailTemplate` says `Subject`.
|
|
51
|
+
*/
|
|
52
|
+
private stringPart;
|
|
53
|
+
private unreadReason;
|
|
54
|
+
private readTemplate;
|
|
55
|
+
private propertyError;
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
58
|
+
//# sourceMappingURL=sim-cfn-ses-template-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-ses-template-properties.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/cfn/template/sim-cfn-ses-template-properties.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAEV,yBAAyB,EAC1B,MAAM,kEAAkE,CAAC;AAC1E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAc7F,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,yBAAyB,CAAC;CAChD;AAED;;;;;;;GAOG;AACH,qBAAa,2BAA2B;;IAMtC,YAAY,UAAU,EAAE,qCAAqC,EAO5D;IAED;;;;;;;;OAQG;IACH,uBAAuB,IAAI,IAAI,CAe9B;IAED;;;;;OAKG;IACH,YAAY,IAAI,MAAM,CAYrB;IAED;;;;;;OAMG;IACH,OAAO,IAAI,0BAA0B,CAMpC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,UAAU;IAclB,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,YAAY;IAoBpB,OAAO,CAAC,aAAa;CAOtB"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { SimCfnGeneratedResourceName } from "../../../cloudformation/resource/name/sim-cfn-generated-resource-name.js";
|
|
2
|
+
import { simCfnSesResourceError } from "../sim-cfn-ses-resource-error.js";
|
|
3
|
+
import { sesTemplateResourceType } from "../sim-cfn-ses-resource-types.js";
|
|
4
|
+
const maximumNameLength = 64;
|
|
5
|
+
/** The parts of the wording this Resource is actually created from. */
|
|
6
|
+
const actedOnParts = new Set([
|
|
7
|
+
"TemplateName",
|
|
8
|
+
"SubjectPart",
|
|
9
|
+
"TextPart",
|
|
10
|
+
"HtmlPart",
|
|
11
|
+
]);
|
|
12
|
+
/**
|
|
13
|
+
* Reads AWS::SES::Template CloudFormation properties into the shape
|
|
14
|
+
* CreateEmailTemplate takes.
|
|
15
|
+
*
|
|
16
|
+
* Everything a template Resource says is nested inside one `Template`
|
|
17
|
+
* property, which is unusual for a CloudFormation Resource and is why this
|
|
18
|
+
* reads a record out of a record.
|
|
19
|
+
*/
|
|
20
|
+
export class SimCfnSesTemplateProperties {
|
|
21
|
+
#resource;
|
|
22
|
+
#properties;
|
|
23
|
+
#template;
|
|
24
|
+
#ignorer;
|
|
25
|
+
constructor(properties) {
|
|
26
|
+
this.#resource = properties.resource;
|
|
27
|
+
this.#properties = properties.properties;
|
|
28
|
+
this.#ignorer = properties.resource;
|
|
29
|
+
this.#template = new Map(Object.entries(this.readTemplate(properties.properties)));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Record the properties the template is created without acting on.
|
|
33
|
+
*
|
|
34
|
+
* Everything a template Resource can usefully say is wording, so in practice
|
|
35
|
+
* this catches a misspelling: `TextPart` written `Textpart` would otherwise
|
|
36
|
+
* be dropped in silence and the message would go out with a missing body and
|
|
37
|
+
* nothing to explain it. Both levels are walked, since a stray property can
|
|
38
|
+
* sit beside `Template` as well as inside it.
|
|
39
|
+
*/
|
|
40
|
+
recordIgnoredProperties() {
|
|
41
|
+
for (const name of Object.keys(this.#properties)) {
|
|
42
|
+
if (name !== "Template") {
|
|
43
|
+
this.#ignorer.ignoreProperty(name, this.unreadReason(name));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
for (const name of this.#template.keys()) {
|
|
47
|
+
if (!actedOnParts.has(name)) {
|
|
48
|
+
this.#ignorer.ignoreProperty(`Template.${name}`, this.unreadReason(`Template.${name}`));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The template name.
|
|
54
|
+
*
|
|
55
|
+
* An unnamed template is named after the stack and the logical ID, as real
|
|
56
|
+
* CloudFormation names one.
|
|
57
|
+
*/
|
|
58
|
+
templateName() {
|
|
59
|
+
const name = this.stringPart("TemplateName");
|
|
60
|
+
if (name === undefined) {
|
|
61
|
+
return new SimCfnGeneratedResourceName({
|
|
62
|
+
stackName: this.#resource.stackName,
|
|
63
|
+
logicalId: this.#resource.logicalId,
|
|
64
|
+
maximumLength: maximumNameLength,
|
|
65
|
+
}).value;
|
|
66
|
+
}
|
|
67
|
+
return name;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The wording, in the shape CreateEmailTemplate takes it.
|
|
71
|
+
*
|
|
72
|
+
* A part the template does not set is left out rather than sent as an empty
|
|
73
|
+
* string, so a template with only a text body reports no HTML part rather
|
|
74
|
+
* than an empty one.
|
|
75
|
+
*/
|
|
76
|
+
content() {
|
|
77
|
+
return {
|
|
78
|
+
Subject: this.stringPart("SubjectPart"),
|
|
79
|
+
Text: this.stringPart("TextPart"),
|
|
80
|
+
Html: this.stringPart("HtmlPart"),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* One part of the wording, or nothing where the template does not set it.
|
|
85
|
+
*
|
|
86
|
+
* The names are mapped at the call sites above rather than through a table,
|
|
87
|
+
* because the two APIs disagree and it is worth being able to see which is
|
|
88
|
+
* which: `AWS::SES::Template` kept the names the older SES API used, so a
|
|
89
|
+
* template says `SubjectPart` where `CreateEmailTemplate` says `Subject`.
|
|
90
|
+
*/
|
|
91
|
+
stringPart(name) {
|
|
92
|
+
const value = this.#template.get(name);
|
|
93
|
+
if (value === undefined) {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
if (typeof value !== "string") {
|
|
97
|
+
throw this.propertyError(`Template.${name} must be a string`);
|
|
98
|
+
}
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
unreadReason(path) {
|
|
102
|
+
return (`${path} is not a property simulated SES reads from ` +
|
|
103
|
+
`${sesTemplateResourceType}, so the template is created without it`);
|
|
104
|
+
}
|
|
105
|
+
readTemplate(properties) {
|
|
106
|
+
const template = properties["Template"];
|
|
107
|
+
if (template === undefined) {
|
|
108
|
+
throw this.propertyError("Template is required");
|
|
109
|
+
}
|
|
110
|
+
if (typeof template !== "object" ||
|
|
111
|
+
template === null ||
|
|
112
|
+
Array.isArray(template)) {
|
|
113
|
+
throw this.propertyError("Template must be an object");
|
|
114
|
+
}
|
|
115
|
+
return template;
|
|
116
|
+
}
|
|
117
|
+
propertyError(reason) {
|
|
118
|
+
return simCfnSesResourceError(sesTemplateResourceType, this.#resource.logicalId, reason);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=sim-cfn-ses-template-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cfn-ses-template-properties.js","sourceRoot":"","sources":["../../../../../src/service/ses/cfn/template/sim-cfn-ses-template-properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,0EAA0E,CAAC;AAQvH,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,uEAAuE;AACvE,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC;IAC3B,cAAc;IACd,aAAa;IACb,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAOH;;;;;;;GAOG;AACH,MAAM,OAAO,2BAA2B;IAC7B,SAAS,CAAiB;IAC1B,WAAW,CAA4B;IACvC,SAAS,CAA2C;IACpD,QAAQ,CAAwB;IAEzC,YAAY,UAAiD;QAC3D,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,CACtB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CACzD,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,uBAAuB;QACrB,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACjD,IAAI,IAAI,KAAK,UAAU,EAAE,CAAC;gBACxB,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;YAC9D,CAAC;QACH,CAAC;QAED,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC;YACzC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC5B,IAAI,CAAC,QAAQ,CAAC,cAAc,CAC1B,YAAY,IAAI,EAAE,EAClB,IAAI,CAAC,YAAY,CAAC,YAAY,IAAI,EAAE,CAAC,CACtC,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACH,YAAY;QACV,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;QAE7C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,IAAI,2BAA2B,CAAC;gBACrC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS;gBACnC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS;gBACnC,aAAa,EAAE,iBAAiB;aACjC,CAAC,CAAC,KAAK,CAAC;QACX,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;OAMG;IACH,OAAO;QACL,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;YACvC,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YACjC,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;SAClC,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACK,UAAU,CAAC,IAAY;QAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAEvC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,MAAM,IAAI,CAAC,aAAa,CAAC,YAAY,IAAI,mBAAmB,CAAC,CAAC;QAChE,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,YAAY,CAAC,IAAY;QAC/B,OAAO,CACL,GAAG,IAAI,8CAA8C;YACrD,GAAG,uBAAuB,yCAAyC,CACpE,CAAC;IACJ,CAAC;IAEO,YAAY,CAClB,UAAqC;QAErC,MAAM,QAAQ,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;QAExC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;QACnD,CAAC;QAED,IACE,OAAO,QAAQ,KAAK,QAAQ;YAC5B,QAAQ,KAAK,IAAI;YACjB,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EACvB,CAAC;YACD,MAAM,IAAI,CAAC,aAAa,CAAC,4BAA4B,CAAC,CAAC;QACzD,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEO,aAAa,CAAC,MAAc;QAClC,OAAO,sBAAsB,CAC3B,uBAAuB,EACvB,IAAI,CAAC,SAAS,CAAC,SAAS,EACxB,MAAM,CACP,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { SimResponseMetadata } from "../../../aws/metadata/response-metadata.type.js";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal structural sim SES v2 GetAccount command.
|
|
4
|
+
*
|
|
5
|
+
* GetAccount takes no input at all, so its `input` is only here because every
|
|
6
|
+
* SDK Command has one.
|
|
7
|
+
*
|
|
8
|
+
* https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sesv2/command/GetAccountCommand/
|
|
9
|
+
*/
|
|
10
|
+
export interface SimGetAccountCommand {
|
|
11
|
+
readonly input?: object | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface SimSesSendQuotaDetail {
|
|
14
|
+
readonly Max24HourSend: number;
|
|
15
|
+
readonly MaxSendRate: number;
|
|
16
|
+
readonly SentLast24Hours: number;
|
|
17
|
+
}
|
|
18
|
+
export interface SimGetAccountCommandOutput {
|
|
19
|
+
readonly DedicatedIpAutoWarmupEnabled?: boolean | undefined;
|
|
20
|
+
readonly EnforcementStatus?: string | undefined;
|
|
21
|
+
readonly ProductionAccessEnabled?: boolean | undefined;
|
|
22
|
+
readonly SendQuota?: SimSesSendQuotaDetail | undefined;
|
|
23
|
+
readonly SendingEnabled?: boolean | undefined;
|
|
24
|
+
readonly Details?: SimSesAccountDetailsOutput | undefined;
|
|
25
|
+
readonly $metadata: SimResponseMetadata;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* What GetAccount reports back of the details PutAccountDetails was given.
|
|
29
|
+
*/
|
|
30
|
+
export interface SimSesAccountDetailsOutput {
|
|
31
|
+
readonly MailType?: string | undefined;
|
|
32
|
+
readonly WebsiteURL?: string | undefined;
|
|
33
|
+
readonly ContactLanguage?: string | undefined;
|
|
34
|
+
readonly UseCaseDescription?: string | undefined;
|
|
35
|
+
readonly AdditionalContactEmailAddresses?: readonly string[] | undefined;
|
|
36
|
+
readonly ReviewDetails?: {
|
|
37
|
+
readonly Status?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Minimal structural sim SES v2 PutAccountDetails command.
|
|
42
|
+
*
|
|
43
|
+
* https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sesv2/command/PutAccountDetailsCommand/
|
|
44
|
+
*/
|
|
45
|
+
export interface SimPutAccountDetailsCommand {
|
|
46
|
+
readonly input: SimPutAccountDetailsCommandInput;
|
|
47
|
+
}
|
|
48
|
+
export interface SimPutAccountDetailsCommandInput {
|
|
49
|
+
readonly MailType?: string | undefined;
|
|
50
|
+
readonly WebsiteURL?: string | undefined;
|
|
51
|
+
readonly ContactLanguage?: string | undefined;
|
|
52
|
+
readonly UseCaseDescription?: string | undefined;
|
|
53
|
+
readonly AdditionalContactEmailAddresses?: readonly string[] | undefined;
|
|
54
|
+
readonly ProductionAccessEnabled?: boolean | undefined;
|
|
55
|
+
}
|
|
56
|
+
export interface SimPutAccountDetailsCommandOutput {
|
|
57
|
+
readonly $metadata: SimResponseMetadata;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=account.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.command.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/command/account/account.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAE3F;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,4BAA4B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5D,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvD,QAAQ,CAAC,SAAS,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACvD,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC;IAC1D,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,+BAA+B,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACzE,QAAQ,CAAC,aAAa,CAAC,EAAE;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,SAAS,CAAC;CAC/E;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,KAAK,EAAE,gCAAgC,CAAC;CAClD;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,+BAA+B,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACzE,QAAQ,CAAC,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACxD;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.command.js","sourceRoot":"","sources":["../../../../../src/service/ses/command/account/account.command.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
|
+
import type { SimSesAccount } from "../../account/sim-ses-account.js";
|
|
3
|
+
import type { SimSesSentEmailStore } from "../../email/sim-ses-sent-email-store.js";
|
|
4
|
+
import type { SimSesAuthorizer } from "../authorize/sim-ses-authorizer.js";
|
|
5
|
+
import type { SimSesRequestOptions } from "../sim-ses-request-options.js";
|
|
6
|
+
import type { SimGetAccountCommandOutput, SimPutAccountDetailsCommand, SimPutAccountDetailsCommandOutput } from "./account.command.js";
|
|
7
|
+
interface SimSesAccountCommandsProperties {
|
|
8
|
+
readonly account: SimSesAccount;
|
|
9
|
+
readonly sent: SimSesSentEmailStore;
|
|
10
|
+
readonly authorizer: SimSesAuthorizer;
|
|
11
|
+
readonly clock: SimClock;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The commands that read and change what a whole SES account may do.
|
|
15
|
+
*
|
|
16
|
+
* Both authorize against `*`, because real SES gives neither a resource type:
|
|
17
|
+
* only a policy written against every resource allows them, and one naming an
|
|
18
|
+
* identity ARN allows neither.
|
|
19
|
+
*/
|
|
20
|
+
export declare class SimSesAccountCommands {
|
|
21
|
+
#private;
|
|
22
|
+
constructor(properties: SimSesAccountCommandsProperties);
|
|
23
|
+
/**
|
|
24
|
+
* Report what this account may do, including whether it is still in the
|
|
25
|
+
* sandbox.
|
|
26
|
+
*/
|
|
27
|
+
getAccount(options?: SimSesRequestOptions): SimGetAccountCommandOutput;
|
|
28
|
+
/**
|
|
29
|
+
* Record the account details, and leave the sandbox if they ask to.
|
|
30
|
+
*/
|
|
31
|
+
putAccountDetails(command: SimPutAccountDetailsCommand, options?: SimSesRequestOptions): SimPutAccountDetailsCommandOutput;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=sim-ses-account-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-account-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/command/account/sim-ses-account-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EACV,0BAA0B,EAC1B,2BAA2B,EAC3B,iCAAiC,EAClC,MAAM,sBAAsB,CAAC;AAI9B,UAAU,+BAA+B;IACvC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,qBAAa,qBAAqB;;IAMhC,YAAY,UAAU,EAAE,+BAA+B,EAKtD;IAED;;;OAGG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,0BAA0B,CAOrE;IAED;;OAEG;IACH,iBAAiB,CACf,OAAO,EAAE,2BAA2B,EACpC,OAAO,CAAC,EAAE,oBAAoB,GAC7B,iCAAiC,CAYnC;CACF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { readSimSesAccountDetails } from "./sim-ses-account-details-input.js";
|
|
2
|
+
import { simSesAccountReport } from "./sim-ses-account-report.js";
|
|
3
|
+
/**
|
|
4
|
+
* The commands that read and change what a whole SES account may do.
|
|
5
|
+
*
|
|
6
|
+
* Both authorize against `*`, because real SES gives neither a resource type:
|
|
7
|
+
* only a policy written against every resource allows them, and one naming an
|
|
8
|
+
* identity ARN allows neither.
|
|
9
|
+
*/
|
|
10
|
+
export class SimSesAccountCommands {
|
|
11
|
+
#account;
|
|
12
|
+
#sent;
|
|
13
|
+
#authorizer;
|
|
14
|
+
#clock;
|
|
15
|
+
constructor(properties) {
|
|
16
|
+
this.#account = properties.account;
|
|
17
|
+
this.#sent = properties.sent;
|
|
18
|
+
this.#authorizer = properties.authorizer;
|
|
19
|
+
this.#clock = properties.clock;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Report what this account may do, including whether it is still in the
|
|
23
|
+
* sandbox.
|
|
24
|
+
*/
|
|
25
|
+
getAccount(options) {
|
|
26
|
+
this.#authorizer.authorizeNoResource("ses:GetAccount", options?.caller);
|
|
27
|
+
return simSesAccountReport({
|
|
28
|
+
account: this.#account,
|
|
29
|
+
sentLast24Hours: this.#sent.countSentSince(this.#clock.now()),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Record the account details, and leave the sandbox if they ask to.
|
|
34
|
+
*/
|
|
35
|
+
putAccountDetails(command, options) {
|
|
36
|
+
this.#authorizer.authorizeNoResource("ses:PutAccountDetails", options?.caller);
|
|
37
|
+
this.#account.putDetails(readSimSesAccountDetails(command.input), command.input.ProductionAccessEnabled ?? false);
|
|
38
|
+
return { $metadata: {} };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=sim-ses-account-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-account-commands.js","sourceRoot":"","sources":["../../../../../src/service/ses/command/account/sim-ses-account-commands.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AASlE;;;;;;GAMG;AACH,MAAM,OAAO,qBAAqB;IACvB,QAAQ,CAAgB;IACxB,KAAK,CAAuB;IAC5B,WAAW,CAAmB;IAC9B,MAAM,CAAW;IAE1B,YAAY,UAA2C;QACrD,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC;IACjC,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,OAA8B;QACvC,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,gBAAgB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAExE,OAAO,mBAAmB,CAAC;YACzB,OAAO,EAAE,IAAI,CAAC,QAAQ;YACtB,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;SAC9D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,OAAoC,EACpC,OAA8B;QAE9B,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAClC,uBAAuB,EACvB,OAAO,EAAE,MAAM,CAChB,CAAC;QAEF,IAAI,CAAC,QAAQ,CAAC,UAAU,CACtB,wBAAwB,CAAC,OAAO,CAAC,KAAK,CAAC,EACvC,OAAO,CAAC,KAAK,CAAC,uBAAuB,IAAI,KAAK,CAC/C,CAAC;QAEF,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SimSesAccountContactDetails } from "../../account/sim-ses-account.js";
|
|
2
|
+
import type { SimPutAccountDetailsCommandInput } from "./account.command.js";
|
|
3
|
+
/**
|
|
4
|
+
* Read the account details a request carries, refusing what real SES refuses.
|
|
5
|
+
*
|
|
6
|
+
* `MailType` and `WebsiteURL` are both required on real SES, which is easy to
|
|
7
|
+
* miss: the request that only wants to leave the sandbox still has to say what
|
|
8
|
+
* the account sends and where from.
|
|
9
|
+
*/
|
|
10
|
+
export declare function readSimSesAccountDetails(input: SimPutAccountDetailsCommandInput): SimSesAccountContactDetails;
|
|
11
|
+
//# sourceMappingURL=sim-ses-account-details-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-account-details-input.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/command/account/sim-ses-account-details-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEpF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAY7E;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,gCAAgC,GACtC,2BAA2B,CAQ7B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { SimSesBadRequestException } from "../../error/sim-ses.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* The mail types real SES accepts, and requires one of.
|
|
4
|
+
*/
|
|
5
|
+
const mailTypes = new Set(["MARKETING", "TRANSACTIONAL"]);
|
|
6
|
+
/**
|
|
7
|
+
* The two languages real SES will write to a contact in.
|
|
8
|
+
*/
|
|
9
|
+
const contactLanguages = new Set(["EN", "JA"]);
|
|
10
|
+
/**
|
|
11
|
+
* Read the account details a request carries, refusing what real SES refuses.
|
|
12
|
+
*
|
|
13
|
+
* `MailType` and `WebsiteURL` are both required on real SES, which is easy to
|
|
14
|
+
* miss: the request that only wants to leave the sandbox still has to say what
|
|
15
|
+
* the account sends and where from.
|
|
16
|
+
*/
|
|
17
|
+
export function readSimSesAccountDetails(input) {
|
|
18
|
+
return {
|
|
19
|
+
mailType: requiredMailType(input.MailType),
|
|
20
|
+
websiteUrl: requiredWebsiteUrl(input.WebsiteURL),
|
|
21
|
+
contactLanguage: optionalContactLanguage(input.ContactLanguage),
|
|
22
|
+
useCaseDescription: input.UseCaseDescription,
|
|
23
|
+
additionalContactEmailAddresses: input.AdditionalContactEmailAddresses,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function requiredMailType(mailType) {
|
|
27
|
+
if (mailType === undefined || !mailTypes.has(mailType)) {
|
|
28
|
+
throw new SimSesBadRequestException(`1 validation error detected: Value '${String(mailType)}' at ` +
|
|
29
|
+
`'mailType' failed to satisfy constraint: Member must be one of ${[
|
|
30
|
+
...mailTypes,
|
|
31
|
+
].join(", ")}`);
|
|
32
|
+
}
|
|
33
|
+
return mailType;
|
|
34
|
+
}
|
|
35
|
+
function optionalContactLanguage(contactLanguage) {
|
|
36
|
+
if (contactLanguage !== undefined && !contactLanguages.has(contactLanguage)) {
|
|
37
|
+
throw new SimSesBadRequestException(`1 validation error detected: Value '${contactLanguage}' at ` +
|
|
38
|
+
`'contactLanguage' failed to satisfy constraint: Member must be one ` +
|
|
39
|
+
`of ${[...contactLanguages].join(", ")}`);
|
|
40
|
+
}
|
|
41
|
+
return contactLanguage;
|
|
42
|
+
}
|
|
43
|
+
function requiredWebsiteUrl(websiteUrl) {
|
|
44
|
+
if (websiteUrl === undefined || websiteUrl.length === 0) {
|
|
45
|
+
throw new SimSesBadRequestException("1 validation error detected: Value at 'websiteURL' failed to satisfy " +
|
|
46
|
+
"constraint: Member must not be null");
|
|
47
|
+
}
|
|
48
|
+
return websiteUrl;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=sim-ses-account-details-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-account-details-input.js","sourceRoot":"","sources":["../../../../../src/service/ses/command/account/sim-ses-account-details-input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAGzE;;GAEG;AACH,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC,CAAC;AAE1D;;GAEG;AACH,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CACtC,KAAuC;IAEvC,OAAO;QACL,QAAQ,EAAE,gBAAgB,CAAC,KAAK,CAAC,QAAQ,CAAC;QAC1C,UAAU,EAAE,kBAAkB,CAAC,KAAK,CAAC,UAAU,CAAC;QAChD,eAAe,EAAE,uBAAuB,CAAC,KAAK,CAAC,eAAe,CAAC;QAC/D,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;QAC5C,+BAA+B,EAAE,KAAK,CAAC,+BAA+B;KACvE,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB,CAAC,QAA4B;IACpD,IAAI,QAAQ,KAAK,SAAS,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;QACvD,MAAM,IAAI,yBAAyB,CACjC,uCAAuC,MAAM,CAAC,QAAQ,CAAC,OAAO;YAC5D,kEAAkE;gBAChE,GAAG,SAAS;aACb,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACjB,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,uBAAuB,CAC9B,eAAmC;IAEnC,IAAI,eAAe,KAAK,SAAS,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE,CAAC;QAC5E,MAAM,IAAI,yBAAyB,CACjC,uCAAuC,eAAe,OAAO;YAC3D,qEAAqE;YACrE,MAAM,CAAC,GAAG,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC3C,CAAC;IACJ,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,SAAS,kBAAkB,CAAC,UAA8B;IACxD,IAAI,UAAU,KAAK,SAAS,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxD,MAAM,IAAI,yBAAyB,CACjC,uEAAuE;YACrE,qCAAqC,CACxC,CAAC;IACJ,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SimSesAccount } from "../../account/sim-ses-account.js";
|
|
2
|
+
import type { SimGetAccountCommandOutput } from "./account.command.js";
|
|
3
|
+
interface SimSesAccountReportInput {
|
|
4
|
+
readonly account: SimSesAccount;
|
|
5
|
+
/** How many messages this scope accepted in the last 24 hours. */
|
|
6
|
+
readonly sentLast24Hours: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* What `GetAccount` reports about one simulated SES account.
|
|
10
|
+
*
|
|
11
|
+
* The quota figures are the real sandbox and production ones and nothing here
|
|
12
|
+
* enforces them: `SentLast24Hours` counts what was actually sent, and a send
|
|
13
|
+
* past the daily figure still succeeds.
|
|
14
|
+
*
|
|
15
|
+
* `EnforcementStatus` is always `HEALTHY` and `SendingEnabled` always true,
|
|
16
|
+
* because nothing here puts an account under enforcement or pauses its
|
|
17
|
+
* sending.
|
|
18
|
+
*/
|
|
19
|
+
export declare function simSesAccountReport(input: SimSesAccountReportInput): SimGetAccountCommandOutput;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=sim-ses-account-report.d.ts.map
|