@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,72 @@
|
|
|
1
|
+
import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
|
|
2
|
+
import { simCognitoEmailSourceIdentity, } from "./sim-cognito-email-source-arn.js";
|
|
3
|
+
import { simCognitoEmailSendingAccounts, } from "./sim-cognito-email-configuration.js";
|
|
4
|
+
/**
|
|
5
|
+
* Reads the keys of one `EmailConfiguration`, refusing a value Cognito would
|
|
6
|
+
* refuse.
|
|
7
|
+
*
|
|
8
|
+
* The configuration arrives as a bare object because CloudFormation hands one
|
|
9
|
+
* over with whatever a template wrote in it, so every key is checked here
|
|
10
|
+
* rather than trusted from the type.
|
|
11
|
+
*/
|
|
12
|
+
export class SimCognitoEmailConfigurationReader {
|
|
13
|
+
/** The configuration as given, which is also what a describe reports. */
|
|
14
|
+
declared;
|
|
15
|
+
#operation;
|
|
16
|
+
/**
|
|
17
|
+
* The keys as given, held in a Map rather than read off the object. What
|
|
18
|
+
* arrives is whatever a template wrote, so a key such as `__proto__` reaches
|
|
19
|
+
* here and a Map is where it means nothing.
|
|
20
|
+
*/
|
|
21
|
+
#values;
|
|
22
|
+
constructor(declared, operation) {
|
|
23
|
+
this.declared = declared;
|
|
24
|
+
this.#operation = operation;
|
|
25
|
+
this.#values = new Map(Object.entries(declared ?? {}));
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* One key that has to be a string where it is there at all.
|
|
29
|
+
*/
|
|
30
|
+
string(key) {
|
|
31
|
+
const value = this.#values.get(key);
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (typeof value !== "string") {
|
|
36
|
+
throw new SimCognitoInvalidParameterException(`${this.#operation} EmailConfiguration ${key} must be a string`);
|
|
37
|
+
}
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Which service the configuration asked to send through, refusing a value
|
|
42
|
+
* Cognito has no meaning for.
|
|
43
|
+
*/
|
|
44
|
+
sendingAccount() {
|
|
45
|
+
const declared = this.string("EmailSendingAccount");
|
|
46
|
+
if (declared === undefined) {
|
|
47
|
+
return "COGNITO_DEFAULT";
|
|
48
|
+
}
|
|
49
|
+
if (!simCognitoEmailSendingAccounts.includes(declared)) {
|
|
50
|
+
throw new SimCognitoInvalidParameterException(`${this.#operation} EmailConfiguration EmailSendingAccount ` +
|
|
51
|
+
`'${declared}' is not one of ${simCognitoEmailSendingAccounts.join(", ")}`);
|
|
52
|
+
}
|
|
53
|
+
return declared;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The identity a `SourceArn` names, refusing a value that names something
|
|
57
|
+
* other than an SES email identity.
|
|
58
|
+
*/
|
|
59
|
+
sourceIdentity() {
|
|
60
|
+
const sourceArn = this.string("SourceArn");
|
|
61
|
+
if (sourceArn === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
const identity = simCognitoEmailSourceIdentity(sourceArn);
|
|
65
|
+
if (identity === undefined) {
|
|
66
|
+
throw new SimCognitoInvalidParameterException(`${this.#operation} EmailConfiguration SourceArn '${sourceArn}' is ` +
|
|
67
|
+
`not the ARN of an SES email identity`);
|
|
68
|
+
}
|
|
69
|
+
return identity;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=sim-cognito-email-configuration-reader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-email-configuration-reader.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-email-configuration-reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,6BAA6B,GAE9B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,8BAA8B,GAG/B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,OAAO,kCAAkC;IAC7C,yEAAyE;IACzD,QAAQ,CAA+C;IAE9D,UAAU,CAAS;IAE5B;;;;OAIG;IACM,OAAO,CAA+B;IAE/C,YAAY,QAA4B,EAAE,SAAiB;QACzD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,GAAW;QAChB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAEpC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,MAAM,IAAI,mCAAmC,CAC3C,GAAG,IAAI,CAAC,UAAU,uBAAuB,GAAG,mBAAmB,CAChE,CAAC;QACJ,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;OAGG;IACH,cAAc;QACZ,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QAEpD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,OAAO,iBAAiB,CAAC;QAC3B,CAAC;QAED,IAAI,CAAC,8BAA8B,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YACvD,MAAM,IAAI,mCAAmC,CAC3C,GAAG,IAAI,CAAC,UAAU,0CAA0C;gBAC1D,IAAI,QAAQ,mBAAmB,8BAA8B,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC7E,CAAC;QACJ,CAAC;QAED,OAAO,QAAyC,CAAC;IACnD,CAAC;IAED;;;OAGG;IACH,cAAc;QACZ,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAE3C,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,QAAQ,GAAG,6BAA6B,CAAC,SAAS,CAAC,CAAC;QAE1D,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,mCAAmC,CAC3C,GAAG,IAAI,CAAC,UAAU,kCAAkC,SAAS,OAAO;gBAClE,sCAAsC,CACzC,CAAC;QACJ,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { SimCognitoEmailSourceIdentity } from "./sim-cognito-email-source-arn.js";
|
|
2
|
+
/**
|
|
3
|
+
* Which service delivers a pool's email.
|
|
4
|
+
*
|
|
5
|
+
* `COGNITO_DEFAULT` is Cognito's own sending, capped at a low daily limit on
|
|
6
|
+
* real AWS. `DEVELOPER` is the account's own SES.
|
|
7
|
+
*/
|
|
8
|
+
export type SimCognitoEmailSendingAccount = "COGNITO_DEFAULT" | "DEVELOPER";
|
|
9
|
+
/**
|
|
10
|
+
* The two values `EmailSendingAccount` has, which is also what a refusal of a
|
|
11
|
+
* third names.
|
|
12
|
+
*/
|
|
13
|
+
export declare const simCognitoEmailSendingAccounts: readonly string[];
|
|
14
|
+
/**
|
|
15
|
+
* The address real Cognito sends from when it is sending the email itself and
|
|
16
|
+
* was given no other one.
|
|
17
|
+
*/
|
|
18
|
+
export declare const simCognitoDefaultFromAddress = "no-reply@verificationemail.com";
|
|
19
|
+
/**
|
|
20
|
+
* A pool's `EmailConfiguration`, as a described pool reports it.
|
|
21
|
+
*
|
|
22
|
+
* https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html
|
|
23
|
+
*/
|
|
24
|
+
export interface SimCognitoEmailConfigurationType {
|
|
25
|
+
readonly ConfigurationSet?: string | undefined;
|
|
26
|
+
readonly EmailSendingAccount?: string | undefined;
|
|
27
|
+
readonly From?: string | undefined;
|
|
28
|
+
readonly ReplyToEmailAddress?: string | undefined;
|
|
29
|
+
readonly SourceArn?: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* How a simulated user pool sends the messages it writes.
|
|
33
|
+
*
|
|
34
|
+
* A pool with no `EmailConfiguration`, and one that named `COGNITO_DEFAULT`,
|
|
35
|
+
* send through Cognito itself. The pool records what it would have sent and
|
|
36
|
+
* nothing else observes it, because on real AWS nothing else does either:
|
|
37
|
+
* Cognito's built-in sending goes through no other service, so there is no
|
|
38
|
+
* second place a test could read it from.
|
|
39
|
+
*
|
|
40
|
+
* A pool that named `DEVELOPER` sends through the account's SES in the region
|
|
41
|
+
* its `SourceArn` names, and the message is recorded there as well as on the
|
|
42
|
+
* pool. That is the difference the whole setting exists for, and the reason it
|
|
43
|
+
* is simulated rather than refused: an account configured for SES and still in
|
|
44
|
+
* the SES sandbox delivers nothing, and a pool recording only its own messages
|
|
45
|
+
* would report that as a working sign-up.
|
|
46
|
+
*
|
|
47
|
+
* `SourceArn` is read for its region and identity name only. See
|
|
48
|
+
* `SimCognitoEmailSourceIdentity` for why the account id in it is read past.
|
|
49
|
+
*/
|
|
50
|
+
export declare class SimCognitoEmailConfiguration {
|
|
51
|
+
#private;
|
|
52
|
+
readonly sendingAccount: SimCognitoEmailSendingAccount;
|
|
53
|
+
/**
|
|
54
|
+
* The address the messages come from, with the display name where the
|
|
55
|
+
* configuration gave one.
|
|
56
|
+
*
|
|
57
|
+
* A pool that named no `From` sends from the address its `SourceArn` names,
|
|
58
|
+
* as real Cognito does, and one with neither sends from Cognito's own
|
|
59
|
+
* address. A `SourceArn` naming a domain has no address to fall back on, so
|
|
60
|
+
* such a pool has to say what its `From` is.
|
|
61
|
+
*/
|
|
62
|
+
readonly from: string;
|
|
63
|
+
readonly replyToEmailAddress: string | undefined;
|
|
64
|
+
readonly configurationSet: string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The SES identity the pool sends through, and nothing where the pool sends
|
|
67
|
+
* through Cognito itself.
|
|
68
|
+
*
|
|
69
|
+
* A `COGNITO_DEFAULT` pool with a `SourceArn` has one on real AWS too, and
|
|
70
|
+
* uses it only as the address the built-in sending writes as. It is left out
|
|
71
|
+
* here because nothing reads it: the `From` above already carries it.
|
|
72
|
+
*/
|
|
73
|
+
readonly sourceIdentity: SimCognitoEmailSourceIdentity | undefined;
|
|
74
|
+
constructor(declared: object | undefined, operation: string);
|
|
75
|
+
/**
|
|
76
|
+
* The configuration as `DescribeUserPool` reports it, and nothing for a pool
|
|
77
|
+
* that declared none.
|
|
78
|
+
*
|
|
79
|
+
* Real Cognito reports back what the request set rather than the defaults
|
|
80
|
+
* behind it, so a pool created without an `EmailConfiguration` describes
|
|
81
|
+
* itself without one even though it sends from Cognito's own address.
|
|
82
|
+
*/
|
|
83
|
+
toOutput(): SimCognitoEmailConfigurationType | undefined;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=sim-cognito-email-configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-email-configuration.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-email-configuration.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAEvF;;;;;GAKG;AACH,MAAM,MAAM,6BAA6B,GAAG,iBAAiB,GAAG,WAAW,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,SAAS,MAAM,EAG3D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,mCAAmC,CAAC;AAE7E;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,4BAA4B;;IACvC,SAAgB,cAAc,EAAE,6BAA6B,CAAC;IAE9D;;;;;;;;OAQG;IACH,SAAgB,IAAI,EAAE,MAAM,CAAC;IAE7B,SAAgB,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IAExD,SAAgB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IAErD;;;;;;;OAOG;IACH,SAAgB,cAAc,EAAE,6BAA6B,GAAG,SAAS,CAAC;IAI1E,YAAY,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,EAiB1D;IAED;;;;;;;OAOG;IACH,QAAQ,IAAI,gCAAgC,GAAG,SAAS,CAEvD;CACF"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
|
|
2
|
+
import { SimCognitoEmailConfigurationReader } from "./sim-cognito-email-configuration-reader.js";
|
|
3
|
+
/**
|
|
4
|
+
* The two values `EmailSendingAccount` has, which is also what a refusal of a
|
|
5
|
+
* third names.
|
|
6
|
+
*/
|
|
7
|
+
export const simCognitoEmailSendingAccounts = [
|
|
8
|
+
"COGNITO_DEFAULT",
|
|
9
|
+
"DEVELOPER",
|
|
10
|
+
];
|
|
11
|
+
/**
|
|
12
|
+
* The address real Cognito sends from when it is sending the email itself and
|
|
13
|
+
* was given no other one.
|
|
14
|
+
*/
|
|
15
|
+
export const simCognitoDefaultFromAddress = "no-reply@verificationemail.com";
|
|
16
|
+
/**
|
|
17
|
+
* How a simulated user pool sends the messages it writes.
|
|
18
|
+
*
|
|
19
|
+
* A pool with no `EmailConfiguration`, and one that named `COGNITO_DEFAULT`,
|
|
20
|
+
* send through Cognito itself. The pool records what it would have sent and
|
|
21
|
+
* nothing else observes it, because on real AWS nothing else does either:
|
|
22
|
+
* Cognito's built-in sending goes through no other service, so there is no
|
|
23
|
+
* second place a test could read it from.
|
|
24
|
+
*
|
|
25
|
+
* A pool that named `DEVELOPER` sends through the account's SES in the region
|
|
26
|
+
* its `SourceArn` names, and the message is recorded there as well as on the
|
|
27
|
+
* pool. That is the difference the whole setting exists for, and the reason it
|
|
28
|
+
* is simulated rather than refused: an account configured for SES and still in
|
|
29
|
+
* the SES sandbox delivers nothing, and a pool recording only its own messages
|
|
30
|
+
* would report that as a working sign-up.
|
|
31
|
+
*
|
|
32
|
+
* `SourceArn` is read for its region and identity name only. See
|
|
33
|
+
* `SimCognitoEmailSourceIdentity` for why the account id in it is read past.
|
|
34
|
+
*/
|
|
35
|
+
export class SimCognitoEmailConfiguration {
|
|
36
|
+
sendingAccount;
|
|
37
|
+
/**
|
|
38
|
+
* The address the messages come from, with the display name where the
|
|
39
|
+
* configuration gave one.
|
|
40
|
+
*
|
|
41
|
+
* A pool that named no `From` sends from the address its `SourceArn` names,
|
|
42
|
+
* as real Cognito does, and one with neither sends from Cognito's own
|
|
43
|
+
* address. A `SourceArn` naming a domain has no address to fall back on, so
|
|
44
|
+
* such a pool has to say what its `From` is.
|
|
45
|
+
*/
|
|
46
|
+
from;
|
|
47
|
+
replyToEmailAddress;
|
|
48
|
+
configurationSet;
|
|
49
|
+
/**
|
|
50
|
+
* The SES identity the pool sends through, and nothing where the pool sends
|
|
51
|
+
* through Cognito itself.
|
|
52
|
+
*
|
|
53
|
+
* A `COGNITO_DEFAULT` pool with a `SourceArn` has one on real AWS too, and
|
|
54
|
+
* uses it only as the address the built-in sending writes as. It is left out
|
|
55
|
+
* here because nothing reads it: the `From` above already carries it.
|
|
56
|
+
*/
|
|
57
|
+
sourceIdentity;
|
|
58
|
+
#declared;
|
|
59
|
+
constructor(declared, operation) {
|
|
60
|
+
const read = new SimCognitoEmailConfigurationReader(declared, operation);
|
|
61
|
+
const sourceIdentity = read.sourceIdentity();
|
|
62
|
+
const declaredFrom = read.string("From");
|
|
63
|
+
this.#declared = read.declared;
|
|
64
|
+
this.sendingAccount = read.sendingAccount();
|
|
65
|
+
this.configurationSet = read.string("ConfigurationSet");
|
|
66
|
+
this.replyToEmailAddress = read.string("ReplyToEmailAddress");
|
|
67
|
+
this.from =
|
|
68
|
+
declaredFrom ?? addressOf(sourceIdentity) ?? simCognitoDefaultFromAddress;
|
|
69
|
+
this.sourceIdentity =
|
|
70
|
+
this.sendingAccount === "DEVELOPER" ? sourceIdentity : undefined;
|
|
71
|
+
if (this.sendingAccount === "DEVELOPER") {
|
|
72
|
+
refuseWithoutSender(operation, sourceIdentity, declaredFrom);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The configuration as `DescribeUserPool` reports it, and nothing for a pool
|
|
77
|
+
* that declared none.
|
|
78
|
+
*
|
|
79
|
+
* Real Cognito reports back what the request set rather than the defaults
|
|
80
|
+
* behind it, so a pool created without an `EmailConfiguration` describes
|
|
81
|
+
* itself without one even though it sends from Cognito's own address.
|
|
82
|
+
*/
|
|
83
|
+
toOutput() {
|
|
84
|
+
return this.#declared;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The address an identity gives a pool to send as, and nothing for a domain.
|
|
89
|
+
*
|
|
90
|
+
* A domain identity covers every address at it and names none of them, so
|
|
91
|
+
* there is nothing here for a `From` to default to.
|
|
92
|
+
*/
|
|
93
|
+
function addressOf(identity) {
|
|
94
|
+
return identity === undefined || identity.isDomain
|
|
95
|
+
? undefined
|
|
96
|
+
: identity.identityName;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Refuse a pool that sends through SES without saying what it sends as.
|
|
100
|
+
*
|
|
101
|
+
* Real Cognito needs the `SourceArn`, because the identity is what the account
|
|
102
|
+
* has proved it owns. It needs the `From` as well where that identity is a
|
|
103
|
+
* domain, since a domain gives it no one address to write as.
|
|
104
|
+
*/
|
|
105
|
+
function refuseWithoutSender(operation, sourceIdentity, declaredFrom) {
|
|
106
|
+
if (sourceIdentity === undefined) {
|
|
107
|
+
throw new SimCognitoInvalidParameterException(`${operation} EmailConfiguration with EmailSendingAccount 'DEVELOPER' ` +
|
|
108
|
+
`needs a SourceArn naming the SES email identity the pool sends ` +
|
|
109
|
+
`through`);
|
|
110
|
+
}
|
|
111
|
+
if (declaredFrom === undefined && sourceIdentity.isDomain) {
|
|
112
|
+
throw new SimCognitoInvalidParameterException(`${operation} EmailConfiguration with a SourceArn naming the domain ` +
|
|
113
|
+
`'${sourceIdentity.identityName}' needs a From address, because a ` +
|
|
114
|
+
`domain identity gives Cognito no one address to send as`);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=sim-cognito-email-configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-email-configuration.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-email-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,kCAAkC,EAAE,MAAM,6CAA6C,CAAC;AAWjG;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAsB;IAC/D,iBAAiB;IACjB,WAAW;CACZ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,gCAAgC,CAAC;AAe7E;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,OAAO,4BAA4B;IACvB,cAAc,CAAgC;IAE9D;;;;;;;;OAQG;IACa,IAAI,CAAS;IAEb,mBAAmB,CAAqB;IAExC,gBAAgB,CAAqB;IAErD;;;;;;;OAOG;IACa,cAAc,CAA4C;IAEjE,SAAS,CAA+C;IAEjE,YAAY,QAA4B,EAAE,SAAiB;QACzD,MAAM,IAAI,GAAG,IAAI,kCAAkC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QACzE,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAC7C,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAEzC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5C,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;QACxD,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QAC9D,IAAI,CAAC,IAAI;YACP,YAAY,IAAI,SAAS,CAAC,cAAc,CAAC,IAAI,4BAA4B,CAAC;QAC5E,IAAI,CAAC,cAAc;YACjB,IAAI,CAAC,cAAc,KAAK,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;QAEnE,IAAI,IAAI,CAAC,cAAc,KAAK,WAAW,EAAE,CAAC;YACxC,mBAAmB,CAAC,SAAS,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF;AAED;;;;;GAKG;AACH,SAAS,SAAS,CAChB,QAAmD;IAEnD,OAAO,QAAQ,KAAK,SAAS,IAAI,QAAQ,CAAC,QAAQ;QAChD,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC;AAC5B,CAAC;AAED;;;;;;GAMG;AACH,SAAS,mBAAmB,CAC1B,SAAiB,EACjB,cAAyD,EACzD,YAAgC;IAEhC,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;QACjC,MAAM,IAAI,mCAAmC,CAC3C,GAAG,SAAS,2DAA2D;YACrE,iEAAiE;YACjE,SAAS,CACZ,CAAC;IACJ,CAAC;IAED,IAAI,YAAY,KAAK,SAAS,IAAI,cAAc,CAAC,QAAQ,EAAE,CAAC;QAC1D,MAAM,IAAI,mCAAmC,CAC3C,GAAG,SAAS,yDAAyD;YACnE,IAAI,cAAc,CAAC,YAAY,oCAAoC;YACnE,yDAAyD,CAC5D,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { SimAwsAccountId } from "../../../aws/sim-aws-account-id.js";
|
|
2
|
+
import type { SimCognitoEmailSourceIdentity } from "./sim-cognito-email-source-arn.js";
|
|
3
|
+
/**
|
|
4
|
+
* A pool asking to send one message through the account's SES.
|
|
5
|
+
*
|
|
6
|
+
* The account travels with the request because a pool resolves its identity in
|
|
7
|
+
* its own account: the `SourceArn` says which region and which identity, and
|
|
8
|
+
* the pool says which account. See `SimCognitoEmailSourceIdentity` for why the
|
|
9
|
+
* account in the ARN is read past.
|
|
10
|
+
*/
|
|
11
|
+
export interface SimCognitoEmailSendRequest {
|
|
12
|
+
readonly identity: SimCognitoEmailSourceIdentity;
|
|
13
|
+
readonly accountId: SimAwsAccountId;
|
|
14
|
+
readonly from: string;
|
|
15
|
+
readonly replyToAddresses: readonly string[];
|
|
16
|
+
readonly configurationSet: string | undefined;
|
|
17
|
+
readonly recipient: string;
|
|
18
|
+
readonly subject: string;
|
|
19
|
+
readonly body: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Which of a pool's two email failures happened.
|
|
23
|
+
*
|
|
24
|
+
* Real Cognito reports them as two different exceptions, and they mean
|
|
25
|
+
* different things to whoever has to fix the deployment. `identity` is the
|
|
26
|
+
* pool being unable to use the SES identity at all. `delivery` is SES
|
|
27
|
+
* refusing the message, which in a simulation means the sandbox.
|
|
28
|
+
*/
|
|
29
|
+
export type SimCognitoEmailSendFailureKind = "identity" | "delivery";
|
|
30
|
+
/**
|
|
31
|
+
* Why a pool's message never reached SES.
|
|
32
|
+
*/
|
|
33
|
+
export interface SimCognitoEmailSendFailure {
|
|
34
|
+
readonly kind: SimCognitoEmailSendFailureKind;
|
|
35
|
+
/**
|
|
36
|
+
* What went wrong, repeated back in the exception whoever has to fix the
|
|
37
|
+
* configuration reads.
|
|
38
|
+
*/
|
|
39
|
+
readonly reason: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The narrow slice of simulated SES a user pool with `EmailSendingAccount:
|
|
43
|
+
* DEVELOPER` needs.
|
|
44
|
+
*
|
|
45
|
+
* A pool asks one thing: send this message, and say why if it could not. The
|
|
46
|
+
* SES it asks is the one in the region its `SourceArn` names, which need not
|
|
47
|
+
* be the pool's own region, so the senders come from the whole simulation
|
|
48
|
+
* rather than from the scope the pool belongs to. Pool triggers reach Lambda
|
|
49
|
+
* the same way and for the same reason.
|
|
50
|
+
*
|
|
51
|
+
* A failure comes back rather than being thrown, because SES's vocabulary for
|
|
52
|
+
* a refused send is not the pool's: the pool reports it as the Cognito
|
|
53
|
+
* exception a sign-up would see on real AWS.
|
|
54
|
+
*/
|
|
55
|
+
export interface SimCognitoEmailSenders {
|
|
56
|
+
send(request: SimCognitoEmailSendRequest): SimCognitoEmailSendFailure | undefined;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The email senders of a simulated Cognito built without simulated SES, such
|
|
60
|
+
* as a standalone `SimCognitoIdentityProvider` constructed outside `SimAws`.
|
|
61
|
+
*
|
|
62
|
+
* A pool can still be created with an `EmailConfiguration`, because the
|
|
63
|
+
* identity is only resolved when a message is sent. It is the sign-up that
|
|
64
|
+
* says there is no SES to reach, rather than the pool creation that would have
|
|
65
|
+
* to guess.
|
|
66
|
+
*/
|
|
67
|
+
export declare class SimCognitoNoEmailSenders implements SimCognitoEmailSenders {
|
|
68
|
+
/**
|
|
69
|
+
* Refuse the send, explaining how to reach an SES.
|
|
70
|
+
*/
|
|
71
|
+
send(request: SimCognitoEmailSendRequest): SimCognitoEmailSendFailure;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=sim-cognito-email-senders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-email-senders.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-email-senders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAEvF;;;;;;;GAOG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,QAAQ,EAAE,6BAA6B,CAAC;IACjD,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,8BAA8B,GAAG,UAAU,GAAG,UAAU,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,IAAI,EAAE,8BAA8B,CAAC;IAE9C;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,CACF,OAAO,EAAE,0BAA0B,GAClC,0BAA0B,GAAG,SAAS,CAAC;CAC3C;AAED;;;;;;;;GAQG;AACH,qBAAa,wBAAyB,YAAW,sBAAsB;IACrE;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,0BAA0B,GAAG,0BAA0B,CAQpE;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The email senders of a simulated Cognito built without simulated SES, such
|
|
3
|
+
* as a standalone `SimCognitoIdentityProvider` constructed outside `SimAws`.
|
|
4
|
+
*
|
|
5
|
+
* A pool can still be created with an `EmailConfiguration`, because the
|
|
6
|
+
* identity is only resolved when a message is sent. It is the sign-up that
|
|
7
|
+
* says there is no SES to reach, rather than the pool creation that would have
|
|
8
|
+
* to guess.
|
|
9
|
+
*/
|
|
10
|
+
export class SimCognitoNoEmailSenders {
|
|
11
|
+
/**
|
|
12
|
+
* Refuse the send, explaining how to reach an SES.
|
|
13
|
+
*/
|
|
14
|
+
send(request) {
|
|
15
|
+
return {
|
|
16
|
+
kind: "identity",
|
|
17
|
+
reason: `${request.identity.identityName} cannot be reached: this ` +
|
|
18
|
+
`SimCognitoIdentityProvider was built without simulated SES. Reach ` +
|
|
19
|
+
`Cognito through SimAws to send a user pool's email through SES.`,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=sim-cognito-email-senders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-email-senders.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-email-senders.ts"],"names":[],"mappings":"AAiEA;;;;;;;;GAQG;AACH,MAAM,OAAO,wBAAwB;IACnC;;OAEG;IACH,IAAI,CAAC,OAAmC;QACtC,OAAO;YACL,IAAI,EAAE,UAAU;YAChB,MAAM,EACJ,GAAG,OAAO,CAAC,QAAQ,CAAC,YAAY,2BAA2B;gBAC3D,oEAAoE;gBACpE,iEAAiE;SACpE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { AwsRegionName } from "../../../aws/sim-aws-region.js";
|
|
2
|
+
/**
|
|
3
|
+
* The SES identity a pool's `SourceArn` names.
|
|
4
|
+
*
|
|
5
|
+
* The account the ARN was written with is deliberately absent. A `SourceArn`
|
|
6
|
+
* synthesized by CDK carries the account the stack deploys to, which is a real
|
|
7
|
+
* one, while a simulation usually runs under the default simulated account. A
|
|
8
|
+
* pool resolves its identity in its own account, so the region and the
|
|
9
|
+
* identity name are what have to meet and the account id in the ARN is read
|
|
10
|
+
* past. Keying on the whole ARN instead would leave every project rewriting
|
|
11
|
+
* the account id in its template before a sign-up could send.
|
|
12
|
+
*/
|
|
13
|
+
export interface SimCognitoEmailSourceIdentity {
|
|
14
|
+
/**
|
|
15
|
+
* The region the identity is verified in, which is the region of the SES
|
|
16
|
+
* the pool sends through. Real Cognito restricts which regions a pool may
|
|
17
|
+
* pair with; nothing here does, so a pool reaches any region's SES.
|
|
18
|
+
*/
|
|
19
|
+
readonly regionName: AwsRegionName;
|
|
20
|
+
/** The address or domain, as the ARN spelled it. */
|
|
21
|
+
readonly identityName: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the identity is a domain rather than one address.
|
|
24
|
+
*
|
|
25
|
+
* SES decides this by whether the name has an `@` in it, and so does this.
|
|
26
|
+
* A domain has no address for Cognito to send as, which is why a pool
|
|
27
|
+
* naming one has to say what its `From` is.
|
|
28
|
+
*/
|
|
29
|
+
readonly isDomain: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Read the SES identity out of a pool's `SourceArn`, or nothing where the
|
|
33
|
+
* value names something else.
|
|
34
|
+
*
|
|
35
|
+
* A caller refusing the value is what turns `undefined` into an error, because
|
|
36
|
+
* the two commands that carry a `SourceArn` word their refusals differently.
|
|
37
|
+
*/
|
|
38
|
+
export declare function simCognitoEmailSourceIdentity(sourceArn: string): SimCognitoEmailSourceIdentity | undefined;
|
|
39
|
+
//# sourceMappingURL=sim-cognito-email-source-arn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-email-source-arn.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-email-source-arn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAEnC,oDAAoD;IACpD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAYD;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,MAAM,GAChB,6BAA6B,GAAG,SAAS,CAiB3C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `arn:aws:ses:<region>:<account>:identity/<name>`, which is the only SES ARN
|
|
3
|
+
* a `SourceArn` is allowed to be.
|
|
4
|
+
*
|
|
5
|
+
* The account segment is held to digits the way the AWS pattern holds it, even
|
|
6
|
+
* though the value is read past. A malformed ARN is worth refusing whether or
|
|
7
|
+
* not this goes on to use the part that is malformed.
|
|
8
|
+
*/
|
|
9
|
+
const identityArnPattern = /^arn:[^:]*:ses:([^:]+):[0-9]+:identity\/(.+)$/;
|
|
10
|
+
/**
|
|
11
|
+
* Read the SES identity out of a pool's `SourceArn`, or nothing where the
|
|
12
|
+
* value names something else.
|
|
13
|
+
*
|
|
14
|
+
* A caller refusing the value is what turns `undefined` into an error, because
|
|
15
|
+
* the two commands that carry a `SourceArn` word their refusals differently.
|
|
16
|
+
*/
|
|
17
|
+
export function simCognitoEmailSourceIdentity(sourceArn) {
|
|
18
|
+
const parts = identityArnPattern.exec(sourceArn);
|
|
19
|
+
const regionName = parts?.[1];
|
|
20
|
+
const identityName = parts?.[2];
|
|
21
|
+
if (regionName === undefined || identityName === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
// Read as a region name the way every other ARN parser here reads one. A
|
|
25
|
+
// spelling no region has resolves to a scope with nothing in it, and the
|
|
26
|
+
// pool then reports the identity as missing, which is what it is.
|
|
27
|
+
return {
|
|
28
|
+
regionName: regionName,
|
|
29
|
+
identityName,
|
|
30
|
+
isDomain: !identityName.includes("@"),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=sim-cognito-email-source-arn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-email-source-arn.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-email-source-arn.ts"],"names":[],"mappings":"AAkCA;;;;;;;GAOG;AACH,MAAM,kBAAkB,GAAG,+CAA+C,CAAC;AAE3E;;;;;;GAMG;AACH,MAAM,UAAU,6BAA6B,CAC3C,SAAiB;IAEjB,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACjD,MAAM,UAAU,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC9B,MAAM,YAAY,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAEhC,IAAI,UAAU,KAAK,SAAS,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC3D,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,yEAAyE;IACzE,yEAAyE;IACzE,kEAAkE;IAClE,OAAO;QACL,UAAU,EAAE,UAA2B;QACvC,YAAY;QACZ,QAAQ,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC;KACtC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { SimCognitoUserPool } from "../sim-cognito-user-pool.js";
|
|
2
|
+
import type { SimCognitoEmailSenders } from "./sim-cognito-email-senders.js";
|
|
3
|
+
import type { SimCognitoMessageDelivery } from "./sim-cognito-message-delivery.js";
|
|
4
|
+
import type { SimCognitoMessageWording } from "./sim-cognito-message-wording.js";
|
|
5
|
+
interface SimCognitoPoolEmailDeliveryProperties {
|
|
6
|
+
readonly senders: SimCognitoEmailSenders;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* What a pool is about to email, once the wording is settled.
|
|
10
|
+
*/
|
|
11
|
+
interface SimCognitoPoolEmail {
|
|
12
|
+
readonly pool: SimCognitoUserPool;
|
|
13
|
+
/** Where the message is going, and by which medium. */
|
|
14
|
+
readonly delivery: SimCognitoMessageDelivery;
|
|
15
|
+
readonly wording: SimCognitoMessageWording;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Sends a pool's email through the account's SES, where the pool asked for
|
|
19
|
+
* that.
|
|
20
|
+
*
|
|
21
|
+
* A pool sending through Cognito's own email passes through here untouched.
|
|
22
|
+
* There is nowhere for such a message to go: real Cognito's built-in sending
|
|
23
|
+
* reaches no other AWS service, so the record the pool keeps is the whole of
|
|
24
|
+
* it.
|
|
25
|
+
*/
|
|
26
|
+
export declare class SimCognitoPoolEmailDelivery {
|
|
27
|
+
#private;
|
|
28
|
+
constructor(properties: SimCognitoPoolEmailDeliveryProperties);
|
|
29
|
+
/**
|
|
30
|
+
* Put the message through SES, or do nothing where it is a text message or
|
|
31
|
+
* the pool sends its own email.
|
|
32
|
+
*
|
|
33
|
+
* This runs before the pool records the message, so a send SES refuses
|
|
34
|
+
* leaves the pool without one. The two records then agree: a message the
|
|
35
|
+
* pool kept is a message SES accepted, which is what makes reading either of
|
|
36
|
+
* them worth anything.
|
|
37
|
+
*/
|
|
38
|
+
send(email: SimCognitoPoolEmail): void;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=sim-cognito-pool-email-delivery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-pool-email-delivery.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-pool-email-delivery.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEjF,UAAU,qCAAqC;IAC7C,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;CAC1C;AAED;;GAEG;AACH,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAElC,uDAAuD;IACvD,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IAC7C,QAAQ,CAAC,OAAO,EAAE,wBAAwB,CAAC;CAC5C;AAED;;;;;;;;GAQG;AACH,qBAAa,2BAA2B;;IAGtC,YAAY,UAAU,EAAE,qCAAqC,EAE5D;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAmCrC;CACF"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { assertDefined } from "../../../../util/type-guard/defined.js";
|
|
2
|
+
import { SimCognitoCodeDeliveryFailureException, SimCognitoInvalidEmailRoleAccessPolicyException, } from "../../error/sim-cognito.error.js";
|
|
3
|
+
/**
|
|
4
|
+
* Sends a pool's email through the account's SES, where the pool asked for
|
|
5
|
+
* that.
|
|
6
|
+
*
|
|
7
|
+
* A pool sending through Cognito's own email passes through here untouched.
|
|
8
|
+
* There is nowhere for such a message to go: real Cognito's built-in sending
|
|
9
|
+
* reaches no other AWS service, so the record the pool keeps is the whole of
|
|
10
|
+
* it.
|
|
11
|
+
*/
|
|
12
|
+
export class SimCognitoPoolEmailDelivery {
|
|
13
|
+
#senders;
|
|
14
|
+
constructor(properties) {
|
|
15
|
+
this.#senders = properties.senders;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Put the message through SES, or do nothing where it is a text message or
|
|
19
|
+
* the pool sends its own email.
|
|
20
|
+
*
|
|
21
|
+
* This runs before the pool records the message, so a send SES refuses
|
|
22
|
+
* leaves the pool without one. The two records then agree: a message the
|
|
23
|
+
* pool kept is a message SES accepted, which is what makes reading either of
|
|
24
|
+
* them worth anything.
|
|
25
|
+
*/
|
|
26
|
+
send(email) {
|
|
27
|
+
const configuration = email.pool.settings.emailConfiguration;
|
|
28
|
+
if (email.delivery.medium !== "EMAIL" ||
|
|
29
|
+
configuration.sourceIdentity === undefined) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
// Every wording an email is written from carries a subject, whether the
|
|
33
|
+
// pool's own or one a CustomMessage handler wrote. Only a text message
|
|
34
|
+
// goes without, and one never reaches here.
|
|
35
|
+
assertDefined(email.wording.subject, "A pool's email wording has a subject");
|
|
36
|
+
const failure = this.#senders.send({
|
|
37
|
+
identity: configuration.sourceIdentity,
|
|
38
|
+
accountId: email.pool.arn.accountId,
|
|
39
|
+
from: configuration.from,
|
|
40
|
+
replyToAddresses: configuration.replyToEmailAddress === undefined
|
|
41
|
+
? []
|
|
42
|
+
: [configuration.replyToEmailAddress],
|
|
43
|
+
configurationSet: configuration.configurationSet,
|
|
44
|
+
recipient: email.delivery.recipient,
|
|
45
|
+
subject: email.wording.subject,
|
|
46
|
+
body: email.wording.body,
|
|
47
|
+
});
|
|
48
|
+
if (failure !== undefined) {
|
|
49
|
+
throw failureException(failure, email.pool);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The exception real Cognito raises for this failure.
|
|
55
|
+
*
|
|
56
|
+
* A pool that cannot use its identity and a message SES would not take are two
|
|
57
|
+
* different problems for whoever has to fix the deployment, and real Cognito
|
|
58
|
+
* keeps them apart, so the sign-up that hit one says which.
|
|
59
|
+
*/
|
|
60
|
+
function failureException(failure, pool) {
|
|
61
|
+
const message = `${pool.id} could not send through SES: ${failure.reason}`;
|
|
62
|
+
return failure.kind === "identity"
|
|
63
|
+
? new SimCognitoInvalidEmailRoleAccessPolicyException(message)
|
|
64
|
+
: new SimCognitoCodeDeliveryFailureException(message);
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=sim-cognito-pool-email-delivery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-cognito-pool-email-delivery.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-pool-email-delivery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EACL,sCAAsC,EACtC,+CAA+C,GAChD,MAAM,kCAAkC,CAAC;AAwB1C;;;;;;;;GAQG;AACH,MAAM,OAAO,2BAA2B;IAC7B,QAAQ,CAAyB;IAE1C,YAAY,UAAiD;QAC3D,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC;IACrC,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,KAA0B;QAC7B,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QAE7D,IACE,KAAK,CAAC,QAAQ,CAAC,MAAM,KAAK,OAAO;YACjC,aAAa,CAAC,cAAc,KAAK,SAAS,EAC1C,CAAC;YACD,OAAO;QACT,CAAC;QAED,wEAAwE;QACxE,uEAAuE;QACvE,4CAA4C;QAC5C,aAAa,CACX,KAAK,CAAC,OAAO,CAAC,OAAO,EACrB,sCAAsC,CACvC,CAAC;QAEF,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YACjC,QAAQ,EAAE,aAAa,CAAC,cAAc;YACtC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS;YACnC,IAAI,EAAE,aAAa,CAAC,IAAI;YACxB,gBAAgB,EACd,aAAa,CAAC,mBAAmB,KAAK,SAAS;gBAC7C,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,CAAC,aAAa,CAAC,mBAAmB,CAAC;YACzC,gBAAgB,EAAE,aAAa,CAAC,gBAAgB;YAChD,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,SAAS;YACnC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO;YAC9B,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI;SACzB,CAAC,CAAC;QAEH,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,MAAM,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;CACF;AAED;;;;;;GAMG;AACH,SAAS,gBAAgB,CACvB,OAAmC,EACnC,IAAwB;IAExB,MAAM,OAAO,GAAG,GAAG,IAAI,CAAC,EAAE,gCAAgC,OAAO,CAAC,MAAM,EAAE,CAAC;IAE3E,OAAO,OAAO,CAAC,IAAI,KAAK,UAAU;QAChC,CAAC,CAAC,IAAI,+CAA+C,CAAC,OAAO,CAAC;QAC9D,CAAC,CAAC,IAAI,sCAAsC,CAAC,OAAO,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import type { SimClock } from "../../../../util/clock/sim-clock.js";
|
|
2
|
+
import type { SimAwsMessageLog } from "../../../aws/message/sim-aws-message-log.js";
|
|
2
3
|
import type { SimCognitoUserPoolClient } from "../client/sim-cognito-user-pool-client.js";
|
|
3
4
|
import type { SimCognitoUserPool } from "../sim-cognito-user-pool.js";
|
|
4
5
|
import type { SimCognitoUserPoolTriggers } from "../trigger/sim-cognito-user-pool-triggers.js";
|
|
5
6
|
import type { SimCognitoUser } from "../user/sim-cognito-user.js";
|
|
6
7
|
import { SimCognitoMessageDelivery } from "./sim-cognito-message-delivery.js";
|
|
7
8
|
import type { SimCognitoMessageOccasion } from "./sim-cognito-message-occasion.js";
|
|
9
|
+
import type { SimCognitoPoolEmailDelivery } from "./sim-cognito-pool-email-delivery.js";
|
|
8
10
|
interface SimCognitoPoolMessengerProperties {
|
|
9
11
|
readonly triggers: SimCognitoUserPoolTriggers;
|
|
12
|
+
/**
|
|
13
|
+
* Where a message goes before it is recorded, which for a pool sending
|
|
14
|
+
* through SES is the account's SES.
|
|
15
|
+
*/
|
|
16
|
+
readonly email: SimCognitoPoolEmailDelivery;
|
|
10
17
|
readonly clock: SimClock;
|
|
18
|
+
readonly messageLog: SimAwsMessageLog;
|
|
11
19
|
}
|
|
12
20
|
/**
|
|
13
21
|
* What a pool is about to send.
|
|
@@ -32,14 +40,21 @@ interface SimCognitoMessageRequest {
|
|
|
32
40
|
* reads it back off the pool, which is what makes a verification message
|
|
33
41
|
* something a test can assert about at all.
|
|
34
42
|
*
|
|
35
|
-
*
|
|
36
|
-
* `EmailSendingAccount` of `COGNITO_DEFAULT`
|
|
37
|
-
*
|
|
38
|
-
*
|
|
43
|
+
* A pool sending its own email stops there. Real Cognito with the default
|
|
44
|
+
* `EmailSendingAccount` of `COGNITO_DEFAULT` reaches no other service, so the
|
|
45
|
+
* record is the whole of what happened.
|
|
46
|
+
*
|
|
47
|
+
* A pool whose `EmailConfiguration` named `DEVELOPER` sends through the
|
|
48
|
+
* account's SES first, and records the message only once SES has taken it.
|
|
49
|
+
* The record and `sesV2().sentEmails()` then agree with each other, and a
|
|
50
|
+
* sign-up against a pool SES would refuse fails here as it would in a
|
|
51
|
+
* deployment.
|
|
39
52
|
*/
|
|
40
53
|
export declare class SimCognitoPoolMessenger {
|
|
41
54
|
private readonly triggers;
|
|
55
|
+
private readonly email;
|
|
42
56
|
private readonly clock;
|
|
57
|
+
private readonly messageLog;
|
|
43
58
|
constructor(properties: SimCognitoPoolMessengerProperties);
|
|
44
59
|
/**
|
|
45
60
|
* Send the message this occasion produces, running the pool's
|