@kensio/yulin 1.19.2 → 1.19.3
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 +12 -0
- package/dist/serve/http/local-server/sim-aws-local-server.d.ts +31 -0
- package/dist/serve/http/local-server/sim-aws-local-server.d.ts.map +1 -1
- package/dist/serve/http/local-server/sim-aws-local-server.js +15 -1
- package/dist/serve/http/local-server/sim-aws-local-server.js.map +1 -1
- package/dist/serve/index.d.ts +1 -0
- package/dist/serve/index.d.ts.map +1 -1
- package/dist/serve/index.js.map +1 -1
- package/dist/serve/message/sim-local-message-logging.d.ts +39 -0
- package/dist/serve/message/sim-local-message-logging.d.ts.map +1 -0
- package/dist/serve/message/sim-local-message-logging.js +45 -0
- package/dist/serve/message/sim-local-message-logging.js.map +1 -0
- package/dist/serve/message/sim-message-log-console.d.ts +43 -0
- package/dist/serve/message/sim-message-log-console.d.ts.map +1 -0
- package/dist/serve/message/sim-message-log-console.js +71 -0
- package/dist/serve/message/sim-message-log-console.js.map +1 -0
- package/dist/serve/message/sim-message-logging.d.ts +42 -0
- package/dist/serve/message/sim-message-logging.d.ts.map +1 -0
- package/dist/serve/message/sim-message-logging.js +31 -0
- package/dist/serve/message/sim-message-logging.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +3 -0
- 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 +12 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts +9 -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 +10 -0
- package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
- package/dist/service/aws/message/sim-aws-logged-message.d.ts +46 -0
- package/dist/service/aws/message/sim-aws-logged-message.d.ts.map +1 -0
- package/dist/service/aws/message/sim-aws-logged-message.js +2 -0
- package/dist/service/aws/message/sim-aws-logged-message.js.map +1 -0
- package/dist/service/aws/message/sim-aws-message-log.d.ts +40 -0
- package/dist/service/aws/message/sim-aws-message-log.d.ts.map +1 -0
- package/dist/service/aws/message/sim-aws-message-log.js +40 -0
- package/dist/service/aws/message/sim-aws-message-log.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.d.ts +4 -3
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.d.ts.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.js +4 -3
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/property/sim-cdk-bucket-notification-properties.js.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.d.ts +5 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.d.ts.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js +5 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/sim-cdk-bucket-notifications.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.js +8 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-configuration-set-cfn.d.ts +30 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-configuration-set-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-configuration-set-cfn.js +29 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-configuration-set-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.js +1 -1
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.js.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +2 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
- package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.d.ts +7 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.d.ts.map +1 -1
- package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.js +14 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-property-parser.js.map +1 -1
- 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 +10 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-available-challenges.d.ts.map +1 -1
- package/dist/service/cognito/command/auth/sim-cognito-available-challenges.js +7 -6
- package/dist/service/cognito/command/auth/sim-cognito-available-challenges.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts +20 -0
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +24 -4
- package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.d.ts +4 -0
- package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-commands.js +8 -2
- package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
- package/dist/service/cognito/command/sim-cognito-unsimulated-input.d.ts +9 -0
- package/dist/service/cognito/command/sim-cognito-unsimulated-input.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-unsimulated-input.js +13 -3
- package/dist/service/cognito/command/sim-cognito-unsimulated-input.js.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-mfa-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user/sim-cognito-user-mfa-commands.js +2 -1
- package/dist/service/cognito/command/user/sim-cognito-user-mfa-commands.js.map +1 -1
- package/dist/service/cognito/command/user/user-mfa.command.d.ts +4 -3
- package/dist/service/cognito/command/user/user-mfa.command.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.d.ts +22 -8
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.js +24 -11
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts +3 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js +5 -4
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +6 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +7 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
- package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts +7 -6
- package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts +4 -2
- 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 +23 -0
- package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
- package/dist/service/cognito/error/sim-cognito.error.js +27 -0
- package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
- package/dist/service/cognito/index.d.ts +4 -0
- package/dist/service/cognito/index.d.ts.map +1 -1
- package/dist/service/cognito/index.js +4 -0
- package/dist/service/cognito/index.js.map +1 -1
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts +14 -0
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
- package/dist/service/cognito/sim-cognito-identity-provider.js +5 -1
- package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-aws-cognito-email-senders.d.ts +42 -0
- package/dist/service/cognito/user-pool/message/sim-aws-cognito-email-senders.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-aws-cognito-email-senders.js +84 -0
- package/dist/service/cognito/user-pool/message/sim-aws-cognito-email-senders.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-configuration-reader.d.ts +31 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-configuration-reader.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-configuration-reader.js +72 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-configuration-reader.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-configuration.d.ts +85 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-configuration.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-configuration.js +117 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-configuration.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-senders.d.ts +73 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-senders.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-senders.js +23 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-senders.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-source-arn.d.ts +39 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-source-arn.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-source-arn.js +33 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-email-source-arn.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-email-delivery.d.ts +41 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-email-delivery.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-email-delivery.js +66 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-email-delivery.js.map +1 -0
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts +19 -4
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js +30 -8
- package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.d.ts +9 -3
- package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.js +9 -3
- package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.js.map +1 -1
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts +2 -3
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.d.ts +4 -2
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.js +2 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +13 -0
- 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 +7 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
- package/dist/service/iam/index.d.ts +1 -0
- package/dist/service/iam/index.d.ts.map +1 -1
- package/dist/service/iam/index.js.map +1 -1
- package/dist/service/ses/account/sim-ses-account.d.ts +22 -0
- package/dist/service/ses/account/sim-ses-account.d.ts.map +1 -1
- package/dist/service/ses/account/sim-ses-account.js +31 -0
- package/dist/service/ses/account/sim-ses-account.js.map +1 -1
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-creator.d.ts +30 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-creator.d.ts.map +1 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-creator.js +47 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-creator.js.map +1 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-option-groups.d.ts +23 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-option-groups.d.ts.map +1 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-option-groups.js +52 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-option-groups.js.map +1 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-properties.d.ts +39 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-properties.d.ts.map +1 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-properties.js +71 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-properties.js.map +1 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-unsimulated-properties.d.ts +17 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-unsimulated-properties.d.ts.map +1 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-unsimulated-properties.js +34 -0
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-unsimulated-properties.js.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts +5 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts.map +1 -1
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js +7 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js.map +1 -1
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.d.ts +13 -8
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.d.ts.map +1 -1
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.js +29 -14
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.js.map +1 -1
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-settings.d.ts +18 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-settings.d.ts.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-settings.js +77 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-settings.js.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-values.d.ts +25 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-values.d.ts.map +1 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-values.js +49 -0
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-values.js.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-property-scalars.d.ts +25 -0
- package/dist/service/ses/cfn/sim-cfn-ses-property-scalars.d.ts.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-property-scalars.js +69 -0
- package/dist/service/ses/cfn/sim-cfn-ses-property-scalars.js.map +1 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.d.ts +2 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.d.ts.map +1 -1
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.js +2 -0
- package/dist/service/ses/cfn/sim-cfn-ses-resource-types.js.map +1 -1
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts +3 -2
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts.map +1 -1
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js +43 -40
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js.map +1 -1
- package/dist/service/ses/command/account/account.command.d.ts +22 -0
- package/dist/service/ses/command/account/account.command.d.ts.map +1 -1
- package/dist/service/ses/command/account/sim-ses-account-commands.d.ts +12 -4
- package/dist/service/ses/command/account/sim-ses-account-commands.d.ts.map +1 -1
- package/dist/service/ses/command/account/sim-ses-account-commands.js +16 -3
- package/dist/service/ses/command/account/sim-ses-account-commands.js.map +1 -1
- package/dist/service/ses/command/account/sim-ses-account-report.d.ts +3 -0
- package/dist/service/ses/command/account/sim-ses-account-report.d.ts.map +1 -1
- package/dist/service/ses/command/account/sim-ses-account-report.js +4 -0
- package/dist/service/ses/command/account/sim-ses-account-report.js.map +1 -1
- package/dist/service/ses/command/authorize/sim-ses-authorizer.d.ts +8 -0
- package/dist/service/ses/command/authorize/sim-ses-authorizer.d.ts.map +1 -1
- package/dist/service/ses/command/authorize/sim-ses-authorizer.js +11 -1
- package/dist/service/ses/command/authorize/sim-ses-authorizer.js.map +1 -1
- package/dist/service/ses/command/configuration-set/configuration-set.command.d.ts +100 -0
- package/dist/service/ses/command/configuration-set/configuration-set.command.d.ts.map +1 -0
- package/dist/service/ses/command/configuration-set/configuration-set.command.js +2 -0
- package/dist/service/ses/command/configuration-set/configuration-set.command.js.map +1 -0
- package/dist/service/ses/command/configuration-set/sim-ses-configuration-set-commands.d.ts +55 -0
- package/dist/service/ses/command/configuration-set/sim-ses-configuration-set-commands.d.ts.map +1 -0
- package/dist/service/ses/command/configuration-set/sim-ses-configuration-set-commands.js +105 -0
- package/dist/service/ses/command/configuration-set/sim-ses-configuration-set-commands.js.map +1 -0
- package/dist/service/ses/command/configuration-set/sim-ses-configuration-set-options.d.ts +11 -0
- package/dist/service/ses/command/configuration-set/sim-ses-configuration-set-options.d.ts.map +1 -0
- package/dist/service/ses/command/configuration-set/sim-ses-configuration-set-options.js +83 -0
- package/dist/service/ses/command/configuration-set/sim-ses-configuration-set-options.js.map +1 -0
- package/dist/service/ses/command/configuration-set/sim-ses-unsimulated-configuration-set-input.d.ts +12 -0
- package/dist/service/ses/command/configuration-set/sim-ses-unsimulated-configuration-set-input.d.ts.map +1 -0
- package/dist/service/ses/command/configuration-set/sim-ses-unsimulated-configuration-set-input.js +27 -0
- package/dist/service/ses/command/configuration-set/sim-ses-unsimulated-configuration-set-input.js.map +1 -0
- package/dist/service/ses/command/identity/identity.command.d.ts +55 -2
- package/dist/service/ses/command/identity/identity.command.d.ts.map +1 -1
- package/dist/service/ses/command/identity/sim-ses-identity-attributes.d.ts +29 -0
- package/dist/service/ses/command/identity/sim-ses-identity-attributes.d.ts.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-identity-attributes.js +60 -0
- package/dist/service/ses/command/identity/sim-ses-identity-attributes.js.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-identity-commands.d.ts +6 -1
- package/dist/service/ses/command/identity/sim-ses-identity-commands.d.ts.map +1 -1
- package/dist/service/ses/command/identity/sim-ses-identity-commands.js +12 -12
- package/dist/service/ses/command/identity/sim-ses-identity-commands.js.map +1 -1
- package/dist/service/ses/command/identity/sim-ses-identity-input-settings.d.ts +16 -0
- package/dist/service/ses/command/identity/sim-ses-identity-input-settings.d.ts.map +1 -0
- package/dist/service/ses/command/identity/sim-ses-identity-input-settings.js +57 -0
- package/dist/service/ses/command/identity/sim-ses-identity-input-settings.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-send-email.d.ts +6 -0
- package/dist/service/ses/command/send/sim-ses-send-email.d.ts.map +1 -1
- package/dist/service/ses/command/send/sim-ses-send-email.js +7 -0
- package/dist/service/ses/command/send/sim-ses-send-email.js.map +1 -1
- package/dist/service/ses/command/send/sim-ses-service-send.d.ts +68 -0
- package/dist/service/ses/command/send/sim-ses-service-send.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-service-send.js +69 -0
- package/dist/service/ses/command/send/sim-ses-service-send.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-suppression-check.d.ts +31 -0
- package/dist/service/ses/command/send/sim-ses-suppression-check.d.ts.map +1 -0
- package/dist/service/ses/command/send/sim-ses-suppression-check.js +37 -0
- package/dist/service/ses/command/send/sim-ses-suppression-check.js.map +1 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.d.ts +8 -0
- package/dist/service/ses/command/send/sim-ses-verified-identities.d.ts.map +1 -1
- package/dist/service/ses/command/send/sim-ses-verified-identities.js +15 -2
- package/dist/service/ses/command/send/sim-ses-verified-identities.js.map +1 -1
- package/dist/service/ses/command/sim-ses-command.types.d.ts +4 -2
- package/dist/service/ses/command/sim-ses-command.types.d.ts.map +1 -1
- package/dist/service/ses/command/suppression/sim-ses-suppression-commands.d.ts +44 -0
- package/dist/service/ses/command/suppression/sim-ses-suppression-commands.d.ts.map +1 -0
- package/dist/service/ses/command/suppression/sim-ses-suppression-commands.js +79 -0
- package/dist/service/ses/command/suppression/sim-ses-suppression-commands.js.map +1 -0
- package/dist/service/ses/command/suppression/sim-ses-suppression-listing.d.ts +15 -0
- package/dist/service/ses/command/suppression/sim-ses-suppression-listing.d.ts.map +1 -0
- package/dist/service/ses/command/suppression/sim-ses-suppression-listing.js +29 -0
- package/dist/service/ses/command/suppression/sim-ses-suppression-listing.js.map +1 -0
- package/dist/service/ses/command/suppression/sim-ses-unsimulated-suppression-input.d.ts +9 -0
- package/dist/service/ses/command/suppression/sim-ses-unsimulated-suppression-input.d.ts.map +1 -0
- package/dist/service/ses/command/suppression/sim-ses-unsimulated-suppression-input.js +16 -0
- package/dist/service/ses/command/suppression/sim-ses-unsimulated-suppression-input.js.map +1 -0
- package/dist/service/ses/command/suppression/suppression.command.d.ts +90 -0
- package/dist/service/ses/command/suppression/suppression.command.d.ts.map +1 -0
- package/dist/service/ses/command/suppression/suppression.command.js +2 -0
- package/dist/service/ses/command/suppression/suppression.command.js.map +1 -0
- package/dist/service/ses/configuration-set/sim-ses-configuration-set-store.d.ts +44 -0
- package/dist/service/ses/configuration-set/sim-ses-configuration-set-store.d.ts.map +1 -0
- package/dist/service/ses/configuration-set/sim-ses-configuration-set-store.js +91 -0
- package/dist/service/ses/configuration-set/sim-ses-configuration-set-store.js.map +1 -0
- package/dist/service/ses/configuration-set/sim-ses-configuration-set.d.ts +75 -0
- package/dist/service/ses/configuration-set/sim-ses-configuration-set.d.ts.map +1 -0
- package/dist/service/ses/configuration-set/sim-ses-configuration-set.js +44 -0
- package/dist/service/ses/configuration-set/sim-ses-configuration-set.js.map +1 -0
- package/dist/service/ses/email/sim-ses-sent-email.d.ts +29 -0
- package/dist/service/ses/email/sim-ses-sent-email.d.ts.map +1 -1
- package/dist/service/ses/email/sim-ses-sent-email.js +21 -0
- package/dist/service/ses/email/sim-ses-sent-email.js.map +1 -1
- package/dist/service/ses/identity/sim-ses-dkim-tokens.d.ts.map +1 -0
- package/dist/service/ses/identity/sim-ses-dkim-tokens.js.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-name.d.ts +5 -0
- package/dist/service/ses/identity/sim-ses-identity-name.d.ts.map +1 -1
- package/dist/service/ses/identity/sim-ses-identity-name.js +5 -1
- package/dist/service/ses/identity/sim-ses-identity-name.js.map +1 -1
- package/dist/service/ses/identity/sim-ses-identity-settings.d.ts +64 -0
- package/dist/service/ses/identity/sim-ses-identity-settings.d.ts.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-settings.js +21 -0
- package/dist/service/ses/identity/sim-ses-identity-settings.js.map +1 -0
- package/dist/service/ses/identity/sim-ses-identity-store.d.ts +2 -1
- package/dist/service/ses/identity/sim-ses-identity-store.d.ts.map +1 -1
- package/dist/service/ses/identity/sim-ses-identity-store.js +2 -1
- package/dist/service/ses/identity/sim-ses-identity-store.js.map +1 -1
- package/dist/service/ses/identity/sim-ses-identity.d.ts +38 -0
- package/dist/service/ses/identity/sim-ses-identity.d.ts.map +1 -1
- package/dist/service/ses/identity/sim-ses-identity.js +54 -0
- package/dist/service/ses/identity/sim-ses-identity.js.map +1 -1
- package/dist/service/ses/index.d.ts +10 -3
- package/dist/service/ses/index.d.ts.map +1 -1
- package/dist/service/ses/index.js +7 -1
- package/dist/service/ses/index.js.map +1 -1
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.d.ts.map +1 -1
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.js +36 -0
- package/dist/service/ses/sdk/sim-ses-sdk-command-router.js.map +1 -1
- package/dist/service/ses/sim-ses-arn.d.ts +7 -0
- package/dist/service/ses/sim-ses-arn.d.ts.map +1 -1
- package/dist/service/ses/sim-ses-arn.js +9 -0
- package/dist/service/ses/sim-ses-arn.js.map +1 -1
- package/dist/service/ses/sim-ses-commands.d.ts +14 -0
- package/dist/service/ses/sim-ses-commands.d.ts.map +1 -1
- package/dist/service/ses/sim-ses-commands.js +47 -5
- package/dist/service/ses/sim-ses-commands.js.map +1 -1
- package/dist/service/ses/sim-ses-configuration-sets.d.ts +47 -0
- package/dist/service/ses/sim-ses-configuration-sets.d.ts.map +1 -0
- package/dist/service/ses/sim-ses-configuration-sets.js +60 -0
- package/dist/service/ses/sim-ses-configuration-sets.js.map +1 -0
- package/dist/service/ses/sim-ses-suppression.d.ts +52 -0
- package/dist/service/ses/sim-ses-suppression.d.ts.map +1 -0
- package/dist/service/ses/sim-ses-suppression.js +63 -0
- package/dist/service/ses/sim-ses-suppression.js.map +1 -0
- package/dist/service/ses/sim-ses-v2.d.ts +14 -1
- package/dist/service/ses/sim-ses-v2.d.ts.map +1 -1
- package/dist/service/ses/sim-ses-v2.js +48 -35
- package/dist/service/ses/sim-ses-v2.js.map +1 -1
- package/dist/service/ses/suppression/sim-ses-suppressed-destination.d.ts +24 -0
- package/dist/service/ses/suppression/sim-ses-suppressed-destination.d.ts.map +1 -0
- package/dist/service/ses/suppression/sim-ses-suppressed-destination.js +21 -0
- package/dist/service/ses/suppression/sim-ses-suppressed-destination.js.map +1 -0
- package/dist/service/ses/suppression/sim-ses-suppression-address.d.ts +9 -0
- package/dist/service/ses/suppression/sim-ses-suppression-address.d.ts.map +1 -0
- package/dist/service/ses/suppression/sim-ses-suppression-address.js +21 -0
- package/dist/service/ses/suppression/sim-ses-suppression-address.js.map +1 -0
- package/dist/service/ses/suppression/sim-ses-suppression-list.d.ts +57 -0
- package/dist/service/ses/suppression/sim-ses-suppression-list.d.ts.map +1 -0
- package/dist/service/ses/suppression/sim-ses-suppression-list.js +82 -0
- package/dist/service/ses/suppression/sim-ses-suppression-list.js.map +1 -0
- package/dist/service/ses/suppression/sim-ses-suppression-reason.d.ts +20 -0
- package/dist/service/ses/suppression/sim-ses-suppression-reason.d.ts.map +1 -0
- package/dist/service/ses/suppression/sim-ses-suppression-reason.js +24 -0
- package/dist/service/ses/suppression/sim-ses-suppression-reason.js.map +1 -0
- package/dist/service/sns/command/sim-sns-commands.d.ts +2 -0
- package/dist/service/sns/command/sim-sns-commands.d.ts.map +1 -1
- package/dist/service/sns/command/sim-sns-commands.js +4 -1
- package/dist/service/sns/command/sim-sns-commands.js.map +1 -1
- package/dist/service/sns/sim-sns.d.ts +7 -0
- package/dist/service/sns/sim-sns.d.ts.map +1 -1
- package/dist/service/sns/sim-sns.js +3 -1
- package/dist/service/sns/sim-sns.js.map +1 -1
- package/dist/service/sns/sms/sim-sns-sent-sms-store.d.ts +13 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.d.ts.map +1 -1
- package/dist/service/sns/sms/sim-sns-sent-sms-store.js +15 -0
- package/dist/service/sns/sms/sim-sns-sent-sms-store.js.map +1 -1
- package/dist/terraform/index.d.ts +6 -0
- package/dist/terraform/index.d.ts.map +1 -0
- package/dist/terraform/index.js +2 -0
- package/dist/terraform/index.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-cloudwatch-dimensions.d.ts +20 -0
- package/dist/terraform/map/sim-tf-map-cloudwatch-dimensions.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-cloudwatch-dimensions.js +36 -0
- package/dist/terraform/map/sim-tf-map-cloudwatch-dimensions.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-cloudwatch.d.ts +12 -0
- package/dist/terraform/map/sim-tf-map-cloudwatch.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-cloudwatch.js +69 -0
- package/dist/terraform/map/sim-tf-map-cloudwatch.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-cognito-client.d.ts +15 -0
- package/dist/terraform/map/sim-tf-map-cognito-client.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-cognito-client.js +37 -0
- package/dist/terraform/map/sim-tf-map-cognito-client.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-cognito-pool.d.ts +26 -0
- package/dist/terraform/map/sim-tf-map-cognito-pool.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-cognito-pool.js +70 -0
- package/dist/terraform/map/sim-tf-map-cognito-pool.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-cognito.d.ts +13 -0
- package/dist/terraform/map/sim-tf-map-cognito.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-cognito.js +39 -0
- package/dist/terraform/map/sim-tf-map-cognito.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-dynamodb-keys.d.ts +31 -0
- package/dist/terraform/map/sim-tf-map-dynamodb-keys.d.ts.map +1 -0
- package/dist/{service/cloudformation/terraform/sim-tf-map-dynamodb.js → terraform/map/sim-tf-map-dynamodb-keys.js} +27 -30
- package/dist/terraform/map/sim-tf-map-dynamodb-keys.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-dynamodb.d.ts +5 -0
- package/dist/terraform/map/sim-tf-map-dynamodb.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-dynamodb.js +31 -0
- package/dist/terraform/map/sim-tf-map-dynamodb.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-ecr.d.ts +12 -0
- package/dist/terraform/map/sim-tf-map-ecr.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-ecr.js +34 -0
- package/dist/terraform/map/sim-tf-map-ecr.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-events.d.ts +24 -0
- package/dist/terraform/map/sim-tf-map-events.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-events.js +151 -0
- package/dist/terraform/map/sim-tf-map-events.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-http-api-routes.d.ts +10 -0
- package/dist/terraform/map/sim-tf-map-http-api-routes.d.ts.map +1 -0
- package/dist/{service/cloudformation/terraform/sim-tf-map-http-api-route.js → terraform/map/sim-tf-map-http-api-routes.js} +19 -3
- package/dist/terraform/map/sim-tf-map-http-api-routes.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-http-api.d.ts +7 -0
- package/dist/terraform/map/sim-tf-map-http-api.d.ts.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform/map}/sim-tf-map-http-api.js +3 -17
- package/dist/terraform/map/sim-tf-map-http-api.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-iam-policy.d.ts +32 -0
- package/dist/terraform/map/sim-tf-map-iam-policy.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-iam-policy.js +85 -0
- package/dist/terraform/map/sim-tf-map-iam-policy.js.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform/map}/sim-tf-map-iam.d.ts +2 -4
- package/dist/terraform/map/sim-tf-map-iam.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-iam.js +37 -0
- package/dist/terraform/map/sim-tf-map-iam.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-kms.d.ts +25 -0
- package/dist/terraform/map/sim-tf-map-kms.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-kms.js +75 -0
- package/dist/terraform/map/sim-tf-map-kms.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-lambda-environment.d.ts +20 -0
- package/dist/terraform/map/sim-tf-map-lambda-environment.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-lambda-environment.js +52 -0
- package/dist/terraform/map/sim-tf-map-lambda-environment.js.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform/map}/sim-tf-map-lambda.d.ts +2 -2
- package/dist/terraform/map/sim-tf-map-lambda.d.ts.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform/map}/sim-tf-map-lambda.js +19 -36
- package/dist/terraform/map/sim-tf-map-lambda.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-logs.d.ts +12 -0
- package/dist/terraform/map/sim-tf-map-logs.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-logs.js +22 -0
- package/dist/terraform/map/sim-tf-map-logs.js.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform/map}/sim-tf-map-s3-folds.d.ts +1 -1
- package/dist/terraform/map/sim-tf-map-s3-folds.d.ts.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform/map}/sim-tf-map-s3-folds.js +2 -3
- package/dist/terraform/map/sim-tf-map-s3-folds.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-s3-lifecycle.d.ts +4 -0
- package/dist/terraform/map/sim-tf-map-s3-lifecycle.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-s3-lifecycle.js +92 -0
- package/dist/terraform/map/sim-tf-map-s3-lifecycle.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-s3-notification-destinations.d.ts +5 -0
- package/dist/terraform/map/sim-tf-map-s3-notification-destinations.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-s3-notification-destinations.js +30 -0
- package/dist/terraform/map/sim-tf-map-s3-notification-destinations.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-s3-notification-filter.d.ts +12 -0
- package/dist/terraform/map/sim-tf-map-s3-notification-filter.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-s3-notification-filter.js +21 -0
- package/dist/terraform/map/sim-tf-map-s3-notification-filter.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-s3-notification.d.ts +50 -0
- package/dist/terraform/map/sim-tf-map-s3-notification.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-s3-notification.js +80 -0
- package/dist/terraform/map/sim-tf-map-s3-notification.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-s3-rules.d.ts +7 -0
- package/dist/terraform/map/sim-tf-map-s3-rules.d.ts.map +1 -0
- package/dist/{service/cloudformation/terraform/sim-tf-map-s3-encryption.js → terraform/map/sim-tf-map-s3-rules.js} +20 -3
- package/dist/terraform/map/sim-tf-map-s3-rules.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-s3.d.ts +5 -0
- package/dist/terraform/map/sim-tf-map-s3.d.ts.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform/map}/sim-tf-map-s3.js +1 -1
- package/dist/terraform/map/sim-tf-map-s3.js.map +1 -0
- package/dist/{service/cloudformation/terraform/sim-tf-map-config.d.ts → terraform/map/sim-tf-map-secretsmanager.d.ts} +3 -5
- package/dist/terraform/map/sim-tf-map-secretsmanager.d.ts.map +1 -0
- package/dist/{service/cloudformation/terraform/sim-tf-map-config.js → terraform/map/sim-tf-map-secretsmanager.js} +2 -14
- package/dist/terraform/map/sim-tf-map-secretsmanager.js.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform/map}/sim-tf-map-sns.d.ts +2 -2
- package/dist/terraform/map/sim-tf-map-sns.d.ts.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform/map}/sim-tf-map-sns.js +1 -1
- package/dist/terraform/map/sim-tf-map-sns.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-sqs-redrive.d.ts +32 -0
- package/dist/terraform/map/sim-tf-map-sqs-redrive.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-sqs-redrive.js +68 -0
- package/dist/terraform/map/sim-tf-map-sqs-redrive.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-sqs.d.ts +11 -0
- package/dist/terraform/map/sim-tf-map-sqs.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-sqs.js +26 -0
- package/dist/terraform/map/sim-tf-map-sqs.js.map +1 -0
- package/dist/terraform/map/sim-tf-map-ssm.d.ts +13 -0
- package/dist/terraform/map/sim-tf-map-ssm.d.ts.map +1 -0
- package/dist/terraform/map/sim-tf-map-ssm.js +24 -0
- package/dist/terraform/map/sim-tf-map-ssm.js.map +1 -0
- package/dist/terraform/sim-tf-adapter.d.ts +80 -0
- package/dist/terraform/sim-tf-adapter.d.ts.map +1 -0
- package/dist/terraform/sim-tf-adapter.js +44 -0
- package/dist/terraform/sim-tf-adapter.js.map +1 -0
- package/dist/terraform/sim-tf-attribute-reads.d.ts.map +1 -0
- package/dist/terraform/sim-tf-attribute-reads.js.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform}/sim-tf-attributes.d.ts +13 -4
- package/dist/terraform/sim-tf-attributes.d.ts.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform}/sim-tf-attributes.js +1 -1
- package/dist/terraform/sim-tf-attributes.js.map +1 -0
- package/dist/terraform/sim-tf-declare.d.ts +37 -0
- package/dist/terraform/sim-tf-declare.d.ts.map +1 -0
- package/dist/{service/cloudformation/terraform/sim-tf-template-graph.js → terraform/sim-tf-declare.js} +35 -23
- package/dist/terraform/sim-tf-declare.js.map +1 -0
- package/dist/terraform/sim-tf-fold.d.ts +26 -0
- package/dist/terraform/sim-tf-fold.d.ts.map +1 -0
- package/dist/terraform/sim-tf-fold.js +72 -0
- package/dist/terraform/sim-tf-fold.js.map +1 -0
- package/dist/terraform/sim-tf-import.d.ts +31 -0
- package/dist/terraform/sim-tf-import.d.ts.map +1 -0
- package/dist/terraform/sim-tf-import.js +38 -0
- package/dist/terraform/sim-tf-import.js.map +1 -0
- package/dist/terraform/sim-tf-logical-id.d.ts +27 -0
- package/dist/terraform/sim-tf-logical-id.d.ts.map +1 -0
- package/dist/terraform/sim-tf-logical-id.js +83 -0
- package/dist/terraform/sim-tf-logical-id.js.map +1 -0
- package/dist/terraform/sim-tf-mapping.type.d.ts +73 -0
- package/dist/terraform/sim-tf-mapping.type.d.ts.map +1 -0
- package/dist/terraform/sim-tf-mapping.type.js.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform}/sim-tf-module-outputs.d.ts +1 -9
- package/dist/terraform/sim-tf-module-outputs.d.ts.map +1 -0
- package/dist/terraform/sim-tf-module-outputs.js +33 -0
- package/dist/terraform/sim-tf-module-outputs.js.map +1 -0
- package/dist/terraform/sim-tf-nested-attributes.d.ts +33 -0
- package/dist/terraform/sim-tf-nested-attributes.d.ts.map +1 -0
- package/dist/terraform/sim-tf-nested-attributes.js +97 -0
- package/dist/terraform/sim-tf-nested-attributes.js.map +1 -0
- package/dist/terraform/sim-tf-override.type.d.ts +36 -0
- package/dist/terraform/sim-tf-override.type.d.ts.map +1 -0
- package/dist/terraform/sim-tf-override.type.js +2 -0
- package/dist/terraform/sim-tf-override.type.js.map +1 -0
- package/dist/terraform/sim-tf-overrides.d.ts +21 -0
- package/dist/terraform/sim-tf-overrides.d.ts.map +1 -0
- package/dist/terraform/sim-tf-overrides.js +40 -0
- package/dist/terraform/sim-tf-overrides.js.map +1 -0
- package/dist/terraform/sim-tf-plan-file.d.ts +23 -0
- package/dist/terraform/sim-tf-plan-file.d.ts.map +1 -0
- package/dist/terraform/sim-tf-plan-file.js +58 -0
- package/dist/terraform/sim-tf-plan-file.js.map +1 -0
- package/dist/terraform/sim-tf-plan-resources.d.ts +18 -0
- package/dist/terraform/sim-tf-plan-resources.d.ts.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform}/sim-tf-plan-resources.js +18 -10
- package/dist/terraform/sim-tf-plan-resources.js.map +1 -0
- package/dist/terraform/sim-tf-plan-sections.d.ts +31 -0
- package/dist/terraform/sim-tf-plan-sections.d.ts.map +1 -0
- package/dist/terraform/sim-tf-plan-sections.js +60 -0
- package/dist/terraform/sim-tf-plan-sections.js.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform}/sim-tf-plan.type.d.ts +5 -1
- package/dist/terraform/sim-tf-plan.type.d.ts.map +1 -0
- package/dist/terraform/sim-tf-plan.type.js.map +1 -0
- package/dist/terraform/sim-tf-reference-address.d.ts +52 -0
- package/dist/terraform/sim-tf-reference-address.d.ts.map +1 -0
- package/dist/terraform/sim-tf-reference-address.js +102 -0
- package/dist/terraform/sim-tf-reference-address.js.map +1 -0
- package/dist/terraform/sim-tf-reference.d.ts +82 -0
- package/dist/terraform/sim-tf-reference.d.ts.map +1 -0
- package/dist/terraform/sim-tf-reference.js +153 -0
- package/dist/terraform/sim-tf-reference.js.map +1 -0
- package/dist/terraform/sim-tf-referenced.d.ts +18 -0
- package/dist/terraform/sim-tf-referenced.d.ts.map +1 -0
- package/dist/terraform/sim-tf-referenced.js +40 -0
- package/dist/terraform/sim-tf-referenced.js.map +1 -0
- package/dist/terraform/sim-tf-refusal.d.ts +23 -0
- package/dist/terraform/sim-tf-refusal.d.ts.map +1 -0
- package/dist/terraform/sim-tf-refusal.js +44 -0
- package/dist/terraform/sim-tf-refusal.js.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform}/sim-tf-registry.d.ts +2 -1
- package/dist/terraform/sim-tf-registry.d.ts.map +1 -0
- package/dist/terraform/sim-tf-registry.js +67 -0
- package/dist/terraform/sim-tf-registry.js.map +1 -0
- package/dist/terraform/sim-tf-report.d.ts +21 -0
- package/dist/terraform/sim-tf-report.d.ts.map +1 -0
- package/dist/terraform/sim-tf-report.js +57 -0
- package/dist/terraform/sim-tf-report.js.map +1 -0
- package/dist/{service/cloudformation/terraform → terraform}/sim-tf-report.type.d.ts +10 -4
- package/dist/terraform/sim-tf-report.type.d.ts.map +1 -0
- package/dist/terraform/sim-tf-report.type.js.map +1 -0
- package/dist/{service/cloudformation/terraform/sim-tf-plan-resources.d.ts → terraform/sim-tf-resource.type.d.ts} +6 -12
- package/dist/terraform/sim-tf-resource.type.d.ts.map +1 -0
- package/dist/terraform/sim-tf-resource.type.js +3 -0
- package/dist/terraform/sim-tf-resource.type.js.map +1 -0
- package/dist/terraform/sim-tf-settle.d.ts +36 -0
- package/dist/terraform/sim-tf-settle.d.ts.map +1 -0
- package/dist/terraform/sim-tf-settle.js +63 -0
- package/dist/terraform/sim-tf-settle.js.map +1 -0
- package/dist/util/filesystem/test-terraform-project.d.ts +11 -0
- package/dist/util/filesystem/test-terraform-project.d.ts.map +1 -1
- package/dist/util/filesystem/test-terraform-project.js +30 -1
- package/dist/util/filesystem/test-terraform-project.js.map +1 -1
- package/package.json +5 -1
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-attribute-reads.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-attribute-reads.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-attributes.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-attributes.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-config.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-config.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-dynamodb.d.ts +0 -15
- package/dist/service/cloudformation/terraform/sim-tf-map-dynamodb.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-dynamodb.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-http-api-route.d.ts +0 -5
- package/dist/service/cloudformation/terraform/sim-tf-map-http-api-route.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-http-api-route.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-http-api.d.ts +0 -12
- package/dist/service/cloudformation/terraform/sim-tf-map-http-api.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-http-api.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-iam.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-iam.js +0 -80
- package/dist/service/cloudformation/terraform/sim-tf-map-iam.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-lambda.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-lambda.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-s3-cors.d.ts +0 -5
- package/dist/service/cloudformation/terraform/sim-tf-map-s3-cors.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-s3-cors.js +0 -12
- package/dist/service/cloudformation/terraform/sim-tf-map-s3-cors.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-s3-encryption.d.ts +0 -5
- package/dist/service/cloudformation/terraform/sim-tf-map-s3-encryption.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-s3-encryption.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-s3-folds.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-s3-folds.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-s3.d.ts +0 -5
- package/dist/service/cloudformation/terraform/sim-tf-map-s3.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-s3.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-sns.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-sns.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-sqs.d.ts +0 -5
- package/dist/service/cloudformation/terraform/sim-tf-map-sqs.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-map-sqs.js +0 -56
- package/dist/service/cloudformation/terraform/sim-tf-map-sqs.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-mapping.type.d.ts +0 -41
- package/dist/service/cloudformation/terraform/sim-tf-mapping.type.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-mapping.type.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-module-outputs.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-module-outputs.js +0 -63
- package/dist/service/cloudformation/terraform/sim-tf-module-outputs.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-plan-index.d.ts +0 -26
- package/dist/service/cloudformation/terraform/sim-tf-plan-index.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-plan-index.js +0 -45
- package/dist/service/cloudformation/terraform/sim-tf-plan-index.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-plan-resources.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-plan-resources.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-plan.type.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-plan.type.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-reference-address.d.ts +0 -27
- package/dist/service/cloudformation/terraform/sim-tf-reference-address.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-reference-address.js +0 -58
- package/dist/service/cloudformation/terraform/sim-tf-reference-address.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-reference.d.ts +0 -64
- package/dist/service/cloudformation/terraform/sim-tf-reference.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-reference.js +0 -122
- package/dist/service/cloudformation/terraform/sim-tf-reference.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-registry.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-registry.js +0 -40
- package/dist/service/cloudformation/terraform/sim-tf-registry.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-report.type.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-report.type.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-folds.d.ts +0 -20
- package/dist/service/cloudformation/terraform/sim-tf-template-folds.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-folds.js +0 -28
- package/dist/service/cloudformation/terraform/sim-tf-template-folds.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-graph.d.ts +0 -29
- package/dist/service/cloudformation/terraform/sim-tf-template-graph.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-graph.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-mappings.d.ts +0 -23
- package/dist/service/cloudformation/terraform/sim-tf-template-mappings.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-mappings.js +0 -72
- package/dist/service/cloudformation/terraform/sim-tf-template-mappings.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-merge.d.ts +0 -21
- package/dist/service/cloudformation/terraform/sim-tf-template-merge.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-merge.js +0 -33
- package/dist/service/cloudformation/terraform/sim-tf-template-merge.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-prune.d.ts +0 -21
- package/dist/service/cloudformation/terraform/sim-tf-template-prune.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-prune.js +0 -51
- package/dist/service/cloudformation/terraform/sim-tf-template-prune.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-pruned.d.ts +0 -18
- package/dist/service/cloudformation/terraform/sim-tf-template-pruned.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-pruned.js +0 -23
- package/dist/service/cloudformation/terraform/sim-tf-template-pruned.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-references.d.ts +0 -10
- package/dist/service/cloudformation/terraform/sim-tf-template-references.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-references.js +0 -39
- package/dist/service/cloudformation/terraform/sim-tf-template-references.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-resolver.d.ts +0 -12
- package/dist/service/cloudformation/terraform/sim-tf-template-resolver.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template-resolver.js +0 -17
- package/dist/service/cloudformation/terraform/sim-tf-template-resolver.js.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template.d.ts +0 -26
- package/dist/service/cloudformation/terraform/sim-tf-template.d.ts.map +0 -1
- package/dist/service/cloudformation/terraform/sim-tf-template.js +0 -54
- package/dist/service/cloudformation/terraform/sim-tf-template.js.map +0 -1
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.d.ts +0 -17
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.d.ts.map +0 -1
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.js +0 -48
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.js.map +0 -1
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.d.ts +0 -12
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.d.ts.map +0 -1
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.js +0 -26
- package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.js.map +0 -1
- /package/dist/service/{cloudformation/resource/cfn/ses → ses/identity}/sim-ses-dkim-tokens.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/ses → ses/identity}/sim-ses-dkim-tokens.js +0 -0
- /package/dist/{service/cloudformation/terraform → terraform}/sim-tf-attribute-reads.d.ts +0 -0
- /package/dist/{service/cloudformation/terraform → terraform}/sim-tf-attribute-reads.js +0 -0
- /package/dist/{service/cloudformation/terraform → terraform}/sim-tf-mapping.type.js +0 -0
- /package/dist/{service/cloudformation/terraform → terraform}/sim-tf-plan.type.js +0 -0
- /package/dist/{service/cloudformation/terraform → terraform}/sim-tf-report.type.js +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defaultSimSesIdentitySettings, } from "../../identity/sim-ses-identity-settings.js";
|
|
2
|
+
/**
|
|
3
|
+
* Read the settings a CreateEmailIdentity request configures an identity with.
|
|
4
|
+
*
|
|
5
|
+
* The request is taken at its word. `DkimSigningAttributes`, `Tags` and
|
|
6
|
+
* `ConfigurationSetName` are all held on the identity and read back by
|
|
7
|
+
* `GetEmailIdentity`, so a caller that asks for one gets an identity that
|
|
8
|
+
* agrees with the request that made it.
|
|
9
|
+
*
|
|
10
|
+
* A private signing key is the one input dropped. Nothing here signs a
|
|
11
|
+
* message, and holding a secret for no reason is worse than forgetting it.
|
|
12
|
+
*/
|
|
13
|
+
export function simSesIdentityInputSettings(input, identityType) {
|
|
14
|
+
const defaults = defaultSimSesIdentitySettings(identityType);
|
|
15
|
+
return {
|
|
16
|
+
...defaults,
|
|
17
|
+
dkim: inputDkimSettings(input.DkimSigningAttributes, defaults.dkim, identityType),
|
|
18
|
+
...(input.ConfigurationSetName !== undefined && {
|
|
19
|
+
configurationSetName: input.ConfigurationSetName,
|
|
20
|
+
}),
|
|
21
|
+
tags: inputTags(input.Tags),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The tags a request carries, keeping the ones that have both halves.
|
|
26
|
+
*
|
|
27
|
+
* Real SES refuses a tag with no key. Dropping it is the lesser divergence
|
|
28
|
+
* here, since the alternative is failing a request over a tag nothing in this
|
|
29
|
+
* simulation is billed or grouped by.
|
|
30
|
+
*/
|
|
31
|
+
function inputTags(tags) {
|
|
32
|
+
return (tags ?? []).flatMap((tag) => tag.Key === undefined || tag.Value === undefined
|
|
33
|
+
? []
|
|
34
|
+
: [{ Key: tag.Key, Value: tag.Value }]);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* How a request's signing attributes configure DKIM.
|
|
38
|
+
*
|
|
39
|
+
* A selector means Bring Your Own DKIM, which SES reports as an `EXTERNAL`
|
|
40
|
+
* origin with no tokens of its own. Anything else leaves Easy DKIM in place
|
|
41
|
+
* and only says which key length it rotates to next.
|
|
42
|
+
*/
|
|
43
|
+
function inputDkimSettings(signingAttributes, defaults, identityType) {
|
|
44
|
+
if (signingAttributes === undefined) {
|
|
45
|
+
return defaults;
|
|
46
|
+
}
|
|
47
|
+
const selector = signingAttributes.DomainSigningSelector;
|
|
48
|
+
return {
|
|
49
|
+
signingEnabled: identityType === "DOMAIN",
|
|
50
|
+
signingOrigin: selector === undefined ? "AWS_SES" : "EXTERNAL",
|
|
51
|
+
...(selector !== undefined && { domainSigningSelector: selector }),
|
|
52
|
+
...(signingAttributes.NextSigningKeyLength !== undefined && {
|
|
53
|
+
nextSigningKeyLength: signingAttributes.NextSigningKeyLength,
|
|
54
|
+
}),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=sim-ses-identity-input-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-identity-input-settings.js","sourceRoot":"","sources":["../../../../../src/service/ses/command/identity/sim-ses-identity-input-settings.ts"],"names":[],"mappings":"AACA,OAAO,EACL,6BAA6B,GAI9B,MAAM,6CAA6C,CAAC;AAOrD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,2BAA2B,CACzC,KAAyC,EACzC,YAAgC;IAEhC,MAAM,QAAQ,GAAG,6BAA6B,CAAC,YAAY,CAAC,CAAC;IAE7D,OAAO;QACL,GAAG,QAAQ;QACX,IAAI,EAAE,iBAAiB,CACrB,KAAK,CAAC,qBAAqB,EAC3B,QAAQ,CAAC,IAAI,EACb,YAAY,CACb;QACD,GAAG,CAAC,KAAK,CAAC,oBAAoB,KAAK,SAAS,IAAI;YAC9C,oBAAoB,EAAE,KAAK,CAAC,oBAAoB;SACjD,CAAC;QACF,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC;KAC5B,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAS,SAAS,CAChB,IAA2C;IAE3C,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAClC,GAAG,CAAC,GAAG,KAAK,SAAS,IAAI,GAAG,CAAC,KAAK,KAAK,SAAS;QAC9C,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC,CACzC,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAS,iBAAiB,CACxB,iBAA0D,EAC1D,QAA4B,EAC5B,YAAgC;IAEhC,IAAI,iBAAiB,KAAK,SAAS,EAAE,CAAC;QACpC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM,QAAQ,GAAG,iBAAiB,CAAC,qBAAqB,CAAC;IAEzD,OAAO;QACL,cAAc,EAAE,YAAY,KAAK,QAAQ;QACzC,aAAa,EAAE,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;QAC9D,GAAG,CAAC,QAAQ,KAAK,SAAS,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,CAAC;QAClE,GAAG,CAAC,iBAAiB,CAAC,oBAAoB,KAAK,SAAS,IAAI;YAC1D,oBAAoB,EAAE,iBAAiB,CAAC,oBAAoB;SAC7D,CAAC;KACH,CAAC;AACJ,CAAC"}
|
|
@@ -5,12 +5,14 @@ import type { SimSesAuthorizer } from "../authorize/sim-ses-authorizer.js";
|
|
|
5
5
|
import type { SimSesRequestOptions } from "../sim-ses-request-options.js";
|
|
6
6
|
import type { SimSendEmailCommand, SimSendEmailCommandOutput } from "./send.command.js";
|
|
7
7
|
import type { SimSesContentReader } from "./sim-ses-content.js";
|
|
8
|
+
import type { SimSesSuppressionCheck } from "./sim-ses-suppression-check.js";
|
|
8
9
|
import type { SimSesVerifiedIdentityCheck } from "./sim-ses-verified-identities.js";
|
|
9
10
|
interface SimSesSendEmailProperties {
|
|
10
11
|
readonly identities: SimSesIdentityStore;
|
|
11
12
|
readonly content: SimSesContentReader;
|
|
12
13
|
readonly sent: SimSesSentEmailStore;
|
|
13
14
|
readonly identityCheck: SimSesVerifiedIdentityCheck;
|
|
15
|
+
readonly suppressionCheck: SimSesSuppressionCheck;
|
|
14
16
|
readonly authorizer: SimSesAuthorizer;
|
|
15
17
|
readonly clock: SimClock;
|
|
16
18
|
}
|
|
@@ -23,6 +25,10 @@ interface SimSesSendEmailProperties {
|
|
|
23
25
|
* service looks at it, then the identity check, then the message is recorded.
|
|
24
26
|
* A caller with no permission is therefore refused whether or not its
|
|
25
27
|
* identities are verified.
|
|
28
|
+
*
|
|
29
|
+
* The suppression list refuses nothing. SES accepts a message addressed to a
|
|
30
|
+
* suppressed recipient and holds it back from that recipient, so the check
|
|
31
|
+
* runs last and its answer goes on the record.
|
|
26
32
|
*/
|
|
27
33
|
export declare class SimSesSendEmail {
|
|
28
34
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-ses-send-email.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/command/send/sim-ses-send-email.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAOpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAEpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EAE1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-ses-send-email.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/command/send/sim-ses-send-email.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAOpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAEpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EAE1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEpF,UAAU,yBAAyB;IACjC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,aAAa,EAAE,2BAA2B,CAAC;IACpD,QAAQ,CAAC,gBAAgB,EAAE,sBAAsB,CAAC;IAClD,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,eAAe;;IAS1B,YAAY,UAAU,EAAE,yBAAyB,EAQhD;IAED;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,mBAAmB,EAC5B,OAAO,CAAC,EAAE,oBAAoB,GAC7B,yBAAyB,CA6C3B;CACF"}
|
|
@@ -12,12 +12,17 @@ import { refuseUnsimulatedSendInput } from "./sim-ses-unsimulated-send-input.js"
|
|
|
12
12
|
* service looks at it, then the identity check, then the message is recorded.
|
|
13
13
|
* A caller with no permission is therefore refused whether or not its
|
|
14
14
|
* identities are verified.
|
|
15
|
+
*
|
|
16
|
+
* The suppression list refuses nothing. SES accepts a message addressed to a
|
|
17
|
+
* suppressed recipient and holds it back from that recipient, so the check
|
|
18
|
+
* runs last and its answer goes on the record.
|
|
15
19
|
*/
|
|
16
20
|
export class SimSesSendEmail {
|
|
17
21
|
#identities;
|
|
18
22
|
#content;
|
|
19
23
|
#sent;
|
|
20
24
|
#identityCheck;
|
|
25
|
+
#suppressionCheck;
|
|
21
26
|
#authorizer;
|
|
22
27
|
#clock;
|
|
23
28
|
constructor(properties) {
|
|
@@ -25,6 +30,7 @@ export class SimSesSendEmail {
|
|
|
25
30
|
this.#content = properties.content;
|
|
26
31
|
this.#sent = properties.sent;
|
|
27
32
|
this.#identityCheck = properties.identityCheck;
|
|
33
|
+
this.#suppressionCheck = properties.suppressionCheck;
|
|
28
34
|
this.#authorizer = properties.authorizer;
|
|
29
35
|
this.#clock = properties.clock;
|
|
30
36
|
}
|
|
@@ -55,6 +61,7 @@ export class SimSesSendEmail {
|
|
|
55
61
|
templateName: content.templateName,
|
|
56
62
|
templateData: content.templateData,
|
|
57
63
|
configurationSetName: input.ConfigurationSetName,
|
|
64
|
+
suppressedRecipients: this.#suppressionCheck.withheldFrom(recipients),
|
|
58
65
|
sentDate: this.#clock.now(),
|
|
59
66
|
}));
|
|
60
67
|
return { $metadata: {}, MessageId: messageId };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-ses-send-email.js","sourceRoot":"","sources":["../../../../../src/service/ses/command/send/sim-ses-send-email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EACL,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAGpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-ses-send-email.js","sourceRoot":"","sources":["../../../../../src/service/ses/command/send/sim-ses-send-email.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
|
+
import type { SimSesSentEmailStore } from "../../email/sim-ses-sent-email-store.js";
|
|
3
|
+
import type { SimSesSuppressionCheck } from "./sim-ses-suppression-check.js";
|
|
4
|
+
import type { SimSesVerifiedIdentityCheck } from "./sim-ses-verified-identities.js";
|
|
5
|
+
/**
|
|
6
|
+
* A message another simulated service is sending through SES on an account's
|
|
7
|
+
* behalf.
|
|
8
|
+
*
|
|
9
|
+
* One recipient, and a plain text body. That is the whole of what a service
|
|
10
|
+
* sender needs so far: a Cognito user pool writes one message to one user at a
|
|
11
|
+
* time, and writes it as text.
|
|
12
|
+
*/
|
|
13
|
+
export interface SimSesServiceSendRequest {
|
|
14
|
+
readonly fromEmailAddress: string;
|
|
15
|
+
readonly toAddress: string;
|
|
16
|
+
readonly replyToAddresses: readonly string[];
|
|
17
|
+
readonly subject: string;
|
|
18
|
+
readonly body: string;
|
|
19
|
+
readonly configurationSetName: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* What SES made of the message: the id it would have answered with, or why it
|
|
23
|
+
* would have turned the message down.
|
|
24
|
+
*
|
|
25
|
+
* A refusal comes back rather than being thrown. The service that asked
|
|
26
|
+
* reports it in its own vocabulary, and an SES exception crossing the boundary
|
|
27
|
+
* would leave that service repackaging one error as another.
|
|
28
|
+
*/
|
|
29
|
+
export interface SimSesServiceSendResult {
|
|
30
|
+
readonly messageId?: string | undefined;
|
|
31
|
+
readonly refusedBecause?: string | undefined;
|
|
32
|
+
}
|
|
33
|
+
interface SimSesServiceSendProperties {
|
|
34
|
+
readonly sent: SimSesSentEmailStore;
|
|
35
|
+
readonly identityCheck: SimSesVerifiedIdentityCheck;
|
|
36
|
+
readonly suppressionCheck: SimSesSuppressionCheck;
|
|
37
|
+
readonly clock: SimClock;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A send that reaches SES from another simulated service rather than from a
|
|
41
|
+
* caller with an SDK client.
|
|
42
|
+
*
|
|
43
|
+
* The identity check and the recorded message are the same as `SendEmail`.
|
|
44
|
+
* IAM is the difference, and it is left out on purpose: a Cognito user pool
|
|
45
|
+
* with `EmailSendingAccount: DEVELOPER` sends as the Cognito service through a
|
|
46
|
+
* service-linked role, so the permissions of whoever called `SignUp` decide
|
|
47
|
+
* nothing about it. Simulated Lambda triggers skip the `Invoke` command for
|
|
48
|
+
* the same reason.
|
|
49
|
+
*
|
|
50
|
+
* The sandbox still applies. That is the point of routing a pool's messages
|
|
51
|
+
* through here rather than recording them and calling it a send. An account
|
|
52
|
+
* configured for SES and still in the sandbox is the way this fails in a
|
|
53
|
+
* deployment.
|
|
54
|
+
*
|
|
55
|
+
* The suppression list applies too, and refuses nothing. A pool's message to a
|
|
56
|
+
* suppressed recipient is accepted and recorded as held back, exactly as one
|
|
57
|
+
* an SDK caller sent would be.
|
|
58
|
+
*/
|
|
59
|
+
export declare class SimSesServiceSend {
|
|
60
|
+
#private;
|
|
61
|
+
constructor(properties: SimSesServiceSendProperties);
|
|
62
|
+
/**
|
|
63
|
+
* Accept the message, or say why SES would have refused it.
|
|
64
|
+
*/
|
|
65
|
+
send(request: SimSesServiceSendRequest): SimSesServiceSendResult;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
68
|
+
//# sourceMappingURL=sim-ses-service-send.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-service-send.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/command/send/sim-ses-service-send.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAGpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEpF;;;;;;;GAOG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;CACnD;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9C;AAED,UAAU,2BAA2B;IACnC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,aAAa,EAAE,2BAA2B,CAAC;IACpD,QAAQ,CAAC,gBAAgB,EAAE,sBAAsB,CAAC;IAClD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,iBAAiB;;IAM5B,YAAY,UAAU,EAAE,2BAA2B,EAKlD;IAED;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,wBAAwB,GAAG,uBAAuB,CAmC/D;CACF"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { simSesBareAddress } from "../../email/sim-ses-address.js";
|
|
3
|
+
import { SimSesSentEmail } from "../../email/sim-ses-sent-email.js";
|
|
4
|
+
/**
|
|
5
|
+
* A send that reaches SES from another simulated service rather than from a
|
|
6
|
+
* caller with an SDK client.
|
|
7
|
+
*
|
|
8
|
+
* The identity check and the recorded message are the same as `SendEmail`.
|
|
9
|
+
* IAM is the difference, and it is left out on purpose: a Cognito user pool
|
|
10
|
+
* with `EmailSendingAccount: DEVELOPER` sends as the Cognito service through a
|
|
11
|
+
* service-linked role, so the permissions of whoever called `SignUp` decide
|
|
12
|
+
* nothing about it. Simulated Lambda triggers skip the `Invoke` command for
|
|
13
|
+
* the same reason.
|
|
14
|
+
*
|
|
15
|
+
* The sandbox still applies. That is the point of routing a pool's messages
|
|
16
|
+
* through here rather than recording them and calling it a send. An account
|
|
17
|
+
* configured for SES and still in the sandbox is the way this fails in a
|
|
18
|
+
* deployment.
|
|
19
|
+
*
|
|
20
|
+
* The suppression list applies too, and refuses nothing. A pool's message to a
|
|
21
|
+
* suppressed recipient is accepted and recorded as held back, exactly as one
|
|
22
|
+
* an SDK caller sent would be.
|
|
23
|
+
*/
|
|
24
|
+
export class SimSesServiceSend {
|
|
25
|
+
#sent;
|
|
26
|
+
#identityCheck;
|
|
27
|
+
#suppressionCheck;
|
|
28
|
+
#clock;
|
|
29
|
+
constructor(properties) {
|
|
30
|
+
this.#sent = properties.sent;
|
|
31
|
+
this.#identityCheck = properties.identityCheck;
|
|
32
|
+
this.#suppressionCheck = properties.suppressionCheck;
|
|
33
|
+
this.#clock = properties.clock;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Accept the message, or say why SES would have refused it.
|
|
37
|
+
*/
|
|
38
|
+
send(request) {
|
|
39
|
+
const refusedBecause = this.#identityCheck.refusal({
|
|
40
|
+
fromEmailAddress: simSesBareAddress(request.fromEmailAddress),
|
|
41
|
+
recipients: [request.toAddress],
|
|
42
|
+
});
|
|
43
|
+
if (refusedBecause !== undefined) {
|
|
44
|
+
return { refusedBecause };
|
|
45
|
+
}
|
|
46
|
+
const messageId = randomUUID();
|
|
47
|
+
this.#sent.add(new SimSesSentEmail({
|
|
48
|
+
messageId,
|
|
49
|
+
fromEmailAddress: request.fromEmailAddress,
|
|
50
|
+
destination: {
|
|
51
|
+
toAddresses: [request.toAddress],
|
|
52
|
+
ccAddresses: [],
|
|
53
|
+
bccAddresses: [],
|
|
54
|
+
},
|
|
55
|
+
replyToAddresses: [...request.replyToAddresses],
|
|
56
|
+
subject: request.subject,
|
|
57
|
+
body: { text: request.body, html: undefined },
|
|
58
|
+
templateName: undefined,
|
|
59
|
+
templateData: undefined,
|
|
60
|
+
configurationSetName: request.configurationSetName,
|
|
61
|
+
suppressedRecipients: this.#suppressionCheck.withheldFrom([
|
|
62
|
+
request.toAddress,
|
|
63
|
+
]),
|
|
64
|
+
sentDate: this.#clock.now(),
|
|
65
|
+
}));
|
|
66
|
+
return { messageId };
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=sim-ses-service-send.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-service-send.js","sourceRoot":"","sources":["../../../../../src/service/ses/command/send/sim-ses-service-send.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AA0CpE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,iBAAiB;IACnB,KAAK,CAAuB;IAC5B,cAAc,CAA8B;IAC5C,iBAAiB,CAAyB;IAC1C,MAAM,CAAW;IAE1B,YAAY,UAAuC;QACjD,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;QAC/C,IAAI,CAAC,iBAAiB,GAAG,UAAU,CAAC,gBAAgB,CAAC;QACrD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC;IACjC,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAiC;QACpC,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;YACjD,gBAAgB,EAAE,iBAAiB,CAAC,OAAO,CAAC,gBAAgB,CAAC;YAC7D,UAAU,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC;SAChC,CAAC,CAAC;QAEH,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,OAAO,EAAE,cAAc,EAAE,CAAC;QAC5B,CAAC;QAED,MAAM,SAAS,GAAG,UAAU,EAAE,CAAC;QAE/B,IAAI,CAAC,KAAK,CAAC,GAAG,CACZ,IAAI,eAAe,CAAC;YAClB,SAAS;YACT,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,WAAW,EAAE;gBACX,WAAW,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC;gBAChC,WAAW,EAAE,EAAE;gBACf,YAAY,EAAE,EAAE;aACjB;YACD,gBAAgB,EAAE,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;YAC/C,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;YAC7C,YAAY,EAAE,SAAS;YACvB,YAAY,EAAE,SAAS;YACvB,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;YAClD,oBAAoB,EAAE,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC;gBACxD,OAAO,CAAC,SAAS;aAClB,CAAC;YACF,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE;SAC5B,CAAC,CACH,CAAC;QAEF,OAAO,EAAE,SAAS,EAAE,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SimSesAccount } from "../../account/sim-ses-account.js";
|
|
2
|
+
import type { SimSesSuppressedRecipient } from "../../email/sim-ses-sent-email.js";
|
|
3
|
+
import type { SimSesSuppressionList } from "../../suppression/sim-ses-suppression-list.js";
|
|
4
|
+
interface SimSesSuppressionCheckProperties {
|
|
5
|
+
readonly suppression: SimSesSuppressionList;
|
|
6
|
+
readonly account: SimSesAccount;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Which of a message's recipients the suppression list holds back.
|
|
10
|
+
*
|
|
11
|
+
* SES accepts a message addressed to a suppressed recipient and does not
|
|
12
|
+
* deliver it, and it counts toward the daily sending quota either way. So this
|
|
13
|
+
* refuses nothing. It reports what was held back, and the recorded send keeps
|
|
14
|
+
* the answer.
|
|
15
|
+
*
|
|
16
|
+
* A recipient is held back when it is on the list and the account is
|
|
17
|
+
* suppressing for the reason it was listed under. The two have to match, which
|
|
18
|
+
* is the part of the rules most easily got wrong: an address listed for
|
|
19
|
+
* `COMPLAINT` under an account suppressing only `BOUNCE` is mailed.
|
|
20
|
+
*/
|
|
21
|
+
export declare class SimSesSuppressionCheck {
|
|
22
|
+
#private;
|
|
23
|
+
constructor(properties: SimSesSuppressionCheckProperties);
|
|
24
|
+
/**
|
|
25
|
+
* The recipients of one message SES would hold back, in the order the
|
|
26
|
+
* message addressed them.
|
|
27
|
+
*/
|
|
28
|
+
withheldFrom(recipients: readonly string[]): readonly SimSesSuppressedRecipient[];
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=sim-ses-suppression-check.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-suppression-check.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/command/send/sim-ses-suppression-check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAE3F,UAAU,gCAAgC;IACxC,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;CACjC;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,sBAAsB;;IAIjC,YAAY,UAAU,EAAE,gCAAgC,EAGvD;IAED;;;OAGG;IACH,YAAY,CACV,UAAU,EAAE,SAAS,MAAM,EAAE,GAC5B,SAAS,yBAAyB,EAAE,CAetC;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { simSesBareAddress } from "../../email/sim-ses-address.js";
|
|
2
|
+
/**
|
|
3
|
+
* Which of a message's recipients the suppression list holds back.
|
|
4
|
+
*
|
|
5
|
+
* SES accepts a message addressed to a suppressed recipient and does not
|
|
6
|
+
* deliver it, and it counts toward the daily sending quota either way. So this
|
|
7
|
+
* refuses nothing. It reports what was held back, and the recorded send keeps
|
|
8
|
+
* the answer.
|
|
9
|
+
*
|
|
10
|
+
* A recipient is held back when it is on the list and the account is
|
|
11
|
+
* suppressing for the reason it was listed under. The two have to match, which
|
|
12
|
+
* is the part of the rules most easily got wrong: an address listed for
|
|
13
|
+
* `COMPLAINT` under an account suppressing only `BOUNCE` is mailed.
|
|
14
|
+
*/
|
|
15
|
+
export class SimSesSuppressionCheck {
|
|
16
|
+
#suppression;
|
|
17
|
+
#account;
|
|
18
|
+
constructor(properties) {
|
|
19
|
+
this.#suppression = properties.suppression;
|
|
20
|
+
this.#account = properties.account;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The recipients of one message SES would hold back, in the order the
|
|
24
|
+
* message addressed them.
|
|
25
|
+
*/
|
|
26
|
+
withheldFrom(recipients) {
|
|
27
|
+
return recipients.flatMap((recipient) => {
|
|
28
|
+
const suppressed = this.#suppression.matching(simSesBareAddress(recipient));
|
|
29
|
+
if (suppressed === undefined ||
|
|
30
|
+
!this.#account.isSuppressedFor(suppressed.reason)) {
|
|
31
|
+
return [];
|
|
32
|
+
}
|
|
33
|
+
return [{ emailAddress: recipient, reason: suppressed.reason }];
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=sim-ses-suppression-check.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-suppression-check.js","sourceRoot":"","sources":["../../../../../src/service/ses/command/send/sim-ses-suppression-check.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AASnE;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,sBAAsB;IACxB,YAAY,CAAwB;IACpC,QAAQ,CAAgB;IAEjC,YAAY,UAA4C;QACtD,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,WAAW,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC;IACrC,CAAC;IAED;;;OAGG;IACH,YAAY,CACV,UAA6B;QAE7B,OAAO,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YACtC,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAC3C,iBAAiB,CAAC,SAAS,CAAC,CAC7B,CAAC;YAEF,IACE,UAAU,KAAK,SAAS;gBACxB,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,EACjD,CAAC;gBACD,OAAO,EAAE,CAAC;YACZ,CAAC;YAED,OAAO,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -31,6 +31,14 @@ export declare class SimSesVerifiedIdentityCheck {
|
|
|
31
31
|
* verified.
|
|
32
32
|
*/
|
|
33
33
|
check(send: SimSesCheckedSend): void;
|
|
34
|
+
/**
|
|
35
|
+
* Why SES would turn this message down, or nothing where it would take it.
|
|
36
|
+
*
|
|
37
|
+
* The reason rather than the exception, because a service sending on the
|
|
38
|
+
* account's behalf reports the refusal in its own vocabulary rather than
|
|
39
|
+
* letting an SES error cross the boundary.
|
|
40
|
+
*/
|
|
41
|
+
refusal(send: SimSesCheckedSend): string | undefined;
|
|
34
42
|
}
|
|
35
43
|
export {};
|
|
36
44
|
//# sourceMappingURL=sim-ses-verified-identities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-ses-verified-identities.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/command/send/sim-ses-verified-identities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAEpF,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;CACvD;AAED,UAAU,iBAAiB;IACzB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,2BAA2B;;IAKtC,YAAY,UAAU,EAAE,qCAAqC,EAI5D;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"sim-ses-verified-identities.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/command/send/sim-ses-verified-identities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAEpF,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;CACvD;AAED,UAAU,iBAAiB;IACzB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,2BAA2B;;IAKtC,YAAY,UAAU,EAAE,qCAAqC,EAI5D;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAMnC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAiBnD;CASF"}
|
|
@@ -27,6 +27,19 @@ export class SimSesVerifiedIdentityCheck {
|
|
|
27
27
|
* verified.
|
|
28
28
|
*/
|
|
29
29
|
check(send) {
|
|
30
|
+
const refusal = this.refusal(send);
|
|
31
|
+
if (refusal !== undefined) {
|
|
32
|
+
throw new SimSesMessageRejected(refusal);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Why SES would turn this message down, or nothing where it would take it.
|
|
37
|
+
*
|
|
38
|
+
* The reason rather than the exception, because a service sending on the
|
|
39
|
+
* account's behalf reports the refusal in its own vocabulary rather than
|
|
40
|
+
* letting an SES error cross the boundary.
|
|
41
|
+
*/
|
|
42
|
+
refusal(send) {
|
|
30
43
|
const checked = this.#account.isInSandbox
|
|
31
44
|
? [send.fromEmailAddress, ...send.recipients]
|
|
32
45
|
: [send.fromEmailAddress];
|
|
@@ -34,9 +47,9 @@ export class SimSesVerifiedIdentityCheck {
|
|
|
34
47
|
.map((address) => simSesBareAddress(address))
|
|
35
48
|
.filter((address) => !this.#identities.isAddressVerified(address));
|
|
36
49
|
if (failed.length === 0) {
|
|
37
|
-
return;
|
|
50
|
+
return undefined;
|
|
38
51
|
}
|
|
39
|
-
|
|
52
|
+
return (`Email address is not verified. The following identities failed the ` +
|
|
40
53
|
`check in region ${this.#reportedRegion}: ${[...new Set(failed)].join(", ")}`);
|
|
41
54
|
}
|
|
42
55
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-ses-verified-identities.js","sourceRoot":"","sources":["../../../../../src/service/ses/command/send/sim-ses-verified-identities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAcrE;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,2BAA2B;IAC7B,WAAW,CAAsB;IACjC,QAAQ,CAAgB;IACxB,mBAAmB,CAA2B;IAEvD,YAAY,UAAiD;QAC3D,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,mBAAmB,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAC3D,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAuB;QAC3B,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW;YACvC,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;YAC7C,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAE5B,MAAM,MAAM,GAAG,OAAO;aACnB,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;aAC5C,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;QAErE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,OAAO;
|
|
1
|
+
{"version":3,"file":"sim-ses-verified-identities.js","sourceRoot":"","sources":["../../../../../src/service/ses/command/send/sim-ses-verified-identities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAcrE;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,2BAA2B;IAC7B,WAAW,CAAsB;IACjC,QAAQ,CAAgB;IACxB,mBAAmB,CAA2B;IAEvD,YAAY,UAAiD;QAC3D,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,mBAAmB,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAC3D,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAuB;QAC3B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEnC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,MAAM,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,IAAuB;QAC7B,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW;YACvC,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;YAC7C,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAE5B,MAAM,MAAM,GAAG,OAAO;aACnB,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;aAC5C,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;QAErE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,CACL,qEAAqE;YACrE,mBAAmB,IAAI,CAAC,eAAe,KAAK,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC9E,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The sim SES v2 Command types, gathered for the service facade.
|
|
3
3
|
*/
|
|
4
|
-
export type { SimCreateEmailIdentityCommand, SimCreateEmailIdentityCommandInput, SimCreateEmailIdentityCommandOutput, SimDeleteEmailIdentityCommand, SimDeleteEmailIdentityCommandInput, SimDeleteEmailIdentityCommandOutput, SimGetEmailIdentityCommand, SimGetEmailIdentityCommandInput, SimGetEmailIdentityCommandOutput, SimListEmailIdentitiesCommand, SimListEmailIdentitiesCommandInput, SimListEmailIdentitiesCommandOutput, SimSesIdentityInfo, SimSesVerificationStatusValue, } from "./identity/identity.command.js";
|
|
4
|
+
export type { SimCreateEmailIdentityCommand, SimCreateEmailIdentityCommandInput, SimCreateEmailIdentityCommandOutput, SimDeleteEmailIdentityCommand, SimDeleteEmailIdentityCommandInput, SimDeleteEmailIdentityCommandOutput, SimGetEmailIdentityCommand, SimGetEmailIdentityCommandInput, SimGetEmailIdentityCommandOutput, SimListEmailIdentitiesCommand, SimListEmailIdentitiesCommandInput, SimListEmailIdentitiesCommandOutput, SimSesDkimAttributes, SimSesDkimSigningAttributes, SimSesDkimStatusValue, SimSesIdentityInfo, SimSesMailFromAttributes, SimSesTag, SimSesTagInput, SimSesVerificationStatusValue, } from "./identity/identity.command.js";
|
|
5
5
|
export type { SimSendEmailCommand, SimSendEmailCommandInput, SimSendEmailCommandOutput, SimSesBody, SimSesContent, SimSesDestination, SimSesEmailContent, SimSesMessage, SimSesRawMessage, SimSesTemplate, } from "./send/send.command.js";
|
|
6
|
-
export type { SimGetAccountCommand, SimGetAccountCommandOutput, SimPutAccountDetailsCommand, SimPutAccountDetailsCommandInput, SimPutAccountDetailsCommandOutput, SimSesAccountDetailsOutput, SimSesSendQuotaDetail, } from "./account/account.command.js";
|
|
6
|
+
export type { SimGetAccountCommand, SimGetAccountCommandOutput, SimPutAccountDetailsCommand, SimPutAccountDetailsCommandInput, SimPutAccountDetailsCommandOutput, SimPutAccountSuppressionAttributesCommand, SimPutAccountSuppressionAttributesCommandInput, SimPutAccountSuppressionAttributesCommandOutput, SimSesAccountDetailsOutput, SimSesSendQuotaDetail, SimSesSuppressionAttributes, } from "./account/account.command.js";
|
|
7
|
+
export type { SimDeleteSuppressedDestinationCommand, SimDeleteSuppressedDestinationCommandInput, SimDeleteSuppressedDestinationCommandOutput, SimGetSuppressedDestinationCommand, SimGetSuppressedDestinationCommandInput, SimGetSuppressedDestinationCommandOutput, SimListSuppressedDestinationsCommand, SimListSuppressedDestinationsCommandInput, SimListSuppressedDestinationsCommandOutput, SimPutSuppressedDestinationCommand, SimPutSuppressedDestinationCommandInput, SimPutSuppressedDestinationCommandOutput, SimSesSuppressedDestinationDetail, SimSesSuppressedDestinationSummary, } from "./suppression/suppression.command.js";
|
|
7
8
|
export type { SimCreateEmailTemplateCommand, SimCreateEmailTemplateCommandInput, SimCreateEmailTemplateCommandOutput, SimDeleteEmailTemplateCommand, SimDeleteEmailTemplateCommandInput, SimDeleteEmailTemplateCommandOutput, SimGetEmailTemplateCommand, SimGetEmailTemplateCommandInput, SimGetEmailTemplateCommandOutput, SimListEmailTemplatesCommand, SimListEmailTemplatesCommandInput, SimListEmailTemplatesCommandOutput, SimSesEmailTemplateContent, SimSesTemplateMetadata, SimUpdateEmailTemplateCommand, SimUpdateEmailTemplateCommandInput, SimUpdateEmailTemplateCommandOutput, } from "./template/template.command.js";
|
|
9
|
+
export type { SimCreateConfigurationSetCommand, SimCreateConfigurationSetCommandInput, SimCreateConfigurationSetCommandOutput, SimDeleteConfigurationSetCommand, SimDeleteConfigurationSetCommandInput, SimDeleteConfigurationSetCommandOutput, SimGetConfigurationSetCommand, SimGetConfigurationSetCommandInput, SimGetConfigurationSetCommandOutput, SimListConfigurationSetsCommand, SimListConfigurationSetsCommandInput, SimListConfigurationSetsCommandOutput, SimSesDeliveryOptions, SimSesReputationOptions, SimSesSendingOptions, SimSesSuppressionOptions, } from "./configuration-set/configuration-set.command.js";
|
|
8
10
|
//# sourceMappingURL=sim-ses-command.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-ses-command.types.d.ts","sourceRoot":"","sources":["../../../../src/service/ses/command/sim-ses-command.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EACV,6BAA6B,EAC7B,kCAAkC,EAClC,mCAAmC,EACnC,6BAA6B,EAC7B,kCAAkC,EAClC,mCAAmC,EACnC,0BAA0B,EAC1B,+BAA+B,EAC/B,gCAAgC,EAChC,6BAA6B,EAC7B,kCAAkC,EAClC,mCAAmC,EACnC,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACV,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,0BAA0B,EAC1B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"sim-ses-command.types.d.ts","sourceRoot":"","sources":["../../../../src/service/ses/command/sim-ses-command.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EACV,6BAA6B,EAC7B,kCAAkC,EAClC,mCAAmC,EACnC,6BAA6B,EAC7B,kCAAkC,EAClC,mCAAmC,EACnC,0BAA0B,EAC1B,+BAA+B,EAC/B,gCAAgC,EAChC,6BAA6B,EAC7B,kCAAkC,EAClC,mCAAmC,EACnC,oBAAoB,EACpB,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EAClB,wBAAwB,EACxB,SAAS,EACT,cAAc,EACd,6BAA6B,GAC9B,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACV,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,yCAAyC,EACzC,8CAA8C,EAC9C,+CAA+C,EAC/C,0BAA0B,EAC1B,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,qCAAqC,EACrC,0CAA0C,EAC1C,2CAA2C,EAC3C,kCAAkC,EAClC,uCAAuC,EACvC,wCAAwC,EACxC,oCAAoC,EACpC,yCAAyC,EACzC,0CAA0C,EAC1C,kCAAkC,EAClC,uCAAuC,EACvC,wCAAwC,EACxC,iCAAiC,EACjC,kCAAkC,GACnC,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EACV,6BAA6B,EAC7B,kCAAkC,EAClC,mCAAmC,EACnC,6BAA6B,EAC7B,kCAAkC,EAClC,mCAAmC,EACnC,0BAA0B,EAC1B,+BAA+B,EAC/B,gCAAgC,EAChC,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,0BAA0B,EAC1B,sBAAsB,EACtB,6BAA6B,EAC7B,kCAAkC,EAClC,mCAAmC,GACpC,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACV,gCAAgC,EAChC,qCAAqC,EACrC,sCAAsC,EACtC,gCAAgC,EAChC,qCAAqC,EACrC,sCAAsC,EACtC,6BAA6B,EAC7B,kCAAkC,EAClC,mCAAmC,EACnC,+BAA+B,EAC/B,oCAAoC,EACpC,qCAAqC,EACrC,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,kDAAkD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
|
+
import type { SimSesSuppressionList } from "../../suppression/sim-ses-suppression-list.js";
|
|
3
|
+
import type { SimSesAuthorizer } from "../authorize/sim-ses-authorizer.js";
|
|
4
|
+
import type { SimSesRequestOptions } from "../sim-ses-request-options.js";
|
|
5
|
+
import type { SimDeleteSuppressedDestinationCommand, SimDeleteSuppressedDestinationCommandOutput, SimGetSuppressedDestinationCommand, SimGetSuppressedDestinationCommandOutput, SimListSuppressedDestinationsCommand, SimListSuppressedDestinationsCommandOutput, SimPutSuppressedDestinationCommand, SimPutSuppressedDestinationCommandOutput } from "./suppression.command.js";
|
|
6
|
+
interface SimSesSuppressionCommandsProperties {
|
|
7
|
+
readonly suppression: SimSesSuppressionList;
|
|
8
|
+
readonly authorizer: SimSesAuthorizer;
|
|
9
|
+
readonly clock: SimClock;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The commands that manage the account-level suppression list.
|
|
13
|
+
*
|
|
14
|
+
* All four authorize against `*`. The only resource type real SES gives them
|
|
15
|
+
* is a tenant, which is not simulated, so a policy scoped to identity ARNs
|
|
16
|
+
* allows none of them.
|
|
17
|
+
*
|
|
18
|
+
* Real SES refuses `PutSuppressedDestination` until an account leaves the
|
|
19
|
+
* sandbox. Nothing here does. The sandbox is kept so that a send to an
|
|
20
|
+
* unverified recipient fails the way it would in an account, and making every
|
|
21
|
+
* test that seeds this list leave the sandbox first buys nothing.
|
|
22
|
+
*/
|
|
23
|
+
export declare class SimSesSuppressionCommands {
|
|
24
|
+
#private;
|
|
25
|
+
constructor(properties: SimSesSuppressionCommandsProperties);
|
|
26
|
+
/**
|
|
27
|
+
* Put an address on the list, replacing the reason of one already there.
|
|
28
|
+
*/
|
|
29
|
+
putSuppressedDestination(command: SimPutSuppressedDestinationCommand, options?: SimSesRequestOptions): SimPutSuppressedDestinationCommandOutput;
|
|
30
|
+
/**
|
|
31
|
+
* Read one address off the list, refusing one that is not on it.
|
|
32
|
+
*/
|
|
33
|
+
getSuppressedDestination(command: SimGetSuppressedDestinationCommand, options?: SimSesRequestOptions): SimGetSuppressedDestinationCommandOutput;
|
|
34
|
+
/**
|
|
35
|
+
* List the addresses on the account's suppression list.
|
|
36
|
+
*/
|
|
37
|
+
listSuppressedDestinations(command: SimListSuppressedDestinationsCommand, options?: SimSesRequestOptions): SimListSuppressedDestinationsCommandOutput;
|
|
38
|
+
/**
|
|
39
|
+
* Take an address off the list.
|
|
40
|
+
*/
|
|
41
|
+
deleteSuppressedDestination(command: SimDeleteSuppressedDestinationCommand, options?: SimSesRequestOptions): SimDeleteSuppressedDestinationCommandOutput;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=sim-ses-suppression-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-suppression-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/command/suppression/sim-ses-suppression-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAGpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAM1E,OAAO,KAAK,EACV,qCAAqC,EACrC,2CAA2C,EAC3C,kCAAkC,EAClC,wCAAwC,EACxC,oCAAoC,EACpC,0CAA0C,EAC1C,kCAAkC,EAClC,wCAAwC,EACzC,MAAM,0BAA0B,CAAC;AAElC,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAC5C,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,yBAAyB;;IAKpC,YAAY,UAAU,EAAE,mCAAmC,EAI1D;IAED;;OAEG;IACH,wBAAwB,CACtB,OAAO,EAAE,kCAAkC,EAC3C,OAAO,CAAC,EAAE,oBAAoB,GAC7B,wCAAwC,CAe1C;IAED;;OAEG;IACH,wBAAwB,CACtB,OAAO,EAAE,kCAAkC,EAC3C,OAAO,CAAC,EAAE,oBAAoB,GAC7B,wCAAwC,CAiB1C;IAED;;OAEG;IACH,0BAA0B,CACxB,OAAO,EAAE,oCAAoC,EAC7C,OAAO,CAAC,EAAE,oBAAoB,GAC7B,0CAA0C,CAsB5C;IAED;;OAEG;IACH,2BAA2B,CACzB,OAAO,EAAE,qCAAqC,EAC9C,OAAO,CAAC,EAAE,oBAAoB,GAC7B,2CAA2C,CAc7C;CACF"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { requiredSimSesSuppressionAddress } from "../../suppression/sim-ses-suppression-address.js";
|
|
2
|
+
import { requiredSimSesSuppressionReason } from "../../suppression/sim-ses-suppression-reason.js";
|
|
3
|
+
import { SimSesPage } from "../sim-ses-page.js";
|
|
4
|
+
import { selectedSimSesSuppressed, simSesSuppressedDetail, } from "./sim-ses-suppression-listing.js";
|
|
5
|
+
import { refuseSimSesTenantName } from "./sim-ses-unsimulated-suppression-input.js";
|
|
6
|
+
/**
|
|
7
|
+
* The commands that manage the account-level suppression list.
|
|
8
|
+
*
|
|
9
|
+
* All four authorize against `*`. The only resource type real SES gives them
|
|
10
|
+
* is a tenant, which is not simulated, so a policy scoped to identity ARNs
|
|
11
|
+
* allows none of them.
|
|
12
|
+
*
|
|
13
|
+
* Real SES refuses `PutSuppressedDestination` until an account leaves the
|
|
14
|
+
* sandbox. Nothing here does. The sandbox is kept so that a send to an
|
|
15
|
+
* unverified recipient fails the way it would in an account, and making every
|
|
16
|
+
* test that seeds this list leave the sandbox first buys nothing.
|
|
17
|
+
*/
|
|
18
|
+
export class SimSesSuppressionCommands {
|
|
19
|
+
#suppression;
|
|
20
|
+
#authorizer;
|
|
21
|
+
#clock;
|
|
22
|
+
constructor(properties) {
|
|
23
|
+
this.#suppression = properties.suppression;
|
|
24
|
+
this.#authorizer = properties.authorizer;
|
|
25
|
+
this.#clock = properties.clock;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Put an address on the list, replacing the reason of one already there.
|
|
29
|
+
*/
|
|
30
|
+
putSuppressedDestination(command, options) {
|
|
31
|
+
const emailAddress = requiredSimSesSuppressionAddress(command.input.EmailAddress);
|
|
32
|
+
const reason = requiredSimSesSuppressionReason(command.input.Reason);
|
|
33
|
+
refuseSimSesTenantName(command.input.TenantName);
|
|
34
|
+
this.#authorizer.authorizeNoResource("ses:PutSuppressedDestination", options?.caller);
|
|
35
|
+
this.#suppression.put(emailAddress, reason, this.#clock.now());
|
|
36
|
+
return { $metadata: {} };
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Read one address off the list, refusing one that is not on it.
|
|
40
|
+
*/
|
|
41
|
+
getSuppressedDestination(command, options) {
|
|
42
|
+
const emailAddress = requiredSimSesSuppressionAddress(command.input.EmailAddress);
|
|
43
|
+
refuseSimSesTenantName(command.input.TenantName);
|
|
44
|
+
this.#authorizer.authorizeNoResource("ses:GetSuppressedDestination", options?.caller);
|
|
45
|
+
return {
|
|
46
|
+
$metadata: {},
|
|
47
|
+
SuppressedDestination: simSesSuppressedDetail(this.#suppression.require(emailAddress)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* List the addresses on the account's suppression list.
|
|
52
|
+
*/
|
|
53
|
+
listSuppressedDestinations(command, options) {
|
|
54
|
+
const input = command.input ?? {};
|
|
55
|
+
refuseSimSesTenantName(input.TenantName);
|
|
56
|
+
this.#authorizer.authorizeNoResource("ses:ListSuppressedDestinations", options?.caller);
|
|
57
|
+
const page = new SimSesPage({
|
|
58
|
+
listed: selectedSimSesSuppressed(this.#suppression.all, input),
|
|
59
|
+
pageSize: input.PageSize,
|
|
60
|
+
nextToken: input.NextToken,
|
|
61
|
+
});
|
|
62
|
+
return {
|
|
63
|
+
$metadata: {},
|
|
64
|
+
SuppressedDestinationSummaries: page.items.map((suppressed) => simSesSuppressedDetail(suppressed)),
|
|
65
|
+
NextToken: page.nextToken,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Take an address off the list.
|
|
70
|
+
*/
|
|
71
|
+
deleteSuppressedDestination(command, options) {
|
|
72
|
+
const emailAddress = requiredSimSesSuppressionAddress(command.input.EmailAddress);
|
|
73
|
+
refuseSimSesTenantName(command.input.TenantName);
|
|
74
|
+
this.#authorizer.authorizeNoResource("ses:DeleteSuppressedDestination", options?.caller);
|
|
75
|
+
this.#suppression.delete(emailAddress);
|
|
76
|
+
return { $metadata: {} };
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=sim-ses-suppression-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-suppression-commands.js","sourceRoot":"","sources":["../../../../../src/service/ses/command/suppression/sim-ses-suppression-commands.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SimSesSuppressedDestination } from "../../suppression/sim-ses-suppressed-destination.js";
|
|
2
|
+
import type { SimListSuppressedDestinationsCommandInput, SimSesSuppressedDestinationDetail } from "./suppression.command.js";
|
|
3
|
+
/**
|
|
4
|
+
* The addresses a listing request asked for, before paging.
|
|
5
|
+
*
|
|
6
|
+
* `StartDate` and `EndDate` are read as the API describes them, after and
|
|
7
|
+
* before the time an address was last put on the list. Both are inclusive,
|
|
8
|
+
* which matters to a caller reading a day at a time.
|
|
9
|
+
*/
|
|
10
|
+
export declare function selectedSimSesSuppressed(suppressed: readonly SimSesSuppressedDestination[], input: SimListSuppressedDestinationsCommandInput): readonly SimSesSuppressedDestination[];
|
|
11
|
+
/**
|
|
12
|
+
* What the suppression commands report about one address.
|
|
13
|
+
*/
|
|
14
|
+
export declare function simSesSuppressedDetail(suppressed: SimSesSuppressedDestination): SimSesSuppressedDestinationDetail;
|
|
15
|
+
//# sourceMappingURL=sim-ses-suppression-listing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-ses-suppression-listing.d.ts","sourceRoot":"","sources":["../../../../../src/service/ses/command/suppression/sim-ses-suppression-listing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAC;AAEvG,OAAO,KAAK,EACV,yCAAyC,EACzC,iCAAiC,EAClC,MAAM,0BAA0B,CAAC;AAElC;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,SAAS,2BAA2B,EAAE,EAClD,KAAK,EAAE,yCAAyC,GAC/C,SAAS,2BAA2B,EAAE,CAUxC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,2BAA2B,GACtC,iCAAiC,CAMnC"}
|