aws-cdk-lib 2.51.0 → 2.51.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/.jsii.gz +0 -0
- package/alexa-ask/lib/ask.generated.js +1 -1
- package/assertions/lib/annotations.js +1 -1
- package/assertions/lib/capture.js +1 -1
- package/assertions/lib/match.js +1 -1
- package/assertions/lib/matcher.js +1 -1
- package/assertions/lib/template.js +1 -1
- package/assets/lib/staging.js +1 -1
- package/aws-accessanalyzer/lib/accessanalyzer.generated.js +1 -1
- package/aws-acmpca/lib/acmpca.generated.js +1 -1
- package/aws-acmpca/lib/certificate-authority.js +1 -1
- package/aws-amazonmq/lib/amazonmq.generated.js +1 -1
- package/aws-amplify/lib/amplify.generated.js +1 -1
- package/aws-amplifyuibuilder/lib/amplifyuibuilder.generated.js +1 -1
- package/aws-apigateway/lib/access-log.js +1 -1
- package/aws-apigateway/lib/api-definition.js +1 -1
- package/aws-apigateway/lib/api-key.js +1 -1
- package/aws-apigateway/lib/apigateway.generated.js +1 -1
- package/aws-apigateway/lib/apigatewayv2.js +1 -1
- package/aws-apigateway/lib/authorizer.js +1 -1
- package/aws-apigateway/lib/authorizers/cognito.js +1 -1
- package/aws-apigateway/lib/authorizers/identity-source.js +1 -1
- package/aws-apigateway/lib/authorizers/lambda.js +1 -1
- package/aws-apigateway/lib/base-path-mapping.js +1 -1
- package/aws-apigateway/lib/cors.js +1 -1
- package/aws-apigateway/lib/deployment.js +1 -1
- package/aws-apigateway/lib/domain-name.js +1 -1
- package/aws-apigateway/lib/gateway-response.js +1 -1
- package/aws-apigateway/lib/integration.js +1 -1
- package/aws-apigateway/lib/integrations/aws.js +1 -1
- package/aws-apigateway/lib/integrations/http.js +1 -1
- package/aws-apigateway/lib/integrations/lambda.js +1 -1
- package/aws-apigateway/lib/integrations/mock.js +1 -1
- package/aws-apigateway/lib/integrations/stepfunctions.js +1 -1
- package/aws-apigateway/lib/lambda-api.js +1 -1
- package/aws-apigateway/lib/method.js +1 -1
- package/aws-apigateway/lib/model.js +1 -1
- package/aws-apigateway/lib/requestvalidator.js +1 -1
- package/aws-apigateway/lib/resource.js +1 -1
- package/aws-apigateway/lib/restapi.js +1 -1
- package/aws-apigateway/lib/stage.js +1 -1
- package/aws-apigateway/lib/stepfunctions-api.js +1 -1
- package/aws-apigateway/lib/usage-plan.js +1 -1
- package/aws-apigateway/lib/vpc-link.js +1 -1
- package/aws-apigatewayv2/lib/apigatewayv2.generated.js +1 -1
- package/aws-appconfig/lib/appconfig.generated.js +1 -1
- package/aws-appflow/lib/appflow.generated.js +1 -1
- package/aws-appintegrations/lib/appintegrations.generated.js +1 -1
- package/aws-applicationautoscaling/lib/applicationautoscaling.generated.js +1 -1
- package/aws-applicationautoscaling/lib/base-scalable-attribute.js +1 -1
- package/aws-applicationautoscaling/lib/scalable-target.js +1 -1
- package/aws-applicationautoscaling/lib/schedule.js +1 -1
- package/aws-applicationautoscaling/lib/step-scaling-action.js +1 -1
- package/aws-applicationautoscaling/lib/step-scaling-policy.js +1 -1
- package/aws-applicationautoscaling/lib/target-tracking-scaling-policy.js +1 -1
- package/aws-applicationinsights/lib/applicationinsights.generated.js +1 -1
- package/aws-appmesh/lib/appmesh.generated.js +1 -1
- package/aws-appmesh/lib/gateway-route-spec.js +1 -1
- package/aws-appmesh/lib/gateway-route.js +1 -1
- package/aws-appmesh/lib/header-match.js +1 -1
- package/aws-appmesh/lib/health-checks.js +1 -1
- package/aws-appmesh/lib/http-route-path-match.js +1 -1
- package/aws-appmesh/lib/mesh.js +1 -1
- package/aws-appmesh/lib/query-parameter-match.js +1 -1
- package/aws-appmesh/lib/route-spec.js +1 -1
- package/aws-appmesh/lib/route.js +1 -1
- package/aws-appmesh/lib/service-discovery.js +1 -1
- package/aws-appmesh/lib/shared-interfaces.js +1 -1
- package/aws-appmesh/lib/tls-certificate.js +1 -1
- package/aws-appmesh/lib/tls-validation.js +1 -1
- package/aws-appmesh/lib/virtual-gateway-listener.js +1 -1
- package/aws-appmesh/lib/virtual-gateway.js +1 -1
- package/aws-appmesh/lib/virtual-node-listener.js +1 -1
- package/aws-appmesh/lib/virtual-node.js +1 -1
- package/aws-appmesh/lib/virtual-router-listener.js +1 -1
- package/aws-appmesh/lib/virtual-router.js +1 -1
- package/aws-appmesh/lib/virtual-service.js +1 -1
- package/aws-apprunner/lib/apprunner.generated.js +1 -1
- package/aws-appstream/lib/appstream.generated.js +1 -1
- package/aws-appsync/lib/appsync.generated.js +1 -1
- package/aws-aps/lib/aps.generated.js +1 -1
- package/aws-athena/lib/athena.generated.js +1 -1
- package/aws-auditmanager/lib/auditmanager.generated.js +1 -1
- package/aws-autoscaling/lib/aspects/require-imdsv2-aspect.js +1 -1
- package/aws-autoscaling/lib/auto-scaling-group.js +1 -1
- package/aws-autoscaling/lib/autoscaling.generated.js +1 -1
- package/aws-autoscaling/lib/lifecycle-hook.js +1 -1
- package/aws-autoscaling/lib/schedule.js +1 -1
- package/aws-autoscaling/lib/scheduled-action.js +1 -1
- package/aws-autoscaling/lib/step-scaling-action.js +1 -1
- package/aws-autoscaling/lib/step-scaling-policy.js +1 -1
- package/aws-autoscaling/lib/target-tracking-scaling-policy.js +1 -1
- package/aws-autoscaling/lib/volume.js +1 -1
- package/aws-autoscaling/lib/warm-pool.js +1 -1
- package/aws-autoscaling-hooktargets/lib/lambda-hook.js +1 -1
- package/aws-autoscaling-hooktargets/lib/queue-hook.js +1 -1
- package/aws-autoscaling-hooktargets/lib/topic-hook.js +1 -1
- package/aws-autoscalingplans/lib/autoscalingplans.generated.js +1 -1
- package/aws-backup/lib/backup.generated.js +1 -1
- package/aws-backup/lib/plan.js +1 -1
- package/aws-backup/lib/resource.js +1 -1
- package/aws-backup/lib/rule.js +1 -1
- package/aws-backup/lib/selection.js +1 -1
- package/aws-backup/lib/vault.js +1 -1
- package/aws-batch/lib/batch.generated.js +1 -1
- package/aws-billingconductor/lib/billingconductor.generated.js +1 -1
- package/aws-budgets/lib/budgets.generated.js +1 -1
- package/aws-cassandra/lib/cassandra.generated.js +1 -1
- package/aws-ce/lib/ce.generated.js +1 -1
- package/aws-certificatemanager/lib/certificate.js +1 -1
- package/aws-certificatemanager/lib/certificatemanager.generated.js +1 -1
- package/aws-certificatemanager/lib/dns-validated-certificate.js +1 -1
- package/aws-certificatemanager/lib/private-certificate.js +1 -1
- package/aws-chatbot/lib/chatbot.generated.js +1 -1
- package/aws-chatbot/lib/slack-channel-configuration.js +1 -1
- package/aws-cloud9/lib/cloud9.generated.js +1 -1
- package/aws-cloudformation/lib/cloudformation.generated.js +1 -1
- package/aws-cloudformation/lib/custom-resource.js +1 -1
- package/aws-cloudformation/lib/nested-stack.js +1 -1
- package/aws-cloudfront/lib/cache-policy.js +1 -1
- package/aws-cloudfront/lib/cloudfront.generated.js +1 -1
- package/aws-cloudfront/lib/distribution.js +1 -1
- package/aws-cloudfront/lib/experimental/edge-function.js +1 -1
- package/aws-cloudfront/lib/function.js +1 -1
- package/aws-cloudfront/lib/geo-restriction.js +1 -1
- package/aws-cloudfront/lib/key-group.js +1 -1
- package/aws-cloudfront/lib/origin-access-identity.js +1 -1
- package/aws-cloudfront/lib/origin-request-policy.js +1 -1
- package/aws-cloudfront/lib/origin.js +1 -1
- package/aws-cloudfront/lib/public-key.js +1 -1
- package/aws-cloudfront/lib/response-headers-policy.js +1 -1
- package/aws-cloudfront/lib/web-distribution.js +2 -2
- package/aws-cloudfront-origins/lib/http-origin.js +1 -1
- package/aws-cloudfront-origins/lib/load-balancer-origin.js +1 -1
- package/aws-cloudfront-origins/lib/origin-group.js +1 -1
- package/aws-cloudfront-origins/lib/rest-api-origin.js +1 -1
- package/aws-cloudfront-origins/lib/s3-origin.js +1 -1
- package/aws-cloudtrail/lib/cloudtrail.generated.js +1 -1
- package/aws-cloudtrail/lib/cloudtrail.js +1 -1
- package/aws-cloudwatch/lib/alarm-base.js +1 -1
- package/aws-cloudwatch/lib/alarm-rule.js +1 -1
- package/aws-cloudwatch/lib/alarm-status-widget.js +1 -1
- package/aws-cloudwatch/lib/alarm.js +1 -1
- package/aws-cloudwatch/lib/cloudwatch.generated.js +1 -1
- package/aws-cloudwatch/lib/composite-alarm.js +1 -1
- package/aws-cloudwatch/lib/dashboard.js +1 -1
- package/aws-cloudwatch/lib/graph.js +1 -1
- package/aws-cloudwatch/lib/layout.js +1 -1
- package/aws-cloudwatch/lib/log-query.js +1 -1
- package/aws-cloudwatch/lib/metric.js +1 -1
- package/aws-cloudwatch/lib/text.js +1 -1
- package/aws-cloudwatch/lib/widget.js +1 -1
- package/aws-cloudwatch-actions/lib/appscaling.js +1 -1
- package/aws-cloudwatch-actions/lib/autoscaling.js +1 -1
- package/aws-cloudwatch-actions/lib/ec2.js +1 -1
- package/aws-cloudwatch-actions/lib/sns.js +1 -1
- package/aws-cloudwatch-actions/lib/ssm.js +1 -1
- package/aws-codeartifact/lib/codeartifact.generated.js +1 -1
- package/aws-codebuild/lib/artifacts.js +1 -1
- package/aws-codebuild/lib/build-spec.js +1 -1
- package/aws-codebuild/lib/cache.js +1 -1
- package/aws-codebuild/lib/codebuild.generated.js +1 -1
- package/aws-codebuild/lib/events.js +1 -1
- package/aws-codebuild/lib/file-location.js +1 -1
- package/aws-codebuild/lib/linux-arm-build-image.js +1 -1
- package/aws-codebuild/lib/linux-gpu-build-image.js +1 -1
- package/aws-codebuild/lib/pipeline-project.js +1 -1
- package/aws-codebuild/lib/project.js +1 -1
- package/aws-codebuild/lib/report-group.js +1 -1
- package/aws-codebuild/lib/source-credentials.js +1 -1
- package/aws-codebuild/lib/source.js +1 -1
- package/aws-codebuild/lib/untrusted-code-boundary-policy.js +1 -1
- package/aws-codecommit/lib/code.js +1 -1
- package/aws-codecommit/lib/codecommit.generated.js +1 -1
- package/aws-codecommit/lib/events.js +1 -1
- package/aws-codecommit/lib/repository.js +1 -1
- package/aws-codedeploy/lib/base-deployment-config.js +1 -1
- package/aws-codedeploy/lib/codedeploy.generated.js +1 -1
- package/aws-codedeploy/lib/ecs/application.js +1 -1
- package/aws-codedeploy/lib/ecs/deployment-config.js +1 -1
- package/aws-codedeploy/lib/ecs/deployment-group.js +1 -1
- package/aws-codedeploy/lib/host-health-config.js +1 -1
- package/aws-codedeploy/lib/lambda/application.js +1 -1
- package/aws-codedeploy/lib/lambda/custom-deployment-config.js +1 -1
- package/aws-codedeploy/lib/lambda/deployment-config.js +1 -1
- package/aws-codedeploy/lib/lambda/deployment-group.js +1 -1
- package/aws-codedeploy/lib/server/application.js +1 -1
- package/aws-codedeploy/lib/server/deployment-config.js +1 -1
- package/aws-codedeploy/lib/server/deployment-group.js +1 -1
- package/aws-codedeploy/lib/server/load-balancer.js +1 -1
- package/aws-codedeploy/lib/traffic-routing-config.js +1 -1
- package/aws-codeguruprofiler/lib/codeguruprofiler.generated.js +1 -1
- package/aws-codeguruprofiler/lib/profiling-group.js +1 -1
- package/aws-codegurureviewer/lib/codegurureviewer.generated.js +1 -1
- package/aws-codepipeline/lib/action.js +1 -1
- package/aws-codepipeline/lib/artifact.js +1 -1
- package/aws-codepipeline/lib/codepipeline.generated.js +1 -1
- package/aws-codepipeline/lib/custom-action-registration.js +1 -1
- package/aws-codepipeline/lib/pipeline.js +1 -1
- package/aws-codepipeline-actions/lib/action.js +1 -1
- package/aws-codepipeline-actions/lib/alexa-ask/deploy-action.js +1 -1
- package/aws-codepipeline-actions/lib/bitbucket/source-action.js +1 -1
- package/aws-codepipeline-actions/lib/cloudformation/pipeline-actions.js +1 -1
- package/aws-codepipeline-actions/lib/cloudformation/stackinstances-action.js +1 -1
- package/aws-codepipeline-actions/lib/cloudformation/stackset-action.js +1 -1
- package/aws-codepipeline-actions/lib/cloudformation/stackset-types.js +1 -1
- package/aws-codepipeline-actions/lib/codebuild/build-action.js +1 -1
- package/aws-codepipeline-actions/lib/codecommit/source-action.js +1 -1
- package/aws-codepipeline-actions/lib/codedeploy/ecs-deploy-action.js +1 -1
- package/aws-codepipeline-actions/lib/codedeploy/server-deploy-action.js +1 -1
- package/aws-codepipeline-actions/lib/codestar-connections/source-action.js +1 -1
- package/aws-codepipeline-actions/lib/ecr/source-action.js +1 -1
- package/aws-codepipeline-actions/lib/ecs/deploy-action.js +1 -1
- package/aws-codepipeline-actions/lib/elastic-beanstalk/deploy-action.js +1 -1
- package/aws-codepipeline-actions/lib/github/source-action.js +1 -1
- package/aws-codepipeline-actions/lib/jenkins/jenkins-action.js +1 -1
- package/aws-codepipeline-actions/lib/jenkins/jenkins-provider.js +1 -1
- package/aws-codepipeline-actions/lib/lambda/invoke-action.js +1 -1
- package/aws-codepipeline-actions/lib/manual-approval-action.js +1 -1
- package/aws-codepipeline-actions/lib/s3/deploy-action.js +1 -1
- package/aws-codepipeline-actions/lib/s3/source-action.js +1 -1
- package/aws-codepipeline-actions/lib/servicecatalog/deploy-action-beta1.js +1 -1
- package/aws-codepipeline-actions/lib/stepfunctions/invoke-action.js +1 -1
- package/aws-codestar/lib/codestar.generated.js +1 -1
- package/aws-codestarconnections/lib/codestarconnections.generated.js +1 -1
- package/aws-codestarnotifications/lib/codestarnotifications.generated.js +1 -1
- package/aws-codestarnotifications/lib/notification-rule.js +1 -1
- package/aws-cognito/lib/cognito.generated.js +1 -1
- package/aws-cognito/lib/user-pool-attr.js +1 -1
- package/aws-cognito/lib/user-pool-client.js +1 -1
- package/aws-cognito/lib/user-pool-domain.js +1 -1
- package/aws-cognito/lib/user-pool-email.js +1 -1
- package/aws-cognito/lib/user-pool-idp.js +1 -1
- package/aws-cognito/lib/user-pool-idps/amazon.js +1 -1
- package/aws-cognito/lib/user-pool-idps/apple.js +1 -1
- package/aws-cognito/lib/user-pool-idps/base.js +1 -1
- package/aws-cognito/lib/user-pool-idps/facebook.js +1 -1
- package/aws-cognito/lib/user-pool-idps/google.js +1 -1
- package/aws-cognito/lib/user-pool-idps/oidc.js +1 -1
- package/aws-cognito/lib/user-pool-idps/saml.js +1 -1
- package/aws-cognito/lib/user-pool-resource-server.js +1 -1
- package/aws-cognito/lib/user-pool.js +1 -1
- package/aws-config/lib/config.generated.js +1 -1
- package/aws-config/lib/managed-rules.js +1 -1
- package/aws-config/lib/rule.js +1 -1
- package/aws-connect/lib/connect.generated.js +1 -1
- package/aws-connectcampaigns/lib/connectcampaigns.generated.js +1 -1
- package/aws-controltower/lib/controltower.generated.js +1 -1
- package/aws-cur/lib/cur.generated.js +1 -1
- package/aws-customerprofiles/lib/customerprofiles.generated.js +1 -1
- package/aws-databrew/lib/databrew.generated.js +1 -1
- package/aws-datapipeline/lib/datapipeline.generated.js +1 -1
- package/aws-datasync/lib/datasync.generated.js +1 -1
- package/aws-dax/lib/dax.generated.js +1 -1
- package/aws-detective/lib/detective.generated.js +1 -1
- package/aws-devopsguru/lib/devopsguru.generated.js +1 -1
- package/aws-directoryservice/lib/directoryservice.generated.js +1 -1
- package/aws-dlm/lib/dlm.generated.js +1 -1
- package/aws-dms/lib/dms.generated.js +1 -1
- package/aws-docdb/lib/cluster.js +1 -1
- package/aws-docdb/lib/database-secret.js +1 -1
- package/aws-docdb/lib/docdb.generated.js +1 -1
- package/aws-docdb/lib/endpoint.js +1 -1
- package/aws-docdb/lib/instance.js +1 -1
- package/aws-docdb/lib/parameter-group.js +1 -1
- package/aws-dynamodb/lib/dynamodb.generated.js +1 -1
- package/aws-dynamodb/lib/table.js +1 -1
- package/aws-ec2/lib/aspects/require-imdsv2-aspect.js +1 -1
- package/aws-ec2/lib/bastion-host.js +1 -1
- package/aws-ec2/lib/cfn-init-elements.js +1 -1
- package/aws-ec2/lib/cfn-init.js +1 -1
- package/aws-ec2/lib/client-vpn-authorization-rule.js +1 -1
- package/aws-ec2/lib/client-vpn-endpoint.js +1 -1
- package/aws-ec2/lib/client-vpn-route.js +1 -1
- package/aws-ec2/lib/connections.js +1 -1
- package/aws-ec2/lib/ec2.generated.js +1 -1
- package/aws-ec2/lib/instance-types.js +1 -1
- package/aws-ec2/lib/instance.js +1 -1
- package/aws-ec2/lib/ip-addresses.js +1 -1
- package/aws-ec2/lib/launch-template.js +1 -1
- package/aws-ec2/lib/machine-image.js +1 -1
- package/aws-ec2/lib/nat.js +1 -1
- package/aws-ec2/lib/network-acl-types.js +1 -1
- package/aws-ec2/lib/network-acl.js +1 -1
- package/aws-ec2/lib/peer.js +1 -1
- package/aws-ec2/lib/port.js +1 -1
- package/aws-ec2/lib/security-group.js +1 -1
- package/aws-ec2/lib/subnet.js +1 -1
- package/aws-ec2/lib/user-data.js +3 -3
- package/aws-ec2/lib/volume.js +1 -1
- package/aws-ec2/lib/vpc-endpoint-service.js +1 -1
- package/aws-ec2/lib/vpc-endpoint.js +1 -1
- package/aws-ec2/lib/vpc-flow-logs.js +1 -1
- package/aws-ec2/lib/vpc.js +1 -1
- package/aws-ec2/lib/vpn.js +1 -1
- package/aws-ecr/lib/auth-token.js +1 -1
- package/aws-ecr/lib/ecr.generated.js +1 -1
- package/aws-ecr/lib/repository.js +1 -1
- package/aws-ecr-assets/lib/image-asset.js +2 -2
- package/aws-ecr-assets/lib/tarball-asset.js +1 -1
- package/aws-ecs/lib/amis.js +1 -1
- package/aws-ecs/lib/base/base-service.js +1 -1
- package/aws-ecs/lib/base/scalable-task-count.js +1 -1
- package/aws-ecs/lib/base/task-definition.js +1 -1
- package/aws-ecs/lib/cluster.js +1 -1
- package/aws-ecs/lib/container-definition.js +1 -1
- package/aws-ecs/lib/container-image.js +1 -1
- package/aws-ecs/lib/ec2/ec2-service.js +1 -1
- package/aws-ecs/lib/ec2/ec2-task-definition.js +1 -1
- package/aws-ecs/lib/ecs.generated.js +1 -1
- package/aws-ecs/lib/environment-file.js +1 -1
- package/aws-ecs/lib/external/external-service.js +1 -1
- package/aws-ecs/lib/external/external-task-definition.js +1 -1
- package/aws-ecs/lib/fargate/fargate-service.js +1 -1
- package/aws-ecs/lib/fargate/fargate-task-definition.js +1 -1
- package/aws-ecs/lib/firelens-log-router.js +1 -1
- package/aws-ecs/lib/images/asset-image.js +1 -1
- package/aws-ecs/lib/images/ecr.js +1 -1
- package/aws-ecs/lib/images/repository.js +1 -1
- package/aws-ecs/lib/images/tag-parameter-container-image.js +1 -1
- package/aws-ecs/lib/linux-parameters.js +1 -1
- package/aws-ecs/lib/log-drivers/aws-log-driver.js +1 -1
- package/aws-ecs/lib/log-drivers/firelens-log-driver.js +1 -1
- package/aws-ecs/lib/log-drivers/fluentd-log-driver.js +1 -1
- package/aws-ecs/lib/log-drivers/gelf-log-driver.js +1 -1
- package/aws-ecs/lib/log-drivers/generic-log-driver.js +1 -1
- package/aws-ecs/lib/log-drivers/journald-log-driver.js +1 -1
- package/aws-ecs/lib/log-drivers/json-file-log-driver.js +1 -1
- package/aws-ecs/lib/log-drivers/log-driver.js +1 -1
- package/aws-ecs/lib/log-drivers/log-drivers.js +1 -1
- package/aws-ecs/lib/log-drivers/splunk-log-driver.js +1 -1
- package/aws-ecs/lib/log-drivers/syslog-log-driver.js +1 -1
- package/aws-ecs/lib/placement.js +1 -1
- package/aws-ecs/lib/proxy-configuration/app-mesh-proxy-configuration.js +1 -1
- package/aws-ecs/lib/proxy-configuration/proxy-configuration.js +1 -1
- package/aws-ecs/lib/proxy-configuration/proxy-configurations.js +1 -1
- package/aws-ecs/lib/runtime-platform.js +1 -1
- package/aws-ecs-patterns/lib/base/application-load-balanced-service-base.js +1 -1
- package/aws-ecs-patterns/lib/base/application-multiple-target-groups-service-base.js +1 -1
- package/aws-ecs-patterns/lib/base/network-load-balanced-service-base.js +1 -1
- package/aws-ecs-patterns/lib/base/network-multiple-target-groups-service-base.js +1 -1
- package/aws-ecs-patterns/lib/base/queue-processing-service-base.js +1 -1
- package/aws-ecs-patterns/lib/base/scheduled-task-base.js +1 -1
- package/aws-ecs-patterns/lib/ecs/application-load-balanced-ecs-service.js +1 -1
- package/aws-ecs-patterns/lib/ecs/application-multiple-target-groups-ecs-service.js +1 -1
- package/aws-ecs-patterns/lib/ecs/network-load-balanced-ecs-service.js +1 -1
- package/aws-ecs-patterns/lib/ecs/network-multiple-target-groups-ecs-service.js +1 -1
- package/aws-ecs-patterns/lib/ecs/queue-processing-ecs-service.js +1 -1
- package/aws-ecs-patterns/lib/ecs/scheduled-ecs-task.js +1 -1
- package/aws-ecs-patterns/lib/fargate/application-load-balanced-fargate-service.js +1 -1
- package/aws-ecs-patterns/lib/fargate/application-multiple-target-groups-fargate-service.js +1 -1
- package/aws-ecs-patterns/lib/fargate/network-load-balanced-fargate-service.js +1 -1
- package/aws-ecs-patterns/lib/fargate/network-multiple-target-groups-fargate-service.js +1 -1
- package/aws-ecs-patterns/lib/fargate/queue-processing-fargate-service.js +1 -1
- package/aws-ecs-patterns/lib/fargate/scheduled-fargate-task.js +1 -1
- package/aws-efs/lib/access-point.js +1 -1
- package/aws-efs/lib/efs-file-system.js +1 -1
- package/aws-efs/lib/efs.generated.js +1 -1
- package/aws-eks/lib/alb-controller.js +1 -1
- package/aws-eks/lib/aws-auth.js +1 -1
- package/aws-eks/lib/cluster.js +1 -1
- package/aws-eks/lib/eks.generated.js +1 -1
- package/aws-eks/lib/fargate-cluster.js +1 -1
- package/aws-eks/lib/fargate-profile.js +1 -1
- package/aws-eks/lib/helm-chart.js +1 -1
- package/aws-eks/lib/k8s-manifest.js +1 -1
- package/aws-eks/lib/k8s-object-value.js +1 -1
- package/aws-eks/lib/k8s-patch.js +1 -1
- package/aws-eks/lib/kubectl-provider.js +1 -1
- package/aws-eks/lib/managed-nodegroup.js +1 -1
- package/aws-eks/lib/oidc-provider.js +1 -1
- package/aws-eks/lib/service-account.js +1 -1
- package/aws-elasticache/lib/elasticache.generated.js +1 -1
- package/aws-elasticbeanstalk/lib/elasticbeanstalk.generated.js +1 -1
- package/aws-elasticloadbalancing/lib/elasticloadbalancing.generated.js +1 -1
- package/aws-elasticloadbalancing/lib/load-balancer.js +1 -1
- package/aws-elasticloadbalancingv2/lib/alb/application-listener-action.js +1 -1
- package/aws-elasticloadbalancingv2/lib/alb/application-listener-certificate.js +1 -1
- package/aws-elasticloadbalancingv2/lib/alb/application-listener-rule.js +1 -1
- package/aws-elasticloadbalancingv2/lib/alb/application-listener.js +1 -1
- package/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.js +1 -1
- package/aws-elasticloadbalancingv2/lib/alb/application-target-group.js +1 -1
- package/aws-elasticloadbalancingv2/lib/alb/conditions.js +1 -1
- package/aws-elasticloadbalancingv2/lib/elasticloadbalancingv2.generated.js +1 -1
- package/aws-elasticloadbalancingv2/lib/nlb/network-listener-action.js +1 -1
- package/aws-elasticloadbalancingv2/lib/nlb/network-listener.js +1 -1
- package/aws-elasticloadbalancingv2/lib/nlb/network-load-balancer.js +1 -1
- package/aws-elasticloadbalancingv2/lib/nlb/network-target-group.js +1 -1
- package/aws-elasticloadbalancingv2/lib/shared/base-listener.js +1 -1
- package/aws-elasticloadbalancingv2/lib/shared/base-load-balancer.js +1 -1
- package/aws-elasticloadbalancingv2/lib/shared/base-target-group.js +1 -1
- package/aws-elasticloadbalancingv2/lib/shared/listener-certificate.js +1 -1
- package/aws-elasticloadbalancingv2/lib/shared/load-balancer-targets.js +1 -1
- package/aws-elasticloadbalancingv2-actions/lib/cognito-action.js +1 -1
- package/aws-elasticloadbalancingv2-targets/lib/alb-target.js +1 -1
- package/aws-elasticloadbalancingv2-targets/lib/instance-target.js +1 -1
- package/aws-elasticloadbalancingv2-targets/lib/ip-target.js +1 -1
- package/aws-elasticloadbalancingv2-targets/lib/lambda-target.js +1 -1
- package/aws-elasticsearch/lib/domain.js +1 -1
- package/aws-elasticsearch/lib/elasticsearch.generated.js +1 -1
- package/aws-emr/lib/emr.generated.js +1 -1
- package/aws-emrcontainers/lib/emrcontainers.generated.js +1 -1
- package/aws-emrserverless/lib/emrserverless.generated.js +1 -1
- package/aws-events/lib/api-destination.js +1 -1
- package/aws-events/lib/archive.js +1 -1
- package/aws-events/lib/connection.js +1 -1
- package/aws-events/lib/event-bus.js +1 -1
- package/aws-events/lib/event-pattern.js +1 -1
- package/aws-events/lib/events.generated.js +1 -1
- package/aws-events/lib/input.js +2 -2
- package/aws-events/lib/rule.js +1 -1
- package/aws-events/lib/schedule.js +1 -1
- package/aws-events-targets/lib/api-destination.js +1 -1
- package/aws-events-targets/lib/api-gateway.js +1 -1
- package/aws-events-targets/lib/aws-api.js +1 -1
- package/aws-events-targets/lib/batch.js +1 -1
- package/aws-events-targets/lib/codebuild.js +1 -1
- package/aws-events-targets/lib/codepipeline.js +1 -1
- package/aws-events-targets/lib/ecs-task.js +1 -1
- package/aws-events-targets/lib/event-bus.js +1 -1
- package/aws-events-targets/lib/kinesis-firehose-stream.js +1 -1
- package/aws-events-targets/lib/kinesis-stream.js +1 -1
- package/aws-events-targets/lib/lambda.js +1 -1
- package/aws-events-targets/lib/log-group.js +2 -2
- package/aws-events-targets/lib/sns.js +1 -1
- package/aws-events-targets/lib/sqs.js +1 -1
- package/aws-events-targets/lib/state-machine.js +1 -1
- package/aws-eventschemas/lib/eventschemas.generated.js +1 -1
- package/aws-evidently/lib/evidently.generated.js +1 -1
- package/aws-finspace/lib/finspace.generated.js +1 -1
- package/aws-fis/lib/fis.generated.js +1 -1
- package/aws-fms/lib/fms.generated.js +1 -1
- package/aws-forecast/lib/forecast.generated.js +1 -1
- package/aws-frauddetector/lib/frauddetector.generated.js +1 -1
- package/aws-fsx/lib/file-system.js +1 -1
- package/aws-fsx/lib/fsx.generated.js +1 -1
- package/aws-fsx/lib/lustre-file-system.js +1 -1
- package/aws-fsx/lib/maintenance-time.js +1 -1
- package/aws-gamelift/lib/gamelift.generated.js +1 -1
- package/aws-globalaccelerator/lib/accelerator.js +1 -1
- package/aws-globalaccelerator/lib/endpoint-group.js +1 -1
- package/aws-globalaccelerator/lib/endpoint.js +1 -1
- package/aws-globalaccelerator/lib/globalaccelerator.generated.js +1 -1
- package/aws-globalaccelerator/lib/listener.js +1 -1
- package/aws-globalaccelerator-endpoints/lib/alb.js +1 -1
- package/aws-globalaccelerator-endpoints/lib/eip.js +1 -1
- package/aws-globalaccelerator-endpoints/lib/instance.js +1 -1
- package/aws-globalaccelerator-endpoints/lib/nlb.js +1 -1
- package/aws-glue/lib/glue.generated.js +1 -1
- package/aws-greengrass/lib/greengrass.generated.js +1 -1
- package/aws-greengrassv2/lib/greengrassv2.generated.js +1 -1
- package/aws-groundstation/lib/groundstation.generated.js +1 -1
- package/aws-guardduty/lib/guardduty.generated.js +1 -1
- package/aws-healthlake/lib/healthlake.generated.js +1 -1
- package/aws-iam/lib/access-key.js +1 -1
- package/aws-iam/lib/grant.js +1 -1
- package/aws-iam/lib/group.js +1 -1
- package/aws-iam/lib/iam.generated.js +1 -1
- package/aws-iam/lib/lazy-role.js +1 -1
- package/aws-iam/lib/managed-policy.js +1 -1
- package/aws-iam/lib/oidc-provider.js +1 -1
- package/aws-iam/lib/permissions-boundary.js +1 -1
- package/aws-iam/lib/policy-document.js +1 -1
- package/aws-iam/lib/policy-statement.js +1 -1
- package/aws-iam/lib/policy.js +1 -1
- package/aws-iam/lib/principals.js +1 -1
- package/aws-iam/lib/role.js +1 -1
- package/aws-iam/lib/saml-provider.js +1 -1
- package/aws-iam/lib/unknown-principal.js +1 -1
- package/aws-iam/lib/user.js +1 -1
- package/aws-identitystore/lib/identitystore.generated.js +1 -1
- package/aws-imagebuilder/lib/imagebuilder.generated.js +1 -1
- package/aws-inspector/lib/inspector.generated.js +1 -1
- package/aws-inspectorv2/lib/inspectorv2.generated.js +1 -1
- package/aws-iot/lib/iot.generated.js +1 -1
- package/aws-iot1click/lib/iot1click.generated.js +1 -1
- package/aws-iotanalytics/lib/iotanalytics.generated.js +1 -1
- package/aws-iotcoredeviceadvisor/lib/iotcoredeviceadvisor.generated.js +1 -1
- package/aws-iotevents/lib/iotevents.generated.js +1 -1
- package/aws-iotfleethub/lib/iotfleethub.generated.js +1 -1
- package/aws-iotfleetwise/lib/iotfleetwise.generated.js +1 -1
- package/aws-iotsitewise/lib/iotsitewise.generated.js +1 -1
- package/aws-iotthingsgraph/lib/iotthingsgraph.generated.js +1 -1
- package/aws-iottwinmaker/lib/iottwinmaker.generated.js +1 -1
- package/aws-iotwireless/lib/iotwireless.generated.js +1 -1
- package/aws-ivs/lib/ivs.generated.js +1 -1
- package/aws-kafkaconnect/lib/kafkaconnect.generated.js +1 -1
- package/aws-kendra/lib/kendra.generated.js +1 -1
- package/aws-kinesis/lib/kinesis.generated.js +1 -1
- package/aws-kinesis/lib/stream.js +1 -1
- package/aws-kinesisanalytics/lib/kinesisanalytics.generated.js +1 -1
- package/aws-kinesisanalytics/lib/kinesisanalyticsv2.generated.js +1 -1
- package/aws-kinesisanalyticsv2/lib/kinesisanalyticsv2.generated.js +1 -1
- package/aws-kinesisfirehose/lib/kinesisfirehose.generated.js +1 -1
- package/aws-kinesisvideo/lib/kinesisvideo.generated.js +1 -1
- package/aws-kms/lib/alias.js +1 -1
- package/aws-kms/lib/key.js +1 -1
- package/aws-kms/lib/kms.generated.js +1 -1
- package/aws-kms/lib/via-service-principal.js +1 -1
- package/aws-lakeformation/lib/lakeformation.generated.js +1 -1
- package/aws-lambda/lib/alias.js +1 -1
- package/aws-lambda/lib/architecture.js +1 -1
- package/aws-lambda/lib/code-signing-config.js +1 -1
- package/aws-lambda/lib/code.js +1 -1
- package/aws-lambda/lib/event-invoke-config.js +1 -1
- package/aws-lambda/lib/event-source-filter.js +1 -1
- package/aws-lambda/lib/event-source-mapping.js +1 -1
- package/aws-lambda/lib/filesystem.js +1 -1
- package/aws-lambda/lib/function-base.js +1 -1
- package/aws-lambda/lib/function-url.js +1 -1
- package/aws-lambda/lib/function.js +1 -1
- package/aws-lambda/lib/handler.js +1 -1
- package/aws-lambda/lib/image-function.js +1 -1
- package/aws-lambda/lib/lambda-insights.js +1 -1
- package/aws-lambda/lib/lambda-version.js +1 -1
- package/aws-lambda/lib/lambda.generated.js +1 -1
- package/aws-lambda/lib/layers.js +1 -1
- package/aws-lambda/lib/log-retention.js +1 -1
- package/aws-lambda/lib/runtime.js +1 -1
- package/aws-lambda/lib/singleton-lambda.js +1 -1
- package/aws-lambda-destinations/lib/event-bridge.js +1 -1
- package/aws-lambda-destinations/lib/lambda.js +1 -1
- package/aws-lambda-destinations/lib/sns.js +1 -1
- package/aws-lambda-destinations/lib/sqs.js +1 -1
- package/aws-lambda-event-sources/lib/api.js +1 -1
- package/aws-lambda-event-sources/lib/dynamodb.js +1 -1
- package/aws-lambda-event-sources/lib/kafka.js +1 -1
- package/aws-lambda-event-sources/lib/kinesis.js +1 -1
- package/aws-lambda-event-sources/lib/s3.js +1 -1
- package/aws-lambda-event-sources/lib/sns-dlq.js +1 -1
- package/aws-lambda-event-sources/lib/sns.js +1 -1
- package/aws-lambda-event-sources/lib/sqs-dlq.js +1 -1
- package/aws-lambda-event-sources/lib/sqs.js +1 -1
- package/aws-lambda-event-sources/lib/stream.js +1 -1
- package/aws-lambda-nodejs/lib/function.js +1 -1
- package/aws-lex/lib/lex.generated.js +1 -1
- package/aws-licensemanager/lib/licensemanager.generated.js +1 -1
- package/aws-lightsail/lib/lightsail.generated.js +1 -1
- package/aws-location/lib/location.generated.js +1 -1
- package/aws-logs/lib/cross-account-destination.js +1 -1
- package/aws-logs/lib/log-group.js +1 -1
- package/aws-logs/lib/log-retention.js +1 -1
- package/aws-logs/lib/log-stream.js +1 -1
- package/aws-logs/lib/logs.generated.js +1 -1
- package/aws-logs/lib/metric-filter.js +1 -1
- package/aws-logs/lib/pattern.js +1 -1
- package/aws-logs/lib/policy.js +1 -1
- package/aws-logs/lib/query-definition.js +1 -1
- package/aws-logs/lib/subscription-filter.js +1 -1
- package/aws-logs-destinations/lib/kinesis.js +1 -1
- package/aws-logs-destinations/lib/lambda.js +1 -1
- package/aws-lookoutequipment/lib/lookoutequipment.generated.js +1 -1
- package/aws-lookoutmetrics/lib/lookoutmetrics.generated.js +1 -1
- package/aws-lookoutvision/lib/lookoutvision.generated.js +1 -1
- package/aws-m2/lib/m2.generated.js +1 -1
- package/aws-macie/lib/macie.generated.js +1 -1
- package/aws-managedblockchain/lib/managedblockchain.generated.js +1 -1
- package/aws-mediaconnect/lib/mediaconnect.generated.js +1 -1
- package/aws-mediaconvert/lib/mediaconvert.generated.js +1 -1
- package/aws-medialive/lib/medialive.generated.js +1 -1
- package/aws-mediapackage/lib/mediapackage.generated.js +1 -1
- package/aws-mediastore/lib/mediastore.generated.js +1 -1
- package/aws-mediatailor/lib/mediatailor.generated.js +1 -1
- package/aws-memorydb/lib/memorydb.generated.js +1 -1
- package/aws-msk/lib/msk.generated.js +1 -1
- package/aws-mwaa/lib/mwaa.generated.js +1 -1
- package/aws-neptune/lib/neptune.generated.js +1 -1
- package/aws-networkfirewall/lib/networkfirewall.generated.js +1 -1
- package/aws-networkmanager/lib/networkmanager.generated.js +1 -1
- package/aws-nimblestudio/lib/nimblestudio.generated.js +1 -1
- package/aws-opensearchservice/lib/domain.js +1 -1
- package/aws-opensearchservice/lib/opensearchservice.generated.js +1 -1
- package/aws-opensearchservice/lib/version.js +1 -1
- package/aws-opsworks/lib/opsworks.generated.js +1 -1
- package/aws-opsworkscm/lib/opsworkscm.generated.js +1 -1
- package/aws-organizations/lib/organizations.generated.js +1 -1
- package/aws-panorama/lib/panorama.generated.js +1 -1
- package/aws-personalize/lib/personalize.generated.js +1 -1
- package/aws-pinpoint/lib/pinpoint.generated.js +1 -1
- package/aws-pinpointemail/lib/pinpointemail.generated.js +1 -1
- package/aws-qldb/lib/qldb.generated.js +1 -1
- package/aws-quicksight/lib/quicksight.generated.js +1 -1
- package/aws-ram/lib/ram.generated.js +1 -1
- package/aws-rds/lib/cluster-engine.js +1 -1
- package/aws-rds/lib/cluster.js +1 -1
- package/aws-rds/lib/database-secret.js +1 -1
- package/aws-rds/lib/endpoint.js +1 -1
- package/aws-rds/lib/instance-engine.js +1 -1
- package/aws-rds/lib/instance.js +1 -1
- package/aws-rds/lib/option-group.js +1 -1
- package/aws-rds/lib/parameter-group.js +1 -1
- package/aws-rds/lib/props.js +1 -1
- package/aws-rds/lib/proxy.js +1 -1
- package/aws-rds/lib/rds.generated.js +1 -1
- package/aws-rds/lib/serverless-cluster.js +1 -1
- package/aws-rds/lib/subnet-group.js +1 -1
- package/aws-redshift/lib/redshift.generated.js +1 -1
- package/aws-redshiftserverless/lib/redshiftserverless.generated.js +1 -1
- package/aws-refactorspaces/lib/refactorspaces.generated.js +1 -1
- package/aws-rekognition/lib/rekognition.generated.js +1 -1
- package/aws-resiliencehub/lib/resiliencehub.generated.js +1 -1
- package/aws-resourceexplorer2/lib/resourceexplorer2.generated.js +1 -1
- package/aws-resourcegroups/lib/resourcegroups.generated.js +1 -1
- package/aws-robomaker/lib/robomaker.generated.js +1 -1
- package/aws-rolesanywhere/lib/rolesanywhere.generated.js +1 -1
- package/aws-route53/lib/hosted-zone.js +1 -1
- package/aws-route53/lib/record-set.js +1 -1
- package/aws-route53/lib/route53.generated.js +1 -1
- package/aws-route53/lib/vpc-endpoint-service-domain-name.js +1 -1
- package/aws-route53-patterns/lib/website-redirect.js +1 -1
- package/aws-route53-targets/lib/api-gateway-domain-name.js +1 -1
- package/aws-route53-targets/lib/api-gatewayv2-domain-name.js +1 -1
- package/aws-route53-targets/lib/bucket-website-target.js +1 -1
- package/aws-route53-targets/lib/classic-load-balancer-target.js +1 -1
- package/aws-route53-targets/lib/cloudfront-target.js +1 -1
- package/aws-route53-targets/lib/elastic-beanstalk-environment-target.js +1 -1
- package/aws-route53-targets/lib/global-accelerator-target.js +1 -1
- package/aws-route53-targets/lib/interface-vpc-endpoint-target.js +1 -1
- package/aws-route53-targets/lib/load-balancer-target.js +1 -1
- package/aws-route53-targets/lib/route53-record.js +1 -1
- package/aws-route53-targets/lib/userpool-domain.js +1 -1
- package/aws-route53recoverycontrol/lib/route53recoverycontrol.generated.js +1 -1
- package/aws-route53recoveryreadiness/lib/route53recoveryreadiness.generated.js +1 -1
- package/aws-route53resolver/lib/route53resolver.generated.js +1 -1
- package/aws-rum/lib/rum.generated.js +1 -1
- package/aws-s3/lib/bucket-policy.js +1 -1
- package/aws-s3/lib/bucket.js +1 -1
- package/aws-s3/lib/rule.js +1 -1
- package/aws-s3/lib/s3.generated.js +1 -1
- package/aws-s3-assets/lib/asset.js +1 -1
- package/aws-s3-deployment/lib/bucket-deployment.js +1 -1
- package/aws-s3-deployment/lib/source.js +1 -1
- package/aws-s3-notifications/lib/lambda.js +1 -1
- package/aws-s3-notifications/lib/sns.js +1 -1
- package/aws-s3-notifications/lib/sqs.js +1 -1
- package/aws-s3objectlambda/lib/s3objectlambda.generated.js +1 -1
- package/aws-s3outposts/lib/s3outposts.generated.js +1 -1
- package/aws-sagemaker/lib/sagemaker.generated.js +1 -1
- package/aws-sam/lib/sam.generated.js +1 -1
- package/aws-scheduler/lib/scheduler.generated.js +1 -1
- package/aws-sdb/lib/sdb.generated.js +1 -1
- package/aws-secretsmanager/lib/policy.js +1 -1
- package/aws-secretsmanager/lib/rotation-schedule.js +1 -1
- package/aws-secretsmanager/lib/secret-rotation.js +1 -1
- package/aws-secretsmanager/lib/secret.js +1 -1
- package/aws-secretsmanager/lib/secretsmanager.generated.js +1 -1
- package/aws-securityhub/lib/securityhub.generated.js +1 -1
- package/aws-servicecatalog/lib/cloudformation-template.js +1 -1
- package/aws-servicecatalog/lib/portfolio.js +1 -1
- package/aws-servicecatalog/lib/product-stack-history.js +1 -1
- package/aws-servicecatalog/lib/product-stack.js +1 -1
- package/aws-servicecatalog/lib/product.js +1 -1
- package/aws-servicecatalog/lib/servicecatalog.generated.js +1 -1
- package/aws-servicecatalog/lib/tag-options.js +1 -1
- package/aws-servicecatalogappregistry/lib/servicecatalogappregistry.generated.js +1 -1
- package/aws-servicediscovery/lib/alias-target-instance.js +1 -1
- package/aws-servicediscovery/lib/cname-instance.js +1 -1
- package/aws-servicediscovery/lib/http-namespace.js +1 -1
- package/aws-servicediscovery/lib/instance.js +1 -1
- package/aws-servicediscovery/lib/ip-instance.js +1 -1
- package/aws-servicediscovery/lib/non-ip-instance.js +1 -1
- package/aws-servicediscovery/lib/private-dns-namespace.js +1 -1
- package/aws-servicediscovery/lib/public-dns-namespace.js +1 -1
- package/aws-servicediscovery/lib/service.js +1 -1
- package/aws-servicediscovery/lib/servicediscovery.generated.js +1 -1
- package/aws-ses/lib/configuration-set.js +1 -1
- package/aws-ses/lib/dedicated-ip-pool.js +1 -1
- package/aws-ses/lib/email-identity.js +1 -1
- package/aws-ses/lib/receipt-filter.js +1 -1
- package/aws-ses/lib/receipt-rule-set.js +1 -1
- package/aws-ses/lib/receipt-rule.js +1 -1
- package/aws-ses/lib/ses.generated.js +1 -1
- package/aws-ses-actions/lib/add-header.js +1 -1
- package/aws-ses-actions/lib/bounce.js +1 -1
- package/aws-ses-actions/lib/lambda.js +1 -1
- package/aws-ses-actions/lib/s3.js +1 -1
- package/aws-ses-actions/lib/sns.js +1 -1
- package/aws-ses-actions/lib/stop.js +1 -1
- package/aws-signer/lib/signer.generated.js +1 -1
- package/aws-signer/lib/signing-profile.js +1 -1
- package/aws-sns/lib/policy.js +1 -1
- package/aws-sns/lib/sns.generated.js +1 -1
- package/aws-sns/lib/subscription-filter.js +1 -1
- package/aws-sns/lib/subscription.js +1 -1
- package/aws-sns/lib/topic-base.js +1 -1
- package/aws-sns/lib/topic.js +1 -1
- package/aws-sns-subscriptions/lib/email.js +1 -1
- package/aws-sns-subscriptions/lib/lambda.js +1 -1
- package/aws-sns-subscriptions/lib/sms.js +1 -1
- package/aws-sns-subscriptions/lib/sqs.js +1 -1
- package/aws-sns-subscriptions/lib/url.js +1 -1
- package/aws-sqs/lib/policy.js +1 -1
- package/aws-sqs/lib/queue-base.js +1 -1
- package/aws-sqs/lib/queue.js +1 -1
- package/aws-sqs/lib/sqs.generated.js +1 -1
- package/aws-ssm/lib/parameter.js +1 -1
- package/aws-ssm/lib/ssm.generated.js +1 -1
- package/aws-ssmcontacts/lib/ssmcontacts.generated.js +1 -1
- package/aws-ssmincidents/lib/ssmincidents.generated.js +1 -1
- package/aws-sso/lib/sso.generated.js +1 -1
- package/aws-stepfunctions/lib/activity.js +1 -1
- package/aws-stepfunctions/lib/chain.js +1 -1
- package/aws-stepfunctions/lib/condition.js +1 -1
- package/aws-stepfunctions/lib/fields.js +1 -1
- package/aws-stepfunctions/lib/input.js +1 -1
- package/aws-stepfunctions/lib/state-graph.js +1 -1
- package/aws-stepfunctions/lib/state-machine-fragment.js +1 -1
- package/aws-stepfunctions/lib/state-machine.js +1 -1
- package/aws-stepfunctions/lib/state-transition-metrics.js +1 -1
- package/aws-stepfunctions/lib/states/choice.js +1 -1
- package/aws-stepfunctions/lib/states/custom-state.js +1 -1
- package/aws-stepfunctions/lib/states/fail.js +1 -1
- package/aws-stepfunctions/lib/states/map.js +1 -1
- package/aws-stepfunctions/lib/states/parallel.js +1 -1
- package/aws-stepfunctions/lib/states/pass.js +1 -1
- package/aws-stepfunctions/lib/states/state.js +1 -1
- package/aws-stepfunctions/lib/states/succeed.js +1 -1
- package/aws-stepfunctions/lib/states/task-base.js +1 -1
- package/aws-stepfunctions/lib/states/task.js +1 -1
- package/aws-stepfunctions/lib/states/wait.js +1 -1
- package/aws-stepfunctions/lib/stepfunctions.generated.js +1 -1
- package/aws-stepfunctions/lib/types.js +1 -1
- package/aws-stepfunctions-tasks/lib/apigateway/call-http-api.js +1 -1
- package/aws-stepfunctions-tasks/lib/apigateway/call-rest-api.js +1 -1
- package/aws-stepfunctions-tasks/lib/athena/get-query-execution.js +1 -1
- package/aws-stepfunctions-tasks/lib/athena/get-query-results.js +1 -1
- package/aws-stepfunctions-tasks/lib/athena/start-query-execution.js +1 -1
- package/aws-stepfunctions-tasks/lib/athena/stop-query-execution.js +1 -1
- package/aws-stepfunctions-tasks/lib/aws-sdk/call-aws-service.js +1 -1
- package/aws-stepfunctions-tasks/lib/batch/run-batch-job.js +1 -1
- package/aws-stepfunctions-tasks/lib/batch/submit-job.js +1 -1
- package/aws-stepfunctions-tasks/lib/codebuild/start-build.js +1 -1
- package/aws-stepfunctions-tasks/lib/databrew/start-job-run.js +1 -1
- package/aws-stepfunctions-tasks/lib/dynamodb/delete-item.js +1 -1
- package/aws-stepfunctions-tasks/lib/dynamodb/get-item.js +1 -1
- package/aws-stepfunctions-tasks/lib/dynamodb/put-item.js +1 -1
- package/aws-stepfunctions-tasks/lib/dynamodb/shared-types.js +1 -1
- package/aws-stepfunctions-tasks/lib/dynamodb/update-item.js +1 -1
- package/aws-stepfunctions-tasks/lib/ecs/run-ecs-ec2-task.js +1 -1
- package/aws-stepfunctions-tasks/lib/ecs/run-ecs-fargate-task.js +1 -1
- package/aws-stepfunctions-tasks/lib/ecs/run-ecs-task-base.js +1 -1
- package/aws-stepfunctions-tasks/lib/ecs/run-task.js +1 -1
- package/aws-stepfunctions-tasks/lib/eks/call.js +1 -1
- package/aws-stepfunctions-tasks/lib/emr/emr-add-step.js +1 -1
- package/aws-stepfunctions-tasks/lib/emr/emr-cancel-step.js +1 -1
- package/aws-stepfunctions-tasks/lib/emr/emr-create-cluster.js +1 -1
- package/aws-stepfunctions-tasks/lib/emr/emr-modify-instance-fleet-by-name.js +1 -1
- package/aws-stepfunctions-tasks/lib/emr/emr-modify-instance-group-by-name.js +1 -1
- package/aws-stepfunctions-tasks/lib/emr/emr-set-cluster-termination-protection.js +1 -1
- package/aws-stepfunctions-tasks/lib/emr/emr-terminate-cluster.js +1 -1
- package/aws-stepfunctions-tasks/lib/emrcontainers/create-virtual-cluster.js +1 -1
- package/aws-stepfunctions-tasks/lib/emrcontainers/delete-virtual-cluster.js +1 -1
- package/aws-stepfunctions-tasks/lib/emrcontainers/start-job-run.js +1 -1
- package/aws-stepfunctions-tasks/lib/evaluate-expression.js +1 -1
- package/aws-stepfunctions-tasks/lib/eventbridge/put-events.js +1 -1
- package/aws-stepfunctions-tasks/lib/glue/run-glue-job-task.js +1 -1
- package/aws-stepfunctions-tasks/lib/glue/start-job-run.js +1 -1
- package/aws-stepfunctions-tasks/lib/invoke-activity.js +1 -1
- package/aws-stepfunctions-tasks/lib/lambda/invoke-function.js +1 -1
- package/aws-stepfunctions-tasks/lib/lambda/invoke.js +1 -1
- package/aws-stepfunctions-tasks/lib/lambda/run-lambda-task.js +1 -1
- package/aws-stepfunctions-tasks/lib/sagemaker/base-types.js +1 -1
- package/aws-stepfunctions-tasks/lib/sagemaker/create-endpoint-config.js +1 -1
- package/aws-stepfunctions-tasks/lib/sagemaker/create-endpoint.js +1 -1
- package/aws-stepfunctions-tasks/lib/sagemaker/create-model.js +1 -1
- package/aws-stepfunctions-tasks/lib/sagemaker/create-training-job.js +1 -1
- package/aws-stepfunctions-tasks/lib/sagemaker/create-transform-job.js +1 -1
- package/aws-stepfunctions-tasks/lib/sagemaker/update-endpoint.js +1 -1
- package/aws-stepfunctions-tasks/lib/sns/publish-to-topic.js +1 -1
- package/aws-stepfunctions-tasks/lib/sns/publish.js +1 -1
- package/aws-stepfunctions-tasks/lib/sqs/send-message.js +1 -1
- package/aws-stepfunctions-tasks/lib/sqs/send-to-queue.js +1 -1
- package/aws-stepfunctions-tasks/lib/start-execution.js +1 -1
- package/aws-stepfunctions-tasks/lib/stepfunctions/invoke-activity.js +1 -1
- package/aws-stepfunctions-tasks/lib/stepfunctions/start-execution.js +1 -1
- package/aws-supportapp/lib/supportapp.generated.js +1 -1
- package/aws-synthetics/lib/synthetics.generated.js +1 -1
- package/aws-timestream/lib/timestream.generated.js +1 -1
- package/aws-transfer/lib/transfer.generated.js +1 -1
- package/aws-voiceid/lib/voiceid.generated.js +1 -1
- package/aws-waf/lib/waf.generated.js +1 -1
- package/aws-wafregional/lib/wafregional.generated.js +1 -1
- package/aws-wafv2/lib/wafv2.generated.js +1 -1
- package/aws-wisdom/lib/wisdom.generated.js +1 -1
- package/aws-workspaces/lib/workspaces.generated.js +1 -1
- package/aws-xray/lib/xray.generated.js +1 -1
- package/cloud-assembly-schema/lib/manifest.js +1 -1
- package/cloudformation-include/lib/cfn-include.js +1 -1
- package/core/lib/annotations.js +1 -1
- package/core/lib/app.js +1 -1
- package/core/lib/arn.js +1 -1
- package/core/lib/aspect.js +1 -1
- package/core/lib/asset-staging.js +1 -1
- package/core/lib/bundling.js +1 -1
- package/core/lib/cfn-codedeploy-blue-green-hook.js +1 -1
- package/core/lib/cfn-condition.js +1 -1
- package/core/lib/cfn-dynamic-reference.js +1 -1
- package/core/lib/cfn-element.js +1 -1
- package/core/lib/cfn-fn.js +1 -1
- package/core/lib/cfn-hook.js +1 -1
- package/core/lib/cfn-include.js +1 -1
- package/core/lib/cfn-json.js +1 -1
- package/core/lib/cfn-mapping.js +1 -1
- package/core/lib/cfn-output.js +1 -1
- package/core/lib/cfn-parameter.js +1 -1
- package/core/lib/cfn-pseudo.js +1 -1
- package/core/lib/cfn-resource.js +1 -1
- package/core/lib/cfn-rule.js +1 -1
- package/core/lib/cloudformation.generated.js +1 -1
- package/core/lib/context-provider.js +1 -1
- package/core/lib/custom-resource-provider/custom-resource-provider.js +1 -1
- package/core/lib/custom-resource.js +1 -1
- package/core/lib/duration.js +1 -1
- package/core/lib/expiration.js +1 -1
- package/core/lib/feature-flags.js +1 -1
- package/core/lib/fs/ignore.js +1 -1
- package/core/lib/fs/index.js +1 -1
- package/core/lib/lazy.js +1 -1
- package/core/lib/names.js +1 -1
- package/core/lib/nested-stack.js +1 -1
- package/core/lib/physical-name.js +1 -1
- package/core/lib/private/intrinsic.js +1 -1
- package/core/lib/reference.js +1 -1
- package/core/lib/resolvable.js +2 -2
- package/core/lib/resource.js +1 -1
- package/core/lib/runtime.js +2 -2
- package/core/lib/secret-value.js +1 -1
- package/core/lib/size.js +1 -1
- package/core/lib/stack-synthesizers/asset-manifest-builder.js +1 -1
- package/core/lib/stack-synthesizers/bootstrapless-synthesizer.js +1 -1
- package/core/lib/stack-synthesizers/cli-credentials-synthesizer.js +1 -1
- package/core/lib/stack-synthesizers/default-synthesizer.js +1 -1
- package/core/lib/stack-synthesizers/legacy.js +1 -1
- package/core/lib/stack-synthesizers/nested.js +1 -1
- package/core/lib/stack-synthesizers/stack-synthesizer.js +1 -1
- package/core/lib/stack.js +1 -1
- package/core/lib/stage.js +1 -1
- package/core/lib/string-fragments.js +1 -1
- package/core/lib/tag-aspect.js +1 -1
- package/core/lib/tag-manager.js +1 -1
- package/core/lib/token.js +1 -1
- package/core/lib/tree.js +1 -1
- package/custom-resources/lib/aws-custom-resource/aws-custom-resource.js +1 -1
- package/custom-resources/lib/provider-framework/provider.js +1 -1
- package/cx-api/lib/artifacts/asset-manifest-artifact.js +1 -1
- package/cx-api/lib/artifacts/cloudformation-artifact.js +1 -1
- package/cx-api/lib/artifacts/nested-cloud-assembly-artifact.js +1 -1
- package/cx-api/lib/artifacts/tree-cloud-artifact.js +1 -1
- package/cx-api/lib/cloud-artifact.js +1 -1
- package/cx-api/lib/cloud-assembly.js +1 -1
- package/cx-api/lib/environment.js +1 -1
- package/cx-api/lib/placeholders.js +1 -1
- package/lambda-layer-awscli/lib/awscli-layer.js +1 -1
- package/lambda-layer-kubectl/lib/kubectl-layer.js +1 -1
- package/lambda-layer-node-proxy-agent/lib/node-proxy-agent-layer.js +1 -1
- package/package.json +253 -253
- package/pipelines/lib/blueprint/file-set.js +1 -1
- package/pipelines/lib/blueprint/manual-approval.js +1 -1
- package/pipelines/lib/blueprint/shell-step.js +1 -1
- package/pipelines/lib/blueprint/stack-deployment.js +1 -1
- package/pipelines/lib/blueprint/stage-deployment.js +1 -1
- package/pipelines/lib/blueprint/step.js +1 -1
- package/pipelines/lib/blueprint/wave.js +1 -1
- package/pipelines/lib/codepipeline/artifact-map.js +1 -1
- package/pipelines/lib/codepipeline/codebuild-step.js +1 -1
- package/pipelines/lib/codepipeline/codepipeline-source.js +1 -1
- package/pipelines/lib/codepipeline/codepipeline.js +1 -1
- package/pipelines/lib/codepipeline/confirm-permissions-broadening.js +1 -1
- package/pipelines/lib/docker-credentials.js +1 -1
- package/pipelines/lib/legacy/actions/deploy-cdk-stack-action.js +1 -1
- package/pipelines/lib/legacy/actions/publish-assets-action.js +1 -1
- package/pipelines/lib/legacy/actions/update-pipeline-action.js +1 -1
- package/pipelines/lib/legacy/pipeline.js +1 -1
- package/pipelines/lib/legacy/stage.js +1 -1
- package/pipelines/lib/legacy/synths/simple-synth-action.js +1 -1
- package/pipelines/lib/legacy/validation/shell-script-action.js +1 -1
- package/pipelines/lib/main/pipeline-base.js +1 -1
- package/region-info/lib/built-ins.generated.d.ts +1 -1
- package/region-info/lib/default.js +1 -1
- package/region-info/lib/fact.js +1 -1
- package/region-info/lib/region-info.js +1 -1
- package/triggers/lib/trigger-function.js +1 -1
- package/triggers/lib/trigger.js +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var _a,_b,_c,_d,_e,_f;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnWarmPool=exports.CfnScheduledAction=exports.CfnScalingPolicy=exports.CfnLifecycleHook=exports.CfnLaunchConfiguration=exports.CfnAutoScalingGroup=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnAutoScalingGroupPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.validateString)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("availabilityZones",cdk.listValidator(cdk.validateString))(properties.availabilityZones)),errors.collect(cdk.propertyValidator("capacityRebalance",cdk.validateBoolean)(properties.capacityRebalance)),errors.collect(cdk.propertyValidator("context",cdk.validateString)(properties.context)),errors.collect(cdk.propertyValidator("cooldown",cdk.validateString)(properties.cooldown)),errors.collect(cdk.propertyValidator("defaultInstanceWarmup",cdk.validateNumber)(properties.defaultInstanceWarmup)),errors.collect(cdk.propertyValidator("desiredCapacity",cdk.validateString)(properties.desiredCapacity)),errors.collect(cdk.propertyValidator("desiredCapacityType",cdk.validateString)(properties.desiredCapacityType)),errors.collect(cdk.propertyValidator("healthCheckGracePeriod",cdk.validateNumber)(properties.healthCheckGracePeriod)),errors.collect(cdk.propertyValidator("healthCheckType",cdk.validateString)(properties.healthCheckType)),errors.collect(cdk.propertyValidator("instanceId",cdk.validateString)(properties.instanceId)),errors.collect(cdk.propertyValidator("launchConfigurationName",cdk.validateString)(properties.launchConfigurationName)),errors.collect(cdk.propertyValidator("launchTemplate",CfnAutoScalingGroup_LaunchTemplateSpecificationPropertyValidator)(properties.launchTemplate)),errors.collect(cdk.propertyValidator("lifecycleHookSpecificationList",cdk.listValidator(CfnAutoScalingGroup_LifecycleHookSpecificationPropertyValidator))(properties.lifecycleHookSpecificationList)),errors.collect(cdk.propertyValidator("loadBalancerNames",cdk.listValidator(cdk.validateString))(properties.loadBalancerNames)),errors.collect(cdk.propertyValidator("maxInstanceLifetime",cdk.validateNumber)(properties.maxInstanceLifetime)),errors.collect(cdk.propertyValidator("maxSize",cdk.requiredValidator)(properties.maxSize)),errors.collect(cdk.propertyValidator("maxSize",cdk.validateString)(properties.maxSize)),errors.collect(cdk.propertyValidator("metricsCollection",cdk.listValidator(CfnAutoScalingGroup_MetricsCollectionPropertyValidator))(properties.metricsCollection)),errors.collect(cdk.propertyValidator("minSize",cdk.requiredValidator)(properties.minSize)),errors.collect(cdk.propertyValidator("minSize",cdk.validateString)(properties.minSize)),errors.collect(cdk.propertyValidator("mixedInstancesPolicy",CfnAutoScalingGroup_MixedInstancesPolicyPropertyValidator)(properties.mixedInstancesPolicy)),errors.collect(cdk.propertyValidator("newInstancesProtectedFromScaleIn",cdk.validateBoolean)(properties.newInstancesProtectedFromScaleIn)),errors.collect(cdk.propertyValidator("notificationConfigurations",cdk.listValidator(CfnAutoScalingGroup_NotificationConfigurationPropertyValidator))(properties.notificationConfigurations)),errors.collect(cdk.propertyValidator("placementGroup",cdk.validateString)(properties.placementGroup)),errors.collect(cdk.propertyValidator("serviceLinkedRoleArn",cdk.validateString)(properties.serviceLinkedRoleArn)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(CfnAutoScalingGroup_TagPropertyPropertyValidator))(properties.tags)),errors.collect(cdk.propertyValidator("targetGroupArns",cdk.listValidator(cdk.validateString))(properties.targetGroupArns)),errors.collect(cdk.propertyValidator("terminationPolicies",cdk.listValidator(cdk.validateString))(properties.terminationPolicies)),errors.collect(cdk.propertyValidator("vpcZoneIdentifier",cdk.listValidator(cdk.validateString))(properties.vpcZoneIdentifier)),errors.wrap('supplied properties not correct for "CfnAutoScalingGroupProps"')}function cfnAutoScalingGroupPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroupPropsValidator(properties).assertSuccess(),{MaxSize:cdk.stringToCloudFormation(properties.maxSize),MinSize:cdk.stringToCloudFormation(properties.minSize),AutoScalingGroupName:cdk.stringToCloudFormation(properties.autoScalingGroupName),AvailabilityZones:cdk.listMapper(cdk.stringToCloudFormation)(properties.availabilityZones),CapacityRebalance:cdk.booleanToCloudFormation(properties.capacityRebalance),Context:cdk.stringToCloudFormation(properties.context),Cooldown:cdk.stringToCloudFormation(properties.cooldown),DefaultInstanceWarmup:cdk.numberToCloudFormation(properties.defaultInstanceWarmup),DesiredCapacity:cdk.stringToCloudFormation(properties.desiredCapacity),DesiredCapacityType:cdk.stringToCloudFormation(properties.desiredCapacityType),HealthCheckGracePeriod:cdk.numberToCloudFormation(properties.healthCheckGracePeriod),HealthCheckType:cdk.stringToCloudFormation(properties.healthCheckType),InstanceId:cdk.stringToCloudFormation(properties.instanceId),LaunchConfigurationName:cdk.stringToCloudFormation(properties.launchConfigurationName),LaunchTemplate:cfnAutoScalingGroupLaunchTemplateSpecificationPropertyToCloudFormation(properties.launchTemplate),LifecycleHookSpecificationList:cdk.listMapper(cfnAutoScalingGroupLifecycleHookSpecificationPropertyToCloudFormation)(properties.lifecycleHookSpecificationList),LoadBalancerNames:cdk.listMapper(cdk.stringToCloudFormation)(properties.loadBalancerNames),MaxInstanceLifetime:cdk.numberToCloudFormation(properties.maxInstanceLifetime),MetricsCollection:cdk.listMapper(cfnAutoScalingGroupMetricsCollectionPropertyToCloudFormation)(properties.metricsCollection),MixedInstancesPolicy:cfnAutoScalingGroupMixedInstancesPolicyPropertyToCloudFormation(properties.mixedInstancesPolicy),NewInstancesProtectedFromScaleIn:cdk.booleanToCloudFormation(properties.newInstancesProtectedFromScaleIn),NotificationConfigurations:cdk.listMapper(cfnAutoScalingGroupNotificationConfigurationPropertyToCloudFormation)(properties.notificationConfigurations),PlacementGroup:cdk.stringToCloudFormation(properties.placementGroup),ServiceLinkedRoleARN:cdk.stringToCloudFormation(properties.serviceLinkedRoleArn),Tags:cdk.listMapper(cfnAutoScalingGroupTagPropertyPropertyToCloudFormation)(properties.tags),TargetGroupARNs:cdk.listMapper(cdk.stringToCloudFormation)(properties.targetGroupArns),TerminationPolicies:cdk.listMapper(cdk.stringToCloudFormation)(properties.terminationPolicies),VPCZoneIdentifier:cdk.listMapper(cdk.stringToCloudFormation)(properties.vpcZoneIdentifier)}):properties}function CfnAutoScalingGroupPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("maxSize","MaxSize",cfn_parse.FromCloudFormation.getString(properties.MaxSize)),ret.addPropertyResult("minSize","MinSize",cfn_parse.FromCloudFormation.getString(properties.MinSize)),ret.addPropertyResult("autoScalingGroupName","AutoScalingGroupName",properties.AutoScalingGroupName!=null?cfn_parse.FromCloudFormation.getString(properties.AutoScalingGroupName):void 0),ret.addPropertyResult("availabilityZones","AvailabilityZones",properties.AvailabilityZones!=null?cfn_parse.FromCloudFormation.getStringArray(properties.AvailabilityZones):void 0),ret.addPropertyResult("capacityRebalance","CapacityRebalance",properties.CapacityRebalance!=null?cfn_parse.FromCloudFormation.getBoolean(properties.CapacityRebalance):void 0),ret.addPropertyResult("context","Context",properties.Context!=null?cfn_parse.FromCloudFormation.getString(properties.Context):void 0),ret.addPropertyResult("cooldown","Cooldown",properties.Cooldown!=null?cfn_parse.FromCloudFormation.getString(properties.Cooldown):void 0),ret.addPropertyResult("defaultInstanceWarmup","DefaultInstanceWarmup",properties.DefaultInstanceWarmup!=null?cfn_parse.FromCloudFormation.getNumber(properties.DefaultInstanceWarmup):void 0),ret.addPropertyResult("desiredCapacity","DesiredCapacity",properties.DesiredCapacity!=null?cfn_parse.FromCloudFormation.getString(properties.DesiredCapacity):void 0),ret.addPropertyResult("desiredCapacityType","DesiredCapacityType",properties.DesiredCapacityType!=null?cfn_parse.FromCloudFormation.getString(properties.DesiredCapacityType):void 0),ret.addPropertyResult("healthCheckGracePeriod","HealthCheckGracePeriod",properties.HealthCheckGracePeriod!=null?cfn_parse.FromCloudFormation.getNumber(properties.HealthCheckGracePeriod):void 0),ret.addPropertyResult("healthCheckType","HealthCheckType",properties.HealthCheckType!=null?cfn_parse.FromCloudFormation.getString(properties.HealthCheckType):void 0),ret.addPropertyResult("instanceId","InstanceId",properties.InstanceId!=null?cfn_parse.FromCloudFormation.getString(properties.InstanceId):void 0),ret.addPropertyResult("launchConfigurationName","LaunchConfigurationName",properties.LaunchConfigurationName!=null?cfn_parse.FromCloudFormation.getString(properties.LaunchConfigurationName):void 0),ret.addPropertyResult("launchTemplate","LaunchTemplate",properties.LaunchTemplate!=null?CfnAutoScalingGroupLaunchTemplateSpecificationPropertyFromCloudFormation(properties.LaunchTemplate):void 0),ret.addPropertyResult("lifecycleHookSpecificationList","LifecycleHookSpecificationList",properties.LifecycleHookSpecificationList!=null?cfn_parse.FromCloudFormation.getArray(CfnAutoScalingGroupLifecycleHookSpecificationPropertyFromCloudFormation)(properties.LifecycleHookSpecificationList):void 0),ret.addPropertyResult("loadBalancerNames","LoadBalancerNames",properties.LoadBalancerNames!=null?cfn_parse.FromCloudFormation.getStringArray(properties.LoadBalancerNames):void 0),ret.addPropertyResult("maxInstanceLifetime","MaxInstanceLifetime",properties.MaxInstanceLifetime!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxInstanceLifetime):void 0),ret.addPropertyResult("metricsCollection","MetricsCollection",properties.MetricsCollection!=null?cfn_parse.FromCloudFormation.getArray(CfnAutoScalingGroupMetricsCollectionPropertyFromCloudFormation)(properties.MetricsCollection):void 0),ret.addPropertyResult("mixedInstancesPolicy","MixedInstancesPolicy",properties.MixedInstancesPolicy!=null?CfnAutoScalingGroupMixedInstancesPolicyPropertyFromCloudFormation(properties.MixedInstancesPolicy):void 0),ret.addPropertyResult("newInstancesProtectedFromScaleIn","NewInstancesProtectedFromScaleIn",properties.NewInstancesProtectedFromScaleIn!=null?cfn_parse.FromCloudFormation.getBoolean(properties.NewInstancesProtectedFromScaleIn):void 0),ret.addPropertyResult("notificationConfigurations","NotificationConfigurations",properties.NotificationConfigurations!=null?cfn_parse.FromCloudFormation.getArray(CfnAutoScalingGroupNotificationConfigurationPropertyFromCloudFormation)(properties.NotificationConfigurations):void 0),ret.addPropertyResult("placementGroup","PlacementGroup",properties.PlacementGroup!=null?cfn_parse.FromCloudFormation.getString(properties.PlacementGroup):void 0),ret.addPropertyResult("serviceLinkedRoleArn","ServiceLinkedRoleARN",properties.ServiceLinkedRoleARN!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceLinkedRoleARN):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(CfnAutoScalingGroupTagPropertyPropertyFromCloudFormation)(properties.Tags):void 0),ret.addPropertyResult("targetGroupArns","TargetGroupARNs",properties.TargetGroupARNs!=null?cfn_parse.FromCloudFormation.getStringArray(properties.TargetGroupARNs):void 0),ret.addPropertyResult("terminationPolicies","TerminationPolicies",properties.TerminationPolicies!=null?cfn_parse.FromCloudFormation.getStringArray(properties.TerminationPolicies):void 0),ret.addPropertyResult("vpcZoneIdentifier","VPCZoneIdentifier",properties.VPCZoneIdentifier!=null?cfn_parse.FromCloudFormation.getStringArray(properties.VPCZoneIdentifier):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAutoScalingGroup extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnAutoScalingGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CfnAutoScalingGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAutoScalingGroup),error}cdk.requireProperty(props,"maxSize",this),cdk.requireProperty(props,"minSize",this),this.maxSize=props.maxSize,this.minSize=props.minSize,this.autoScalingGroupName=props.autoScalingGroupName,this.availabilityZones=props.availabilityZones,this.capacityRebalance=props.capacityRebalance,this.context=props.context,this.cooldown=props.cooldown,this.defaultInstanceWarmup=props.defaultInstanceWarmup,this.desiredCapacity=props.desiredCapacity,this.desiredCapacityType=props.desiredCapacityType,this.healthCheckGracePeriod=props.healthCheckGracePeriod,this.healthCheckType=props.healthCheckType,this.instanceId=props.instanceId,this.launchConfigurationName=props.launchConfigurationName,this.launchTemplate=props.launchTemplate,this.lifecycleHookSpecificationList=props.lifecycleHookSpecificationList,this.loadBalancerNames=props.loadBalancerNames,this.maxInstanceLifetime=props.maxInstanceLifetime,this.metricsCollection=props.metricsCollection,this.mixedInstancesPolicy=props.mixedInstancesPolicy,this.newInstancesProtectedFromScaleIn=props.newInstancesProtectedFromScaleIn,this.notificationConfigurations=props.notificationConfigurations,this.placementGroup=props.placementGroup,this.serviceLinkedRoleArn=props.serviceLinkedRoleArn,this.tags=new cdk.TagManager(cdk.TagType.AUTOSCALING_GROUP,"AWS::AutoScaling::AutoScalingGroup",props.tags,{tagPropertyName:"tags"}),this.targetGroupArns=props.targetGroupArns,this.terminationPolicies=props.terminationPolicies,this.vpcZoneIdentifier=props.vpcZoneIdentifier}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAutoScalingGroupPropsFromCloudFormation(resourceProperties),ret=new CfnAutoScalingGroup(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnAutoScalingGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{maxSize:this.maxSize,minSize:this.minSize,autoScalingGroupName:this.autoScalingGroupName,availabilityZones:this.availabilityZones,capacityRebalance:this.capacityRebalance,context:this.context,cooldown:this.cooldown,defaultInstanceWarmup:this.defaultInstanceWarmup,desiredCapacity:this.desiredCapacity,desiredCapacityType:this.desiredCapacityType,healthCheckGracePeriod:this.healthCheckGracePeriod,healthCheckType:this.healthCheckType,instanceId:this.instanceId,launchConfigurationName:this.launchConfigurationName,launchTemplate:this.launchTemplate,lifecycleHookSpecificationList:this.lifecycleHookSpecificationList,loadBalancerNames:this.loadBalancerNames,maxInstanceLifetime:this.maxInstanceLifetime,metricsCollection:this.metricsCollection,mixedInstancesPolicy:this.mixedInstancesPolicy,newInstancesProtectedFromScaleIn:this.newInstancesProtectedFromScaleIn,notificationConfigurations:this.notificationConfigurations,placementGroup:this.placementGroup,serviceLinkedRoleArn:this.serviceLinkedRoleArn,tags:this.tags.renderTags(),targetGroupArns:this.targetGroupArns,terminationPolicies:this.terminationPolicies,vpcZoneIdentifier:this.vpcZoneIdentifier}}renderProperties(props){return cfnAutoScalingGroupPropsToCloudFormation(props)}}exports.CfnAutoScalingGroup=CfnAutoScalingGroup,_a=JSII_RTTI_SYMBOL_1,CfnAutoScalingGroup[_a]={fqn:"aws-cdk-lib.aws_autoscaling.CfnAutoScalingGroup",version:"2.51.0"},CfnAutoScalingGroup.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::AutoScalingGroup";function CfnAutoScalingGroup_AcceleratorCountRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "AcceleratorCountRequestProperty"')}function cfnAutoScalingGroupAcceleratorCountRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_AcceleratorCountRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupAcceleratorCountRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_AcceleratorTotalMemoryMiBRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "AcceleratorTotalMemoryMiBRequestProperty"')}function cfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_AcceleratorTotalMemoryMiBRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_BaselineEbsBandwidthMbpsRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "BaselineEbsBandwidthMbpsRequestProperty"')}function cfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_BaselineEbsBandwidthMbpsRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_InstanceRequirementsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("acceleratorCount",CfnAutoScalingGroup_AcceleratorCountRequestPropertyValidator)(properties.acceleratorCount)),errors.collect(cdk.propertyValidator("acceleratorManufacturers",cdk.listValidator(cdk.validateString))(properties.acceleratorManufacturers)),errors.collect(cdk.propertyValidator("acceleratorNames",cdk.listValidator(cdk.validateString))(properties.acceleratorNames)),errors.collect(cdk.propertyValidator("acceleratorTotalMemoryMiB",CfnAutoScalingGroup_AcceleratorTotalMemoryMiBRequestPropertyValidator)(properties.acceleratorTotalMemoryMiB)),errors.collect(cdk.propertyValidator("acceleratorTypes",cdk.listValidator(cdk.validateString))(properties.acceleratorTypes)),errors.collect(cdk.propertyValidator("bareMetal",cdk.validateString)(properties.bareMetal)),errors.collect(cdk.propertyValidator("baselineEbsBandwidthMbps",CfnAutoScalingGroup_BaselineEbsBandwidthMbpsRequestPropertyValidator)(properties.baselineEbsBandwidthMbps)),errors.collect(cdk.propertyValidator("burstablePerformance",cdk.validateString)(properties.burstablePerformance)),errors.collect(cdk.propertyValidator("cpuManufacturers",cdk.listValidator(cdk.validateString))(properties.cpuManufacturers)),errors.collect(cdk.propertyValidator("excludedInstanceTypes",cdk.listValidator(cdk.validateString))(properties.excludedInstanceTypes)),errors.collect(cdk.propertyValidator("instanceGenerations",cdk.listValidator(cdk.validateString))(properties.instanceGenerations)),errors.collect(cdk.propertyValidator("localStorage",cdk.validateString)(properties.localStorage)),errors.collect(cdk.propertyValidator("localStorageTypes",cdk.listValidator(cdk.validateString))(properties.localStorageTypes)),errors.collect(cdk.propertyValidator("memoryGiBPerVCpu",CfnAutoScalingGroup_MemoryGiBPerVCpuRequestPropertyValidator)(properties.memoryGiBPerVCpu)),errors.collect(cdk.propertyValidator("memoryMiB",CfnAutoScalingGroup_MemoryMiBRequestPropertyValidator)(properties.memoryMiB)),errors.collect(cdk.propertyValidator("networkInterfaceCount",CfnAutoScalingGroup_NetworkInterfaceCountRequestPropertyValidator)(properties.networkInterfaceCount)),errors.collect(cdk.propertyValidator("onDemandMaxPricePercentageOverLowestPrice",cdk.validateNumber)(properties.onDemandMaxPricePercentageOverLowestPrice)),errors.collect(cdk.propertyValidator("requireHibernateSupport",cdk.validateBoolean)(properties.requireHibernateSupport)),errors.collect(cdk.propertyValidator("spotMaxPricePercentageOverLowestPrice",cdk.validateNumber)(properties.spotMaxPricePercentageOverLowestPrice)),errors.collect(cdk.propertyValidator("totalLocalStorageGb",CfnAutoScalingGroup_TotalLocalStorageGBRequestPropertyValidator)(properties.totalLocalStorageGb)),errors.collect(cdk.propertyValidator("vCpuCount",CfnAutoScalingGroup_VCpuCountRequestPropertyValidator)(properties.vCpuCount)),errors.wrap('supplied properties not correct for "InstanceRequirementsProperty"')}function cfnAutoScalingGroupInstanceRequirementsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_InstanceRequirementsPropertyValidator(properties).assertSuccess(),{AcceleratorCount:cfnAutoScalingGroupAcceleratorCountRequestPropertyToCloudFormation(properties.acceleratorCount),AcceleratorManufacturers:cdk.listMapper(cdk.stringToCloudFormation)(properties.acceleratorManufacturers),AcceleratorNames:cdk.listMapper(cdk.stringToCloudFormation)(properties.acceleratorNames),AcceleratorTotalMemoryMiB:cfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyToCloudFormation(properties.acceleratorTotalMemoryMiB),AcceleratorTypes:cdk.listMapper(cdk.stringToCloudFormation)(properties.acceleratorTypes),BareMetal:cdk.stringToCloudFormation(properties.bareMetal),BaselineEbsBandwidthMbps:cfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyToCloudFormation(properties.baselineEbsBandwidthMbps),BurstablePerformance:cdk.stringToCloudFormation(properties.burstablePerformance),CpuManufacturers:cdk.listMapper(cdk.stringToCloudFormation)(properties.cpuManufacturers),ExcludedInstanceTypes:cdk.listMapper(cdk.stringToCloudFormation)(properties.excludedInstanceTypes),InstanceGenerations:cdk.listMapper(cdk.stringToCloudFormation)(properties.instanceGenerations),LocalStorage:cdk.stringToCloudFormation(properties.localStorage),LocalStorageTypes:cdk.listMapper(cdk.stringToCloudFormation)(properties.localStorageTypes),MemoryGiBPerVCpu:cfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyToCloudFormation(properties.memoryGiBPerVCpu),MemoryMiB:cfnAutoScalingGroupMemoryMiBRequestPropertyToCloudFormation(properties.memoryMiB),NetworkInterfaceCount:cfnAutoScalingGroupNetworkInterfaceCountRequestPropertyToCloudFormation(properties.networkInterfaceCount),OnDemandMaxPricePercentageOverLowestPrice:cdk.numberToCloudFormation(properties.onDemandMaxPricePercentageOverLowestPrice),RequireHibernateSupport:cdk.booleanToCloudFormation(properties.requireHibernateSupport),SpotMaxPricePercentageOverLowestPrice:cdk.numberToCloudFormation(properties.spotMaxPricePercentageOverLowestPrice),TotalLocalStorageGB:cfnAutoScalingGroupTotalLocalStorageGBRequestPropertyToCloudFormation(properties.totalLocalStorageGb),VCpuCount:cfnAutoScalingGroupVCpuCountRequestPropertyToCloudFormation(properties.vCpuCount)}):properties}function CfnAutoScalingGroupInstanceRequirementsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("acceleratorCount","AcceleratorCount",properties.AcceleratorCount!=null?CfnAutoScalingGroupAcceleratorCountRequestPropertyFromCloudFormation(properties.AcceleratorCount):void 0),ret.addPropertyResult("acceleratorManufacturers","AcceleratorManufacturers",properties.AcceleratorManufacturers!=null?cfn_parse.FromCloudFormation.getStringArray(properties.AcceleratorManufacturers):void 0),ret.addPropertyResult("acceleratorNames","AcceleratorNames",properties.AcceleratorNames!=null?cfn_parse.FromCloudFormation.getStringArray(properties.AcceleratorNames):void 0),ret.addPropertyResult("acceleratorTotalMemoryMiB","AcceleratorTotalMemoryMiB",properties.AcceleratorTotalMemoryMiB!=null?CfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyFromCloudFormation(properties.AcceleratorTotalMemoryMiB):void 0),ret.addPropertyResult("acceleratorTypes","AcceleratorTypes",properties.AcceleratorTypes!=null?cfn_parse.FromCloudFormation.getStringArray(properties.AcceleratorTypes):void 0),ret.addPropertyResult("bareMetal","BareMetal",properties.BareMetal!=null?cfn_parse.FromCloudFormation.getString(properties.BareMetal):void 0),ret.addPropertyResult("baselineEbsBandwidthMbps","BaselineEbsBandwidthMbps",properties.BaselineEbsBandwidthMbps!=null?CfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyFromCloudFormation(properties.BaselineEbsBandwidthMbps):void 0),ret.addPropertyResult("burstablePerformance","BurstablePerformance",properties.BurstablePerformance!=null?cfn_parse.FromCloudFormation.getString(properties.BurstablePerformance):void 0),ret.addPropertyResult("cpuManufacturers","CpuManufacturers",properties.CpuManufacturers!=null?cfn_parse.FromCloudFormation.getStringArray(properties.CpuManufacturers):void 0),ret.addPropertyResult("excludedInstanceTypes","ExcludedInstanceTypes",properties.ExcludedInstanceTypes!=null?cfn_parse.FromCloudFormation.getStringArray(properties.ExcludedInstanceTypes):void 0),ret.addPropertyResult("instanceGenerations","InstanceGenerations",properties.InstanceGenerations!=null?cfn_parse.FromCloudFormation.getStringArray(properties.InstanceGenerations):void 0),ret.addPropertyResult("localStorage","LocalStorage",properties.LocalStorage!=null?cfn_parse.FromCloudFormation.getString(properties.LocalStorage):void 0),ret.addPropertyResult("localStorageTypes","LocalStorageTypes",properties.LocalStorageTypes!=null?cfn_parse.FromCloudFormation.getStringArray(properties.LocalStorageTypes):void 0),ret.addPropertyResult("memoryGiBPerVCpu","MemoryGiBPerVCpu",properties.MemoryGiBPerVCpu!=null?CfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyFromCloudFormation(properties.MemoryGiBPerVCpu):void 0),ret.addPropertyResult("memoryMiB","MemoryMiB",properties.MemoryMiB!=null?CfnAutoScalingGroupMemoryMiBRequestPropertyFromCloudFormation(properties.MemoryMiB):void 0),ret.addPropertyResult("networkInterfaceCount","NetworkInterfaceCount",properties.NetworkInterfaceCount!=null?CfnAutoScalingGroupNetworkInterfaceCountRequestPropertyFromCloudFormation(properties.NetworkInterfaceCount):void 0),ret.addPropertyResult("onDemandMaxPricePercentageOverLowestPrice","OnDemandMaxPricePercentageOverLowestPrice",properties.OnDemandMaxPricePercentageOverLowestPrice!=null?cfn_parse.FromCloudFormation.getNumber(properties.OnDemandMaxPricePercentageOverLowestPrice):void 0),ret.addPropertyResult("requireHibernateSupport","RequireHibernateSupport",properties.RequireHibernateSupport!=null?cfn_parse.FromCloudFormation.getBoolean(properties.RequireHibernateSupport):void 0),ret.addPropertyResult("spotMaxPricePercentageOverLowestPrice","SpotMaxPricePercentageOverLowestPrice",properties.SpotMaxPricePercentageOverLowestPrice!=null?cfn_parse.FromCloudFormation.getNumber(properties.SpotMaxPricePercentageOverLowestPrice):void 0),ret.addPropertyResult("totalLocalStorageGb","TotalLocalStorageGB",properties.TotalLocalStorageGB!=null?CfnAutoScalingGroupTotalLocalStorageGBRequestPropertyFromCloudFormation(properties.TotalLocalStorageGB):void 0),ret.addPropertyResult("vCpuCount","VCpuCount",properties.VCpuCount!=null?CfnAutoScalingGroupVCpuCountRequestPropertyFromCloudFormation(properties.VCpuCount):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_InstancesDistributionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("onDemandAllocationStrategy",cdk.validateString)(properties.onDemandAllocationStrategy)),errors.collect(cdk.propertyValidator("onDemandBaseCapacity",cdk.validateNumber)(properties.onDemandBaseCapacity)),errors.collect(cdk.propertyValidator("onDemandPercentageAboveBaseCapacity",cdk.validateNumber)(properties.onDemandPercentageAboveBaseCapacity)),errors.collect(cdk.propertyValidator("spotAllocationStrategy",cdk.validateString)(properties.spotAllocationStrategy)),errors.collect(cdk.propertyValidator("spotInstancePools",cdk.validateNumber)(properties.spotInstancePools)),errors.collect(cdk.propertyValidator("spotMaxPrice",cdk.validateString)(properties.spotMaxPrice)),errors.wrap('supplied properties not correct for "InstancesDistributionProperty"')}function cfnAutoScalingGroupInstancesDistributionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_InstancesDistributionPropertyValidator(properties).assertSuccess(),{OnDemandAllocationStrategy:cdk.stringToCloudFormation(properties.onDemandAllocationStrategy),OnDemandBaseCapacity:cdk.numberToCloudFormation(properties.onDemandBaseCapacity),OnDemandPercentageAboveBaseCapacity:cdk.numberToCloudFormation(properties.onDemandPercentageAboveBaseCapacity),SpotAllocationStrategy:cdk.stringToCloudFormation(properties.spotAllocationStrategy),SpotInstancePools:cdk.numberToCloudFormation(properties.spotInstancePools),SpotMaxPrice:cdk.stringToCloudFormation(properties.spotMaxPrice)}):properties}function CfnAutoScalingGroupInstancesDistributionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("onDemandAllocationStrategy","OnDemandAllocationStrategy",properties.OnDemandAllocationStrategy!=null?cfn_parse.FromCloudFormation.getString(properties.OnDemandAllocationStrategy):void 0),ret.addPropertyResult("onDemandBaseCapacity","OnDemandBaseCapacity",properties.OnDemandBaseCapacity!=null?cfn_parse.FromCloudFormation.getNumber(properties.OnDemandBaseCapacity):void 0),ret.addPropertyResult("onDemandPercentageAboveBaseCapacity","OnDemandPercentageAboveBaseCapacity",properties.OnDemandPercentageAboveBaseCapacity!=null?cfn_parse.FromCloudFormation.getNumber(properties.OnDemandPercentageAboveBaseCapacity):void 0),ret.addPropertyResult("spotAllocationStrategy","SpotAllocationStrategy",properties.SpotAllocationStrategy!=null?cfn_parse.FromCloudFormation.getString(properties.SpotAllocationStrategy):void 0),ret.addPropertyResult("spotInstancePools","SpotInstancePools",properties.SpotInstancePools!=null?cfn_parse.FromCloudFormation.getNumber(properties.SpotInstancePools):void 0),ret.addPropertyResult("spotMaxPrice","SpotMaxPrice",properties.SpotMaxPrice!=null?cfn_parse.FromCloudFormation.getString(properties.SpotMaxPrice):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_LaunchTemplatePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("launchTemplateSpecification",cdk.requiredValidator)(properties.launchTemplateSpecification)),errors.collect(cdk.propertyValidator("launchTemplateSpecification",CfnAutoScalingGroup_LaunchTemplateSpecificationPropertyValidator)(properties.launchTemplateSpecification)),errors.collect(cdk.propertyValidator("overrides",cdk.listValidator(CfnAutoScalingGroup_LaunchTemplateOverridesPropertyValidator))(properties.overrides)),errors.wrap('supplied properties not correct for "LaunchTemplateProperty"')}function cfnAutoScalingGroupLaunchTemplatePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_LaunchTemplatePropertyValidator(properties).assertSuccess(),{LaunchTemplateSpecification:cfnAutoScalingGroupLaunchTemplateSpecificationPropertyToCloudFormation(properties.launchTemplateSpecification),Overrides:cdk.listMapper(cfnAutoScalingGroupLaunchTemplateOverridesPropertyToCloudFormation)(properties.overrides)}):properties}function CfnAutoScalingGroupLaunchTemplatePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("launchTemplateSpecification","LaunchTemplateSpecification",CfnAutoScalingGroupLaunchTemplateSpecificationPropertyFromCloudFormation(properties.LaunchTemplateSpecification)),ret.addPropertyResult("overrides","Overrides",properties.Overrides!=null?cfn_parse.FromCloudFormation.getArray(CfnAutoScalingGroupLaunchTemplateOverridesPropertyFromCloudFormation)(properties.Overrides):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_LaunchTemplateOverridesPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("instanceRequirements",CfnAutoScalingGroup_InstanceRequirementsPropertyValidator)(properties.instanceRequirements)),errors.collect(cdk.propertyValidator("instanceType",cdk.validateString)(properties.instanceType)),errors.collect(cdk.propertyValidator("launchTemplateSpecification",CfnAutoScalingGroup_LaunchTemplateSpecificationPropertyValidator)(properties.launchTemplateSpecification)),errors.collect(cdk.propertyValidator("weightedCapacity",cdk.validateString)(properties.weightedCapacity)),errors.wrap('supplied properties not correct for "LaunchTemplateOverridesProperty"')}function cfnAutoScalingGroupLaunchTemplateOverridesPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_LaunchTemplateOverridesPropertyValidator(properties).assertSuccess(),{InstanceRequirements:cfnAutoScalingGroupInstanceRequirementsPropertyToCloudFormation(properties.instanceRequirements),InstanceType:cdk.stringToCloudFormation(properties.instanceType),LaunchTemplateSpecification:cfnAutoScalingGroupLaunchTemplateSpecificationPropertyToCloudFormation(properties.launchTemplateSpecification),WeightedCapacity:cdk.stringToCloudFormation(properties.weightedCapacity)}):properties}function CfnAutoScalingGroupLaunchTemplateOverridesPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("instanceRequirements","InstanceRequirements",properties.InstanceRequirements!=null?CfnAutoScalingGroupInstanceRequirementsPropertyFromCloudFormation(properties.InstanceRequirements):void 0),ret.addPropertyResult("instanceType","InstanceType",properties.InstanceType!=null?cfn_parse.FromCloudFormation.getString(properties.InstanceType):void 0),ret.addPropertyResult("launchTemplateSpecification","LaunchTemplateSpecification",properties.LaunchTemplateSpecification!=null?CfnAutoScalingGroupLaunchTemplateSpecificationPropertyFromCloudFormation(properties.LaunchTemplateSpecification):void 0),ret.addPropertyResult("weightedCapacity","WeightedCapacity",properties.WeightedCapacity!=null?cfn_parse.FromCloudFormation.getString(properties.WeightedCapacity):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_LaunchTemplateSpecificationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("launchTemplateId",cdk.validateString)(properties.launchTemplateId)),errors.collect(cdk.propertyValidator("launchTemplateName",cdk.validateString)(properties.launchTemplateName)),errors.collect(cdk.propertyValidator("version",cdk.requiredValidator)(properties.version)),errors.collect(cdk.propertyValidator("version",cdk.validateString)(properties.version)),errors.wrap('supplied properties not correct for "LaunchTemplateSpecificationProperty"')}function cfnAutoScalingGroupLaunchTemplateSpecificationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_LaunchTemplateSpecificationPropertyValidator(properties).assertSuccess(),{LaunchTemplateId:cdk.stringToCloudFormation(properties.launchTemplateId),LaunchTemplateName:cdk.stringToCloudFormation(properties.launchTemplateName),Version:cdk.stringToCloudFormation(properties.version)}):properties}function CfnAutoScalingGroupLaunchTemplateSpecificationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("launchTemplateId","LaunchTemplateId",properties.LaunchTemplateId!=null?cfn_parse.FromCloudFormation.getString(properties.LaunchTemplateId):void 0),ret.addPropertyResult("launchTemplateName","LaunchTemplateName",properties.LaunchTemplateName!=null?cfn_parse.FromCloudFormation.getString(properties.LaunchTemplateName):void 0),ret.addPropertyResult("version","Version",cfn_parse.FromCloudFormation.getString(properties.Version)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_LifecycleHookSpecificationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("defaultResult",cdk.validateString)(properties.defaultResult)),errors.collect(cdk.propertyValidator("heartbeatTimeout",cdk.validateNumber)(properties.heartbeatTimeout)),errors.collect(cdk.propertyValidator("lifecycleHookName",cdk.requiredValidator)(properties.lifecycleHookName)),errors.collect(cdk.propertyValidator("lifecycleHookName",cdk.validateString)(properties.lifecycleHookName)),errors.collect(cdk.propertyValidator("lifecycleTransition",cdk.requiredValidator)(properties.lifecycleTransition)),errors.collect(cdk.propertyValidator("lifecycleTransition",cdk.validateString)(properties.lifecycleTransition)),errors.collect(cdk.propertyValidator("notificationMetadata",cdk.validateString)(properties.notificationMetadata)),errors.collect(cdk.propertyValidator("notificationTargetArn",cdk.validateString)(properties.notificationTargetArn)),errors.collect(cdk.propertyValidator("roleArn",cdk.validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "LifecycleHookSpecificationProperty"')}function cfnAutoScalingGroupLifecycleHookSpecificationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_LifecycleHookSpecificationPropertyValidator(properties).assertSuccess(),{DefaultResult:cdk.stringToCloudFormation(properties.defaultResult),HeartbeatTimeout:cdk.numberToCloudFormation(properties.heartbeatTimeout),LifecycleHookName:cdk.stringToCloudFormation(properties.lifecycleHookName),LifecycleTransition:cdk.stringToCloudFormation(properties.lifecycleTransition),NotificationMetadata:cdk.stringToCloudFormation(properties.notificationMetadata),NotificationTargetARN:cdk.stringToCloudFormation(properties.notificationTargetArn),RoleARN:cdk.stringToCloudFormation(properties.roleArn)}):properties}function CfnAutoScalingGroupLifecycleHookSpecificationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("defaultResult","DefaultResult",properties.DefaultResult!=null?cfn_parse.FromCloudFormation.getString(properties.DefaultResult):void 0),ret.addPropertyResult("heartbeatTimeout","HeartbeatTimeout",properties.HeartbeatTimeout!=null?cfn_parse.FromCloudFormation.getNumber(properties.HeartbeatTimeout):void 0),ret.addPropertyResult("lifecycleHookName","LifecycleHookName",cfn_parse.FromCloudFormation.getString(properties.LifecycleHookName)),ret.addPropertyResult("lifecycleTransition","LifecycleTransition",cfn_parse.FromCloudFormation.getString(properties.LifecycleTransition)),ret.addPropertyResult("notificationMetadata","NotificationMetadata",properties.NotificationMetadata!=null?cfn_parse.FromCloudFormation.getString(properties.NotificationMetadata):void 0),ret.addPropertyResult("notificationTargetArn","NotificationTargetARN",properties.NotificationTargetARN!=null?cfn_parse.FromCloudFormation.getString(properties.NotificationTargetARN):void 0),ret.addPropertyResult("roleArn","RoleARN",properties.RoleARN!=null?cfn_parse.FromCloudFormation.getString(properties.RoleARN):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_MemoryGiBPerVCpuRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "MemoryGiBPerVCpuRequestProperty"')}function cfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_MemoryGiBPerVCpuRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_MemoryMiBRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "MemoryMiBRequestProperty"')}function cfnAutoScalingGroupMemoryMiBRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_MemoryMiBRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupMemoryMiBRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_MetricsCollectionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("granularity",cdk.requiredValidator)(properties.granularity)),errors.collect(cdk.propertyValidator("granularity",cdk.validateString)(properties.granularity)),errors.collect(cdk.propertyValidator("metrics",cdk.listValidator(cdk.validateString))(properties.metrics)),errors.wrap('supplied properties not correct for "MetricsCollectionProperty"')}function cfnAutoScalingGroupMetricsCollectionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_MetricsCollectionPropertyValidator(properties).assertSuccess(),{Granularity:cdk.stringToCloudFormation(properties.granularity),Metrics:cdk.listMapper(cdk.stringToCloudFormation)(properties.metrics)}):properties}function CfnAutoScalingGroupMetricsCollectionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("granularity","Granularity",cfn_parse.FromCloudFormation.getString(properties.Granularity)),ret.addPropertyResult("metrics","Metrics",properties.Metrics!=null?cfn_parse.FromCloudFormation.getStringArray(properties.Metrics):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_MixedInstancesPolicyPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("instancesDistribution",CfnAutoScalingGroup_InstancesDistributionPropertyValidator)(properties.instancesDistribution)),errors.collect(cdk.propertyValidator("launchTemplate",cdk.requiredValidator)(properties.launchTemplate)),errors.collect(cdk.propertyValidator("launchTemplate",CfnAutoScalingGroup_LaunchTemplatePropertyValidator)(properties.launchTemplate)),errors.wrap('supplied properties not correct for "MixedInstancesPolicyProperty"')}function cfnAutoScalingGroupMixedInstancesPolicyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_MixedInstancesPolicyPropertyValidator(properties).assertSuccess(),{InstancesDistribution:cfnAutoScalingGroupInstancesDistributionPropertyToCloudFormation(properties.instancesDistribution),LaunchTemplate:cfnAutoScalingGroupLaunchTemplatePropertyToCloudFormation(properties.launchTemplate)}):properties}function CfnAutoScalingGroupMixedInstancesPolicyPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("instancesDistribution","InstancesDistribution",properties.InstancesDistribution!=null?CfnAutoScalingGroupInstancesDistributionPropertyFromCloudFormation(properties.InstancesDistribution):void 0),ret.addPropertyResult("launchTemplate","LaunchTemplate",CfnAutoScalingGroupLaunchTemplatePropertyFromCloudFormation(properties.LaunchTemplate)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_NetworkInterfaceCountRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "NetworkInterfaceCountRequestProperty"')}function cfnAutoScalingGroupNetworkInterfaceCountRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_NetworkInterfaceCountRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupNetworkInterfaceCountRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_NotificationConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("notificationTypes",cdk.listValidator(cdk.validateString))(properties.notificationTypes)),errors.collect(cdk.propertyValidator("topicArn",cdk.requiredValidator)(properties.topicArn)),errors.collect(cdk.propertyValidator("topicArn",cdk.validateString)(properties.topicArn)),errors.wrap('supplied properties not correct for "NotificationConfigurationProperty"')}function cfnAutoScalingGroupNotificationConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_NotificationConfigurationPropertyValidator(properties).assertSuccess(),{NotificationTypes:cdk.listMapper(cdk.stringToCloudFormation)(properties.notificationTypes),TopicARN:cdk.stringToCloudFormation(properties.topicArn)}):properties}function CfnAutoScalingGroupNotificationConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("notificationTypes","NotificationTypes",properties.NotificationTypes!=null?cfn_parse.FromCloudFormation.getStringArray(properties.NotificationTypes):void 0),ret.addPropertyResult("topicArn","TopicARN",cfn_parse.FromCloudFormation.getString(properties.TopicARN)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_TagPropertyPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("key",cdk.requiredValidator)(properties.key)),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("propagateAtLaunch",cdk.requiredValidator)(properties.propagateAtLaunch)),errors.collect(cdk.propertyValidator("propagateAtLaunch",cdk.validateBoolean)(properties.propagateAtLaunch)),errors.collect(cdk.propertyValidator("value",cdk.requiredValidator)(properties.value)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagPropertyProperty"')}function cfnAutoScalingGroupTagPropertyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_TagPropertyPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),PropagateAtLaunch:cdk.booleanToCloudFormation(properties.propagateAtLaunch),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnAutoScalingGroupTagPropertyPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("key","Key",cfn_parse.FromCloudFormation.getString(properties.Key)),ret.addPropertyResult("propagateAtLaunch","PropagateAtLaunch",cfn_parse.FromCloudFormation.getBoolean(properties.PropagateAtLaunch)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_TotalLocalStorageGBRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "TotalLocalStorageGBRequestProperty"')}function cfnAutoScalingGroupTotalLocalStorageGBRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_TotalLocalStorageGBRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupTotalLocalStorageGBRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_VCpuCountRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "VCpuCountRequestProperty"')}function cfnAutoScalingGroupVCpuCountRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_VCpuCountRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupVCpuCountRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchConfigurationPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("associatePublicIpAddress",cdk.validateBoolean)(properties.associatePublicIpAddress)),errors.collect(cdk.propertyValidator("blockDeviceMappings",cdk.listValidator(CfnLaunchConfiguration_BlockDeviceMappingPropertyValidator))(properties.blockDeviceMappings)),errors.collect(cdk.propertyValidator("classicLinkVpcId",cdk.validateString)(properties.classicLinkVpcId)),errors.collect(cdk.propertyValidator("classicLinkVpcSecurityGroups",cdk.listValidator(cdk.validateString))(properties.classicLinkVpcSecurityGroups)),errors.collect(cdk.propertyValidator("ebsOptimized",cdk.validateBoolean)(properties.ebsOptimized)),errors.collect(cdk.propertyValidator("iamInstanceProfile",cdk.validateString)(properties.iamInstanceProfile)),errors.collect(cdk.propertyValidator("imageId",cdk.requiredValidator)(properties.imageId)),errors.collect(cdk.propertyValidator("imageId",cdk.validateString)(properties.imageId)),errors.collect(cdk.propertyValidator("instanceId",cdk.validateString)(properties.instanceId)),errors.collect(cdk.propertyValidator("instanceMonitoring",cdk.validateBoolean)(properties.instanceMonitoring)),errors.collect(cdk.propertyValidator("instanceType",cdk.requiredValidator)(properties.instanceType)),errors.collect(cdk.propertyValidator("instanceType",cdk.validateString)(properties.instanceType)),errors.collect(cdk.propertyValidator("kernelId",cdk.validateString)(properties.kernelId)),errors.collect(cdk.propertyValidator("keyName",cdk.validateString)(properties.keyName)),errors.collect(cdk.propertyValidator("launchConfigurationName",cdk.validateString)(properties.launchConfigurationName)),errors.collect(cdk.propertyValidator("metadataOptions",CfnLaunchConfiguration_MetadataOptionsPropertyValidator)(properties.metadataOptions)),errors.collect(cdk.propertyValidator("placementTenancy",cdk.validateString)(properties.placementTenancy)),errors.collect(cdk.propertyValidator("ramDiskId",cdk.validateString)(properties.ramDiskId)),errors.collect(cdk.propertyValidator("securityGroups",cdk.listValidator(cdk.validateString))(properties.securityGroups)),errors.collect(cdk.propertyValidator("spotPrice",cdk.validateString)(properties.spotPrice)),errors.collect(cdk.propertyValidator("userData",cdk.validateString)(properties.userData)),errors.wrap('supplied properties not correct for "CfnLaunchConfigurationProps"')}function cfnLaunchConfigurationPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchConfigurationPropsValidator(properties).assertSuccess(),{ImageId:cdk.stringToCloudFormation(properties.imageId),InstanceType:cdk.stringToCloudFormation(properties.instanceType),AssociatePublicIpAddress:cdk.booleanToCloudFormation(properties.associatePublicIpAddress),BlockDeviceMappings:cdk.listMapper(cfnLaunchConfigurationBlockDeviceMappingPropertyToCloudFormation)(properties.blockDeviceMappings),ClassicLinkVPCId:cdk.stringToCloudFormation(properties.classicLinkVpcId),ClassicLinkVPCSecurityGroups:cdk.listMapper(cdk.stringToCloudFormation)(properties.classicLinkVpcSecurityGroups),EbsOptimized:cdk.booleanToCloudFormation(properties.ebsOptimized),IamInstanceProfile:cdk.stringToCloudFormation(properties.iamInstanceProfile),InstanceId:cdk.stringToCloudFormation(properties.instanceId),InstanceMonitoring:cdk.booleanToCloudFormation(properties.instanceMonitoring),KernelId:cdk.stringToCloudFormation(properties.kernelId),KeyName:cdk.stringToCloudFormation(properties.keyName),LaunchConfigurationName:cdk.stringToCloudFormation(properties.launchConfigurationName),MetadataOptions:cfnLaunchConfigurationMetadataOptionsPropertyToCloudFormation(properties.metadataOptions),PlacementTenancy:cdk.stringToCloudFormation(properties.placementTenancy),RamDiskId:cdk.stringToCloudFormation(properties.ramDiskId),SecurityGroups:cdk.listMapper(cdk.stringToCloudFormation)(properties.securityGroups),SpotPrice:cdk.stringToCloudFormation(properties.spotPrice),UserData:cdk.stringToCloudFormation(properties.userData)}):properties}function CfnLaunchConfigurationPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("imageId","ImageId",cfn_parse.FromCloudFormation.getString(properties.ImageId)),ret.addPropertyResult("instanceType","InstanceType",cfn_parse.FromCloudFormation.getString(properties.InstanceType)),ret.addPropertyResult("associatePublicIpAddress","AssociatePublicIpAddress",properties.AssociatePublicIpAddress!=null?cfn_parse.FromCloudFormation.getBoolean(properties.AssociatePublicIpAddress):void 0),ret.addPropertyResult("blockDeviceMappings","BlockDeviceMappings",properties.BlockDeviceMappings!=null?cfn_parse.FromCloudFormation.getArray(CfnLaunchConfigurationBlockDeviceMappingPropertyFromCloudFormation)(properties.BlockDeviceMappings):void 0),ret.addPropertyResult("classicLinkVpcId","ClassicLinkVPCId",properties.ClassicLinkVPCId!=null?cfn_parse.FromCloudFormation.getString(properties.ClassicLinkVPCId):void 0),ret.addPropertyResult("classicLinkVpcSecurityGroups","ClassicLinkVPCSecurityGroups",properties.ClassicLinkVPCSecurityGroups!=null?cfn_parse.FromCloudFormation.getStringArray(properties.ClassicLinkVPCSecurityGroups):void 0),ret.addPropertyResult("ebsOptimized","EbsOptimized",properties.EbsOptimized!=null?cfn_parse.FromCloudFormation.getBoolean(properties.EbsOptimized):void 0),ret.addPropertyResult("iamInstanceProfile","IamInstanceProfile",properties.IamInstanceProfile!=null?cfn_parse.FromCloudFormation.getString(properties.IamInstanceProfile):void 0),ret.addPropertyResult("instanceId","InstanceId",properties.InstanceId!=null?cfn_parse.FromCloudFormation.getString(properties.InstanceId):void 0),ret.addPropertyResult("instanceMonitoring","InstanceMonitoring",properties.InstanceMonitoring!=null?cfn_parse.FromCloudFormation.getBoolean(properties.InstanceMonitoring):void 0),ret.addPropertyResult("kernelId","KernelId",properties.KernelId!=null?cfn_parse.FromCloudFormation.getString(properties.KernelId):void 0),ret.addPropertyResult("keyName","KeyName",properties.KeyName!=null?cfn_parse.FromCloudFormation.getString(properties.KeyName):void 0),ret.addPropertyResult("launchConfigurationName","LaunchConfigurationName",properties.LaunchConfigurationName!=null?cfn_parse.FromCloudFormation.getString(properties.LaunchConfigurationName):void 0),ret.addPropertyResult("metadataOptions","MetadataOptions",properties.MetadataOptions!=null?CfnLaunchConfigurationMetadataOptionsPropertyFromCloudFormation(properties.MetadataOptions):void 0),ret.addPropertyResult("placementTenancy","PlacementTenancy",properties.PlacementTenancy!=null?cfn_parse.FromCloudFormation.getString(properties.PlacementTenancy):void 0),ret.addPropertyResult("ramDiskId","RamDiskId",properties.RamDiskId!=null?cfn_parse.FromCloudFormation.getString(properties.RamDiskId):void 0),ret.addPropertyResult("securityGroups","SecurityGroups",properties.SecurityGroups!=null?cfn_parse.FromCloudFormation.getStringArray(properties.SecurityGroups):void 0),ret.addPropertyResult("spotPrice","SpotPrice",properties.SpotPrice!=null?cfn_parse.FromCloudFormation.getString(properties.SpotPrice):void 0),ret.addPropertyResult("userData","UserData",properties.UserData!=null?cfn_parse.FromCloudFormation.getString(properties.UserData):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLaunchConfiguration extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnLaunchConfiguration.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CfnLaunchConfigurationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLaunchConfiguration),error}cdk.requireProperty(props,"imageId",this),cdk.requireProperty(props,"instanceType",this),this.imageId=props.imageId,this.instanceType=props.instanceType,this.associatePublicIpAddress=props.associatePublicIpAddress,this.blockDeviceMappings=props.blockDeviceMappings,this.classicLinkVpcId=props.classicLinkVpcId,this.classicLinkVpcSecurityGroups=props.classicLinkVpcSecurityGroups,this.ebsOptimized=props.ebsOptimized,this.iamInstanceProfile=props.iamInstanceProfile,this.instanceId=props.instanceId,this.instanceMonitoring=props.instanceMonitoring,this.kernelId=props.kernelId,this.keyName=props.keyName,this.launchConfigurationName=props.launchConfigurationName,this.metadataOptions=props.metadataOptions,this.placementTenancy=props.placementTenancy,this.ramDiskId=props.ramDiskId,this.securityGroups=props.securityGroups,this.spotPrice=props.spotPrice,this.userData=props.userData}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLaunchConfigurationPropsFromCloudFormation(resourceProperties),ret=new CfnLaunchConfiguration(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnLaunchConfiguration.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{imageId:this.imageId,instanceType:this.instanceType,associatePublicIpAddress:this.associatePublicIpAddress,blockDeviceMappings:this.blockDeviceMappings,classicLinkVpcId:this.classicLinkVpcId,classicLinkVpcSecurityGroups:this.classicLinkVpcSecurityGroups,ebsOptimized:this.ebsOptimized,iamInstanceProfile:this.iamInstanceProfile,instanceId:this.instanceId,instanceMonitoring:this.instanceMonitoring,kernelId:this.kernelId,keyName:this.keyName,launchConfigurationName:this.launchConfigurationName,metadataOptions:this.metadataOptions,placementTenancy:this.placementTenancy,ramDiskId:this.ramDiskId,securityGroups:this.securityGroups,spotPrice:this.spotPrice,userData:this.userData}}renderProperties(props){return cfnLaunchConfigurationPropsToCloudFormation(props)}}exports.CfnLaunchConfiguration=CfnLaunchConfiguration,_b=JSII_RTTI_SYMBOL_1,CfnLaunchConfiguration[_b]={fqn:"aws-cdk-lib.aws_autoscaling.CfnLaunchConfiguration",version:"2.51.0"},CfnLaunchConfiguration.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::LaunchConfiguration";function CfnLaunchConfiguration_BlockDevicePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("deleteOnTermination",cdk.validateBoolean)(properties.deleteOnTermination)),errors.collect(cdk.propertyValidator("encrypted",cdk.validateBoolean)(properties.encrypted)),errors.collect(cdk.propertyValidator("iops",cdk.validateNumber)(properties.iops)),errors.collect(cdk.propertyValidator("snapshotId",cdk.validateString)(properties.snapshotId)),errors.collect(cdk.propertyValidator("throughput",cdk.validateNumber)(properties.throughput)),errors.collect(cdk.propertyValidator("volumeSize",cdk.validateNumber)(properties.volumeSize)),errors.collect(cdk.propertyValidator("volumeType",cdk.validateString)(properties.volumeType)),errors.wrap('supplied properties not correct for "BlockDeviceProperty"')}function cfnLaunchConfigurationBlockDevicePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchConfiguration_BlockDevicePropertyValidator(properties).assertSuccess(),{DeleteOnTermination:cdk.booleanToCloudFormation(properties.deleteOnTermination),Encrypted:cdk.booleanToCloudFormation(properties.encrypted),Iops:cdk.numberToCloudFormation(properties.iops),SnapshotId:cdk.stringToCloudFormation(properties.snapshotId),Throughput:cdk.numberToCloudFormation(properties.throughput),VolumeSize:cdk.numberToCloudFormation(properties.volumeSize),VolumeType:cdk.stringToCloudFormation(properties.volumeType)}):properties}function CfnLaunchConfigurationBlockDevicePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("deleteOnTermination","DeleteOnTermination",properties.DeleteOnTermination!=null?cfn_parse.FromCloudFormation.getBoolean(properties.DeleteOnTermination):void 0),ret.addPropertyResult("encrypted","Encrypted",properties.Encrypted!=null?cfn_parse.FromCloudFormation.getBoolean(properties.Encrypted):void 0),ret.addPropertyResult("iops","Iops",properties.Iops!=null?cfn_parse.FromCloudFormation.getNumber(properties.Iops):void 0),ret.addPropertyResult("snapshotId","SnapshotId",properties.SnapshotId!=null?cfn_parse.FromCloudFormation.getString(properties.SnapshotId):void 0),ret.addPropertyResult("throughput","Throughput",properties.Throughput!=null?cfn_parse.FromCloudFormation.getNumber(properties.Throughput):void 0),ret.addPropertyResult("volumeSize","VolumeSize",properties.VolumeSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.VolumeSize):void 0),ret.addPropertyResult("volumeType","VolumeType",properties.VolumeType!=null?cfn_parse.FromCloudFormation.getString(properties.VolumeType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchConfiguration_BlockDeviceMappingPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("deviceName",cdk.requiredValidator)(properties.deviceName)),errors.collect(cdk.propertyValidator("deviceName",cdk.validateString)(properties.deviceName)),errors.collect(cdk.propertyValidator("ebs",CfnLaunchConfiguration_BlockDevicePropertyValidator)(properties.ebs)),errors.collect(cdk.propertyValidator("noDevice",cdk.validateBoolean)(properties.noDevice)),errors.collect(cdk.propertyValidator("virtualName",cdk.validateString)(properties.virtualName)),errors.wrap('supplied properties not correct for "BlockDeviceMappingProperty"')}function cfnLaunchConfigurationBlockDeviceMappingPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchConfiguration_BlockDeviceMappingPropertyValidator(properties).assertSuccess(),{DeviceName:cdk.stringToCloudFormation(properties.deviceName),Ebs:cfnLaunchConfigurationBlockDevicePropertyToCloudFormation(properties.ebs),NoDevice:cdk.booleanToCloudFormation(properties.noDevice),VirtualName:cdk.stringToCloudFormation(properties.virtualName)}):properties}function CfnLaunchConfigurationBlockDeviceMappingPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("deviceName","DeviceName",cfn_parse.FromCloudFormation.getString(properties.DeviceName)),ret.addPropertyResult("ebs","Ebs",properties.Ebs!=null?CfnLaunchConfigurationBlockDevicePropertyFromCloudFormation(properties.Ebs):void 0),ret.addPropertyResult("noDevice","NoDevice",properties.NoDevice!=null?cfn_parse.FromCloudFormation.getBoolean(properties.NoDevice):void 0),ret.addPropertyResult("virtualName","VirtualName",properties.VirtualName!=null?cfn_parse.FromCloudFormation.getString(properties.VirtualName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchConfiguration_MetadataOptionsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("httpEndpoint",cdk.validateString)(properties.httpEndpoint)),errors.collect(cdk.propertyValidator("httpPutResponseHopLimit",cdk.validateNumber)(properties.httpPutResponseHopLimit)),errors.collect(cdk.propertyValidator("httpTokens",cdk.validateString)(properties.httpTokens)),errors.wrap('supplied properties not correct for "MetadataOptionsProperty"')}function cfnLaunchConfigurationMetadataOptionsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchConfiguration_MetadataOptionsPropertyValidator(properties).assertSuccess(),{HttpEndpoint:cdk.stringToCloudFormation(properties.httpEndpoint),HttpPutResponseHopLimit:cdk.numberToCloudFormation(properties.httpPutResponseHopLimit),HttpTokens:cdk.stringToCloudFormation(properties.httpTokens)}):properties}function CfnLaunchConfigurationMetadataOptionsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("httpEndpoint","HttpEndpoint",properties.HttpEndpoint!=null?cfn_parse.FromCloudFormation.getString(properties.HttpEndpoint):void 0),ret.addPropertyResult("httpPutResponseHopLimit","HttpPutResponseHopLimit",properties.HttpPutResponseHopLimit!=null?cfn_parse.FromCloudFormation.getNumber(properties.HttpPutResponseHopLimit):void 0),ret.addPropertyResult("httpTokens","HttpTokens",properties.HttpTokens!=null?cfn_parse.FromCloudFormation.getString(properties.HttpTokens):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLifecycleHookPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.requiredValidator)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.validateString)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("defaultResult",cdk.validateString)(properties.defaultResult)),errors.collect(cdk.propertyValidator("heartbeatTimeout",cdk.validateNumber)(properties.heartbeatTimeout)),errors.collect(cdk.propertyValidator("lifecycleHookName",cdk.validateString)(properties.lifecycleHookName)),errors.collect(cdk.propertyValidator("lifecycleTransition",cdk.requiredValidator)(properties.lifecycleTransition)),errors.collect(cdk.propertyValidator("lifecycleTransition",cdk.validateString)(properties.lifecycleTransition)),errors.collect(cdk.propertyValidator("notificationMetadata",cdk.validateString)(properties.notificationMetadata)),errors.collect(cdk.propertyValidator("notificationTargetArn",cdk.validateString)(properties.notificationTargetArn)),errors.collect(cdk.propertyValidator("roleArn",cdk.validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "CfnLifecycleHookProps"')}function cfnLifecycleHookPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLifecycleHookPropsValidator(properties).assertSuccess(),{AutoScalingGroupName:cdk.stringToCloudFormation(properties.autoScalingGroupName),LifecycleTransition:cdk.stringToCloudFormation(properties.lifecycleTransition),DefaultResult:cdk.stringToCloudFormation(properties.defaultResult),HeartbeatTimeout:cdk.numberToCloudFormation(properties.heartbeatTimeout),LifecycleHookName:cdk.stringToCloudFormation(properties.lifecycleHookName),NotificationMetadata:cdk.stringToCloudFormation(properties.notificationMetadata),NotificationTargetARN:cdk.stringToCloudFormation(properties.notificationTargetArn),RoleARN:cdk.stringToCloudFormation(properties.roleArn)}):properties}function CfnLifecycleHookPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("autoScalingGroupName","AutoScalingGroupName",cfn_parse.FromCloudFormation.getString(properties.AutoScalingGroupName)),ret.addPropertyResult("lifecycleTransition","LifecycleTransition",cfn_parse.FromCloudFormation.getString(properties.LifecycleTransition)),ret.addPropertyResult("defaultResult","DefaultResult",properties.DefaultResult!=null?cfn_parse.FromCloudFormation.getString(properties.DefaultResult):void 0),ret.addPropertyResult("heartbeatTimeout","HeartbeatTimeout",properties.HeartbeatTimeout!=null?cfn_parse.FromCloudFormation.getNumber(properties.HeartbeatTimeout):void 0),ret.addPropertyResult("lifecycleHookName","LifecycleHookName",properties.LifecycleHookName!=null?cfn_parse.FromCloudFormation.getString(properties.LifecycleHookName):void 0),ret.addPropertyResult("notificationMetadata","NotificationMetadata",properties.NotificationMetadata!=null?cfn_parse.FromCloudFormation.getString(properties.NotificationMetadata):void 0),ret.addPropertyResult("notificationTargetArn","NotificationTargetARN",properties.NotificationTargetARN!=null?cfn_parse.FromCloudFormation.getString(properties.NotificationTargetARN):void 0),ret.addPropertyResult("roleArn","RoleARN",properties.RoleARN!=null?cfn_parse.FromCloudFormation.getString(properties.RoleARN):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLifecycleHook extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnLifecycleHook.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CfnLifecycleHookProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLifecycleHook),error}cdk.requireProperty(props,"autoScalingGroupName",this),cdk.requireProperty(props,"lifecycleTransition",this),this.autoScalingGroupName=props.autoScalingGroupName,this.lifecycleTransition=props.lifecycleTransition,this.defaultResult=props.defaultResult,this.heartbeatTimeout=props.heartbeatTimeout,this.lifecycleHookName=props.lifecycleHookName,this.notificationMetadata=props.notificationMetadata,this.notificationTargetArn=props.notificationTargetArn,this.roleArn=props.roleArn}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLifecycleHookPropsFromCloudFormation(resourceProperties),ret=new CfnLifecycleHook(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnLifecycleHook.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{autoScalingGroupName:this.autoScalingGroupName,lifecycleTransition:this.lifecycleTransition,defaultResult:this.defaultResult,heartbeatTimeout:this.heartbeatTimeout,lifecycleHookName:this.lifecycleHookName,notificationMetadata:this.notificationMetadata,notificationTargetArn:this.notificationTargetArn,roleArn:this.roleArn}}renderProperties(props){return cfnLifecycleHookPropsToCloudFormation(props)}}exports.CfnLifecycleHook=CfnLifecycleHook,_c=JSII_RTTI_SYMBOL_1,CfnLifecycleHook[_c]={fqn:"aws-cdk-lib.aws_autoscaling.CfnLifecycleHook",version:"2.51.0"},CfnLifecycleHook.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::LifecycleHook";function CfnScalingPolicyPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("adjustmentType",cdk.validateString)(properties.adjustmentType)),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.requiredValidator)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.validateString)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("cooldown",cdk.validateString)(properties.cooldown)),errors.collect(cdk.propertyValidator("estimatedInstanceWarmup",cdk.validateNumber)(properties.estimatedInstanceWarmup)),errors.collect(cdk.propertyValidator("metricAggregationType",cdk.validateString)(properties.metricAggregationType)),errors.collect(cdk.propertyValidator("minAdjustmentMagnitude",cdk.validateNumber)(properties.minAdjustmentMagnitude)),errors.collect(cdk.propertyValidator("policyType",cdk.validateString)(properties.policyType)),errors.collect(cdk.propertyValidator("predictiveScalingConfiguration",CfnScalingPolicy_PredictiveScalingConfigurationPropertyValidator)(properties.predictiveScalingConfiguration)),errors.collect(cdk.propertyValidator("scalingAdjustment",cdk.validateNumber)(properties.scalingAdjustment)),errors.collect(cdk.propertyValidator("stepAdjustments",cdk.listValidator(CfnScalingPolicy_StepAdjustmentPropertyValidator))(properties.stepAdjustments)),errors.collect(cdk.propertyValidator("targetTrackingConfiguration",CfnScalingPolicy_TargetTrackingConfigurationPropertyValidator)(properties.targetTrackingConfiguration)),errors.wrap('supplied properties not correct for "CfnScalingPolicyProps"')}function cfnScalingPolicyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicyPropsValidator(properties).assertSuccess(),{AutoScalingGroupName:cdk.stringToCloudFormation(properties.autoScalingGroupName),AdjustmentType:cdk.stringToCloudFormation(properties.adjustmentType),Cooldown:cdk.stringToCloudFormation(properties.cooldown),EstimatedInstanceWarmup:cdk.numberToCloudFormation(properties.estimatedInstanceWarmup),MetricAggregationType:cdk.stringToCloudFormation(properties.metricAggregationType),MinAdjustmentMagnitude:cdk.numberToCloudFormation(properties.minAdjustmentMagnitude),PolicyType:cdk.stringToCloudFormation(properties.policyType),PredictiveScalingConfiguration:cfnScalingPolicyPredictiveScalingConfigurationPropertyToCloudFormation(properties.predictiveScalingConfiguration),ScalingAdjustment:cdk.numberToCloudFormation(properties.scalingAdjustment),StepAdjustments:cdk.listMapper(cfnScalingPolicyStepAdjustmentPropertyToCloudFormation)(properties.stepAdjustments),TargetTrackingConfiguration:cfnScalingPolicyTargetTrackingConfigurationPropertyToCloudFormation(properties.targetTrackingConfiguration)}):properties}function CfnScalingPolicyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("autoScalingGroupName","AutoScalingGroupName",cfn_parse.FromCloudFormation.getString(properties.AutoScalingGroupName)),ret.addPropertyResult("adjustmentType","AdjustmentType",properties.AdjustmentType!=null?cfn_parse.FromCloudFormation.getString(properties.AdjustmentType):void 0),ret.addPropertyResult("cooldown","Cooldown",properties.Cooldown!=null?cfn_parse.FromCloudFormation.getString(properties.Cooldown):void 0),ret.addPropertyResult("estimatedInstanceWarmup","EstimatedInstanceWarmup",properties.EstimatedInstanceWarmup!=null?cfn_parse.FromCloudFormation.getNumber(properties.EstimatedInstanceWarmup):void 0),ret.addPropertyResult("metricAggregationType","MetricAggregationType",properties.MetricAggregationType!=null?cfn_parse.FromCloudFormation.getString(properties.MetricAggregationType):void 0),ret.addPropertyResult("minAdjustmentMagnitude","MinAdjustmentMagnitude",properties.MinAdjustmentMagnitude!=null?cfn_parse.FromCloudFormation.getNumber(properties.MinAdjustmentMagnitude):void 0),ret.addPropertyResult("policyType","PolicyType",properties.PolicyType!=null?cfn_parse.FromCloudFormation.getString(properties.PolicyType):void 0),ret.addPropertyResult("predictiveScalingConfiguration","PredictiveScalingConfiguration",properties.PredictiveScalingConfiguration!=null?CfnScalingPolicyPredictiveScalingConfigurationPropertyFromCloudFormation(properties.PredictiveScalingConfiguration):void 0),ret.addPropertyResult("scalingAdjustment","ScalingAdjustment",properties.ScalingAdjustment!=null?cfn_parse.FromCloudFormation.getNumber(properties.ScalingAdjustment):void 0),ret.addPropertyResult("stepAdjustments","StepAdjustments",properties.StepAdjustments!=null?cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyStepAdjustmentPropertyFromCloudFormation)(properties.StepAdjustments):void 0),ret.addPropertyResult("targetTrackingConfiguration","TargetTrackingConfiguration",properties.TargetTrackingConfiguration!=null?CfnScalingPolicyTargetTrackingConfigurationPropertyFromCloudFormation(properties.TargetTrackingConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnScalingPolicy extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnScalingPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CfnScalingPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnScalingPolicy),error}cdk.requireProperty(props,"autoScalingGroupName",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn")),this.attrPolicyName=cdk.Token.asString(this.getAtt("PolicyName")),this.autoScalingGroupName=props.autoScalingGroupName,this.adjustmentType=props.adjustmentType,this.cooldown=props.cooldown,this.estimatedInstanceWarmup=props.estimatedInstanceWarmup,this.metricAggregationType=props.metricAggregationType,this.minAdjustmentMagnitude=props.minAdjustmentMagnitude,this.policyType=props.policyType,this.predictiveScalingConfiguration=props.predictiveScalingConfiguration,this.scalingAdjustment=props.scalingAdjustment,this.stepAdjustments=props.stepAdjustments,this.targetTrackingConfiguration=props.targetTrackingConfiguration}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnScalingPolicyPropsFromCloudFormation(resourceProperties),ret=new CfnScalingPolicy(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnScalingPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{autoScalingGroupName:this.autoScalingGroupName,adjustmentType:this.adjustmentType,cooldown:this.cooldown,estimatedInstanceWarmup:this.estimatedInstanceWarmup,metricAggregationType:this.metricAggregationType,minAdjustmentMagnitude:this.minAdjustmentMagnitude,policyType:this.policyType,predictiveScalingConfiguration:this.predictiveScalingConfiguration,scalingAdjustment:this.scalingAdjustment,stepAdjustments:this.stepAdjustments,targetTrackingConfiguration:this.targetTrackingConfiguration}}renderProperties(props){return cfnScalingPolicyPropsToCloudFormation(props)}}exports.CfnScalingPolicy=CfnScalingPolicy,_d=JSII_RTTI_SYMBOL_1,CfnScalingPolicy[_d]={fqn:"aws-cdk-lib.aws_autoscaling.CfnScalingPolicy",version:"2.51.0"},CfnScalingPolicy.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::ScalingPolicy";function CfnScalingPolicy_CustomizedMetricSpecificationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("dimensions",cdk.listValidator(CfnScalingPolicy_MetricDimensionPropertyValidator))(properties.dimensions)),errors.collect(cdk.propertyValidator("metricName",cdk.requiredValidator)(properties.metricName)),errors.collect(cdk.propertyValidator("metricName",cdk.validateString)(properties.metricName)),errors.collect(cdk.propertyValidator("namespace",cdk.requiredValidator)(properties.namespace)),errors.collect(cdk.propertyValidator("namespace",cdk.validateString)(properties.namespace)),errors.collect(cdk.propertyValidator("statistic",cdk.requiredValidator)(properties.statistic)),errors.collect(cdk.propertyValidator("statistic",cdk.validateString)(properties.statistic)),errors.collect(cdk.propertyValidator("unit",cdk.validateString)(properties.unit)),errors.wrap('supplied properties not correct for "CustomizedMetricSpecificationProperty"')}function cfnScalingPolicyCustomizedMetricSpecificationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_CustomizedMetricSpecificationPropertyValidator(properties).assertSuccess(),{Dimensions:cdk.listMapper(cfnScalingPolicyMetricDimensionPropertyToCloudFormation)(properties.dimensions),MetricName:cdk.stringToCloudFormation(properties.metricName),Namespace:cdk.stringToCloudFormation(properties.namespace),Statistic:cdk.stringToCloudFormation(properties.statistic),Unit:cdk.stringToCloudFormation(properties.unit)}):properties}function CfnScalingPolicyCustomizedMetricSpecificationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("dimensions","Dimensions",properties.Dimensions!=null?cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyMetricDimensionPropertyFromCloudFormation)(properties.Dimensions):void 0),ret.addPropertyResult("metricName","MetricName",cfn_parse.FromCloudFormation.getString(properties.MetricName)),ret.addPropertyResult("namespace","Namespace",cfn_parse.FromCloudFormation.getString(properties.Namespace)),ret.addPropertyResult("statistic","Statistic",cfn_parse.FromCloudFormation.getString(properties.Statistic)),ret.addPropertyResult("unit","Unit",properties.Unit!=null?cfn_parse.FromCloudFormation.getString(properties.Unit):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_MetricPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("dimensions",cdk.listValidator(CfnScalingPolicy_MetricDimensionPropertyValidator))(properties.dimensions)),errors.collect(cdk.propertyValidator("metricName",cdk.requiredValidator)(properties.metricName)),errors.collect(cdk.propertyValidator("metricName",cdk.validateString)(properties.metricName)),errors.collect(cdk.propertyValidator("namespace",cdk.requiredValidator)(properties.namespace)),errors.collect(cdk.propertyValidator("namespace",cdk.validateString)(properties.namespace)),errors.wrap('supplied properties not correct for "MetricProperty"')}function cfnScalingPolicyMetricPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_MetricPropertyValidator(properties).assertSuccess(),{Dimensions:cdk.listMapper(cfnScalingPolicyMetricDimensionPropertyToCloudFormation)(properties.dimensions),MetricName:cdk.stringToCloudFormation(properties.metricName),Namespace:cdk.stringToCloudFormation(properties.namespace)}):properties}function CfnScalingPolicyMetricPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("dimensions","Dimensions",properties.Dimensions!=null?cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyMetricDimensionPropertyFromCloudFormation)(properties.Dimensions):void 0),ret.addPropertyResult("metricName","MetricName",cfn_parse.FromCloudFormation.getString(properties.MetricName)),ret.addPropertyResult("namespace","Namespace",cfn_parse.FromCloudFormation.getString(properties.Namespace)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_MetricDataQueryPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("expression",cdk.validateString)(properties.expression)),errors.collect(cdk.propertyValidator("id",cdk.requiredValidator)(properties.id)),errors.collect(cdk.propertyValidator("id",cdk.validateString)(properties.id)),errors.collect(cdk.propertyValidator("label",cdk.validateString)(properties.label)),errors.collect(cdk.propertyValidator("metricStat",CfnScalingPolicy_MetricStatPropertyValidator)(properties.metricStat)),errors.collect(cdk.propertyValidator("returnData",cdk.validateBoolean)(properties.returnData)),errors.wrap('supplied properties not correct for "MetricDataQueryProperty"')}function cfnScalingPolicyMetricDataQueryPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_MetricDataQueryPropertyValidator(properties).assertSuccess(),{Expression:cdk.stringToCloudFormation(properties.expression),Id:cdk.stringToCloudFormation(properties.id),Label:cdk.stringToCloudFormation(properties.label),MetricStat:cfnScalingPolicyMetricStatPropertyToCloudFormation(properties.metricStat),ReturnData:cdk.booleanToCloudFormation(properties.returnData)}):properties}function CfnScalingPolicyMetricDataQueryPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("expression","Expression",properties.Expression!=null?cfn_parse.FromCloudFormation.getString(properties.Expression):void 0),ret.addPropertyResult("id","Id",cfn_parse.FromCloudFormation.getString(properties.Id)),ret.addPropertyResult("label","Label",properties.Label!=null?cfn_parse.FromCloudFormation.getString(properties.Label):void 0),ret.addPropertyResult("metricStat","MetricStat",properties.MetricStat!=null?CfnScalingPolicyMetricStatPropertyFromCloudFormation(properties.MetricStat):void 0),ret.addPropertyResult("returnData","ReturnData",properties.ReturnData!=null?cfn_parse.FromCloudFormation.getBoolean(properties.ReturnData):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_MetricDimensionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("value",cdk.requiredValidator)(properties.value)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "MetricDimensionProperty"')}function cfnScalingPolicyMetricDimensionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_MetricDimensionPropertyValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnScalingPolicyMetricDimensionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_MetricStatPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("metric",cdk.requiredValidator)(properties.metric)),errors.collect(cdk.propertyValidator("metric",CfnScalingPolicy_MetricPropertyValidator)(properties.metric)),errors.collect(cdk.propertyValidator("stat",cdk.requiredValidator)(properties.stat)),errors.collect(cdk.propertyValidator("stat",cdk.validateString)(properties.stat)),errors.collect(cdk.propertyValidator("unit",cdk.validateString)(properties.unit)),errors.wrap('supplied properties not correct for "MetricStatProperty"')}function cfnScalingPolicyMetricStatPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_MetricStatPropertyValidator(properties).assertSuccess(),{Metric:cfnScalingPolicyMetricPropertyToCloudFormation(properties.metric),Stat:cdk.stringToCloudFormation(properties.stat),Unit:cdk.stringToCloudFormation(properties.unit)}):properties}function CfnScalingPolicyMetricStatPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("metric","Metric",CfnScalingPolicyMetricPropertyFromCloudFormation(properties.Metric)),ret.addPropertyResult("stat","Stat",cfn_parse.FromCloudFormation.getString(properties.Stat)),ret.addPropertyResult("unit","Unit",properties.Unit!=null?cfn_parse.FromCloudFormation.getString(properties.Unit):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredefinedMetricSpecificationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.requiredValidator)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.validateString)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("resourceLabel",cdk.validateString)(properties.resourceLabel)),errors.wrap('supplied properties not correct for "PredefinedMetricSpecificationProperty"')}function cfnScalingPolicyPredefinedMetricSpecificationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredefinedMetricSpecificationPropertyValidator(properties).assertSuccess(),{PredefinedMetricType:cdk.stringToCloudFormation(properties.predefinedMetricType),ResourceLabel:cdk.stringToCloudFormation(properties.resourceLabel)}):properties}function CfnScalingPolicyPredefinedMetricSpecificationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("predefinedMetricType","PredefinedMetricType",cfn_parse.FromCloudFormation.getString(properties.PredefinedMetricType)),ret.addPropertyResult("resourceLabel","ResourceLabel",properties.ResourceLabel!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceLabel):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("maxCapacityBreachBehavior",cdk.validateString)(properties.maxCapacityBreachBehavior)),errors.collect(cdk.propertyValidator("maxCapacityBuffer",cdk.validateNumber)(properties.maxCapacityBuffer)),errors.collect(cdk.propertyValidator("metricSpecifications",cdk.requiredValidator)(properties.metricSpecifications)),errors.collect(cdk.propertyValidator("metricSpecifications",cdk.listValidator(CfnScalingPolicy_PredictiveScalingMetricSpecificationPropertyValidator))(properties.metricSpecifications)),errors.collect(cdk.propertyValidator("mode",cdk.validateString)(properties.mode)),errors.collect(cdk.propertyValidator("schedulingBufferTime",cdk.validateNumber)(properties.schedulingBufferTime)),errors.wrap('supplied properties not correct for "PredictiveScalingConfigurationProperty"')}function cfnScalingPolicyPredictiveScalingConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingConfigurationPropertyValidator(properties).assertSuccess(),{MaxCapacityBreachBehavior:cdk.stringToCloudFormation(properties.maxCapacityBreachBehavior),MaxCapacityBuffer:cdk.numberToCloudFormation(properties.maxCapacityBuffer),MetricSpecifications:cdk.listMapper(cfnScalingPolicyPredictiveScalingMetricSpecificationPropertyToCloudFormation)(properties.metricSpecifications),Mode:cdk.stringToCloudFormation(properties.mode),SchedulingBufferTime:cdk.numberToCloudFormation(properties.schedulingBufferTime)}):properties}function CfnScalingPolicyPredictiveScalingConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("maxCapacityBreachBehavior","MaxCapacityBreachBehavior",properties.MaxCapacityBreachBehavior!=null?cfn_parse.FromCloudFormation.getString(properties.MaxCapacityBreachBehavior):void 0),ret.addPropertyResult("maxCapacityBuffer","MaxCapacityBuffer",properties.MaxCapacityBuffer!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxCapacityBuffer):void 0),ret.addPropertyResult("metricSpecifications","MetricSpecifications",cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyPredictiveScalingMetricSpecificationPropertyFromCloudFormation)(properties.MetricSpecifications)),ret.addPropertyResult("mode","Mode",properties.Mode!=null?cfn_parse.FromCloudFormation.getString(properties.Mode):void 0),ret.addPropertyResult("schedulingBufferTime","SchedulingBufferTime",properties.SchedulingBufferTime!=null?cfn_parse.FromCloudFormation.getNumber(properties.SchedulingBufferTime):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingCustomizedCapacityMetricPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("metricDataQueries",cdk.requiredValidator)(properties.metricDataQueries)),errors.collect(cdk.propertyValidator("metricDataQueries",cdk.listValidator(CfnScalingPolicy_MetricDataQueryPropertyValidator))(properties.metricDataQueries)),errors.wrap('supplied properties not correct for "PredictiveScalingCustomizedCapacityMetricProperty"')}function cfnScalingPolicyPredictiveScalingCustomizedCapacityMetricPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingCustomizedCapacityMetricPropertyValidator(properties).assertSuccess(),{MetricDataQueries:cdk.listMapper(cfnScalingPolicyMetricDataQueryPropertyToCloudFormation)(properties.metricDataQueries)}):properties}function CfnScalingPolicyPredictiveScalingCustomizedCapacityMetricPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("metricDataQueries","MetricDataQueries",cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyMetricDataQueryPropertyFromCloudFormation)(properties.MetricDataQueries)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingCustomizedLoadMetricPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("metricDataQueries",cdk.requiredValidator)(properties.metricDataQueries)),errors.collect(cdk.propertyValidator("metricDataQueries",cdk.listValidator(CfnScalingPolicy_MetricDataQueryPropertyValidator))(properties.metricDataQueries)),errors.wrap('supplied properties not correct for "PredictiveScalingCustomizedLoadMetricProperty"')}function cfnScalingPolicyPredictiveScalingCustomizedLoadMetricPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingCustomizedLoadMetricPropertyValidator(properties).assertSuccess(),{MetricDataQueries:cdk.listMapper(cfnScalingPolicyMetricDataQueryPropertyToCloudFormation)(properties.metricDataQueries)}):properties}function CfnScalingPolicyPredictiveScalingCustomizedLoadMetricPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("metricDataQueries","MetricDataQueries",cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyMetricDataQueryPropertyFromCloudFormation)(properties.MetricDataQueries)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingCustomizedScalingMetricPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("metricDataQueries",cdk.requiredValidator)(properties.metricDataQueries)),errors.collect(cdk.propertyValidator("metricDataQueries",cdk.listValidator(CfnScalingPolicy_MetricDataQueryPropertyValidator))(properties.metricDataQueries)),errors.wrap('supplied properties not correct for "PredictiveScalingCustomizedScalingMetricProperty"')}function cfnScalingPolicyPredictiveScalingCustomizedScalingMetricPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingCustomizedScalingMetricPropertyValidator(properties).assertSuccess(),{MetricDataQueries:cdk.listMapper(cfnScalingPolicyMetricDataQueryPropertyToCloudFormation)(properties.metricDataQueries)}):properties}function CfnScalingPolicyPredictiveScalingCustomizedScalingMetricPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("metricDataQueries","MetricDataQueries",cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyMetricDataQueryPropertyFromCloudFormation)(properties.MetricDataQueries)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingMetricSpecificationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("customizedCapacityMetricSpecification",CfnScalingPolicy_PredictiveScalingCustomizedCapacityMetricPropertyValidator)(properties.customizedCapacityMetricSpecification)),errors.collect(cdk.propertyValidator("customizedLoadMetricSpecification",CfnScalingPolicy_PredictiveScalingCustomizedLoadMetricPropertyValidator)(properties.customizedLoadMetricSpecification)),errors.collect(cdk.propertyValidator("customizedScalingMetricSpecification",CfnScalingPolicy_PredictiveScalingCustomizedScalingMetricPropertyValidator)(properties.customizedScalingMetricSpecification)),errors.collect(cdk.propertyValidator("predefinedLoadMetricSpecification",CfnScalingPolicy_PredictiveScalingPredefinedLoadMetricPropertyValidator)(properties.predefinedLoadMetricSpecification)),errors.collect(cdk.propertyValidator("predefinedMetricPairSpecification",CfnScalingPolicy_PredictiveScalingPredefinedMetricPairPropertyValidator)(properties.predefinedMetricPairSpecification)),errors.collect(cdk.propertyValidator("predefinedScalingMetricSpecification",CfnScalingPolicy_PredictiveScalingPredefinedScalingMetricPropertyValidator)(properties.predefinedScalingMetricSpecification)),errors.collect(cdk.propertyValidator("targetValue",cdk.requiredValidator)(properties.targetValue)),errors.collect(cdk.propertyValidator("targetValue",cdk.validateNumber)(properties.targetValue)),errors.wrap('supplied properties not correct for "PredictiveScalingMetricSpecificationProperty"')}function cfnScalingPolicyPredictiveScalingMetricSpecificationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingMetricSpecificationPropertyValidator(properties).assertSuccess(),{CustomizedCapacityMetricSpecification:cfnScalingPolicyPredictiveScalingCustomizedCapacityMetricPropertyToCloudFormation(properties.customizedCapacityMetricSpecification),CustomizedLoadMetricSpecification:cfnScalingPolicyPredictiveScalingCustomizedLoadMetricPropertyToCloudFormation(properties.customizedLoadMetricSpecification),CustomizedScalingMetricSpecification:cfnScalingPolicyPredictiveScalingCustomizedScalingMetricPropertyToCloudFormation(properties.customizedScalingMetricSpecification),PredefinedLoadMetricSpecification:cfnScalingPolicyPredictiveScalingPredefinedLoadMetricPropertyToCloudFormation(properties.predefinedLoadMetricSpecification),PredefinedMetricPairSpecification:cfnScalingPolicyPredictiveScalingPredefinedMetricPairPropertyToCloudFormation(properties.predefinedMetricPairSpecification),PredefinedScalingMetricSpecification:cfnScalingPolicyPredictiveScalingPredefinedScalingMetricPropertyToCloudFormation(properties.predefinedScalingMetricSpecification),TargetValue:cdk.numberToCloudFormation(properties.targetValue)}):properties}function CfnScalingPolicyPredictiveScalingMetricSpecificationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("customizedCapacityMetricSpecification","CustomizedCapacityMetricSpecification",properties.CustomizedCapacityMetricSpecification!=null?CfnScalingPolicyPredictiveScalingCustomizedCapacityMetricPropertyFromCloudFormation(properties.CustomizedCapacityMetricSpecification):void 0),ret.addPropertyResult("customizedLoadMetricSpecification","CustomizedLoadMetricSpecification",properties.CustomizedLoadMetricSpecification!=null?CfnScalingPolicyPredictiveScalingCustomizedLoadMetricPropertyFromCloudFormation(properties.CustomizedLoadMetricSpecification):void 0),ret.addPropertyResult("customizedScalingMetricSpecification","CustomizedScalingMetricSpecification",properties.CustomizedScalingMetricSpecification!=null?CfnScalingPolicyPredictiveScalingCustomizedScalingMetricPropertyFromCloudFormation(properties.CustomizedScalingMetricSpecification):void 0),ret.addPropertyResult("predefinedLoadMetricSpecification","PredefinedLoadMetricSpecification",properties.PredefinedLoadMetricSpecification!=null?CfnScalingPolicyPredictiveScalingPredefinedLoadMetricPropertyFromCloudFormation(properties.PredefinedLoadMetricSpecification):void 0),ret.addPropertyResult("predefinedMetricPairSpecification","PredefinedMetricPairSpecification",properties.PredefinedMetricPairSpecification!=null?CfnScalingPolicyPredictiveScalingPredefinedMetricPairPropertyFromCloudFormation(properties.PredefinedMetricPairSpecification):void 0),ret.addPropertyResult("predefinedScalingMetricSpecification","PredefinedScalingMetricSpecification",properties.PredefinedScalingMetricSpecification!=null?CfnScalingPolicyPredictiveScalingPredefinedScalingMetricPropertyFromCloudFormation(properties.PredefinedScalingMetricSpecification):void 0),ret.addPropertyResult("targetValue","TargetValue",cfn_parse.FromCloudFormation.getNumber(properties.TargetValue)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingPredefinedLoadMetricPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.requiredValidator)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.validateString)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("resourceLabel",cdk.validateString)(properties.resourceLabel)),errors.wrap('supplied properties not correct for "PredictiveScalingPredefinedLoadMetricProperty"')}function cfnScalingPolicyPredictiveScalingPredefinedLoadMetricPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingPredefinedLoadMetricPropertyValidator(properties).assertSuccess(),{PredefinedMetricType:cdk.stringToCloudFormation(properties.predefinedMetricType),ResourceLabel:cdk.stringToCloudFormation(properties.resourceLabel)}):properties}function CfnScalingPolicyPredictiveScalingPredefinedLoadMetricPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("predefinedMetricType","PredefinedMetricType",cfn_parse.FromCloudFormation.getString(properties.PredefinedMetricType)),ret.addPropertyResult("resourceLabel","ResourceLabel",properties.ResourceLabel!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceLabel):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingPredefinedMetricPairPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.requiredValidator)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.validateString)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("resourceLabel",cdk.validateString)(properties.resourceLabel)),errors.wrap('supplied properties not correct for "PredictiveScalingPredefinedMetricPairProperty"')}function cfnScalingPolicyPredictiveScalingPredefinedMetricPairPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingPredefinedMetricPairPropertyValidator(properties).assertSuccess(),{PredefinedMetricType:cdk.stringToCloudFormation(properties.predefinedMetricType),ResourceLabel:cdk.stringToCloudFormation(properties.resourceLabel)}):properties}function CfnScalingPolicyPredictiveScalingPredefinedMetricPairPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("predefinedMetricType","PredefinedMetricType",cfn_parse.FromCloudFormation.getString(properties.PredefinedMetricType)),ret.addPropertyResult("resourceLabel","ResourceLabel",properties.ResourceLabel!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceLabel):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingPredefinedScalingMetricPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.requiredValidator)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.validateString)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("resourceLabel",cdk.validateString)(properties.resourceLabel)),errors.wrap('supplied properties not correct for "PredictiveScalingPredefinedScalingMetricProperty"')}function cfnScalingPolicyPredictiveScalingPredefinedScalingMetricPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingPredefinedScalingMetricPropertyValidator(properties).assertSuccess(),{PredefinedMetricType:cdk.stringToCloudFormation(properties.predefinedMetricType),ResourceLabel:cdk.stringToCloudFormation(properties.resourceLabel)}):properties}function CfnScalingPolicyPredictiveScalingPredefinedScalingMetricPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("predefinedMetricType","PredefinedMetricType",cfn_parse.FromCloudFormation.getString(properties.PredefinedMetricType)),ret.addPropertyResult("resourceLabel","ResourceLabel",properties.ResourceLabel!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceLabel):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_StepAdjustmentPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("metricIntervalLowerBound",cdk.validateNumber)(properties.metricIntervalLowerBound)),errors.collect(cdk.propertyValidator("metricIntervalUpperBound",cdk.validateNumber)(properties.metricIntervalUpperBound)),errors.collect(cdk.propertyValidator("scalingAdjustment",cdk.requiredValidator)(properties.scalingAdjustment)),errors.collect(cdk.propertyValidator("scalingAdjustment",cdk.validateNumber)(properties.scalingAdjustment)),errors.wrap('supplied properties not correct for "StepAdjustmentProperty"')}function cfnScalingPolicyStepAdjustmentPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_StepAdjustmentPropertyValidator(properties).assertSuccess(),{MetricIntervalLowerBound:cdk.numberToCloudFormation(properties.metricIntervalLowerBound),MetricIntervalUpperBound:cdk.numberToCloudFormation(properties.metricIntervalUpperBound),ScalingAdjustment:cdk.numberToCloudFormation(properties.scalingAdjustment)}):properties}function CfnScalingPolicyStepAdjustmentPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("metricIntervalLowerBound","MetricIntervalLowerBound",properties.MetricIntervalLowerBound!=null?cfn_parse.FromCloudFormation.getNumber(properties.MetricIntervalLowerBound):void 0),ret.addPropertyResult("metricIntervalUpperBound","MetricIntervalUpperBound",properties.MetricIntervalUpperBound!=null?cfn_parse.FromCloudFormation.getNumber(properties.MetricIntervalUpperBound):void 0),ret.addPropertyResult("scalingAdjustment","ScalingAdjustment",cfn_parse.FromCloudFormation.getNumber(properties.ScalingAdjustment)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_TargetTrackingConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("customizedMetricSpecification",CfnScalingPolicy_CustomizedMetricSpecificationPropertyValidator)(properties.customizedMetricSpecification)),errors.collect(cdk.propertyValidator("disableScaleIn",cdk.validateBoolean)(properties.disableScaleIn)),errors.collect(cdk.propertyValidator("predefinedMetricSpecification",CfnScalingPolicy_PredefinedMetricSpecificationPropertyValidator)(properties.predefinedMetricSpecification)),errors.collect(cdk.propertyValidator("targetValue",cdk.requiredValidator)(properties.targetValue)),errors.collect(cdk.propertyValidator("targetValue",cdk.validateNumber)(properties.targetValue)),errors.wrap('supplied properties not correct for "TargetTrackingConfigurationProperty"')}function cfnScalingPolicyTargetTrackingConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_TargetTrackingConfigurationPropertyValidator(properties).assertSuccess(),{CustomizedMetricSpecification:cfnScalingPolicyCustomizedMetricSpecificationPropertyToCloudFormation(properties.customizedMetricSpecification),DisableScaleIn:cdk.booleanToCloudFormation(properties.disableScaleIn),PredefinedMetricSpecification:cfnScalingPolicyPredefinedMetricSpecificationPropertyToCloudFormation(properties.predefinedMetricSpecification),TargetValue:cdk.numberToCloudFormation(properties.targetValue)}):properties}function CfnScalingPolicyTargetTrackingConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("customizedMetricSpecification","CustomizedMetricSpecification",properties.CustomizedMetricSpecification!=null?CfnScalingPolicyCustomizedMetricSpecificationPropertyFromCloudFormation(properties.CustomizedMetricSpecification):void 0),ret.addPropertyResult("disableScaleIn","DisableScaleIn",properties.DisableScaleIn!=null?cfn_parse.FromCloudFormation.getBoolean(properties.DisableScaleIn):void 0),ret.addPropertyResult("predefinedMetricSpecification","PredefinedMetricSpecification",properties.PredefinedMetricSpecification!=null?CfnScalingPolicyPredefinedMetricSpecificationPropertyFromCloudFormation(properties.PredefinedMetricSpecification):void 0),ret.addPropertyResult("targetValue","TargetValue",cfn_parse.FromCloudFormation.getNumber(properties.TargetValue)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledActionPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.requiredValidator)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.validateString)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("desiredCapacity",cdk.validateNumber)(properties.desiredCapacity)),errors.collect(cdk.propertyValidator("endTime",cdk.validateString)(properties.endTime)),errors.collect(cdk.propertyValidator("maxSize",cdk.validateNumber)(properties.maxSize)),errors.collect(cdk.propertyValidator("minSize",cdk.validateNumber)(properties.minSize)),errors.collect(cdk.propertyValidator("recurrence",cdk.validateString)(properties.recurrence)),errors.collect(cdk.propertyValidator("startTime",cdk.validateString)(properties.startTime)),errors.collect(cdk.propertyValidator("timeZone",cdk.validateString)(properties.timeZone)),errors.wrap('supplied properties not correct for "CfnScheduledActionProps"')}function cfnScheduledActionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScheduledActionPropsValidator(properties).assertSuccess(),{AutoScalingGroupName:cdk.stringToCloudFormation(properties.autoScalingGroupName),DesiredCapacity:cdk.numberToCloudFormation(properties.desiredCapacity),EndTime:cdk.stringToCloudFormation(properties.endTime),MaxSize:cdk.numberToCloudFormation(properties.maxSize),MinSize:cdk.numberToCloudFormation(properties.minSize),Recurrence:cdk.stringToCloudFormation(properties.recurrence),StartTime:cdk.stringToCloudFormation(properties.startTime),TimeZone:cdk.stringToCloudFormation(properties.timeZone)}):properties}function CfnScheduledActionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("autoScalingGroupName","AutoScalingGroupName",cfn_parse.FromCloudFormation.getString(properties.AutoScalingGroupName)),ret.addPropertyResult("desiredCapacity","DesiredCapacity",properties.DesiredCapacity!=null?cfn_parse.FromCloudFormation.getNumber(properties.DesiredCapacity):void 0),ret.addPropertyResult("endTime","EndTime",properties.EndTime!=null?cfn_parse.FromCloudFormation.getString(properties.EndTime):void 0),ret.addPropertyResult("maxSize","MaxSize",properties.MaxSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxSize):void 0),ret.addPropertyResult("minSize","MinSize",properties.MinSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.MinSize):void 0),ret.addPropertyResult("recurrence","Recurrence",properties.Recurrence!=null?cfn_parse.FromCloudFormation.getString(properties.Recurrence):void 0),ret.addPropertyResult("startTime","StartTime",properties.StartTime!=null?cfn_parse.FromCloudFormation.getString(properties.StartTime):void 0),ret.addPropertyResult("timeZone","TimeZone",properties.TimeZone!=null?cfn_parse.FromCloudFormation.getString(properties.TimeZone):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnScheduledAction extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnScheduledAction.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CfnScheduledActionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnScheduledAction),error}cdk.requireProperty(props,"autoScalingGroupName",this),this.attrScheduledActionName=cdk.Token.asString(this.getAtt("ScheduledActionName")),this.autoScalingGroupName=props.autoScalingGroupName,this.desiredCapacity=props.desiredCapacity,this.endTime=props.endTime,this.maxSize=props.maxSize,this.minSize=props.minSize,this.recurrence=props.recurrence,this.startTime=props.startTime,this.timeZone=props.timeZone}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnScheduledActionPropsFromCloudFormation(resourceProperties),ret=new CfnScheduledAction(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnScheduledAction.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{autoScalingGroupName:this.autoScalingGroupName,desiredCapacity:this.desiredCapacity,endTime:this.endTime,maxSize:this.maxSize,minSize:this.minSize,recurrence:this.recurrence,startTime:this.startTime,timeZone:this.timeZone}}renderProperties(props){return cfnScheduledActionPropsToCloudFormation(props)}}exports.CfnScheduledAction=CfnScheduledAction,_e=JSII_RTTI_SYMBOL_1,CfnScheduledAction[_e]={fqn:"aws-cdk-lib.aws_autoscaling.CfnScheduledAction",version:"2.51.0"},CfnScheduledAction.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::ScheduledAction";function CfnWarmPoolPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.requiredValidator)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.validateString)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("instanceReusePolicy",CfnWarmPool_InstanceReusePolicyPropertyValidator)(properties.instanceReusePolicy)),errors.collect(cdk.propertyValidator("maxGroupPreparedCapacity",cdk.validateNumber)(properties.maxGroupPreparedCapacity)),errors.collect(cdk.propertyValidator("minSize",cdk.validateNumber)(properties.minSize)),errors.collect(cdk.propertyValidator("poolState",cdk.validateString)(properties.poolState)),errors.wrap('supplied properties not correct for "CfnWarmPoolProps"')}function cfnWarmPoolPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnWarmPoolPropsValidator(properties).assertSuccess(),{AutoScalingGroupName:cdk.stringToCloudFormation(properties.autoScalingGroupName),InstanceReusePolicy:cfnWarmPoolInstanceReusePolicyPropertyToCloudFormation(properties.instanceReusePolicy),MaxGroupPreparedCapacity:cdk.numberToCloudFormation(properties.maxGroupPreparedCapacity),MinSize:cdk.numberToCloudFormation(properties.minSize),PoolState:cdk.stringToCloudFormation(properties.poolState)}):properties}function CfnWarmPoolPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("autoScalingGroupName","AutoScalingGroupName",cfn_parse.FromCloudFormation.getString(properties.AutoScalingGroupName)),ret.addPropertyResult("instanceReusePolicy","InstanceReusePolicy",properties.InstanceReusePolicy!=null?CfnWarmPoolInstanceReusePolicyPropertyFromCloudFormation(properties.InstanceReusePolicy):void 0),ret.addPropertyResult("maxGroupPreparedCapacity","MaxGroupPreparedCapacity",properties.MaxGroupPreparedCapacity!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxGroupPreparedCapacity):void 0),ret.addPropertyResult("minSize","MinSize",properties.MinSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.MinSize):void 0),ret.addPropertyResult("poolState","PoolState",properties.PoolState!=null?cfn_parse.FromCloudFormation.getString(properties.PoolState):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnWarmPool extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnWarmPool.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CfnWarmPoolProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnWarmPool),error}cdk.requireProperty(props,"autoScalingGroupName",this),this.autoScalingGroupName=props.autoScalingGroupName,this.instanceReusePolicy=props.instanceReusePolicy,this.maxGroupPreparedCapacity=props.maxGroupPreparedCapacity,this.minSize=props.minSize,this.poolState=props.poolState}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnWarmPoolPropsFromCloudFormation(resourceProperties),ret=new CfnWarmPool(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnWarmPool.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{autoScalingGroupName:this.autoScalingGroupName,instanceReusePolicy:this.instanceReusePolicy,maxGroupPreparedCapacity:this.maxGroupPreparedCapacity,minSize:this.minSize,poolState:this.poolState}}renderProperties(props){return cfnWarmPoolPropsToCloudFormation(props)}}exports.CfnWarmPool=CfnWarmPool,_f=JSII_RTTI_SYMBOL_1,CfnWarmPool[_f]={fqn:"aws-cdk-lib.aws_autoscaling.CfnWarmPool",version:"2.51.0"},CfnWarmPool.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::WarmPool";function CfnWarmPool_InstanceReusePolicyPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("reuseOnScaleIn",cdk.validateBoolean)(properties.reuseOnScaleIn)),errors.wrap('supplied properties not correct for "InstanceReusePolicyProperty"')}function cfnWarmPoolInstanceReusePolicyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnWarmPool_InstanceReusePolicyPropertyValidator(properties).assertSuccess(),{ReuseOnScaleIn:cdk.booleanToCloudFormation(properties.reuseOnScaleIn)}):properties}function CfnWarmPoolInstanceReusePolicyPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("reuseOnScaleIn","ReuseOnScaleIn",properties.ReuseOnScaleIn!=null?cfn_parse.FromCloudFormation.getBoolean(properties.ReuseOnScaleIn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}
|
|
1
|
+
"use strict";var _a,_b,_c,_d,_e,_f;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnWarmPool=exports.CfnScheduledAction=exports.CfnScalingPolicy=exports.CfnLifecycleHook=exports.CfnLaunchConfiguration=exports.CfnAutoScalingGroup=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnAutoScalingGroupPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.validateString)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("availabilityZones",cdk.listValidator(cdk.validateString))(properties.availabilityZones)),errors.collect(cdk.propertyValidator("capacityRebalance",cdk.validateBoolean)(properties.capacityRebalance)),errors.collect(cdk.propertyValidator("context",cdk.validateString)(properties.context)),errors.collect(cdk.propertyValidator("cooldown",cdk.validateString)(properties.cooldown)),errors.collect(cdk.propertyValidator("defaultInstanceWarmup",cdk.validateNumber)(properties.defaultInstanceWarmup)),errors.collect(cdk.propertyValidator("desiredCapacity",cdk.validateString)(properties.desiredCapacity)),errors.collect(cdk.propertyValidator("desiredCapacityType",cdk.validateString)(properties.desiredCapacityType)),errors.collect(cdk.propertyValidator("healthCheckGracePeriod",cdk.validateNumber)(properties.healthCheckGracePeriod)),errors.collect(cdk.propertyValidator("healthCheckType",cdk.validateString)(properties.healthCheckType)),errors.collect(cdk.propertyValidator("instanceId",cdk.validateString)(properties.instanceId)),errors.collect(cdk.propertyValidator("launchConfigurationName",cdk.validateString)(properties.launchConfigurationName)),errors.collect(cdk.propertyValidator("launchTemplate",CfnAutoScalingGroup_LaunchTemplateSpecificationPropertyValidator)(properties.launchTemplate)),errors.collect(cdk.propertyValidator("lifecycleHookSpecificationList",cdk.listValidator(CfnAutoScalingGroup_LifecycleHookSpecificationPropertyValidator))(properties.lifecycleHookSpecificationList)),errors.collect(cdk.propertyValidator("loadBalancerNames",cdk.listValidator(cdk.validateString))(properties.loadBalancerNames)),errors.collect(cdk.propertyValidator("maxInstanceLifetime",cdk.validateNumber)(properties.maxInstanceLifetime)),errors.collect(cdk.propertyValidator("maxSize",cdk.requiredValidator)(properties.maxSize)),errors.collect(cdk.propertyValidator("maxSize",cdk.validateString)(properties.maxSize)),errors.collect(cdk.propertyValidator("metricsCollection",cdk.listValidator(CfnAutoScalingGroup_MetricsCollectionPropertyValidator))(properties.metricsCollection)),errors.collect(cdk.propertyValidator("minSize",cdk.requiredValidator)(properties.minSize)),errors.collect(cdk.propertyValidator("minSize",cdk.validateString)(properties.minSize)),errors.collect(cdk.propertyValidator("mixedInstancesPolicy",CfnAutoScalingGroup_MixedInstancesPolicyPropertyValidator)(properties.mixedInstancesPolicy)),errors.collect(cdk.propertyValidator("newInstancesProtectedFromScaleIn",cdk.validateBoolean)(properties.newInstancesProtectedFromScaleIn)),errors.collect(cdk.propertyValidator("notificationConfigurations",cdk.listValidator(CfnAutoScalingGroup_NotificationConfigurationPropertyValidator))(properties.notificationConfigurations)),errors.collect(cdk.propertyValidator("placementGroup",cdk.validateString)(properties.placementGroup)),errors.collect(cdk.propertyValidator("serviceLinkedRoleArn",cdk.validateString)(properties.serviceLinkedRoleArn)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(CfnAutoScalingGroup_TagPropertyPropertyValidator))(properties.tags)),errors.collect(cdk.propertyValidator("targetGroupArns",cdk.listValidator(cdk.validateString))(properties.targetGroupArns)),errors.collect(cdk.propertyValidator("terminationPolicies",cdk.listValidator(cdk.validateString))(properties.terminationPolicies)),errors.collect(cdk.propertyValidator("vpcZoneIdentifier",cdk.listValidator(cdk.validateString))(properties.vpcZoneIdentifier)),errors.wrap('supplied properties not correct for "CfnAutoScalingGroupProps"')}function cfnAutoScalingGroupPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroupPropsValidator(properties).assertSuccess(),{MaxSize:cdk.stringToCloudFormation(properties.maxSize),MinSize:cdk.stringToCloudFormation(properties.minSize),AutoScalingGroupName:cdk.stringToCloudFormation(properties.autoScalingGroupName),AvailabilityZones:cdk.listMapper(cdk.stringToCloudFormation)(properties.availabilityZones),CapacityRebalance:cdk.booleanToCloudFormation(properties.capacityRebalance),Context:cdk.stringToCloudFormation(properties.context),Cooldown:cdk.stringToCloudFormation(properties.cooldown),DefaultInstanceWarmup:cdk.numberToCloudFormation(properties.defaultInstanceWarmup),DesiredCapacity:cdk.stringToCloudFormation(properties.desiredCapacity),DesiredCapacityType:cdk.stringToCloudFormation(properties.desiredCapacityType),HealthCheckGracePeriod:cdk.numberToCloudFormation(properties.healthCheckGracePeriod),HealthCheckType:cdk.stringToCloudFormation(properties.healthCheckType),InstanceId:cdk.stringToCloudFormation(properties.instanceId),LaunchConfigurationName:cdk.stringToCloudFormation(properties.launchConfigurationName),LaunchTemplate:cfnAutoScalingGroupLaunchTemplateSpecificationPropertyToCloudFormation(properties.launchTemplate),LifecycleHookSpecificationList:cdk.listMapper(cfnAutoScalingGroupLifecycleHookSpecificationPropertyToCloudFormation)(properties.lifecycleHookSpecificationList),LoadBalancerNames:cdk.listMapper(cdk.stringToCloudFormation)(properties.loadBalancerNames),MaxInstanceLifetime:cdk.numberToCloudFormation(properties.maxInstanceLifetime),MetricsCollection:cdk.listMapper(cfnAutoScalingGroupMetricsCollectionPropertyToCloudFormation)(properties.metricsCollection),MixedInstancesPolicy:cfnAutoScalingGroupMixedInstancesPolicyPropertyToCloudFormation(properties.mixedInstancesPolicy),NewInstancesProtectedFromScaleIn:cdk.booleanToCloudFormation(properties.newInstancesProtectedFromScaleIn),NotificationConfigurations:cdk.listMapper(cfnAutoScalingGroupNotificationConfigurationPropertyToCloudFormation)(properties.notificationConfigurations),PlacementGroup:cdk.stringToCloudFormation(properties.placementGroup),ServiceLinkedRoleARN:cdk.stringToCloudFormation(properties.serviceLinkedRoleArn),Tags:cdk.listMapper(cfnAutoScalingGroupTagPropertyPropertyToCloudFormation)(properties.tags),TargetGroupARNs:cdk.listMapper(cdk.stringToCloudFormation)(properties.targetGroupArns),TerminationPolicies:cdk.listMapper(cdk.stringToCloudFormation)(properties.terminationPolicies),VPCZoneIdentifier:cdk.listMapper(cdk.stringToCloudFormation)(properties.vpcZoneIdentifier)}):properties}function CfnAutoScalingGroupPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("maxSize","MaxSize",cfn_parse.FromCloudFormation.getString(properties.MaxSize)),ret.addPropertyResult("minSize","MinSize",cfn_parse.FromCloudFormation.getString(properties.MinSize)),ret.addPropertyResult("autoScalingGroupName","AutoScalingGroupName",properties.AutoScalingGroupName!=null?cfn_parse.FromCloudFormation.getString(properties.AutoScalingGroupName):void 0),ret.addPropertyResult("availabilityZones","AvailabilityZones",properties.AvailabilityZones!=null?cfn_parse.FromCloudFormation.getStringArray(properties.AvailabilityZones):void 0),ret.addPropertyResult("capacityRebalance","CapacityRebalance",properties.CapacityRebalance!=null?cfn_parse.FromCloudFormation.getBoolean(properties.CapacityRebalance):void 0),ret.addPropertyResult("context","Context",properties.Context!=null?cfn_parse.FromCloudFormation.getString(properties.Context):void 0),ret.addPropertyResult("cooldown","Cooldown",properties.Cooldown!=null?cfn_parse.FromCloudFormation.getString(properties.Cooldown):void 0),ret.addPropertyResult("defaultInstanceWarmup","DefaultInstanceWarmup",properties.DefaultInstanceWarmup!=null?cfn_parse.FromCloudFormation.getNumber(properties.DefaultInstanceWarmup):void 0),ret.addPropertyResult("desiredCapacity","DesiredCapacity",properties.DesiredCapacity!=null?cfn_parse.FromCloudFormation.getString(properties.DesiredCapacity):void 0),ret.addPropertyResult("desiredCapacityType","DesiredCapacityType",properties.DesiredCapacityType!=null?cfn_parse.FromCloudFormation.getString(properties.DesiredCapacityType):void 0),ret.addPropertyResult("healthCheckGracePeriod","HealthCheckGracePeriod",properties.HealthCheckGracePeriod!=null?cfn_parse.FromCloudFormation.getNumber(properties.HealthCheckGracePeriod):void 0),ret.addPropertyResult("healthCheckType","HealthCheckType",properties.HealthCheckType!=null?cfn_parse.FromCloudFormation.getString(properties.HealthCheckType):void 0),ret.addPropertyResult("instanceId","InstanceId",properties.InstanceId!=null?cfn_parse.FromCloudFormation.getString(properties.InstanceId):void 0),ret.addPropertyResult("launchConfigurationName","LaunchConfigurationName",properties.LaunchConfigurationName!=null?cfn_parse.FromCloudFormation.getString(properties.LaunchConfigurationName):void 0),ret.addPropertyResult("launchTemplate","LaunchTemplate",properties.LaunchTemplate!=null?CfnAutoScalingGroupLaunchTemplateSpecificationPropertyFromCloudFormation(properties.LaunchTemplate):void 0),ret.addPropertyResult("lifecycleHookSpecificationList","LifecycleHookSpecificationList",properties.LifecycleHookSpecificationList!=null?cfn_parse.FromCloudFormation.getArray(CfnAutoScalingGroupLifecycleHookSpecificationPropertyFromCloudFormation)(properties.LifecycleHookSpecificationList):void 0),ret.addPropertyResult("loadBalancerNames","LoadBalancerNames",properties.LoadBalancerNames!=null?cfn_parse.FromCloudFormation.getStringArray(properties.LoadBalancerNames):void 0),ret.addPropertyResult("maxInstanceLifetime","MaxInstanceLifetime",properties.MaxInstanceLifetime!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxInstanceLifetime):void 0),ret.addPropertyResult("metricsCollection","MetricsCollection",properties.MetricsCollection!=null?cfn_parse.FromCloudFormation.getArray(CfnAutoScalingGroupMetricsCollectionPropertyFromCloudFormation)(properties.MetricsCollection):void 0),ret.addPropertyResult("mixedInstancesPolicy","MixedInstancesPolicy",properties.MixedInstancesPolicy!=null?CfnAutoScalingGroupMixedInstancesPolicyPropertyFromCloudFormation(properties.MixedInstancesPolicy):void 0),ret.addPropertyResult("newInstancesProtectedFromScaleIn","NewInstancesProtectedFromScaleIn",properties.NewInstancesProtectedFromScaleIn!=null?cfn_parse.FromCloudFormation.getBoolean(properties.NewInstancesProtectedFromScaleIn):void 0),ret.addPropertyResult("notificationConfigurations","NotificationConfigurations",properties.NotificationConfigurations!=null?cfn_parse.FromCloudFormation.getArray(CfnAutoScalingGroupNotificationConfigurationPropertyFromCloudFormation)(properties.NotificationConfigurations):void 0),ret.addPropertyResult("placementGroup","PlacementGroup",properties.PlacementGroup!=null?cfn_parse.FromCloudFormation.getString(properties.PlacementGroup):void 0),ret.addPropertyResult("serviceLinkedRoleArn","ServiceLinkedRoleARN",properties.ServiceLinkedRoleARN!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceLinkedRoleARN):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(CfnAutoScalingGroupTagPropertyPropertyFromCloudFormation)(properties.Tags):void 0),ret.addPropertyResult("targetGroupArns","TargetGroupARNs",properties.TargetGroupARNs!=null?cfn_parse.FromCloudFormation.getStringArray(properties.TargetGroupARNs):void 0),ret.addPropertyResult("terminationPolicies","TerminationPolicies",properties.TerminationPolicies!=null?cfn_parse.FromCloudFormation.getStringArray(properties.TerminationPolicies):void 0),ret.addPropertyResult("vpcZoneIdentifier","VPCZoneIdentifier",properties.VPCZoneIdentifier!=null?cfn_parse.FromCloudFormation.getStringArray(properties.VPCZoneIdentifier):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAutoScalingGroup extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnAutoScalingGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CfnAutoScalingGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAutoScalingGroup),error}cdk.requireProperty(props,"maxSize",this),cdk.requireProperty(props,"minSize",this),this.maxSize=props.maxSize,this.minSize=props.minSize,this.autoScalingGroupName=props.autoScalingGroupName,this.availabilityZones=props.availabilityZones,this.capacityRebalance=props.capacityRebalance,this.context=props.context,this.cooldown=props.cooldown,this.defaultInstanceWarmup=props.defaultInstanceWarmup,this.desiredCapacity=props.desiredCapacity,this.desiredCapacityType=props.desiredCapacityType,this.healthCheckGracePeriod=props.healthCheckGracePeriod,this.healthCheckType=props.healthCheckType,this.instanceId=props.instanceId,this.launchConfigurationName=props.launchConfigurationName,this.launchTemplate=props.launchTemplate,this.lifecycleHookSpecificationList=props.lifecycleHookSpecificationList,this.loadBalancerNames=props.loadBalancerNames,this.maxInstanceLifetime=props.maxInstanceLifetime,this.metricsCollection=props.metricsCollection,this.mixedInstancesPolicy=props.mixedInstancesPolicy,this.newInstancesProtectedFromScaleIn=props.newInstancesProtectedFromScaleIn,this.notificationConfigurations=props.notificationConfigurations,this.placementGroup=props.placementGroup,this.serviceLinkedRoleArn=props.serviceLinkedRoleArn,this.tags=new cdk.TagManager(cdk.TagType.AUTOSCALING_GROUP,"AWS::AutoScaling::AutoScalingGroup",props.tags,{tagPropertyName:"tags"}),this.targetGroupArns=props.targetGroupArns,this.terminationPolicies=props.terminationPolicies,this.vpcZoneIdentifier=props.vpcZoneIdentifier}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAutoScalingGroupPropsFromCloudFormation(resourceProperties),ret=new CfnAutoScalingGroup(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnAutoScalingGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{maxSize:this.maxSize,minSize:this.minSize,autoScalingGroupName:this.autoScalingGroupName,availabilityZones:this.availabilityZones,capacityRebalance:this.capacityRebalance,context:this.context,cooldown:this.cooldown,defaultInstanceWarmup:this.defaultInstanceWarmup,desiredCapacity:this.desiredCapacity,desiredCapacityType:this.desiredCapacityType,healthCheckGracePeriod:this.healthCheckGracePeriod,healthCheckType:this.healthCheckType,instanceId:this.instanceId,launchConfigurationName:this.launchConfigurationName,launchTemplate:this.launchTemplate,lifecycleHookSpecificationList:this.lifecycleHookSpecificationList,loadBalancerNames:this.loadBalancerNames,maxInstanceLifetime:this.maxInstanceLifetime,metricsCollection:this.metricsCollection,mixedInstancesPolicy:this.mixedInstancesPolicy,newInstancesProtectedFromScaleIn:this.newInstancesProtectedFromScaleIn,notificationConfigurations:this.notificationConfigurations,placementGroup:this.placementGroup,serviceLinkedRoleArn:this.serviceLinkedRoleArn,tags:this.tags.renderTags(),targetGroupArns:this.targetGroupArns,terminationPolicies:this.terminationPolicies,vpcZoneIdentifier:this.vpcZoneIdentifier}}renderProperties(props){return cfnAutoScalingGroupPropsToCloudFormation(props)}}exports.CfnAutoScalingGroup=CfnAutoScalingGroup,_a=JSII_RTTI_SYMBOL_1,CfnAutoScalingGroup[_a]={fqn:"aws-cdk-lib.aws_autoscaling.CfnAutoScalingGroup",version:"2.51.1"},CfnAutoScalingGroup.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::AutoScalingGroup";function CfnAutoScalingGroup_AcceleratorCountRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "AcceleratorCountRequestProperty"')}function cfnAutoScalingGroupAcceleratorCountRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_AcceleratorCountRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupAcceleratorCountRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_AcceleratorTotalMemoryMiBRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "AcceleratorTotalMemoryMiBRequestProperty"')}function cfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_AcceleratorTotalMemoryMiBRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_BaselineEbsBandwidthMbpsRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "BaselineEbsBandwidthMbpsRequestProperty"')}function cfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_BaselineEbsBandwidthMbpsRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_InstanceRequirementsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("acceleratorCount",CfnAutoScalingGroup_AcceleratorCountRequestPropertyValidator)(properties.acceleratorCount)),errors.collect(cdk.propertyValidator("acceleratorManufacturers",cdk.listValidator(cdk.validateString))(properties.acceleratorManufacturers)),errors.collect(cdk.propertyValidator("acceleratorNames",cdk.listValidator(cdk.validateString))(properties.acceleratorNames)),errors.collect(cdk.propertyValidator("acceleratorTotalMemoryMiB",CfnAutoScalingGroup_AcceleratorTotalMemoryMiBRequestPropertyValidator)(properties.acceleratorTotalMemoryMiB)),errors.collect(cdk.propertyValidator("acceleratorTypes",cdk.listValidator(cdk.validateString))(properties.acceleratorTypes)),errors.collect(cdk.propertyValidator("bareMetal",cdk.validateString)(properties.bareMetal)),errors.collect(cdk.propertyValidator("baselineEbsBandwidthMbps",CfnAutoScalingGroup_BaselineEbsBandwidthMbpsRequestPropertyValidator)(properties.baselineEbsBandwidthMbps)),errors.collect(cdk.propertyValidator("burstablePerformance",cdk.validateString)(properties.burstablePerformance)),errors.collect(cdk.propertyValidator("cpuManufacturers",cdk.listValidator(cdk.validateString))(properties.cpuManufacturers)),errors.collect(cdk.propertyValidator("excludedInstanceTypes",cdk.listValidator(cdk.validateString))(properties.excludedInstanceTypes)),errors.collect(cdk.propertyValidator("instanceGenerations",cdk.listValidator(cdk.validateString))(properties.instanceGenerations)),errors.collect(cdk.propertyValidator("localStorage",cdk.validateString)(properties.localStorage)),errors.collect(cdk.propertyValidator("localStorageTypes",cdk.listValidator(cdk.validateString))(properties.localStorageTypes)),errors.collect(cdk.propertyValidator("memoryGiBPerVCpu",CfnAutoScalingGroup_MemoryGiBPerVCpuRequestPropertyValidator)(properties.memoryGiBPerVCpu)),errors.collect(cdk.propertyValidator("memoryMiB",CfnAutoScalingGroup_MemoryMiBRequestPropertyValidator)(properties.memoryMiB)),errors.collect(cdk.propertyValidator("networkInterfaceCount",CfnAutoScalingGroup_NetworkInterfaceCountRequestPropertyValidator)(properties.networkInterfaceCount)),errors.collect(cdk.propertyValidator("onDemandMaxPricePercentageOverLowestPrice",cdk.validateNumber)(properties.onDemandMaxPricePercentageOverLowestPrice)),errors.collect(cdk.propertyValidator("requireHibernateSupport",cdk.validateBoolean)(properties.requireHibernateSupport)),errors.collect(cdk.propertyValidator("spotMaxPricePercentageOverLowestPrice",cdk.validateNumber)(properties.spotMaxPricePercentageOverLowestPrice)),errors.collect(cdk.propertyValidator("totalLocalStorageGb",CfnAutoScalingGroup_TotalLocalStorageGBRequestPropertyValidator)(properties.totalLocalStorageGb)),errors.collect(cdk.propertyValidator("vCpuCount",CfnAutoScalingGroup_VCpuCountRequestPropertyValidator)(properties.vCpuCount)),errors.wrap('supplied properties not correct for "InstanceRequirementsProperty"')}function cfnAutoScalingGroupInstanceRequirementsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_InstanceRequirementsPropertyValidator(properties).assertSuccess(),{AcceleratorCount:cfnAutoScalingGroupAcceleratorCountRequestPropertyToCloudFormation(properties.acceleratorCount),AcceleratorManufacturers:cdk.listMapper(cdk.stringToCloudFormation)(properties.acceleratorManufacturers),AcceleratorNames:cdk.listMapper(cdk.stringToCloudFormation)(properties.acceleratorNames),AcceleratorTotalMemoryMiB:cfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyToCloudFormation(properties.acceleratorTotalMemoryMiB),AcceleratorTypes:cdk.listMapper(cdk.stringToCloudFormation)(properties.acceleratorTypes),BareMetal:cdk.stringToCloudFormation(properties.bareMetal),BaselineEbsBandwidthMbps:cfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyToCloudFormation(properties.baselineEbsBandwidthMbps),BurstablePerformance:cdk.stringToCloudFormation(properties.burstablePerformance),CpuManufacturers:cdk.listMapper(cdk.stringToCloudFormation)(properties.cpuManufacturers),ExcludedInstanceTypes:cdk.listMapper(cdk.stringToCloudFormation)(properties.excludedInstanceTypes),InstanceGenerations:cdk.listMapper(cdk.stringToCloudFormation)(properties.instanceGenerations),LocalStorage:cdk.stringToCloudFormation(properties.localStorage),LocalStorageTypes:cdk.listMapper(cdk.stringToCloudFormation)(properties.localStorageTypes),MemoryGiBPerVCpu:cfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyToCloudFormation(properties.memoryGiBPerVCpu),MemoryMiB:cfnAutoScalingGroupMemoryMiBRequestPropertyToCloudFormation(properties.memoryMiB),NetworkInterfaceCount:cfnAutoScalingGroupNetworkInterfaceCountRequestPropertyToCloudFormation(properties.networkInterfaceCount),OnDemandMaxPricePercentageOverLowestPrice:cdk.numberToCloudFormation(properties.onDemandMaxPricePercentageOverLowestPrice),RequireHibernateSupport:cdk.booleanToCloudFormation(properties.requireHibernateSupport),SpotMaxPricePercentageOverLowestPrice:cdk.numberToCloudFormation(properties.spotMaxPricePercentageOverLowestPrice),TotalLocalStorageGB:cfnAutoScalingGroupTotalLocalStorageGBRequestPropertyToCloudFormation(properties.totalLocalStorageGb),VCpuCount:cfnAutoScalingGroupVCpuCountRequestPropertyToCloudFormation(properties.vCpuCount)}):properties}function CfnAutoScalingGroupInstanceRequirementsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("acceleratorCount","AcceleratorCount",properties.AcceleratorCount!=null?CfnAutoScalingGroupAcceleratorCountRequestPropertyFromCloudFormation(properties.AcceleratorCount):void 0),ret.addPropertyResult("acceleratorManufacturers","AcceleratorManufacturers",properties.AcceleratorManufacturers!=null?cfn_parse.FromCloudFormation.getStringArray(properties.AcceleratorManufacturers):void 0),ret.addPropertyResult("acceleratorNames","AcceleratorNames",properties.AcceleratorNames!=null?cfn_parse.FromCloudFormation.getStringArray(properties.AcceleratorNames):void 0),ret.addPropertyResult("acceleratorTotalMemoryMiB","AcceleratorTotalMemoryMiB",properties.AcceleratorTotalMemoryMiB!=null?CfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyFromCloudFormation(properties.AcceleratorTotalMemoryMiB):void 0),ret.addPropertyResult("acceleratorTypes","AcceleratorTypes",properties.AcceleratorTypes!=null?cfn_parse.FromCloudFormation.getStringArray(properties.AcceleratorTypes):void 0),ret.addPropertyResult("bareMetal","BareMetal",properties.BareMetal!=null?cfn_parse.FromCloudFormation.getString(properties.BareMetal):void 0),ret.addPropertyResult("baselineEbsBandwidthMbps","BaselineEbsBandwidthMbps",properties.BaselineEbsBandwidthMbps!=null?CfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyFromCloudFormation(properties.BaselineEbsBandwidthMbps):void 0),ret.addPropertyResult("burstablePerformance","BurstablePerformance",properties.BurstablePerformance!=null?cfn_parse.FromCloudFormation.getString(properties.BurstablePerformance):void 0),ret.addPropertyResult("cpuManufacturers","CpuManufacturers",properties.CpuManufacturers!=null?cfn_parse.FromCloudFormation.getStringArray(properties.CpuManufacturers):void 0),ret.addPropertyResult("excludedInstanceTypes","ExcludedInstanceTypes",properties.ExcludedInstanceTypes!=null?cfn_parse.FromCloudFormation.getStringArray(properties.ExcludedInstanceTypes):void 0),ret.addPropertyResult("instanceGenerations","InstanceGenerations",properties.InstanceGenerations!=null?cfn_parse.FromCloudFormation.getStringArray(properties.InstanceGenerations):void 0),ret.addPropertyResult("localStorage","LocalStorage",properties.LocalStorage!=null?cfn_parse.FromCloudFormation.getString(properties.LocalStorage):void 0),ret.addPropertyResult("localStorageTypes","LocalStorageTypes",properties.LocalStorageTypes!=null?cfn_parse.FromCloudFormation.getStringArray(properties.LocalStorageTypes):void 0),ret.addPropertyResult("memoryGiBPerVCpu","MemoryGiBPerVCpu",properties.MemoryGiBPerVCpu!=null?CfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyFromCloudFormation(properties.MemoryGiBPerVCpu):void 0),ret.addPropertyResult("memoryMiB","MemoryMiB",properties.MemoryMiB!=null?CfnAutoScalingGroupMemoryMiBRequestPropertyFromCloudFormation(properties.MemoryMiB):void 0),ret.addPropertyResult("networkInterfaceCount","NetworkInterfaceCount",properties.NetworkInterfaceCount!=null?CfnAutoScalingGroupNetworkInterfaceCountRequestPropertyFromCloudFormation(properties.NetworkInterfaceCount):void 0),ret.addPropertyResult("onDemandMaxPricePercentageOverLowestPrice","OnDemandMaxPricePercentageOverLowestPrice",properties.OnDemandMaxPricePercentageOverLowestPrice!=null?cfn_parse.FromCloudFormation.getNumber(properties.OnDemandMaxPricePercentageOverLowestPrice):void 0),ret.addPropertyResult("requireHibernateSupport","RequireHibernateSupport",properties.RequireHibernateSupport!=null?cfn_parse.FromCloudFormation.getBoolean(properties.RequireHibernateSupport):void 0),ret.addPropertyResult("spotMaxPricePercentageOverLowestPrice","SpotMaxPricePercentageOverLowestPrice",properties.SpotMaxPricePercentageOverLowestPrice!=null?cfn_parse.FromCloudFormation.getNumber(properties.SpotMaxPricePercentageOverLowestPrice):void 0),ret.addPropertyResult("totalLocalStorageGb","TotalLocalStorageGB",properties.TotalLocalStorageGB!=null?CfnAutoScalingGroupTotalLocalStorageGBRequestPropertyFromCloudFormation(properties.TotalLocalStorageGB):void 0),ret.addPropertyResult("vCpuCount","VCpuCount",properties.VCpuCount!=null?CfnAutoScalingGroupVCpuCountRequestPropertyFromCloudFormation(properties.VCpuCount):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_InstancesDistributionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("onDemandAllocationStrategy",cdk.validateString)(properties.onDemandAllocationStrategy)),errors.collect(cdk.propertyValidator("onDemandBaseCapacity",cdk.validateNumber)(properties.onDemandBaseCapacity)),errors.collect(cdk.propertyValidator("onDemandPercentageAboveBaseCapacity",cdk.validateNumber)(properties.onDemandPercentageAboveBaseCapacity)),errors.collect(cdk.propertyValidator("spotAllocationStrategy",cdk.validateString)(properties.spotAllocationStrategy)),errors.collect(cdk.propertyValidator("spotInstancePools",cdk.validateNumber)(properties.spotInstancePools)),errors.collect(cdk.propertyValidator("spotMaxPrice",cdk.validateString)(properties.spotMaxPrice)),errors.wrap('supplied properties not correct for "InstancesDistributionProperty"')}function cfnAutoScalingGroupInstancesDistributionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_InstancesDistributionPropertyValidator(properties).assertSuccess(),{OnDemandAllocationStrategy:cdk.stringToCloudFormation(properties.onDemandAllocationStrategy),OnDemandBaseCapacity:cdk.numberToCloudFormation(properties.onDemandBaseCapacity),OnDemandPercentageAboveBaseCapacity:cdk.numberToCloudFormation(properties.onDemandPercentageAboveBaseCapacity),SpotAllocationStrategy:cdk.stringToCloudFormation(properties.spotAllocationStrategy),SpotInstancePools:cdk.numberToCloudFormation(properties.spotInstancePools),SpotMaxPrice:cdk.stringToCloudFormation(properties.spotMaxPrice)}):properties}function CfnAutoScalingGroupInstancesDistributionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("onDemandAllocationStrategy","OnDemandAllocationStrategy",properties.OnDemandAllocationStrategy!=null?cfn_parse.FromCloudFormation.getString(properties.OnDemandAllocationStrategy):void 0),ret.addPropertyResult("onDemandBaseCapacity","OnDemandBaseCapacity",properties.OnDemandBaseCapacity!=null?cfn_parse.FromCloudFormation.getNumber(properties.OnDemandBaseCapacity):void 0),ret.addPropertyResult("onDemandPercentageAboveBaseCapacity","OnDemandPercentageAboveBaseCapacity",properties.OnDemandPercentageAboveBaseCapacity!=null?cfn_parse.FromCloudFormation.getNumber(properties.OnDemandPercentageAboveBaseCapacity):void 0),ret.addPropertyResult("spotAllocationStrategy","SpotAllocationStrategy",properties.SpotAllocationStrategy!=null?cfn_parse.FromCloudFormation.getString(properties.SpotAllocationStrategy):void 0),ret.addPropertyResult("spotInstancePools","SpotInstancePools",properties.SpotInstancePools!=null?cfn_parse.FromCloudFormation.getNumber(properties.SpotInstancePools):void 0),ret.addPropertyResult("spotMaxPrice","SpotMaxPrice",properties.SpotMaxPrice!=null?cfn_parse.FromCloudFormation.getString(properties.SpotMaxPrice):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_LaunchTemplatePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("launchTemplateSpecification",cdk.requiredValidator)(properties.launchTemplateSpecification)),errors.collect(cdk.propertyValidator("launchTemplateSpecification",CfnAutoScalingGroup_LaunchTemplateSpecificationPropertyValidator)(properties.launchTemplateSpecification)),errors.collect(cdk.propertyValidator("overrides",cdk.listValidator(CfnAutoScalingGroup_LaunchTemplateOverridesPropertyValidator))(properties.overrides)),errors.wrap('supplied properties not correct for "LaunchTemplateProperty"')}function cfnAutoScalingGroupLaunchTemplatePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_LaunchTemplatePropertyValidator(properties).assertSuccess(),{LaunchTemplateSpecification:cfnAutoScalingGroupLaunchTemplateSpecificationPropertyToCloudFormation(properties.launchTemplateSpecification),Overrides:cdk.listMapper(cfnAutoScalingGroupLaunchTemplateOverridesPropertyToCloudFormation)(properties.overrides)}):properties}function CfnAutoScalingGroupLaunchTemplatePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("launchTemplateSpecification","LaunchTemplateSpecification",CfnAutoScalingGroupLaunchTemplateSpecificationPropertyFromCloudFormation(properties.LaunchTemplateSpecification)),ret.addPropertyResult("overrides","Overrides",properties.Overrides!=null?cfn_parse.FromCloudFormation.getArray(CfnAutoScalingGroupLaunchTemplateOverridesPropertyFromCloudFormation)(properties.Overrides):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_LaunchTemplateOverridesPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("instanceRequirements",CfnAutoScalingGroup_InstanceRequirementsPropertyValidator)(properties.instanceRequirements)),errors.collect(cdk.propertyValidator("instanceType",cdk.validateString)(properties.instanceType)),errors.collect(cdk.propertyValidator("launchTemplateSpecification",CfnAutoScalingGroup_LaunchTemplateSpecificationPropertyValidator)(properties.launchTemplateSpecification)),errors.collect(cdk.propertyValidator("weightedCapacity",cdk.validateString)(properties.weightedCapacity)),errors.wrap('supplied properties not correct for "LaunchTemplateOverridesProperty"')}function cfnAutoScalingGroupLaunchTemplateOverridesPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_LaunchTemplateOverridesPropertyValidator(properties).assertSuccess(),{InstanceRequirements:cfnAutoScalingGroupInstanceRequirementsPropertyToCloudFormation(properties.instanceRequirements),InstanceType:cdk.stringToCloudFormation(properties.instanceType),LaunchTemplateSpecification:cfnAutoScalingGroupLaunchTemplateSpecificationPropertyToCloudFormation(properties.launchTemplateSpecification),WeightedCapacity:cdk.stringToCloudFormation(properties.weightedCapacity)}):properties}function CfnAutoScalingGroupLaunchTemplateOverridesPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("instanceRequirements","InstanceRequirements",properties.InstanceRequirements!=null?CfnAutoScalingGroupInstanceRequirementsPropertyFromCloudFormation(properties.InstanceRequirements):void 0),ret.addPropertyResult("instanceType","InstanceType",properties.InstanceType!=null?cfn_parse.FromCloudFormation.getString(properties.InstanceType):void 0),ret.addPropertyResult("launchTemplateSpecification","LaunchTemplateSpecification",properties.LaunchTemplateSpecification!=null?CfnAutoScalingGroupLaunchTemplateSpecificationPropertyFromCloudFormation(properties.LaunchTemplateSpecification):void 0),ret.addPropertyResult("weightedCapacity","WeightedCapacity",properties.WeightedCapacity!=null?cfn_parse.FromCloudFormation.getString(properties.WeightedCapacity):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_LaunchTemplateSpecificationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("launchTemplateId",cdk.validateString)(properties.launchTemplateId)),errors.collect(cdk.propertyValidator("launchTemplateName",cdk.validateString)(properties.launchTemplateName)),errors.collect(cdk.propertyValidator("version",cdk.requiredValidator)(properties.version)),errors.collect(cdk.propertyValidator("version",cdk.validateString)(properties.version)),errors.wrap('supplied properties not correct for "LaunchTemplateSpecificationProperty"')}function cfnAutoScalingGroupLaunchTemplateSpecificationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_LaunchTemplateSpecificationPropertyValidator(properties).assertSuccess(),{LaunchTemplateId:cdk.stringToCloudFormation(properties.launchTemplateId),LaunchTemplateName:cdk.stringToCloudFormation(properties.launchTemplateName),Version:cdk.stringToCloudFormation(properties.version)}):properties}function CfnAutoScalingGroupLaunchTemplateSpecificationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("launchTemplateId","LaunchTemplateId",properties.LaunchTemplateId!=null?cfn_parse.FromCloudFormation.getString(properties.LaunchTemplateId):void 0),ret.addPropertyResult("launchTemplateName","LaunchTemplateName",properties.LaunchTemplateName!=null?cfn_parse.FromCloudFormation.getString(properties.LaunchTemplateName):void 0),ret.addPropertyResult("version","Version",cfn_parse.FromCloudFormation.getString(properties.Version)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_LifecycleHookSpecificationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("defaultResult",cdk.validateString)(properties.defaultResult)),errors.collect(cdk.propertyValidator("heartbeatTimeout",cdk.validateNumber)(properties.heartbeatTimeout)),errors.collect(cdk.propertyValidator("lifecycleHookName",cdk.requiredValidator)(properties.lifecycleHookName)),errors.collect(cdk.propertyValidator("lifecycleHookName",cdk.validateString)(properties.lifecycleHookName)),errors.collect(cdk.propertyValidator("lifecycleTransition",cdk.requiredValidator)(properties.lifecycleTransition)),errors.collect(cdk.propertyValidator("lifecycleTransition",cdk.validateString)(properties.lifecycleTransition)),errors.collect(cdk.propertyValidator("notificationMetadata",cdk.validateString)(properties.notificationMetadata)),errors.collect(cdk.propertyValidator("notificationTargetArn",cdk.validateString)(properties.notificationTargetArn)),errors.collect(cdk.propertyValidator("roleArn",cdk.validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "LifecycleHookSpecificationProperty"')}function cfnAutoScalingGroupLifecycleHookSpecificationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_LifecycleHookSpecificationPropertyValidator(properties).assertSuccess(),{DefaultResult:cdk.stringToCloudFormation(properties.defaultResult),HeartbeatTimeout:cdk.numberToCloudFormation(properties.heartbeatTimeout),LifecycleHookName:cdk.stringToCloudFormation(properties.lifecycleHookName),LifecycleTransition:cdk.stringToCloudFormation(properties.lifecycleTransition),NotificationMetadata:cdk.stringToCloudFormation(properties.notificationMetadata),NotificationTargetARN:cdk.stringToCloudFormation(properties.notificationTargetArn),RoleARN:cdk.stringToCloudFormation(properties.roleArn)}):properties}function CfnAutoScalingGroupLifecycleHookSpecificationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("defaultResult","DefaultResult",properties.DefaultResult!=null?cfn_parse.FromCloudFormation.getString(properties.DefaultResult):void 0),ret.addPropertyResult("heartbeatTimeout","HeartbeatTimeout",properties.HeartbeatTimeout!=null?cfn_parse.FromCloudFormation.getNumber(properties.HeartbeatTimeout):void 0),ret.addPropertyResult("lifecycleHookName","LifecycleHookName",cfn_parse.FromCloudFormation.getString(properties.LifecycleHookName)),ret.addPropertyResult("lifecycleTransition","LifecycleTransition",cfn_parse.FromCloudFormation.getString(properties.LifecycleTransition)),ret.addPropertyResult("notificationMetadata","NotificationMetadata",properties.NotificationMetadata!=null?cfn_parse.FromCloudFormation.getString(properties.NotificationMetadata):void 0),ret.addPropertyResult("notificationTargetArn","NotificationTargetARN",properties.NotificationTargetARN!=null?cfn_parse.FromCloudFormation.getString(properties.NotificationTargetARN):void 0),ret.addPropertyResult("roleArn","RoleARN",properties.RoleARN!=null?cfn_parse.FromCloudFormation.getString(properties.RoleARN):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_MemoryGiBPerVCpuRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "MemoryGiBPerVCpuRequestProperty"')}function cfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_MemoryGiBPerVCpuRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_MemoryMiBRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "MemoryMiBRequestProperty"')}function cfnAutoScalingGroupMemoryMiBRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_MemoryMiBRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupMemoryMiBRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_MetricsCollectionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("granularity",cdk.requiredValidator)(properties.granularity)),errors.collect(cdk.propertyValidator("granularity",cdk.validateString)(properties.granularity)),errors.collect(cdk.propertyValidator("metrics",cdk.listValidator(cdk.validateString))(properties.metrics)),errors.wrap('supplied properties not correct for "MetricsCollectionProperty"')}function cfnAutoScalingGroupMetricsCollectionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_MetricsCollectionPropertyValidator(properties).assertSuccess(),{Granularity:cdk.stringToCloudFormation(properties.granularity),Metrics:cdk.listMapper(cdk.stringToCloudFormation)(properties.metrics)}):properties}function CfnAutoScalingGroupMetricsCollectionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("granularity","Granularity",cfn_parse.FromCloudFormation.getString(properties.Granularity)),ret.addPropertyResult("metrics","Metrics",properties.Metrics!=null?cfn_parse.FromCloudFormation.getStringArray(properties.Metrics):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_MixedInstancesPolicyPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("instancesDistribution",CfnAutoScalingGroup_InstancesDistributionPropertyValidator)(properties.instancesDistribution)),errors.collect(cdk.propertyValidator("launchTemplate",cdk.requiredValidator)(properties.launchTemplate)),errors.collect(cdk.propertyValidator("launchTemplate",CfnAutoScalingGroup_LaunchTemplatePropertyValidator)(properties.launchTemplate)),errors.wrap('supplied properties not correct for "MixedInstancesPolicyProperty"')}function cfnAutoScalingGroupMixedInstancesPolicyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_MixedInstancesPolicyPropertyValidator(properties).assertSuccess(),{InstancesDistribution:cfnAutoScalingGroupInstancesDistributionPropertyToCloudFormation(properties.instancesDistribution),LaunchTemplate:cfnAutoScalingGroupLaunchTemplatePropertyToCloudFormation(properties.launchTemplate)}):properties}function CfnAutoScalingGroupMixedInstancesPolicyPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("instancesDistribution","InstancesDistribution",properties.InstancesDistribution!=null?CfnAutoScalingGroupInstancesDistributionPropertyFromCloudFormation(properties.InstancesDistribution):void 0),ret.addPropertyResult("launchTemplate","LaunchTemplate",CfnAutoScalingGroupLaunchTemplatePropertyFromCloudFormation(properties.LaunchTemplate)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_NetworkInterfaceCountRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "NetworkInterfaceCountRequestProperty"')}function cfnAutoScalingGroupNetworkInterfaceCountRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_NetworkInterfaceCountRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupNetworkInterfaceCountRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_NotificationConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("notificationTypes",cdk.listValidator(cdk.validateString))(properties.notificationTypes)),errors.collect(cdk.propertyValidator("topicArn",cdk.requiredValidator)(properties.topicArn)),errors.collect(cdk.propertyValidator("topicArn",cdk.validateString)(properties.topicArn)),errors.wrap('supplied properties not correct for "NotificationConfigurationProperty"')}function cfnAutoScalingGroupNotificationConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_NotificationConfigurationPropertyValidator(properties).assertSuccess(),{NotificationTypes:cdk.listMapper(cdk.stringToCloudFormation)(properties.notificationTypes),TopicARN:cdk.stringToCloudFormation(properties.topicArn)}):properties}function CfnAutoScalingGroupNotificationConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("notificationTypes","NotificationTypes",properties.NotificationTypes!=null?cfn_parse.FromCloudFormation.getStringArray(properties.NotificationTypes):void 0),ret.addPropertyResult("topicArn","TopicARN",cfn_parse.FromCloudFormation.getString(properties.TopicARN)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_TagPropertyPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("key",cdk.requiredValidator)(properties.key)),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("propagateAtLaunch",cdk.requiredValidator)(properties.propagateAtLaunch)),errors.collect(cdk.propertyValidator("propagateAtLaunch",cdk.validateBoolean)(properties.propagateAtLaunch)),errors.collect(cdk.propertyValidator("value",cdk.requiredValidator)(properties.value)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagPropertyProperty"')}function cfnAutoScalingGroupTagPropertyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_TagPropertyPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),PropagateAtLaunch:cdk.booleanToCloudFormation(properties.propagateAtLaunch),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnAutoScalingGroupTagPropertyPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("key","Key",cfn_parse.FromCloudFormation.getString(properties.Key)),ret.addPropertyResult("propagateAtLaunch","PropagateAtLaunch",cfn_parse.FromCloudFormation.getBoolean(properties.PropagateAtLaunch)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_TotalLocalStorageGBRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "TotalLocalStorageGBRequestProperty"')}function cfnAutoScalingGroupTotalLocalStorageGBRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_TotalLocalStorageGBRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupTotalLocalStorageGBRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroup_VCpuCountRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("max",cdk.validateNumber)(properties.max)),errors.collect(cdk.propertyValidator("min",cdk.validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "VCpuCountRequestProperty"')}function cfnAutoScalingGroupVCpuCountRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAutoScalingGroup_VCpuCountRequestPropertyValidator(properties).assertSuccess(),{Max:cdk.numberToCloudFormation(properties.max),Min:cdk.numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupVCpuCountRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("max","Max",properties.Max!=null?cfn_parse.FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse.FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchConfigurationPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("associatePublicIpAddress",cdk.validateBoolean)(properties.associatePublicIpAddress)),errors.collect(cdk.propertyValidator("blockDeviceMappings",cdk.listValidator(CfnLaunchConfiguration_BlockDeviceMappingPropertyValidator))(properties.blockDeviceMappings)),errors.collect(cdk.propertyValidator("classicLinkVpcId",cdk.validateString)(properties.classicLinkVpcId)),errors.collect(cdk.propertyValidator("classicLinkVpcSecurityGroups",cdk.listValidator(cdk.validateString))(properties.classicLinkVpcSecurityGroups)),errors.collect(cdk.propertyValidator("ebsOptimized",cdk.validateBoolean)(properties.ebsOptimized)),errors.collect(cdk.propertyValidator("iamInstanceProfile",cdk.validateString)(properties.iamInstanceProfile)),errors.collect(cdk.propertyValidator("imageId",cdk.requiredValidator)(properties.imageId)),errors.collect(cdk.propertyValidator("imageId",cdk.validateString)(properties.imageId)),errors.collect(cdk.propertyValidator("instanceId",cdk.validateString)(properties.instanceId)),errors.collect(cdk.propertyValidator("instanceMonitoring",cdk.validateBoolean)(properties.instanceMonitoring)),errors.collect(cdk.propertyValidator("instanceType",cdk.requiredValidator)(properties.instanceType)),errors.collect(cdk.propertyValidator("instanceType",cdk.validateString)(properties.instanceType)),errors.collect(cdk.propertyValidator("kernelId",cdk.validateString)(properties.kernelId)),errors.collect(cdk.propertyValidator("keyName",cdk.validateString)(properties.keyName)),errors.collect(cdk.propertyValidator("launchConfigurationName",cdk.validateString)(properties.launchConfigurationName)),errors.collect(cdk.propertyValidator("metadataOptions",CfnLaunchConfiguration_MetadataOptionsPropertyValidator)(properties.metadataOptions)),errors.collect(cdk.propertyValidator("placementTenancy",cdk.validateString)(properties.placementTenancy)),errors.collect(cdk.propertyValidator("ramDiskId",cdk.validateString)(properties.ramDiskId)),errors.collect(cdk.propertyValidator("securityGroups",cdk.listValidator(cdk.validateString))(properties.securityGroups)),errors.collect(cdk.propertyValidator("spotPrice",cdk.validateString)(properties.spotPrice)),errors.collect(cdk.propertyValidator("userData",cdk.validateString)(properties.userData)),errors.wrap('supplied properties not correct for "CfnLaunchConfigurationProps"')}function cfnLaunchConfigurationPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchConfigurationPropsValidator(properties).assertSuccess(),{ImageId:cdk.stringToCloudFormation(properties.imageId),InstanceType:cdk.stringToCloudFormation(properties.instanceType),AssociatePublicIpAddress:cdk.booleanToCloudFormation(properties.associatePublicIpAddress),BlockDeviceMappings:cdk.listMapper(cfnLaunchConfigurationBlockDeviceMappingPropertyToCloudFormation)(properties.blockDeviceMappings),ClassicLinkVPCId:cdk.stringToCloudFormation(properties.classicLinkVpcId),ClassicLinkVPCSecurityGroups:cdk.listMapper(cdk.stringToCloudFormation)(properties.classicLinkVpcSecurityGroups),EbsOptimized:cdk.booleanToCloudFormation(properties.ebsOptimized),IamInstanceProfile:cdk.stringToCloudFormation(properties.iamInstanceProfile),InstanceId:cdk.stringToCloudFormation(properties.instanceId),InstanceMonitoring:cdk.booleanToCloudFormation(properties.instanceMonitoring),KernelId:cdk.stringToCloudFormation(properties.kernelId),KeyName:cdk.stringToCloudFormation(properties.keyName),LaunchConfigurationName:cdk.stringToCloudFormation(properties.launchConfigurationName),MetadataOptions:cfnLaunchConfigurationMetadataOptionsPropertyToCloudFormation(properties.metadataOptions),PlacementTenancy:cdk.stringToCloudFormation(properties.placementTenancy),RamDiskId:cdk.stringToCloudFormation(properties.ramDiskId),SecurityGroups:cdk.listMapper(cdk.stringToCloudFormation)(properties.securityGroups),SpotPrice:cdk.stringToCloudFormation(properties.spotPrice),UserData:cdk.stringToCloudFormation(properties.userData)}):properties}function CfnLaunchConfigurationPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("imageId","ImageId",cfn_parse.FromCloudFormation.getString(properties.ImageId)),ret.addPropertyResult("instanceType","InstanceType",cfn_parse.FromCloudFormation.getString(properties.InstanceType)),ret.addPropertyResult("associatePublicIpAddress","AssociatePublicIpAddress",properties.AssociatePublicIpAddress!=null?cfn_parse.FromCloudFormation.getBoolean(properties.AssociatePublicIpAddress):void 0),ret.addPropertyResult("blockDeviceMappings","BlockDeviceMappings",properties.BlockDeviceMappings!=null?cfn_parse.FromCloudFormation.getArray(CfnLaunchConfigurationBlockDeviceMappingPropertyFromCloudFormation)(properties.BlockDeviceMappings):void 0),ret.addPropertyResult("classicLinkVpcId","ClassicLinkVPCId",properties.ClassicLinkVPCId!=null?cfn_parse.FromCloudFormation.getString(properties.ClassicLinkVPCId):void 0),ret.addPropertyResult("classicLinkVpcSecurityGroups","ClassicLinkVPCSecurityGroups",properties.ClassicLinkVPCSecurityGroups!=null?cfn_parse.FromCloudFormation.getStringArray(properties.ClassicLinkVPCSecurityGroups):void 0),ret.addPropertyResult("ebsOptimized","EbsOptimized",properties.EbsOptimized!=null?cfn_parse.FromCloudFormation.getBoolean(properties.EbsOptimized):void 0),ret.addPropertyResult("iamInstanceProfile","IamInstanceProfile",properties.IamInstanceProfile!=null?cfn_parse.FromCloudFormation.getString(properties.IamInstanceProfile):void 0),ret.addPropertyResult("instanceId","InstanceId",properties.InstanceId!=null?cfn_parse.FromCloudFormation.getString(properties.InstanceId):void 0),ret.addPropertyResult("instanceMonitoring","InstanceMonitoring",properties.InstanceMonitoring!=null?cfn_parse.FromCloudFormation.getBoolean(properties.InstanceMonitoring):void 0),ret.addPropertyResult("kernelId","KernelId",properties.KernelId!=null?cfn_parse.FromCloudFormation.getString(properties.KernelId):void 0),ret.addPropertyResult("keyName","KeyName",properties.KeyName!=null?cfn_parse.FromCloudFormation.getString(properties.KeyName):void 0),ret.addPropertyResult("launchConfigurationName","LaunchConfigurationName",properties.LaunchConfigurationName!=null?cfn_parse.FromCloudFormation.getString(properties.LaunchConfigurationName):void 0),ret.addPropertyResult("metadataOptions","MetadataOptions",properties.MetadataOptions!=null?CfnLaunchConfigurationMetadataOptionsPropertyFromCloudFormation(properties.MetadataOptions):void 0),ret.addPropertyResult("placementTenancy","PlacementTenancy",properties.PlacementTenancy!=null?cfn_parse.FromCloudFormation.getString(properties.PlacementTenancy):void 0),ret.addPropertyResult("ramDiskId","RamDiskId",properties.RamDiskId!=null?cfn_parse.FromCloudFormation.getString(properties.RamDiskId):void 0),ret.addPropertyResult("securityGroups","SecurityGroups",properties.SecurityGroups!=null?cfn_parse.FromCloudFormation.getStringArray(properties.SecurityGroups):void 0),ret.addPropertyResult("spotPrice","SpotPrice",properties.SpotPrice!=null?cfn_parse.FromCloudFormation.getString(properties.SpotPrice):void 0),ret.addPropertyResult("userData","UserData",properties.UserData!=null?cfn_parse.FromCloudFormation.getString(properties.UserData):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLaunchConfiguration extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnLaunchConfiguration.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CfnLaunchConfigurationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLaunchConfiguration),error}cdk.requireProperty(props,"imageId",this),cdk.requireProperty(props,"instanceType",this),this.imageId=props.imageId,this.instanceType=props.instanceType,this.associatePublicIpAddress=props.associatePublicIpAddress,this.blockDeviceMappings=props.blockDeviceMappings,this.classicLinkVpcId=props.classicLinkVpcId,this.classicLinkVpcSecurityGroups=props.classicLinkVpcSecurityGroups,this.ebsOptimized=props.ebsOptimized,this.iamInstanceProfile=props.iamInstanceProfile,this.instanceId=props.instanceId,this.instanceMonitoring=props.instanceMonitoring,this.kernelId=props.kernelId,this.keyName=props.keyName,this.launchConfigurationName=props.launchConfigurationName,this.metadataOptions=props.metadataOptions,this.placementTenancy=props.placementTenancy,this.ramDiskId=props.ramDiskId,this.securityGroups=props.securityGroups,this.spotPrice=props.spotPrice,this.userData=props.userData}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLaunchConfigurationPropsFromCloudFormation(resourceProperties),ret=new CfnLaunchConfiguration(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnLaunchConfiguration.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{imageId:this.imageId,instanceType:this.instanceType,associatePublicIpAddress:this.associatePublicIpAddress,blockDeviceMappings:this.blockDeviceMappings,classicLinkVpcId:this.classicLinkVpcId,classicLinkVpcSecurityGroups:this.classicLinkVpcSecurityGroups,ebsOptimized:this.ebsOptimized,iamInstanceProfile:this.iamInstanceProfile,instanceId:this.instanceId,instanceMonitoring:this.instanceMonitoring,kernelId:this.kernelId,keyName:this.keyName,launchConfigurationName:this.launchConfigurationName,metadataOptions:this.metadataOptions,placementTenancy:this.placementTenancy,ramDiskId:this.ramDiskId,securityGroups:this.securityGroups,spotPrice:this.spotPrice,userData:this.userData}}renderProperties(props){return cfnLaunchConfigurationPropsToCloudFormation(props)}}exports.CfnLaunchConfiguration=CfnLaunchConfiguration,_b=JSII_RTTI_SYMBOL_1,CfnLaunchConfiguration[_b]={fqn:"aws-cdk-lib.aws_autoscaling.CfnLaunchConfiguration",version:"2.51.1"},CfnLaunchConfiguration.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::LaunchConfiguration";function CfnLaunchConfiguration_BlockDevicePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("deleteOnTermination",cdk.validateBoolean)(properties.deleteOnTermination)),errors.collect(cdk.propertyValidator("encrypted",cdk.validateBoolean)(properties.encrypted)),errors.collect(cdk.propertyValidator("iops",cdk.validateNumber)(properties.iops)),errors.collect(cdk.propertyValidator("snapshotId",cdk.validateString)(properties.snapshotId)),errors.collect(cdk.propertyValidator("throughput",cdk.validateNumber)(properties.throughput)),errors.collect(cdk.propertyValidator("volumeSize",cdk.validateNumber)(properties.volumeSize)),errors.collect(cdk.propertyValidator("volumeType",cdk.validateString)(properties.volumeType)),errors.wrap('supplied properties not correct for "BlockDeviceProperty"')}function cfnLaunchConfigurationBlockDevicePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchConfiguration_BlockDevicePropertyValidator(properties).assertSuccess(),{DeleteOnTermination:cdk.booleanToCloudFormation(properties.deleteOnTermination),Encrypted:cdk.booleanToCloudFormation(properties.encrypted),Iops:cdk.numberToCloudFormation(properties.iops),SnapshotId:cdk.stringToCloudFormation(properties.snapshotId),Throughput:cdk.numberToCloudFormation(properties.throughput),VolumeSize:cdk.numberToCloudFormation(properties.volumeSize),VolumeType:cdk.stringToCloudFormation(properties.volumeType)}):properties}function CfnLaunchConfigurationBlockDevicePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("deleteOnTermination","DeleteOnTermination",properties.DeleteOnTermination!=null?cfn_parse.FromCloudFormation.getBoolean(properties.DeleteOnTermination):void 0),ret.addPropertyResult("encrypted","Encrypted",properties.Encrypted!=null?cfn_parse.FromCloudFormation.getBoolean(properties.Encrypted):void 0),ret.addPropertyResult("iops","Iops",properties.Iops!=null?cfn_parse.FromCloudFormation.getNumber(properties.Iops):void 0),ret.addPropertyResult("snapshotId","SnapshotId",properties.SnapshotId!=null?cfn_parse.FromCloudFormation.getString(properties.SnapshotId):void 0),ret.addPropertyResult("throughput","Throughput",properties.Throughput!=null?cfn_parse.FromCloudFormation.getNumber(properties.Throughput):void 0),ret.addPropertyResult("volumeSize","VolumeSize",properties.VolumeSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.VolumeSize):void 0),ret.addPropertyResult("volumeType","VolumeType",properties.VolumeType!=null?cfn_parse.FromCloudFormation.getString(properties.VolumeType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchConfiguration_BlockDeviceMappingPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("deviceName",cdk.requiredValidator)(properties.deviceName)),errors.collect(cdk.propertyValidator("deviceName",cdk.validateString)(properties.deviceName)),errors.collect(cdk.propertyValidator("ebs",CfnLaunchConfiguration_BlockDevicePropertyValidator)(properties.ebs)),errors.collect(cdk.propertyValidator("noDevice",cdk.validateBoolean)(properties.noDevice)),errors.collect(cdk.propertyValidator("virtualName",cdk.validateString)(properties.virtualName)),errors.wrap('supplied properties not correct for "BlockDeviceMappingProperty"')}function cfnLaunchConfigurationBlockDeviceMappingPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchConfiguration_BlockDeviceMappingPropertyValidator(properties).assertSuccess(),{DeviceName:cdk.stringToCloudFormation(properties.deviceName),Ebs:cfnLaunchConfigurationBlockDevicePropertyToCloudFormation(properties.ebs),NoDevice:cdk.booleanToCloudFormation(properties.noDevice),VirtualName:cdk.stringToCloudFormation(properties.virtualName)}):properties}function CfnLaunchConfigurationBlockDeviceMappingPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("deviceName","DeviceName",cfn_parse.FromCloudFormation.getString(properties.DeviceName)),ret.addPropertyResult("ebs","Ebs",properties.Ebs!=null?CfnLaunchConfigurationBlockDevicePropertyFromCloudFormation(properties.Ebs):void 0),ret.addPropertyResult("noDevice","NoDevice",properties.NoDevice!=null?cfn_parse.FromCloudFormation.getBoolean(properties.NoDevice):void 0),ret.addPropertyResult("virtualName","VirtualName",properties.VirtualName!=null?cfn_parse.FromCloudFormation.getString(properties.VirtualName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchConfiguration_MetadataOptionsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("httpEndpoint",cdk.validateString)(properties.httpEndpoint)),errors.collect(cdk.propertyValidator("httpPutResponseHopLimit",cdk.validateNumber)(properties.httpPutResponseHopLimit)),errors.collect(cdk.propertyValidator("httpTokens",cdk.validateString)(properties.httpTokens)),errors.wrap('supplied properties not correct for "MetadataOptionsProperty"')}function cfnLaunchConfigurationMetadataOptionsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchConfiguration_MetadataOptionsPropertyValidator(properties).assertSuccess(),{HttpEndpoint:cdk.stringToCloudFormation(properties.httpEndpoint),HttpPutResponseHopLimit:cdk.numberToCloudFormation(properties.httpPutResponseHopLimit),HttpTokens:cdk.stringToCloudFormation(properties.httpTokens)}):properties}function CfnLaunchConfigurationMetadataOptionsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("httpEndpoint","HttpEndpoint",properties.HttpEndpoint!=null?cfn_parse.FromCloudFormation.getString(properties.HttpEndpoint):void 0),ret.addPropertyResult("httpPutResponseHopLimit","HttpPutResponseHopLimit",properties.HttpPutResponseHopLimit!=null?cfn_parse.FromCloudFormation.getNumber(properties.HttpPutResponseHopLimit):void 0),ret.addPropertyResult("httpTokens","HttpTokens",properties.HttpTokens!=null?cfn_parse.FromCloudFormation.getString(properties.HttpTokens):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLifecycleHookPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.requiredValidator)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.validateString)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("defaultResult",cdk.validateString)(properties.defaultResult)),errors.collect(cdk.propertyValidator("heartbeatTimeout",cdk.validateNumber)(properties.heartbeatTimeout)),errors.collect(cdk.propertyValidator("lifecycleHookName",cdk.validateString)(properties.lifecycleHookName)),errors.collect(cdk.propertyValidator("lifecycleTransition",cdk.requiredValidator)(properties.lifecycleTransition)),errors.collect(cdk.propertyValidator("lifecycleTransition",cdk.validateString)(properties.lifecycleTransition)),errors.collect(cdk.propertyValidator("notificationMetadata",cdk.validateString)(properties.notificationMetadata)),errors.collect(cdk.propertyValidator("notificationTargetArn",cdk.validateString)(properties.notificationTargetArn)),errors.collect(cdk.propertyValidator("roleArn",cdk.validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "CfnLifecycleHookProps"')}function cfnLifecycleHookPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLifecycleHookPropsValidator(properties).assertSuccess(),{AutoScalingGroupName:cdk.stringToCloudFormation(properties.autoScalingGroupName),LifecycleTransition:cdk.stringToCloudFormation(properties.lifecycleTransition),DefaultResult:cdk.stringToCloudFormation(properties.defaultResult),HeartbeatTimeout:cdk.numberToCloudFormation(properties.heartbeatTimeout),LifecycleHookName:cdk.stringToCloudFormation(properties.lifecycleHookName),NotificationMetadata:cdk.stringToCloudFormation(properties.notificationMetadata),NotificationTargetARN:cdk.stringToCloudFormation(properties.notificationTargetArn),RoleARN:cdk.stringToCloudFormation(properties.roleArn)}):properties}function CfnLifecycleHookPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("autoScalingGroupName","AutoScalingGroupName",cfn_parse.FromCloudFormation.getString(properties.AutoScalingGroupName)),ret.addPropertyResult("lifecycleTransition","LifecycleTransition",cfn_parse.FromCloudFormation.getString(properties.LifecycleTransition)),ret.addPropertyResult("defaultResult","DefaultResult",properties.DefaultResult!=null?cfn_parse.FromCloudFormation.getString(properties.DefaultResult):void 0),ret.addPropertyResult("heartbeatTimeout","HeartbeatTimeout",properties.HeartbeatTimeout!=null?cfn_parse.FromCloudFormation.getNumber(properties.HeartbeatTimeout):void 0),ret.addPropertyResult("lifecycleHookName","LifecycleHookName",properties.LifecycleHookName!=null?cfn_parse.FromCloudFormation.getString(properties.LifecycleHookName):void 0),ret.addPropertyResult("notificationMetadata","NotificationMetadata",properties.NotificationMetadata!=null?cfn_parse.FromCloudFormation.getString(properties.NotificationMetadata):void 0),ret.addPropertyResult("notificationTargetArn","NotificationTargetARN",properties.NotificationTargetARN!=null?cfn_parse.FromCloudFormation.getString(properties.NotificationTargetARN):void 0),ret.addPropertyResult("roleArn","RoleARN",properties.RoleARN!=null?cfn_parse.FromCloudFormation.getString(properties.RoleARN):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLifecycleHook extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnLifecycleHook.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CfnLifecycleHookProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLifecycleHook),error}cdk.requireProperty(props,"autoScalingGroupName",this),cdk.requireProperty(props,"lifecycleTransition",this),this.autoScalingGroupName=props.autoScalingGroupName,this.lifecycleTransition=props.lifecycleTransition,this.defaultResult=props.defaultResult,this.heartbeatTimeout=props.heartbeatTimeout,this.lifecycleHookName=props.lifecycleHookName,this.notificationMetadata=props.notificationMetadata,this.notificationTargetArn=props.notificationTargetArn,this.roleArn=props.roleArn}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLifecycleHookPropsFromCloudFormation(resourceProperties),ret=new CfnLifecycleHook(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnLifecycleHook.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{autoScalingGroupName:this.autoScalingGroupName,lifecycleTransition:this.lifecycleTransition,defaultResult:this.defaultResult,heartbeatTimeout:this.heartbeatTimeout,lifecycleHookName:this.lifecycleHookName,notificationMetadata:this.notificationMetadata,notificationTargetArn:this.notificationTargetArn,roleArn:this.roleArn}}renderProperties(props){return cfnLifecycleHookPropsToCloudFormation(props)}}exports.CfnLifecycleHook=CfnLifecycleHook,_c=JSII_RTTI_SYMBOL_1,CfnLifecycleHook[_c]={fqn:"aws-cdk-lib.aws_autoscaling.CfnLifecycleHook",version:"2.51.1"},CfnLifecycleHook.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::LifecycleHook";function CfnScalingPolicyPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("adjustmentType",cdk.validateString)(properties.adjustmentType)),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.requiredValidator)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.validateString)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("cooldown",cdk.validateString)(properties.cooldown)),errors.collect(cdk.propertyValidator("estimatedInstanceWarmup",cdk.validateNumber)(properties.estimatedInstanceWarmup)),errors.collect(cdk.propertyValidator("metricAggregationType",cdk.validateString)(properties.metricAggregationType)),errors.collect(cdk.propertyValidator("minAdjustmentMagnitude",cdk.validateNumber)(properties.minAdjustmentMagnitude)),errors.collect(cdk.propertyValidator("policyType",cdk.validateString)(properties.policyType)),errors.collect(cdk.propertyValidator("predictiveScalingConfiguration",CfnScalingPolicy_PredictiveScalingConfigurationPropertyValidator)(properties.predictiveScalingConfiguration)),errors.collect(cdk.propertyValidator("scalingAdjustment",cdk.validateNumber)(properties.scalingAdjustment)),errors.collect(cdk.propertyValidator("stepAdjustments",cdk.listValidator(CfnScalingPolicy_StepAdjustmentPropertyValidator))(properties.stepAdjustments)),errors.collect(cdk.propertyValidator("targetTrackingConfiguration",CfnScalingPolicy_TargetTrackingConfigurationPropertyValidator)(properties.targetTrackingConfiguration)),errors.wrap('supplied properties not correct for "CfnScalingPolicyProps"')}function cfnScalingPolicyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicyPropsValidator(properties).assertSuccess(),{AutoScalingGroupName:cdk.stringToCloudFormation(properties.autoScalingGroupName),AdjustmentType:cdk.stringToCloudFormation(properties.adjustmentType),Cooldown:cdk.stringToCloudFormation(properties.cooldown),EstimatedInstanceWarmup:cdk.numberToCloudFormation(properties.estimatedInstanceWarmup),MetricAggregationType:cdk.stringToCloudFormation(properties.metricAggregationType),MinAdjustmentMagnitude:cdk.numberToCloudFormation(properties.minAdjustmentMagnitude),PolicyType:cdk.stringToCloudFormation(properties.policyType),PredictiveScalingConfiguration:cfnScalingPolicyPredictiveScalingConfigurationPropertyToCloudFormation(properties.predictiveScalingConfiguration),ScalingAdjustment:cdk.numberToCloudFormation(properties.scalingAdjustment),StepAdjustments:cdk.listMapper(cfnScalingPolicyStepAdjustmentPropertyToCloudFormation)(properties.stepAdjustments),TargetTrackingConfiguration:cfnScalingPolicyTargetTrackingConfigurationPropertyToCloudFormation(properties.targetTrackingConfiguration)}):properties}function CfnScalingPolicyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("autoScalingGroupName","AutoScalingGroupName",cfn_parse.FromCloudFormation.getString(properties.AutoScalingGroupName)),ret.addPropertyResult("adjustmentType","AdjustmentType",properties.AdjustmentType!=null?cfn_parse.FromCloudFormation.getString(properties.AdjustmentType):void 0),ret.addPropertyResult("cooldown","Cooldown",properties.Cooldown!=null?cfn_parse.FromCloudFormation.getString(properties.Cooldown):void 0),ret.addPropertyResult("estimatedInstanceWarmup","EstimatedInstanceWarmup",properties.EstimatedInstanceWarmup!=null?cfn_parse.FromCloudFormation.getNumber(properties.EstimatedInstanceWarmup):void 0),ret.addPropertyResult("metricAggregationType","MetricAggregationType",properties.MetricAggregationType!=null?cfn_parse.FromCloudFormation.getString(properties.MetricAggregationType):void 0),ret.addPropertyResult("minAdjustmentMagnitude","MinAdjustmentMagnitude",properties.MinAdjustmentMagnitude!=null?cfn_parse.FromCloudFormation.getNumber(properties.MinAdjustmentMagnitude):void 0),ret.addPropertyResult("policyType","PolicyType",properties.PolicyType!=null?cfn_parse.FromCloudFormation.getString(properties.PolicyType):void 0),ret.addPropertyResult("predictiveScalingConfiguration","PredictiveScalingConfiguration",properties.PredictiveScalingConfiguration!=null?CfnScalingPolicyPredictiveScalingConfigurationPropertyFromCloudFormation(properties.PredictiveScalingConfiguration):void 0),ret.addPropertyResult("scalingAdjustment","ScalingAdjustment",properties.ScalingAdjustment!=null?cfn_parse.FromCloudFormation.getNumber(properties.ScalingAdjustment):void 0),ret.addPropertyResult("stepAdjustments","StepAdjustments",properties.StepAdjustments!=null?cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyStepAdjustmentPropertyFromCloudFormation)(properties.StepAdjustments):void 0),ret.addPropertyResult("targetTrackingConfiguration","TargetTrackingConfiguration",properties.TargetTrackingConfiguration!=null?CfnScalingPolicyTargetTrackingConfigurationPropertyFromCloudFormation(properties.TargetTrackingConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnScalingPolicy extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnScalingPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CfnScalingPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnScalingPolicy),error}cdk.requireProperty(props,"autoScalingGroupName",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn")),this.attrPolicyName=cdk.Token.asString(this.getAtt("PolicyName")),this.autoScalingGroupName=props.autoScalingGroupName,this.adjustmentType=props.adjustmentType,this.cooldown=props.cooldown,this.estimatedInstanceWarmup=props.estimatedInstanceWarmup,this.metricAggregationType=props.metricAggregationType,this.minAdjustmentMagnitude=props.minAdjustmentMagnitude,this.policyType=props.policyType,this.predictiveScalingConfiguration=props.predictiveScalingConfiguration,this.scalingAdjustment=props.scalingAdjustment,this.stepAdjustments=props.stepAdjustments,this.targetTrackingConfiguration=props.targetTrackingConfiguration}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnScalingPolicyPropsFromCloudFormation(resourceProperties),ret=new CfnScalingPolicy(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnScalingPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{autoScalingGroupName:this.autoScalingGroupName,adjustmentType:this.adjustmentType,cooldown:this.cooldown,estimatedInstanceWarmup:this.estimatedInstanceWarmup,metricAggregationType:this.metricAggregationType,minAdjustmentMagnitude:this.minAdjustmentMagnitude,policyType:this.policyType,predictiveScalingConfiguration:this.predictiveScalingConfiguration,scalingAdjustment:this.scalingAdjustment,stepAdjustments:this.stepAdjustments,targetTrackingConfiguration:this.targetTrackingConfiguration}}renderProperties(props){return cfnScalingPolicyPropsToCloudFormation(props)}}exports.CfnScalingPolicy=CfnScalingPolicy,_d=JSII_RTTI_SYMBOL_1,CfnScalingPolicy[_d]={fqn:"aws-cdk-lib.aws_autoscaling.CfnScalingPolicy",version:"2.51.1"},CfnScalingPolicy.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::ScalingPolicy";function CfnScalingPolicy_CustomizedMetricSpecificationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("dimensions",cdk.listValidator(CfnScalingPolicy_MetricDimensionPropertyValidator))(properties.dimensions)),errors.collect(cdk.propertyValidator("metricName",cdk.requiredValidator)(properties.metricName)),errors.collect(cdk.propertyValidator("metricName",cdk.validateString)(properties.metricName)),errors.collect(cdk.propertyValidator("namespace",cdk.requiredValidator)(properties.namespace)),errors.collect(cdk.propertyValidator("namespace",cdk.validateString)(properties.namespace)),errors.collect(cdk.propertyValidator("statistic",cdk.requiredValidator)(properties.statistic)),errors.collect(cdk.propertyValidator("statistic",cdk.validateString)(properties.statistic)),errors.collect(cdk.propertyValidator("unit",cdk.validateString)(properties.unit)),errors.wrap('supplied properties not correct for "CustomizedMetricSpecificationProperty"')}function cfnScalingPolicyCustomizedMetricSpecificationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_CustomizedMetricSpecificationPropertyValidator(properties).assertSuccess(),{Dimensions:cdk.listMapper(cfnScalingPolicyMetricDimensionPropertyToCloudFormation)(properties.dimensions),MetricName:cdk.stringToCloudFormation(properties.metricName),Namespace:cdk.stringToCloudFormation(properties.namespace),Statistic:cdk.stringToCloudFormation(properties.statistic),Unit:cdk.stringToCloudFormation(properties.unit)}):properties}function CfnScalingPolicyCustomizedMetricSpecificationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("dimensions","Dimensions",properties.Dimensions!=null?cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyMetricDimensionPropertyFromCloudFormation)(properties.Dimensions):void 0),ret.addPropertyResult("metricName","MetricName",cfn_parse.FromCloudFormation.getString(properties.MetricName)),ret.addPropertyResult("namespace","Namespace",cfn_parse.FromCloudFormation.getString(properties.Namespace)),ret.addPropertyResult("statistic","Statistic",cfn_parse.FromCloudFormation.getString(properties.Statistic)),ret.addPropertyResult("unit","Unit",properties.Unit!=null?cfn_parse.FromCloudFormation.getString(properties.Unit):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_MetricPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("dimensions",cdk.listValidator(CfnScalingPolicy_MetricDimensionPropertyValidator))(properties.dimensions)),errors.collect(cdk.propertyValidator("metricName",cdk.requiredValidator)(properties.metricName)),errors.collect(cdk.propertyValidator("metricName",cdk.validateString)(properties.metricName)),errors.collect(cdk.propertyValidator("namespace",cdk.requiredValidator)(properties.namespace)),errors.collect(cdk.propertyValidator("namespace",cdk.validateString)(properties.namespace)),errors.wrap('supplied properties not correct for "MetricProperty"')}function cfnScalingPolicyMetricPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_MetricPropertyValidator(properties).assertSuccess(),{Dimensions:cdk.listMapper(cfnScalingPolicyMetricDimensionPropertyToCloudFormation)(properties.dimensions),MetricName:cdk.stringToCloudFormation(properties.metricName),Namespace:cdk.stringToCloudFormation(properties.namespace)}):properties}function CfnScalingPolicyMetricPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("dimensions","Dimensions",properties.Dimensions!=null?cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyMetricDimensionPropertyFromCloudFormation)(properties.Dimensions):void 0),ret.addPropertyResult("metricName","MetricName",cfn_parse.FromCloudFormation.getString(properties.MetricName)),ret.addPropertyResult("namespace","Namespace",cfn_parse.FromCloudFormation.getString(properties.Namespace)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_MetricDataQueryPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("expression",cdk.validateString)(properties.expression)),errors.collect(cdk.propertyValidator("id",cdk.requiredValidator)(properties.id)),errors.collect(cdk.propertyValidator("id",cdk.validateString)(properties.id)),errors.collect(cdk.propertyValidator("label",cdk.validateString)(properties.label)),errors.collect(cdk.propertyValidator("metricStat",CfnScalingPolicy_MetricStatPropertyValidator)(properties.metricStat)),errors.collect(cdk.propertyValidator("returnData",cdk.validateBoolean)(properties.returnData)),errors.wrap('supplied properties not correct for "MetricDataQueryProperty"')}function cfnScalingPolicyMetricDataQueryPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_MetricDataQueryPropertyValidator(properties).assertSuccess(),{Expression:cdk.stringToCloudFormation(properties.expression),Id:cdk.stringToCloudFormation(properties.id),Label:cdk.stringToCloudFormation(properties.label),MetricStat:cfnScalingPolicyMetricStatPropertyToCloudFormation(properties.metricStat),ReturnData:cdk.booleanToCloudFormation(properties.returnData)}):properties}function CfnScalingPolicyMetricDataQueryPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("expression","Expression",properties.Expression!=null?cfn_parse.FromCloudFormation.getString(properties.Expression):void 0),ret.addPropertyResult("id","Id",cfn_parse.FromCloudFormation.getString(properties.Id)),ret.addPropertyResult("label","Label",properties.Label!=null?cfn_parse.FromCloudFormation.getString(properties.Label):void 0),ret.addPropertyResult("metricStat","MetricStat",properties.MetricStat!=null?CfnScalingPolicyMetricStatPropertyFromCloudFormation(properties.MetricStat):void 0),ret.addPropertyResult("returnData","ReturnData",properties.ReturnData!=null?cfn_parse.FromCloudFormation.getBoolean(properties.ReturnData):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_MetricDimensionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("value",cdk.requiredValidator)(properties.value)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "MetricDimensionProperty"')}function cfnScalingPolicyMetricDimensionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_MetricDimensionPropertyValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnScalingPolicyMetricDimensionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_MetricStatPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("metric",cdk.requiredValidator)(properties.metric)),errors.collect(cdk.propertyValidator("metric",CfnScalingPolicy_MetricPropertyValidator)(properties.metric)),errors.collect(cdk.propertyValidator("stat",cdk.requiredValidator)(properties.stat)),errors.collect(cdk.propertyValidator("stat",cdk.validateString)(properties.stat)),errors.collect(cdk.propertyValidator("unit",cdk.validateString)(properties.unit)),errors.wrap('supplied properties not correct for "MetricStatProperty"')}function cfnScalingPolicyMetricStatPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_MetricStatPropertyValidator(properties).assertSuccess(),{Metric:cfnScalingPolicyMetricPropertyToCloudFormation(properties.metric),Stat:cdk.stringToCloudFormation(properties.stat),Unit:cdk.stringToCloudFormation(properties.unit)}):properties}function CfnScalingPolicyMetricStatPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("metric","Metric",CfnScalingPolicyMetricPropertyFromCloudFormation(properties.Metric)),ret.addPropertyResult("stat","Stat",cfn_parse.FromCloudFormation.getString(properties.Stat)),ret.addPropertyResult("unit","Unit",properties.Unit!=null?cfn_parse.FromCloudFormation.getString(properties.Unit):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredefinedMetricSpecificationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.requiredValidator)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.validateString)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("resourceLabel",cdk.validateString)(properties.resourceLabel)),errors.wrap('supplied properties not correct for "PredefinedMetricSpecificationProperty"')}function cfnScalingPolicyPredefinedMetricSpecificationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredefinedMetricSpecificationPropertyValidator(properties).assertSuccess(),{PredefinedMetricType:cdk.stringToCloudFormation(properties.predefinedMetricType),ResourceLabel:cdk.stringToCloudFormation(properties.resourceLabel)}):properties}function CfnScalingPolicyPredefinedMetricSpecificationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("predefinedMetricType","PredefinedMetricType",cfn_parse.FromCloudFormation.getString(properties.PredefinedMetricType)),ret.addPropertyResult("resourceLabel","ResourceLabel",properties.ResourceLabel!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceLabel):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("maxCapacityBreachBehavior",cdk.validateString)(properties.maxCapacityBreachBehavior)),errors.collect(cdk.propertyValidator("maxCapacityBuffer",cdk.validateNumber)(properties.maxCapacityBuffer)),errors.collect(cdk.propertyValidator("metricSpecifications",cdk.requiredValidator)(properties.metricSpecifications)),errors.collect(cdk.propertyValidator("metricSpecifications",cdk.listValidator(CfnScalingPolicy_PredictiveScalingMetricSpecificationPropertyValidator))(properties.metricSpecifications)),errors.collect(cdk.propertyValidator("mode",cdk.validateString)(properties.mode)),errors.collect(cdk.propertyValidator("schedulingBufferTime",cdk.validateNumber)(properties.schedulingBufferTime)),errors.wrap('supplied properties not correct for "PredictiveScalingConfigurationProperty"')}function cfnScalingPolicyPredictiveScalingConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingConfigurationPropertyValidator(properties).assertSuccess(),{MaxCapacityBreachBehavior:cdk.stringToCloudFormation(properties.maxCapacityBreachBehavior),MaxCapacityBuffer:cdk.numberToCloudFormation(properties.maxCapacityBuffer),MetricSpecifications:cdk.listMapper(cfnScalingPolicyPredictiveScalingMetricSpecificationPropertyToCloudFormation)(properties.metricSpecifications),Mode:cdk.stringToCloudFormation(properties.mode),SchedulingBufferTime:cdk.numberToCloudFormation(properties.schedulingBufferTime)}):properties}function CfnScalingPolicyPredictiveScalingConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("maxCapacityBreachBehavior","MaxCapacityBreachBehavior",properties.MaxCapacityBreachBehavior!=null?cfn_parse.FromCloudFormation.getString(properties.MaxCapacityBreachBehavior):void 0),ret.addPropertyResult("maxCapacityBuffer","MaxCapacityBuffer",properties.MaxCapacityBuffer!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxCapacityBuffer):void 0),ret.addPropertyResult("metricSpecifications","MetricSpecifications",cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyPredictiveScalingMetricSpecificationPropertyFromCloudFormation)(properties.MetricSpecifications)),ret.addPropertyResult("mode","Mode",properties.Mode!=null?cfn_parse.FromCloudFormation.getString(properties.Mode):void 0),ret.addPropertyResult("schedulingBufferTime","SchedulingBufferTime",properties.SchedulingBufferTime!=null?cfn_parse.FromCloudFormation.getNumber(properties.SchedulingBufferTime):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingCustomizedCapacityMetricPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("metricDataQueries",cdk.requiredValidator)(properties.metricDataQueries)),errors.collect(cdk.propertyValidator("metricDataQueries",cdk.listValidator(CfnScalingPolicy_MetricDataQueryPropertyValidator))(properties.metricDataQueries)),errors.wrap('supplied properties not correct for "PredictiveScalingCustomizedCapacityMetricProperty"')}function cfnScalingPolicyPredictiveScalingCustomizedCapacityMetricPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingCustomizedCapacityMetricPropertyValidator(properties).assertSuccess(),{MetricDataQueries:cdk.listMapper(cfnScalingPolicyMetricDataQueryPropertyToCloudFormation)(properties.metricDataQueries)}):properties}function CfnScalingPolicyPredictiveScalingCustomizedCapacityMetricPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("metricDataQueries","MetricDataQueries",cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyMetricDataQueryPropertyFromCloudFormation)(properties.MetricDataQueries)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingCustomizedLoadMetricPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("metricDataQueries",cdk.requiredValidator)(properties.metricDataQueries)),errors.collect(cdk.propertyValidator("metricDataQueries",cdk.listValidator(CfnScalingPolicy_MetricDataQueryPropertyValidator))(properties.metricDataQueries)),errors.wrap('supplied properties not correct for "PredictiveScalingCustomizedLoadMetricProperty"')}function cfnScalingPolicyPredictiveScalingCustomizedLoadMetricPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingCustomizedLoadMetricPropertyValidator(properties).assertSuccess(),{MetricDataQueries:cdk.listMapper(cfnScalingPolicyMetricDataQueryPropertyToCloudFormation)(properties.metricDataQueries)}):properties}function CfnScalingPolicyPredictiveScalingCustomizedLoadMetricPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("metricDataQueries","MetricDataQueries",cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyMetricDataQueryPropertyFromCloudFormation)(properties.MetricDataQueries)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingCustomizedScalingMetricPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("metricDataQueries",cdk.requiredValidator)(properties.metricDataQueries)),errors.collect(cdk.propertyValidator("metricDataQueries",cdk.listValidator(CfnScalingPolicy_MetricDataQueryPropertyValidator))(properties.metricDataQueries)),errors.wrap('supplied properties not correct for "PredictiveScalingCustomizedScalingMetricProperty"')}function cfnScalingPolicyPredictiveScalingCustomizedScalingMetricPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingCustomizedScalingMetricPropertyValidator(properties).assertSuccess(),{MetricDataQueries:cdk.listMapper(cfnScalingPolicyMetricDataQueryPropertyToCloudFormation)(properties.metricDataQueries)}):properties}function CfnScalingPolicyPredictiveScalingCustomizedScalingMetricPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("metricDataQueries","MetricDataQueries",cfn_parse.FromCloudFormation.getArray(CfnScalingPolicyMetricDataQueryPropertyFromCloudFormation)(properties.MetricDataQueries)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingMetricSpecificationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("customizedCapacityMetricSpecification",CfnScalingPolicy_PredictiveScalingCustomizedCapacityMetricPropertyValidator)(properties.customizedCapacityMetricSpecification)),errors.collect(cdk.propertyValidator("customizedLoadMetricSpecification",CfnScalingPolicy_PredictiveScalingCustomizedLoadMetricPropertyValidator)(properties.customizedLoadMetricSpecification)),errors.collect(cdk.propertyValidator("customizedScalingMetricSpecification",CfnScalingPolicy_PredictiveScalingCustomizedScalingMetricPropertyValidator)(properties.customizedScalingMetricSpecification)),errors.collect(cdk.propertyValidator("predefinedLoadMetricSpecification",CfnScalingPolicy_PredictiveScalingPredefinedLoadMetricPropertyValidator)(properties.predefinedLoadMetricSpecification)),errors.collect(cdk.propertyValidator("predefinedMetricPairSpecification",CfnScalingPolicy_PredictiveScalingPredefinedMetricPairPropertyValidator)(properties.predefinedMetricPairSpecification)),errors.collect(cdk.propertyValidator("predefinedScalingMetricSpecification",CfnScalingPolicy_PredictiveScalingPredefinedScalingMetricPropertyValidator)(properties.predefinedScalingMetricSpecification)),errors.collect(cdk.propertyValidator("targetValue",cdk.requiredValidator)(properties.targetValue)),errors.collect(cdk.propertyValidator("targetValue",cdk.validateNumber)(properties.targetValue)),errors.wrap('supplied properties not correct for "PredictiveScalingMetricSpecificationProperty"')}function cfnScalingPolicyPredictiveScalingMetricSpecificationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingMetricSpecificationPropertyValidator(properties).assertSuccess(),{CustomizedCapacityMetricSpecification:cfnScalingPolicyPredictiveScalingCustomizedCapacityMetricPropertyToCloudFormation(properties.customizedCapacityMetricSpecification),CustomizedLoadMetricSpecification:cfnScalingPolicyPredictiveScalingCustomizedLoadMetricPropertyToCloudFormation(properties.customizedLoadMetricSpecification),CustomizedScalingMetricSpecification:cfnScalingPolicyPredictiveScalingCustomizedScalingMetricPropertyToCloudFormation(properties.customizedScalingMetricSpecification),PredefinedLoadMetricSpecification:cfnScalingPolicyPredictiveScalingPredefinedLoadMetricPropertyToCloudFormation(properties.predefinedLoadMetricSpecification),PredefinedMetricPairSpecification:cfnScalingPolicyPredictiveScalingPredefinedMetricPairPropertyToCloudFormation(properties.predefinedMetricPairSpecification),PredefinedScalingMetricSpecification:cfnScalingPolicyPredictiveScalingPredefinedScalingMetricPropertyToCloudFormation(properties.predefinedScalingMetricSpecification),TargetValue:cdk.numberToCloudFormation(properties.targetValue)}):properties}function CfnScalingPolicyPredictiveScalingMetricSpecificationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("customizedCapacityMetricSpecification","CustomizedCapacityMetricSpecification",properties.CustomizedCapacityMetricSpecification!=null?CfnScalingPolicyPredictiveScalingCustomizedCapacityMetricPropertyFromCloudFormation(properties.CustomizedCapacityMetricSpecification):void 0),ret.addPropertyResult("customizedLoadMetricSpecification","CustomizedLoadMetricSpecification",properties.CustomizedLoadMetricSpecification!=null?CfnScalingPolicyPredictiveScalingCustomizedLoadMetricPropertyFromCloudFormation(properties.CustomizedLoadMetricSpecification):void 0),ret.addPropertyResult("customizedScalingMetricSpecification","CustomizedScalingMetricSpecification",properties.CustomizedScalingMetricSpecification!=null?CfnScalingPolicyPredictiveScalingCustomizedScalingMetricPropertyFromCloudFormation(properties.CustomizedScalingMetricSpecification):void 0),ret.addPropertyResult("predefinedLoadMetricSpecification","PredefinedLoadMetricSpecification",properties.PredefinedLoadMetricSpecification!=null?CfnScalingPolicyPredictiveScalingPredefinedLoadMetricPropertyFromCloudFormation(properties.PredefinedLoadMetricSpecification):void 0),ret.addPropertyResult("predefinedMetricPairSpecification","PredefinedMetricPairSpecification",properties.PredefinedMetricPairSpecification!=null?CfnScalingPolicyPredictiveScalingPredefinedMetricPairPropertyFromCloudFormation(properties.PredefinedMetricPairSpecification):void 0),ret.addPropertyResult("predefinedScalingMetricSpecification","PredefinedScalingMetricSpecification",properties.PredefinedScalingMetricSpecification!=null?CfnScalingPolicyPredictiveScalingPredefinedScalingMetricPropertyFromCloudFormation(properties.PredefinedScalingMetricSpecification):void 0),ret.addPropertyResult("targetValue","TargetValue",cfn_parse.FromCloudFormation.getNumber(properties.TargetValue)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingPredefinedLoadMetricPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.requiredValidator)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.validateString)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("resourceLabel",cdk.validateString)(properties.resourceLabel)),errors.wrap('supplied properties not correct for "PredictiveScalingPredefinedLoadMetricProperty"')}function cfnScalingPolicyPredictiveScalingPredefinedLoadMetricPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingPredefinedLoadMetricPropertyValidator(properties).assertSuccess(),{PredefinedMetricType:cdk.stringToCloudFormation(properties.predefinedMetricType),ResourceLabel:cdk.stringToCloudFormation(properties.resourceLabel)}):properties}function CfnScalingPolicyPredictiveScalingPredefinedLoadMetricPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("predefinedMetricType","PredefinedMetricType",cfn_parse.FromCloudFormation.getString(properties.PredefinedMetricType)),ret.addPropertyResult("resourceLabel","ResourceLabel",properties.ResourceLabel!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceLabel):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingPredefinedMetricPairPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.requiredValidator)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.validateString)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("resourceLabel",cdk.validateString)(properties.resourceLabel)),errors.wrap('supplied properties not correct for "PredictiveScalingPredefinedMetricPairProperty"')}function cfnScalingPolicyPredictiveScalingPredefinedMetricPairPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingPredefinedMetricPairPropertyValidator(properties).assertSuccess(),{PredefinedMetricType:cdk.stringToCloudFormation(properties.predefinedMetricType),ResourceLabel:cdk.stringToCloudFormation(properties.resourceLabel)}):properties}function CfnScalingPolicyPredictiveScalingPredefinedMetricPairPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("predefinedMetricType","PredefinedMetricType",cfn_parse.FromCloudFormation.getString(properties.PredefinedMetricType)),ret.addPropertyResult("resourceLabel","ResourceLabel",properties.ResourceLabel!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceLabel):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_PredictiveScalingPredefinedScalingMetricPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.requiredValidator)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("predefinedMetricType",cdk.validateString)(properties.predefinedMetricType)),errors.collect(cdk.propertyValidator("resourceLabel",cdk.validateString)(properties.resourceLabel)),errors.wrap('supplied properties not correct for "PredictiveScalingPredefinedScalingMetricProperty"')}function cfnScalingPolicyPredictiveScalingPredefinedScalingMetricPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_PredictiveScalingPredefinedScalingMetricPropertyValidator(properties).assertSuccess(),{PredefinedMetricType:cdk.stringToCloudFormation(properties.predefinedMetricType),ResourceLabel:cdk.stringToCloudFormation(properties.resourceLabel)}):properties}function CfnScalingPolicyPredictiveScalingPredefinedScalingMetricPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("predefinedMetricType","PredefinedMetricType",cfn_parse.FromCloudFormation.getString(properties.PredefinedMetricType)),ret.addPropertyResult("resourceLabel","ResourceLabel",properties.ResourceLabel!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceLabel):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_StepAdjustmentPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("metricIntervalLowerBound",cdk.validateNumber)(properties.metricIntervalLowerBound)),errors.collect(cdk.propertyValidator("metricIntervalUpperBound",cdk.validateNumber)(properties.metricIntervalUpperBound)),errors.collect(cdk.propertyValidator("scalingAdjustment",cdk.requiredValidator)(properties.scalingAdjustment)),errors.collect(cdk.propertyValidator("scalingAdjustment",cdk.validateNumber)(properties.scalingAdjustment)),errors.wrap('supplied properties not correct for "StepAdjustmentProperty"')}function cfnScalingPolicyStepAdjustmentPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_StepAdjustmentPropertyValidator(properties).assertSuccess(),{MetricIntervalLowerBound:cdk.numberToCloudFormation(properties.metricIntervalLowerBound),MetricIntervalUpperBound:cdk.numberToCloudFormation(properties.metricIntervalUpperBound),ScalingAdjustment:cdk.numberToCloudFormation(properties.scalingAdjustment)}):properties}function CfnScalingPolicyStepAdjustmentPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("metricIntervalLowerBound","MetricIntervalLowerBound",properties.MetricIntervalLowerBound!=null?cfn_parse.FromCloudFormation.getNumber(properties.MetricIntervalLowerBound):void 0),ret.addPropertyResult("metricIntervalUpperBound","MetricIntervalUpperBound",properties.MetricIntervalUpperBound!=null?cfn_parse.FromCloudFormation.getNumber(properties.MetricIntervalUpperBound):void 0),ret.addPropertyResult("scalingAdjustment","ScalingAdjustment",cfn_parse.FromCloudFormation.getNumber(properties.ScalingAdjustment)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScalingPolicy_TargetTrackingConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("customizedMetricSpecification",CfnScalingPolicy_CustomizedMetricSpecificationPropertyValidator)(properties.customizedMetricSpecification)),errors.collect(cdk.propertyValidator("disableScaleIn",cdk.validateBoolean)(properties.disableScaleIn)),errors.collect(cdk.propertyValidator("predefinedMetricSpecification",CfnScalingPolicy_PredefinedMetricSpecificationPropertyValidator)(properties.predefinedMetricSpecification)),errors.collect(cdk.propertyValidator("targetValue",cdk.requiredValidator)(properties.targetValue)),errors.collect(cdk.propertyValidator("targetValue",cdk.validateNumber)(properties.targetValue)),errors.wrap('supplied properties not correct for "TargetTrackingConfigurationProperty"')}function cfnScalingPolicyTargetTrackingConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScalingPolicy_TargetTrackingConfigurationPropertyValidator(properties).assertSuccess(),{CustomizedMetricSpecification:cfnScalingPolicyCustomizedMetricSpecificationPropertyToCloudFormation(properties.customizedMetricSpecification),DisableScaleIn:cdk.booleanToCloudFormation(properties.disableScaleIn),PredefinedMetricSpecification:cfnScalingPolicyPredefinedMetricSpecificationPropertyToCloudFormation(properties.predefinedMetricSpecification),TargetValue:cdk.numberToCloudFormation(properties.targetValue)}):properties}function CfnScalingPolicyTargetTrackingConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("customizedMetricSpecification","CustomizedMetricSpecification",properties.CustomizedMetricSpecification!=null?CfnScalingPolicyCustomizedMetricSpecificationPropertyFromCloudFormation(properties.CustomizedMetricSpecification):void 0),ret.addPropertyResult("disableScaleIn","DisableScaleIn",properties.DisableScaleIn!=null?cfn_parse.FromCloudFormation.getBoolean(properties.DisableScaleIn):void 0),ret.addPropertyResult("predefinedMetricSpecification","PredefinedMetricSpecification",properties.PredefinedMetricSpecification!=null?CfnScalingPolicyPredefinedMetricSpecificationPropertyFromCloudFormation(properties.PredefinedMetricSpecification):void 0),ret.addPropertyResult("targetValue","TargetValue",cfn_parse.FromCloudFormation.getNumber(properties.TargetValue)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledActionPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.requiredValidator)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.validateString)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("desiredCapacity",cdk.validateNumber)(properties.desiredCapacity)),errors.collect(cdk.propertyValidator("endTime",cdk.validateString)(properties.endTime)),errors.collect(cdk.propertyValidator("maxSize",cdk.validateNumber)(properties.maxSize)),errors.collect(cdk.propertyValidator("minSize",cdk.validateNumber)(properties.minSize)),errors.collect(cdk.propertyValidator("recurrence",cdk.validateString)(properties.recurrence)),errors.collect(cdk.propertyValidator("startTime",cdk.validateString)(properties.startTime)),errors.collect(cdk.propertyValidator("timeZone",cdk.validateString)(properties.timeZone)),errors.wrap('supplied properties not correct for "CfnScheduledActionProps"')}function cfnScheduledActionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScheduledActionPropsValidator(properties).assertSuccess(),{AutoScalingGroupName:cdk.stringToCloudFormation(properties.autoScalingGroupName),DesiredCapacity:cdk.numberToCloudFormation(properties.desiredCapacity),EndTime:cdk.stringToCloudFormation(properties.endTime),MaxSize:cdk.numberToCloudFormation(properties.maxSize),MinSize:cdk.numberToCloudFormation(properties.minSize),Recurrence:cdk.stringToCloudFormation(properties.recurrence),StartTime:cdk.stringToCloudFormation(properties.startTime),TimeZone:cdk.stringToCloudFormation(properties.timeZone)}):properties}function CfnScheduledActionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("autoScalingGroupName","AutoScalingGroupName",cfn_parse.FromCloudFormation.getString(properties.AutoScalingGroupName)),ret.addPropertyResult("desiredCapacity","DesiredCapacity",properties.DesiredCapacity!=null?cfn_parse.FromCloudFormation.getNumber(properties.DesiredCapacity):void 0),ret.addPropertyResult("endTime","EndTime",properties.EndTime!=null?cfn_parse.FromCloudFormation.getString(properties.EndTime):void 0),ret.addPropertyResult("maxSize","MaxSize",properties.MaxSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxSize):void 0),ret.addPropertyResult("minSize","MinSize",properties.MinSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.MinSize):void 0),ret.addPropertyResult("recurrence","Recurrence",properties.Recurrence!=null?cfn_parse.FromCloudFormation.getString(properties.Recurrence):void 0),ret.addPropertyResult("startTime","StartTime",properties.StartTime!=null?cfn_parse.FromCloudFormation.getString(properties.StartTime):void 0),ret.addPropertyResult("timeZone","TimeZone",properties.TimeZone!=null?cfn_parse.FromCloudFormation.getString(properties.TimeZone):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnScheduledAction extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnScheduledAction.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CfnScheduledActionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnScheduledAction),error}cdk.requireProperty(props,"autoScalingGroupName",this),this.attrScheduledActionName=cdk.Token.asString(this.getAtt("ScheduledActionName")),this.autoScalingGroupName=props.autoScalingGroupName,this.desiredCapacity=props.desiredCapacity,this.endTime=props.endTime,this.maxSize=props.maxSize,this.minSize=props.minSize,this.recurrence=props.recurrence,this.startTime=props.startTime,this.timeZone=props.timeZone}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnScheduledActionPropsFromCloudFormation(resourceProperties),ret=new CfnScheduledAction(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnScheduledAction.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{autoScalingGroupName:this.autoScalingGroupName,desiredCapacity:this.desiredCapacity,endTime:this.endTime,maxSize:this.maxSize,minSize:this.minSize,recurrence:this.recurrence,startTime:this.startTime,timeZone:this.timeZone}}renderProperties(props){return cfnScheduledActionPropsToCloudFormation(props)}}exports.CfnScheduledAction=CfnScheduledAction,_e=JSII_RTTI_SYMBOL_1,CfnScheduledAction[_e]={fqn:"aws-cdk-lib.aws_autoscaling.CfnScheduledAction",version:"2.51.1"},CfnScheduledAction.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::ScheduledAction";function CfnWarmPoolPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.requiredValidator)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("autoScalingGroupName",cdk.validateString)(properties.autoScalingGroupName)),errors.collect(cdk.propertyValidator("instanceReusePolicy",CfnWarmPool_InstanceReusePolicyPropertyValidator)(properties.instanceReusePolicy)),errors.collect(cdk.propertyValidator("maxGroupPreparedCapacity",cdk.validateNumber)(properties.maxGroupPreparedCapacity)),errors.collect(cdk.propertyValidator("minSize",cdk.validateNumber)(properties.minSize)),errors.collect(cdk.propertyValidator("poolState",cdk.validateString)(properties.poolState)),errors.wrap('supplied properties not correct for "CfnWarmPoolProps"')}function cfnWarmPoolPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnWarmPoolPropsValidator(properties).assertSuccess(),{AutoScalingGroupName:cdk.stringToCloudFormation(properties.autoScalingGroupName),InstanceReusePolicy:cfnWarmPoolInstanceReusePolicyPropertyToCloudFormation(properties.instanceReusePolicy),MaxGroupPreparedCapacity:cdk.numberToCloudFormation(properties.maxGroupPreparedCapacity),MinSize:cdk.numberToCloudFormation(properties.minSize),PoolState:cdk.stringToCloudFormation(properties.poolState)}):properties}function CfnWarmPoolPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("autoScalingGroupName","AutoScalingGroupName",cfn_parse.FromCloudFormation.getString(properties.AutoScalingGroupName)),ret.addPropertyResult("instanceReusePolicy","InstanceReusePolicy",properties.InstanceReusePolicy!=null?CfnWarmPoolInstanceReusePolicyPropertyFromCloudFormation(properties.InstanceReusePolicy):void 0),ret.addPropertyResult("maxGroupPreparedCapacity","MaxGroupPreparedCapacity",properties.MaxGroupPreparedCapacity!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxGroupPreparedCapacity):void 0),ret.addPropertyResult("minSize","MinSize",properties.MinSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.MinSize):void 0),ret.addPropertyResult("poolState","PoolState",properties.PoolState!=null?cfn_parse.FromCloudFormation.getString(properties.PoolState):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnWarmPool extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnWarmPool.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CfnWarmPoolProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnWarmPool),error}cdk.requireProperty(props,"autoScalingGroupName",this),this.autoScalingGroupName=props.autoScalingGroupName,this.instanceReusePolicy=props.instanceReusePolicy,this.maxGroupPreparedCapacity=props.maxGroupPreparedCapacity,this.minSize=props.minSize,this.poolState=props.poolState}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnWarmPoolPropsFromCloudFormation(resourceProperties),ret=new CfnWarmPool(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnWarmPool.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{autoScalingGroupName:this.autoScalingGroupName,instanceReusePolicy:this.instanceReusePolicy,maxGroupPreparedCapacity:this.maxGroupPreparedCapacity,minSize:this.minSize,poolState:this.poolState}}renderProperties(props){return cfnWarmPoolPropsToCloudFormation(props)}}exports.CfnWarmPool=CfnWarmPool,_f=JSII_RTTI_SYMBOL_1,CfnWarmPool[_f]={fqn:"aws-cdk-lib.aws_autoscaling.CfnWarmPool",version:"2.51.1"},CfnWarmPool.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::WarmPool";function CfnWarmPool_InstanceReusePolicyPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("reuseOnScaleIn",cdk.validateBoolean)(properties.reuseOnScaleIn)),errors.wrap('supplied properties not correct for "InstanceReusePolicyProperty"')}function cfnWarmPoolInstanceReusePolicyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnWarmPool_InstanceReusePolicyPropertyValidator(properties).assertSuccess(),{ReuseOnScaleIn:cdk.booleanToCloudFormation(properties.reuseOnScaleIn)}):properties}function CfnWarmPoolInstanceReusePolicyPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("reuseOnScaleIn","ReuseOnScaleIn",properties.ReuseOnScaleIn!=null?cfn_parse.FromCloudFormation.getBoolean(properties.ReuseOnScaleIn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}
|
|
2
2
|
//# sourceMappingURL=autoscaling.generated.js.map
|