@kensio/yulin 1.20.13 → 1.20.15
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/{dist/config/oxlint/cffjs2.oxlintrc.json → cffjs2.oxlintrc.json} +1 -1
- package/dist/config/oxlint/cffjs2.oxlint.config.js +4 -3
- package/dist/service/acm/cfn/certificate/sim-cfn-acm-cert-creator.js +6 -4
- package/dist/service/acm/cfn/sim-cfn-acm-resource-factory.d.ts +2 -2
- package/dist/service/acm/cfn/sim-cfn-acm-resource-factory.js +3 -4
- package/dist/service/acm/cfn/validation/sim-cfn-acm-cert-validation.d.ts +2 -1
- package/dist/service/acm/cfn/validation/sim-cfn-acm-cert-validation.js +2 -2
- package/dist/service/acm/cfn/validation/sim-cfn-acm-validation-records.d.ts +2 -1
- package/dist/service/acm/cfn/validation/sim-cfn-acm-validation-records.js +4 -4
- package/dist/service/acm/sim-acm.d.ts +1 -1
- package/dist/service/acm/sim-acm.js +3 -2
- package/dist/service/apigateway/cfn/api/sim-cfn-rest-api-creator.d.ts +2 -1
- package/dist/service/apigateway/cfn/api/sim-cfn-rest-api-creator.js +11 -13
- package/dist/service/apigateway/cfn/authorizer/sim-cfn-rest-api-authorizer-creator.d.ts +2 -1
- package/dist/service/apigateway/cfn/authorizer/sim-cfn-rest-api-authorizer-creator.js +2 -4
- package/dist/service/apigateway/cfn/deployment/sim-cfn-rest-api-deployment-creator.d.ts +2 -1
- package/dist/service/apigateway/cfn/deployment/sim-cfn-rest-api-deployment-creator.js +2 -4
- package/dist/service/apigateway/cfn/method/sim-cfn-rest-api-method-creator.d.ts +2 -1
- package/dist/service/apigateway/cfn/method/sim-cfn-rest-api-method-creator.js +3 -5
- package/dist/service/apigateway/cfn/method/sim-cfn-rest-api-method-integration.d.ts +2 -1
- package/dist/service/apigateway/cfn/method/sim-cfn-rest-api-method-integration.js +3 -3
- package/dist/service/apigateway/cfn/resource/sim-cfn-rest-api-resource-creator.d.ts +2 -1
- package/dist/service/apigateway/cfn/resource/sim-cfn-rest-api-resource-creator.js +2 -4
- package/dist/service/apigateway/cfn/sim-cfn-api-gateway-resource-deleter.d.ts +2 -1
- package/dist/service/apigateway/cfn/sim-cfn-api-gateway-resource-deleter.js +3 -5
- package/dist/service/apigateway/cfn/sim-cfn-api-gateway-resource-factory.js +9 -7
- package/dist/service/apigateway/cfn/sim-cfn-rest-api-part-deleter.d.ts +2 -7
- package/dist/service/apigateway/cfn/sim-cfn-rest-api-part-deleter.js +12 -42
- package/dist/service/apigateway/cfn/sim-cfn-rest-api-part-values.d.ts +10 -0
- package/dist/service/apigateway/cfn/sim-cfn-rest-api-part-values.js +21 -0
- package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-stage-creator.d.ts +2 -1
- package/dist/service/apigateway/cfn/stage/sim-cfn-rest-api-stage-creator.js +2 -4
- package/dist/service/apigateway/serve/sim-api-gateway-router.js +5 -2
- package/dist/service/apigateway/sim-api-gateway-commands.d.ts +1 -1
- package/dist/service/apigateway/sim-api-gateway-commands.js +3 -2
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-creator.d.ts +2 -1
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-creator.js +5 -9
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.d.ts +2 -1
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.js +2 -4
- package/dist/service/apigatewayv2/cfn/domain/sim-cfn-api-mapping-creator.d.ts +2 -1
- package/dist/service/apigatewayv2/cfn/domain/sim-cfn-api-mapping-creator.js +2 -4
- package/dist/service/apigatewayv2/cfn/domain/sim-cfn-http-api-domain-creator.d.ts +2 -1
- package/dist/service/apigatewayv2/cfn/domain/sim-cfn-http-api-domain-creator.js +2 -4
- package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-creator.d.ts +2 -1
- package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-creator.js +2 -4
- package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-creator.d.ts +2 -1
- package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-creator.js +2 -4
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-deleter.d.ts +2 -9
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-deleter.js +19 -25
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.d.ts +0 -5
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.js +13 -29
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-unsupported.d.ts +5 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-unsupported.js +19 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-part-deleter.d.ts +2 -1
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-part-deleter.js +5 -13
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-creator.d.ts +2 -1
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-creator.js +2 -4
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.js +5 -2
- package/dist/service/apigatewayv2/sim-api-gateway-v2-commands.d.ts +1 -1
- package/dist/service/apigatewayv2/sim-api-gateway-v2-commands.js +3 -2
- package/dist/service/athena/cfn/named-query/sim-cfn-athena-named-query-creator.d.ts +3 -2
- package/dist/service/athena/cfn/named-query/sim-cfn-athena-named-query-creator.js +4 -6
- package/dist/service/athena/cfn/sim-athena-cfn-resource-factory.d.ts +2 -2
- package/dist/service/athena/cfn/sim-athena-cfn-resource-factory.js +7 -6
- package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-creator.d.ts +3 -2
- package/dist/service/athena/cfn/work-group/sim-cfn-athena-work-group-creator.js +7 -11
- package/dist/service/athena/engine/sim-athena-aggregate-shims.d.ts +10 -5
- package/dist/service/athena/engine/sim-athena-aggregate-shims.js +19 -16
- package/dist/service/athena/engine/sim-athena-binary-shims.d.ts +16 -0
- package/dist/service/athena/engine/sim-athena-binary-shims.js +49 -0
- package/dist/service/athena/engine/sim-athena-binary-text.d.ts +21 -0
- package/dist/service/athena/engine/sim-athena-binary-text.js +87 -0
- package/dist/service/athena/engine/sim-athena-count-distinct.d.ts +15 -0
- package/dist/service/athena/engine/sim-athena-count-distinct.js +103 -0
- package/dist/service/athena/engine/sim-athena-distinct-values.d.ts +19 -0
- package/dist/service/athena/engine/sim-athena-distinct-values.js +37 -0
- package/dist/service/athena/engine/sim-athena-hash-words.d.ts +14 -0
- package/dist/service/athena/engine/sim-athena-hash-words.js +22 -0
- package/dist/service/athena/engine/sim-athena-murmur3-mixing.d.ts +15 -0
- package/dist/service/athena/engine/sim-athena-murmur3-mixing.js +37 -0
- package/dist/service/athena/engine/sim-athena-murmur3.d.ts +11 -0
- package/dist/service/athena/engine/sim-athena-murmur3.js +51 -0
- package/dist/service/athena/engine/sim-athena-shim-registry.d.ts +9 -0
- package/dist/service/athena/engine/sim-athena-shim-registry.js +30 -1
- package/dist/service/athena/engine/sim-athena-shims.js +2 -0
- package/dist/service/athena/engine/sim-athena-sql-rewrites.d.ts +4 -2
- package/dist/service/athena/engine/sim-athena-sql-rewrites.js +6 -3
- package/dist/service/athena/engine/sim-athena-xxhash64.d.ts +8 -0
- package/dist/service/athena/engine/sim-athena-xxhash64.js +82 -0
- package/dist/service/athena/sim-athena-executions.d.ts +1 -1
- package/dist/service/athena/sim-athena-executions.js +3 -2
- package/dist/service/bedrock/sim-bedrock.d.ts +1 -1
- package/dist/service/bedrock/sim-bedrock.js +3 -2
- package/dist/service/cloudformation/cdk/assets/sim-cdk-assets-publisher.d.ts +8 -0
- package/dist/service/cloudformation/cdk/assets/sim-cdk-assets-publisher.js +6 -4
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.d.ts +4 -0
- package/dist/service/cloudformation/command/create-stack/create-stack.handler.js +4 -1
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.d.ts +7 -0
- package/dist/service/cloudformation/command/update-stack/update-stack.handler.js +3 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-deployer.js +2 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.d.ts +9 -2
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-plan.js +2 -1
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts +10 -3
- package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.js +4 -7
- package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.d.ts +10 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.js +4 -2
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts +11 -0
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js +2 -1
- package/dist/service/cloudformation/deploy/sim-cfn-template-file-updater.js +1 -0
- package/dist/service/cloudformation/resource/caller/sim-cfn-resource-caller-options.d.ts +16 -0
- package/dist/service/cloudformation/resource/caller/sim-cfn-resource-caller-options.js +6 -0
- package/dist/service/cloudformation/resource/cfn/scheduler/sim-scheduler-cfn-value-adapter.js +50 -0
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.d.ts +11 -4
- package/dist/service/cloudformation/resource/resolve/property/sim-cfn-resource-property-resolver.js +21 -8
- package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts +21 -0
- package/dist/service/cloudformation/sim-cloudformation.d.ts +1 -1
- package/dist/service/cloudformation/sim-cloudformation.js +3 -2
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.d.ts +3 -0
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.js +4 -1
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-creator.d.ts +2 -0
- package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-creator.js +2 -1
- package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.d.ts +17 -2
- package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.js +15 -4
- package/dist/service/cloudformation/stack/sim-cfn-stack.js +5 -5
- package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts +12 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-batch-deleter.d.ts +3 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-batch-deleter.js +3 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-deleter.d.ts +2 -0
- package/dist/service/cloudformation/stack/teardown/sim-cfn-stack-resource-deleter.js +2 -1
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.d.ts +2 -0
- package/dist/service/cloudformation/template/dynamic/make-sim-cfn-dynamic-references.js +2 -2
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.d.ts +10 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-resolvers.js +4 -3
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-scan.d.ts +11 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-reference-scan.js +21 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.d.ts +24 -2
- package/dist/service/cloudformation/template/dynamic/sim-cfn-dynamic-references.js +50 -11
- package/dist/service/cloudformation/template/dynamic/sim-cfn-prefetched-dynamic-references.d.ts +42 -0
- package/dist/service/cloudformation/template/dynamic/sim-cfn-prefetched-dynamic-references.js +80 -0
- package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-creator.d.ts +5 -0
- package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-creator.js +10 -3
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js +2 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-deleter.d.ts +2 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-deleter.js +5 -7
- package/dist/service/cloudfront/cfn/key-value-store/sim-cfn-cf-kvs-creator.d.ts +3 -2
- package/dist/service/cloudfront/cfn/key-value-store/sim-cfn-cf-kvs-creator.js +6 -6
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts +2 -4
- package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js +7 -15
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.js +3 -2
- package/dist/service/cloudfront/sim-cloudfront-commands.d.ts +1 -1
- package/dist/service/cloudfront/sim-cloudfront-commands.js +5 -2
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.d.ts +3 -2
- package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.js +4 -6
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.d.ts +2 -2
- package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.js +4 -3
- package/dist/service/cloudwatch/sim-cloudwatch-commands.d.ts +1 -1
- package/dist/service/cloudwatch/sim-cloudwatch-commands.js +3 -2
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-creator.d.ts +2 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-creator.js +2 -4
- package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-creator.d.ts +2 -1
- package/dist/service/cognito/cfn/domain/sim-cfn-cognito-domain-creator.js +2 -4
- package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-creator.d.ts +2 -1
- package/dist/service/cognito/cfn/group/sim-cfn-cognito-group-creator.js +2 -4
- package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-creator.d.ts +2 -1
- package/dist/service/cognito/cfn/idp/sim-cfn-cognito-idp-creator.js +2 -4
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.d.ts +2 -1
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-deleter.js +18 -24
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.d.ts +2 -2
- package/dist/service/cognito/cfn/sim-cfn-cognito-resource-factory.js +9 -7
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.d.ts +2 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.js +5 -7
- package/dist/service/cognito/sim-cognito-identity-provider.d.ts +1 -1
- package/dist/service/cognito/sim-cognito-identity-provider.js +3 -2
- package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js +2 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-creator.d.ts +2 -1
- package/dist/service/dynamodb/cfn/global-table/sim-cfn-dynamodb-global-table-creator.js +2 -2
- package/dist/service/dynamodb/cfn/sim-cfn-dynamodb-resource-deleter.d.ts +2 -1
- package/dist/service/dynamodb/cfn/sim-cfn-dynamodb-resource-deleter.js +2 -4
- package/dist/service/dynamodb/cfn/sim-cfn-dynamodb-resource-factory.d.ts +2 -2
- package/dist/service/dynamodb/cfn/sim-cfn-dynamodb-resource-factory.js +6 -4
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.d.ts +2 -1
- package/dist/service/dynamodb/cfn/table/sim-cfn-dynamodb-table-creator.js +5 -7
- package/dist/service/dynamodb/sim-dynamodb.js +3 -2
- package/dist/service/ecs/cfn/cluster/sim-cfn-ecs-cluster-creator.d.ts +3 -2
- package/dist/service/ecs/cfn/cluster/sim-cfn-ecs-cluster-creator.js +4 -6
- package/dist/service/ecs/cfn/service/sim-cfn-ecs-service-creator.d.ts +3 -2
- package/dist/service/ecs/cfn/service/sim-cfn-ecs-service-creator.js +4 -4
- package/dist/service/ecs/cfn/sim-cfn-ecs-created-resource.d.ts +5 -0
- package/dist/service/ecs/cfn/sim-cfn-ecs-created-resource.js +9 -0
- package/dist/service/ecs/cfn/sim-ecs-cfn-resource-factory.d.ts +2 -2
- package/dist/service/ecs/cfn/sim-ecs-cfn-resource-factory.js +11 -16
- package/dist/service/ecs/cfn/task-definition/sim-cfn-ecs-task-definition-creator.d.ts +3 -2
- package/dist/service/ecs/cfn/task-definition/sim-cfn-ecs-task-definition-creator.js +4 -6
- package/dist/service/ecs/sim-ecs-commands.js +3 -2
- package/dist/service/ecs/task/run/sim-ecs-container-environment.d.ts +12 -10
- package/dist/service/ecs/task/run/sim-ecs-container-environment.js +16 -18
- package/dist/service/elbv2/cfn/listener/sim-cfn-elbv2-listener-creator.d.ts +3 -2
- package/dist/service/elbv2/cfn/listener/sim-cfn-elbv2-listener-creator.js +4 -6
- package/dist/service/elbv2/cfn/load-balancer/sim-cfn-elbv2-load-balancer-creator.d.ts +3 -2
- package/dist/service/elbv2/cfn/load-balancer/sim-cfn-elbv2-load-balancer-creator.js +4 -6
- package/dist/service/elbv2/cfn/rule/sim-cfn-elbv2-listener-rule-creator.d.ts +3 -2
- package/dist/service/elbv2/cfn/rule/sim-cfn-elbv2-listener-rule-creator.js +4 -4
- package/dist/service/elbv2/cfn/sim-elbv2-cfn-resource-deleter.d.ts +2 -1
- package/dist/service/elbv2/cfn/sim-elbv2-cfn-resource-deleter.js +5 -5
- package/dist/service/elbv2/cfn/sim-elbv2-cfn-resource-factory.d.ts +2 -2
- package/dist/service/elbv2/cfn/sim-elbv2-cfn-resource-factory.js +8 -6
- package/dist/service/elbv2/cfn/target-group/sim-cfn-elbv2-target-group-creator.d.ts +3 -2
- package/dist/service/elbv2/cfn/target-group/sim-cfn-elbv2-target-group-creator.js +7 -11
- package/dist/service/elbv2/serve/sim-elbv2-router.js +2 -1
- package/dist/service/elbv2/sim-elbv2.js +3 -3
- package/dist/service/eventbridge/cfn/bus/sim-cfn-event-bus-creator.d.ts +2 -1
- package/dist/service/eventbridge/cfn/bus/sim-cfn-event-bus-creator.js +2 -4
- package/dist/service/eventbridge/cfn/rule/sim-cfn-event-rule-creator.d.ts +2 -1
- package/dist/service/eventbridge/cfn/rule/sim-cfn-event-rule-creator.js +5 -5
- package/dist/service/eventbridge/cfn/sim-cfn-event-bridge-resource-deleter.d.ts +2 -1
- package/dist/service/eventbridge/cfn/sim-cfn-event-bridge-resource-deleter.js +7 -7
- package/dist/service/eventbridge/cfn/sim-event-bridge-cfn-resource-factory.js +5 -3
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-failures.d.ts +16 -0
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-failures.js +19 -0
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-function.js +2 -1
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-queue.js +2 -1
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-task.js +4 -1
- package/dist/service/eventbridge/delivery/sim-event-bridge-delivery-topic.js +2 -1
- package/dist/service/eventbridge/delivery/sim-event-bridge-target-role.d.ts +8 -3
- package/dist/service/eventbridge/delivery/sim-event-bridge-target-role.js +9 -3
- package/dist/service/eventbridge/sim-event-bridge.d.ts +1 -1
- package/dist/service/eventbridge/sim-event-bridge.js +3 -2
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.d.ts +2 -1
- package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.js +2 -2
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.d.ts +2 -1
- package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.js +2 -4
- package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.d.ts +1 -1
- package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.js +4 -3
- package/dist/service/firehose/sim-firehose.d.ts +1 -1
- package/dist/service/firehose/sim-firehose.js +3 -2
- package/dist/service/glue/sim-glue.d.ts +1 -1
- package/dist/service/glue/sim-glue.js +3 -2
- package/dist/service/iam/authorize/context/sim-iam-auth-z-context-builder.d.ts +15 -11
- package/dist/service/iam/authorize/context/sim-iam-auth-z-context-builder.js +5 -18
- package/dist/service/iam/authorize/context/sim-iam-derived-conditions.d.ts +42 -0
- package/dist/service/iam/authorize/context/sim-iam-derived-conditions.js +44 -0
- package/dist/service/iam/authorize/match/condition/arn/equals/sim-iam-arn-equals.js +2 -2
- package/dist/service/iam/authorize/match/condition/arn/like/sim-iam-arn-like.js +2 -2
- package/dist/service/iam/authorize/match/condition/negated/sim-iam-negated-for-all-values-string-operator.d.ts +20 -0
- package/dist/service/iam/authorize/match/condition/negated/sim-iam-negated-for-all-values-string-operator.js +27 -0
- package/dist/service/iam/authorize/match/condition/negated/sim-iam-negated-for-any-value-string-operator.d.ts +21 -0
- package/dist/service/iam/authorize/match/condition/negated/sim-iam-negated-for-any-value-string-operator.js +28 -0
- package/dist/service/iam/authorize/match/condition/negated/sim-iam-negated-operator-factories.d.ts +5 -0
- package/dist/service/iam/authorize/match/condition/negated/sim-iam-negated-operator-factories.js +36 -0
- package/dist/service/iam/authorize/match/condition/negated/sim-iam-negated-scalar-string-operator.d.ts +20 -0
- package/dist/service/iam/authorize/match/condition/negated/sim-iam-negated-scalar-string-operator.js +29 -0
- package/dist/service/iam/authorize/match/condition/numeric/less-than-equals/sim-iam-number-lte.d.ts +1 -0
- package/dist/service/iam/authorize/match/condition/numeric/less-than-equals/sim-iam-number-lte.js +1 -0
- package/dist/service/iam/authorize/match/condition/sim-iam-condition-match.d.ts +26 -0
- package/dist/service/iam/authorize/match/condition/sim-iam-condition-match.js +1 -0
- package/dist/service/iam/authorize/match/condition/sim-iam-condition-operator-parser.js +2 -0
- package/dist/service/iam/authorize/match/condition/sim-iam-condition-operator.d.ts +15 -0
- package/dist/service/iam/authorize/match/condition/sim-iam-policy-condition-matcher.d.ts +11 -3
- package/dist/service/iam/authorize/match/condition/sim-iam-policy-condition-matcher.js +29 -11
- package/dist/service/iam/authorize/match/condition/sim-iam-string-comparison.d.ts +24 -0
- package/dist/service/iam/authorize/match/condition/sim-iam-string-comparison.js +17 -0
- package/dist/service/iam/authorize/match/condition/string/all-values/sim-iam-for-all-values-string-condition-operator.d.ts +1 -0
- package/dist/service/iam/authorize/match/condition/string/all-values/sim-iam-for-all-values-string-condition-operator.js +1 -0
- package/dist/service/iam/authorize/match/condition/string/all-values/sim-iam-for-all-values-string-equals.js +2 -1
- package/dist/service/iam/authorize/match/condition/string/all-values/sim-iam-for-all-values-string-like.js +2 -4
- package/dist/service/iam/authorize/match/condition/string/any-value/sim-iam-for-any-value-string-condition-operator.d.ts +1 -0
- package/dist/service/iam/authorize/match/condition/string/any-value/sim-iam-for-any-value-string-condition-operator.js +1 -0
- package/dist/service/iam/authorize/match/condition/string/any-value/sim-iam-for-any-value-string-equals.js +2 -1
- package/dist/service/iam/authorize/match/condition/string/any-value/sim-iam-for-any-value-string-like.js +2 -4
- package/dist/service/iam/authorize/match/condition/string/equals/sim-iam-string-equals.js +2 -1
- package/dist/service/iam/authorize/match/condition/string/like/sim-iam-string-like.js +2 -4
- package/dist/service/iam/authorize/match/condition/string/sim-iam-scalar-string-condition-operator.d.ts +1 -0
- package/dist/service/iam/authorize/match/condition/string/sim-iam-scalar-string-condition-operator.js +1 -0
- package/dist/service/iam/authorize/match/sim-iam-policy-statement-matcher.d.ts +18 -1
- package/dist/service/iam/authorize/match/sim-iam-policy-statement-matcher.js +32 -4
- package/dist/service/iam/authorize/sim-iam-decision.d.ts +12 -0
- package/dist/service/iam/authorize/sim-iam-decision.js +14 -0
- package/dist/service/iam/authorize/sim-iam-region-auth-z.d.ts +31 -0
- package/dist/service/iam/authorize/sim-iam-region-auth-z.js +65 -0
- package/dist/service/iam/authorize/unevaluated/sim-iam-unevaluated-statement.type.d.ts +31 -0
- package/dist/service/iam/authorize/unevaluated/sim-iam-unevaluated-statement.type.js +1 -0
- package/dist/service/iam/authorize/unevaluated/sim-iam-unevaluated-statements.d.ts +31 -0
- package/dist/service/iam/authorize/unevaluated/sim-iam-unevaluated-statements.js +43 -0
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.d.ts +2 -1
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-attacher.js +2 -4
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.d.ts +2 -1
- package/dist/service/iam/cfn/managed-policy/sim-cfn-iam-managed-policy-creator.js +3 -3
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.d.ts +2 -1
- package/dist/service/iam/cfn/policy/sim-cfn-iam-policy-creator.js +7 -7
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-creator.d.ts +2 -1
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-creator.js +8 -8
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-deleter.d.ts +2 -1
- package/dist/service/iam/cfn/role/sim-cfn-iam-role-deleter.js +10 -12
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.d.ts +2 -1
- package/dist/service/iam/cfn/sim-cfn-iam-resource-deleter.js +12 -16
- package/dist/service/iam/cfn/sim-cfn-iam-resource-factory.js +8 -5
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.d.ts +2 -1
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-creator.js +11 -11
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.d.ts +4 -2
- package/dist/service/iam/cfn/user/sim-cfn-iam-user-deleter.js +17 -3
- package/dist/service/iam/command/policy/create-policy/create-policy-input-resolver.js +4 -1
- package/dist/service/iam/command/policy/put-role-policy/put-role-policy.handler.js +5 -1
- package/dist/service/iam/command/policy/put-user-policy/put-user-policy.handler.js +5 -1
- package/dist/service/iam/command/sim-iam-command-handlers.js +6 -1
- package/dist/service/iam/policy/parse/sim-iam-document-parser.d.ts +4 -1
- package/dist/service/iam/policy/parse/sim-iam-document-parser.js +13 -15
- package/dist/service/iam/policy/sim-iam-statement-label.d.ts +28 -0
- package/dist/service/iam/policy/sim-iam-statement-label.js +17 -0
- package/dist/service/iam/policy/sim-iam-statement-strings.d.ts +11 -0
- package/dist/service/iam/policy/sim-iam-statement-strings.js +27 -0
- package/dist/service/iam/validate/sim-iam-policy-document-validator.d.ts +9 -2
- package/dist/service/iam/validate/sim-iam-policy-document-validator.js +37 -19
- package/dist/service/kinesis/cfn/sim-cfn-kinesis-resource-deleter.d.ts +2 -1
- package/dist/service/kinesis/cfn/sim-cfn-kinesis-resource-deleter.js +2 -2
- package/dist/service/kinesis/cfn/sim-kinesis-cfn-resource-factory.d.ts +1 -1
- package/dist/service/kinesis/cfn/sim-kinesis-cfn-resource-factory.js +4 -3
- package/dist/service/kinesis/cfn/stream/sim-cfn-kinesis-stream-creator.d.ts +2 -1
- package/dist/service/kinesis/cfn/stream/sim-cfn-kinesis-stream-creator.js +5 -7
- package/dist/service/kinesis/sim-kinesis.d.ts +1 -1
- package/dist/service/kinesis/sim-kinesis.js +3 -2
- package/dist/service/kms/cfn/alias/sim-cfn-kms-alias-creator.d.ts +2 -1
- package/dist/service/kms/cfn/alias/sim-cfn-kms-alias-creator.js +2 -2
- package/dist/service/kms/cfn/key/sim-cfn-kms-key-creator.d.ts +6 -6
- package/dist/service/kms/cfn/key/sim-cfn-kms-key-creator.js +11 -11
- package/dist/service/kms/cfn/sim-cfn-kms-resource-deleter.d.ts +2 -1
- package/dist/service/kms/cfn/sim-cfn-kms-resource-deleter.js +3 -5
- package/dist/service/kms/cfn/sim-cfn-kms-resource-factory.d.ts +2 -1
- package/dist/service/kms/cfn/sim-cfn-kms-resource-factory.js +6 -4
- package/dist/service/kms/sim-kms-commands.d.ts +1 -1
- package/dist/service/kms/sim-kms-commands.js +3 -2
- package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.d.ts +2 -1
- package/dist/service/lambda/cfn/alias/sim-cfn-lambda-alias-creator.js +2 -2
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.d.ts +2 -1
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.js +2 -2
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.d.ts +2 -1
- package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.js +2 -4
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-creator.d.ts +2 -1
- package/dist/service/lambda/cfn/event-source-mapping/sim-cfn-lambda-event-source-mapping-creator.js +2 -2
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-creator.d.ts +2 -1
- package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-creator.js +3 -4
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.d.ts +2 -1
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-creator.js +2 -2
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.d.ts +2 -1
- package/dist/service/lambda/cfn/permission/sim-cfn-lambda-permission-revoker.js +2 -2
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts +2 -8
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js +18 -38
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts +2 -2
- package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js +12 -9
- package/dist/service/lambda/cfn/url/sim-cfn-lambda-url-creator.d.ts +2 -1
- package/dist/service/lambda/cfn/url/sim-cfn-lambda-url-creator.js +2 -2
- package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.d.ts +2 -1
- package/dist/service/lambda/cfn/version/sim-cfn-lambda-version-creator.js +2 -2
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-function.factory.d.ts +7 -0
- package/dist/service/lambda/function/code/sim-lambda-vm-zip-function.factory.js +1 -0
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-provided-sdk-module.d.ts +19 -0
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-provided-sdk-module.js +78 -0
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-sdk-packages-not-installed.error.d.ts +15 -0
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-sdk-packages-not-installed.error.js +27 -0
- package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.d.ts +9 -0
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts +10 -0
- package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js +28 -34
- package/dist/service/lambda/function/code/vm/sim-lambda-host-modules.d.ts +15 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-host-modules.js +31 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module-resolver.d.ts +7 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-module-resolver.js +15 -0
- package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.js +5 -4
- package/dist/service/lambda/serve/sim-lambda-url-router.js +2 -1
- package/dist/service/lambda/sim-lambda-commands.d.ts +1 -1
- package/dist/service/lambda/sim-lambda-commands.js +3 -2
- package/dist/service/logs/cfn/delivery/sim-cfn-delivery-creator.d.ts +3 -2
- package/dist/service/logs/cfn/delivery/sim-cfn-delivery-creator.js +4 -6
- package/dist/service/logs/cfn/delivery/sim-cfn-delivery-destination-creator.d.ts +3 -2
- package/dist/service/logs/cfn/delivery/sim-cfn-delivery-destination-creator.js +4 -6
- package/dist/service/logs/cfn/delivery/sim-cfn-delivery-source-creator.d.ts +3 -2
- package/dist/service/logs/cfn/delivery/sim-cfn-delivery-source-creator.js +4 -4
- package/dist/service/logs/cfn/sim-logs-cfn-resource-deleter.d.ts +2 -1
- package/dist/service/logs/cfn/sim-logs-cfn-resource-deleter.js +4 -4
- package/dist/service/logs/cfn/sim-logs-cfn-resource-factory.d.ts +2 -2
- package/dist/service/logs/cfn/sim-logs-cfn-resource-factory.js +7 -5
- package/dist/service/logs/sim-logs-commands.d.ts +1 -1
- package/dist/service/logs/sim-logs-commands.js +3 -2
- package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.js +2 -1
- package/dist/service/personalize/cfn/sim-cfn-personalize-dataset-creator.d.ts +3 -2
- package/dist/service/personalize/cfn/sim-cfn-personalize-dataset-creator.js +4 -6
- package/dist/service/personalize/cfn/sim-cfn-personalize-dataset-group-creator.d.ts +3 -2
- package/dist/service/personalize/cfn/sim-cfn-personalize-dataset-group-creator.js +4 -6
- package/dist/service/personalize/cfn/sim-cfn-personalize-event-tracker-creator.d.ts +3 -2
- package/dist/service/personalize/cfn/sim-cfn-personalize-event-tracker-creator.js +4 -6
- package/dist/service/personalize/cfn/sim-cfn-personalize-schema-creator.d.ts +3 -2
- package/dist/service/personalize/cfn/sim-cfn-personalize-schema-creator.js +4 -4
- package/dist/service/personalize/cfn/sim-cfn-personalize-solution-creator.d.ts +3 -2
- package/dist/service/personalize/cfn/sim-cfn-personalize-solution-creator.js +4 -6
- package/dist/service/personalize/cfn/sim-personalize-cfn-resource-factory.d.ts +2 -2
- package/dist/service/personalize/cfn/sim-personalize-cfn-resource-factory.js +7 -6
- package/dist/service/personalize/sim-personalize-data-operations.d.ts +1 -1
- package/dist/service/personalize/sim-personalize-data-operations.js +3 -2
- package/dist/service/rekognition/sim-rekognition.d.ts +1 -1
- package/dist/service/rekognition/sim-rekognition.js +3 -2
- package/dist/service/route53/cfn/dnssec/sim-cfn-r53-ksk-creator.d.ts +3 -2
- package/dist/service/route53/cfn/dnssec/sim-cfn-r53-ksk-creator.js +5 -5
- package/dist/service/route53/cfn/dnssec/sim-cfn-r53-zone-signing-creator.d.ts +3 -2
- package/dist/service/route53/cfn/dnssec/sim-cfn-r53-zone-signing-creator.js +4 -8
- package/dist/service/route53/cfn/hosted-zone/sim-cfn-r53-zone-creator.d.ts +2 -1
- package/dist/service/route53/cfn/hosted-zone/sim-cfn-r53-zone-creator.js +2 -2
- package/dist/service/route53/cfn/record-set/apply/sim-cfn-r53-record-set-applicator.d.ts +9 -1
- package/dist/service/route53/cfn/record-set/apply/sim-cfn-r53-record-set-applicator.js +23 -2
- package/dist/service/route53/cfn/sim-cfn-route53-resource-deleter.d.ts +5 -3
- package/dist/service/route53/cfn/sim-cfn-route53-resource-deleter.js +9 -28
- package/dist/service/route53/cfn/sim-cfn-route53-resource-factory.js +9 -5
- package/dist/service/route53/sim-route53.d.ts +1 -1
- package/dist/service/route53/sim-route53.js +5 -2
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-configurator.d.ts +3 -0
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-configurator.js +6 -13
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.d.ts +2 -1
- package/dist/service/s3/cfn/bucket/sim-cfn-s3-bucket-creator.js +3 -2
- package/dist/service/s3/cfn/bucket-policy/sim-cfn-s3-bucket-policy-creator.d.ts +2 -1
- package/dist/service/s3/cfn/bucket-policy/sim-cfn-s3-bucket-policy-creator.js +2 -2
- package/dist/service/s3/cfn/sim-cfn-s3-resource-deleter.d.ts +2 -1
- package/dist/service/s3/cfn/sim-cfn-s3-resource-deleter.js +3 -7
- package/dist/service/s3/cfn/sim-cfn-s3-resource-factory.d.ts +2 -2
- package/dist/service/s3/cfn/sim-cfn-s3-resource-factory.js +6 -4
- package/dist/service/s3/command/put-bucket-policy/put-bucket-policy.handler.js +4 -1
- package/dist/service/s3/notification/destination/lambda/sim-aws-s3-notification-functions.js +2 -1
- package/dist/service/s3/notification/destination/sns/sim-s3-notification-topic.js +2 -1
- package/dist/service/s3/notification/destination/sqs/sim-s3-notification-queue.js +2 -1
- package/dist/service/s3/sim-s3-commands.d.ts +1 -1
- package/dist/service/s3/sim-s3-commands.js +3 -2
- package/dist/service/scheduler/cfn/sim-cfn-schedule-creator.d.ts +26 -0
- package/dist/service/scheduler/cfn/sim-cfn-schedule-creator.js +49 -0
- package/dist/service/scheduler/cfn/sim-cfn-schedule-group-creator.d.ts +31 -0
- package/dist/service/scheduler/cfn/sim-cfn-schedule-group-creator.js +48 -0
- package/dist/service/scheduler/cfn/sim-cfn-schedule-group-properties.d.ts +26 -0
- package/dist/service/scheduler/cfn/sim-cfn-schedule-group-properties.js +68 -0
- package/dist/service/scheduler/cfn/sim-cfn-schedule-properties.js +4 -10
- package/dist/service/scheduler/cfn/sim-cfn-scheduler-resource-error.d.ts +14 -3
- package/dist/service/scheduler/cfn/sim-cfn-scheduler-resource-error.js +28 -6
- package/dist/service/scheduler/cfn/sim-cfn-scheduler-resource-lookup.d.ts +10 -4
- package/dist/service/scheduler/cfn/sim-cfn-scheduler-resource-lookup.js +9 -6
- package/dist/service/scheduler/cfn/sim-scheduler-cfn-resource-factory.d.ts +6 -8
- package/dist/service/scheduler/cfn/sim-scheduler-cfn-resource-factory.js +20 -33
- package/dist/service/scheduler/command/authorize/sim-scheduler-authorizer.d.ts +9 -8
- package/dist/service/scheduler/command/authorize/sim-scheduler-authorizer.js +14 -15
- package/dist/service/scheduler/command/group/group.command.d.ts +90 -0
- package/dist/service/scheduler/command/group/group.command.js +1 -0
- package/dist/service/scheduler/command/group/sim-scheduler-described-group.d.ts +15 -0
- package/dist/service/scheduler/command/group/sim-scheduler-described-group.js +29 -0
- package/dist/service/scheduler/command/group/sim-scheduler-group-access.d.ts +57 -0
- package/dist/service/scheduler/command/group/sim-scheduler-group-access.js +70 -0
- package/dist/service/scheduler/command/group/sim-scheduler-group-commands.d.ts +46 -0
- package/dist/service/scheduler/command/group/sim-scheduler-group-commands.js +72 -0
- package/dist/service/scheduler/command/group/sim-scheduler-listed-groups.d.ts +6 -0
- package/dist/service/scheduler/command/group/sim-scheduler-listed-groups.js +10 -0
- package/dist/service/scheduler/command/group/sim-scheduler-unsimulated-group-input.d.ts +14 -0
- package/dist/service/scheduler/command/group/sim-scheduler-unsimulated-group-input.js +19 -0
- package/dist/service/scheduler/command/schedule/sim-scheduler-create-schedule.js +1 -0
- package/dist/service/scheduler/command/schedule/sim-scheduler-schedule-access.d.ts +16 -0
- package/dist/service/scheduler/command/schedule/sim-scheduler-schedule-access.js +23 -3
- package/dist/service/scheduler/command/sim-scheduler-command.types.d.ts +1 -0
- package/dist/service/scheduler/command/sim-scheduler-commands.d.ts +4 -0
- package/dist/service/scheduler/command/sim-scheduler-commands.js +14 -1
- package/dist/service/scheduler/delivery/sim-aws-scheduler-delivery-targets.js +1 -1
- package/dist/service/scheduler/delivery/sim-scheduler-delivery-failures.d.ts +16 -0
- package/dist/service/scheduler/delivery/sim-scheduler-delivery-failures.js +19 -0
- package/dist/service/scheduler/delivery/sim-scheduler-delivery-function.js +2 -1
- package/dist/service/scheduler/delivery/sim-scheduler-delivery-queue.js +2 -1
- package/dist/service/scheduler/delivery/sim-scheduler-delivery-topic.js +2 -1
- package/dist/service/scheduler/delivery/sim-scheduler-execution-role.d.ts +9 -3
- package/dist/service/scheduler/delivery/sim-scheduler-execution-role.js +10 -3
- package/dist/service/scheduler/group/sim-scheduler-schedule-group-arn.d.ts +11 -0
- package/dist/service/scheduler/group/sim-scheduler-schedule-group-arn.js +13 -0
- package/dist/service/scheduler/group/sim-scheduler-schedule-group-store.d.ts +46 -0
- package/dist/service/scheduler/group/sim-scheduler-schedule-group-store.js +65 -0
- package/dist/service/scheduler/group/sim-scheduler-schedule-group.d.ts +25 -0
- package/dist/service/scheduler/group/sim-scheduler-schedule-group.js +32 -0
- package/dist/service/scheduler/index.d.ts +3 -1
- package/dist/service/scheduler/index.js +3 -1
- package/dist/service/scheduler/schedule/sim-scheduler-schedule-name.d.ts +11 -9
- package/dist/service/scheduler/schedule/sim-scheduler-schedule-name.js +15 -18
- package/dist/service/scheduler/schedule/sim-scheduler-schedule-store.d.ts +7 -0
- package/dist/service/scheduler/schedule/sim-scheduler-schedule-store.js +13 -0
- package/dist/service/scheduler/schedule/sim-scheduler-schedule.d.ts +13 -0
- package/dist/service/scheduler/schedule/sim-scheduler-schedule.js +16 -0
- package/dist/service/scheduler/sdk/sim-scheduler-sdk-command-router.js +16 -0
- package/dist/service/scheduler/sim-scheduler-inspection.d.ts +14 -0
- package/dist/service/scheduler/sim-scheduler-inspection.js +15 -0
- package/dist/service/scheduler/sim-scheduler.d.ts +19 -1
- package/dist/service/scheduler/sim-scheduler.js +38 -2
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-dynamic-reference-resolver.d.ts +13 -15
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-dynamic-reference-resolver.js +22 -43
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-reference-stand-in.d.ts +9 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-reference-stand-in.js +14 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-reference-value.d.ts +12 -0
- package/dist/service/secretsmanager/cfn/dynamic/sim-cfn-secrets-manager-reference-value.js +29 -0
- package/dist/service/secretsmanager/cfn/secret/sim-cfn-secrets-manager-secret-creator.d.ts +2 -1
- package/dist/service/secretsmanager/cfn/secret/sim-cfn-secrets-manager-secret-creator.js +2 -2
- package/dist/service/secretsmanager/cfn/sim-cfn-secrets-manager-resource-factory.d.ts +2 -2
- package/dist/service/secretsmanager/cfn/sim-cfn-secrets-manager-resource-factory.js +4 -5
- package/dist/service/secretsmanager/sim-secrets-manager.d.ts +1 -1
- package/dist/service/secretsmanager/sim-secrets-manager.js +3 -2
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-creator.d.ts +3 -2
- package/dist/service/ses/cfn/configuration-set/sim-cfn-ses-configuration-set-creator.js +4 -4
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts +3 -2
- package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js +4 -8
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts +2 -2
- package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js +7 -6
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.d.ts +3 -2
- package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.js +4 -8
- package/dist/service/ses/sim-ses-commands.d.ts +1 -1
- package/dist/service/ses/sim-ses-commands.js +3 -2
- package/dist/service/sns/cfn/sim-cfn-sns-resource-deleter.d.ts +5 -8
- package/dist/service/sns/cfn/sim-cfn-sns-resource-deleter.js +10 -28
- package/dist/service/sns/cfn/sim-sns-cfn-resource-factory.js +10 -5
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-creator.d.ts +2 -1
- package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-creator.js +2 -2
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-creator.d.ts +2 -1
- package/dist/service/sns/cfn/topic/sim-cfn-sns-topic-creator.js +5 -7
- package/dist/service/sns/cfn/topic-policy/sim-cfn-sns-topic-policy-creator.d.ts +9 -1
- package/dist/service/sns/cfn/topic-policy/sim-cfn-sns-topic-policy-creator.js +20 -4
- package/dist/service/sns/delivery/lambda/sim-sns-delivery-function.js +2 -1
- package/dist/service/sns/delivery/sqs/sim-sns-delivery-queue.js +2 -1
- package/dist/service/sns/sim-sns.d.ts +1 -1
- package/dist/service/sns/sim-sns.js +3 -2
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-creator.d.ts +2 -1
- package/dist/service/sqs/cfn/queue/sim-cfn-sqs-queue-creator.js +2 -4
- package/dist/service/sqs/cfn/queue-policy/sim-cfn-sqs-queue-policy-creator.d.ts +2 -1
- package/dist/service/sqs/cfn/queue-policy/sim-cfn-sqs-queue-policy-creator.js +4 -4
- package/dist/service/sqs/cfn/sim-cfn-sqs-resource-deleter.d.ts +2 -1
- package/dist/service/sqs/cfn/sim-cfn-sqs-resource-deleter.js +7 -7
- package/dist/service/sqs/cfn/sim-sqs-cfn-resource-factory.js +5 -3
- package/dist/service/sqs/sim-sqs.d.ts +1 -1
- package/dist/service/sqs/sim-sqs.js +3 -2
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.d.ts +22 -6
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-dynamic-reference-resolver.js +39 -24
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.d.ts +10 -5
- package/dist/service/ssm/cfn/dynamic/sim-cfn-ssm-secure-dynamic-reference-resolver.js +10 -8
- package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-creator.d.ts +2 -1
- package/dist/service/ssm/cfn/parameter/sim-cfn-ssm-parameter-creator.js +2 -2
- package/dist/service/ssm/cfn/sim-cfn-ssm-resource-factory.d.ts +2 -2
- package/dist/service/ssm/cfn/sim-cfn-ssm-resource-factory.js +4 -3
- package/dist/service/ssm/sim-ssm.d.ts +11 -3
- package/dist/service/ssm/sim-ssm.js +15 -6
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-deleter.d.ts +2 -1
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-deleter.js +2 -4
- package/dist/service/stepfunctions/cfn/sim-step-functions-cfn-resource-factory.d.ts +1 -1
- package/dist/service/stepfunctions/cfn/sim-step-functions-cfn-resource-factory.js +4 -3
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-creator.d.ts +2 -1
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-creator.js +2 -2
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js +2 -4
- package/dist/service/stepfunctions/task/sim-states-execution-role.d.ts +3 -3
- package/dist/service/stepfunctions/task/sim-states-execution-role.js +4 -3
- package/dist/service/stepfunctions/task/sim-states-task-function.js +2 -1
- package/dist/service/sts/auth-z/assume-role-auth-z-coordinator.d.ts +3 -0
- package/dist/service/sts/auth-z/assume-role-auth-z-coordinator.js +2 -7
- package/dist/service/sts/auth-z/assume-role-source-account-auth-z.d.ts +6 -0
- package/dist/service/sts/auth-z/assume-role-source-account-auth-z.js +3 -0
- package/dist/service/sts/auth-z/assume-role-target-auth-z.d.ts +6 -0
- package/dist/service/sts/auth-z/assume-role-target-auth-z.js +3 -0
- package/dist/service/sts/auth-z/assume-role-trust-policy-authorizer.d.ts +6 -0
- package/dist/service/sts/auth-z/assume-role-trust-policy-authorizer.js +1 -0
- package/dist/service/sts/command/assume-role/assume-role.handler.d.ts +5 -0
- package/dist/service/sts/command/assume-role/assume-role.handler.js +2 -1
- package/dist/service/sts/service-role/sim-service-role-source.d.ts +33 -0
- package/dist/service/sts/service-role/sim-service-role-source.js +26 -0
- package/dist/service/sts/service-role/sim-service-role-target.d.ts +26 -0
- package/dist/service/sts/service-role/sim-service-role-target.js +27 -0
- package/dist/service/sts/service-role/sim-service-role.d.ts +16 -20
- package/dist/service/sts/service-role/sim-service-role.js +7 -21
- package/dist/service/sts/sim-sts.js +1 -0
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.d.ts +3 -2
- package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.js +4 -6
- package/dist/service/wafv2/cfn/ip-set/sim-cfn-waf-ip-set-creator.d.ts +3 -2
- package/dist/service/wafv2/cfn/ip-set/sim-cfn-waf-ip-set-creator.js +4 -4
- package/dist/service/wafv2/cfn/regex-pattern-set/sim-cfn-waf-regex-set-creator.d.ts +3 -2
- package/dist/service/wafv2/cfn/regex-pattern-set/sim-cfn-waf-regex-set-creator.js +4 -4
- package/dist/service/wafv2/cfn/sim-cfn-waf-resource-deleter.d.ts +2 -1
- package/dist/service/wafv2/cfn/sim-cfn-waf-resource-deleter.js +5 -5
- package/dist/service/wafv2/cfn/sim-waf-cfn-resource-factory.d.ts +2 -2
- package/dist/service/wafv2/cfn/sim-waf-cfn-resource-factory.js +8 -6
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.d.ts +3 -2
- package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.js +4 -6
- package/dist/service/wafv2/sim-wafv2-commands.d.ts +1 -1
- package/dist/service/wafv2/sim-wafv2-commands.js +3 -2
- package/dist/util/clock/sim-clock-control.d.ts +3 -1
- package/dist/util/clock/sim-clock-control.js +2 -0
- package/dist/util/clock/sim-controllable-clock.d.ts +3 -1
- package/dist/util/clock/sim-controllable-clock.js +2 -0
- package/dist/util/clock/sim-duration.d.ts +6 -2
- package/dist/util/clock/sim-duration.js +8 -1
- package/package.json +4 -3
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The references of one property resolution that were read before it ran.
|
|
3
|
+
*
|
|
4
|
+
* A service that has to be waited on cannot answer while the properties
|
|
5
|
+
* resolve, because resolution is synchronous, so properties holding a
|
|
6
|
+
* reference are resolved twice. The first pass leaves every reference as the
|
|
7
|
+
* template wrote it and keeps what the services answer here. The second finds
|
|
8
|
+
* the answers waiting, so an `Fn::Split` over a reference splits the value
|
|
9
|
+
* rather than something standing in for it.
|
|
10
|
+
*
|
|
11
|
+
* A read that failed is not kept. The resolution pass asks its service again,
|
|
12
|
+
* and the failure reaches the Resource from there, which is what fails a
|
|
13
|
+
* Resource holding a reference the deployment may not read.
|
|
14
|
+
*/
|
|
15
|
+
export class SimCfnPrefetchedDynamicReferences {
|
|
16
|
+
answers = new Map();
|
|
17
|
+
reads;
|
|
18
|
+
/** Whether the pass running now is the one reading references ahead. */
|
|
19
|
+
get isReading() {
|
|
20
|
+
return this.reads !== undefined;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* What one reference was already answered with, where it was.
|
|
24
|
+
*/
|
|
25
|
+
answerFor(key) {
|
|
26
|
+
return this.answers.get(key);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Whether the pass running now has already started reading one reference.
|
|
30
|
+
*
|
|
31
|
+
* A property holding the same reference twice would otherwise read it twice.
|
|
32
|
+
*/
|
|
33
|
+
isHeld(key) {
|
|
34
|
+
return this.reads?.has(key) === true;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Keep one reference's answer for the resolution pass to use.
|
|
38
|
+
*/
|
|
39
|
+
hold(key, resolution) {
|
|
40
|
+
this.reads?.set(key, Promise.resolve(resolution));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Run one pass over the properties, keeping what its references answer.
|
|
44
|
+
*
|
|
45
|
+
* Nothing the pass throws escapes. The resolution pass after it resolves the
|
|
46
|
+
* same properties, and that is the pass whose failure the Resource reports.
|
|
47
|
+
*/
|
|
48
|
+
async read(pass) {
|
|
49
|
+
const reads = new Map();
|
|
50
|
+
this.reads = reads;
|
|
51
|
+
try {
|
|
52
|
+
pass();
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
// The resolution pass after this one is the one that reports it.
|
|
56
|
+
}
|
|
57
|
+
finally {
|
|
58
|
+
this.reads = undefined;
|
|
59
|
+
}
|
|
60
|
+
const answers = await Promise.all(reads
|
|
61
|
+
.entries()
|
|
62
|
+
.map(async ([key, read]) => await prefetchedReference(key, read)));
|
|
63
|
+
for (const answer of answers) {
|
|
64
|
+
if (answer !== undefined) {
|
|
65
|
+
this.answers.set(answer.key, answer.resolution);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* What one read answered, or nothing where it failed.
|
|
72
|
+
*/
|
|
73
|
+
async function prefetchedReference(key, read) {
|
|
74
|
+
try {
|
|
75
|
+
return { key, resolution: await read };
|
|
76
|
+
}
|
|
77
|
+
catch {
|
|
78
|
+
return undefined;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -2,6 +2,7 @@ import type { SimCfnResource, SimCloudFormationResourceCreateContext } from "../
|
|
|
2
2
|
import type { SimCfnTemplateValueRecord } from "../../../cloudformation/template/value/sim-cfn-template-value.js";
|
|
3
3
|
import type { SimCloudFront } from "../../sim-cloudfront.js";
|
|
4
4
|
import type { SimCloudFrontFunction } from "../../cff/sim-cloudfront-function.js";
|
|
5
|
+
import { type SimCfnResourceCallerOptions } from "../../../cloudformation/resource/caller/sim-cfn-resource-caller-options.js";
|
|
5
6
|
interface SimCfnCfFunctionCreatorProperties {
|
|
6
7
|
readonly cloudFront: SimCloudFront;
|
|
7
8
|
}
|
|
@@ -33,5 +34,9 @@ export declare class SimCfnCffCreator {
|
|
|
33
34
|
* executable handler while preserving CloudFormation-style Resource creation.
|
|
34
35
|
*/
|
|
35
36
|
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord, context?: SimCloudFormationResourceCreateContext): Promise<SimCloudFrontFunction>;
|
|
37
|
+
/**
|
|
38
|
+
* Delete the Function an AWS::CloudFront::Function Resource created.
|
|
39
|
+
*/
|
|
40
|
+
delete(resource: SimCfnResource, options?: SimCfnResourceCallerOptions): Promise<void>;
|
|
36
41
|
}
|
|
37
42
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { assertDefined } from "../../../../util/type-guard/defined.js";
|
|
2
2
|
import { SimCfnCffCreateInputBuilder } from "./sim-cfn-cff-create-input-builder.js";
|
|
3
|
+
import { simCfnResourceCallerOptions, } from "../../../cloudformation/resource/caller/sim-cfn-resource-caller-options.js";
|
|
3
4
|
/**
|
|
4
5
|
* Creates simulated CloudFront Functions for AWS::CloudFront::Function
|
|
5
6
|
* CloudFormation Resources.
|
|
@@ -36,13 +37,19 @@ export class SimCfnCffCreator {
|
|
|
36
37
|
bindings: context?.bindings,
|
|
37
38
|
});
|
|
38
39
|
const functionInput = inputBuilder.build();
|
|
39
|
-
const output = await this.cloudFront.createFunction({
|
|
40
|
-
input: functionInput,
|
|
41
|
-
});
|
|
40
|
+
const output = await this.cloudFront.createFunction({ input: functionInput }, simCfnResourceCallerOptions(context?.caller));
|
|
42
41
|
const createdFunctionName = output.FunctionSummary
|
|
43
42
|
.Name;
|
|
44
43
|
const cloudFrontFunction = this.cloudFront.getCloudFrontFunctionByName(createdFunctionName);
|
|
45
44
|
assertDefined(cloudFrontFunction, `Expected sim CloudFront Function ${createdFunctionName} to exist after CloudFormation creation`);
|
|
46
45
|
return cloudFrontFunction;
|
|
47
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Delete the Function an AWS::CloudFront::Function Resource created.
|
|
49
|
+
*/
|
|
50
|
+
async delete(resource, options) {
|
|
51
|
+
const cloudFrontFunction = resource.simResource;
|
|
52
|
+
assertDefined(cloudFrontFunction, `sim CloudFront Function for CloudFormation Resource ${resource.logicalId}`);
|
|
53
|
+
await this.cloudFront.deleteFunction({ input: { Name: cloudFrontFunction.name } }, options);
|
|
54
|
+
}
|
|
48
55
|
}
|
|
@@ -3,6 +3,7 @@ import { SimCfnCfDistroConfigValidator } from "./sim-cfn-cf-distro-config-valida
|
|
|
3
3
|
import { simCfnCfDistroWithRunnableEdgeAssociations } from "./sim-cfn-cf-distro-edge-associations.js";
|
|
4
4
|
import { simCfnCfDistroWithHeldResponseHeadersPolicies } from "./sim-cfn-cf-distro-response-headers-policy.js";
|
|
5
5
|
import { simCfnCfDistroWithoutAbsentWebAcl } from "./sim-cfn-cf-distro-web-acl.js";
|
|
6
|
+
import { simCfnResourceCallerOptions } from "../../../cloudformation/resource/caller/sim-cfn-resource-caller-options.js";
|
|
6
7
|
/**
|
|
7
8
|
* Creates simulated CloudFront Distributions from CloudFormation Resources.
|
|
8
9
|
*
|
|
@@ -35,7 +36,7 @@ export class SimCfnCfDistroCreator {
|
|
|
35
36
|
input: {
|
|
36
37
|
DistributionConfig: deployableConfig(resource, validator.validate(), context.simAws, this.cloudFront),
|
|
37
38
|
},
|
|
38
|
-
});
|
|
39
|
+
}, simCfnResourceCallerOptions(context.caller));
|
|
39
40
|
const distributionId = output.Distribution?.Id;
|
|
40
41
|
assertDefined(distributionId, `AWS::CloudFront::Distribution ${resource.logicalId} created Distribution Id`);
|
|
41
42
|
const distribution = this.cloudFront.getSimDistributionById(distributionId);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-resource.js";
|
|
2
2
|
import type { SimCloudFront } from "../../sim-cloudfront.js";
|
|
3
|
+
import type { SimCfnResourceCallerOptions } from "../../../cloudformation/resource/caller/sim-cfn-resource-caller-options.js";
|
|
3
4
|
interface SimCfnCfDistroDeleterProperties {
|
|
4
5
|
readonly cloudFront: SimCloudFront;
|
|
5
6
|
}
|
|
@@ -22,7 +23,7 @@ export declare class SimCfnCfDistroDeleter {
|
|
|
22
23
|
/**
|
|
23
24
|
* Disable and then delete the Distribution a Resource created.
|
|
24
25
|
*/
|
|
25
|
-
delete(resource: SimCfnResource): Promise<void>;
|
|
26
|
+
delete(resource: SimCfnResource, options?: SimCfnResourceCallerOptions): Promise<void>;
|
|
26
27
|
private disable;
|
|
27
28
|
}
|
|
28
29
|
export {};
|
|
@@ -20,15 +20,13 @@ export class SimCfnCfDistroDeleter {
|
|
|
20
20
|
/**
|
|
21
21
|
* Disable and then delete the Distribution a Resource created.
|
|
22
22
|
*/
|
|
23
|
-
async delete(resource) {
|
|
23
|
+
async delete(resource, options) {
|
|
24
24
|
const distribution = resource.simResource;
|
|
25
25
|
assertDefined(distribution, `sim CloudFront Distribution for CloudFormation Resource ${resource.logicalId}`);
|
|
26
|
-
await this.disable(distribution);
|
|
27
|
-
await this.cloudFront.deleteDistribution({
|
|
28
|
-
input: { Id: distribution.distributionId },
|
|
29
|
-
});
|
|
26
|
+
await this.disable(distribution, options);
|
|
27
|
+
await this.cloudFront.deleteDistribution({ input: { Id: distribution.distributionId } }, options);
|
|
30
28
|
}
|
|
31
|
-
async disable(distribution) {
|
|
29
|
+
async disable(distribution, options) {
|
|
32
30
|
const { distributionConfig } = distribution;
|
|
33
31
|
assertDefined(distributionConfig, `sim CloudFront Distribution ${distribution.distributionId} configuration to disable`);
|
|
34
32
|
await this.cloudFront.updateDistribution({
|
|
@@ -36,6 +34,6 @@ export class SimCfnCfDistroDeleter {
|
|
|
36
34
|
Id: distribution.distributionId,
|
|
37
35
|
DistributionConfig: { ...distributionConfig, Enabled: false },
|
|
38
36
|
},
|
|
39
|
-
});
|
|
37
|
+
}, options);
|
|
40
38
|
}
|
|
41
39
|
}
|
|
@@ -2,6 +2,7 @@ import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-re
|
|
|
2
2
|
import type { SimCfnTemplateValueRecord } from "../../../cloudformation/template/value/sim-cfn-template-value.js";
|
|
3
3
|
import type { SimCloudFrontKeyValueStore } from "../../key-value-store/sim-cf-key-value-store.js";
|
|
4
4
|
import type { SimCloudFront } from "../../sim-cloudfront.js";
|
|
5
|
+
import type { SimCfnResourceCallerOptions } from "../../../cloudformation/resource/caller/sim-cfn-resource-caller-options.js";
|
|
5
6
|
interface SimCfnCfKeyValueStoreCreatorProperties {
|
|
6
7
|
readonly cloudFront: SimCloudFront;
|
|
7
8
|
}
|
|
@@ -19,7 +20,7 @@ export declare class SimCfnCfKeyValueStoreCreator {
|
|
|
19
20
|
/**
|
|
20
21
|
* Create the key value store one Resource describes.
|
|
21
22
|
*/
|
|
22
|
-
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord): Promise<SimCloudFrontKeyValueStore>;
|
|
23
|
+
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord, options?: SimCfnResourceCallerOptions): Promise<SimCloudFrontKeyValueStore>;
|
|
23
24
|
/**
|
|
24
25
|
* Remove a key value store created from a Resource.
|
|
25
26
|
*
|
|
@@ -27,6 +28,6 @@ export declare class SimCfnCfKeyValueStoreCreator {
|
|
|
27
28
|
* anything written to it since will have moved the one creation returned.
|
|
28
29
|
* Tearing a Stack down is not the place to make a caller thread that through.
|
|
29
30
|
*/
|
|
30
|
-
delete(resource: SimCfnResource): Promise<void>;
|
|
31
|
+
delete(resource: SimCfnResource, options?: SimCfnResourceCallerOptions): Promise<void>;
|
|
31
32
|
}
|
|
32
33
|
export {};
|
|
@@ -16,7 +16,7 @@ export class SimCfnCfKeyValueStoreCreator {
|
|
|
16
16
|
/**
|
|
17
17
|
* Create the key value store one Resource describes.
|
|
18
18
|
*/
|
|
19
|
-
async create(resource, properties) {
|
|
19
|
+
async create(resource, properties, options) {
|
|
20
20
|
const config = new SimCfnCfKeyValueStoreConfigReader({
|
|
21
21
|
resource,
|
|
22
22
|
properties,
|
|
@@ -26,7 +26,7 @@ export class SimCfnCfKeyValueStoreCreator {
|
|
|
26
26
|
Name: config.name,
|
|
27
27
|
...(config.comment !== undefined && { Comment: config.comment }),
|
|
28
28
|
},
|
|
29
|
-
});
|
|
29
|
+
}, options);
|
|
30
30
|
const store = this.cloudFront
|
|
31
31
|
.keyValueStores()
|
|
32
32
|
.byId(created.KeyValueStore.Id);
|
|
@@ -41,13 +41,13 @@ export class SimCfnCfKeyValueStoreCreator {
|
|
|
41
41
|
* anything written to it since will have moved the one creation returned.
|
|
42
42
|
* Tearing a Stack down is not the place to make a caller thread that through.
|
|
43
43
|
*/
|
|
44
|
-
async delete(resource) {
|
|
44
|
+
async delete(resource, options) {
|
|
45
45
|
const store = resource.simResource;
|
|
46
46
|
if (store === undefined) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
await this.cloudFront
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
await this.cloudFront
|
|
50
|
+
.keyValueStores()
|
|
51
|
+
.deleteKeyValueStore({ input: { Name: store.name, IfMatch: store.resourceETag } }, options);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { SimCfnServiceResourceFactory } from "../../cloudformation/resource/factory/sim-cfn-resource-factory.type.js";
|
|
2
2
|
import type { SimCloudFront } from "../sim-cloudfront.js";
|
|
3
|
-
import type { SimCfnResource, SimCloudFormationResourceCreateContext } from "../../cloudformation/resource/sim-cfn-resource.js";
|
|
3
|
+
import type { SimCfnResource, SimCloudFormationResourceCreateContext, SimCloudFormationResourceDeleteContext } from "../../cloudformation/resource/sim-cfn-resource.js";
|
|
4
4
|
/**
|
|
5
5
|
* CloudFormation Resource factory for simulated CloudFront resources.
|
|
6
6
|
*/
|
|
7
7
|
export declare class SimCloudFrontCloudFormationResourceFactory implements SimCfnServiceResourceFactory {
|
|
8
|
-
private readonly cloudFront;
|
|
9
8
|
private readonly distroCreator;
|
|
10
9
|
private readonly functionCreator;
|
|
11
10
|
private readonly distroDeleter;
|
|
@@ -21,6 +20,5 @@ export declare class SimCloudFrontCloudFormationResourceFactory implements SimCf
|
|
|
21
20
|
* Delete a simulated CloudFront resource created from a CloudFormation
|
|
22
21
|
* Resource.
|
|
23
22
|
*/
|
|
24
|
-
delete(resourceTypeName: string, resource: SimCfnResource): Promise<void>;
|
|
25
|
-
private deleteFunction;
|
|
23
|
+
delete(resourceTypeName: string, resource: SimCfnResource, context: SimCloudFormationResourceDeleteContext): Promise<void>;
|
|
26
24
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
+
import { simCfnResourceCallerOptions } from "../../cloudformation/resource/caller/sim-cfn-resource-caller-options.js";
|
|
1
2
|
import { SimCfnCfDistroCreator } from "./distro/sim-cfn-cf-distro-creator.js";
|
|
2
3
|
import { SimCfnCffCreator } from "./cff/sim-cfn-cff-creator.js";
|
|
3
4
|
import { SimCfnCfDistroDeleter } from "./distro/sim-cfn-cf-distro-deleter.js";
|
|
4
5
|
import { SimCfnCfResponseHeadersPolicyCreator } from "./response-headers-policy/sim-cfn-cf-rh-policy-creator.js";
|
|
5
6
|
import { SimCfnCfOriginAccessControlCreator } from "./origin-access-control/sim-cfn-cf-oac-creator.js";
|
|
6
7
|
import { SimCfnCfKeyValueStoreCreator } from "./key-value-store/sim-cfn-cf-kvs-creator.js";
|
|
7
|
-
import { assertDefined } from "../../../util/type-guard/defined.js";
|
|
8
8
|
/**
|
|
9
9
|
* CloudFormation Resource factory for simulated CloudFront resources.
|
|
10
10
|
*/
|
|
11
11
|
export class SimCloudFrontCloudFormationResourceFactory {
|
|
12
|
-
cloudFront;
|
|
13
12
|
distroCreator;
|
|
14
13
|
functionCreator;
|
|
15
14
|
distroDeleter;
|
|
@@ -17,7 +16,6 @@ export class SimCloudFrontCloudFormationResourceFactory {
|
|
|
17
16
|
originAccessControlCreator;
|
|
18
17
|
keyValueStoreCreator;
|
|
19
18
|
constructor(cloudFront) {
|
|
20
|
-
this.cloudFront = cloudFront;
|
|
21
19
|
this.distroCreator = new SimCfnCfDistroCreator({ cloudFront });
|
|
22
20
|
this.functionCreator = new SimCfnCffCreator({ cloudFront });
|
|
23
21
|
this.distroDeleter = new SimCfnCfDistroDeleter({ cloudFront });
|
|
@@ -49,7 +47,7 @@ export class SimCloudFrontCloudFormationResourceFactory {
|
|
|
49
47
|
return this.originAccessControlCreator.create(resource, properties);
|
|
50
48
|
}
|
|
51
49
|
case "KeyValueStore": {
|
|
52
|
-
return await this.keyValueStoreCreator.create(resource, properties);
|
|
50
|
+
return await this.keyValueStoreCreator.create(resource, properties, simCfnResourceCallerOptions(context.caller));
|
|
53
51
|
}
|
|
54
52
|
default: {
|
|
55
53
|
throw new Error(`Unsupported sim CloudFront CloudFormation Resource ${resourceTypeName}`);
|
|
@@ -60,14 +58,15 @@ export class SimCloudFrontCloudFormationResourceFactory {
|
|
|
60
58
|
* Delete a simulated CloudFront resource created from a CloudFormation
|
|
61
59
|
* Resource.
|
|
62
60
|
*/
|
|
63
|
-
async delete(resourceTypeName, resource) {
|
|
61
|
+
async delete(resourceTypeName, resource, context) {
|
|
62
|
+
const options = simCfnResourceCallerOptions(context.caller);
|
|
64
63
|
switch (resourceTypeName) {
|
|
65
64
|
case "Distribution": {
|
|
66
|
-
await this.distroDeleter.delete(resource);
|
|
65
|
+
await this.distroDeleter.delete(resource, options);
|
|
67
66
|
return;
|
|
68
67
|
}
|
|
69
68
|
case "Function": {
|
|
70
|
-
await this.
|
|
69
|
+
await this.functionCreator.delete(resource, options);
|
|
71
70
|
return;
|
|
72
71
|
}
|
|
73
72
|
case "ResponseHeadersPolicy": {
|
|
@@ -79,7 +78,7 @@ export class SimCloudFrontCloudFormationResourceFactory {
|
|
|
79
78
|
return;
|
|
80
79
|
}
|
|
81
80
|
case "KeyValueStore": {
|
|
82
|
-
await this.keyValueStoreCreator.delete(resource);
|
|
81
|
+
await this.keyValueStoreCreator.delete(resource, options);
|
|
83
82
|
return;
|
|
84
83
|
}
|
|
85
84
|
default: {
|
|
@@ -87,11 +86,4 @@ export class SimCloudFrontCloudFormationResourceFactory {
|
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
88
|
}
|
|
90
|
-
async deleteFunction(resource) {
|
|
91
|
-
const cloudFrontFunction = resource.simResource;
|
|
92
|
-
assertDefined(cloudFrontFunction, `sim CloudFront Function for CloudFormation Resource ${resource.logicalId}`);
|
|
93
|
-
await this.cloudFront.deleteFunction({
|
|
94
|
-
input: { Name: cloudFrontFunction.name },
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
89
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { assumeSimServiceRole,
|
|
1
|
+
import { assumeSimServiceRole, } from "../../sts/service-role/sim-service-role.js";
|
|
2
|
+
import { simServiceRoleTarget } from "../../sts/service-role/sim-service-role-target.js";
|
|
2
3
|
import { SimCloudFrontInvalidLambdaFunctionAssociation } from "../error/sim-cloudfront.error.js";
|
|
3
4
|
import { edgeFunctionArnParts } from "./sim-cf-edge-function-arn.js";
|
|
4
5
|
import { findSimCfEdgeFunctionVersion } from "./sim-cf-edge-function-version.js";
|
|
@@ -65,7 +66,7 @@ export class SimAwsCfEdgeFunctions {
|
|
|
65
66
|
target: simServiceRoleTarget(target.simFunction.roleArn),
|
|
66
67
|
servicePrincipal: simLambdaEdgeServicePrincipal,
|
|
67
68
|
sessionName,
|
|
68
|
-
|
|
69
|
+
scope: this.simAws.accountRegionScope(accountId, regionName),
|
|
69
70
|
refusals: executionRoleRefusals(functionArn),
|
|
70
71
|
});
|
|
71
72
|
}
|
|
@@ -3,7 +3,7 @@ import type { SimAcmRegistry } from "../acm/registry/sim-acm-registry.js";
|
|
|
3
3
|
import type { SimAwsCaller } from "../aws/caller/sim-aws-caller.js";
|
|
4
4
|
import type { SimAwsAccountRegionScope } from "../aws/sim-aws-account-region-scope.js";
|
|
5
5
|
import type { SimAwsAccountId } from "../aws/sim-aws-account.js";
|
|
6
|
-
import {
|
|
6
|
+
import type { SimIamInterServiceAuthZ } from "../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
7
7
|
import type { SimCreateDistributionCommand, SimCreateDistributionCommandOutput } from "./command/create-distribution/create-distribution.command.js";
|
|
8
8
|
import type { SimCreateFunctionCommand, SimCreateFunctionCommandOutput } from "./command/create-function/create-function.command.js";
|
|
9
9
|
import { type SimCloudFrontFunctionMap } from "./command/create-function/create-function.handler.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BackgroundTasks, } from "../../util/background/background.js";
|
|
2
|
-
import {
|
|
2
|
+
import { simIamGlobalServiceRegion, simIamInRegion, } from "../iam/authorize/sim-iam-region-auth-z.js";
|
|
3
3
|
import { CreateDistributionCommandHandler } from "./command/create-distribution/create-distribution.handler.js";
|
|
4
4
|
import { CreateFunctionCommandHandler, } from "./command/create-function/create-function.handler.js";
|
|
5
5
|
import { DeleteDistributionCommandHandler } from "./command/delete-distribution/delete-distribution.handler.js";
|
|
@@ -41,7 +41,10 @@ export class SimCloudFrontCommands {
|
|
|
41
41
|
functionState;
|
|
42
42
|
configurationState;
|
|
43
43
|
constructor(properties) {
|
|
44
|
-
const { accountId, distributions, cloudFrontFunctions, cloudFrontRegistry = new SimCloudFrontRegistry(), s3OriginResolver = emptyCloudFrontS3OriginResolver, customOriginDispatcher,
|
|
44
|
+
const { accountId, distributions, cloudFrontFunctions, cloudFrontRegistry = new SimCloudFrontRegistry(), s3OriginResolver = emptyCloudFrontS3OriginResolver, customOriginDispatcher, acmRegistry, webAclResolver, edgeFunctions, background = new BackgroundTasks(), } = properties;
|
|
45
|
+
// CloudFront is global rather than Region-scoped, so its requests are made
|
|
46
|
+
// in the Region its one endpoint is in.
|
|
47
|
+
const iam = simIamInRegion(properties.iam, simIamGlobalServiceRegion);
|
|
45
48
|
const keyValueStores = new SimCloudFrontKeyValueStoreRegistry();
|
|
46
49
|
this.edgeFunctions = edgeFunctions;
|
|
47
50
|
this.distributionState = {
|
|
@@ -2,6 +2,7 @@ import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-re
|
|
|
2
2
|
import type { SimCfnTemplateValueRecord } from "../../../cloudformation/template/value/sim-cfn-template-value.js";
|
|
3
3
|
import type { SimCloudWatchAlarm } from "../../alarm/sim-cloudwatch-alarm.js";
|
|
4
4
|
import type { SimCloudWatch } from "../../sim-cloudwatch.js";
|
|
5
|
+
import type { SimCfnResourceCallerOptions } from "../../../cloudformation/resource/caller/sim-cfn-resource-caller-options.js";
|
|
5
6
|
interface SimCfnAlarmCreatorProperties {
|
|
6
7
|
readonly cloudWatch: SimCloudWatch;
|
|
7
8
|
}
|
|
@@ -19,7 +20,7 @@ export declare class SimCfnAlarmCreator {
|
|
|
19
20
|
/**
|
|
20
21
|
* Create an alarm from an AWS::CloudWatch::Alarm Resource.
|
|
21
22
|
*/
|
|
22
|
-
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord): Promise<SimCloudWatchAlarm>;
|
|
23
|
+
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord, options?: SimCfnResourceCallerOptions): Promise<SimCloudWatchAlarm>;
|
|
23
24
|
/**
|
|
24
25
|
* Delete an alarm created from an AWS::CloudWatch::Alarm Resource.
|
|
25
26
|
*
|
|
@@ -27,6 +28,6 @@ export declare class SimCfnAlarmCreator {
|
|
|
27
28
|
* removing it, which is what lets a torn-down stack settle rather than
|
|
28
29
|
* leaving an alarm waking up to read a metric nothing watches.
|
|
29
30
|
*/
|
|
30
|
-
delete(alarm: SimCloudWatchAlarm): Promise<void>;
|
|
31
|
+
delete(alarm: SimCloudWatchAlarm, options?: SimCfnResourceCallerOptions): Promise<void>;
|
|
31
32
|
}
|
|
32
33
|
export {};
|
|
@@ -16,11 +16,11 @@ export class SimCfnAlarmCreator {
|
|
|
16
16
|
/**
|
|
17
17
|
* Create an alarm from an AWS::CloudWatch::Alarm Resource.
|
|
18
18
|
*/
|
|
19
|
-
async create(resource, properties) {
|
|
19
|
+
async create(resource, properties, options) {
|
|
20
20
|
const alarmProperties = new SimCfnAlarmProperties({ resource, properties });
|
|
21
21
|
const alarmName = alarmProperties.alarmName();
|
|
22
22
|
alarmProperties.recordIgnoredProperties();
|
|
23
|
-
await this.#cloudWatch.putMetricAlarm({ input: alarmProperties.input() });
|
|
23
|
+
await this.#cloudWatch.putMetricAlarm({ input: alarmProperties.input() }, options);
|
|
24
24
|
const alarm = this.#cloudWatch.findAlarm(alarmName);
|
|
25
25
|
assertDefined(alarm, `sim CloudWatch alarm ${alarmName} after CloudFormation creation`);
|
|
26
26
|
return alarm;
|
|
@@ -32,9 +32,7 @@ export class SimCfnAlarmCreator {
|
|
|
32
32
|
* removing it, which is what lets a torn-down stack settle rather than
|
|
33
33
|
* leaving an alarm waking up to read a metric nothing watches.
|
|
34
34
|
*/
|
|
35
|
-
async delete(alarm) {
|
|
36
|
-
await this.#cloudWatch.deleteAlarms({
|
|
37
|
-
input: { AlarmNames: [alarm.name] },
|
|
38
|
-
});
|
|
35
|
+
async delete(alarm, options) {
|
|
36
|
+
await this.#cloudWatch.deleteAlarms({ input: { AlarmNames: [alarm.name] } }, options);
|
|
39
37
|
}
|
|
40
38
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SimCfnServiceResourceFactory } from "../../cloudformation/resource/factory/sim-cfn-resource-factory.type.js";
|
|
2
|
-
import type { SimCfnResource, SimCloudFormationResourceCreateContext } from "../../cloudformation/resource/sim-cfn-resource.js";
|
|
2
|
+
import type { SimCfnResource, SimCloudFormationResourceCreateContext, SimCloudFormationResourceDeleteContext } from "../../cloudformation/resource/sim-cfn-resource.js";
|
|
3
3
|
import type { SimCloudWatch } from "../sim-cloudwatch.js";
|
|
4
4
|
interface SimCloudWatchCfnResourceFactoryProperties {
|
|
5
5
|
readonly cloudWatch: SimCloudWatch;
|
|
@@ -23,6 +23,6 @@ export declare class SimCloudWatchCfnResourceFactory implements SimCfnServiceRes
|
|
|
23
23
|
* Delete a simulated CloudWatch resource created from a CloudFormation
|
|
24
24
|
* Resource.
|
|
25
25
|
*/
|
|
26
|
-
delete(resourceTypeName: string, resource: SimCfnResource): Promise<void>;
|
|
26
|
+
delete(resourceTypeName: string, resource: SimCfnResource, context: SimCloudFormationResourceDeleteContext): Promise<void>;
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { assertDefined } from "../../../util/type-guard/defined.js";
|
|
2
|
+
import { simCfnResourceCallerOptions } from "../../cloudformation/resource/caller/sim-cfn-resource-caller-options.js";
|
|
2
3
|
import { SimCfnAlarmCreator } from "./alarm/sim-cfn-alarm-creator.js";
|
|
3
4
|
const alarmResourceTypeName = "Alarm";
|
|
4
5
|
/**
|
|
@@ -21,17 +22,17 @@ export class SimCloudWatchCfnResourceFactory {
|
|
|
21
22
|
*/
|
|
22
23
|
create(resourceTypeName, resource, context) {
|
|
23
24
|
requireAlarmResourceType(resourceTypeName, "");
|
|
24
|
-
return this.#alarmCreator.create(resource, context.resolvedProperties ?? resource.properties);
|
|
25
|
+
return this.#alarmCreator.create(resource, context.resolvedProperties ?? resource.properties, simCfnResourceCallerOptions(context.caller));
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
27
28
|
* Delete a simulated CloudWatch resource created from a CloudFormation
|
|
28
29
|
* Resource.
|
|
29
30
|
*/
|
|
30
|
-
delete(resourceTypeName, resource) {
|
|
31
|
+
delete(resourceTypeName, resource, context) {
|
|
31
32
|
requireAlarmResourceType(resourceTypeName, " deletion");
|
|
32
33
|
const alarm = resource.simResource;
|
|
33
34
|
assertDefined(alarm, `sim CloudWatch alarm for CloudFormation Resource ${resource.logicalId}`);
|
|
34
|
-
return this.#alarmCreator.delete(alarm);
|
|
35
|
+
return this.#alarmCreator.delete(alarm, simCfnResourceCallerOptions(context.caller));
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
function requireAlarmResourceType(resourceTypeName, operationSuffix) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BackgroundScheduler } from "../../util/background/background.js";
|
|
2
2
|
import type { SimAwsAccountRegionScope } from "../aws/sim-aws-account-region-scope.js";
|
|
3
|
-
import {
|
|
3
|
+
import type { SimIamInterServiceAuthZ } from "../iam/authorize/sim-iam-inter-service-auth-z.js";
|
|
4
4
|
import { SimCloudWatchAlarmActions } from "./alarm/action/sim-cloudwatch-alarm-actions.js";
|
|
5
5
|
import { type SimCloudWatchAlarmTargets } from "./alarm/action/sim-cloudwatch-alarm-targets.js";
|
|
6
6
|
import { SimCloudWatchAlarmStore } from "./alarm/sim-cloudwatch-alarm-store.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BackgroundTasks, } from "../../util/background/background.js";
|
|
2
2
|
import { simAwsAccountRegionScopeFactory } from "../aws/sim-aws-account-region-scope.factory.js";
|
|
3
|
-
import {
|
|
3
|
+
import { simIamInRegion } from "../iam/authorize/sim-iam-region-auth-z.js";
|
|
4
4
|
import { SimCloudWatchAlarmActions } from "./alarm/action/sim-cloudwatch-alarm-actions.js";
|
|
5
5
|
import { SimCloudWatchNoAlarmTargets, } from "./alarm/action/sim-cloudwatch-alarm-targets.js";
|
|
6
6
|
import { SimCloudWatchAlarmSchedule } from "./alarm/sim-cloudwatch-alarm-schedule.js";
|
|
@@ -35,7 +35,8 @@ export class SimCloudWatchCommands {
|
|
|
35
35
|
alarmActions;
|
|
36
36
|
background;
|
|
37
37
|
constructor(properties = {}) {
|
|
38
|
-
const { accountRegionScope = simAwsAccountRegionScopeFactory.make(),
|
|
38
|
+
const { accountRegionScope = simAwsAccountRegionScopeFactory.make(), background = new BackgroundTasks(), alarmTargets = new SimCloudWatchNoAlarmTargets(), } = properties;
|
|
39
|
+
const iam = simIamInRegion(properties.iam, accountRegionScope.regionName);
|
|
39
40
|
const authorizer = new SimCloudWatchAuthorizer({ iam, accountRegionScope });
|
|
40
41
|
const metrics = new SimCloudWatchMetricStore();
|
|
41
42
|
const alarms = new SimCloudWatchAlarmStore();
|
|
@@ -2,6 +2,7 @@ import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-re
|
|
|
2
2
|
import type { SimCfnTemplateValueRecord } from "../../../cloudformation/template/value/sim-cfn-template-value.js";
|
|
3
3
|
import type { SimCognitoIdentityProvider } from "../../sim-cognito-identity-provider.js";
|
|
4
4
|
import type { SimCognitoUserPoolClient } from "../../user-pool/client/sim-cognito-user-pool-client.js";
|
|
5
|
+
import type { SimCfnResourceCallerOptions } from "../../../cloudformation/resource/caller/sim-cfn-resource-caller-options.js";
|
|
5
6
|
interface SimCfnCognitoClientCreatorProperties {
|
|
6
7
|
readonly cognito: SimCognitoIdentityProvider;
|
|
7
8
|
}
|
|
@@ -19,6 +20,6 @@ export declare class SimCfnCognitoClientCreator {
|
|
|
19
20
|
/**
|
|
20
21
|
* Create an app client from an AWS::Cognito::UserPoolClient Resource.
|
|
21
22
|
*/
|
|
22
|
-
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord): Promise<SimCognitoUserPoolClient>;
|
|
23
|
+
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord, options?: SimCfnResourceCallerOptions): Promise<SimCognitoUserPoolClient>;
|
|
23
24
|
}
|
|
24
25
|
export {};
|
|
@@ -16,14 +16,12 @@ export class SimCfnCognitoClientCreator {
|
|
|
16
16
|
/**
|
|
17
17
|
* Create an app client from an AWS::Cognito::UserPoolClient Resource.
|
|
18
18
|
*/
|
|
19
|
-
async create(resource, properties) {
|
|
19
|
+
async create(resource, properties, options) {
|
|
20
20
|
const clientProperties = new SimCfnCognitoClientProperties({
|
|
21
21
|
resource,
|
|
22
22
|
properties,
|
|
23
23
|
});
|
|
24
|
-
const created = await this.cognito.createUserPoolClient({
|
|
25
|
-
input: clientProperties.createUserPoolClientInput(),
|
|
26
|
-
});
|
|
24
|
+
const created = await this.cognito.createUserPoolClient({ input: clientProperties.createUserPoolClientInput() }, options);
|
|
27
25
|
const clientId = created.UserPoolClient?.ClientId;
|
|
28
26
|
assertDefined(clientId, `sim Cognito app client id after CloudFormation creation for ${resource.logicalId}`);
|
|
29
27
|
const client = this.cognito
|
|
@@ -2,6 +2,7 @@ import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-re
|
|
|
2
2
|
import type { SimCfnTemplateValueRecord } from "../../../cloudformation/template/value/sim-cfn-template-value.js";
|
|
3
3
|
import type { SimCognitoIdentityProvider } from "../../sim-cognito-identity-provider.js";
|
|
4
4
|
import type { SimCognitoUserPoolDomain } from "../../user-pool/domain/sim-cognito-user-pool-domain.js";
|
|
5
|
+
import type { SimCfnResourceCallerOptions } from "../../../cloudformation/resource/caller/sim-cfn-resource-caller-options.js";
|
|
5
6
|
interface SimCfnCognitoDomainCreatorProperties {
|
|
6
7
|
readonly cognito: SimCognitoIdentityProvider;
|
|
7
8
|
}
|
|
@@ -20,6 +21,6 @@ export declare class SimCfnCognitoDomainCreator {
|
|
|
20
21
|
/**
|
|
21
22
|
* Create a domain from an AWS::Cognito::UserPoolDomain Resource.
|
|
22
23
|
*/
|
|
23
|
-
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord): Promise<SimCognitoUserPoolDomain>;
|
|
24
|
+
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord, options?: SimCfnResourceCallerOptions): Promise<SimCognitoUserPoolDomain>;
|
|
24
25
|
}
|
|
25
26
|
export {};
|
|
@@ -17,14 +17,12 @@ export class SimCfnCognitoDomainCreator {
|
|
|
17
17
|
/**
|
|
18
18
|
* Create a domain from an AWS::Cognito::UserPoolDomain Resource.
|
|
19
19
|
*/
|
|
20
|
-
async create(resource, properties) {
|
|
20
|
+
async create(resource, properties, options) {
|
|
21
21
|
const domainProperties = new SimCfnCognitoDomainProperties({
|
|
22
22
|
resource,
|
|
23
23
|
properties,
|
|
24
24
|
});
|
|
25
|
-
await this.cognito.createUserPoolDomain({
|
|
26
|
-
input: domainProperties.createUserPoolDomainInput(),
|
|
27
|
-
});
|
|
25
|
+
await this.cognito.createUserPoolDomain({ input: domainProperties.createUserPoolDomainInput() }, options);
|
|
28
26
|
const domain = this.cognito.findUserPoolDomainInAnyAccount(domainProperties.domain());
|
|
29
27
|
assertDefined(domain, `sim Cognito domain ${domainProperties.domain()} after CloudFormation ` +
|
|
30
28
|
`creation`);
|
|
@@ -2,6 +2,7 @@ import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-re
|
|
|
2
2
|
import type { SimCfnTemplateValueRecord } from "../../../cloudformation/template/value/sim-cfn-template-value.js";
|
|
3
3
|
import type { SimCognitoIdentityProvider } from "../../sim-cognito-identity-provider.js";
|
|
4
4
|
import type { SimCognitoGroup } from "../../user-pool/group/sim-cognito-group.js";
|
|
5
|
+
import type { SimCfnResourceCallerOptions } from "../../../cloudformation/resource/caller/sim-cfn-resource-caller-options.js";
|
|
5
6
|
interface SimCfnCognitoGroupCreatorProperties {
|
|
6
7
|
readonly cognito: SimCognitoIdentityProvider;
|
|
7
8
|
}
|
|
@@ -18,6 +19,6 @@ export declare class SimCfnCognitoGroupCreator {
|
|
|
18
19
|
/**
|
|
19
20
|
* Create a group from an AWS::Cognito::UserPoolGroup Resource.
|
|
20
21
|
*/
|
|
21
|
-
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord): Promise<SimCognitoGroup>;
|
|
22
|
+
create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord, options?: SimCfnResourceCallerOptions): Promise<SimCognitoGroup>;
|
|
22
23
|
}
|
|
23
24
|
export {};
|
|
@@ -15,15 +15,13 @@ export class SimCfnCognitoGroupCreator {
|
|
|
15
15
|
/**
|
|
16
16
|
* Create a group from an AWS::Cognito::UserPoolGroup Resource.
|
|
17
17
|
*/
|
|
18
|
-
async create(resource, properties) {
|
|
18
|
+
async create(resource, properties, options) {
|
|
19
19
|
const groupProperties = new SimCfnCognitoGroupProperties({
|
|
20
20
|
resource,
|
|
21
21
|
properties,
|
|
22
22
|
});
|
|
23
23
|
const groupName = groupProperties.groupName();
|
|
24
|
-
await this.cognito.createGroup({
|
|
25
|
-
input: groupProperties.createGroupInput(),
|
|
26
|
-
});
|
|
24
|
+
await this.cognito.createGroup({ input: groupProperties.createGroupInput() }, options);
|
|
27
25
|
const group = this.cognito
|
|
28
26
|
.userPool(groupProperties.userPoolId())
|
|
29
27
|
.findGroup(groupName);
|