@kensio/yulin 1.20.17 → 1.21.1
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 +1 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.js +4 -0
- package/dist/service/athena/engine/sim-athena-comparison-shims.d.ts +13 -0
- package/dist/service/athena/engine/sim-athena-comparison-shims.js +68 -0
- package/dist/service/athena/engine/sim-athena-shims.js +2 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +3 -0
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts +2 -0
- package/dist/service/aws/factory/sim-aws-lambda-collaborators.js +3 -0
- package/dist/service/aws/factory/sim-aws-logs-collaborators.d.ts +7 -0
- package/dist/service/aws/factory/sim-aws-logs-collaborators.js +10 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts +3 -0
- package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js +5 -0
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts +3 -0
- package/dist/service/aws/factory/sim-aws-service-factory.js +4 -0
- package/dist/service/aws/sim-aws-account-region-scope.d.ts +3 -0
- package/dist/service/aws/sim-aws-account-region-scope.js +4 -0
- package/dist/service/aws/sim-aws-account.d.ts +3 -0
- package/dist/service/aws/sim-aws-account.js +4 -0
- package/dist/service/aws/sim-aws-region.d.ts +3 -0
- package/dist/service/aws/sim-aws-region.js +4 -0
- package/dist/service/aws/sim-aws-service-accessors.d.ts +3 -0
- package/dist/service/aws/sim-aws-service-accessors.js +4 -0
- package/dist/service/backup/cfn/sim-backup-cfn-plan-creator.d.ts +6 -0
- package/dist/service/backup/cfn/sim-backup-cfn-plan-creator.js +12 -0
- package/dist/service/backup/cfn/sim-backup-cfn-resource-deleter.d.ts +12 -0
- package/dist/service/backup/cfn/sim-backup-cfn-resource-deleter.js +31 -0
- package/dist/service/backup/cfn/sim-backup-cfn-resource-factory.d.ts +15 -0
- package/dist/service/backup/cfn/sim-backup-cfn-resource-factory.js +38 -0
- package/dist/service/backup/cfn/sim-backup-cfn-selection-creator.d.ts +6 -0
- package/dist/service/backup/cfn/sim-backup-cfn-selection-creator.js +17 -0
- package/dist/service/backup/cfn/sim-backup-cfn-vault-creator.d.ts +6 -0
- package/dist/service/backup/cfn/sim-backup-cfn-vault-creator.js +29 -0
- package/dist/service/backup/cfn/sim-cfn-backup-plan-properties.d.ts +11 -0
- package/dist/service/backup/cfn/sim-cfn-backup-plan-properties.js +37 -0
- package/dist/service/backup/cfn/sim-cfn-backup-properties.d.ts +12 -0
- package/dist/service/backup/cfn/sim-cfn-backup-properties.js +37 -0
- package/dist/service/backup/cfn/sim-cfn-backup-property-reader.d.ts +17 -0
- package/dist/service/backup/cfn/sim-cfn-backup-property-reader.js +62 -0
- package/dist/service/backup/cfn/sim-cfn-backup-resource-error.d.ts +7 -0
- package/dist/service/backup/cfn/sim-cfn-backup-resource-error.js +22 -0
- package/dist/service/backup/command/sim-backup-authorizer.d.ts +11 -0
- package/dist/service/backup/command/sim-backup-authorizer.js +24 -0
- package/dist/service/backup/command/sim-backup-command.types.d.ts +238 -0
- package/dist/service/backup/command/sim-backup-command.types.js +1 -0
- package/dist/service/backup/command/sim-backup-configuration-commands.d.ts +32 -0
- package/dist/service/backup/command/sim-backup-configuration-commands.js +138 -0
- package/dist/service/backup/command/sim-backup-job-commands.d.ts +23 -0
- package/dist/service/backup/command/sim-backup-job-commands.js +52 -0
- package/dist/service/backup/command/sim-backup-recovery-point-commands.d.ts +18 -0
- package/dist/service/backup/command/sim-backup-recovery-point-commands.js +38 -0
- package/dist/service/backup/command/sim-backup-request-options.d.ts +4 -0
- package/dist/service/backup/command/sim-backup-request-options.js +1 -0
- package/dist/service/backup/command/sim-backup-required-string.d.ts +2 -0
- package/dist/service/backup/command/sim-backup-required-string.js +8 -0
- package/dist/service/backup/error/sim-backup.error.d.ts +38 -0
- package/dist/service/backup/error/sim-backup.error.js +50 -0
- package/dist/service/backup/index.d.ts +9 -0
- package/dist/service/backup/index.js +7 -0
- package/dist/service/backup/job/sim-backup-job-input.d.ts +11 -0
- package/dist/service/backup/job/sim-backup-job-input.js +1 -0
- package/dist/service/backup/job/sim-backup-job-page.d.ts +22 -0
- package/dist/service/backup/job/sim-backup-job-page.js +54 -0
- package/dist/service/backup/job/sim-backup-job.d.ts +25 -0
- package/dist/service/backup/job/sim-backup-job.factory.d.ts +10 -0
- package/dist/service/backup/job/sim-backup-job.factory.js +24 -0
- package/dist/service/backup/job/sim-backup-job.js +54 -0
- package/dist/service/backup/job/sim-backup-jobs.d.ts +18 -0
- package/dist/service/backup/job/sim-backup-jobs.js +33 -0
- package/dist/service/backup/plan/sim-backup-plan-schedules.d.ts +21 -0
- package/dist/service/backup/plan/sim-backup-plan-schedules.js +66 -0
- package/dist/service/backup/plan/sim-backup-plan.d.ts +22 -0
- package/dist/service/backup/plan/sim-backup-plan.js +37 -0
- package/dist/service/backup/plan/sim-backup-rule.d.ts +9 -0
- package/dist/service/backup/plan/sim-backup-rule.js +71 -0
- package/dist/service/backup/recovery-point/sim-backup-recovery-point.d.ts +28 -0
- package/dist/service/backup/recovery-point/sim-backup-recovery-point.factory.d.ts +9 -0
- package/dist/service/backup/recovery-point/sim-backup-recovery-point.factory.js +23 -0
- package/dist/service/backup/recovery-point/sim-backup-recovery-point.js +62 -0
- package/dist/service/backup/sdk/sim-backup-sdk-command-router.d.ts +9 -0
- package/dist/service/backup/sdk/sim-backup-sdk-command-router.js +37 -0
- package/dist/service/backup/selection/sim-backup-selection.d.ts +22 -0
- package/dist/service/backup/selection/sim-backup-selection.js +43 -0
- package/dist/service/backup/sim-backup-arn.d.ts +7 -0
- package/dist/service/backup/sim-backup-arn.js +12 -0
- package/dist/service/backup/sim-backup-properties.d.ts +8 -0
- package/dist/service/backup/sim-backup-properties.js +1 -0
- package/dist/service/backup/sim-backup-resource-resolver.d.ts +24 -0
- package/dist/service/backup/sim-backup-resource-resolver.js +44 -0
- package/dist/service/backup/sim-backup-store.d.ts +29 -0
- package/dist/service/backup/sim-backup-store.js +80 -0
- package/dist/service/backup/sim-backup.d.ts +48 -0
- package/dist/service/backup/sim-backup.js +139 -0
- package/dist/service/backup/vault/sim-backup-vault-description.d.ts +12 -0
- package/dist/service/backup/vault/sim-backup-vault-description.js +15 -0
- package/dist/service/backup/vault/sim-backup-vault-lock-configuration.d.ts +5 -0
- package/dist/service/backup/vault/sim-backup-vault-lock-configuration.js +31 -0
- package/dist/service/backup/vault/sim-backup-vault-lock.d.ts +15 -0
- package/dist/service/backup/vault/sim-backup-vault-lock.js +23 -0
- package/dist/service/backup/vault/sim-backup-vault-recovery-points.d.ts +12 -0
- package/dist/service/backup/vault/sim-backup-vault-recovery-points.js +30 -0
- package/dist/service/backup/vault/sim-backup-vault-retention.d.ts +4 -0
- package/dist/service/backup/vault/sim-backup-vault-retention.js +20 -0
- package/dist/service/backup/vault/sim-backup-vault.d.ts +33 -0
- package/dist/service/backup/vault/sim-backup-vault.js +49 -0
- package/dist/service/cloudformation/resource/cfn/backup/sim-backup-cfn-value-adapter.d.ts +3 -0
- package/dist/service/cloudformation/resource/cfn/backup/sim-backup-cfn-value-adapter.js +66 -0
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-cfn-value-adapter.js +8 -0
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-orp-cfn.d.ts +24 -0
- package/dist/service/cloudformation/resource/cfn/cloudfront/sim-cloudfront-orp-cfn.js +31 -0
- package/dist/service/cloudformation/resource/cfn/logs/sim-logs-cfn-value-adapter.js +6 -0
- package/dist/service/cloudformation/resource/cfn/logs/sim-logs-metric-filter-cfn.d.ts +23 -0
- package/dist/service/cloudformation/resource/cfn/logs/sim-logs-metric-filter-cfn.js +22 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +2 -0
- package/dist/service/cloudformation/resource/ignore/sim-cfn-skipped-properties.d.ts +49 -0
- package/dist/service/cloudformation/resource/ignore/sim-cfn-skipped-properties.js +61 -0
- package/dist/service/cloudformation/resource/ignore/sim-cfn-skipped-property.type.d.ts +51 -0
- package/dist/service/cloudformation/resource/ignore/sim-cfn-skipped-property.type.js +1 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +4 -0
- package/dist/service/cloudfront/behaviour/sim-cloud-front-behavior.d.ts +12 -1
- package/dist/service/cloudfront/cache/sim-cf-accept-encoding.d.ts +11 -0
- package/dist/service/cloudfront/cache/sim-cf-accept-encoding.js +27 -0
- package/dist/service/cloudfront/cache/sim-cf-cache-control.d.ts +28 -0
- package/dist/service/cloudfront/cache/sim-cf-cache-control.js +49 -0
- package/dist/service/cloudfront/cache/sim-cf-cache-entry-key-path.d.ts +11 -0
- package/dist/service/cloudfront/cache/sim-cf-cache-entry-key-path.js +22 -0
- package/dist/service/cloudfront/cache/sim-cf-cache-entry-key.d.ts +32 -0
- package/dist/service/cloudfront/cache/sim-cf-cache-entry-key.js +112 -0
- package/dist/service/cloudfront/cache/sim-cf-cache-status.d.ts +27 -0
- package/dist/service/cloudfront/cache/sim-cf-cache-status.js +53 -0
- package/dist/service/cloudfront/cache/sim-cf-cache-ttl.d.ts +28 -0
- package/dist/service/cloudfront/cache/sim-cf-cache-ttl.js +50 -0
- package/dist/service/cloudfront/cache/sim-cf-cacheable-request.d.ts +35 -0
- package/dist/service/cloudfront/cache/sim-cf-cacheable-request.js +32 -0
- package/dist/service/cloudfront/cache/sim-cf-distribution-cache.d.ts +57 -0
- package/dist/service/cloudfront/cache/sim-cf-distribution-cache.js +115 -0
- package/dist/service/cloudfront/cache/sim-cf-edge.d.ts +37 -0
- package/dist/service/cloudfront/cache/sim-cf-edge.js +34 -0
- package/dist/service/cloudfront/cache/sim-cf-error-cache-ttl.d.ts +36 -0
- package/dist/service/cloudfront/cache/sim-cf-error-cache-ttl.js +28 -0
- package/dist/service/cloudfront/cache/sim-cf-http-date.d.ts +15 -0
- package/dist/service/cloudfront/cache/sim-cf-http-date.js +40 -0
- package/dist/service/cloudfront/cache-policy/sim-cf-cache-key.d.ts +63 -0
- package/dist/service/cloudfront/cache-policy/sim-cf-cache-key.js +70 -0
- package/dist/service/cloudfront/cache-policy/sim-cf-cache-policy.d.ts +13 -3
- package/dist/service/cloudfront/cache-policy/sim-cf-cache-policy.js +31 -3
- package/dist/service/cloudfront/cache-policy/sim-cf-managed-cache-policies.d.ts +8 -3
- package/dist/service/cloudfront/cache-policy/sim-cf-managed-cache-policies.js +96 -12
- package/dist/service/cloudfront/cff/sim-cff-search-distribution.fixture.js +4 -0
- package/dist/service/cloudfront/cfn/cache-policy/sim-cfn-cf-cache-policy-config.d.ts +9 -8
- package/dist/service/cloudfront/cfn/cache-policy/sim-cfn-cf-cache-policy-config.js +40 -11
- package/dist/service/cloudfront/cfn/cache-policy/sim-cfn-cf-cache-policy-key.d.ts +10 -0
- package/dist/service/cloudfront/cfn/cache-policy/sim-cfn-cf-cache-policy-key.js +50 -0
- package/dist/service/cloudfront/cfn/cache-policy/sim-cfn-cf-cache-policy-section.d.ts +28 -0
- package/dist/service/cloudfront/cfn/cache-policy/sim-cfn-cf-cache-policy-section.js +29 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-behavior-policy-kinds.d.ts +16 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-behavior-policy-kinds.js +23 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-behavior-policies.d.ts +3 -2
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-behavior-policies.js +3 -2
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts +6 -6
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js +6 -6
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-policy-drops.js +8 -23
- package/dist/service/cloudfront/cfn/origin-request-policy/sim-cfn-cf-orp-config.d.ts +28 -0
- package/dist/service/cloudfront/cfn/origin-request-policy/sim-cfn-cf-orp-config.js +46 -0
- package/dist/service/cloudfront/cfn/origin-request-policy/sim-cfn-cf-orp-creator.d.ts +24 -0
- package/dist/service/cloudfront/cfn/origin-request-policy/sim-cfn-cf-orp-creator.js +32 -0
- package/dist/service/cloudfront/cfn/origin-request-policy/sim-cfn-cf-orp-forwarding.d.ts +10 -0
- package/dist/service/cloudfront/cfn/origin-request-policy/sim-cfn-cf-orp-forwarding.js +51 -0
- package/dist/service/cloudfront/cfn/policy/sim-cfn-cf-policy-section.d.ts +22 -0
- package/dist/service/cloudfront/cfn/policy/sim-cfn-cf-policy-section.js +54 -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.js +12 -0
- package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +1 -0
- package/dist/service/cloudfront/command/create-distribution/create-distribution.handler.d.ts +2 -0
- package/dist/service/cloudfront/command/invalidation/sim-cf-create-invalidation.d.ts +28 -0
- package/dist/service/cloudfront/command/invalidation/sim-cf-create-invalidation.js +59 -0
- package/dist/service/cloudfront/command/invalidation/sim-cf-get-invalidation.d.ts +19 -0
- package/dist/service/cloudfront/command/invalidation/sim-cf-get-invalidation.js +32 -0
- package/dist/service/cloudfront/command/invalidation/sim-cf-invalidation-access.d.ts +36 -0
- package/dist/service/cloudfront/command/invalidation/sim-cf-invalidation-access.js +45 -0
- package/dist/service/cloudfront/command/invalidation/sim-cf-invalidation-command.types.d.ts +80 -0
- package/dist/service/cloudfront/command/invalidation/sim-cf-invalidation-command.types.js +1 -0
- package/dist/service/cloudfront/command/invalidation/sim-cf-invalidation-commands.d.ts +39 -0
- package/dist/service/cloudfront/command/invalidation/sim-cf-invalidation-commands.js +35 -0
- package/dist/service/cloudfront/command/invalidation/sim-cf-list-invalidations.d.ts +23 -0
- package/dist/service/cloudfront/command/invalidation/sim-cf-list-invalidations.js +39 -0
- package/dist/service/cloudfront/command/update-distribution/update-distribution.handler.d.ts +2 -0
- package/dist/service/cloudfront/controller/content/sim-cf-content-stage.d.ts +51 -0
- package/dist/service/cloudfront/controller/content/sim-cf-content-stage.js +65 -0
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts +2 -3
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js +4 -4
- package/dist/service/cloudfront/controller/error/sim-cf-custom-error-responder.d.ts +4 -0
- package/dist/service/cloudfront/controller/error/sim-cf-custom-error-responder.js +12 -8
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.d.ts +2 -2
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.js +2 -2
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts +6 -6
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js +35 -20
- package/dist/service/cloudfront/custom-error/sim-cloudfront-custom-error-response.d.ts +23 -5
- package/dist/service/cloudfront/custom-error/sim-cloudfront-custom-error-response.js +8 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-origin-request-policy.d.ts +18 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-origin-request-policy.js +30 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-policies.d.ts +7 -5
- package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-policies.js +8 -5
- package/dist/service/cloudfront/distribution/configurator/sim-cf-behavior-properties.js +4 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.d.ts +2 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cf-distribution-configurator.factory.js +6 -2
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-custom-error-configurator.d.ts +13 -3
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-custom-error-configurator.js +27 -6
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts +3 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +4 -1
- package/dist/service/cloudfront/distribution/sim-cf-distribution-configuration-state.d.ts +5 -3
- package/dist/service/cloudfront/distribution/sim-cf-distribution-reconfigurer.d.ts +2 -0
- package/dist/service/cloudfront/distribution/sim-cf-distribution-view.js +1 -1
- package/dist/service/cloudfront/distribution/sim-cloudfront-distribution.d.ts +25 -2
- package/dist/service/cloudfront/distribution/sim-cloudfront-distribution.js +24 -0
- package/dist/service/cloudfront/error/sim-cf-invalidation.error.d.ts +22 -0
- package/dist/service/cloudfront/error/sim-cf-invalidation.error.js +26 -0
- package/dist/service/cloudfront/error/sim-cf-origin-request-policy.error.d.ts +22 -0
- package/dist/service/cloudfront/error/sim-cf-origin-request-policy.error.js +26 -0
- package/dist/service/cloudfront/index.d.ts +2 -0
- package/dist/service/cloudfront/index.js +1 -0
- package/dist/service/cloudfront/invalidation/sim-cf-invalidation-path.d.ts +22 -0
- package/dist/service/cloudfront/invalidation/sim-cf-invalidation-path.js +32 -0
- package/dist/service/cloudfront/invalidation/sim-cf-invalidation-view.d.ts +43 -0
- package/dist/service/cloudfront/invalidation/sim-cf-invalidation-view.js +33 -0
- package/dist/service/cloudfront/invalidation/sim-cf-invalidation.d.ts +55 -0
- package/dist/service/cloudfront/invalidation/sim-cf-invalidation.js +56 -0
- package/dist/service/cloudfront/invalidation/sim-cf-invalidations.d.ts +41 -0
- package/dist/service/cloudfront/invalidation/sim-cf-invalidations.js +58 -0
- package/dist/service/cloudfront/invalidation/sim-cf-repeated-invalidation.d.ts +15 -0
- package/dist/service/cloudfront/invalidation/sim-cf-repeated-invalidation.js +23 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-forwarding.d.ts +19 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-forwarding.js +116 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +15 -5
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js +13 -8
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.js +8 -5
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts +13 -0
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js +8 -0
- package/dist/service/cloudfront/origin-request-policy/sim-cf-behavior-forwarded.d.ts +24 -0
- package/dist/service/cloudfront/origin-request-policy/sim-cf-behavior-forwarded.js +21 -0
- package/dist/service/cloudfront/origin-request-policy/sim-cf-forwarded-to-origin.d.ts +57 -0
- package/dist/service/cloudfront/origin-request-policy/sim-cf-forwarded-to-origin.js +129 -0
- package/dist/service/cloudfront/origin-request-policy/sim-cf-managed-origin-request-policies.d.ts +30 -0
- package/dist/service/cloudfront/origin-request-policy/sim-cf-managed-origin-request-policies.js +121 -0
- package/dist/service/cloudfront/origin-request-policy/sim-cf-origin-request-forwarding.d.ts +56 -0
- package/dist/service/cloudfront/origin-request-policy/sim-cf-origin-request-forwarding.js +67 -0
- package/dist/service/cloudfront/origin-request-policy/sim-cf-origin-request-policy-registry.d.ts +38 -0
- package/dist/service/cloudfront/origin-request-policy/sim-cf-origin-request-policy-registry.js +51 -0
- package/dist/service/cloudfront/origin-request-policy/sim-cf-origin-request-policy.d.ts +32 -0
- package/dist/service/cloudfront/origin-request-policy/sim-cf-origin-request-policy.js +30 -0
- package/dist/service/cloudfront/registry/sim-cloud-front-registry.d.ts +25 -0
- package/dist/service/cloudfront/registry/sim-cloud-front-registry.js +23 -0
- package/dist/service/cloudfront/sdk/sim-cloudfront-sdk-command-router.js +12 -0
- package/dist/service/cloudfront/sim-cloudfront-caching.d.ts +31 -0
- package/dist/service/cloudfront/sim-cloudfront-caching.js +38 -0
- package/dist/service/cloudfront/sim-cloudfront-commands.d.ts +12 -0
- package/dist/service/cloudfront/sim-cloudfront-commands.js +12 -0
- package/dist/service/cloudfront/sim-cloudfront-distributions.d.ts +21 -0
- package/dist/service/cloudfront/sim-cloudfront-distributions.js +23 -0
- package/dist/service/cloudfront/sim-cloudfront-origin-access-controls.d.ts +30 -0
- package/dist/service/cloudfront/sim-cloudfront-origin-access-controls.js +35 -0
- package/dist/service/cloudfront/sim-cloudfront-policies.d.ts +22 -5
- package/dist/service/cloudfront/sim-cloudfront-policies.js +27 -5
- package/dist/service/cloudfront/sim-cloudfront.d.ts +15 -31
- package/dist/service/cloudfront/sim-cloudfront.js +23 -41
- package/dist/service/cloudwatch/index.d.ts +1 -0
- package/dist/service/cloudwatch/index.js +1 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.d.ts +2 -0
- package/dist/service/cloudwatch/sim-cloudwatch-commands.js +6 -0
- package/dist/service/cloudwatch/sim-cloudwatch.d.ts +9 -0
- package/dist/service/cloudwatch/sim-cloudwatch.js +10 -0
- package/dist/service/cloudwatch/write/sim-cloudwatch-service-writer.d.ts +58 -0
- package/dist/service/cloudwatch/write/sim-cloudwatch-service-writer.js +53 -0
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts +3 -0
- package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js +8 -2
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +3 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +4 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts +11 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js +13 -1
- package/dist/service/cognito/command/auth/sim-cognito-auth-resolver.d.ts +3 -0
- package/dist/service/cognito/command/auth/sim-cognito-auth-resolver.js +16 -4
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.d.ts +7 -0
- package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.js +11 -1
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts +3 -0
- package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js +8 -2
- package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts +19 -0
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts +1 -1
- package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +3 -2
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts +8 -0
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js +11 -3
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.d.ts +11 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.js +13 -2
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts +11 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js +11 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts +7 -1
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js +18 -7
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-signed-in.d.ts +20 -3
- package/dist/service/cognito/command/hosted/sim-cognito-hosted-signed-in.js +19 -3
- package/dist/service/cognito/command/hosted/sim-cognito-token-endpoint.d.ts +2 -0
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts +8 -0
- package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js +13 -4
- package/dist/service/cognito/command/sim-cognito-commands.d.ts +5 -0
- package/dist/service/cognito/command/sim-cognito-commands.js +22 -2
- package/dist/service/cognito/command/user/sim-cognito-confirm-sign-up-commands.d.ts +74 -0
- package/dist/service/cognito/command/user/sim-cognito-confirm-sign-up-commands.js +110 -0
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts +5 -49
- package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +7 -87
- package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts +4 -0
- package/dist/service/cognito/command/user/sim-cognito-user-commands.js +38 -29
- package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts +23 -0
- package/dist/service/cognito/error/sim-cognito-managed-login.error.js +36 -0
- package/dist/service/cognito/error/sim-cognito-throttle.error.d.ts +13 -0
- package/dist/service/cognito/error/sim-cognito-throttle.error.js +15 -0
- package/dist/service/cognito/index.d.ts +2 -0
- package/dist/service/cognito/index.js +2 -0
- package/dist/service/cognito/metric/sim-cognito-counted-request.d.ts +50 -0
- package/dist/service/cognito/metric/sim-cognito-counted-request.js +51 -0
- package/dist/service/cognito/metric/sim-cognito-metrics.d.ts +22 -0
- package/dist/service/cognito/metric/sim-cognito-metrics.js +26 -0
- package/dist/service/cognito/metric/sim-cognito-pool-metrics.d.ts +40 -0
- package/dist/service/cognito/metric/sim-cognito-pool-metrics.js +51 -0
- package/dist/service/cognito/metric/sim-cognito-throttled-request.d.ts +11 -0
- package/dist/service/cognito/metric/sim-cognito-throttled-request.js +15 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +1 -0
- package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +6 -1
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.d.ts +4 -1
- package/dist/service/cognito/serve/page/sim-cognito-page-markup.js +6 -2
- package/dist/service/cognito/serve/page/sim-cognito-provider-page.d.ts +35 -0
- package/dist/service/cognito/serve/page/sim-cognito-provider-page.js +50 -0
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts +6 -0
- package/dist/service/cognito/sim-cognito-identity-provider.js +1 -0
- package/dist/service/cognito/sim-cognito-user-directory.js +3 -3
- package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code.d.ts +9 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-authorization-code.js +2 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +8 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js +8 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-request-throttle.d.ts +36 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-request-throttle.js +45 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.d.ts +42 -9
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.js +56 -27
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-triggers.d.ts +52 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-federated-triggers.js +49 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-presented-external-user.d.ts +48 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-presented-external-user.js +94 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-same-federated-identity.d.ts +13 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-same-federated-identity.js +19 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-user-pool-identity-provider.d.ts +7 -0
- package/dist/service/cognito/user-pool/idp/sim-cognito-user-pool-identity-provider.js +9 -0
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.d.ts +3 -2
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.js +3 -2
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts +18 -1
- package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js +35 -18
- package/dist/service/iam/authorize/allow/sim-iam-allow-requirement.d.ts +6 -5
- package/dist/service/iam/authorize/allow/sim-iam-allow-requirement.js +6 -5
- package/dist/service/iam/authorize/context/sim-iam-auth-z-input.d.ts +6 -4
- package/dist/service/kms/command/sim-kms-request-options.d.ts +9 -5
- package/dist/service/lambda/command/create-function/create-function.handler.d.ts +3 -0
- package/dist/service/lambda/command/create-function/create-function.handler.js +4 -1
- package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +2 -0
- package/dist/service/lambda/event-source/poll/kinesis/sim-lambda-kinesis-stream-delivery.js +7 -11
- package/dist/service/lambda/event-source/poll/sim-lambda-dynamodb-stream-delivery.js +7 -8
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-iterator-age.d.ts +11 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-iterator-age.js +31 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-sequence-numbers.d.ts +10 -0
- package/dist/service/lambda/event-source/poll/sim-lambda-stream-sequence-numbers.js +12 -0
- package/dist/service/lambda/function/sim-lambda-function.d.ts +3 -0
- package/dist/service/lambda/function/sim-lambda-function.js +6 -2
- package/dist/service/lambda/function/sim-lambda-function.type.d.ts +7 -0
- package/dist/service/lambda/metric/sim-lambda-function-metrics.d.ts +47 -0
- package/dist/service/lambda/metric/sim-lambda-function-metrics.js +83 -0
- package/dist/service/lambda/metric/sim-lambda-iterator-age.d.ts +29 -0
- package/dist/service/lambda/metric/sim-lambda-iterator-age.js +41 -0
- package/dist/service/lambda/metric/sim-lambda-metrics.d.ts +12 -0
- package/dist/service/lambda/metric/sim-lambda-metrics.js +13 -0
- package/dist/service/lambda/sim-lambda-commands.d.ts +2 -0
- package/dist/service/lambda/sim-lambda-commands.js +2 -1
- package/dist/service/logs/cfn/metric/sim-cfn-metric-dimension-values.d.ts +9 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-dimension-values.js +25 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-filter-creator.d.ts +30 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-filter-creator.js +52 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-filter-properties.d.ts +40 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-filter-properties.js +66 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-filter-property-rules.d.ts +19 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-filter-property-rules.js +40 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-filter-unsimulated-properties.d.ts +5 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-filter-unsimulated-properties.js +23 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-filter-value.d.ts +25 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-filter-value.js +58 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-transformation-values.d.ts +6 -0
- package/dist/service/logs/cfn/metric/sim-cfn-metric-transformation-values.js +19 -0
- package/dist/service/logs/cfn/sim-logs-cfn-resource-deleter.d.ts +2 -0
- package/dist/service/logs/cfn/sim-logs-cfn-resource-deleter.js +4 -0
- package/dist/service/logs/cfn/sim-logs-cfn-resource-factory.d.ts +5 -3
- package/dist/service/logs/cfn/sim-logs-cfn-resource-factory.js +12 -3
- package/dist/service/logs/command/delivery/sim-logs-delivery-source-commands.d.ts +6 -4
- package/dist/service/logs/command/delivery/sim-logs-delivery-source-commands.js +13 -4
- package/dist/service/logs/command/event/sim-logs-put-log-events.d.ts +3 -0
- package/dist/service/logs/command/event/sim-logs-put-log-events.js +3 -0
- package/dist/service/logs/command/group/sim-logs-log-group-commands.js +3 -3
- package/dist/service/logs/command/metric/metric-filter.command.d.ts +79 -0
- package/dist/service/logs/command/metric/metric-filter.command.js +1 -0
- package/dist/service/logs/command/metric/sim-logs-metric-filter-commands.d.ts +48 -0
- package/dist/service/logs/command/metric/sim-logs-metric-filter-commands.js +95 -0
- package/dist/service/logs/command/metric/sim-logs-metric-filter-input.d.ts +11 -0
- package/dist/service/logs/command/metric/sim-logs-metric-filter-input.js +79 -0
- package/dist/service/logs/command/sim-logs-command.types.d.ts +1 -0
- package/dist/service/logs/delivery/cloudfront/sim-logs-vended-log-delivery.d.ts +23 -0
- package/dist/service/logs/delivery/cloudfront/sim-logs-vended-log-delivery.js +28 -0
- package/dist/service/logs/group/sim-logs-log-group.d.ts +6 -0
- package/dist/service/logs/group/sim-logs-log-group.js +6 -0
- package/dist/service/logs/index.d.ts +6 -0
- package/dist/service/logs/index.js +4 -0
- package/dist/service/logs/metric/cloudwatch/sim-aws-logs-metric-filter-metrics.d.ts +40 -0
- package/dist/service/logs/metric/cloudwatch/sim-aws-logs-metric-filter-metrics.js +78 -0
- package/dist/service/logs/metric/emf/sim-logs-embedded-metric-datapoints.d.ts +25 -0
- package/dist/service/logs/metric/emf/sim-logs-embedded-metric-datapoints.js +81 -0
- package/dist/service/logs/metric/emf/sim-logs-embedded-metric-document.d.ts +57 -0
- package/dist/service/logs/metric/emf/sim-logs-embedded-metric-document.js +85 -0
- package/dist/service/logs/metric/emf/sim-logs-embedded-metric-json.d.ts +24 -0
- package/dist/service/logs/metric/emf/sim-logs-embedded-metric-json.js +41 -0
- package/dist/service/logs/metric/emf/sim-logs-embedded-metric-values.d.ts +20 -0
- package/dist/service/logs/metric/emf/sim-logs-embedded-metric-values.js +39 -0
- package/dist/service/logs/metric/sim-logs-metric-datapoint.d.ts +25 -0
- package/dist/service/logs/metric/sim-logs-metric-datapoint.js +1 -0
- package/dist/service/logs/metric/sim-logs-metric-fan-out.d.ts +62 -0
- package/dist/service/logs/metric/sim-logs-metric-fan-out.js +116 -0
- package/dist/service/logs/metric/sim-logs-metric-filter-selection.d.ts +17 -0
- package/dist/service/logs/metric/sim-logs-metric-filter-selection.js +17 -0
- package/dist/service/logs/metric/sim-logs-metric-filter-store.d.ts +35 -0
- package/dist/service/logs/metric/sim-logs-metric-filter-store.js +47 -0
- package/dist/service/logs/metric/sim-logs-metric-filter.d.ts +49 -0
- package/dist/service/logs/metric/sim-logs-metric-filter.js +95 -0
- package/dist/service/logs/metric/sim-logs-metric-publication-failure.d.ts +31 -0
- package/dist/service/logs/metric/sim-logs-metric-publication-failure.js +12 -0
- package/dist/service/logs/metric/sim-logs-metric-publications.d.ts +11 -0
- package/dist/service/logs/metric/sim-logs-metric-publications.js +1 -0
- package/dist/service/logs/metric/sim-logs-metric-transformation.d.ts +45 -0
- package/dist/service/logs/metric/sim-logs-metric-transformation.js +127 -0
- package/dist/service/logs/sdk/sim-logs-sdk-command-router.js +12 -0
- package/dist/service/logs/sim-logs-commands.d.ts +12 -0
- package/dist/service/logs/sim-logs-commands.js +17 -0
- package/dist/service/logs/sim-logs-metric-operations.d.ts +31 -0
- package/dist/service/logs/sim-logs-metric-operations.js +37 -0
- package/dist/service/logs/sim-logs.d.ts +4 -3
- package/dist/service/logs/sim-logs.js +4 -3
- package/dist/service/logs/write/sim-logs-service-writer.d.ts +3 -0
- package/dist/service/logs/write/sim-logs-service-writer.js +5 -1
- package/dist/service/s3/bucket/lifecycle/sim-s3-lifecycle-configuration.d.ts +32 -0
- package/dist/service/s3/bucket/lifecycle/sim-s3-lifecycle-configuration.js +31 -1
- package/dist/service/s3/bucket/lifecycle/sim-s3-lifecycle-expiry.d.ts +13 -2
- package/dist/service/s3/bucket/lifecycle/sim-s3-lifecycle-expiry.js +18 -1
- package/dist/service/s3/bucket/lifecycle/sim-s3-lifecycle-sweep.d.ts +17 -1
- package/dist/service/s3/bucket/lifecycle/sim-s3-lifecycle-sweep.js +27 -3
- package/dist/service/s3/bucket/lifecycle/sim-s3-noncurrent-sweep.d.ts +45 -0
- package/dist/service/s3/bucket/lifecycle/sim-s3-noncurrent-sweep.js +90 -0
- package/dist/service/s3/bucket/lock/sim-s3-bucket-object-lock.d.ts +42 -0
- package/dist/service/s3/bucket/lock/sim-s3-bucket-object-lock.js +59 -0
- package/dist/service/s3/bucket/lock/sim-s3-default-retention.d.ts +8 -0
- package/dist/service/s3/bucket/lock/sim-s3-default-retention.js +15 -0
- package/dist/service/s3/bucket/lock/sim-s3-object-lock-configuration.d.ts +49 -0
- package/dist/service/s3/bucket/lock/sim-s3-object-lock-configuration.js +102 -0
- package/dist/service/s3/bucket/lock/sim-s3-object-lock-output.d.ts +14 -0
- package/dist/service/s3/bucket/lock/sim-s3-object-lock-output.js +1 -0
- package/dist/service/s3/bucket/lock/sim-s3-object-lock.d.ts +62 -0
- package/dist/service/s3/bucket/lock/sim-s3-object-lock.js +100 -0
- package/dist/service/s3/bucket/lock/sim-s3-object-retention.d.ts +55 -0
- package/dist/service/s3/bucket/lock/sim-s3-object-retention.js +82 -0
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-notification-event.js +9 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.d.ts +1 -1
- package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js +1 -2
- package/dist/service/s3/bucket/sim-s3-bucket-objects.d.ts +114 -0
- package/dist/service/s3/bucket/sim-s3-bucket-objects.js +148 -0
- package/dist/service/s3/bucket/sim-s3-bucket.d.ts +30 -29
- package/dist/service/s3/bucket/sim-s3-bucket.js +42 -45
- package/dist/service/s3/bucket/sim-s3-object-deletion.d.ts +30 -0
- package/dist/service/s3/bucket/sim-s3-object-deletion.js +29 -0
- package/dist/service/s3/bucket/versioning/sim-s3-bucket-versioning.d.ts +61 -0
- package/dist/service/s3/bucket/versioning/sim-s3-bucket-versioning.js +65 -0
- package/dist/service/s3/bucket/versioning/sim-s3-bucket-versions.d.ts +97 -0
- package/dist/service/s3/bucket/versioning/sim-s3-bucket-versions.js +176 -0
- package/dist/service/s3/bucket/versioning/sim-s3-compare-keys.d.ts +10 -0
- package/dist/service/s3/bucket/versioning/sim-s3-compare-keys.js +16 -0
- package/dist/service/s3/bucket/versioning/sim-s3-object-version.d.ts +85 -0
- package/dist/service/s3/bucket/versioning/sim-s3-object-version.js +101 -0
- package/dist/service/s3/bucket/versioning/sim-s3-object-versions.d.ts +52 -0
- package/dist/service/s3/bucket/versioning/sim-s3-object-versions.js +91 -0
- package/dist/service/s3/bucket/versioning/sim-s3-version-page.d.ts +32 -0
- package/dist/service/s3/bucket/versioning/sim-s3-version-page.js +45 -0
- package/dist/service/s3/cfn/bucket/lifecycle/sim-cfn-s3-bucket-lifecycle-configuration.d.ts +0 -5
- package/dist/service/s3/cfn/bucket/lifecycle/sim-cfn-s3-bucket-lifecycle-configuration.js +3 -14
- package/dist/service/s3/cfn/bucket/lifecycle/sim-cfn-s3-bucket-lifecycle-fields.d.ts +18 -1
- package/dist/service/s3/cfn/bucket/lifecycle/sim-cfn-s3-bucket-lifecycle-fields.js +34 -1
- package/dist/service/s3/cfn/bucket/lock/sim-cfn-s3-bucket-object-lock-configuration.d.ts +37 -0
- package/dist/service/s3/cfn/bucket/lock/sim-cfn-s3-bucket-object-lock-configuration.js +78 -0
- package/dist/service/s3/cfn/bucket/replication/sim-cfn-s3-bucket-replication-rules.d.ts +20 -0
- package/dist/service/s3/cfn/bucket/replication/sim-cfn-s3-bucket-replication-rules.js +107 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-configurator.d.ts +14 -7
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-configurator.js +29 -37
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-declared-configurations.d.ts +62 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-declared-configurations.js +89 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.d.ts +9 -5
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-names.js +16 -16
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.d.ts +9 -5
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-property-rules.js +17 -6
- package/dist/service/s3/cfn/bucket/versioning/sim-cfn-s3-bucket-versioning-configuration.d.ts +19 -0
- package/dist/service/s3/cfn/bucket/versioning/sim-cfn-s3-bucket-versioning-configuration.js +28 -0
- package/dist/service/s3/command/authorize/sim-s3-authorize-action.d.ts +24 -0
- package/dist/service/s3/command/authorize/sim-s3-authorize-action.js +30 -0
- package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.command.d.ts +2 -0
- package/dist/service/s3/command/complete-multipart-upload/complete-multipart-upload.handler.js +3 -1
- package/dist/service/s3/command/copy-object/copy-object.command.d.ts +3 -1
- package/dist/service/s3/command/copy-object/copy-object.handler.js +3 -1
- package/dist/service/s3/command/delete-object/delete-object-version-removal.d.ts +50 -0
- package/dist/service/s3/command/delete-object/delete-object-version-removal.js +52 -0
- package/dist/service/s3/command/delete-object/delete-object.command.d.ts +19 -2
- package/dist/service/s3/command/delete-object/delete-object.handler.d.ts +7 -1
- package/dist/service/s3/command/delete-object/delete-object.handler.js +28 -16
- package/dist/service/s3/command/delete-object/sim-s3-notify-deleted.d.ts +24 -0
- package/dist/service/s3/command/delete-object/sim-s3-notify-deleted.js +32 -0
- package/dist/service/s3/command/delete-objects/delete-object-attempt.d.ts +6 -2
- package/dist/service/s3/command/delete-objects/delete-object-attempt.js +6 -2
- package/dist/service/s3/command/delete-objects/delete-objects-key-removal.js +10 -9
- package/dist/service/s3/command/delete-objects/delete-objects-outcome.js +9 -1
- package/dist/service/s3/command/delete-objects/delete-objects.command.d.ts +6 -0
- package/dist/service/s3/command/get-bucket-versioning/get-bucket-versioning.command.d.ts +23 -0
- package/dist/service/s3/command/get-bucket-versioning/get-bucket-versioning.command.js +1 -0
- package/dist/service/s3/command/get-bucket-versioning/get-bucket-versioning.handler.d.ts +31 -0
- package/dist/service/s3/command/get-bucket-versioning/get-bucket-versioning.handler.js +40 -0
- package/dist/service/s3/command/get-object/get-object-loader.d.ts +3 -2
- package/dist/service/s3/command/get-object/get-object-loader.js +9 -4
- package/dist/service/s3/command/get-object/get-object.command.d.ts +9 -1
- package/dist/service/s3/command/get-object/get-object.handler.js +1 -1
- package/dist/service/s3/command/get-object-lock-configuration/get-object-lock-configuration.command.d.ts +25 -0
- package/dist/service/s3/command/get-object-lock-configuration/get-object-lock-configuration.command.js +1 -0
- package/dist/service/s3/command/get-object-lock-configuration/get-object-lock-configuration.handler.d.ts +31 -0
- package/dist/service/s3/command/get-object-lock-configuration/get-object-lock-configuration.handler.js +41 -0
- package/dist/service/s3/command/head-object/head-object-loader.d.ts +1 -1
- package/dist/service/s3/command/head-object/head-object-loader.js +7 -3
- package/dist/service/s3/command/head-object/head-object.command.d.ts +9 -1
- package/dist/service/s3/command/head-object/head-object.handler.js +1 -1
- package/dist/service/s3/command/list-object-versions/list-object-versions-listing.d.ts +31 -0
- package/dist/service/s3/command/list-object-versions/list-object-versions-listing.js +55 -0
- package/dist/service/s3/command/list-object-versions/list-object-versions-summaries.d.ts +17 -0
- package/dist/service/s3/command/list-object-versions/list-object-versions-summaries.js +34 -0
- package/dist/service/s3/command/list-object-versions/list-object-versions.command.d.ts +59 -0
- package/dist/service/s3/command/list-object-versions/list-object-versions.command.js +1 -0
- package/dist/service/s3/command/list-object-versions/list-object-versions.handler.d.ts +34 -0
- package/dist/service/s3/command/list-object-versions/list-object-versions.handler.js +62 -0
- package/dist/service/s3/command/object/sim-s3-read-object-version.d.ts +34 -0
- package/dist/service/s3/command/object/sim-s3-read-object-version.js +52 -0
- package/dist/service/s3/command/object-lock/sim-s3-locked-version.d.ts +11 -0
- package/dist/service/s3/command/object-lock/sim-s3-locked-version.js +27 -0
- package/dist/service/s3/command/object-lock/sim-s3-object-lock-authorizer.d.ts +42 -0
- package/dist/service/s3/command/object-lock/sim-s3-object-lock-authorizer.js +66 -0
- package/dist/service/s3/command/object-lock/sim-s3-object-lock-commands.d.ts +30 -0
- package/dist/service/s3/command/object-lock/sim-s3-object-lock-commands.js +41 -0
- package/dist/service/s3/command/put-bucket-versioning/put-bucket-versioning.command.d.ts +21 -0
- package/dist/service/s3/command/put-bucket-versioning/put-bucket-versioning.command.js +1 -0
- package/dist/service/s3/command/put-bucket-versioning/put-bucket-versioning.handler.d.ts +31 -0
- package/dist/service/s3/command/put-bucket-versioning/put-bucket-versioning.handler.js +44 -0
- package/dist/service/s3/command/put-object/put-object.command.d.ts +3 -0
- package/dist/service/s3/command/put-object/put-object.handler.js +10 -10
- package/dist/service/s3/command/put-object-legal-hold/put-object-legal-hold.command.d.ts +24 -0
- package/dist/service/s3/command/put-object-legal-hold/put-object-legal-hold.command.js +1 -0
- package/dist/service/s3/command/put-object-legal-hold/put-object-legal-hold.handler.d.ts +32 -0
- package/dist/service/s3/command/put-object-legal-hold/put-object-legal-hold.handler.js +41 -0
- package/dist/service/s3/command/put-object-lock-configuration/put-object-lock-configuration.command.d.ts +21 -0
- package/dist/service/s3/command/put-object-lock-configuration/put-object-lock-configuration.command.js +1 -0
- package/dist/service/s3/command/put-object-lock-configuration/put-object-lock-configuration.handler.d.ts +32 -0
- package/dist/service/s3/command/put-object-lock-configuration/put-object-lock-configuration.handler.js +47 -0
- package/dist/service/s3/command/put-object-retention/put-object-retention.command.d.ts +29 -0
- package/dist/service/s3/command/put-object-retention/put-object-retention.command.js +1 -0
- package/dist/service/s3/command/put-object-retention/put-object-retention.handler.d.ts +31 -0
- package/dist/service/s3/command/put-object-retention/put-object-retention.handler.js +42 -0
- package/dist/service/s3/command/sim-s3-command.types.d.ts +7 -0
- package/dist/service/s3/command/versioning/sim-s3-versioning-authorizer.d.ts +35 -0
- package/dist/service/s3/command/versioning/sim-s3-versioning-authorizer.js +57 -0
- package/dist/service/s3/command/versioning/sim-s3-versioning-commands.d.ts +26 -0
- package/dist/service/s3/command/versioning/sim-s3-versioning-commands.js +34 -0
- package/dist/service/s3/command/versioning/sim-s3-versioning-configuration-validation.d.ts +13 -0
- package/dist/service/s3/command/versioning/sim-s3-versioning-configuration-validation.js +28 -0
- package/dist/service/s3/error/sim-s3-object-lock.error.d.ts +22 -0
- package/dist/service/s3/error/sim-s3-object-lock.error.js +26 -0
- package/dist/service/s3/error/sim-s3.error.d.ts +22 -0
- package/dist/service/s3/error/sim-s3.error.js +26 -0
- package/dist/service/s3/notification/event/sim-s3-event-records.js +3 -0
- package/dist/service/s3/notification/event/sim-s3-event.type.d.ts +5 -3
- package/dist/service/s3/notification/event/sim-s3-object-event-builder.d.ts +15 -0
- package/dist/service/s3/notification/event/sim-s3-object-event-builder.js +4 -1
- package/dist/service/s3/notification/event/sim-s3-object-event.d.ts +6 -0
- package/dist/service/s3/notification/event/sim-s3-object-event.js +2 -0
- package/dist/service/s3/notification/sim-s3-object-notifier.d.ts +1 -1
- package/dist/service/s3/notification/sim-s3-object-notifier.js +2 -2
- package/dist/service/s3/sdk/sim-s3-sdk-bucket-routes.d.ts +10 -0
- package/dist/service/s3/sdk/sim-s3-sdk-bucket-routes.js +84 -0
- package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +6 -132
- package/dist/service/s3/sdk/sim-s3-sdk-object-lock-routes.d.ts +10 -0
- package/dist/service/s3/sdk/sim-s3-sdk-object-lock-routes.js +28 -0
- package/dist/service/s3/sdk/sim-s3-sdk-object-routes.d.ts +7 -0
- package/dist/service/s3/sdk/sim-s3-sdk-object-routes.js +80 -0
- package/dist/service/s3/sim-s3-commands.d.ts +4 -0
- package/dist/service/s3/sim-s3-commands.js +6 -0
- package/dist/service/s3/sim-s3-operations.d.ts +5 -5
- package/dist/service/s3/sim-s3-operations.js +5 -6
- package/dist/service/s3/sim-s3-version-operations.d.ts +32 -0
- package/dist/service/s3/sim-s3-version-operations.js +45 -0
- package/dist/service/scheduler/command/schedule/schedule.command.d.ts +9 -2
- package/dist/service/scheduler/command/schedule/sim-scheduler-described-schedule.js +2 -0
- package/dist/service/scheduler/command/schedule/sim-scheduler-unsimulated-target.js +0 -6
- package/dist/service/scheduler/command/sim-scheduler-command.types.d.ts +1 -1
- package/dist/service/scheduler/command/sim-scheduler-commands.js +1 -0
- package/dist/service/scheduler/delivery/sim-aws-scheduler-dead-letters.d.ts +17 -0
- package/dist/service/scheduler/delivery/sim-aws-scheduler-dead-letters.js +29 -0
- package/dist/service/scheduler/delivery/sim-aws-scheduler-delivery-targets.d.ts +6 -1
- package/dist/service/scheduler/delivery/sim-aws-scheduler-delivery-targets.js +9 -0
- package/dist/service/scheduler/delivery/sim-scheduler-dead-letter-queue.d.ts +18 -0
- package/dist/service/scheduler/delivery/sim-scheduler-dead-letter-queue.js +62 -0
- package/dist/service/scheduler/delivery/sim-scheduler-delivery-attempt.d.ts +29 -0
- package/dist/service/scheduler/delivery/sim-scheduler-delivery-attempt.js +81 -0
- package/dist/service/scheduler/delivery/sim-scheduler-delivery-function.js +9 -5
- package/dist/service/scheduler/delivery/sim-scheduler-delivery.d.ts +11 -0
- package/dist/service/scheduler/delivery/sim-scheduler-no-delivery-targets.d.ts +5 -1
- package/dist/service/scheduler/delivery/sim-scheduler-no-delivery-targets.js +8 -0
- package/dist/service/scheduler/delivery/sim-scheduler-target-delivery.d.ts +4 -1
- package/dist/service/scheduler/delivery/sim-scheduler-target-delivery.js +20 -15
- package/dist/service/scheduler/index.d.ts +1 -1
- package/dist/service/scheduler/target/sim-scheduler-dead-letter-config.d.ts +15 -0
- package/dist/service/scheduler/target/sim-scheduler-dead-letter-config.js +24 -0
- package/dist/service/scheduler/target/sim-scheduler-retry-policy.d.ts +20 -0
- package/dist/service/scheduler/target/sim-scheduler-retry-policy.js +37 -0
- package/dist/service/scheduler/target/sim-scheduler-target.d.ts +6 -0
- package/dist/service/scheduler/target/sim-scheduler-target.js +12 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-encryption-rules.d.ts +15 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-encryption-rules.js +33 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.d.ts +16 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-properties.js +33 -1
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.d.ts +12 -6
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-names.js +18 -13
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.d.ts +1 -0
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-property-rules.js +9 -1
- package/dist/service/ssm/parameter/sim-ssm-kms-crypto.d.ts +7 -10
- package/dist/service/ssm/parameter/sim-ssm-parameter-kms.d.ts +10 -11
- package/dist/service/ssm/parameter/sim-ssm-parameter-kms.js +11 -16
- package/dist/terraform/map/sim-tf-map-sqs-redrive.d.ts +4 -3
- package/dist/terraform/map/sim-tf-map-sqs-redrive.js +4 -3
- package/docs/README.md +1 -0
- package/docs/services/athena/README.md +7 -1
- package/docs/services/backup/README.md +553 -0
- package/docs/services/cloudformation/README.md +18 -7
- package/docs/services/cloudfront/README.md +903 -25
- package/docs/services/cloudwatch/README.md +159 -3
- package/docs/services/cognito/README.md +370 -7
- package/docs/services/ecs/README.md +5 -2
- package/docs/services/kms/README.md +9 -5
- package/docs/services/lambda/README.md +28 -0
- package/docs/services/logs/README.md +290 -3
- package/docs/services/s3/README.md +463 -20
- package/docs/services/scheduler/README.md +48 -9
- package/docs/services/sqs/README.md +47 -10
- package/docs/services/ssm/README.md +26 -33
- package/llms.txt +1 -0
- package/package.json +7 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { requiredString } from "../command/sim-backup-required-string.js";
|
|
2
|
+
import { readBackupRules } from "./sim-backup-rule.js";
|
|
3
|
+
/** Stores one simulated AWS Backup plan. */
|
|
4
|
+
export class SimBackupPlan {
|
|
5
|
+
id;
|
|
6
|
+
arn;
|
|
7
|
+
versionId;
|
|
8
|
+
creationDate;
|
|
9
|
+
creatorRequestId;
|
|
10
|
+
name;
|
|
11
|
+
rules;
|
|
12
|
+
constructor(properties) {
|
|
13
|
+
this.id = properties.id;
|
|
14
|
+
this.arn = properties.arn;
|
|
15
|
+
this.versionId = properties.versionId;
|
|
16
|
+
this.creationDate = new Date(properties.creationDate);
|
|
17
|
+
this.creatorRequestId = properties.creatorRequestId;
|
|
18
|
+
this.name = requiredString(properties.plan.BackupPlanName, "BackupPlanName");
|
|
19
|
+
this.rules = readBackupRules(properties.plan.Rules);
|
|
20
|
+
}
|
|
21
|
+
describe() {
|
|
22
|
+
return {
|
|
23
|
+
BackupPlan: {
|
|
24
|
+
BackupPlanName: this.name,
|
|
25
|
+
Rules: this.rules.map((rule) => ({
|
|
26
|
+
...rule,
|
|
27
|
+
Lifecycle: rule.Lifecycle === undefined ? undefined : { ...rule.Lifecycle },
|
|
28
|
+
})),
|
|
29
|
+
},
|
|
30
|
+
BackupPlanId: this.id,
|
|
31
|
+
BackupPlanArn: this.arn,
|
|
32
|
+
VersionId: this.versionId,
|
|
33
|
+
CreatorRequestId: this.creatorRequestId,
|
|
34
|
+
CreationDate: new Date(this.creationDate),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SimScheduleDialect } from "../../../util/schedule/sim-schedule-dialect.js";
|
|
2
|
+
import type { SimBackupRule, SimBackupRuleInput } from "../command/sim-backup-command.types.js";
|
|
3
|
+
export declare const defaultBackupScheduleExpression = "cron(0 5 ? * * *)";
|
|
4
|
+
/** Defines the AWS Backup cron dialect used by plan rules. */
|
|
5
|
+
export declare const backupScheduleDialect: SimScheduleDialect;
|
|
6
|
+
/** Reads and validates the rules in a backup plan. */
|
|
7
|
+
export declare function readBackupRules(input: readonly SimBackupRuleInput[] | undefined): readonly SimBackupRule[];
|
|
8
|
+
/** Enforces the relationship between cold storage and deletion. */
|
|
9
|
+
export declare function readBackupLifecycle(lifecycle: SimBackupRuleInput["Lifecycle"]): SimBackupRuleInput["Lifecycle"];
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { awsCronFieldSpecs } from "../../../util/schedule/cron/sim-cron-field-spec.js";
|
|
3
|
+
import { SimSchedule } from "../../../util/schedule/sim-schedule.js";
|
|
4
|
+
import { SimScheduleExpressionError } from "../../../util/schedule/sim-schedule.error.js";
|
|
5
|
+
import { requiredString } from "../command/sim-backup-required-string.js";
|
|
6
|
+
import { SimBackupInvalidParameterValueException, SimBackupMissingParameterValueException, } from "../error/sim-backup.error.js";
|
|
7
|
+
export const defaultBackupScheduleExpression = "cron(0 5 ? * * *)";
|
|
8
|
+
/** Defines the AWS Backup cron dialect used by plan rules. */
|
|
9
|
+
export const backupScheduleDialect = {
|
|
10
|
+
cronFields: awsCronFieldSpecs,
|
|
11
|
+
requiresRateAgreement: true,
|
|
12
|
+
allowsOneTime: false,
|
|
13
|
+
};
|
|
14
|
+
/** Reads and validates the rules in a backup plan. */
|
|
15
|
+
export function readBackupRules(input) {
|
|
16
|
+
if (input === undefined || input.length === 0) {
|
|
17
|
+
throw new SimBackupMissingParameterValueException("BackupPlan.Rules must contain at least one rule");
|
|
18
|
+
}
|
|
19
|
+
return input.map((rule) => readBackupRule(rule));
|
|
20
|
+
}
|
|
21
|
+
/** Validates and normalizes one backup plan rule for storage. */
|
|
22
|
+
function readBackupRule(input) {
|
|
23
|
+
const schedule = input.ScheduleExpression ?? defaultBackupScheduleExpression;
|
|
24
|
+
validateSchedule(schedule);
|
|
25
|
+
const lifecycle = readBackupLifecycle(input.Lifecycle);
|
|
26
|
+
return {
|
|
27
|
+
RuleId: randomUUID(),
|
|
28
|
+
RuleName: requiredString(input.RuleName, "RuleName"),
|
|
29
|
+
TargetBackupVaultName: requiredString(input.TargetBackupVaultName, "TargetBackupVaultName"),
|
|
30
|
+
ScheduleExpression: schedule,
|
|
31
|
+
Lifecycle: lifecycle,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/** Rejects expressions outside the AWS Backup schedule dialect. */
|
|
35
|
+
function validateSchedule(schedule) {
|
|
36
|
+
try {
|
|
37
|
+
SimSchedule.of(schedule, backupScheduleDialect);
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
if (error instanceof SimScheduleExpressionError) {
|
|
41
|
+
throw new SimBackupInvalidParameterValueException(error.message);
|
|
42
|
+
}
|
|
43
|
+
throw error;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/** Enforces the relationship between cold storage and deletion. */
|
|
47
|
+
export function readBackupLifecycle(lifecycle) {
|
|
48
|
+
const coldAfter = lifecycle?.MoveToColdStorageAfterDays;
|
|
49
|
+
const deleteAfter = lifecycle?.DeleteAfterDays;
|
|
50
|
+
const retainedIndefinitely = coldAfter === -1 && deleteAfter === -1;
|
|
51
|
+
for (const [name, days] of [
|
|
52
|
+
["MoveToColdStorageAfterDays", coldAfter],
|
|
53
|
+
["DeleteAfterDays", deleteAfter],
|
|
54
|
+
]) {
|
|
55
|
+
if (days !== undefined &&
|
|
56
|
+
days !== -1 &&
|
|
57
|
+
(!Number.isSafeInteger(days) || days < 1 || days > 36_500)) {
|
|
58
|
+
throw new SimBackupInvalidParameterValueException(`${name} must be between 1 and 36500`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (!retainedIndefinitely && (coldAfter === -1 || deleteAfter === -1)) {
|
|
62
|
+
throw new SimBackupInvalidParameterValueException("MoveToColdStorageAfterDays and DeleteAfterDays must both be -1");
|
|
63
|
+
}
|
|
64
|
+
if (!retainedIndefinitely &&
|
|
65
|
+
coldAfter !== undefined &&
|
|
66
|
+
deleteAfter !== undefined &&
|
|
67
|
+
deleteAfter < coldAfter + 90) {
|
|
68
|
+
throw new SimBackupInvalidParameterValueException("DeleteAfterDays must be at least 90 days after MoveToColdStorageAfterDays");
|
|
69
|
+
}
|
|
70
|
+
return lifecycle === undefined ? undefined : { ...lifecycle };
|
|
71
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { SimBackupLifecycle, SimRecoveryPointCreator, SimRecoveryPointOutput } from "../command/sim-backup-command.types.js";
|
|
2
|
+
interface SimBackupRecoveryPointProperties {
|
|
3
|
+
readonly arn: string;
|
|
4
|
+
readonly vaultName: string;
|
|
5
|
+
readonly vaultArn: string;
|
|
6
|
+
readonly resourceArn: string;
|
|
7
|
+
readonly iamRoleArn: string;
|
|
8
|
+
readonly creationDate: Date;
|
|
9
|
+
readonly lifecycle?: SimBackupLifecycle | undefined;
|
|
10
|
+
readonly createdBy?: SimRecoveryPointCreator | undefined;
|
|
11
|
+
readonly encryptionKeyArn?: string | undefined;
|
|
12
|
+
}
|
|
13
|
+
/** A completed recovery point stored in a simulated backup vault. */
|
|
14
|
+
export declare class SimBackupRecoveryPoint {
|
|
15
|
+
readonly arn: string;
|
|
16
|
+
readonly vaultName: string;
|
|
17
|
+
readonly vaultArn: string;
|
|
18
|
+
readonly resourceArn: string;
|
|
19
|
+
readonly iamRoleArn: string;
|
|
20
|
+
readonly creationDate: Date;
|
|
21
|
+
readonly lifecycle?: SimBackupLifecycle | undefined;
|
|
22
|
+
readonly createdBy?: SimRecoveryPointCreator | undefined;
|
|
23
|
+
readonly encryptionKeyArn?: string | undefined;
|
|
24
|
+
constructor(properties: SimBackupRecoveryPointProperties);
|
|
25
|
+
isExpired(now: Date): boolean;
|
|
26
|
+
describe(): SimRecoveryPointOutput;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SimAwsAccountRegionScope } from "../../aws/sim-aws-account-region-scope.js";
|
|
2
|
+
import type { StartSimBackupJob } from "../job/sim-backup-job-input.js";
|
|
3
|
+
import { SimBackupRecoveryPoint } from "./sim-backup-recovery-point.js";
|
|
4
|
+
/** Creates a recovery point from a successful backup attempt. */
|
|
5
|
+
export declare class SimBackupRecoveryPointFactory {
|
|
6
|
+
private readonly scope;
|
|
7
|
+
constructor(scope: SimAwsAccountRegionScope);
|
|
8
|
+
make(input: StartSimBackupJob): SimBackupRecoveryPoint;
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { recoveryPointArn } from "../sim-backup-arn.js";
|
|
3
|
+
import { SimBackupRecoveryPoint } from "./sim-backup-recovery-point.js";
|
|
4
|
+
/** Creates a recovery point from a successful backup attempt. */
|
|
5
|
+
export class SimBackupRecoveryPointFactory {
|
|
6
|
+
scope;
|
|
7
|
+
constructor(scope) {
|
|
8
|
+
this.scope = scope;
|
|
9
|
+
}
|
|
10
|
+
make(input) {
|
|
11
|
+
return new SimBackupRecoveryPoint({
|
|
12
|
+
arn: recoveryPointArn(randomUUID(), this.scope),
|
|
13
|
+
vaultName: input.vault.name,
|
|
14
|
+
vaultArn: input.vault.arn,
|
|
15
|
+
resourceArn: input.resourceArn,
|
|
16
|
+
iamRoleArn: input.iamRoleArn,
|
|
17
|
+
creationDate: input.at,
|
|
18
|
+
lifecycle: input.lifecycle,
|
|
19
|
+
createdBy: input.createdBy,
|
|
20
|
+
encryptionKeyArn: input.vault.encryptionKeyArn,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const millisecondsPerDay = 24 * 60 * 60 * 1000;
|
|
2
|
+
/** A completed recovery point stored in a simulated backup vault. */
|
|
3
|
+
export class SimBackupRecoveryPoint {
|
|
4
|
+
arn;
|
|
5
|
+
vaultName;
|
|
6
|
+
vaultArn;
|
|
7
|
+
resourceArn;
|
|
8
|
+
iamRoleArn;
|
|
9
|
+
creationDate;
|
|
10
|
+
lifecycle;
|
|
11
|
+
createdBy;
|
|
12
|
+
encryptionKeyArn;
|
|
13
|
+
constructor(properties) {
|
|
14
|
+
this.arn = properties.arn;
|
|
15
|
+
this.vaultName = properties.vaultName;
|
|
16
|
+
this.vaultArn = properties.vaultArn;
|
|
17
|
+
this.resourceArn = properties.resourceArn;
|
|
18
|
+
this.iamRoleArn = properties.iamRoleArn;
|
|
19
|
+
this.creationDate = new Date(properties.creationDate);
|
|
20
|
+
this.lifecycle =
|
|
21
|
+
properties.lifecycle === undefined
|
|
22
|
+
? undefined
|
|
23
|
+
: { ...properties.lifecycle };
|
|
24
|
+
this.createdBy =
|
|
25
|
+
properties.createdBy === undefined
|
|
26
|
+
? undefined
|
|
27
|
+
: { ...properties.createdBy };
|
|
28
|
+
this.encryptionKeyArn = properties.encryptionKeyArn;
|
|
29
|
+
}
|
|
30
|
+
isExpired(now) {
|
|
31
|
+
const deleteAt = lifecycleDate(this.creationDate, this.lifecycle?.DeleteAfterDays);
|
|
32
|
+
return deleteAt !== undefined && now >= deleteAt;
|
|
33
|
+
}
|
|
34
|
+
describe() {
|
|
35
|
+
return {
|
|
36
|
+
RecoveryPointArn: this.arn,
|
|
37
|
+
BackupVaultName: this.vaultName,
|
|
38
|
+
BackupVaultArn: this.vaultArn,
|
|
39
|
+
ResourceArn: this.resourceArn,
|
|
40
|
+
CreatedBy: this.createdBy === undefined ? undefined : { ...this.createdBy },
|
|
41
|
+
IamRoleArn: this.iamRoleArn,
|
|
42
|
+
Status: "COMPLETED",
|
|
43
|
+
CreationDate: new Date(this.creationDate),
|
|
44
|
+
InitiationDate: new Date(this.creationDate),
|
|
45
|
+
CompletionDate: new Date(this.creationDate),
|
|
46
|
+
CalculatedLifecycle: {
|
|
47
|
+
MoveToColdStorageAt: lifecycleDate(this.creationDate, this.lifecycle?.MoveToColdStorageAfterDays),
|
|
48
|
+
DeleteAt: lifecycleDate(this.creationDate, this.lifecycle?.DeleteAfterDays),
|
|
49
|
+
},
|
|
50
|
+
Lifecycle: this.lifecycle === undefined ? undefined : { ...this.lifecycle },
|
|
51
|
+
EncryptionKeyArn: this.encryptionKeyArn,
|
|
52
|
+
IsEncrypted: true,
|
|
53
|
+
VaultType: "BACKUP_VAULT",
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function lifecycleDate(createdAt, days) {
|
|
58
|
+
if (days === undefined || days === -1) {
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
return new Date(createdAt.getTime() + days * millisecondsPerDay);
|
|
62
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type SimSdkCommandRoute, type SimSdkCommandRouter } from "../../../sdk/index.js";
|
|
2
|
+
import type { SimBackup } from "../sim-backup.js";
|
|
3
|
+
/** Routes supported BackupClient commands to simulated AWS Backup. */
|
|
4
|
+
export declare class SimBackupSdkCommandRouter implements SimSdkCommandRouter {
|
|
5
|
+
private readonly routes;
|
|
6
|
+
constructor(backup: SimBackup);
|
|
7
|
+
supportedCommandNames(): readonly string[];
|
|
8
|
+
route(commandName: string): SimSdkCommandRoute | undefined;
|
|
9
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { simSdkCallerOptions, } from "../../../sdk/index.js";
|
|
2
|
+
/** Routes supported BackupClient commands to simulated AWS Backup. */
|
|
3
|
+
export class SimBackupSdkCommandRouter {
|
|
4
|
+
routes;
|
|
5
|
+
constructor(backup) {
|
|
6
|
+
this.routes = new Map([
|
|
7
|
+
route("CreateBackupVaultCommand", (command, options) => backup.createBackupVault(command, options)),
|
|
8
|
+
route("DescribeBackupVaultCommand", (command, options) => backup.describeBackupVault(command, options)),
|
|
9
|
+
route("DeleteBackupVaultCommand", (command, options) => backup.deleteBackupVault(command, options)),
|
|
10
|
+
route("ListBackupVaultsCommand", (command, options) => backup.listBackupVaults(command, options)),
|
|
11
|
+
route("PutBackupVaultLockConfigurationCommand", (command, options) => backup.putBackupVaultLockConfiguration(command, options)),
|
|
12
|
+
route("CreateBackupPlanCommand", (command, options) => backup.createBackupPlan(command, options)),
|
|
13
|
+
route("GetBackupPlanCommand", (command, options) => backup.getBackupPlan(command, options)),
|
|
14
|
+
route("CreateBackupSelectionCommand", (command, options) => backup.createBackupSelection(command, options)),
|
|
15
|
+
route("GetBackupSelectionCommand", (command, options) => backup.getBackupSelection(command, options)),
|
|
16
|
+
route("ListBackupSelectionsCommand", (command, options) => backup.listBackupSelections(command, options)),
|
|
17
|
+
route("StartBackupJobCommand", (command, options) => backup.startBackupJob(command, options)),
|
|
18
|
+
route("DescribeBackupJobCommand", (command, options) => backup.describeBackupJob(command, options)),
|
|
19
|
+
route("ListBackupJobsCommand", (command, options) => backup.listBackupJobs(command, options)),
|
|
20
|
+
route("ListRecoveryPointsByBackupVaultCommand", (command, options) => backup.listRecoveryPointsByBackupVault(command, options)),
|
|
21
|
+
route("DescribeRecoveryPointCommand", (command, options) => backup.describeRecoveryPoint(command, options)),
|
|
22
|
+
]);
|
|
23
|
+
}
|
|
24
|
+
supportedCommandNames() {
|
|
25
|
+
return this.routes.keys().toArray();
|
|
26
|
+
}
|
|
27
|
+
route(commandName) {
|
|
28
|
+
return this.routes.get(commandName);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/** Builds one route with caller options from the interception context. */
|
|
32
|
+
function route(name, handle) {
|
|
33
|
+
return [
|
|
34
|
+
name,
|
|
35
|
+
async (command, context) => await handle(command, simSdkCallerOptions(context)),
|
|
36
|
+
];
|
|
37
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SimBackupSelectionInput, SimBackupSelectionListMember, SimGetBackupSelectionCommandOutput } from "../command/sim-backup-command.types.js";
|
|
2
|
+
interface SimBackupSelectionProperties {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly planId: string;
|
|
5
|
+
readonly creationDate: Date;
|
|
6
|
+
readonly creatorRequestId?: string | undefined;
|
|
7
|
+
readonly selection: SimBackupSelectionInput;
|
|
8
|
+
}
|
|
9
|
+
/** Stored configuration for one selection in a backup plan. */
|
|
10
|
+
export declare class SimBackupSelection {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly planId: string;
|
|
13
|
+
readonly creationDate: Date;
|
|
14
|
+
readonly creatorRequestId?: string | undefined;
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly iamRoleArn: string;
|
|
17
|
+
readonly resources: readonly string[];
|
|
18
|
+
constructor(properties: SimBackupSelectionProperties);
|
|
19
|
+
describe(): SimGetBackupSelectionCommandOutput;
|
|
20
|
+
listMember(): SimBackupSelectionListMember;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { requiredString } from "../command/sim-backup-required-string.js";
|
|
2
|
+
/** Stored configuration for one selection in a backup plan. */
|
|
3
|
+
export class SimBackupSelection {
|
|
4
|
+
id;
|
|
5
|
+
planId;
|
|
6
|
+
creationDate;
|
|
7
|
+
creatorRequestId;
|
|
8
|
+
name;
|
|
9
|
+
iamRoleArn;
|
|
10
|
+
resources;
|
|
11
|
+
constructor(properties) {
|
|
12
|
+
this.id = properties.id;
|
|
13
|
+
this.planId = properties.planId;
|
|
14
|
+
this.creationDate = new Date(properties.creationDate);
|
|
15
|
+
this.creatorRequestId = properties.creatorRequestId;
|
|
16
|
+
this.name = requiredString(properties.selection.SelectionName, "SelectionName");
|
|
17
|
+
this.iamRoleArn = requiredString(properties.selection.IamRoleArn, "IamRoleArn");
|
|
18
|
+
this.resources = [...(properties.selection.Resources ?? [])];
|
|
19
|
+
}
|
|
20
|
+
describe() {
|
|
21
|
+
return {
|
|
22
|
+
BackupSelection: {
|
|
23
|
+
SelectionName: this.name,
|
|
24
|
+
IamRoleArn: this.iamRoleArn,
|
|
25
|
+
Resources: [...this.resources],
|
|
26
|
+
},
|
|
27
|
+
SelectionId: this.id,
|
|
28
|
+
BackupPlanId: this.planId,
|
|
29
|
+
CreationDate: new Date(this.creationDate),
|
|
30
|
+
CreatorRequestId: this.creatorRequestId,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
listMember() {
|
|
34
|
+
return {
|
|
35
|
+
SelectionId: this.id,
|
|
36
|
+
SelectionName: this.name,
|
|
37
|
+
BackupPlanId: this.planId,
|
|
38
|
+
CreationDate: new Date(this.creationDate),
|
|
39
|
+
CreatorRequestId: this.creatorRequestId,
|
|
40
|
+
IamRoleArn: this.iamRoleArn,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SimAwsAccountRegionScope } from "../aws/sim-aws-account-region-scope.js";
|
|
2
|
+
/** Builds the ARN of a backup vault in the supplied scope. */
|
|
3
|
+
export declare function backupVaultArn(name: string, scope: SimAwsAccountRegionScope): string;
|
|
4
|
+
/** Builds the ARN of a backup plan in the supplied scope. */
|
|
5
|
+
export declare function backupPlanArn(id: string, scope: SimAwsAccountRegionScope): string;
|
|
6
|
+
/** Builds the ARN of a recovery point in the supplied scope. */
|
|
7
|
+
export declare function recoveryPointArn(id: string, scope: SimAwsAccountRegionScope): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Builds the ARN of a backup vault in the supplied scope. */
|
|
2
|
+
export function backupVaultArn(name, scope) {
|
|
3
|
+
return `arn:aws:backup:${scope.regionName}:${scope.accountId}:backup-vault:${name}`;
|
|
4
|
+
}
|
|
5
|
+
/** Builds the ARN of a backup plan in the supplied scope. */
|
|
6
|
+
export function backupPlanArn(id, scope) {
|
|
7
|
+
return `arn:aws:backup:${scope.regionName}:${scope.accountId}:backup-plan:${id}`;
|
|
8
|
+
}
|
|
9
|
+
/** Builds the ARN of a recovery point in the supplied scope. */
|
|
10
|
+
export function recoveryPointArn(id, scope) {
|
|
11
|
+
return `arn:aws:backup:${scope.regionName}:${scope.accountId}:recovery-point:${id}`;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BackgroundScheduler } from "../../util/background/background.js";
|
|
2
|
+
import type { SimAwsAccountRegionScope } from "../aws/sim-aws-account-region-scope.js";
|
|
3
|
+
import type { SimIamInterServiceAuthZ } from "../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
4
|
+
export interface SimBackupProperties {
|
|
5
|
+
readonly accountRegionScope?: SimAwsAccountRegionScope;
|
|
6
|
+
readonly iam?: SimIamInterServiceAuthZ;
|
|
7
|
+
readonly background?: BackgroundScheduler;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SimAwsAccountRegionScope } from "../aws/sim-aws-account-region-scope.js";
|
|
2
|
+
import type { SimBackupRequestOptions } from "./command/sim-backup-request-options.js";
|
|
3
|
+
import type { SimBackupAuthorizer } from "./command/sim-backup-authorizer.js";
|
|
4
|
+
import type { SimBackupPlan } from "./plan/sim-backup-plan.js";
|
|
5
|
+
import type { SimBackupSelection } from "./selection/sim-backup-selection.js";
|
|
6
|
+
import type { SimBackupStore } from "./sim-backup-store.js";
|
|
7
|
+
import type { SimBackupVault } from "./vault/sim-backup-vault.js";
|
|
8
|
+
interface SimBackupResourceResolverProperties {
|
|
9
|
+
readonly scope: SimAwsAccountRegionScope;
|
|
10
|
+
readonly authorizer: SimBackupAuthorizer;
|
|
11
|
+
readonly store: SimBackupStore;
|
|
12
|
+
}
|
|
13
|
+
/** Resolves AWS Backup resources after validating the request and IAM policy. */
|
|
14
|
+
export declare class SimBackupResourceResolver {
|
|
15
|
+
private readonly scope;
|
|
16
|
+
private readonly authorizer;
|
|
17
|
+
private readonly store;
|
|
18
|
+
constructor(properties: SimBackupResourceResolverProperties);
|
|
19
|
+
authorizedVault(action: string, requestedName: string | undefined, options?: SimBackupRequestOptions): SimBackupVault;
|
|
20
|
+
authorizedPlan(action: string, requestedId: string | undefined, options?: SimBackupRequestOptions): SimBackupPlan;
|
|
21
|
+
requireVault(name: string | undefined): SimBackupVault;
|
|
22
|
+
requireSelection(planId: string, requestedId: string | undefined): SimBackupSelection;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { requiredString } from "./command/sim-backup-required-string.js";
|
|
2
|
+
import { SimBackupResourceNotFoundException } from "./error/sim-backup.error.js";
|
|
3
|
+
import { backupPlanArn, backupVaultArn } from "./sim-backup-arn.js";
|
|
4
|
+
/** Resolves AWS Backup resources after validating the request and IAM policy. */
|
|
5
|
+
export class SimBackupResourceResolver {
|
|
6
|
+
scope;
|
|
7
|
+
authorizer;
|
|
8
|
+
store;
|
|
9
|
+
constructor(properties) {
|
|
10
|
+
this.scope = properties.scope;
|
|
11
|
+
this.authorizer = properties.authorizer;
|
|
12
|
+
this.store = properties.store;
|
|
13
|
+
}
|
|
14
|
+
authorizedVault(action, requestedName, options) {
|
|
15
|
+
const name = requiredString(requestedName, "BackupVaultName");
|
|
16
|
+
this.authorizer.authorize(action, backupVaultArn(name, this.scope), options);
|
|
17
|
+
return this.requireVault(name);
|
|
18
|
+
}
|
|
19
|
+
authorizedPlan(action, requestedId, options) {
|
|
20
|
+
const id = requiredString(requestedId, "BackupPlanId");
|
|
21
|
+
this.authorizer.authorize(action, backupPlanArn(id, this.scope), options);
|
|
22
|
+
const plan = this.store.plan(id);
|
|
23
|
+
if (plan === undefined) {
|
|
24
|
+
throw new SimBackupResourceNotFoundException(`Backup plan ${id} does not exist`);
|
|
25
|
+
}
|
|
26
|
+
return plan;
|
|
27
|
+
}
|
|
28
|
+
requireVault(name) {
|
|
29
|
+
const required = requiredString(name, "TargetBackupVaultName");
|
|
30
|
+
const vault = this.store.vault(required);
|
|
31
|
+
if (vault === undefined) {
|
|
32
|
+
throw new SimBackupResourceNotFoundException(`Backup vault ${required} does not exist`);
|
|
33
|
+
}
|
|
34
|
+
return vault;
|
|
35
|
+
}
|
|
36
|
+
requireSelection(planId, requestedId) {
|
|
37
|
+
const id = requiredString(requestedId, "SelectionId");
|
|
38
|
+
const selection = this.store.selection(id);
|
|
39
|
+
if (selection === undefined || selection.planId !== planId) {
|
|
40
|
+
throw new SimBackupResourceNotFoundException(`Backup selection ${id} does not exist in plan ${planId}`);
|
|
41
|
+
}
|
|
42
|
+
return selection;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { SimBackupJob } from "./job/sim-backup-job.js";
|
|
2
|
+
import type { SimBackupPlan } from "./plan/sim-backup-plan.js";
|
|
3
|
+
import type { SimBackupSelection } from "./selection/sim-backup-selection.js";
|
|
4
|
+
import type { SimBackupVault } from "./vault/sim-backup-vault.js";
|
|
5
|
+
/**
|
|
6
|
+
* Holds AWS Backup resources for one simulated account and Region.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SimBackupStore {
|
|
9
|
+
private readonly vaults;
|
|
10
|
+
private readonly plans;
|
|
11
|
+
private readonly selections;
|
|
12
|
+
private readonly jobs;
|
|
13
|
+
private readonly jobsByIdempotencyToken;
|
|
14
|
+
addVault(vault: SimBackupVault): void;
|
|
15
|
+
vault(name: string): SimBackupVault | undefined;
|
|
16
|
+
allVaults(): MapIterator<SimBackupVault>;
|
|
17
|
+
removeVault(name: string): void;
|
|
18
|
+
addPlan(plan: SimBackupPlan): void;
|
|
19
|
+
plan(id: string): SimBackupPlan | undefined;
|
|
20
|
+
removePlan(id: string): void;
|
|
21
|
+
addSelection(selection: SimBackupSelection): void;
|
|
22
|
+
selection(id: string): SimBackupSelection | undefined;
|
|
23
|
+
selectionsForPlan(planId: string): IteratorObject<SimBackupSelection>;
|
|
24
|
+
removeSelection(id: string): void;
|
|
25
|
+
addJob(job: SimBackupJob, idempotencyToken?: string): void;
|
|
26
|
+
job(id: string): SimBackupJob | undefined;
|
|
27
|
+
jobByIdempotencyToken(token: string): SimBackupJob | undefined;
|
|
28
|
+
allJobs(): MapIterator<SimBackupJob>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { SimBackupAlreadyExistsException } from "./error/sim-backup.error.js";
|
|
2
|
+
/**
|
|
3
|
+
* Holds AWS Backup resources for one simulated account and Region.
|
|
4
|
+
*/
|
|
5
|
+
export class SimBackupStore {
|
|
6
|
+
vaults = new Map();
|
|
7
|
+
plans = new Map();
|
|
8
|
+
selections = new Map();
|
|
9
|
+
jobs = new Map();
|
|
10
|
+
jobsByIdempotencyToken = new Map();
|
|
11
|
+
addVault(vault) {
|
|
12
|
+
if (this.vaults.has(vault.name)) {
|
|
13
|
+
throw new SimBackupAlreadyExistsException(`A backup vault named ${vault.name} already exists`);
|
|
14
|
+
}
|
|
15
|
+
this.vaults.set(vault.name, vault);
|
|
16
|
+
}
|
|
17
|
+
vault(name) {
|
|
18
|
+
return this.vaults.get(name);
|
|
19
|
+
}
|
|
20
|
+
allVaults() {
|
|
21
|
+
return this.vaults.values();
|
|
22
|
+
}
|
|
23
|
+
removeVault(name) {
|
|
24
|
+
this.vaults.delete(name);
|
|
25
|
+
}
|
|
26
|
+
addPlan(plan) {
|
|
27
|
+
if (this.plans.values().some((stored) => stored.name === plan.name)) {
|
|
28
|
+
throw new SimBackupAlreadyExistsException(`A backup plan named ${plan.name} already exists`);
|
|
29
|
+
}
|
|
30
|
+
this.plans.set(plan.id, plan);
|
|
31
|
+
}
|
|
32
|
+
plan(id) {
|
|
33
|
+
return this.plans.get(id);
|
|
34
|
+
}
|
|
35
|
+
removePlan(id) {
|
|
36
|
+
this.plans.delete(id);
|
|
37
|
+
const selectionIds = this.selections
|
|
38
|
+
.values()
|
|
39
|
+
.filter((selection) => selection.planId === id)
|
|
40
|
+
.map((selection) => selection.id)
|
|
41
|
+
.toArray();
|
|
42
|
+
for (const selectionId of selectionIds)
|
|
43
|
+
this.selections.delete(selectionId);
|
|
44
|
+
}
|
|
45
|
+
addSelection(selection) {
|
|
46
|
+
if (this.selections
|
|
47
|
+
.values()
|
|
48
|
+
.some((stored) => stored.planId === selection.planId &&
|
|
49
|
+
stored.name === selection.name)) {
|
|
50
|
+
throw new SimBackupAlreadyExistsException(`A backup selection named ${selection.name} already exists`);
|
|
51
|
+
}
|
|
52
|
+
this.selections.set(selection.id, selection);
|
|
53
|
+
}
|
|
54
|
+
selection(id) {
|
|
55
|
+
return this.selections.get(id);
|
|
56
|
+
}
|
|
57
|
+
selectionsForPlan(planId) {
|
|
58
|
+
return this.selections
|
|
59
|
+
.values()
|
|
60
|
+
.filter((selection) => selection.planId === planId);
|
|
61
|
+
}
|
|
62
|
+
removeSelection(id) {
|
|
63
|
+
this.selections.delete(id);
|
|
64
|
+
}
|
|
65
|
+
addJob(job, idempotencyToken) {
|
|
66
|
+
this.jobs.set(job.id, job);
|
|
67
|
+
if (idempotencyToken !== undefined) {
|
|
68
|
+
this.jobsByIdempotencyToken.set(idempotencyToken, job);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
job(id) {
|
|
72
|
+
return this.jobs.get(id);
|
|
73
|
+
}
|
|
74
|
+
jobByIdempotencyToken(token) {
|
|
75
|
+
return this.jobsByIdempotencyToken.get(token);
|
|
76
|
+
}
|
|
77
|
+
allJobs() {
|
|
78
|
+
return this.jobs.values();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { SimSdkCommandRouter } from "../../sdk/router/sim-sdk-command-router.type.js";
|
|
2
|
+
import type * as commands from "./command/sim-backup-command.types.js";
|
|
3
|
+
import type { SimBackupRequestOptions } from "./command/sim-backup-request-options.js";
|
|
4
|
+
import type { SimBackupPlan } from "./plan/sim-backup-plan.js";
|
|
5
|
+
import type { SimBackupSelection } from "./selection/sim-backup-selection.js";
|
|
6
|
+
import type { SimBackupProperties } from "./sim-backup-properties.js";
|
|
7
|
+
import type { SimBackupVault } from "./vault/sim-backup-vault.js";
|
|
8
|
+
import { SimBackupCfnResourceFactory } from "./cfn/sim-backup-cfn-resource-factory.js";
|
|
9
|
+
/** Simulates AWS Backup resources in one account and Region. */
|
|
10
|
+
export declare class SimBackup {
|
|
11
|
+
private readonly store;
|
|
12
|
+
private readonly scope;
|
|
13
|
+
private readonly background;
|
|
14
|
+
private readonly authorizer;
|
|
15
|
+
private readonly resolver;
|
|
16
|
+
private readonly jobs;
|
|
17
|
+
private readonly schedules;
|
|
18
|
+
private readonly jobCommands;
|
|
19
|
+
private readonly recoveryPointCommands;
|
|
20
|
+
private readonly configurationCommands;
|
|
21
|
+
private readonly sdkRouter;
|
|
22
|
+
private readonly cfnFactory;
|
|
23
|
+
constructor(properties?: SimBackupProperties);
|
|
24
|
+
createBackupVault(command: commands.SimCreateBackupVaultCommand, options?: SimBackupRequestOptions): Promise<commands.SimCreateBackupVaultCommandOutput>;
|
|
25
|
+
describeBackupVault(command: commands.SimDescribeBackupVaultCommand, options?: SimBackupRequestOptions): Promise<commands.SimDescribeBackupVaultCommandOutput>;
|
|
26
|
+
deleteBackupVault(command: commands.SimDeleteBackupVaultCommand, options?: SimBackupRequestOptions): Promise<commands.SimDeleteBackupVaultCommandOutput>;
|
|
27
|
+
listBackupVaults(_command: commands.SimListBackupVaultsCommand, options?: SimBackupRequestOptions): Promise<commands.SimListBackupVaultsCommandOutput>;
|
|
28
|
+
putBackupVaultLockConfiguration(command: commands.SimPutBackupVaultLockConfigurationCommand, options?: SimBackupRequestOptions): Promise<commands.SimPutBackupVaultLockConfigurationCommandOutput>;
|
|
29
|
+
createBackupPlan(command: commands.SimCreateBackupPlanCommand, options?: SimBackupRequestOptions): Promise<commands.SimCreateBackupPlanCommandOutput>;
|
|
30
|
+
getBackupPlan(command: commands.SimGetBackupPlanCommand, options?: SimBackupRequestOptions): Promise<commands.SimGetBackupPlanCommandOutput>;
|
|
31
|
+
createBackupSelection(command: commands.SimCreateBackupSelectionCommand, options?: SimBackupRequestOptions): Promise<commands.SimCreateBackupSelectionCommandOutput>;
|
|
32
|
+
getBackupSelection(command: commands.SimGetBackupSelectionCommand, options?: SimBackupRequestOptions): Promise<commands.SimGetBackupSelectionCommandOutput>;
|
|
33
|
+
listBackupSelections(command: commands.SimListBackupSelectionsCommand, options?: SimBackupRequestOptions): Promise<commands.SimListBackupSelectionsCommandOutput>;
|
|
34
|
+
startBackupJob(command: commands.SimStartBackupJobCommand, options?: SimBackupRequestOptions): Promise<commands.SimStartBackupJobCommandOutput>;
|
|
35
|
+
describeBackupJob(command: commands.SimDescribeBackupJobCommand, options?: SimBackupRequestOptions): Promise<commands.SimDescribeBackupJobCommandOutput>;
|
|
36
|
+
listBackupJobs(command: commands.SimListBackupJobsCommand, options?: SimBackupRequestOptions): Promise<commands.SimListBackupJobsCommandOutput>;
|
|
37
|
+
listRecoveryPointsByBackupVault(command: commands.SimListRecoveryPointsByBackupVaultCommand, options?: SimBackupRequestOptions): Promise<commands.SimListRecoveryPointsByBackupVaultCommandOutput>;
|
|
38
|
+
describeRecoveryPoint(command: commands.SimDescribeRecoveryPointCommand, options?: SimBackupRequestOptions): Promise<commands.SimDescribeRecoveryPointCommandOutput>;
|
|
39
|
+
vault(name: string): SimBackupVault;
|
|
40
|
+
findBackupVault(name: string): SimBackupVault | undefined;
|
|
41
|
+
findBackupPlan(id: string): SimBackupPlan | undefined;
|
|
42
|
+
findBackupSelection(id: string): SimBackupSelection | undefined;
|
|
43
|
+
removeBackupVault(name: string): void;
|
|
44
|
+
removeBackupPlan(id: string): void;
|
|
45
|
+
removeBackupSelection(id: string): void;
|
|
46
|
+
sdkCommandRouter(): SimSdkCommandRouter;
|
|
47
|
+
cfnResourceFactory(): SimBackupCfnResourceFactory;
|
|
48
|
+
}
|