@kensio/yulin 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.js +3 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +17 -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 +37 -42
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-s3-notification-destinations.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-s3-notification-destinations.js +5 -0
- package/dist/service/aws/factory/sim-aws-s3-notification-destinations.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-scoped-service-properties.d.ts +18 -0
- package/dist/service/aws/factory/sim-aws-scoped-service-properties.d.ts.map +1 -0
- package/dist/service/aws/factory/sim-aws-scoped-service-properties.js +2 -0
- package/dist/service/aws/factory/sim-aws-scoped-service-properties.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts +3 -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 +4 -0
- package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.d.ts +5 -0
- package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.js +6 -0
- package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.d.ts +3 -0
- package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-service-accessors.js +4 -0
- package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.d.ts +36 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.js +64 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-copier.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-file.d.ts +31 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-file.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-file.js +42 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-file.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-files.d.ts +13 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-files.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-files.js +68 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-files.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-pruner.d.ts +30 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-pruner.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-pruner.js +35 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/copy/sim-cdk-bucket-deploy-pruner.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.d.ts +27 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.js +76 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/filter/sim-cdk-bucket-deploy-filter.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/property/sim-cdk-bucket-deploy-properties.d.ts +24 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/property/sim-cdk-bucket-deploy-properties.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/property/sim-cdk-bucket-deploy-properties.js +46 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/property/sim-cdk-bucket-deploy-properties.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/property/sim-cdk-bucket-deploy-values.d.ts +42 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/property/sim-cdk-bucket-deploy-values.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/property/sim-cdk-bucket-deploy-values.js +96 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/property/sim-cdk-bucket-deploy-values.js.map +1 -0
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.d.ts +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.d.ts.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.js +10 -35
- package/dist/service/cloudformation/cdk/s3/bucket-deployment/sim-cdk-bucket-deployment.js.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.d.ts +2 -0
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.d.ts.map +1 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.js +15 -1
- package/dist/service/cloudformation/cdk/s3/bucket-notifications/configuration/sim-cdk-bucket-notification-configuration.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.js +8 -0
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-rh-policy-cfn.d.ts +25 -0
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-rh-policy-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-rh-policy-cfn.js +32 -0
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-rh-policy-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.js +2 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sns/sim-sns-cfn-value-adapter.d.ts +11 -0
- package/dist/service/cloudformation/resource/cfn/sns/sim-sns-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sns/sim-sns-cfn-value-adapter.js +24 -0
- package/dist/service/cloudformation/resource/cfn/sns/sim-sns-cfn-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sns/sim-sns-subscription-cfn.d.ts +27 -0
- package/dist/service/cloudformation/resource/cfn/sns/sim-sns-subscription-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sns/sim-sns-subscription-cfn.js +29 -0
- package/dist/service/cloudformation/resource/cfn/sns/sim-sns-subscription-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sns/sim-sns-topic-cfn.d.ts +30 -0
- package/dist/service/cloudformation/resource/cfn/sns/sim-sns-topic-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sns/sim-sns-topic-cfn.js +39 -0
- package/dist/service/cloudformation/resource/cfn/sns/sim-sns-topic-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +4 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
- package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.d.ts +4 -0
- package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.d.ts.map +1 -1
- package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.js.map +1 -1
- package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-config.d.ts +38 -0
- package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-config.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-config.js +127 -0
- package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-config.js.map +1 -0
- package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-creator.d.ts +25 -0
- package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-creator.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-creator.js +33 -0
- package/dist/service/cloudfront/cfn/response-headers-policy/sim-cfn-cf-rh-policy-creator.js.map +1 -0
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts +1 -0
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js +11 -0
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js.map +1 -1
- package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +1 -0
- package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts +3 -0
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js +3 -0
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js.map +1 -1
- package/dist/service/cloudfront/controller/response-headers/sim-cf-response-headers-applicator.d.ts +19 -0
- package/dist/service/cloudfront/controller/response-headers/sim-cf-response-headers-applicator.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/response-headers/sim-cf-response-headers-applicator.js +31 -0
- package/dist/service/cloudfront/controller/response-headers/sim-cf-response-headers-applicator.js.map +1 -0
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts +4 -8
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js +16 -19
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-behavior-configurator.js +3 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-behavior-configurator.js.map +1 -1
- package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts +19 -0
- package/dist/service/cloudfront/error/sim-cloudfront.error.d.ts.map +1 -1
- package/dist/service/cloudfront/error/sim-cloudfront.error.js +23 -0
- package/dist/service/cloudfront/error/sim-cloudfront.error.js.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js +2 -5
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js.map +1 -1
- package/dist/service/cloudfront/response-headers-policy/sim-cf-response-header.d.ts +25 -0
- package/dist/service/cloudfront/response-headers-policy/sim-cf-response-header.d.ts.map +1 -0
- package/dist/service/cloudfront/response-headers-policy/sim-cf-response-header.js +30 -0
- package/dist/service/cloudfront/response-headers-policy/sim-cf-response-header.js.map +1 -0
- package/dist/service/cloudfront/response-headers-policy/sim-cf-response-headers-policy-registry.d.ts +29 -0
- package/dist/service/cloudfront/response-headers-policy/sim-cf-response-headers-policy-registry.d.ts.map +1 -0
- package/dist/service/cloudfront/response-headers-policy/sim-cf-response-headers-policy-registry.js +40 -0
- package/dist/service/cloudfront/response-headers-policy/sim-cf-response-headers-policy-registry.js.map +1 -0
- package/dist/service/cloudfront/response-headers-policy/sim-cf-response-headers-policy.d.ts +35 -0
- package/dist/service/cloudfront/response-headers-policy/sim-cf-response-headers-policy.d.ts.map +1 -0
- package/dist/service/cloudfront/response-headers-policy/sim-cf-response-headers-policy.js +44 -0
- package/dist/service/cloudfront/response-headers-policy/sim-cf-response-headers-policy.js.map +1 -0
- package/dist/service/cloudfront/sim-cloudfront.d.ts +18 -0
- package/dist/service/cloudfront/sim-cloudfront.d.ts.map +1 -1
- package/dist/service/cloudfront/sim-cloudfront.js +24 -0
- package/dist/service/cloudfront/sim-cloudfront.js.map +1 -1
- package/dist/service/route53/cfn/record-set/apply/sim-cfn-r53-record-set-applicator.d.ts.map +1 -1
- package/dist/service/route53/cfn/record-set/apply/sim-cfn-r53-record-set-applicator.js +4 -1
- package/dist/service/route53/cfn/record-set/apply/sim-cfn-r53-record-set-applicator.js.map +1 -1
- package/dist/service/route53/cfn/record-set/resolve/sim-cfn-r53-looked-up-zone.d.ts +39 -0
- package/dist/service/route53/cfn/record-set/resolve/sim-cfn-r53-looked-up-zone.d.ts.map +1 -0
- package/dist/service/route53/cfn/record-set/resolve/sim-cfn-r53-looked-up-zone.js +46 -0
- package/dist/service/route53/cfn/record-set/resolve/sim-cfn-r53-looked-up-zone.js.map +1 -0
- package/dist/service/route53/cfn/record-set/resolve/sim-cfn-r53-rec-set-zone-resolver.d.ts +2 -0
- package/dist/service/route53/cfn/record-set/resolve/sim-cfn-r53-rec-set-zone-resolver.d.ts.map +1 -1
- package/dist/service/route53/cfn/record-set/resolve/sim-cfn-r53-rec-set-zone-resolver.js +17 -1
- package/dist/service/route53/cfn/record-set/resolve/sim-cfn-r53-rec-set-zone-resolver.js.map +1 -1
- package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.d.ts +6 -0
- package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.d.ts.map +1 -1
- package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.js +1 -0
- package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.js.map +1 -1
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts +23 -10
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts.map +1 -1
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js +32 -45
- package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js.map +1 -1
- package/dist/service/route53/hosted-zone/sim-route53-zone-name-widening.d.ts +16 -0
- package/dist/service/route53/hosted-zone/sim-route53-zone-name-widening.d.ts.map +1 -0
- package/dist/service/route53/hosted-zone/sim-route53-zone-name-widening.js +35 -0
- package/dist/service/route53/hosted-zone/sim-route53-zone-name-widening.js.map +1 -0
- package/dist/service/route53/hosted-zone/sim-route53-zone-synchronization.d.ts +23 -0
- package/dist/service/route53/hosted-zone/sim-route53-zone-synchronization.d.ts.map +1 -0
- package/dist/service/route53/hosted-zone/sim-route53-zone-synchronization.js +43 -0
- package/dist/service/route53/hosted-zone/sim-route53-zone-synchronization.js.map +1 -0
- package/dist/service/route53/sim-route53.d.ts +1 -1
- package/dist/service/route53/sim-route53.d.ts.map +1 -1
- package/dist/service/route53/sim-route53.js +1 -1
- package/dist/service/route53/sim-route53.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.js +2 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration-reader.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.d.ts +3 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.js +10 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-configuration.js.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-topic-notification.d.ts +21 -0
- package/dist/service/s3/bucket/notification/sim-s3-topic-notification.d.ts.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-topic-notification.js +24 -0
- package/dist/service/s3/bucket/notification/sim-s3-topic-notification.js.map +1 -0
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.d.ts +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.d.ts.map +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.js +3 -3
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-destinations.js.map +1 -1
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.d.ts +9 -6
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.d.ts.map +1 -1
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.js +32 -7
- package/dist/service/s3/cfn/bucket/notification/sim-cfn-s3-bucket-notification-configuration.js.map +1 -1
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts +2 -1
- package/dist/service/s3/command/get-bucket-notification-configuration/get-bucket-notification-configuration.command.d.ts.map +1 -1
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts +10 -1
- package/dist/service/s3/command/put-bucket-notification-configuration/put-bucket-notification-configuration.command.d.ts.map +1 -1
- package/dist/service/s3/command/put-object/put-object-builder.d.ts +13 -4
- package/dist/service/s3/command/put-object/put-object-builder.d.ts.map +1 -1
- package/dist/service/s3/command/put-object/put-object-builder.js +27 -10
- package/dist/service/s3/command/put-object/put-object-builder.js.map +1 -1
- package/dist/service/s3/command/put-object/put-object.command.d.ts +11 -0
- package/dist/service/s3/command/put-object/put-object.command.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/sim-s3-notification-destination.d.ts +1 -1
- package/dist/service/s3/notification/destination/sim-s3-notification-destination.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.d.ts +2 -0
- package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.d.ts.map +1 -1
- package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.js +5 -0
- package/dist/service/s3/notification/destination/sim-s3-service-notification-destinations.js.map +1 -1
- package/dist/service/s3/notification/destination/sns/sim-aws-s3-notification-topics.d.ts +38 -0
- package/dist/service/s3/notification/destination/sns/sim-aws-s3-notification-topics.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sns/sim-aws-s3-notification-topics.js +50 -0
- package/dist/service/s3/notification/destination/sns/sim-aws-s3-notification-topics.js.map +1 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topic-arn.d.ts +31 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topic-arn.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topic-arn.js +48 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topic-arn.js.map +1 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topic.d.ts +43 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topic.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topic.js +71 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topic.js.map +1 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topics.d.ts +22 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topics.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topics.js +2 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topics.js.map +1 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-sns-notification-destination.d.ts +40 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-sns-notification-destination.d.ts.map +1 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-sns-notification-destination.js +51 -0
- package/dist/service/s3/notification/destination/sns/sim-s3-sns-notification-destination.js.map +1 -0
- package/dist/service/s3/object/s3-object-response-headers.d.ts +17 -0
- package/dist/service/s3/object/s3-object-response-headers.d.ts.map +1 -0
- package/dist/service/s3/object/s3-object-response-headers.js +29 -0
- package/dist/service/s3/object/s3-object-response-headers.js.map +1 -0
- package/dist/service/s3/object/s3-system-metadata.d.ts +32 -0
- package/dist/service/s3/object/s3-system-metadata.d.ts.map +1 -0
- package/dist/service/s3/object/s3-system-metadata.js +35 -0
- package/dist/service/s3/object/s3-system-metadata.js.map +1 -0
- package/dist/service/s3/serve/sim-s3-rest-object-reader.d.ts.map +1 -1
- package/dist/service/s3/serve/sim-s3-rest-object-reader.js +2 -5
- package/dist/service/s3/serve/sim-s3-rest-object-reader.js.map +1 -1
- package/dist/service/s3/serve/website/sim-s3-website-object-loader.js +1 -1
- package/dist/service/s3/serve/website/sim-s3-website-object-loader.js.map +1 -1
- package/dist/service/s3/serve/website/sim-s3-website-object.d.ts +3 -4
- package/dist/service/s3/serve/website/sim-s3-website-object.d.ts.map +1 -1
- package/dist/service/s3/serve/website/sim-s3-website-object.js +6 -11
- package/dist/service/s3/serve/website/sim-s3-website-object.js.map +1 -1
- package/dist/service/sns/cfn/sim-cfn-sns-attribute-value.d.ts +15 -0
- package/dist/service/sns/cfn/sim-cfn-sns-attribute-value.d.ts.map +1 -0
- package/dist/service/sns/cfn/sim-cfn-sns-attribute-value.js +23 -0
- package/dist/service/sns/cfn/sim-cfn-sns-attribute-value.js.map +1 -0
- package/dist/service/sns/cfn/sim-cfn-sns-resource-deleter.d.ts +38 -0
- package/dist/service/sns/cfn/sim-cfn-sns-resource-deleter.d.ts.map +1 -0
- package/dist/service/sns/cfn/sim-cfn-sns-resource-deleter.js +73 -0
- package/dist/service/sns/cfn/sim-cfn-sns-resource-deleter.js.map +1 -0
- package/dist/service/sns/cfn/sim-cfn-sns-resource-error.d.ts +24 -0
- package/dist/service/sns/cfn/sim-cfn-sns-resource-error.d.ts.map +1 -0
- package/dist/service/sns/cfn/sim-cfn-sns-resource-error.js +39 -0
- package/dist/service/sns/cfn/sim-cfn-sns-resource-error.js.map +1 -0
- package/dist/service/sns/cfn/sim-cfn-sns-resource-types.d.ts +11 -0
- package/dist/service/sns/cfn/sim-cfn-sns-resource-types.d.ts.map +1 -0
- package/dist/service/sns/cfn/sim-cfn-sns-resource-types.js +11 -0
- package/dist/service/sns/cfn/sim-cfn-sns-resource-types.js.map +1 -0
- package/dist/service/sns/cfn/sim-sns-cfn-resource-factory.d.ts +31 -0
- package/dist/service/sns/cfn/sim-sns-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/sns/cfn/sim-sns-cfn-resource-factory.js +54 -0
- package/dist/service/sns/cfn/sim-sns-cfn-resource-factory.js.map +1 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-creator.d.ts +26 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-creator.d.ts.map +1 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-creator.js +37 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-creator.js.map +1 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.d.ts +47 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.d.ts.map +1 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.js +88 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.js.map +1 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.d.ts +36 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.d.ts.map +1 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.js +55 -0
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.js.map +1 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-inline-subscriptions.d.ts +23 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-inline-subscriptions.d.ts.map +1 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-inline-subscriptions.js +49 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-inline-subscriptions.js.map +1 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-creator.d.ts +34 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-creator.d.ts.map +1 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-creator.js +60 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-creator.js.map +1 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-name.d.ts +22 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-name.d.ts.map +1 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-name.js +27 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-name.js.map +1 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-properties.d.ts +58 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-properties.d.ts.map +1 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-properties.js +93 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-properties.js.map +1 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-property-names.d.ts +31 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-property-names.d.ts.map +1 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-property-names.js +52 -0
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-property-names.js.map +1 -0
- package/dist/service/sns/cfn/topic-policy/sim-cfn-sns-topic-policy-creator.d.ts +34 -0
- package/dist/service/sns/cfn/topic-policy/sim-cfn-sns-topic-policy-creator.d.ts.map +1 -0
- package/dist/service/sns/cfn/topic-policy/sim-cfn-sns-topic-policy-creator.js +58 -0
- package/dist/service/sns/cfn/topic-policy/sim-cfn-sns-topic-policy-creator.js.map +1 -0
- package/dist/service/sns/cfn/topic-policy/sim-cfn-sns-topic-policy-properties.d.ts +20 -0
- package/dist/service/sns/cfn/topic-policy/sim-cfn-sns-topic-policy-properties.d.ts.map +1 -0
- package/dist/service/sns/cfn/topic-policy/sim-cfn-sns-topic-policy-properties.js +44 -0
- package/dist/service/sns/cfn/topic-policy/sim-cfn-sns-topic-policy-properties.js.map +1 -0
- package/dist/service/sns/command/authorize/sim-sns-authorizer.d.ts +58 -0
- package/dist/service/sns/command/authorize/sim-sns-authorizer.d.ts.map +1 -0
- package/dist/service/sns/command/authorize/sim-sns-authorizer.js +83 -0
- package/dist/service/sns/command/authorize/sim-sns-authorizer.js.map +1 -0
- package/dist/service/sns/command/authorize/sim-sns-condition-context.d.ts +13 -0
- package/dist/service/sns/command/authorize/sim-sns-condition-context.d.ts.map +1 -0
- package/dist/service/sns/command/authorize/sim-sns-condition-context.js +21 -0
- package/dist/service/sns/command/authorize/sim-sns-condition-context.js.map +1 -0
- package/dist/service/sns/command/authorize/sim-sns-service-publish-authorizer.d.ts +41 -0
- package/dist/service/sns/command/authorize/sim-sns-service-publish-authorizer.d.ts.map +1 -0
- package/dist/service/sns/command/authorize/sim-sns-service-publish-authorizer.js +40 -0
- package/dist/service/sns/command/authorize/sim-sns-service-publish-authorizer.js.map +1 -0
- package/dist/service/sns/command/authorize/sim-sns-topic-resource-policies.d.ts +12 -0
- package/dist/service/sns/command/authorize/sim-sns-topic-resource-policies.d.ts.map +1 -0
- package/dist/service/sns/command/authorize/sim-sns-topic-resource-policies.js +25 -0
- package/dist/service/sns/command/authorize/sim-sns-topic-resource-policies.js.map +1 -0
- package/dist/service/sns/command/publish/publish.command.d.ts +70 -0
- package/dist/service/sns/command/publish/publish.command.d.ts.map +1 -0
- package/dist/service/sns/command/publish/publish.command.js +2 -0
- package/dist/service/sns/command/publish/publish.command.js.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-batch-entries.d.ts +52 -0
- package/dist/service/sns/command/publish/sim-sns-batch-entries.d.ts.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-batch-entries.js +85 -0
- package/dist/service/sns/command/publish/sim-sns-batch-entries.js.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-commands.d.ts +53 -0
- package/dist/service/sns/command/publish/sim-sns-publish-commands.d.ts.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-commands.js +83 -0
- package/dist/service/sns/command/publish/sim-sns-publish-commands.js.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-input.d.ts +23 -0
- package/dist/service/sns/command/publish/sim-sns-publish-input.d.ts.map +1 -0
- package/dist/service/sns/command/publish/sim-sns-publish-input.js +47 -0
- package/dist/service/sns/command/publish/sim-sns-publish-input.js.map +1 -0
- package/dist/service/sns/command/sim-sns-command.types.d.ts +7 -0
- package/dist/service/sns/command/sim-sns-command.types.d.ts.map +1 -0
- package/dist/service/sns/command/sim-sns-command.types.js +2 -0
- package/dist/service/sns/command/sim-sns-command.types.js.map +1 -0
- package/dist/service/sns/command/sim-sns-commands.d.ts +45 -0
- package/dist/service/sns/command/sim-sns-commands.d.ts.map +1 -0
- package/dist/service/sns/command/sim-sns-commands.js +83 -0
- package/dist/service/sns/command/sim-sns-commands.js.map +1 -0
- package/dist/service/sns/command/sim-sns-page.d.ts +19 -0
- package/dist/service/sns/command/sim-sns-page.d.ts.map +1 -0
- package/dist/service/sns/command/sim-sns-page.js +51 -0
- package/dist/service/sns/command/sim-sns-page.js.map +1 -0
- package/dist/service/sns/command/sim-sns-request-options.d.ts +47 -0
- package/dist/service/sns/command/sim-sns-request-options.d.ts.map +1 -0
- package/dist/service/sns/command/sim-sns-request-options.js +19 -0
- package/dist/service/sns/command/sim-sns-request-options.js.map +1 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-access.d.ts +42 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-access.d.ts.map +1 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-access.js +57 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-access.js.map +1 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-attribute-commands.d.ts +31 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-attribute-commands.d.ts.map +1 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-attribute-commands.js +44 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-attribute-commands.js.map +1 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-commands.d.ts +50 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-commands.d.ts.map +1 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-commands.js +73 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-commands.js.map +1 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-listings.d.ts +34 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-listings.d.ts.map +1 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-listings.js +57 -0
- package/dist/service/sns/command/subscription/sim-sns-subscription-listings.js.map +1 -0
- package/dist/service/sns/command/subscription/subscription.command.d.ts +118 -0
- package/dist/service/sns/command/subscription/subscription.command.d.ts.map +1 -0
- package/dist/service/sns/command/subscription/subscription.command.js +2 -0
- package/dist/service/sns/command/subscription/subscription.command.js.map +1 -0
- package/dist/service/sns/command/topic/sim-sns-create-topic.d.ts +41 -0
- package/dist/service/sns/command/topic/sim-sns-create-topic.d.ts.map +1 -0
- package/dist/service/sns/command/topic/sim-sns-create-topic.js +54 -0
- package/dist/service/sns/command/topic/sim-sns-create-topic.js.map +1 -0
- package/dist/service/sns/command/topic/sim-sns-request-topic-name.d.ts +11 -0
- package/dist/service/sns/command/topic/sim-sns-request-topic-name.d.ts.map +1 -0
- package/dist/service/sns/command/topic/sim-sns-request-topic-name.js +28 -0
- package/dist/service/sns/command/topic/sim-sns-request-topic-name.js.map +1 -0
- package/dist/service/sns/command/topic/sim-sns-topic-access.d.ts +76 -0
- package/dist/service/sns/command/topic/sim-sns-topic-access.d.ts.map +1 -0
- package/dist/service/sns/command/topic/sim-sns-topic-access.js +81 -0
- package/dist/service/sns/command/topic/sim-sns-topic-access.js.map +1 -0
- package/dist/service/sns/command/topic/sim-sns-topic-attribute-commands.d.ts +36 -0
- package/dist/service/sns/command/topic/sim-sns-topic-attribute-commands.d.ts.map +1 -0
- package/dist/service/sns/command/topic/sim-sns-topic-attribute-commands.js +47 -0
- package/dist/service/sns/command/topic/sim-sns-topic-attribute-commands.js.map +1 -0
- package/dist/service/sns/command/topic/sim-sns-topic-commands.d.ts +42 -0
- package/dist/service/sns/command/topic/sim-sns-topic-commands.d.ts.map +1 -0
- package/dist/service/sns/command/topic/sim-sns-topic-commands.js +51 -0
- package/dist/service/sns/command/topic/sim-sns-topic-commands.js.map +1 -0
- package/dist/service/sns/command/topic/sim-sns-unsimulated-topic-input.d.ts +11 -0
- package/dist/service/sns/command/topic/sim-sns-unsimulated-topic-input.d.ts.map +1 -0
- package/dist/service/sns/command/topic/sim-sns-unsimulated-topic-input.js +20 -0
- package/dist/service/sns/command/topic/sim-sns-unsimulated-topic-input.js.map +1 -0
- package/dist/service/sns/command/topic/topic.command.d.ts +95 -0
- package/dist/service/sns/command/topic/topic.command.d.ts.map +1 -0
- package/dist/service/sns/command/topic/topic.command.js +2 -0
- package/dist/service/sns/command/topic/topic.command.js.map +1 -0
- package/dist/service/sns/delivery/lambda/sim-aws-sns-delivery-functions.d.ts +27 -0
- package/dist/service/sns/delivery/lambda/sim-aws-sns-delivery-functions.d.ts.map +1 -0
- package/dist/service/sns/delivery/lambda/sim-aws-sns-delivery-functions.js +31 -0
- package/dist/service/sns/delivery/lambda/sim-aws-sns-delivery-functions.js.map +1 -0
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.d.ts +31 -0
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.d.ts.map +1 -0
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.js +62 -0
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.js.map +1 -0
- package/dist/service/sns/delivery/lambda/sim-sns-lambda-event.d.ts +10 -0
- package/dist/service/sns/delivery/lambda/sim-sns-lambda-event.d.ts.map +1 -0
- package/dist/service/sns/delivery/lambda/sim-sns-lambda-event.js +53 -0
- package/dist/service/sns/delivery/lambda/sim-sns-lambda-event.js.map +1 -0
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.d.ts +17 -0
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.d.ts.map +1 -0
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.js +21 -0
- package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.js.map +1 -0
- package/dist/service/sns/delivery/sim-sns-canonical-message.d.ts +32 -0
- package/dist/service/sns/delivery/sim-sns-canonical-message.d.ts.map +1 -0
- package/dist/service/sns/delivery/sim-sns-canonical-message.js +24 -0
- package/dist/service/sns/delivery/sim-sns-canonical-message.js.map +1 -0
- package/dist/service/sns/delivery/sim-sns-delivery-failures.d.ts +60 -0
- package/dist/service/sns/delivery/sim-sns-delivery-failures.d.ts.map +1 -0
- package/dist/service/sns/delivery/sim-sns-delivery-failures.js +84 -0
- package/dist/service/sns/delivery/sim-sns-delivery-failures.js.map +1 -0
- package/dist/service/sns/delivery/sim-sns-delivery-request.d.ts +28 -0
- package/dist/service/sns/delivery/sim-sns-delivery-request.d.ts.map +1 -0
- package/dist/service/sns/delivery/sim-sns-delivery-request.js +34 -0
- package/dist/service/sns/delivery/sim-sns-delivery-request.js.map +1 -0
- package/dist/service/sns/delivery/sim-sns-delivery.d.ts +55 -0
- package/dist/service/sns/delivery/sim-sns-delivery.d.ts.map +1 -0
- package/dist/service/sns/delivery/sim-sns-delivery.js +18 -0
- package/dist/service/sns/delivery/sim-sns-delivery.js.map +1 -0
- package/dist/service/sns/delivery/sim-sns-envelope.d.ts +26 -0
- package/dist/service/sns/delivery/sim-sns-envelope.d.ts.map +1 -0
- package/dist/service/sns/delivery/sim-sns-envelope.js +41 -0
- package/dist/service/sns/delivery/sim-sns-envelope.js.map +1 -0
- package/dist/service/sns/delivery/sim-sns-fan-out.d.ts +53 -0
- package/dist/service/sns/delivery/sim-sns-fan-out.d.ts.map +1 -0
- package/dist/service/sns/delivery/sim-sns-fan-out.js +69 -0
- package/dist/service/sns/delivery/sim-sns-fan-out.js.map +1 -0
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.d.ts +17 -0
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.d.ts.map +1 -0
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.js +23 -0
- package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.js.map +1 -0
- package/dist/service/sns/delivery/sim-sns-notification.d.ts +57 -0
- package/dist/service/sns/delivery/sim-sns-notification.d.ts.map +1 -0
- package/dist/service/sns/delivery/sim-sns-notification.js +64 -0
- package/dist/service/sns/delivery/sim-sns-notification.js.map +1 -0
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.d.ts +32 -0
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.d.ts.map +1 -0
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.js +22 -0
- package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.js.map +1 -0
- package/dist/service/sns/delivery/sqs/sim-aws-sns-delivery-queues.d.ts +29 -0
- package/dist/service/sns/delivery/sqs/sim-aws-sns-delivery-queues.d.ts.map +1 -0
- package/dist/service/sns/delivery/sqs/sim-aws-sns-delivery-queues.js +33 -0
- package/dist/service/sns/delivery/sqs/sim-aws-sns-delivery-queues.js.map +1 -0
- package/dist/service/sns/delivery/sqs/sim-sns-delivery-queue.d.ts +31 -0
- package/dist/service/sns/delivery/sqs/sim-sns-delivery-queue.d.ts.map +1 -0
- package/dist/service/sns/delivery/sqs/sim-sns-delivery-queue.js +63 -0
- package/dist/service/sns/delivery/sqs/sim-sns-delivery-queue.js.map +1 -0
- package/dist/service/sns/delivery/sqs/sim-sns-queue-message.d.ts +24 -0
- package/dist/service/sns/delivery/sqs/sim-sns-queue-message.d.ts.map +1 -0
- package/dist/service/sns/delivery/sqs/sim-sns-queue-message.js +38 -0
- package/dist/service/sns/delivery/sqs/sim-sns-queue-message.js.map +1 -0
- package/dist/service/sns/error/sim-sns-delivery.error.d.ts +13 -0
- package/dist/service/sns/error/sim-sns-delivery.error.d.ts.map +1 -0
- package/dist/service/sns/error/sim-sns-delivery.error.js +13 -0
- package/dist/service/sns/error/sim-sns-delivery.error.js.map +1 -0
- package/dist/service/sns/error/sim-sns.error.d.ts +107 -0
- package/dist/service/sns/error/sim-sns.error.d.ts.map +1 -0
- package/dist/service/sns/error/sim-sns.error.js +124 -0
- package/dist/service/sns/error/sim-sns.error.js.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-anything-but-match.d.ts +30 -0
- package/dist/service/sns/filter/match/sim-sns-anything-but-match.d.ts.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-anything-but-match.js +82 -0
- package/dist/service/sns/filter/match/sim-sns-anything-but-match.js.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-equals-ignore-case-match.d.ts +24 -0
- package/dist/service/sns/filter/match/sim-sns-equals-ignore-case-match.d.ts.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-equals-ignore-case-match.js +30 -0
- package/dist/service/sns/filter/match/sim-sns-equals-ignore-case-match.js.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-exact-match.d.ts +22 -0
- package/dist/service/sns/filter/match/sim-sns-exact-match.d.ts.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-exact-match.js +49 -0
- package/dist/service/sns/filter/match/sim-sns-exact-match.js.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-exists-match.d.ts +27 -0
- package/dist/service/sns/filter/match/sim-sns-exists-match.d.ts.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-exists-match.js +38 -0
- package/dist/service/sns/filter/match/sim-sns-exists-match.js.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-filter-match.d.ts +24 -0
- package/dist/service/sns/filter/match/sim-sns-filter-match.d.ts.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-filter-match.js +19 -0
- package/dist/service/sns/filter/match/sim-sns-filter-match.js.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-numeric-match.d.ts +48 -0
- package/dist/service/sns/filter/match/sim-sns-numeric-match.d.ts.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-numeric-match.js +107 -0
- package/dist/service/sns/filter/match/sim-sns-numeric-match.js.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-prefix-match.d.ts +26 -0
- package/dist/service/sns/filter/match/sim-sns-prefix-match.d.ts.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-prefix-match.js +32 -0
- package/dist/service/sns/filter/match/sim-sns-prefix-match.js.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-suffix-match.d.ts +23 -0
- package/dist/service/sns/filter/match/sim-sns-suffix-match.d.ts.map +1 -0
- package/dist/service/sns/filter/match/sim-sns-suffix-match.js +29 -0
- package/dist/service/sns/filter/match/sim-sns-suffix-match.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-attribute-subject.d.ts +31 -0
- package/dist/service/sns/filter/sim-sns-attribute-subject.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-attribute-subject.js +85 -0
- package/dist/service/sns/filter/sim-sns-attribute-subject.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-body-subject.d.ts +30 -0
- package/dist/service/sns/filter/sim-sns-body-subject.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-body-subject.js +67 -0
- package/dist/service/sns/filter/sim-sns-body-subject.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-any-rule.d.ts +21 -0
- package/dist/service/sns/filter/sim-sns-filter-any-rule.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-any-rule.js +23 -0
- package/dist/service/sns/filter/sim-sns-filter-any-rule.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-key-rule.d.ts +28 -0
- package/dist/service/sns/filter/sim-sns-filter-key-rule.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-key-rule.js +48 -0
- package/dist/service/sns/filter/sim-sns-filter-key-rule.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-matches.d.ts +9 -0
- package/dist/service/sns/filter/sim-sns-filter-matches.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-matches.js +40 -0
- package/dist/service/sns/filter/sim-sns-filter-matches.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-operators.d.ts +22 -0
- package/dist/service/sns/filter/sim-sns-filter-operators.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-operators.js +50 -0
- package/dist/service/sns/filter/sim-sns-filter-operators.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-or-eligibility.d.ts +17 -0
- package/dist/service/sns/filter/sim-sns-filter-or-eligibility.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-or-eligibility.js +47 -0
- package/dist/service/sns/filter/sim-sns-filter-or-eligibility.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-policy-scope.d.ts +36 -0
- package/dist/service/sns/filter/sim-sns-filter-policy-scope.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-policy-scope.js +67 -0
- package/dist/service/sns/filter/sim-sns-filter-policy-scope.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-policy.d.ts +48 -0
- package/dist/service/sns/filter/sim-sns-filter-policy.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-policy.js +84 -0
- package/dist/service/sns/filter/sim-sns-filter-policy.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-refusals.d.ts +38 -0
- package/dist/service/sns/filter/sim-sns-filter-refusals.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-refusals.js +53 -0
- package/dist/service/sns/filter/sim-sns-filter-refusals.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-rule.d.ts +15 -0
- package/dist/service/sns/filter/sim-sns-filter-rule.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-rule.js +2 -0
- package/dist/service/sns/filter/sim-sns-filter-rule.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-rules.d.ts +27 -0
- package/dist/service/sns/filter/sim-sns-filter-rules.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-rules.js +66 -0
- package/dist/service/sns/filter/sim-sns-filter-rules.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-subject.d.ts +31 -0
- package/dist/service/sns/filter/sim-sns-filter-subject.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-subject.js +2 -0
- package/dist/service/sns/filter/sim-sns-filter-subject.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-value.d.ts +45 -0
- package/dist/service/sns/filter/sim-sns-filter-value.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-filter-value.js +83 -0
- package/dist/service/sns/filter/sim-sns-filter-value.js.map +1 -0
- package/dist/service/sns/filter/sim-sns-json-filter-values.d.ts +12 -0
- package/dist/service/sns/filter/sim-sns-json-filter-values.d.ts.map +1 -0
- package/dist/service/sns/filter/sim-sns-json-filter-values.js +25 -0
- package/dist/service/sns/filter/sim-sns-json-filter-values.js.map +1 -0
- package/dist/service/sns/index.d.ts +33 -0
- package/dist/service/sns/index.d.ts.map +1 -0
- package/dist/service/sns/index.js +29 -0
- package/dist/service/sns/index.js.map +1 -0
- package/dist/service/sns/message/sim-sns-message-attribute-rules.d.ts +23 -0
- package/dist/service/sns/message/sim-sns-message-attribute-rules.d.ts.map +1 -0
- package/dist/service/sns/message/sim-sns-message-attribute-rules.js +74 -0
- package/dist/service/sns/message/sim-sns-message-attribute-rules.js.map +1 -0
- package/dist/service/sns/message/sim-sns-message-attribute-value.d.ts +15 -0
- package/dist/service/sns/message/sim-sns-message-attribute-value.d.ts.map +1 -0
- package/dist/service/sns/message/sim-sns-message-attribute-value.js +2 -0
- package/dist/service/sns/message/sim-sns-message-attribute-value.js.map +1 -0
- package/dist/service/sns/message/sim-sns-message-attribute.d.ts +55 -0
- package/dist/service/sns/message/sim-sns-message-attribute.d.ts.map +1 -0
- package/dist/service/sns/message/sim-sns-message-attribute.js +78 -0
- package/dist/service/sns/message/sim-sns-message-attribute.js.map +1 -0
- package/dist/service/sns/message/sim-sns-message-attributes.d.ts +71 -0
- package/dist/service/sns/message/sim-sns-message-attributes.d.ts.map +1 -0
- package/dist/service/sns/message/sim-sns-message-attributes.js +80 -0
- package/dist/service/sns/message/sim-sns-message-attributes.js.map +1 -0
- package/dist/service/sns/message/sim-sns-message-body.d.ts +17 -0
- package/dist/service/sns/message/sim-sns-message-body.d.ts.map +1 -0
- package/dist/service/sns/message/sim-sns-message-body.js +26 -0
- package/dist/service/sns/message/sim-sns-message-body.js.map +1 -0
- package/dist/service/sns/message/sim-sns-message-subject.d.ts +27 -0
- package/dist/service/sns/message/sim-sns-message-subject.d.ts.map +1 -0
- package/dist/service/sns/message/sim-sns-message-subject.js +74 -0
- package/dist/service/sns/message/sim-sns-message-subject.js.map +1 -0
- package/dist/service/sns/message/sim-sns-published-message.d.ts +55 -0
- package/dist/service/sns/message/sim-sns-published-message.d.ts.map +1 -0
- package/dist/service/sns/message/sim-sns-published-message.js +69 -0
- package/dist/service/sns/message/sim-sns-published-message.js.map +1 -0
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.d.ts +18 -0
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.d.ts.map +1 -0
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.js +76 -0
- package/dist/service/sns/sdk/sim-sns-sdk-command-router.js.map +1 -0
- package/dist/service/sns/signature/sim-sns-certificate.d.ts +30 -0
- package/dist/service/sns/signature/sim-sns-certificate.d.ts.map +1 -0
- package/dist/service/sns/signature/sim-sns-certificate.js +110 -0
- package/dist/service/sns/signature/sim-sns-certificate.js.map +1 -0
- package/dist/service/sns/signature/sim-sns-der.d.ts +40 -0
- package/dist/service/sns/signature/sim-sns-der.d.ts.map +1 -0
- package/dist/service/sns/signature/sim-sns-der.js +64 -0
- package/dist/service/sns/signature/sim-sns-der.js.map +1 -0
- package/dist/service/sns/signature/sim-sns-host.d.ts +28 -0
- package/dist/service/sns/signature/sim-sns-host.d.ts.map +1 -0
- package/dist/service/sns/signature/sim-sns-host.js +33 -0
- package/dist/service/sns/signature/sim-sns-host.js.map +1 -0
- package/dist/service/sns/signature/sim-sns-message-signer.d.ts +51 -0
- package/dist/service/sns/signature/sim-sns-message-signer.d.ts.map +1 -0
- package/dist/service/sns/signature/sim-sns-message-signer.js +60 -0
- package/dist/service/sns/signature/sim-sns-message-signer.js.map +1 -0
- package/dist/service/sns/signature/sim-sns-signing-key.d.ts +34 -0
- package/dist/service/sns/signature/sim-sns-signing-key.d.ts.map +1 -0
- package/dist/service/sns/signature/sim-sns-signing-key.js +69 -0
- package/dist/service/sns/signature/sim-sns-signing-key.js.map +1 -0
- package/dist/service/sns/sim-sns.d.ts +139 -0
- package/dist/service/sns/sim-sns.d.ts.map +1 -0
- package/dist/service/sns/sim-sns.js +188 -0
- package/dist/service/sns/sim-sns.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.d.ts +31 -0
- package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.d.ts.map +1 -0
- package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.js +54 -0
- package/dist/service/sns/subscription/sim-sns-function-endpoint-arn.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-queue-endpoint-arn.d.ts +30 -0
- package/dist/service/sns/subscription/sim-sns-queue-endpoint-arn.d.ts.map +1 -0
- package/dist/service/sns/subscription/sim-sns-queue-endpoint-arn.js +78 -0
- package/dist/service/sns/subscription/sim-sns-queue-endpoint-arn.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-requested-subscription-attributes.d.ts +28 -0
- package/dist/service/sns/subscription/sim-sns-requested-subscription-attributes.d.ts.map +1 -0
- package/dist/service/sns/subscription/sim-sns-requested-subscription-attributes.js +43 -0
- package/dist/service/sns/subscription/sim-sns-requested-subscription-attributes.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-arn.d.ts +43 -0
- package/dist/service/sns/subscription/sim-sns-subscription-arn.d.ts.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-arn.js +70 -0
- package/dist/service/sns/subscription/sim-sns-subscription-arn.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-attribute-changes.d.ts +20 -0
- package/dist/service/sns/subscription/sim-sns-subscription-attribute-changes.d.ts.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-attribute-changes.js +52 -0
- package/dist/service/sns/subscription/sim-sns-subscription-attribute-changes.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-attribute-names.d.ts +26 -0
- package/dist/service/sns/subscription/sim-sns-subscription-attribute-names.d.ts.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-attribute-names.js +64 -0
- package/dist/service/sns/subscription/sim-sns-subscription-attribute-names.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-attributes.d.ts +47 -0
- package/dist/service/sns/subscription/sim-sns-subscription-attributes.d.ts.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-attributes.js +67 -0
- package/dist/service/sns/subscription/sim-sns-subscription-attributes.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.d.ts +26 -0
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.d.ts.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.js +21 -0
- package/dist/service/sns/subscription/sim-sns-subscription-endpoint.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts +33 -0
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.js +63 -0
- package/dist/service/sns/subscription/sim-sns-subscription-protocol.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-store.d.ts +71 -0
- package/dist/service/sns/subscription/sim-sns-subscription-store.d.ts.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription-store.js +88 -0
- package/dist/service/sns/subscription/sim-sns-subscription-store.js.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription.d.ts +72 -0
- package/dist/service/sns/subscription/sim-sns-subscription.d.ts.map +1 -0
- package/dist/service/sns/subscription/sim-sns-subscription.js +116 -0
- package/dist/service/sns/subscription/sim-sns-subscription.js.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic-arn.d.ts +52 -0
- package/dist/service/sns/topic/sim-sns-topic-arn.d.ts.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic-arn.js +71 -0
- package/dist/service/sns/topic/sim-sns-topic-arn.js.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic-attribute-names.d.ts +19 -0
- package/dist/service/sns/topic/sim-sns-topic-attribute-names.d.ts.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic-attribute-names.js +79 -0
- package/dist/service/sns/topic/sim-sns-topic-attribute-names.js.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic-attributes.d.ts +56 -0
- package/dist/service/sns/topic/sim-sns-topic-attributes.d.ts.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic-attributes.js +85 -0
- package/dist/service/sns/topic/sim-sns-topic-attributes.js.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic-name.d.ts +21 -0
- package/dist/service/sns/topic/sim-sns-topic-name.d.ts.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic-name.js +48 -0
- package/dist/service/sns/topic/sim-sns-topic-name.js.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic-policy.d.ts +23 -0
- package/dist/service/sns/topic/sim-sns-topic-policy.d.ts.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic-policy.js +59 -0
- package/dist/service/sns/topic/sim-sns-topic-policy.js.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic-store.d.ts +35 -0
- package/dist/service/sns/topic/sim-sns-topic-store.d.ts.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic-store.js +50 -0
- package/dist/service/sns/topic/sim-sns-topic-store.js.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic.d.ts +48 -0
- package/dist/service/sns/topic/sim-sns-topic.d.ts.map +1 -0
- package/dist/service/sns/topic/sim-sns-topic.js +80 -0
- package/dist/service/sns/topic/sim-sns-topic.js.map +1 -0
- package/dist/service/sqs/command/authorize/sim-sqs-authorizer.d.ts +3 -6
- package/dist/service/sqs/command/authorize/sim-sqs-authorizer.d.ts.map +1 -1
- package/dist/service/sqs/command/authorize/sim-sqs-authorizer.js +13 -7
- package/dist/service/sqs/command/authorize/sim-sqs-authorizer.js.map +1 -1
- package/dist/service/sqs/index.d.ts +1 -1
- package/dist/service/sqs/index.d.ts.map +1 -1
- package/dist/service/sqs/index.js +1 -1
- package/dist/service/sqs/index.js.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-arn.d.ts +0 -7
- package/dist/service/sqs/queue/sim-sqs-queue-arn.d.ts.map +1 -1
- package/dist/service/sqs/queue/sim-sqs-queue-arn.js +0 -9
- package/dist/service/sqs/queue/sim-sqs-queue-arn.js.map +1 -1
- package/dist/service/sqs/sim-sqs.js +1 -1
- package/dist/service/sqs/sim-sqs.js.map +1 -1
- package/package.json +7 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The hostname the URLs in a delivered message name.
|
|
3
|
+
*
|
|
4
|
+
* Real SNS puts `sns.<region>.amazonaws.com` in the `SigningCertURL` and the
|
|
5
|
+
* `UnsubscribeURL` of every message it delivers. A simulated message names
|
|
6
|
+
* `sns.<region>.yulin.invalid` instead, because neither URL can be fetched:
|
|
7
|
+
* simulated SNS is not served over HTTP, and the certificate is handed out
|
|
8
|
+
* in process by `SimSns.signingCertificate`.
|
|
9
|
+
*
|
|
10
|
+
* `.invalid` is the reserved top level domain for exactly this. A consumer that
|
|
11
|
+
* does try to fetch one of these URLs fails to resolve it, rather than reaching
|
|
12
|
+
* real AWS and being answered by a certificate that signed nothing here.
|
|
13
|
+
*
|
|
14
|
+
* This is a divergence a real signature verifier notices. `sns-validator`
|
|
15
|
+
* hard-codes an `amazonaws.com` certificate host and fetches the URL itself, so
|
|
16
|
+
* it cannot verify a simulated message as it stands. Verifying one means
|
|
17
|
+
* checking the signature against the certificate `SimSns.signingCertificate`
|
|
18
|
+
* hands over, which is what the docs show.
|
|
19
|
+
*/
|
|
20
|
+
export function simSnsHost(regionName) {
|
|
21
|
+
return `sns.${regionName}.yulin.invalid`;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The URL a delivered message names to say how to stop receiving them.
|
|
25
|
+
*
|
|
26
|
+
* Real SNS carries this in every envelope, and it is the same shape here with
|
|
27
|
+
* the simulated host in front of it.
|
|
28
|
+
*/
|
|
29
|
+
export function simSnsUnsubscribeUrl(regionName, subscriptionArn) {
|
|
30
|
+
return (`https://${simSnsHost(regionName)}/?Action=Unsubscribe` +
|
|
31
|
+
`&SubscriptionArn=${encodeURIComponent(subscriptionArn)}`);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=sim-sns-host.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-sns-host.js","sourceRoot":"","sources":["../../../../src/service/sns/signature/sim-sns-host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,UAAU,CAAC,UAAkB;IAC3C,OAAO,OAAO,UAAU,gBAAgB,CAAC;AAC3C,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAClC,UAAkB,EAClB,eAAuB;IAEvB,OAAO,CACL,WAAW,UAAU,CAAC,UAAU,CAAC,sBAAsB;QACvD,oBAAoB,kBAAkB,CAAC,eAAe,CAAC,EAAE,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { SimAwsAccountRegionScope } from "../../aws/sim-aws-account-region-scope.js";
|
|
2
|
+
/**
|
|
3
|
+
* The signature version real SNS signs with unless a topic opts into version 2.
|
|
4
|
+
*
|
|
5
|
+
* Version 1 is SHA1withRSA. The `SignatureVersion` topic attribute, which is
|
|
6
|
+
* how a real topic asks for version 2, is refused here, so every message
|
|
7
|
+
* carries this.
|
|
8
|
+
*/
|
|
9
|
+
export declare const simSnsSignatureVersion = "1";
|
|
10
|
+
/**
|
|
11
|
+
* What a signature adds to a delivered message.
|
|
12
|
+
*/
|
|
13
|
+
export interface SimSnsSignatureFields {
|
|
14
|
+
readonly SignatureVersion: string;
|
|
15
|
+
readonly Signature: string;
|
|
16
|
+
readonly SigningCertURL: string;
|
|
17
|
+
}
|
|
18
|
+
interface SimSnsMessageSignerProperties {
|
|
19
|
+
readonly accountRegionScope: SimAwsAccountRegionScope;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Signs the messages one simulated SNS scope delivers.
|
|
23
|
+
*
|
|
24
|
+
* The key belongs to the scope rather than to a topic, which is how real SNS
|
|
25
|
+
* works: one certificate per Region signs every message that Region sends. It
|
|
26
|
+
* is generated on first use, because generating RSA takes long enough to
|
|
27
|
+
* notice and a scope that never delivers anything never needs one.
|
|
28
|
+
*/
|
|
29
|
+
export declare class SimSnsMessageSigner {
|
|
30
|
+
private readonly host;
|
|
31
|
+
private held;
|
|
32
|
+
constructor(properties: SimSnsMessageSignerProperties);
|
|
33
|
+
/**
|
|
34
|
+
* Sign the canonical form of one message.
|
|
35
|
+
*/
|
|
36
|
+
sign(canonicalMessage: string): SimSnsSignatureFields;
|
|
37
|
+
/**
|
|
38
|
+
* The certificate a `SigningCertURL` names, or nothing when it names another.
|
|
39
|
+
*
|
|
40
|
+
* This is how a verifier gets at the certificate, because the URL cannot be
|
|
41
|
+
* fetched: simulated SNS is not served over HTTP. A URL this scope did not
|
|
42
|
+
* issue answers with nothing rather than with the certificate it has, so a
|
|
43
|
+
* message signed by another scope is not accidentally verified against the
|
|
44
|
+
* wrong key.
|
|
45
|
+
*/
|
|
46
|
+
certificateFor(signingCertUrl: string): string | undefined;
|
|
47
|
+
private certificateUrl;
|
|
48
|
+
private key;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=sim-sns-message-signer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-sns-message-signer.d.ts","sourceRoot":"","sources":["../../../../src/service/sns/signature/sim-sns-message-signer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAI1F;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED,UAAU,6BAA6B;IACrC,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;CACvD;AAED;;;;;;;GAOG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;IAC9B,OAAO,CAAC,IAAI,CAA+B;IAE3C,YAAY,UAAU,EAAE,6BAA6B,EAEpD;IAED;;OAEG;IACH,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,qBAAqB,CAQpD;IAED;;;;;;;;OAQG;IACH,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQzD;IAED,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,GAAG;CAKZ"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { simSnsHost } from "./sim-sns-host.js";
|
|
2
|
+
import { SimSnsSigningKey } from "./sim-sns-signing-key.js";
|
|
3
|
+
/**
|
|
4
|
+
* The signature version real SNS signs with unless a topic opts into version 2.
|
|
5
|
+
*
|
|
6
|
+
* Version 1 is SHA1withRSA. The `SignatureVersion` topic attribute, which is
|
|
7
|
+
* how a real topic asks for version 2, is refused here, so every message
|
|
8
|
+
* carries this.
|
|
9
|
+
*/
|
|
10
|
+
export const simSnsSignatureVersion = "1";
|
|
11
|
+
/**
|
|
12
|
+
* Signs the messages one simulated SNS scope delivers.
|
|
13
|
+
*
|
|
14
|
+
* The key belongs to the scope rather than to a topic, which is how real SNS
|
|
15
|
+
* works: one certificate per Region signs every message that Region sends. It
|
|
16
|
+
* is generated on first use, because generating RSA takes long enough to
|
|
17
|
+
* notice and a scope that never delivers anything never needs one.
|
|
18
|
+
*/
|
|
19
|
+
export class SimSnsMessageSigner {
|
|
20
|
+
host;
|
|
21
|
+
held;
|
|
22
|
+
constructor(properties) {
|
|
23
|
+
this.host = simSnsHost(properties.accountRegionScope.regionName);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Sign the canonical form of one message.
|
|
27
|
+
*/
|
|
28
|
+
sign(canonicalMessage) {
|
|
29
|
+
const key = this.key();
|
|
30
|
+
return {
|
|
31
|
+
SignatureVersion: simSnsSignatureVersion,
|
|
32
|
+
Signature: key.sign(canonicalMessage),
|
|
33
|
+
SigningCertURL: this.certificateUrl(key),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The certificate a `SigningCertURL` names, or nothing when it names another.
|
|
38
|
+
*
|
|
39
|
+
* This is how a verifier gets at the certificate, because the URL cannot be
|
|
40
|
+
* fetched: simulated SNS is not served over HTTP. A URL this scope did not
|
|
41
|
+
* issue answers with nothing rather than with the certificate it has, so a
|
|
42
|
+
* message signed by another scope is not accidentally verified against the
|
|
43
|
+
* wrong key.
|
|
44
|
+
*/
|
|
45
|
+
certificateFor(signingCertUrl) {
|
|
46
|
+
const key = this.held;
|
|
47
|
+
if (key === undefined || this.certificateUrl(key) !== signingCertUrl) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
return key.certificatePem;
|
|
51
|
+
}
|
|
52
|
+
certificateUrl(key) {
|
|
53
|
+
return `https://${this.host}/SimulatedNotificationService-${key.fingerprint}.pem`;
|
|
54
|
+
}
|
|
55
|
+
key() {
|
|
56
|
+
this.held ??= SimSnsSigningKey.generate(this.host);
|
|
57
|
+
return this.held;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=sim-sns-message-signer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-sns-message-signer.js","sourceRoot":"","sources":["../../../../src/service/sns/signature/sim-sns-message-signer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAe1C;;;;;;;GAOG;AACH,MAAM,OAAO,mBAAmB;IACb,IAAI,CAAS;IACtB,IAAI,CAA+B;IAE3C,YAAY,UAAyC;QACnD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,gBAAwB;QAC3B,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAEvB,OAAO;YACL,gBAAgB,EAAE,sBAAsB;YACxC,SAAS,EAAE,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC;YACrC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC;SACzC,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,cAAc,CAAC,cAAsB;QACnC,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QAEtB,IAAI,GAAG,KAAK,SAAS,IAAI,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,cAAc,EAAE,CAAC;YACrE,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,GAAG,CAAC,cAAc,CAAC;IAC5B,CAAC;IAEO,cAAc,CAAC,GAAqB;QAC1C,OAAO,WAAW,IAAI,CAAC,IAAI,iCAAiC,GAAG,CAAC,WAAW,MAAM,CAAC;IACpF,CAAC;IAEO,GAAG;QACT,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEnD,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The key one simulated SNS scope signs its messages with.
|
|
3
|
+
*
|
|
4
|
+
* The key material is real, generated with `node:crypto`, and the signature is
|
|
5
|
+
* a real SHA1withRSA signature over the string real SNS signs. A verifier can
|
|
6
|
+
* therefore check a delivered message against the certificate, rather than
|
|
7
|
+
* being handed a `Signature` field it has no way to use.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SimSnsSigningKey {
|
|
10
|
+
readonly fingerprint: string;
|
|
11
|
+
readonly certificatePem: string;
|
|
12
|
+
private readonly privateKey;
|
|
13
|
+
private constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Generate a key pair for a simulated SNS scope.
|
|
16
|
+
*
|
|
17
|
+
* A scope generates its own on first use rather than at construction,
|
|
18
|
+
* because generating 2048-bit RSA takes long enough to notice and most
|
|
19
|
+
* simulated SNS scopes in a test suite never deliver anything. Nothing is
|
|
20
|
+
* written to disk, and no key material is committed: a private key in the
|
|
21
|
+
* repository would set off secret scanners for no gain.
|
|
22
|
+
*/
|
|
23
|
+
static generate(subjectName: string): SimSnsSigningKey;
|
|
24
|
+
/**
|
|
25
|
+
* Sign the canonical form of a message, as real SNS signs it.
|
|
26
|
+
*
|
|
27
|
+
* Signature version 1 is SHA1withRSA, and the signature travels base64
|
|
28
|
+
* encoded in the envelope. SHA-1 is weak, and it is what real SNS uses for
|
|
29
|
+
* version 1: a simulation signing with something else would produce a
|
|
30
|
+
* signature a real verifier could not check.
|
|
31
|
+
*/
|
|
32
|
+
sign(canonicalMessage: string): string;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=sim-sns-signing-key.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-sns-signing-key.d.ts","sourceRoot":"","sources":["../../../../src/service/sns/signature/sim-sns-signing-key.ts"],"names":[],"mappings":"AAwBA;;;;;;;GAOG;AACH,qBAAa,gBAAgB;IAC3B,SAAgB,WAAW,EAAE,MAAM,CAAC;IACpC,SAAgB,cAAc,EAAE,MAAM,CAAC;IAEvC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAY;IAEvC,OAAO,eAgBN;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,gBAAgB,CAErD;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAKrC;CACF"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { createHash, createSign, generateKeyPairSync, } from "node:crypto";
|
|
2
|
+
import { simSnsSelfSignedCertificatePem, simSnsSerialNumber, } from "./sim-sns-certificate.js";
|
|
3
|
+
/**
|
|
4
|
+
* The RSA modulus size real SNS signs with.
|
|
5
|
+
*/
|
|
6
|
+
const modulusLength = 2048;
|
|
7
|
+
/**
|
|
8
|
+
* How many characters of the key's digest name the certificate.
|
|
9
|
+
*
|
|
10
|
+
* Real SNS puts an opaque hash in the certificate's file name. This is the
|
|
11
|
+
* same idea, and it means the URL names the key it actually belongs to.
|
|
12
|
+
*/
|
|
13
|
+
const fingerprintLength = 32;
|
|
14
|
+
/**
|
|
15
|
+
* The key one simulated SNS scope signs its messages with.
|
|
16
|
+
*
|
|
17
|
+
* The key material is real, generated with `node:crypto`, and the signature is
|
|
18
|
+
* a real SHA1withRSA signature over the string real SNS signs. A verifier can
|
|
19
|
+
* therefore check a delivered message against the certificate, rather than
|
|
20
|
+
* being handed a `Signature` field it has no way to use.
|
|
21
|
+
*/
|
|
22
|
+
export class SimSnsSigningKey {
|
|
23
|
+
fingerprint;
|
|
24
|
+
certificatePem;
|
|
25
|
+
privateKey;
|
|
26
|
+
constructor(subjectName) {
|
|
27
|
+
const { privateKey, publicKey } = generateKeyPairSync("rsa", {
|
|
28
|
+
modulusLength,
|
|
29
|
+
});
|
|
30
|
+
const digest = createHash("sha256")
|
|
31
|
+
.update(publicKey.export({ type: "spki", format: "der" }))
|
|
32
|
+
.digest();
|
|
33
|
+
this.privateKey = privateKey;
|
|
34
|
+
this.fingerprint = digest.toString("hex").slice(0, fingerprintLength);
|
|
35
|
+
this.certificatePem = simSnsSelfSignedCertificatePem({
|
|
36
|
+
privateKey,
|
|
37
|
+
publicKey,
|
|
38
|
+
subjectName,
|
|
39
|
+
serialNumber: simSnsSerialNumber(digest),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Generate a key pair for a simulated SNS scope.
|
|
44
|
+
*
|
|
45
|
+
* A scope generates its own on first use rather than at construction,
|
|
46
|
+
* because generating 2048-bit RSA takes long enough to notice and most
|
|
47
|
+
* simulated SNS scopes in a test suite never deliver anything. Nothing is
|
|
48
|
+
* written to disk, and no key material is committed: a private key in the
|
|
49
|
+
* repository would set off secret scanners for no gain.
|
|
50
|
+
*/
|
|
51
|
+
static generate(subjectName) {
|
|
52
|
+
return new SimSnsSigningKey(subjectName);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Sign the canonical form of a message, as real SNS signs it.
|
|
56
|
+
*
|
|
57
|
+
* Signature version 1 is SHA1withRSA, and the signature travels base64
|
|
58
|
+
* encoded in the envelope. SHA-1 is weak, and it is what real SNS uses for
|
|
59
|
+
* version 1: a simulation signing with something else would produce a
|
|
60
|
+
* signature a real verifier could not check.
|
|
61
|
+
*/
|
|
62
|
+
sign(canonicalMessage) {
|
|
63
|
+
return createSign("RSA-SHA1")
|
|
64
|
+
.update(canonicalMessage, "utf8")
|
|
65
|
+
.sign(this.privateKey)
|
|
66
|
+
.toString("base64");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=sim-sns-signing-key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-sns-signing-key.js","sourceRoot":"","sources":["../../../../src/service/sns/signature/sim-sns-signing-key.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,UAAU,EACV,mBAAmB,GAEpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,8BAA8B,EAC9B,kBAAkB,GACnB,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,MAAM,aAAa,GAAG,IAAI,CAAC;AAE3B;;;;;GAKG;AACH,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B;;;;;;;GAOG;AACH,MAAM,OAAO,gBAAgB;IACX,WAAW,CAAS;IACpB,cAAc,CAAS;IAEtB,UAAU,CAAY;IAEvC,YAAoB,WAAmB;QACrC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,mBAAmB,CAAC,KAAK,EAAE;YAC3D,aAAa;SACd,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC;aAChC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;aACzD,MAAM,EAAE,CAAC;QAEZ,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC;QACtE,IAAI,CAAC,cAAc,GAAG,8BAA8B,CAAC;YACnD,UAAU;YACV,SAAS;YACT,WAAW;YACX,YAAY,EAAE,kBAAkB,CAAC,MAAM,CAAC;SACzC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,QAAQ,CAAC,WAAmB;QACjC,OAAO,IAAI,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,gBAAwB;QAC3B,OAAO,UAAU,CAAC,UAAU,CAAC;aAC1B,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC;aAChC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;aACrB,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { type BackgroundScheduler } from "../../util/background/background.js";
|
|
2
|
+
import type { SimSdkCommandRouter } from "../../sdk/router/sim-sdk-command-router.type.js";
|
|
3
|
+
import type { SimAwsAccountRegionScope } from "../aws/sim-aws-account-region-scope.js";
|
|
4
|
+
import { type SimIamInterServiceAuthZ } from "../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
5
|
+
import type { SimSnsDeliveryEndpoints } from "./delivery/sim-sns-delivery.js";
|
|
6
|
+
import type { SimSnsDeliveryFailure } from "./delivery/sim-sns-delivery-failures.js";
|
|
7
|
+
import type * as simSnsCommands from "./command/sim-sns-command.types.js";
|
|
8
|
+
import type { SimSnsRequestOptions } from "./command/sim-sns-request-options.js";
|
|
9
|
+
import { SimSnsCfnResourceFactory } from "./cfn/sim-sns-cfn-resource-factory.js";
|
|
10
|
+
import type { SimSnsSubscription } from "./subscription/sim-sns-subscription.js";
|
|
11
|
+
import type { SimSnsTopic } from "./topic/sim-sns-topic.js";
|
|
12
|
+
interface SimSnsProperties {
|
|
13
|
+
readonly accountRegionScope?: SimAwsAccountRegionScope;
|
|
14
|
+
readonly iam?: SimIamInterServiceAuthZ;
|
|
15
|
+
readonly background?: BackgroundScheduler;
|
|
16
|
+
/**
|
|
17
|
+
* Where this scope's subscriptions deliver to.
|
|
18
|
+
*
|
|
19
|
+
* A SimSns built on its own has none, since a queue or a function in another
|
|
20
|
+
* simulated service is only reachable through SimAws.
|
|
21
|
+
*/
|
|
22
|
+
readonly deliveryEndpoints?: SimSnsDeliveryEndpoints;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Simulated SNS. Handles SDK commands. Emulates AWS behaviour and state.
|
|
26
|
+
*
|
|
27
|
+
* Topics are scoped to an account and region, as they are on real AWS: a topic
|
|
28
|
+
* name is unique within one of those scopes, and the ARN a request reaches a
|
|
29
|
+
* topic by names the region.
|
|
30
|
+
*
|
|
31
|
+
* Only standard topics are simulated. FIFO topics are not.
|
|
32
|
+
*/
|
|
33
|
+
export declare class SimSns {
|
|
34
|
+
private readonly topics;
|
|
35
|
+
private readonly subscriptions;
|
|
36
|
+
private readonly commands;
|
|
37
|
+
private readonly background;
|
|
38
|
+
private readonly sdkRouter;
|
|
39
|
+
private readonly cfnFactory;
|
|
40
|
+
constructor(properties?: SimSnsProperties);
|
|
41
|
+
/**
|
|
42
|
+
* Every message this simulated SNS could not deliver.
|
|
43
|
+
*
|
|
44
|
+
* Real SNS tells the publisher nothing about a failed delivery, and neither
|
|
45
|
+
* does this. A queue that is unexpectedly empty is explained here.
|
|
46
|
+
*/
|
|
47
|
+
get deliveryFailures(): readonly SimSnsDeliveryFailure[];
|
|
48
|
+
/**
|
|
49
|
+
* The certificate a delivered message's `SigningCertURL` names.
|
|
50
|
+
*
|
|
51
|
+
* The URL cannot be fetched, because simulated SNS is not served over HTTP,
|
|
52
|
+
* so this is how a verifier gets at the certificate to check a signature
|
|
53
|
+
* with. A URL this scope did not issue answers with nothing.
|
|
54
|
+
*/
|
|
55
|
+
signingCertificate(signingCertUrl: string): string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Find a topic by name.
|
|
58
|
+
*
|
|
59
|
+
* This is the simulator's own accessor, for tests seeding or inspecting topic
|
|
60
|
+
* state without going through a Command and its authorization.
|
|
61
|
+
*/
|
|
62
|
+
findTopic(name: string): SimSnsTopic | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* The subscriptions of a topic, by topic name.
|
|
65
|
+
*
|
|
66
|
+
* This is the simulator's own accessor, for a test inspecting what a topic
|
|
67
|
+
* would deliver to without going through a Command and its authorization.
|
|
68
|
+
*/
|
|
69
|
+
topicSubscriptions(topicName: string): readonly SimSnsSubscription[];
|
|
70
|
+
/**
|
|
71
|
+
* Find a subscription by ARN.
|
|
72
|
+
*
|
|
73
|
+
* This is the simulator's own accessor, for a test or a CloudFormation
|
|
74
|
+
* Resource holding the ARN a Subscribe answered with.
|
|
75
|
+
*/
|
|
76
|
+
findSubscription(arn: string): SimSnsSubscription | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Handle a CreateTopic Command from the SDK.
|
|
79
|
+
*/
|
|
80
|
+
createTopic(command: simSnsCommands.SimCreateTopicCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimCreateTopicCommandOutput>;
|
|
81
|
+
/**
|
|
82
|
+
* Handle a ListTopics Command from the SDK.
|
|
83
|
+
*/
|
|
84
|
+
listTopics(command: simSnsCommands.SimListTopicsCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimListTopicsCommandOutput>;
|
|
85
|
+
/**
|
|
86
|
+
* Handle a DeleteTopic Command from the SDK.
|
|
87
|
+
*/
|
|
88
|
+
deleteTopic(command: simSnsCommands.SimDeleteTopicCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimDeleteTopicCommandOutput>;
|
|
89
|
+
/**
|
|
90
|
+
* Handle a GetTopicAttributes Command from the SDK.
|
|
91
|
+
*/
|
|
92
|
+
getTopicAttributes(command: simSnsCommands.SimGetTopicAttributesCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimGetTopicAttributesCommandOutput>;
|
|
93
|
+
/**
|
|
94
|
+
* Handle a SetTopicAttributes Command from the SDK.
|
|
95
|
+
*/
|
|
96
|
+
setTopicAttributes(command: simSnsCommands.SimSetTopicAttributesCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimSetTopicAttributesCommandOutput>;
|
|
97
|
+
/**
|
|
98
|
+
* Handle a Subscribe Command from the SDK.
|
|
99
|
+
*/
|
|
100
|
+
subscribe(command: simSnsCommands.SimSubscribeCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimSubscribeCommandOutput>;
|
|
101
|
+
/**
|
|
102
|
+
* Handle an Unsubscribe Command from the SDK.
|
|
103
|
+
*/
|
|
104
|
+
unsubscribe(command: simSnsCommands.SimUnsubscribeCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimUnsubscribeCommandOutput>;
|
|
105
|
+
/**
|
|
106
|
+
* Handle a ListSubscriptions Command from the SDK.
|
|
107
|
+
*/
|
|
108
|
+
listSubscriptions(command: simSnsCommands.SimListSubscriptionsCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimListSubscriptionsCommandOutput>;
|
|
109
|
+
/**
|
|
110
|
+
* Handle a ListSubscriptionsByTopic Command from the SDK.
|
|
111
|
+
*/
|
|
112
|
+
listSubscriptionsByTopic(command: simSnsCommands.SimListSubscriptionsByTopicCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimListSubscriptionsByTopicCommandOutput>;
|
|
113
|
+
/**
|
|
114
|
+
* Handle a GetSubscriptionAttributes Command from the SDK.
|
|
115
|
+
*/
|
|
116
|
+
getSubscriptionAttributes(command: simSnsCommands.SimGetSubscriptionAttributesCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimGetSubscriptionAttributesCommandOutput>;
|
|
117
|
+
/**
|
|
118
|
+
* Handle a SetSubscriptionAttributes Command from the SDK.
|
|
119
|
+
*/
|
|
120
|
+
setSubscriptionAttributes(command: simSnsCommands.SimSetSubscriptionAttributesCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimSetSubscriptionAttributesCommandOutput>;
|
|
121
|
+
/**
|
|
122
|
+
* Handle a Publish Command from the SDK.
|
|
123
|
+
*/
|
|
124
|
+
publish(command: simSnsCommands.SimPublishCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimPublishCommandOutput>;
|
|
125
|
+
/**
|
|
126
|
+
* Handle a PublishBatch Command from the SDK.
|
|
127
|
+
*/
|
|
128
|
+
publishBatch(command: simSnsCommands.SimPublishBatchCommand, options?: SimSnsRequestOptions): Promise<simSnsCommands.SimPublishBatchCommandOutput>;
|
|
129
|
+
/**
|
|
130
|
+
* Get this service's CloudFormation Resource factory.
|
|
131
|
+
*/
|
|
132
|
+
cfnResourceFactory(): SimSnsCfnResourceFactory;
|
|
133
|
+
/**
|
|
134
|
+
* Get this service's SDK Command router for SDK client interception.
|
|
135
|
+
*/
|
|
136
|
+
sdkCommandRouter(): SimSdkCommandRouter;
|
|
137
|
+
}
|
|
138
|
+
export {};
|
|
139
|
+
//# sourceMappingURL=sim-sns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-sns.d.ts","sourceRoot":"","sources":["../../../src/service/sns/sim-sns.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEvF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO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E,oBAAoB,GAC7B,OAAO,CAAC,cAAc,CAAC,iCAAiC,CAAC,CAM3D;IAED;;OAEG;IACG,wBAAwB,CAC5B,OAAO,EAAE,cAAc,CAAC,kCAAkC,EAC1D,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,cAAc,CAAC,wCAAwC,CAAC,CAMlE;IAED;;OAEG;IACG,yBAAyB,CAC7B,OAAO,EAAE,cAAc,CAAC,mCAAmC,EAC3D,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,cAAc,CAAC,yCAAyC,CAAC,CAMnE;IAED;;OAEG;IACG,yBAAyB,CAC7B,OAAO,EAAE,cAAc,CAAC,mCAAmC,EAC3D,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,cAAc,CAAC,yCAAyC,CAAC,CAMnE;IAED;;OAEG;IACG,OAAO,CACX,OAAO,EAAE,cAAc,CAAC,iBAAiB,EACzC,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAGjD;IAED;;OAEG;IACG,YAAY,CAChB,OAAO,EAAE,cAAc,CAAC,sBAAsB,EAC9C,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,cAAc,CAAC,4BAA4B,CAAC,CAGtD;IAED;;OAEG;IACH,kBAAkB,IAAI,wBAAwB,CAE7C;IAED;;OAEG;IACH,gBAAgB,IAAI,mBAAmB,CAEtC;CACF"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { BackgroundTasks, } from "../../util/background/background.js";
|
|
2
|
+
import { simAwsAccountRegionScopeFactory } from "../aws/sim-aws-account-region-scope.factory.js";
|
|
3
|
+
import { SimIamAllowAllAuth, } from "../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
4
|
+
import { SimSnsNoDeliveryEndpoints } from "./delivery/sim-sns-no-delivery-endpoints.js";
|
|
5
|
+
import { SimSnsCommands } from "./command/sim-sns-commands.js";
|
|
6
|
+
import { SimSnsCfnResourceFactory } from "./cfn/sim-sns-cfn-resource-factory.js";
|
|
7
|
+
import { SimSnsSdkCommandRouter } from "./sdk/sim-sns-sdk-command-router.js";
|
|
8
|
+
import { SimSnsSubscriptionStore } from "./subscription/sim-sns-subscription-store.js";
|
|
9
|
+
import { SimSnsTopicStore } from "./topic/sim-sns-topic-store.js";
|
|
10
|
+
/**
|
|
11
|
+
* Simulated SNS. Handles SDK commands. Emulates AWS behaviour and state.
|
|
12
|
+
*
|
|
13
|
+
* Topics are scoped to an account and region, as they are on real AWS: a topic
|
|
14
|
+
* name is unique within one of those scopes, and the ARN a request reaches a
|
|
15
|
+
* topic by names the region.
|
|
16
|
+
*
|
|
17
|
+
* Only standard topics are simulated. FIFO topics are not.
|
|
18
|
+
*/
|
|
19
|
+
export class SimSns {
|
|
20
|
+
topics = new SimSnsTopicStore();
|
|
21
|
+
subscriptions = new SimSnsSubscriptionStore();
|
|
22
|
+
commands;
|
|
23
|
+
background;
|
|
24
|
+
sdkRouter = new SimSnsSdkCommandRouter(this);
|
|
25
|
+
cfnFactory = new SimSnsCfnResourceFactory({ sns: this });
|
|
26
|
+
constructor(properties = {}) {
|
|
27
|
+
const { accountRegionScope = simAwsAccountRegionScopeFactory.make(), iam = new SimIamAllowAllAuth(), background = new BackgroundTasks(), deliveryEndpoints = new SimSnsNoDeliveryEndpoints(), } = properties;
|
|
28
|
+
this.background = background;
|
|
29
|
+
this.commands = new SimSnsCommands({
|
|
30
|
+
topics: this.topics,
|
|
31
|
+
subscriptions: this.subscriptions,
|
|
32
|
+
iam,
|
|
33
|
+
background,
|
|
34
|
+
deliveryEndpoints,
|
|
35
|
+
accountRegionScope,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Every message this simulated SNS could not deliver.
|
|
40
|
+
*
|
|
41
|
+
* Real SNS tells the publisher nothing about a failed delivery, and neither
|
|
42
|
+
* does this. A queue that is unexpectedly empty is explained here.
|
|
43
|
+
*/
|
|
44
|
+
get deliveryFailures() {
|
|
45
|
+
return this.commands.fanOut.deliveryFailures;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The certificate a delivered message's `SigningCertURL` names.
|
|
49
|
+
*
|
|
50
|
+
* The URL cannot be fetched, because simulated SNS is not served over HTTP,
|
|
51
|
+
* so this is how a verifier gets at the certificate to check a signature
|
|
52
|
+
* with. A URL this scope did not issue answers with nothing.
|
|
53
|
+
*/
|
|
54
|
+
signingCertificate(signingCertUrl) {
|
|
55
|
+
return this.commands.signer.certificateFor(signingCertUrl);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Find a topic by name.
|
|
59
|
+
*
|
|
60
|
+
* This is the simulator's own accessor, for tests seeding or inspecting topic
|
|
61
|
+
* state without going through a Command and its authorization.
|
|
62
|
+
*/
|
|
63
|
+
findTopic(name) {
|
|
64
|
+
return this.topics.find(name);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The subscriptions of a topic, by topic name.
|
|
68
|
+
*
|
|
69
|
+
* This is the simulator's own accessor, for a test inspecting what a topic
|
|
70
|
+
* would deliver to without going through a Command and its authorization.
|
|
71
|
+
*/
|
|
72
|
+
topicSubscriptions(topicName) {
|
|
73
|
+
return this.subscriptions.forTopic(topicName);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Find a subscription by ARN.
|
|
77
|
+
*
|
|
78
|
+
* This is the simulator's own accessor, for a test or a CloudFormation
|
|
79
|
+
* Resource holding the ARN a Subscribe answered with.
|
|
80
|
+
*/
|
|
81
|
+
findSubscription(arn) {
|
|
82
|
+
return this.subscriptions.find(arn);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Handle a CreateTopic Command from the SDK.
|
|
86
|
+
*/
|
|
87
|
+
async createTopic(command, options) {
|
|
88
|
+
await this.background.sequence();
|
|
89
|
+
return this.commands.topicCreation.handle(command, options);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Handle a ListTopics Command from the SDK.
|
|
93
|
+
*/
|
|
94
|
+
async listTopics(command, options) {
|
|
95
|
+
await this.background.sequence();
|
|
96
|
+
return this.commands.topics.listTopics(command, options);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Handle a DeleteTopic Command from the SDK.
|
|
100
|
+
*/
|
|
101
|
+
async deleteTopic(command, options) {
|
|
102
|
+
await this.background.sequence();
|
|
103
|
+
return this.commands.topics.deleteTopic(command, options);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Handle a GetTopicAttributes Command from the SDK.
|
|
107
|
+
*/
|
|
108
|
+
async getTopicAttributes(command, options) {
|
|
109
|
+
await this.background.sequence();
|
|
110
|
+
return this.commands.topicAttributes.getTopicAttributes(command, options);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Handle a SetTopicAttributes Command from the SDK.
|
|
114
|
+
*/
|
|
115
|
+
async setTopicAttributes(command, options) {
|
|
116
|
+
await this.background.sequence();
|
|
117
|
+
return this.commands.topicAttributes.setTopicAttributes(command, options);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Handle a Subscribe Command from the SDK.
|
|
121
|
+
*/
|
|
122
|
+
async subscribe(command, options) {
|
|
123
|
+
await this.background.sequence();
|
|
124
|
+
return this.commands.subscriptions.subscribe(command, options);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Handle an Unsubscribe Command from the SDK.
|
|
128
|
+
*/
|
|
129
|
+
async unsubscribe(command, options) {
|
|
130
|
+
await this.background.sequence();
|
|
131
|
+
return this.commands.subscriptions.unsubscribe(command, options);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Handle a ListSubscriptions Command from the SDK.
|
|
135
|
+
*/
|
|
136
|
+
async listSubscriptions(command, options) {
|
|
137
|
+
await this.background.sequence();
|
|
138
|
+
return this.commands.subscriptionListings.listSubscriptions(command, options);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Handle a ListSubscriptionsByTopic Command from the SDK.
|
|
142
|
+
*/
|
|
143
|
+
async listSubscriptionsByTopic(command, options) {
|
|
144
|
+
await this.background.sequence();
|
|
145
|
+
return this.commands.subscriptionListings.listSubscriptionsByTopic(command, options);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Handle a GetSubscriptionAttributes Command from the SDK.
|
|
149
|
+
*/
|
|
150
|
+
async getSubscriptionAttributes(command, options) {
|
|
151
|
+
await this.background.sequence();
|
|
152
|
+
return this.commands.subscriptionAttributes.getSubscriptionAttributes(command, options);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Handle a SetSubscriptionAttributes Command from the SDK.
|
|
156
|
+
*/
|
|
157
|
+
async setSubscriptionAttributes(command, options) {
|
|
158
|
+
await this.background.sequence();
|
|
159
|
+
return this.commands.subscriptionAttributes.setSubscriptionAttributes(command, options);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Handle a Publish Command from the SDK.
|
|
163
|
+
*/
|
|
164
|
+
async publish(command, options) {
|
|
165
|
+
await this.background.sequence();
|
|
166
|
+
return this.commands.publish.publish(command, options);
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Handle a PublishBatch Command from the SDK.
|
|
170
|
+
*/
|
|
171
|
+
async publishBatch(command, options) {
|
|
172
|
+
await this.background.sequence();
|
|
173
|
+
return this.commands.publish.publishBatch(command, options);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Get this service's CloudFormation Resource factory.
|
|
177
|
+
*/
|
|
178
|
+
cfnResourceFactory() {
|
|
179
|
+
return this.cfnFactory;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Get this service's SDK Command router for SDK client interception.
|
|
183
|
+
*/
|
|
184
|
+
sdkCommandRouter() {
|
|
185
|
+
return this.sdkRouter;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
//# sourceMappingURL=sim-sns.js.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BAAkB;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SimAwsAccountId } from "../../aws/sim-aws-account-id.js";
|
|
2
|
+
import type { AwsRegionName } from "../../aws/sim-aws-region.js";
|
|
3
|
+
/**
|
|
4
|
+
* The Lambda function ARN a subscription's endpoint names.
|
|
5
|
+
*
|
|
6
|
+
* The Region and the Account are read out alongside the name, because a
|
|
7
|
+
* delivery resolves the function in the scope the ARN gives rather than in the
|
|
8
|
+
* topic's. Real SNS invokes a function in another Account or Region, so this
|
|
9
|
+
* does too.
|
|
10
|
+
*/
|
|
11
|
+
export declare class SimSnsFunctionEndpointArn {
|
|
12
|
+
readonly value: string;
|
|
13
|
+
readonly regionName: AwsRegionName;
|
|
14
|
+
readonly accountId: SimAwsAccountId;
|
|
15
|
+
readonly functionName: string;
|
|
16
|
+
private constructor();
|
|
17
|
+
/**
|
|
18
|
+
* Read a function ARN, refusing anything a function could not be reached by.
|
|
19
|
+
*
|
|
20
|
+
* Reading the ARN is Lambda's own business, so the parts come from there.
|
|
21
|
+
* What SNS adds is what an unreadable one means to a `Subscribe` request,
|
|
22
|
+
* which is the same `InvalidParameterException` a queue ARN that is not one
|
|
23
|
+
* gets.
|
|
24
|
+
*
|
|
25
|
+
* A qualified ARN naming a version or an alias is refused rather than read as
|
|
26
|
+
* the unqualified function, because simulated Lambda has neither and
|
|
27
|
+
* delivering to `$LATEST` instead would be the wrong function.
|
|
28
|
+
*/
|
|
29
|
+
static parse(endpoint: string): SimSnsFunctionEndpointArn;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=sim-sns-function-endpoint-arn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-sns-function-endpoint-arn.d.ts","sourceRoot":"","sources":["../../../../src/service/sns/subscription/sim-sns-function-endpoint-arn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAcjE;;;;;;;GAOG;AACH,qBAAa,yBAAyB;IACpC,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,UAAU,EAAE,aAAa,CAAC;IAC1C,SAAgB,SAAS,EAAE,eAAe,CAAC;IAC3C,SAAgB,YAAY,EAAE,MAAM,CAAC;IAErC,OAAO,eAKN;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,yBAAyB,CAyBxD;CACF"}
|