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;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnKnowledgeBase=exports.CfnAssistantAssociation=exports.CfnAssistant=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 CfnAssistantPropsValidator(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("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("serverSideEncryptionConfiguration",CfnAssistant_ServerSideEncryptionConfigurationPropertyValidator)(properties.serverSideEncryptionConfiguration)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnAssistantProps"')}function cfnAssistantPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAssistantPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Type:cdk.stringToCloudFormation(properties.type),Description:cdk.stringToCloudFormation(properties.description),ServerSideEncryptionConfiguration:cfnAssistantServerSideEncryptionConfigurationPropertyToCloudFormation(properties.serverSideEncryptionConfiguration),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnAssistantPropsFromCloudFormation(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("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("serverSideEncryptionConfiguration","ServerSideEncryptionConfiguration",properties.ServerSideEncryptionConfiguration!=null?CfnAssistantServerSideEncryptionConfigurationPropertyFromCloudFormation(properties.ServerSideEncryptionConfiguration):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAssistant extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnAssistant.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wisdom_CfnAssistantProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAssistant),error}cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"type",this),this.attrAssistantArn=cdk.Token.asString(this.getAtt("AssistantArn")),this.attrAssistantId=cdk.Token.asString(this.getAtt("AssistantId")),this.name=props.name,this.type=props.type,this.description=props.description,this.serverSideEncryptionConfiguration=props.serverSideEncryptionConfiguration,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::Wisdom::Assistant",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAssistantPropsFromCloudFormation(resourceProperties),ret=new CfnAssistant(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",CfnAssistant.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,type:this.type,description:this.description,serverSideEncryptionConfiguration:this.serverSideEncryptionConfiguration,tags:this.tags.renderTags()}}renderProperties(props){return cfnAssistantPropsToCloudFormation(props)}}exports.CfnAssistant=CfnAssistant,_a=JSII_RTTI_SYMBOL_1,CfnAssistant[_a]={fqn:"aws-cdk-lib.aws_wisdom.CfnAssistant",version:"2.51.0"},CfnAssistant.CFN_RESOURCE_TYPE_NAME="AWS::Wisdom::Assistant";function CfnAssistant_ServerSideEncryptionConfigurationPropertyValidator(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("kmsKeyId",cdk.validateString)(properties.kmsKeyId)),errors.wrap('supplied properties not correct for "ServerSideEncryptionConfigurationProperty"')}function cfnAssistantServerSideEncryptionConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAssistant_ServerSideEncryptionConfigurationPropertyValidator(properties).assertSuccess(),{KmsKeyId:cdk.stringToCloudFormation(properties.kmsKeyId)}):properties}function CfnAssistantServerSideEncryptionConfigurationPropertyFromCloudFormation(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("kmsKeyId","KmsKeyId",properties.KmsKeyId!=null?cfn_parse.FromCloudFormation.getString(properties.KmsKeyId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAssistantAssociationPropsValidator(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("assistantId",cdk.requiredValidator)(properties.assistantId)),errors.collect(cdk.propertyValidator("assistantId",cdk.validateString)(properties.assistantId)),errors.collect(cdk.propertyValidator("association",cdk.requiredValidator)(properties.association)),errors.collect(cdk.propertyValidator("association",CfnAssistantAssociation_AssociationDataPropertyValidator)(properties.association)),errors.collect(cdk.propertyValidator("associationType",cdk.requiredValidator)(properties.associationType)),errors.collect(cdk.propertyValidator("associationType",cdk.validateString)(properties.associationType)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnAssistantAssociationProps"')}function cfnAssistantAssociationPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAssistantAssociationPropsValidator(properties).assertSuccess(),{AssistantId:cdk.stringToCloudFormation(properties.assistantId),Association:cfnAssistantAssociationAssociationDataPropertyToCloudFormation(properties.association),AssociationType:cdk.stringToCloudFormation(properties.associationType),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnAssistantAssociationPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("assistantId","AssistantId",cfn_parse.FromCloudFormation.getString(properties.AssistantId)),ret.addPropertyResult("association","Association",CfnAssistantAssociationAssociationDataPropertyFromCloudFormation(properties.Association)),ret.addPropertyResult("associationType","AssociationType",cfn_parse.FromCloudFormation.getString(properties.AssociationType)),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAssistantAssociation extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnAssistantAssociation.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wisdom_CfnAssistantAssociationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAssistantAssociation),error}cdk.requireProperty(props,"assistantId",this),cdk.requireProperty(props,"association",this),cdk.requireProperty(props,"associationType",this),this.attrAssistantArn=cdk.Token.asString(this.getAtt("AssistantArn")),this.attrAssistantAssociationArn=cdk.Token.asString(this.getAtt("AssistantAssociationArn")),this.attrAssistantAssociationId=cdk.Token.asString(this.getAtt("AssistantAssociationId")),this.assistantId=props.assistantId,this.association=props.association,this.associationType=props.associationType,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::Wisdom::AssistantAssociation",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAssistantAssociationPropsFromCloudFormation(resourceProperties),ret=new CfnAssistantAssociation(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",CfnAssistantAssociation.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{assistantId:this.assistantId,association:this.association,associationType:this.associationType,tags:this.tags.renderTags()}}renderProperties(props){return cfnAssistantAssociationPropsToCloudFormation(props)}}exports.CfnAssistantAssociation=CfnAssistantAssociation,_b=JSII_RTTI_SYMBOL_1,CfnAssistantAssociation[_b]={fqn:"aws-cdk-lib.aws_wisdom.CfnAssistantAssociation",version:"2.51.0"},CfnAssistantAssociation.CFN_RESOURCE_TYPE_NAME="AWS::Wisdom::AssistantAssociation";function CfnAssistantAssociation_AssociationDataPropertyValidator(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("knowledgeBaseId",cdk.requiredValidator)(properties.knowledgeBaseId)),errors.collect(cdk.propertyValidator("knowledgeBaseId",cdk.validateString)(properties.knowledgeBaseId)),errors.wrap('supplied properties not correct for "AssociationDataProperty"')}function cfnAssistantAssociationAssociationDataPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAssistantAssociation_AssociationDataPropertyValidator(properties).assertSuccess(),{KnowledgeBaseId:cdk.stringToCloudFormation(properties.knowledgeBaseId)}):properties}function CfnAssistantAssociationAssociationDataPropertyFromCloudFormation(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("knowledgeBaseId","KnowledgeBaseId",cfn_parse.FromCloudFormation.getString(properties.KnowledgeBaseId)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnKnowledgeBasePropsValidator(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("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("knowledgeBaseType",cdk.requiredValidator)(properties.knowledgeBaseType)),errors.collect(cdk.propertyValidator("knowledgeBaseType",cdk.validateString)(properties.knowledgeBaseType)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("renderingConfiguration",CfnKnowledgeBase_RenderingConfigurationPropertyValidator)(properties.renderingConfiguration)),errors.collect(cdk.propertyValidator("serverSideEncryptionConfiguration",CfnKnowledgeBase_ServerSideEncryptionConfigurationPropertyValidator)(properties.serverSideEncryptionConfiguration)),errors.collect(cdk.propertyValidator("sourceConfiguration",CfnKnowledgeBase_SourceConfigurationPropertyValidator)(properties.sourceConfiguration)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnKnowledgeBaseProps"')}function cfnKnowledgeBasePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnKnowledgeBasePropsValidator(properties).assertSuccess(),{KnowledgeBaseType:cdk.stringToCloudFormation(properties.knowledgeBaseType),Name:cdk.stringToCloudFormation(properties.name),Description:cdk.stringToCloudFormation(properties.description),RenderingConfiguration:cfnKnowledgeBaseRenderingConfigurationPropertyToCloudFormation(properties.renderingConfiguration),ServerSideEncryptionConfiguration:cfnKnowledgeBaseServerSideEncryptionConfigurationPropertyToCloudFormation(properties.serverSideEncryptionConfiguration),SourceConfiguration:cfnKnowledgeBaseSourceConfigurationPropertyToCloudFormation(properties.sourceConfiguration),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnKnowledgeBasePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("knowledgeBaseType","KnowledgeBaseType",cfn_parse.FromCloudFormation.getString(properties.KnowledgeBaseType)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("renderingConfiguration","RenderingConfiguration",properties.RenderingConfiguration!=null?CfnKnowledgeBaseRenderingConfigurationPropertyFromCloudFormation(properties.RenderingConfiguration):void 0),ret.addPropertyResult("serverSideEncryptionConfiguration","ServerSideEncryptionConfiguration",properties.ServerSideEncryptionConfiguration!=null?CfnKnowledgeBaseServerSideEncryptionConfigurationPropertyFromCloudFormation(properties.ServerSideEncryptionConfiguration):void 0),ret.addPropertyResult("sourceConfiguration","SourceConfiguration",properties.SourceConfiguration!=null?CfnKnowledgeBaseSourceConfigurationPropertyFromCloudFormation(properties.SourceConfiguration):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnKnowledgeBase extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnKnowledgeBase.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wisdom_CfnKnowledgeBaseProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnKnowledgeBase),error}cdk.requireProperty(props,"knowledgeBaseType",this),cdk.requireProperty(props,"name",this),this.attrKnowledgeBaseArn=cdk.Token.asString(this.getAtt("KnowledgeBaseArn")),this.attrKnowledgeBaseId=cdk.Token.asString(this.getAtt("KnowledgeBaseId")),this.knowledgeBaseType=props.knowledgeBaseType,this.name=props.name,this.description=props.description,this.renderingConfiguration=props.renderingConfiguration,this.serverSideEncryptionConfiguration=props.serverSideEncryptionConfiguration,this.sourceConfiguration=props.sourceConfiguration,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::Wisdom::KnowledgeBase",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnKnowledgeBasePropsFromCloudFormation(resourceProperties),ret=new CfnKnowledgeBase(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",CfnKnowledgeBase.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{knowledgeBaseType:this.knowledgeBaseType,name:this.name,description:this.description,renderingConfiguration:this.renderingConfiguration,serverSideEncryptionConfiguration:this.serverSideEncryptionConfiguration,sourceConfiguration:this.sourceConfiguration,tags:this.tags.renderTags()}}renderProperties(props){return cfnKnowledgeBasePropsToCloudFormation(props)}}exports.CfnKnowledgeBase=CfnKnowledgeBase,_c=JSII_RTTI_SYMBOL_1,CfnKnowledgeBase[_c]={fqn:"aws-cdk-lib.aws_wisdom.CfnKnowledgeBase",version:"2.51.0"},CfnKnowledgeBase.CFN_RESOURCE_TYPE_NAME="AWS::Wisdom::KnowledgeBase";function CfnKnowledgeBase_AppIntegrationsConfigurationPropertyValidator(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("appIntegrationArn",cdk.requiredValidator)(properties.appIntegrationArn)),errors.collect(cdk.propertyValidator("appIntegrationArn",cdk.validateString)(properties.appIntegrationArn)),errors.collect(cdk.propertyValidator("objectFields",cdk.requiredValidator)(properties.objectFields)),errors.collect(cdk.propertyValidator("objectFields",cdk.listValidator(cdk.validateString))(properties.objectFields)),errors.wrap('supplied properties not correct for "AppIntegrationsConfigurationProperty"')}function cfnKnowledgeBaseAppIntegrationsConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnKnowledgeBase_AppIntegrationsConfigurationPropertyValidator(properties).assertSuccess(),{AppIntegrationArn:cdk.stringToCloudFormation(properties.appIntegrationArn),ObjectFields:cdk.listMapper(cdk.stringToCloudFormation)(properties.objectFields)}):properties}function CfnKnowledgeBaseAppIntegrationsConfigurationPropertyFromCloudFormation(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("appIntegrationArn","AppIntegrationArn",cfn_parse.FromCloudFormation.getString(properties.AppIntegrationArn)),ret.addPropertyResult("objectFields","ObjectFields",cfn_parse.FromCloudFormation.getStringArray(properties.ObjectFields)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnKnowledgeBase_RenderingConfigurationPropertyValidator(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("templateUri",cdk.validateString)(properties.templateUri)),errors.wrap('supplied properties not correct for "RenderingConfigurationProperty"')}function cfnKnowledgeBaseRenderingConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnKnowledgeBase_RenderingConfigurationPropertyValidator(properties).assertSuccess(),{TemplateUri:cdk.stringToCloudFormation(properties.templateUri)}):properties}function CfnKnowledgeBaseRenderingConfigurationPropertyFromCloudFormation(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("templateUri","TemplateUri",properties.TemplateUri!=null?cfn_parse.FromCloudFormation.getString(properties.TemplateUri):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnKnowledgeBase_ServerSideEncryptionConfigurationPropertyValidator(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("kmsKeyId",cdk.validateString)(properties.kmsKeyId)),errors.wrap('supplied properties not correct for "ServerSideEncryptionConfigurationProperty"')}function cfnKnowledgeBaseServerSideEncryptionConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnKnowledgeBase_ServerSideEncryptionConfigurationPropertyValidator(properties).assertSuccess(),{KmsKeyId:cdk.stringToCloudFormation(properties.kmsKeyId)}):properties}function CfnKnowledgeBaseServerSideEncryptionConfigurationPropertyFromCloudFormation(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("kmsKeyId","KmsKeyId",properties.KmsKeyId!=null?cfn_parse.FromCloudFormation.getString(properties.KmsKeyId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnKnowledgeBase_SourceConfigurationPropertyValidator(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("appIntegrations",CfnKnowledgeBase_AppIntegrationsConfigurationPropertyValidator)(properties.appIntegrations)),errors.wrap('supplied properties not correct for "SourceConfigurationProperty"')}function cfnKnowledgeBaseSourceConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnKnowledgeBase_SourceConfigurationPropertyValidator(properties).assertSuccess(),{AppIntegrations:cfnKnowledgeBaseAppIntegrationsConfigurationPropertyToCloudFormation(properties.appIntegrations)}):properties}function CfnKnowledgeBaseSourceConfigurationPropertyFromCloudFormation(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("appIntegrations","AppIntegrations",properties.AppIntegrations!=null?CfnKnowledgeBaseAppIntegrationsConfigurationPropertyFromCloudFormation(properties.AppIntegrations):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}
|
|
1
|
+
"use strict";var _a,_b,_c;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnKnowledgeBase=exports.CfnAssistantAssociation=exports.CfnAssistant=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 CfnAssistantPropsValidator(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("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("serverSideEncryptionConfiguration",CfnAssistant_ServerSideEncryptionConfigurationPropertyValidator)(properties.serverSideEncryptionConfiguration)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnAssistantProps"')}function cfnAssistantPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAssistantPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Type:cdk.stringToCloudFormation(properties.type),Description:cdk.stringToCloudFormation(properties.description),ServerSideEncryptionConfiguration:cfnAssistantServerSideEncryptionConfigurationPropertyToCloudFormation(properties.serverSideEncryptionConfiguration),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnAssistantPropsFromCloudFormation(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("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("serverSideEncryptionConfiguration","ServerSideEncryptionConfiguration",properties.ServerSideEncryptionConfiguration!=null?CfnAssistantServerSideEncryptionConfigurationPropertyFromCloudFormation(properties.ServerSideEncryptionConfiguration):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAssistant extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnAssistant.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wisdom_CfnAssistantProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAssistant),error}cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"type",this),this.attrAssistantArn=cdk.Token.asString(this.getAtt("AssistantArn")),this.attrAssistantId=cdk.Token.asString(this.getAtt("AssistantId")),this.name=props.name,this.type=props.type,this.description=props.description,this.serverSideEncryptionConfiguration=props.serverSideEncryptionConfiguration,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::Wisdom::Assistant",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAssistantPropsFromCloudFormation(resourceProperties),ret=new CfnAssistant(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",CfnAssistant.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,type:this.type,description:this.description,serverSideEncryptionConfiguration:this.serverSideEncryptionConfiguration,tags:this.tags.renderTags()}}renderProperties(props){return cfnAssistantPropsToCloudFormation(props)}}exports.CfnAssistant=CfnAssistant,_a=JSII_RTTI_SYMBOL_1,CfnAssistant[_a]={fqn:"aws-cdk-lib.aws_wisdom.CfnAssistant",version:"2.51.1"},CfnAssistant.CFN_RESOURCE_TYPE_NAME="AWS::Wisdom::Assistant";function CfnAssistant_ServerSideEncryptionConfigurationPropertyValidator(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("kmsKeyId",cdk.validateString)(properties.kmsKeyId)),errors.wrap('supplied properties not correct for "ServerSideEncryptionConfigurationProperty"')}function cfnAssistantServerSideEncryptionConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAssistant_ServerSideEncryptionConfigurationPropertyValidator(properties).assertSuccess(),{KmsKeyId:cdk.stringToCloudFormation(properties.kmsKeyId)}):properties}function CfnAssistantServerSideEncryptionConfigurationPropertyFromCloudFormation(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("kmsKeyId","KmsKeyId",properties.KmsKeyId!=null?cfn_parse.FromCloudFormation.getString(properties.KmsKeyId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAssistantAssociationPropsValidator(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("assistantId",cdk.requiredValidator)(properties.assistantId)),errors.collect(cdk.propertyValidator("assistantId",cdk.validateString)(properties.assistantId)),errors.collect(cdk.propertyValidator("association",cdk.requiredValidator)(properties.association)),errors.collect(cdk.propertyValidator("association",CfnAssistantAssociation_AssociationDataPropertyValidator)(properties.association)),errors.collect(cdk.propertyValidator("associationType",cdk.requiredValidator)(properties.associationType)),errors.collect(cdk.propertyValidator("associationType",cdk.validateString)(properties.associationType)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnAssistantAssociationProps"')}function cfnAssistantAssociationPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAssistantAssociationPropsValidator(properties).assertSuccess(),{AssistantId:cdk.stringToCloudFormation(properties.assistantId),Association:cfnAssistantAssociationAssociationDataPropertyToCloudFormation(properties.association),AssociationType:cdk.stringToCloudFormation(properties.associationType),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnAssistantAssociationPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("assistantId","AssistantId",cfn_parse.FromCloudFormation.getString(properties.AssistantId)),ret.addPropertyResult("association","Association",CfnAssistantAssociationAssociationDataPropertyFromCloudFormation(properties.Association)),ret.addPropertyResult("associationType","AssociationType",cfn_parse.FromCloudFormation.getString(properties.AssociationType)),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAssistantAssociation extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnAssistantAssociation.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wisdom_CfnAssistantAssociationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAssistantAssociation),error}cdk.requireProperty(props,"assistantId",this),cdk.requireProperty(props,"association",this),cdk.requireProperty(props,"associationType",this),this.attrAssistantArn=cdk.Token.asString(this.getAtt("AssistantArn")),this.attrAssistantAssociationArn=cdk.Token.asString(this.getAtt("AssistantAssociationArn")),this.attrAssistantAssociationId=cdk.Token.asString(this.getAtt("AssistantAssociationId")),this.assistantId=props.assistantId,this.association=props.association,this.associationType=props.associationType,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::Wisdom::AssistantAssociation",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAssistantAssociationPropsFromCloudFormation(resourceProperties),ret=new CfnAssistantAssociation(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",CfnAssistantAssociation.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{assistantId:this.assistantId,association:this.association,associationType:this.associationType,tags:this.tags.renderTags()}}renderProperties(props){return cfnAssistantAssociationPropsToCloudFormation(props)}}exports.CfnAssistantAssociation=CfnAssistantAssociation,_b=JSII_RTTI_SYMBOL_1,CfnAssistantAssociation[_b]={fqn:"aws-cdk-lib.aws_wisdom.CfnAssistantAssociation",version:"2.51.1"},CfnAssistantAssociation.CFN_RESOURCE_TYPE_NAME="AWS::Wisdom::AssistantAssociation";function CfnAssistantAssociation_AssociationDataPropertyValidator(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("knowledgeBaseId",cdk.requiredValidator)(properties.knowledgeBaseId)),errors.collect(cdk.propertyValidator("knowledgeBaseId",cdk.validateString)(properties.knowledgeBaseId)),errors.wrap('supplied properties not correct for "AssociationDataProperty"')}function cfnAssistantAssociationAssociationDataPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAssistantAssociation_AssociationDataPropertyValidator(properties).assertSuccess(),{KnowledgeBaseId:cdk.stringToCloudFormation(properties.knowledgeBaseId)}):properties}function CfnAssistantAssociationAssociationDataPropertyFromCloudFormation(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("knowledgeBaseId","KnowledgeBaseId",cfn_parse.FromCloudFormation.getString(properties.KnowledgeBaseId)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnKnowledgeBasePropsValidator(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("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("knowledgeBaseType",cdk.requiredValidator)(properties.knowledgeBaseType)),errors.collect(cdk.propertyValidator("knowledgeBaseType",cdk.validateString)(properties.knowledgeBaseType)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("renderingConfiguration",CfnKnowledgeBase_RenderingConfigurationPropertyValidator)(properties.renderingConfiguration)),errors.collect(cdk.propertyValidator("serverSideEncryptionConfiguration",CfnKnowledgeBase_ServerSideEncryptionConfigurationPropertyValidator)(properties.serverSideEncryptionConfiguration)),errors.collect(cdk.propertyValidator("sourceConfiguration",CfnKnowledgeBase_SourceConfigurationPropertyValidator)(properties.sourceConfiguration)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnKnowledgeBaseProps"')}function cfnKnowledgeBasePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnKnowledgeBasePropsValidator(properties).assertSuccess(),{KnowledgeBaseType:cdk.stringToCloudFormation(properties.knowledgeBaseType),Name:cdk.stringToCloudFormation(properties.name),Description:cdk.stringToCloudFormation(properties.description),RenderingConfiguration:cfnKnowledgeBaseRenderingConfigurationPropertyToCloudFormation(properties.renderingConfiguration),ServerSideEncryptionConfiguration:cfnKnowledgeBaseServerSideEncryptionConfigurationPropertyToCloudFormation(properties.serverSideEncryptionConfiguration),SourceConfiguration:cfnKnowledgeBaseSourceConfigurationPropertyToCloudFormation(properties.sourceConfiguration),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnKnowledgeBasePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("knowledgeBaseType","KnowledgeBaseType",cfn_parse.FromCloudFormation.getString(properties.KnowledgeBaseType)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("renderingConfiguration","RenderingConfiguration",properties.RenderingConfiguration!=null?CfnKnowledgeBaseRenderingConfigurationPropertyFromCloudFormation(properties.RenderingConfiguration):void 0),ret.addPropertyResult("serverSideEncryptionConfiguration","ServerSideEncryptionConfiguration",properties.ServerSideEncryptionConfiguration!=null?CfnKnowledgeBaseServerSideEncryptionConfigurationPropertyFromCloudFormation(properties.ServerSideEncryptionConfiguration):void 0),ret.addPropertyResult("sourceConfiguration","SourceConfiguration",properties.SourceConfiguration!=null?CfnKnowledgeBaseSourceConfigurationPropertyFromCloudFormation(properties.SourceConfiguration):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnKnowledgeBase extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnKnowledgeBase.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_wisdom_CfnKnowledgeBaseProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnKnowledgeBase),error}cdk.requireProperty(props,"knowledgeBaseType",this),cdk.requireProperty(props,"name",this),this.attrKnowledgeBaseArn=cdk.Token.asString(this.getAtt("KnowledgeBaseArn")),this.attrKnowledgeBaseId=cdk.Token.asString(this.getAtt("KnowledgeBaseId")),this.knowledgeBaseType=props.knowledgeBaseType,this.name=props.name,this.description=props.description,this.renderingConfiguration=props.renderingConfiguration,this.serverSideEncryptionConfiguration=props.serverSideEncryptionConfiguration,this.sourceConfiguration=props.sourceConfiguration,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::Wisdom::KnowledgeBase",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnKnowledgeBasePropsFromCloudFormation(resourceProperties),ret=new CfnKnowledgeBase(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",CfnKnowledgeBase.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{knowledgeBaseType:this.knowledgeBaseType,name:this.name,description:this.description,renderingConfiguration:this.renderingConfiguration,serverSideEncryptionConfiguration:this.serverSideEncryptionConfiguration,sourceConfiguration:this.sourceConfiguration,tags:this.tags.renderTags()}}renderProperties(props){return cfnKnowledgeBasePropsToCloudFormation(props)}}exports.CfnKnowledgeBase=CfnKnowledgeBase,_c=JSII_RTTI_SYMBOL_1,CfnKnowledgeBase[_c]={fqn:"aws-cdk-lib.aws_wisdom.CfnKnowledgeBase",version:"2.51.1"},CfnKnowledgeBase.CFN_RESOURCE_TYPE_NAME="AWS::Wisdom::KnowledgeBase";function CfnKnowledgeBase_AppIntegrationsConfigurationPropertyValidator(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("appIntegrationArn",cdk.requiredValidator)(properties.appIntegrationArn)),errors.collect(cdk.propertyValidator("appIntegrationArn",cdk.validateString)(properties.appIntegrationArn)),errors.collect(cdk.propertyValidator("objectFields",cdk.requiredValidator)(properties.objectFields)),errors.collect(cdk.propertyValidator("objectFields",cdk.listValidator(cdk.validateString))(properties.objectFields)),errors.wrap('supplied properties not correct for "AppIntegrationsConfigurationProperty"')}function cfnKnowledgeBaseAppIntegrationsConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnKnowledgeBase_AppIntegrationsConfigurationPropertyValidator(properties).assertSuccess(),{AppIntegrationArn:cdk.stringToCloudFormation(properties.appIntegrationArn),ObjectFields:cdk.listMapper(cdk.stringToCloudFormation)(properties.objectFields)}):properties}function CfnKnowledgeBaseAppIntegrationsConfigurationPropertyFromCloudFormation(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("appIntegrationArn","AppIntegrationArn",cfn_parse.FromCloudFormation.getString(properties.AppIntegrationArn)),ret.addPropertyResult("objectFields","ObjectFields",cfn_parse.FromCloudFormation.getStringArray(properties.ObjectFields)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnKnowledgeBase_RenderingConfigurationPropertyValidator(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("templateUri",cdk.validateString)(properties.templateUri)),errors.wrap('supplied properties not correct for "RenderingConfigurationProperty"')}function cfnKnowledgeBaseRenderingConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnKnowledgeBase_RenderingConfigurationPropertyValidator(properties).assertSuccess(),{TemplateUri:cdk.stringToCloudFormation(properties.templateUri)}):properties}function CfnKnowledgeBaseRenderingConfigurationPropertyFromCloudFormation(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("templateUri","TemplateUri",properties.TemplateUri!=null?cfn_parse.FromCloudFormation.getString(properties.TemplateUri):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnKnowledgeBase_ServerSideEncryptionConfigurationPropertyValidator(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("kmsKeyId",cdk.validateString)(properties.kmsKeyId)),errors.wrap('supplied properties not correct for "ServerSideEncryptionConfigurationProperty"')}function cfnKnowledgeBaseServerSideEncryptionConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnKnowledgeBase_ServerSideEncryptionConfigurationPropertyValidator(properties).assertSuccess(),{KmsKeyId:cdk.stringToCloudFormation(properties.kmsKeyId)}):properties}function CfnKnowledgeBaseServerSideEncryptionConfigurationPropertyFromCloudFormation(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("kmsKeyId","KmsKeyId",properties.KmsKeyId!=null?cfn_parse.FromCloudFormation.getString(properties.KmsKeyId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnKnowledgeBase_SourceConfigurationPropertyValidator(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("appIntegrations",CfnKnowledgeBase_AppIntegrationsConfigurationPropertyValidator)(properties.appIntegrations)),errors.wrap('supplied properties not correct for "SourceConfigurationProperty"')}function cfnKnowledgeBaseSourceConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnKnowledgeBase_SourceConfigurationPropertyValidator(properties).assertSuccess(),{AppIntegrations:cfnKnowledgeBaseAppIntegrationsConfigurationPropertyToCloudFormation(properties.appIntegrations)}):properties}function CfnKnowledgeBaseSourceConfigurationPropertyFromCloudFormation(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("appIntegrations","AppIntegrations",properties.AppIntegrations!=null?CfnKnowledgeBaseAppIntegrationsConfigurationPropertyFromCloudFormation(properties.AppIntegrations):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}
|
|
2
2
|
//# sourceMappingURL=wisdom.generated.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnWorkspace=exports.CfnConnectionAlias=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 CfnConnectionAliasPropsValidator(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("connectionString",cdk.requiredValidator)(properties.connectionString)),errors.collect(cdk.propertyValidator("connectionString",cdk.validateString)(properties.connectionString)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnConnectionAliasProps"')}function cfnConnectionAliasPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectionAliasPropsValidator(properties).assertSuccess(),{ConnectionString:cdk.stringToCloudFormation(properties.connectionString),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnConnectionAliasPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("connectionString","ConnectionString",cfn_parse.FromCloudFormation.getString(properties.ConnectionString)),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnConnectionAlias extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnConnectionAlias.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_workspaces_CfnConnectionAliasProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConnectionAlias),error}cdk.requireProperty(props,"connectionString",this),this.attrAliasId=cdk.Token.asString(this.getAtt("AliasId")),this.attrAssociations=this.getAtt("Associations"),this.attrConnectionAliasState=cdk.Token.asString(this.getAtt("ConnectionAliasState")),this.connectionString=props.connectionString,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::WorkSpaces::ConnectionAlias",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConnectionAliasPropsFromCloudFormation(resourceProperties),ret=new CfnConnectionAlias(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",CfnConnectionAlias.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{connectionString:this.connectionString,tags:this.tags.renderTags()}}renderProperties(props){return cfnConnectionAliasPropsToCloudFormation(props)}}exports.CfnConnectionAlias=CfnConnectionAlias,_a=JSII_RTTI_SYMBOL_1,CfnConnectionAlias[_a]={fqn:"aws-cdk-lib.aws_workspaces.CfnConnectionAlias",version:"2.51.0"},CfnConnectionAlias.CFN_RESOURCE_TYPE_NAME="AWS::WorkSpaces::ConnectionAlias";function CfnConnectionAlias_ConnectionAliasAssociationPropertyValidator(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("associatedAccountId",cdk.validateString)(properties.associatedAccountId)),errors.collect(cdk.propertyValidator("associationStatus",cdk.validateString)(properties.associationStatus)),errors.collect(cdk.propertyValidator("connectionIdentifier",cdk.validateString)(properties.connectionIdentifier)),errors.collect(cdk.propertyValidator("resourceId",cdk.validateString)(properties.resourceId)),errors.wrap('supplied properties not correct for "ConnectionAliasAssociationProperty"')}function cfnConnectionAliasConnectionAliasAssociationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectionAlias_ConnectionAliasAssociationPropertyValidator(properties).assertSuccess(),{AssociatedAccountId:cdk.stringToCloudFormation(properties.associatedAccountId),AssociationStatus:cdk.stringToCloudFormation(properties.associationStatus),ConnectionIdentifier:cdk.stringToCloudFormation(properties.connectionIdentifier),ResourceId:cdk.stringToCloudFormation(properties.resourceId)}):properties}function CfnConnectionAliasConnectionAliasAssociationPropertyFromCloudFormation(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("associatedAccountId","AssociatedAccountId",properties.AssociatedAccountId!=null?cfn_parse.FromCloudFormation.getString(properties.AssociatedAccountId):void 0),ret.addPropertyResult("associationStatus","AssociationStatus",properties.AssociationStatus!=null?cfn_parse.FromCloudFormation.getString(properties.AssociationStatus):void 0),ret.addPropertyResult("connectionIdentifier","ConnectionIdentifier",properties.ConnectionIdentifier!=null?cfn_parse.FromCloudFormation.getString(properties.ConnectionIdentifier):void 0),ret.addPropertyResult("resourceId","ResourceId",properties.ResourceId!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnWorkspacePropsValidator(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("bundleId",cdk.requiredValidator)(properties.bundleId)),errors.collect(cdk.propertyValidator("bundleId",cdk.validateString)(properties.bundleId)),errors.collect(cdk.propertyValidator("directoryId",cdk.requiredValidator)(properties.directoryId)),errors.collect(cdk.propertyValidator("directoryId",cdk.validateString)(properties.directoryId)),errors.collect(cdk.propertyValidator("rootVolumeEncryptionEnabled",cdk.validateBoolean)(properties.rootVolumeEncryptionEnabled)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("userName",cdk.requiredValidator)(properties.userName)),errors.collect(cdk.propertyValidator("userName",cdk.validateString)(properties.userName)),errors.collect(cdk.propertyValidator("userVolumeEncryptionEnabled",cdk.validateBoolean)(properties.userVolumeEncryptionEnabled)),errors.collect(cdk.propertyValidator("volumeEncryptionKey",cdk.validateString)(properties.volumeEncryptionKey)),errors.collect(cdk.propertyValidator("workspaceProperties",CfnWorkspace_WorkspacePropertiesPropertyValidator)(properties.workspaceProperties)),errors.wrap('supplied properties not correct for "CfnWorkspaceProps"')}function cfnWorkspacePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnWorkspacePropsValidator(properties).assertSuccess(),{BundleId:cdk.stringToCloudFormation(properties.bundleId),DirectoryId:cdk.stringToCloudFormation(properties.directoryId),UserName:cdk.stringToCloudFormation(properties.userName),RootVolumeEncryptionEnabled:cdk.booleanToCloudFormation(properties.rootVolumeEncryptionEnabled),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),UserVolumeEncryptionEnabled:cdk.booleanToCloudFormation(properties.userVolumeEncryptionEnabled),VolumeEncryptionKey:cdk.stringToCloudFormation(properties.volumeEncryptionKey),WorkspaceProperties:cfnWorkspaceWorkspacePropertiesPropertyToCloudFormation(properties.workspaceProperties)}):properties}function CfnWorkspacePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("bundleId","BundleId",cfn_parse.FromCloudFormation.getString(properties.BundleId)),ret.addPropertyResult("directoryId","DirectoryId",cfn_parse.FromCloudFormation.getString(properties.DirectoryId)),ret.addPropertyResult("userName","UserName",cfn_parse.FromCloudFormation.getString(properties.UserName)),ret.addPropertyResult("rootVolumeEncryptionEnabled","RootVolumeEncryptionEnabled",properties.RootVolumeEncryptionEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.RootVolumeEncryptionEnabled):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("userVolumeEncryptionEnabled","UserVolumeEncryptionEnabled",properties.UserVolumeEncryptionEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.UserVolumeEncryptionEnabled):void 0),ret.addPropertyResult("volumeEncryptionKey","VolumeEncryptionKey",properties.VolumeEncryptionKey!=null?cfn_parse.FromCloudFormation.getString(properties.VolumeEncryptionKey):void 0),ret.addPropertyResult("workspaceProperties","WorkspaceProperties",properties.WorkspaceProperties!=null?CfnWorkspaceWorkspacePropertiesPropertyFromCloudFormation(properties.WorkspaceProperties):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnWorkspace extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnWorkspace.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_workspaces_CfnWorkspaceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnWorkspace),error}cdk.requireProperty(props,"bundleId",this),cdk.requireProperty(props,"directoryId",this),cdk.requireProperty(props,"userName",this),this.bundleId=props.bundleId,this.directoryId=props.directoryId,this.userName=props.userName,this.rootVolumeEncryptionEnabled=props.rootVolumeEncryptionEnabled,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::WorkSpaces::Workspace",props.tags,{tagPropertyName:"tags"}),this.userVolumeEncryptionEnabled=props.userVolumeEncryptionEnabled,this.volumeEncryptionKey=props.volumeEncryptionKey,this.workspaceProperties=props.workspaceProperties}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnWorkspacePropsFromCloudFormation(resourceProperties),ret=new CfnWorkspace(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",CfnWorkspace.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{bundleId:this.bundleId,directoryId:this.directoryId,userName:this.userName,rootVolumeEncryptionEnabled:this.rootVolumeEncryptionEnabled,tags:this.tags.renderTags(),userVolumeEncryptionEnabled:this.userVolumeEncryptionEnabled,volumeEncryptionKey:this.volumeEncryptionKey,workspaceProperties:this.workspaceProperties}}renderProperties(props){return cfnWorkspacePropsToCloudFormation(props)}}exports.CfnWorkspace=CfnWorkspace,_b=JSII_RTTI_SYMBOL_1,CfnWorkspace[_b]={fqn:"aws-cdk-lib.aws_workspaces.CfnWorkspace",version:"2.51.0"},CfnWorkspace.CFN_RESOURCE_TYPE_NAME="AWS::WorkSpaces::Workspace";function CfnWorkspace_WorkspacePropertiesPropertyValidator(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("computeTypeName",cdk.validateString)(properties.computeTypeName)),errors.collect(cdk.propertyValidator("rootVolumeSizeGib",cdk.validateNumber)(properties.rootVolumeSizeGib)),errors.collect(cdk.propertyValidator("runningMode",cdk.validateString)(properties.runningMode)),errors.collect(cdk.propertyValidator("runningModeAutoStopTimeoutInMinutes",cdk.validateNumber)(properties.runningModeAutoStopTimeoutInMinutes)),errors.collect(cdk.propertyValidator("userVolumeSizeGib",cdk.validateNumber)(properties.userVolumeSizeGib)),errors.wrap('supplied properties not correct for "WorkspacePropertiesProperty"')}function cfnWorkspaceWorkspacePropertiesPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnWorkspace_WorkspacePropertiesPropertyValidator(properties).assertSuccess(),{ComputeTypeName:cdk.stringToCloudFormation(properties.computeTypeName),RootVolumeSizeGib:cdk.numberToCloudFormation(properties.rootVolumeSizeGib),RunningMode:cdk.stringToCloudFormation(properties.runningMode),RunningModeAutoStopTimeoutInMinutes:cdk.numberToCloudFormation(properties.runningModeAutoStopTimeoutInMinutes),UserVolumeSizeGib:cdk.numberToCloudFormation(properties.userVolumeSizeGib)}):properties}function CfnWorkspaceWorkspacePropertiesPropertyFromCloudFormation(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("computeTypeName","ComputeTypeName",properties.ComputeTypeName!=null?cfn_parse.FromCloudFormation.getString(properties.ComputeTypeName):void 0),ret.addPropertyResult("rootVolumeSizeGib","RootVolumeSizeGib",properties.RootVolumeSizeGib!=null?cfn_parse.FromCloudFormation.getNumber(properties.RootVolumeSizeGib):void 0),ret.addPropertyResult("runningMode","RunningMode",properties.RunningMode!=null?cfn_parse.FromCloudFormation.getString(properties.RunningMode):void 0),ret.addPropertyResult("runningModeAutoStopTimeoutInMinutes","RunningModeAutoStopTimeoutInMinutes",properties.RunningModeAutoStopTimeoutInMinutes!=null?cfn_parse.FromCloudFormation.getNumber(properties.RunningModeAutoStopTimeoutInMinutes):void 0),ret.addPropertyResult("userVolumeSizeGib","UserVolumeSizeGib",properties.UserVolumeSizeGib!=null?cfn_parse.FromCloudFormation.getNumber(properties.UserVolumeSizeGib):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}
|
|
1
|
+
"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnWorkspace=exports.CfnConnectionAlias=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 CfnConnectionAliasPropsValidator(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("connectionString",cdk.requiredValidator)(properties.connectionString)),errors.collect(cdk.propertyValidator("connectionString",cdk.validateString)(properties.connectionString)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnConnectionAliasProps"')}function cfnConnectionAliasPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectionAliasPropsValidator(properties).assertSuccess(),{ConnectionString:cdk.stringToCloudFormation(properties.connectionString),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnConnectionAliasPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("connectionString","ConnectionString",cfn_parse.FromCloudFormation.getString(properties.ConnectionString)),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnConnectionAlias extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnConnectionAlias.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_workspaces_CfnConnectionAliasProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConnectionAlias),error}cdk.requireProperty(props,"connectionString",this),this.attrAliasId=cdk.Token.asString(this.getAtt("AliasId")),this.attrAssociations=this.getAtt("Associations"),this.attrConnectionAliasState=cdk.Token.asString(this.getAtt("ConnectionAliasState")),this.connectionString=props.connectionString,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::WorkSpaces::ConnectionAlias",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConnectionAliasPropsFromCloudFormation(resourceProperties),ret=new CfnConnectionAlias(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",CfnConnectionAlias.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{connectionString:this.connectionString,tags:this.tags.renderTags()}}renderProperties(props){return cfnConnectionAliasPropsToCloudFormation(props)}}exports.CfnConnectionAlias=CfnConnectionAlias,_a=JSII_RTTI_SYMBOL_1,CfnConnectionAlias[_a]={fqn:"aws-cdk-lib.aws_workspaces.CfnConnectionAlias",version:"2.51.1"},CfnConnectionAlias.CFN_RESOURCE_TYPE_NAME="AWS::WorkSpaces::ConnectionAlias";function CfnConnectionAlias_ConnectionAliasAssociationPropertyValidator(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("associatedAccountId",cdk.validateString)(properties.associatedAccountId)),errors.collect(cdk.propertyValidator("associationStatus",cdk.validateString)(properties.associationStatus)),errors.collect(cdk.propertyValidator("connectionIdentifier",cdk.validateString)(properties.connectionIdentifier)),errors.collect(cdk.propertyValidator("resourceId",cdk.validateString)(properties.resourceId)),errors.wrap('supplied properties not correct for "ConnectionAliasAssociationProperty"')}function cfnConnectionAliasConnectionAliasAssociationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectionAlias_ConnectionAliasAssociationPropertyValidator(properties).assertSuccess(),{AssociatedAccountId:cdk.stringToCloudFormation(properties.associatedAccountId),AssociationStatus:cdk.stringToCloudFormation(properties.associationStatus),ConnectionIdentifier:cdk.stringToCloudFormation(properties.connectionIdentifier),ResourceId:cdk.stringToCloudFormation(properties.resourceId)}):properties}function CfnConnectionAliasConnectionAliasAssociationPropertyFromCloudFormation(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("associatedAccountId","AssociatedAccountId",properties.AssociatedAccountId!=null?cfn_parse.FromCloudFormation.getString(properties.AssociatedAccountId):void 0),ret.addPropertyResult("associationStatus","AssociationStatus",properties.AssociationStatus!=null?cfn_parse.FromCloudFormation.getString(properties.AssociationStatus):void 0),ret.addPropertyResult("connectionIdentifier","ConnectionIdentifier",properties.ConnectionIdentifier!=null?cfn_parse.FromCloudFormation.getString(properties.ConnectionIdentifier):void 0),ret.addPropertyResult("resourceId","ResourceId",properties.ResourceId!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnWorkspacePropsValidator(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("bundleId",cdk.requiredValidator)(properties.bundleId)),errors.collect(cdk.propertyValidator("bundleId",cdk.validateString)(properties.bundleId)),errors.collect(cdk.propertyValidator("directoryId",cdk.requiredValidator)(properties.directoryId)),errors.collect(cdk.propertyValidator("directoryId",cdk.validateString)(properties.directoryId)),errors.collect(cdk.propertyValidator("rootVolumeEncryptionEnabled",cdk.validateBoolean)(properties.rootVolumeEncryptionEnabled)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("userName",cdk.requiredValidator)(properties.userName)),errors.collect(cdk.propertyValidator("userName",cdk.validateString)(properties.userName)),errors.collect(cdk.propertyValidator("userVolumeEncryptionEnabled",cdk.validateBoolean)(properties.userVolumeEncryptionEnabled)),errors.collect(cdk.propertyValidator("volumeEncryptionKey",cdk.validateString)(properties.volumeEncryptionKey)),errors.collect(cdk.propertyValidator("workspaceProperties",CfnWorkspace_WorkspacePropertiesPropertyValidator)(properties.workspaceProperties)),errors.wrap('supplied properties not correct for "CfnWorkspaceProps"')}function cfnWorkspacePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnWorkspacePropsValidator(properties).assertSuccess(),{BundleId:cdk.stringToCloudFormation(properties.bundleId),DirectoryId:cdk.stringToCloudFormation(properties.directoryId),UserName:cdk.stringToCloudFormation(properties.userName),RootVolumeEncryptionEnabled:cdk.booleanToCloudFormation(properties.rootVolumeEncryptionEnabled),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),UserVolumeEncryptionEnabled:cdk.booleanToCloudFormation(properties.userVolumeEncryptionEnabled),VolumeEncryptionKey:cdk.stringToCloudFormation(properties.volumeEncryptionKey),WorkspaceProperties:cfnWorkspaceWorkspacePropertiesPropertyToCloudFormation(properties.workspaceProperties)}):properties}function CfnWorkspacePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("bundleId","BundleId",cfn_parse.FromCloudFormation.getString(properties.BundleId)),ret.addPropertyResult("directoryId","DirectoryId",cfn_parse.FromCloudFormation.getString(properties.DirectoryId)),ret.addPropertyResult("userName","UserName",cfn_parse.FromCloudFormation.getString(properties.UserName)),ret.addPropertyResult("rootVolumeEncryptionEnabled","RootVolumeEncryptionEnabled",properties.RootVolumeEncryptionEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.RootVolumeEncryptionEnabled):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("userVolumeEncryptionEnabled","UserVolumeEncryptionEnabled",properties.UserVolumeEncryptionEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.UserVolumeEncryptionEnabled):void 0),ret.addPropertyResult("volumeEncryptionKey","VolumeEncryptionKey",properties.VolumeEncryptionKey!=null?cfn_parse.FromCloudFormation.getString(properties.VolumeEncryptionKey):void 0),ret.addPropertyResult("workspaceProperties","WorkspaceProperties",properties.WorkspaceProperties!=null?CfnWorkspaceWorkspacePropertiesPropertyFromCloudFormation(properties.WorkspaceProperties):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnWorkspace extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnWorkspace.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_workspaces_CfnWorkspaceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnWorkspace),error}cdk.requireProperty(props,"bundleId",this),cdk.requireProperty(props,"directoryId",this),cdk.requireProperty(props,"userName",this),this.bundleId=props.bundleId,this.directoryId=props.directoryId,this.userName=props.userName,this.rootVolumeEncryptionEnabled=props.rootVolumeEncryptionEnabled,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::WorkSpaces::Workspace",props.tags,{tagPropertyName:"tags"}),this.userVolumeEncryptionEnabled=props.userVolumeEncryptionEnabled,this.volumeEncryptionKey=props.volumeEncryptionKey,this.workspaceProperties=props.workspaceProperties}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnWorkspacePropsFromCloudFormation(resourceProperties),ret=new CfnWorkspace(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",CfnWorkspace.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{bundleId:this.bundleId,directoryId:this.directoryId,userName:this.userName,rootVolumeEncryptionEnabled:this.rootVolumeEncryptionEnabled,tags:this.tags.renderTags(),userVolumeEncryptionEnabled:this.userVolumeEncryptionEnabled,volumeEncryptionKey:this.volumeEncryptionKey,workspaceProperties:this.workspaceProperties}}renderProperties(props){return cfnWorkspacePropsToCloudFormation(props)}}exports.CfnWorkspace=CfnWorkspace,_b=JSII_RTTI_SYMBOL_1,CfnWorkspace[_b]={fqn:"aws-cdk-lib.aws_workspaces.CfnWorkspace",version:"2.51.1"},CfnWorkspace.CFN_RESOURCE_TYPE_NAME="AWS::WorkSpaces::Workspace";function CfnWorkspace_WorkspacePropertiesPropertyValidator(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("computeTypeName",cdk.validateString)(properties.computeTypeName)),errors.collect(cdk.propertyValidator("rootVolumeSizeGib",cdk.validateNumber)(properties.rootVolumeSizeGib)),errors.collect(cdk.propertyValidator("runningMode",cdk.validateString)(properties.runningMode)),errors.collect(cdk.propertyValidator("runningModeAutoStopTimeoutInMinutes",cdk.validateNumber)(properties.runningModeAutoStopTimeoutInMinutes)),errors.collect(cdk.propertyValidator("userVolumeSizeGib",cdk.validateNumber)(properties.userVolumeSizeGib)),errors.wrap('supplied properties not correct for "WorkspacePropertiesProperty"')}function cfnWorkspaceWorkspacePropertiesPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnWorkspace_WorkspacePropertiesPropertyValidator(properties).assertSuccess(),{ComputeTypeName:cdk.stringToCloudFormation(properties.computeTypeName),RootVolumeSizeGib:cdk.numberToCloudFormation(properties.rootVolumeSizeGib),RunningMode:cdk.stringToCloudFormation(properties.runningMode),RunningModeAutoStopTimeoutInMinutes:cdk.numberToCloudFormation(properties.runningModeAutoStopTimeoutInMinutes),UserVolumeSizeGib:cdk.numberToCloudFormation(properties.userVolumeSizeGib)}):properties}function CfnWorkspaceWorkspacePropertiesPropertyFromCloudFormation(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("computeTypeName","ComputeTypeName",properties.ComputeTypeName!=null?cfn_parse.FromCloudFormation.getString(properties.ComputeTypeName):void 0),ret.addPropertyResult("rootVolumeSizeGib","RootVolumeSizeGib",properties.RootVolumeSizeGib!=null?cfn_parse.FromCloudFormation.getNumber(properties.RootVolumeSizeGib):void 0),ret.addPropertyResult("runningMode","RunningMode",properties.RunningMode!=null?cfn_parse.FromCloudFormation.getString(properties.RunningMode):void 0),ret.addPropertyResult("runningModeAutoStopTimeoutInMinutes","RunningModeAutoStopTimeoutInMinutes",properties.RunningModeAutoStopTimeoutInMinutes!=null?cfn_parse.FromCloudFormation.getNumber(properties.RunningModeAutoStopTimeoutInMinutes):void 0),ret.addPropertyResult("userVolumeSizeGib","UserVolumeSizeGib",properties.UserVolumeSizeGib!=null?cfn_parse.FromCloudFormation.getNumber(properties.UserVolumeSizeGib):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}
|
|
2
2
|
//# sourceMappingURL=workspaces.generated.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var _a,_b,_c;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnSamplingRule=exports.CfnResourcePolicy=exports.CfnGroup=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 CfnGroupPropsValidator(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("filterExpression",cdk.validateString)(properties.filterExpression)),errors.collect(cdk.propertyValidator("groupName",cdk.validateString)(properties.groupName)),errors.collect(cdk.propertyValidator("insightsConfiguration",CfnGroup_InsightsConfigurationPropertyValidator)(properties.insightsConfiguration)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateObject))(properties.tags)),errors.wrap('supplied properties not correct for "CfnGroupProps"')}function cfnGroupPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnGroupPropsValidator(properties).assertSuccess(),{FilterExpression:cdk.stringToCloudFormation(properties.filterExpression),GroupName:cdk.stringToCloudFormation(properties.groupName),InsightsConfiguration:cfnGroupInsightsConfigurationPropertyToCloudFormation(properties.insightsConfiguration),Tags:cdk.listMapper(cdk.objectToCloudFormation)(properties.tags)}):properties}function CfnGroupPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("filterExpression","FilterExpression",properties.FilterExpression!=null?cfn_parse.FromCloudFormation.getString(properties.FilterExpression):void 0),ret.addPropertyResult("groupName","GroupName",properties.GroupName!=null?cfn_parse.FromCloudFormation.getString(properties.GroupName):void 0),ret.addPropertyResult("insightsConfiguration","InsightsConfiguration",properties.InsightsConfiguration!=null?CfnGroupInsightsConfigurationPropertyFromCloudFormation(properties.InsightsConfiguration):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getAny)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnGroup extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_xray_CfnGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnGroup),error}this.attrGroupArn=cdk.Token.asString(this.getAtt("GroupARN")),this.filterExpression=props.filterExpression,this.groupName=props.groupName,this.insightsConfiguration=props.insightsConfiguration,this.tags=props.tags}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnGroupPropsFromCloudFormation(resourceProperties),ret=new CfnGroup(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",CfnGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{filterExpression:this.filterExpression,groupName:this.groupName,insightsConfiguration:this.insightsConfiguration,tags:this.tags}}renderProperties(props){return cfnGroupPropsToCloudFormation(props)}}exports.CfnGroup=CfnGroup,_a=JSII_RTTI_SYMBOL_1,CfnGroup[_a]={fqn:"aws-cdk-lib.aws_xray.CfnGroup",version:"2.51.0"},CfnGroup.CFN_RESOURCE_TYPE_NAME="AWS::XRay::Group";function CfnGroup_InsightsConfigurationPropertyValidator(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("insightsEnabled",cdk.validateBoolean)(properties.insightsEnabled)),errors.collect(cdk.propertyValidator("notificationsEnabled",cdk.validateBoolean)(properties.notificationsEnabled)),errors.wrap('supplied properties not correct for "InsightsConfigurationProperty"')}function cfnGroupInsightsConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnGroup_InsightsConfigurationPropertyValidator(properties).assertSuccess(),{InsightsEnabled:cdk.booleanToCloudFormation(properties.insightsEnabled),NotificationsEnabled:cdk.booleanToCloudFormation(properties.notificationsEnabled)}):properties}function CfnGroupInsightsConfigurationPropertyFromCloudFormation(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("insightsEnabled","InsightsEnabled",properties.InsightsEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.InsightsEnabled):void 0),ret.addPropertyResult("notificationsEnabled","NotificationsEnabled",properties.NotificationsEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.NotificationsEnabled):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResourcePolicyPropsValidator(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("bypassPolicyLockoutCheck",cdk.validateBoolean)(properties.bypassPolicyLockoutCheck)),errors.collect(cdk.propertyValidator("policyDocument",cdk.requiredValidator)(properties.policyDocument)),errors.collect(cdk.propertyValidator("policyDocument",cdk.validateString)(properties.policyDocument)),errors.collect(cdk.propertyValidator("policyName",cdk.requiredValidator)(properties.policyName)),errors.collect(cdk.propertyValidator("policyName",cdk.validateString)(properties.policyName)),errors.wrap('supplied properties not correct for "CfnResourcePolicyProps"')}function cfnResourcePolicyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnResourcePolicyPropsValidator(properties).assertSuccess(),{PolicyDocument:cdk.stringToCloudFormation(properties.policyDocument),PolicyName:cdk.stringToCloudFormation(properties.policyName),BypassPolicyLockoutCheck:cdk.booleanToCloudFormation(properties.bypassPolicyLockoutCheck)}):properties}function CfnResourcePolicyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("policyDocument","PolicyDocument",cfn_parse.FromCloudFormation.getString(properties.PolicyDocument)),ret.addPropertyResult("policyName","PolicyName",cfn_parse.FromCloudFormation.getString(properties.PolicyName)),ret.addPropertyResult("bypassPolicyLockoutCheck","BypassPolicyLockoutCheck",properties.BypassPolicyLockoutCheck!=null?cfn_parse.FromCloudFormation.getBoolean(properties.BypassPolicyLockoutCheck):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnResourcePolicy extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnResourcePolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_xray_CfnResourcePolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnResourcePolicy),error}cdk.requireProperty(props,"policyDocument",this),cdk.requireProperty(props,"policyName",this),this.policyDocument=props.policyDocument,this.policyName=props.policyName,this.bypassPolicyLockoutCheck=props.bypassPolicyLockoutCheck}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnResourcePolicyPropsFromCloudFormation(resourceProperties),ret=new CfnResourcePolicy(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",CfnResourcePolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{policyDocument:this.policyDocument,policyName:this.policyName,bypassPolicyLockoutCheck:this.bypassPolicyLockoutCheck}}renderProperties(props){return cfnResourcePolicyPropsToCloudFormation(props)}}exports.CfnResourcePolicy=CfnResourcePolicy,_b=JSII_RTTI_SYMBOL_1,CfnResourcePolicy[_b]={fqn:"aws-cdk-lib.aws_xray.CfnResourcePolicy",version:"2.51.0"},CfnResourcePolicy.CFN_RESOURCE_TYPE_NAME="AWS::XRay::ResourcePolicy";function CfnSamplingRulePropsValidator(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("ruleName",cdk.validateString)(properties.ruleName)),errors.collect(cdk.propertyValidator("samplingRule",CfnSamplingRule_SamplingRulePropertyValidator)(properties.samplingRule)),errors.collect(cdk.propertyValidator("samplingRuleRecord",CfnSamplingRule_SamplingRuleRecordPropertyValidator)(properties.samplingRuleRecord)),errors.collect(cdk.propertyValidator("samplingRuleUpdate",CfnSamplingRule_SamplingRuleUpdatePropertyValidator)(properties.samplingRuleUpdate)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateObject))(properties.tags)),errors.wrap('supplied properties not correct for "CfnSamplingRuleProps"')}function cfnSamplingRulePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSamplingRulePropsValidator(properties).assertSuccess(),{RuleName:cdk.stringToCloudFormation(properties.ruleName),SamplingRule:cfnSamplingRuleSamplingRulePropertyToCloudFormation(properties.samplingRule),SamplingRuleRecord:cfnSamplingRuleSamplingRuleRecordPropertyToCloudFormation(properties.samplingRuleRecord),SamplingRuleUpdate:cfnSamplingRuleSamplingRuleUpdatePropertyToCloudFormation(properties.samplingRuleUpdate),Tags:cdk.listMapper(cdk.objectToCloudFormation)(properties.tags)}):properties}function CfnSamplingRulePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("ruleName","RuleName",properties.RuleName!=null?cfn_parse.FromCloudFormation.getString(properties.RuleName):void 0),ret.addPropertyResult("samplingRule","SamplingRule",properties.SamplingRule!=null?CfnSamplingRuleSamplingRulePropertyFromCloudFormation(properties.SamplingRule):void 0),ret.addPropertyResult("samplingRuleRecord","SamplingRuleRecord",properties.SamplingRuleRecord!=null?CfnSamplingRuleSamplingRuleRecordPropertyFromCloudFormation(properties.SamplingRuleRecord):void 0),ret.addPropertyResult("samplingRuleUpdate","SamplingRuleUpdate",properties.SamplingRuleUpdate!=null?CfnSamplingRuleSamplingRuleUpdatePropertyFromCloudFormation(properties.SamplingRuleUpdate):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getAny)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSamplingRule extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnSamplingRule.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_xray_CfnSamplingRuleProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSamplingRule),error}this.attrRuleArn=cdk.Token.asString(this.getAtt("RuleARN")),this.ruleName=props.ruleName,this.samplingRule=props.samplingRule,this.samplingRuleRecord=props.samplingRuleRecord,this.samplingRuleUpdate=props.samplingRuleUpdate,this.tags=props.tags}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSamplingRulePropsFromCloudFormation(resourceProperties),ret=new CfnSamplingRule(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",CfnSamplingRule.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{ruleName:this.ruleName,samplingRule:this.samplingRule,samplingRuleRecord:this.samplingRuleRecord,samplingRuleUpdate:this.samplingRuleUpdate,tags:this.tags}}renderProperties(props){return cfnSamplingRulePropsToCloudFormation(props)}}exports.CfnSamplingRule=CfnSamplingRule,_c=JSII_RTTI_SYMBOL_1,CfnSamplingRule[_c]={fqn:"aws-cdk-lib.aws_xray.CfnSamplingRule",version:"2.51.0"},CfnSamplingRule.CFN_RESOURCE_TYPE_NAME="AWS::XRay::SamplingRule";function CfnSamplingRule_SamplingRulePropertyValidator(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("attributes",cdk.hashValidator(cdk.validateString))(properties.attributes)),errors.collect(cdk.propertyValidator("fixedRate",cdk.validateNumber)(properties.fixedRate)),errors.collect(cdk.propertyValidator("httpMethod",cdk.validateString)(properties.httpMethod)),errors.collect(cdk.propertyValidator("host",cdk.validateString)(properties.host)),errors.collect(cdk.propertyValidator("priority",cdk.validateNumber)(properties.priority)),errors.collect(cdk.propertyValidator("reservoirSize",cdk.validateNumber)(properties.reservoirSize)),errors.collect(cdk.propertyValidator("resourceArn",cdk.validateString)(properties.resourceArn)),errors.collect(cdk.propertyValidator("ruleArn",cdk.validateString)(properties.ruleArn)),errors.collect(cdk.propertyValidator("ruleName",cdk.validateString)(properties.ruleName)),errors.collect(cdk.propertyValidator("serviceName",cdk.validateString)(properties.serviceName)),errors.collect(cdk.propertyValidator("serviceType",cdk.validateString)(properties.serviceType)),errors.collect(cdk.propertyValidator("urlPath",cdk.validateString)(properties.urlPath)),errors.collect(cdk.propertyValidator("version",cdk.validateNumber)(properties.version)),errors.wrap('supplied properties not correct for "SamplingRuleProperty"')}function cfnSamplingRuleSamplingRulePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSamplingRule_SamplingRulePropertyValidator(properties).assertSuccess(),{Attributes:cdk.hashMapper(cdk.stringToCloudFormation)(properties.attributes),FixedRate:cdk.numberToCloudFormation(properties.fixedRate),HTTPMethod:cdk.stringToCloudFormation(properties.httpMethod),Host:cdk.stringToCloudFormation(properties.host),Priority:cdk.numberToCloudFormation(properties.priority),ReservoirSize:cdk.numberToCloudFormation(properties.reservoirSize),ResourceARN:cdk.stringToCloudFormation(properties.resourceArn),RuleARN:cdk.stringToCloudFormation(properties.ruleArn),RuleName:cdk.stringToCloudFormation(properties.ruleName),ServiceName:cdk.stringToCloudFormation(properties.serviceName),ServiceType:cdk.stringToCloudFormation(properties.serviceType),URLPath:cdk.stringToCloudFormation(properties.urlPath),Version:cdk.numberToCloudFormation(properties.version)}):properties}function CfnSamplingRuleSamplingRulePropertyFromCloudFormation(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("attributes","Attributes",properties.Attributes!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.Attributes):void 0),ret.addPropertyResult("fixedRate","FixedRate",properties.FixedRate!=null?cfn_parse.FromCloudFormation.getNumber(properties.FixedRate):void 0),ret.addPropertyResult("httpMethod","HTTPMethod",properties.HTTPMethod!=null?cfn_parse.FromCloudFormation.getString(properties.HTTPMethod):void 0),ret.addPropertyResult("host","Host",properties.Host!=null?cfn_parse.FromCloudFormation.getString(properties.Host):void 0),ret.addPropertyResult("priority","Priority",properties.Priority!=null?cfn_parse.FromCloudFormation.getNumber(properties.Priority):void 0),ret.addPropertyResult("reservoirSize","ReservoirSize",properties.ReservoirSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.ReservoirSize):void 0),ret.addPropertyResult("resourceArn","ResourceARN",properties.ResourceARN!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceARN):void 0),ret.addPropertyResult("ruleArn","RuleARN",properties.RuleARN!=null?cfn_parse.FromCloudFormation.getString(properties.RuleARN):void 0),ret.addPropertyResult("ruleName","RuleName",properties.RuleName!=null?cfn_parse.FromCloudFormation.getString(properties.RuleName):void 0),ret.addPropertyResult("serviceName","ServiceName",properties.ServiceName!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceName):void 0),ret.addPropertyResult("serviceType","ServiceType",properties.ServiceType!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceType):void 0),ret.addPropertyResult("urlPath","URLPath",properties.URLPath!=null?cfn_parse.FromCloudFormation.getString(properties.URLPath):void 0),ret.addPropertyResult("version","Version",properties.Version!=null?cfn_parse.FromCloudFormation.getNumber(properties.Version):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSamplingRule_SamplingRuleRecordPropertyValidator(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("createdAt",cdk.validateString)(properties.createdAt)),errors.collect(cdk.propertyValidator("modifiedAt",cdk.validateString)(properties.modifiedAt)),errors.collect(cdk.propertyValidator("samplingRule",CfnSamplingRule_SamplingRulePropertyValidator)(properties.samplingRule)),errors.wrap('supplied properties not correct for "SamplingRuleRecordProperty"')}function cfnSamplingRuleSamplingRuleRecordPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSamplingRule_SamplingRuleRecordPropertyValidator(properties).assertSuccess(),{CreatedAt:cdk.stringToCloudFormation(properties.createdAt),ModifiedAt:cdk.stringToCloudFormation(properties.modifiedAt),SamplingRule:cfnSamplingRuleSamplingRulePropertyToCloudFormation(properties.samplingRule)}):properties}function CfnSamplingRuleSamplingRuleRecordPropertyFromCloudFormation(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("createdAt","CreatedAt",properties.CreatedAt!=null?cfn_parse.FromCloudFormation.getString(properties.CreatedAt):void 0),ret.addPropertyResult("modifiedAt","ModifiedAt",properties.ModifiedAt!=null?cfn_parse.FromCloudFormation.getString(properties.ModifiedAt):void 0),ret.addPropertyResult("samplingRule","SamplingRule",properties.SamplingRule!=null?CfnSamplingRuleSamplingRulePropertyFromCloudFormation(properties.SamplingRule):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSamplingRule_SamplingRuleUpdatePropertyValidator(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("attributes",cdk.hashValidator(cdk.validateString))(properties.attributes)),errors.collect(cdk.propertyValidator("fixedRate",cdk.validateNumber)(properties.fixedRate)),errors.collect(cdk.propertyValidator("httpMethod",cdk.validateString)(properties.httpMethod)),errors.collect(cdk.propertyValidator("host",cdk.validateString)(properties.host)),errors.collect(cdk.propertyValidator("priority",cdk.validateNumber)(properties.priority)),errors.collect(cdk.propertyValidator("reservoirSize",cdk.validateNumber)(properties.reservoirSize)),errors.collect(cdk.propertyValidator("resourceArn",cdk.validateString)(properties.resourceArn)),errors.collect(cdk.propertyValidator("ruleArn",cdk.validateString)(properties.ruleArn)),errors.collect(cdk.propertyValidator("ruleName",cdk.validateString)(properties.ruleName)),errors.collect(cdk.propertyValidator("serviceName",cdk.validateString)(properties.serviceName)),errors.collect(cdk.propertyValidator("serviceType",cdk.validateString)(properties.serviceType)),errors.collect(cdk.propertyValidator("urlPath",cdk.validateString)(properties.urlPath)),errors.wrap('supplied properties not correct for "SamplingRuleUpdateProperty"')}function cfnSamplingRuleSamplingRuleUpdatePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSamplingRule_SamplingRuleUpdatePropertyValidator(properties).assertSuccess(),{Attributes:cdk.hashMapper(cdk.stringToCloudFormation)(properties.attributes),FixedRate:cdk.numberToCloudFormation(properties.fixedRate),HTTPMethod:cdk.stringToCloudFormation(properties.httpMethod),Host:cdk.stringToCloudFormation(properties.host),Priority:cdk.numberToCloudFormation(properties.priority),ReservoirSize:cdk.numberToCloudFormation(properties.reservoirSize),ResourceARN:cdk.stringToCloudFormation(properties.resourceArn),RuleARN:cdk.stringToCloudFormation(properties.ruleArn),RuleName:cdk.stringToCloudFormation(properties.ruleName),ServiceName:cdk.stringToCloudFormation(properties.serviceName),ServiceType:cdk.stringToCloudFormation(properties.serviceType),URLPath:cdk.stringToCloudFormation(properties.urlPath)}):properties}function CfnSamplingRuleSamplingRuleUpdatePropertyFromCloudFormation(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("attributes","Attributes",properties.Attributes!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.Attributes):void 0),ret.addPropertyResult("fixedRate","FixedRate",properties.FixedRate!=null?cfn_parse.FromCloudFormation.getNumber(properties.FixedRate):void 0),ret.addPropertyResult("httpMethod","HTTPMethod",properties.HTTPMethod!=null?cfn_parse.FromCloudFormation.getString(properties.HTTPMethod):void 0),ret.addPropertyResult("host","Host",properties.Host!=null?cfn_parse.FromCloudFormation.getString(properties.Host):void 0),ret.addPropertyResult("priority","Priority",properties.Priority!=null?cfn_parse.FromCloudFormation.getNumber(properties.Priority):void 0),ret.addPropertyResult("reservoirSize","ReservoirSize",properties.ReservoirSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.ReservoirSize):void 0),ret.addPropertyResult("resourceArn","ResourceARN",properties.ResourceARN!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceARN):void 0),ret.addPropertyResult("ruleArn","RuleARN",properties.RuleARN!=null?cfn_parse.FromCloudFormation.getString(properties.RuleARN):void 0),ret.addPropertyResult("ruleName","RuleName",properties.RuleName!=null?cfn_parse.FromCloudFormation.getString(properties.RuleName):void 0),ret.addPropertyResult("serviceName","ServiceName",properties.ServiceName!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceName):void 0),ret.addPropertyResult("serviceType","ServiceType",properties.ServiceType!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceType):void 0),ret.addPropertyResult("urlPath","URLPath",properties.URLPath!=null?cfn_parse.FromCloudFormation.getString(properties.URLPath):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}
|
|
1
|
+
"use strict";var _a,_b,_c;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnSamplingRule=exports.CfnResourcePolicy=exports.CfnGroup=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 CfnGroupPropsValidator(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("filterExpression",cdk.validateString)(properties.filterExpression)),errors.collect(cdk.propertyValidator("groupName",cdk.validateString)(properties.groupName)),errors.collect(cdk.propertyValidator("insightsConfiguration",CfnGroup_InsightsConfigurationPropertyValidator)(properties.insightsConfiguration)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateObject))(properties.tags)),errors.wrap('supplied properties not correct for "CfnGroupProps"')}function cfnGroupPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnGroupPropsValidator(properties).assertSuccess(),{FilterExpression:cdk.stringToCloudFormation(properties.filterExpression),GroupName:cdk.stringToCloudFormation(properties.groupName),InsightsConfiguration:cfnGroupInsightsConfigurationPropertyToCloudFormation(properties.insightsConfiguration),Tags:cdk.listMapper(cdk.objectToCloudFormation)(properties.tags)}):properties}function CfnGroupPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("filterExpression","FilterExpression",properties.FilterExpression!=null?cfn_parse.FromCloudFormation.getString(properties.FilterExpression):void 0),ret.addPropertyResult("groupName","GroupName",properties.GroupName!=null?cfn_parse.FromCloudFormation.getString(properties.GroupName):void 0),ret.addPropertyResult("insightsConfiguration","InsightsConfiguration",properties.InsightsConfiguration!=null?CfnGroupInsightsConfigurationPropertyFromCloudFormation(properties.InsightsConfiguration):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getAny)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnGroup extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_xray_CfnGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnGroup),error}this.attrGroupArn=cdk.Token.asString(this.getAtt("GroupARN")),this.filterExpression=props.filterExpression,this.groupName=props.groupName,this.insightsConfiguration=props.insightsConfiguration,this.tags=props.tags}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnGroupPropsFromCloudFormation(resourceProperties),ret=new CfnGroup(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",CfnGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{filterExpression:this.filterExpression,groupName:this.groupName,insightsConfiguration:this.insightsConfiguration,tags:this.tags}}renderProperties(props){return cfnGroupPropsToCloudFormation(props)}}exports.CfnGroup=CfnGroup,_a=JSII_RTTI_SYMBOL_1,CfnGroup[_a]={fqn:"aws-cdk-lib.aws_xray.CfnGroup",version:"2.51.1"},CfnGroup.CFN_RESOURCE_TYPE_NAME="AWS::XRay::Group";function CfnGroup_InsightsConfigurationPropertyValidator(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("insightsEnabled",cdk.validateBoolean)(properties.insightsEnabled)),errors.collect(cdk.propertyValidator("notificationsEnabled",cdk.validateBoolean)(properties.notificationsEnabled)),errors.wrap('supplied properties not correct for "InsightsConfigurationProperty"')}function cfnGroupInsightsConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnGroup_InsightsConfigurationPropertyValidator(properties).assertSuccess(),{InsightsEnabled:cdk.booleanToCloudFormation(properties.insightsEnabled),NotificationsEnabled:cdk.booleanToCloudFormation(properties.notificationsEnabled)}):properties}function CfnGroupInsightsConfigurationPropertyFromCloudFormation(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("insightsEnabled","InsightsEnabled",properties.InsightsEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.InsightsEnabled):void 0),ret.addPropertyResult("notificationsEnabled","NotificationsEnabled",properties.NotificationsEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.NotificationsEnabled):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResourcePolicyPropsValidator(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("bypassPolicyLockoutCheck",cdk.validateBoolean)(properties.bypassPolicyLockoutCheck)),errors.collect(cdk.propertyValidator("policyDocument",cdk.requiredValidator)(properties.policyDocument)),errors.collect(cdk.propertyValidator("policyDocument",cdk.validateString)(properties.policyDocument)),errors.collect(cdk.propertyValidator("policyName",cdk.requiredValidator)(properties.policyName)),errors.collect(cdk.propertyValidator("policyName",cdk.validateString)(properties.policyName)),errors.wrap('supplied properties not correct for "CfnResourcePolicyProps"')}function cfnResourcePolicyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnResourcePolicyPropsValidator(properties).assertSuccess(),{PolicyDocument:cdk.stringToCloudFormation(properties.policyDocument),PolicyName:cdk.stringToCloudFormation(properties.policyName),BypassPolicyLockoutCheck:cdk.booleanToCloudFormation(properties.bypassPolicyLockoutCheck)}):properties}function CfnResourcePolicyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("policyDocument","PolicyDocument",cfn_parse.FromCloudFormation.getString(properties.PolicyDocument)),ret.addPropertyResult("policyName","PolicyName",cfn_parse.FromCloudFormation.getString(properties.PolicyName)),ret.addPropertyResult("bypassPolicyLockoutCheck","BypassPolicyLockoutCheck",properties.BypassPolicyLockoutCheck!=null?cfn_parse.FromCloudFormation.getBoolean(properties.BypassPolicyLockoutCheck):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnResourcePolicy extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnResourcePolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_xray_CfnResourcePolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnResourcePolicy),error}cdk.requireProperty(props,"policyDocument",this),cdk.requireProperty(props,"policyName",this),this.policyDocument=props.policyDocument,this.policyName=props.policyName,this.bypassPolicyLockoutCheck=props.bypassPolicyLockoutCheck}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnResourcePolicyPropsFromCloudFormation(resourceProperties),ret=new CfnResourcePolicy(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",CfnResourcePolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{policyDocument:this.policyDocument,policyName:this.policyName,bypassPolicyLockoutCheck:this.bypassPolicyLockoutCheck}}renderProperties(props){return cfnResourcePolicyPropsToCloudFormation(props)}}exports.CfnResourcePolicy=CfnResourcePolicy,_b=JSII_RTTI_SYMBOL_1,CfnResourcePolicy[_b]={fqn:"aws-cdk-lib.aws_xray.CfnResourcePolicy",version:"2.51.1"},CfnResourcePolicy.CFN_RESOURCE_TYPE_NAME="AWS::XRay::ResourcePolicy";function CfnSamplingRulePropsValidator(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("ruleName",cdk.validateString)(properties.ruleName)),errors.collect(cdk.propertyValidator("samplingRule",CfnSamplingRule_SamplingRulePropertyValidator)(properties.samplingRule)),errors.collect(cdk.propertyValidator("samplingRuleRecord",CfnSamplingRule_SamplingRuleRecordPropertyValidator)(properties.samplingRuleRecord)),errors.collect(cdk.propertyValidator("samplingRuleUpdate",CfnSamplingRule_SamplingRuleUpdatePropertyValidator)(properties.samplingRuleUpdate)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateObject))(properties.tags)),errors.wrap('supplied properties not correct for "CfnSamplingRuleProps"')}function cfnSamplingRulePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSamplingRulePropsValidator(properties).assertSuccess(),{RuleName:cdk.stringToCloudFormation(properties.ruleName),SamplingRule:cfnSamplingRuleSamplingRulePropertyToCloudFormation(properties.samplingRule),SamplingRuleRecord:cfnSamplingRuleSamplingRuleRecordPropertyToCloudFormation(properties.samplingRuleRecord),SamplingRuleUpdate:cfnSamplingRuleSamplingRuleUpdatePropertyToCloudFormation(properties.samplingRuleUpdate),Tags:cdk.listMapper(cdk.objectToCloudFormation)(properties.tags)}):properties}function CfnSamplingRulePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("ruleName","RuleName",properties.RuleName!=null?cfn_parse.FromCloudFormation.getString(properties.RuleName):void 0),ret.addPropertyResult("samplingRule","SamplingRule",properties.SamplingRule!=null?CfnSamplingRuleSamplingRulePropertyFromCloudFormation(properties.SamplingRule):void 0),ret.addPropertyResult("samplingRuleRecord","SamplingRuleRecord",properties.SamplingRuleRecord!=null?CfnSamplingRuleSamplingRuleRecordPropertyFromCloudFormation(properties.SamplingRuleRecord):void 0),ret.addPropertyResult("samplingRuleUpdate","SamplingRuleUpdate",properties.SamplingRuleUpdate!=null?CfnSamplingRuleSamplingRuleUpdatePropertyFromCloudFormation(properties.SamplingRuleUpdate):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getAny)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSamplingRule extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnSamplingRule.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_xray_CfnSamplingRuleProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSamplingRule),error}this.attrRuleArn=cdk.Token.asString(this.getAtt("RuleARN")),this.ruleName=props.ruleName,this.samplingRule=props.samplingRule,this.samplingRuleRecord=props.samplingRuleRecord,this.samplingRuleUpdate=props.samplingRuleUpdate,this.tags=props.tags}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSamplingRulePropsFromCloudFormation(resourceProperties),ret=new CfnSamplingRule(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",CfnSamplingRule.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{ruleName:this.ruleName,samplingRule:this.samplingRule,samplingRuleRecord:this.samplingRuleRecord,samplingRuleUpdate:this.samplingRuleUpdate,tags:this.tags}}renderProperties(props){return cfnSamplingRulePropsToCloudFormation(props)}}exports.CfnSamplingRule=CfnSamplingRule,_c=JSII_RTTI_SYMBOL_1,CfnSamplingRule[_c]={fqn:"aws-cdk-lib.aws_xray.CfnSamplingRule",version:"2.51.1"},CfnSamplingRule.CFN_RESOURCE_TYPE_NAME="AWS::XRay::SamplingRule";function CfnSamplingRule_SamplingRulePropertyValidator(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("attributes",cdk.hashValidator(cdk.validateString))(properties.attributes)),errors.collect(cdk.propertyValidator("fixedRate",cdk.validateNumber)(properties.fixedRate)),errors.collect(cdk.propertyValidator("httpMethod",cdk.validateString)(properties.httpMethod)),errors.collect(cdk.propertyValidator("host",cdk.validateString)(properties.host)),errors.collect(cdk.propertyValidator("priority",cdk.validateNumber)(properties.priority)),errors.collect(cdk.propertyValidator("reservoirSize",cdk.validateNumber)(properties.reservoirSize)),errors.collect(cdk.propertyValidator("resourceArn",cdk.validateString)(properties.resourceArn)),errors.collect(cdk.propertyValidator("ruleArn",cdk.validateString)(properties.ruleArn)),errors.collect(cdk.propertyValidator("ruleName",cdk.validateString)(properties.ruleName)),errors.collect(cdk.propertyValidator("serviceName",cdk.validateString)(properties.serviceName)),errors.collect(cdk.propertyValidator("serviceType",cdk.validateString)(properties.serviceType)),errors.collect(cdk.propertyValidator("urlPath",cdk.validateString)(properties.urlPath)),errors.collect(cdk.propertyValidator("version",cdk.validateNumber)(properties.version)),errors.wrap('supplied properties not correct for "SamplingRuleProperty"')}function cfnSamplingRuleSamplingRulePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSamplingRule_SamplingRulePropertyValidator(properties).assertSuccess(),{Attributes:cdk.hashMapper(cdk.stringToCloudFormation)(properties.attributes),FixedRate:cdk.numberToCloudFormation(properties.fixedRate),HTTPMethod:cdk.stringToCloudFormation(properties.httpMethod),Host:cdk.stringToCloudFormation(properties.host),Priority:cdk.numberToCloudFormation(properties.priority),ReservoirSize:cdk.numberToCloudFormation(properties.reservoirSize),ResourceARN:cdk.stringToCloudFormation(properties.resourceArn),RuleARN:cdk.stringToCloudFormation(properties.ruleArn),RuleName:cdk.stringToCloudFormation(properties.ruleName),ServiceName:cdk.stringToCloudFormation(properties.serviceName),ServiceType:cdk.stringToCloudFormation(properties.serviceType),URLPath:cdk.stringToCloudFormation(properties.urlPath),Version:cdk.numberToCloudFormation(properties.version)}):properties}function CfnSamplingRuleSamplingRulePropertyFromCloudFormation(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("attributes","Attributes",properties.Attributes!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.Attributes):void 0),ret.addPropertyResult("fixedRate","FixedRate",properties.FixedRate!=null?cfn_parse.FromCloudFormation.getNumber(properties.FixedRate):void 0),ret.addPropertyResult("httpMethod","HTTPMethod",properties.HTTPMethod!=null?cfn_parse.FromCloudFormation.getString(properties.HTTPMethod):void 0),ret.addPropertyResult("host","Host",properties.Host!=null?cfn_parse.FromCloudFormation.getString(properties.Host):void 0),ret.addPropertyResult("priority","Priority",properties.Priority!=null?cfn_parse.FromCloudFormation.getNumber(properties.Priority):void 0),ret.addPropertyResult("reservoirSize","ReservoirSize",properties.ReservoirSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.ReservoirSize):void 0),ret.addPropertyResult("resourceArn","ResourceARN",properties.ResourceARN!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceARN):void 0),ret.addPropertyResult("ruleArn","RuleARN",properties.RuleARN!=null?cfn_parse.FromCloudFormation.getString(properties.RuleARN):void 0),ret.addPropertyResult("ruleName","RuleName",properties.RuleName!=null?cfn_parse.FromCloudFormation.getString(properties.RuleName):void 0),ret.addPropertyResult("serviceName","ServiceName",properties.ServiceName!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceName):void 0),ret.addPropertyResult("serviceType","ServiceType",properties.ServiceType!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceType):void 0),ret.addPropertyResult("urlPath","URLPath",properties.URLPath!=null?cfn_parse.FromCloudFormation.getString(properties.URLPath):void 0),ret.addPropertyResult("version","Version",properties.Version!=null?cfn_parse.FromCloudFormation.getNumber(properties.Version):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSamplingRule_SamplingRuleRecordPropertyValidator(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("createdAt",cdk.validateString)(properties.createdAt)),errors.collect(cdk.propertyValidator("modifiedAt",cdk.validateString)(properties.modifiedAt)),errors.collect(cdk.propertyValidator("samplingRule",CfnSamplingRule_SamplingRulePropertyValidator)(properties.samplingRule)),errors.wrap('supplied properties not correct for "SamplingRuleRecordProperty"')}function cfnSamplingRuleSamplingRuleRecordPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSamplingRule_SamplingRuleRecordPropertyValidator(properties).assertSuccess(),{CreatedAt:cdk.stringToCloudFormation(properties.createdAt),ModifiedAt:cdk.stringToCloudFormation(properties.modifiedAt),SamplingRule:cfnSamplingRuleSamplingRulePropertyToCloudFormation(properties.samplingRule)}):properties}function CfnSamplingRuleSamplingRuleRecordPropertyFromCloudFormation(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("createdAt","CreatedAt",properties.CreatedAt!=null?cfn_parse.FromCloudFormation.getString(properties.CreatedAt):void 0),ret.addPropertyResult("modifiedAt","ModifiedAt",properties.ModifiedAt!=null?cfn_parse.FromCloudFormation.getString(properties.ModifiedAt):void 0),ret.addPropertyResult("samplingRule","SamplingRule",properties.SamplingRule!=null?CfnSamplingRuleSamplingRulePropertyFromCloudFormation(properties.SamplingRule):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSamplingRule_SamplingRuleUpdatePropertyValidator(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("attributes",cdk.hashValidator(cdk.validateString))(properties.attributes)),errors.collect(cdk.propertyValidator("fixedRate",cdk.validateNumber)(properties.fixedRate)),errors.collect(cdk.propertyValidator("httpMethod",cdk.validateString)(properties.httpMethod)),errors.collect(cdk.propertyValidator("host",cdk.validateString)(properties.host)),errors.collect(cdk.propertyValidator("priority",cdk.validateNumber)(properties.priority)),errors.collect(cdk.propertyValidator("reservoirSize",cdk.validateNumber)(properties.reservoirSize)),errors.collect(cdk.propertyValidator("resourceArn",cdk.validateString)(properties.resourceArn)),errors.collect(cdk.propertyValidator("ruleArn",cdk.validateString)(properties.ruleArn)),errors.collect(cdk.propertyValidator("ruleName",cdk.validateString)(properties.ruleName)),errors.collect(cdk.propertyValidator("serviceName",cdk.validateString)(properties.serviceName)),errors.collect(cdk.propertyValidator("serviceType",cdk.validateString)(properties.serviceType)),errors.collect(cdk.propertyValidator("urlPath",cdk.validateString)(properties.urlPath)),errors.wrap('supplied properties not correct for "SamplingRuleUpdateProperty"')}function cfnSamplingRuleSamplingRuleUpdatePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSamplingRule_SamplingRuleUpdatePropertyValidator(properties).assertSuccess(),{Attributes:cdk.hashMapper(cdk.stringToCloudFormation)(properties.attributes),FixedRate:cdk.numberToCloudFormation(properties.fixedRate),HTTPMethod:cdk.stringToCloudFormation(properties.httpMethod),Host:cdk.stringToCloudFormation(properties.host),Priority:cdk.numberToCloudFormation(properties.priority),ReservoirSize:cdk.numberToCloudFormation(properties.reservoirSize),ResourceARN:cdk.stringToCloudFormation(properties.resourceArn),RuleARN:cdk.stringToCloudFormation(properties.ruleArn),RuleName:cdk.stringToCloudFormation(properties.ruleName),ServiceName:cdk.stringToCloudFormation(properties.serviceName),ServiceType:cdk.stringToCloudFormation(properties.serviceType),URLPath:cdk.stringToCloudFormation(properties.urlPath)}):properties}function CfnSamplingRuleSamplingRuleUpdatePropertyFromCloudFormation(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("attributes","Attributes",properties.Attributes!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.Attributes):void 0),ret.addPropertyResult("fixedRate","FixedRate",properties.FixedRate!=null?cfn_parse.FromCloudFormation.getNumber(properties.FixedRate):void 0),ret.addPropertyResult("httpMethod","HTTPMethod",properties.HTTPMethod!=null?cfn_parse.FromCloudFormation.getString(properties.HTTPMethod):void 0),ret.addPropertyResult("host","Host",properties.Host!=null?cfn_parse.FromCloudFormation.getString(properties.Host):void 0),ret.addPropertyResult("priority","Priority",properties.Priority!=null?cfn_parse.FromCloudFormation.getNumber(properties.Priority):void 0),ret.addPropertyResult("reservoirSize","ReservoirSize",properties.ReservoirSize!=null?cfn_parse.FromCloudFormation.getNumber(properties.ReservoirSize):void 0),ret.addPropertyResult("resourceArn","ResourceARN",properties.ResourceARN!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceARN):void 0),ret.addPropertyResult("ruleArn","RuleARN",properties.RuleARN!=null?cfn_parse.FromCloudFormation.getString(properties.RuleARN):void 0),ret.addPropertyResult("ruleName","RuleName",properties.RuleName!=null?cfn_parse.FromCloudFormation.getString(properties.RuleName):void 0),ret.addPropertyResult("serviceName","ServiceName",properties.ServiceName!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceName):void 0),ret.addPropertyResult("serviceType","ServiceType",properties.ServiceType!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceType):void 0),ret.addPropertyResult("urlPath","URLPath",properties.URLPath!=null?cfn_parse.FromCloudFormation.getString(properties.URLPath):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}
|
|
2
2
|
//# sourceMappingURL=xray.generated.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Manifest=exports.VERSION_MISMATCH=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),fs=require("fs"),jsonschema=require("jsonschema"),semver=require("semver"),assembly=require("./cloud-assembly");exports.VERSION_MISMATCH="Cloud assembly schema version mismatch";const ASSETS_SCHEMA=require("../schema/assets.schema.json"),ASSEMBLY_SCHEMA=require("../schema/cloud-assembly.schema.json"),SCHEMA_VERSION=require("../schema/cloud-assembly.version.json").version,INTEG_SCHEMA=require("../schema/integ.schema.json");class Manifest{constructor(){}static saveAssemblyManifest(manifest,filePath){try{jsiiDeprecationWarnings.aws_cdk_lib_cloud_assembly_schema_AssemblyManifest(manifest)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.saveAssemblyManifest),error}Manifest.saveManifest(manifest,filePath,ASSEMBLY_SCHEMA,Manifest.patchStackTagsOnWrite)}static loadAssemblyManifest(filePath,options){try{jsiiDeprecationWarnings.aws_cdk_lib_cloud_assembly_schema_LoadManifestOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.loadAssemblyManifest),error}return Manifest.loadManifest(filePath,ASSEMBLY_SCHEMA,Manifest.patchStackTagsOnRead,options)}static saveAssetManifest(manifest,filePath){try{jsiiDeprecationWarnings.aws_cdk_lib_cloud_assembly_schema_AssetManifest(manifest)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.saveAssetManifest),error}Manifest.saveManifest(manifest,filePath,ASSETS_SCHEMA,Manifest.patchStackTagsOnRead)}static loadAssetManifest(filePath){return this.loadManifest(filePath,ASSETS_SCHEMA)}static saveIntegManifest(manifest,filePath){try{jsiiDeprecationWarnings.aws_cdk_lib_cloud_assembly_schema_IntegManifest(manifest)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.saveIntegManifest),error}Manifest.saveManifest(manifest,filePath,INTEG_SCHEMA)}static loadIntegManifest(filePath){return this.loadManifest(filePath,INTEG_SCHEMA)}static version(){return SCHEMA_VERSION}static save(manifest,filePath){return this.saveAssemblyManifest(manifest,filePath)}static load(filePath){return this.loadAssemblyManifest(filePath)}static validate(manifest,schema,options){function parseVersion(version){const ver=semver.valid(version);if(!ver)throw new Error(`Invalid semver string: "${version}"`);return ver}const maxSupported=parseVersion(Manifest.version()),actual=parseVersion(manifest.version);if(semver.gt(actual,maxSupported)&&!options?.skipVersionCheck)throw new Error(`${exports.VERSION_MISMATCH}: Maximum schema version supported is ${maxSupported}, but found ${actual}`);let errors=new jsonschema.Validator().validate(manifest,schema,{nestedErrors:!0,allowUnknownAttributes:!1}).errors;if(options?.skipEnumCheck&&(errors=stripEnumErrors(errors)),errors.length>0)throw new Error(`Invalid assembly manifest:
|
|
2
2
|
${errors.map(e=>e.stack).join(`
|
|
3
|
-
`)}`)}static saveManifest(manifest,filePath,schema,preprocess){let withVersion={...manifest,version:Manifest.version()};Manifest.validate(withVersion,schema),preprocess&&(withVersion=preprocess(withVersion)),fs.writeFileSync(filePath,JSON.stringify(withVersion,void 0,2))}static loadManifest(filePath,schema,preprocess,options){const contents=fs.readFileSync(filePath,{encoding:"utf-8"});let obj;try{obj=JSON.parse(contents)}catch(e){throw new Error(`${e.message}, while parsing ${JSON.stringify(contents)}`)}return preprocess&&(obj=preprocess(obj)),Manifest.validate(obj,schema,options),obj}static patchStackTagsOnRead(manifest){return Manifest.replaceStackTags(manifest,tags=>tags.map(diskTag=>({key:diskTag.Key,value:diskTag.Value})))}static patchStackTagsOnWrite(manifest){return Manifest.replaceStackTags(manifest,tags=>tags.map(memTag=>"Key"in memTag?memTag:{Key:memTag.key,Value:memTag.value}))}static replaceStackTags(manifest,fn){return noUndefined({...manifest,artifacts:mapValues(manifest.artifacts,artifact=>artifact.type!==assembly.ArtifactType.AWS_CLOUDFORMATION_STACK?artifact:noUndefined({...artifact,metadata:mapValues(artifact.metadata,metadataEntries=>metadataEntries.map(metadataEntry=>metadataEntry.type!==assembly.ArtifactMetadataEntryType.STACK_TAGS||!metadataEntry.data?metadataEntry:{...metadataEntry,data:fn(metadataEntry.data)}))}))})}}exports.Manifest=Manifest,_a=JSII_RTTI_SYMBOL_1,Manifest[_a]={fqn:"aws-cdk-lib.cloud_assembly_schema.Manifest",version:"2.51.
|
|
3
|
+
`)}`)}static saveManifest(manifest,filePath,schema,preprocess){let withVersion={...manifest,version:Manifest.version()};Manifest.validate(withVersion,schema),preprocess&&(withVersion=preprocess(withVersion)),fs.writeFileSync(filePath,JSON.stringify(withVersion,void 0,2))}static loadManifest(filePath,schema,preprocess,options){const contents=fs.readFileSync(filePath,{encoding:"utf-8"});let obj;try{obj=JSON.parse(contents)}catch(e){throw new Error(`${e.message}, while parsing ${JSON.stringify(contents)}`)}return preprocess&&(obj=preprocess(obj)),Manifest.validate(obj,schema,options),obj}static patchStackTagsOnRead(manifest){return Manifest.replaceStackTags(manifest,tags=>tags.map(diskTag=>({key:diskTag.Key,value:diskTag.Value})))}static patchStackTagsOnWrite(manifest){return Manifest.replaceStackTags(manifest,tags=>tags.map(memTag=>"Key"in memTag?memTag:{Key:memTag.key,Value:memTag.value}))}static replaceStackTags(manifest,fn){return noUndefined({...manifest,artifacts:mapValues(manifest.artifacts,artifact=>artifact.type!==assembly.ArtifactType.AWS_CLOUDFORMATION_STACK?artifact:noUndefined({...artifact,metadata:mapValues(artifact.metadata,metadataEntries=>metadataEntries.map(metadataEntry=>metadataEntry.type!==assembly.ArtifactMetadataEntryType.STACK_TAGS||!metadataEntry.data?metadataEntry:{...metadataEntry,data:fn(metadataEntry.data)}))}))})}}exports.Manifest=Manifest,_a=JSII_RTTI_SYMBOL_1,Manifest[_a]={fqn:"aws-cdk-lib.cloud_assembly_schema.Manifest",version:"2.51.1"};function mapValues(xs,fn){if(!xs)return;const ret={};for(const[k,v]of Object.entries(xs))ret[k]=fn(v);return ret}function noUndefined(xs){const ret={};for(const[k,v]of Object.entries(xs))v!==void 0&&(ret[k]=v);return ret}function stripEnumErrors(errors){return errors.filter(e=>typeof e.schema=="string"||!("enum"in e.schema))}
|
|
4
4
|
//# sourceMappingURL=manifest.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnInclude=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),core=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal"),constructs_1=require("constructs"),cfn_type_to_l1_mapping=require("./cfn-type-to-l1-mapping"),futils=require("./file-utils");class CfnInclude extends core.CfnElement{constructor(scope,id,props){super(scope,id),this.conditions={},this.resources={},this.parameters={},this.mappings={},this.rules={},this.hooks={},this.outputs={},this.nestedStacks={};try{jsiiDeprecationWarnings.aws_cdk_lib_cloudformation_include_CfnIncludeProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnInclude),error}this.allowCyclicalReferences=props.allowCyclicalReferences??!1,this.logicalIdToPlaceholderMap=new Map,this.parametersToReplace=props.parameters||{},this.template=futils.readYamlSync(props.templateFile),this.preserveLogicalIds=props.preserveLogicalIds??!0;for(const logicalId of Object.keys(this.parametersToReplace))if(!(logicalId in(this.template.Parameters||{})))throw new Error(`Parameter with logical ID '${logicalId}' was not found in the template`);this.mappingsScope=new constructs_1.Construct(this,"$Mappings");for(const mappingName of Object.keys(this.template.Mappings||{}))this.createMapping(mappingName);for(const logicalId of Object.keys(this.template.Parameters||{}))this.createParameter(logicalId);this.conditionsScope=new constructs_1.Construct(this,"$Conditions");for(const conditionName of Object.keys(this.template.Conditions||{}))this.getOrCreateCondition(conditionName);this.rulesScope=new constructs_1.Construct(this,"$Rules");for(const ruleName of Object.keys(this.template.Rules||{}))this.createRule(ruleName);this.nestedStacksToInclude=props.loadNestedStacks||{};for(const logicalId of Object.keys(this.template.Resources||{}))this.getOrCreateResource(logicalId);for(const nestedStackId of Object.keys(props.loadNestedStacks||{}))if(!(nestedStackId in this.resources))throw new Error(`Nested Stack with logical ID '${nestedStackId}' was not found in the template`);this.hooksScope=new constructs_1.Construct(this,"$Hooks");for(const hookName of Object.keys(this.template.Hooks||{}))this.createHook(hookName);const outputScope=new constructs_1.Construct(this,"$Ouputs");for(const logicalId of Object.keys(this.template.Outputs||{}))this.createOutput(logicalId,outputScope)}getResource(logicalId){const ret=this.resources[logicalId];if(!ret)throw new Error(`Resource with logical ID '${logicalId}' was not found in the template`);return ret}getCondition(conditionName){const ret=this.conditions[conditionName];if(!ret)throw new Error(`Condition with name '${conditionName}' was not found in the template`);return ret}getParameter(parameterName){const ret=this.parameters[parameterName];if(!ret)throw new Error(`Parameter with name '${parameterName}' was not found in the template`);return ret}getMapping(mappingName){const ret=this.mappings[mappingName];if(!ret)throw new Error(`Mapping with name '${mappingName}' was not found in the template`);return ret}getOutput(logicalId){const ret=this.outputs[logicalId];if(!ret)throw new Error(`Output with logical ID '${logicalId}' was not found in the template`);return ret}getRule(ruleName){const ret=this.rules[ruleName];if(!ret)throw new Error(`Rule with name '${ruleName}' was not found in the template`);return ret}getHook(hookLogicalId){const ret=this.hooks[hookLogicalId];if(!ret)throw new Error(`Hook with logical ID '${hookLogicalId}' was not found in the template`);return ret}getNestedStack(logicalId){if(!this.nestedStacks[logicalId])throw this.template.Resources[logicalId]?this.template.Resources[logicalId].Type!=="AWS::CloudFormation::Stack"?new Error(`Resource with logical ID '${logicalId}' is not a CloudFormation Stack`):new Error(`Nested Stack '${logicalId}' was not included in the parent template. To retrieve an included nested stack, it must be specified either in the \`loadNestedStacks\` property, or through the \`loadNestedStack\` method`):new Error(`Nested Stack with logical ID '${logicalId}' was not found in the template`);return this.nestedStacks[logicalId]}loadNestedStack(logicalId,nestedStackProps){try{jsiiDeprecationWarnings.aws_cdk_lib_cloudformation_include_CfnIncludeProps(nestedStackProps)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.loadNestedStack),error}if(logicalId in this.nestedStacks)throw new Error(`Nested Stack '${logicalId}' was already included in its parent template`);const cfnStack=this.resources[logicalId];if(!cfnStack)throw new Error(`Nested Stack with logical ID '${logicalId}' was not found in the template`);if(cfnStack instanceof core.CfnStack)return this.node.tryRemoveChild(logicalId),delete this.resources[logicalId],this.nestedStacksToInclude[logicalId]=nestedStackProps,this.getOrCreateResource(logicalId),this.nestedStacks[logicalId];throw new Error(`Nested Stack with logical ID '${logicalId}' is not an AWS::CloudFormation::Stack resource`)}_toCloudFormation(){const ret={};for(const section of Object.keys(this.template)){const self=this,finder={findResource(lId){return self.resources[lId]},findRefTarget(elementName){return self.resources[elementName]??self.parameters[elementName]},findCondition(conditionName){return self.conditions[conditionName]},findMapping(mappingName){return self.mappings[mappingName]}},cfnParser=new cfn_parse.CfnParser({finder,parameters:this.parametersToReplace});switch(section){case"Conditions":case"Mappings":case"Resources":case"Parameters":case"Rules":case"Hooks":case"Outputs":break;default:ret[section]=cfnParser.parseValue(this.template[section])}}return ret}createMapping(mappingName){const cfnParser=new cfn_parse.CfnParser({finder:{findCondition(){throw new Error("Referring to Conditions in Mapping definitions is not allowed")},findMapping(){throw new Error("Referring to other Mappings in Mapping definitions is not allowed")},findRefTarget(){throw new Error("Using Ref expressions in Mapping definitions is not allowed")},findResource(){throw new Error("Using GetAtt expressions in Mapping definitions is not allowed")}},parameters:{}}),cfnMapping=new core.CfnMapping(this.mappingsScope,mappingName,{mapping:cfnParser.parseValue(this.template.Mappings[mappingName])});this.mappings[mappingName]=cfnMapping,this.overrideLogicalIdIfNeeded(cfnMapping,mappingName)}createParameter(logicalId){if(logicalId in this.parametersToReplace)return;const expression=new cfn_parse.CfnParser({finder:{findResource(){throw new Error("Using GetAtt expressions in Parameter definitions is not allowed")},findRefTarget(){throw new Error("Using Ref expressions in Parameter definitions is not allowed")},findCondition(){throw new Error("Referring to Conditions in Parameter definitions is not allowed")},findMapping(){throw new Error("Referring to Mappings in Parameter definitions is not allowed")}},parameters:{}}).parseValue(this.template.Parameters[logicalId]),cfnParameter=new core.CfnParameter(this,logicalId,{type:expression.Type,default:expression.Default,allowedPattern:expression.AllowedPattern,allowedValues:expression.AllowedValues,constraintDescription:expression.ConstraintDescription,description:expression.Description,maxLength:expression.MaxLength,maxValue:expression.MaxValue,minLength:expression.MinLength,minValue:expression.MinValue,noEcho:expression.NoEcho});this.overrideLogicalIdIfNeeded(cfnParameter,logicalId),this.parameters[logicalId]=cfnParameter}createRule(ruleName){const self=this,ruleProperties=new cfn_parse.CfnParser({finder:{findRefTarget(refTarget){return self.parameters[refTarget]},findResource(){throw new Error("Using GetAtt expressions in Rule definitions is not allowed")},findCondition(conditionName){return self.conditions[conditionName]},findMapping(mappingName){return self.mappings[mappingName]}},parameters:this.parametersToReplace,context:cfn_parse.CfnParsingContext.RULES}).parseValue(this.template.Rules[ruleName]),rule=new core.CfnRule(this.rulesScope,ruleName,{ruleCondition:ruleProperties.RuleCondition,assertions:ruleProperties.Assertions});this.rules[ruleName]=rule,this.overrideLogicalIdIfNeeded(rule,ruleName)}createHook(hookName){const self=this,cfnParser=new cfn_parse.CfnParser({finder:{findResource(lId){return self.resources[lId]},findRefTarget(elementName){return self.resources[elementName]??self.parameters[elementName]},findCondition(conditionName){return self.conditions[conditionName]},findMapping(mappingName){return self.mappings[mappingName]}},parameters:this.parametersToReplace}),hookAttributes=this.template.Hooks[hookName];let hook;switch(hookAttributes.Type){case"AWS::CodeDeploy::BlueGreen":hook=core.CfnCodeDeployBlueGreenHook._fromCloudFormation(this.hooksScope,hookName,hookAttributes,{parser:cfnParser});break;default:{const hookProperties=cfnParser.parseValue(hookAttributes.Properties)??{};hook=new core.CfnHook(this.hooksScope,hookName,{type:hookAttributes.Type,properties:hookProperties})}}this.hooks[hookName]=hook,this.overrideLogicalIdIfNeeded(hook,hookName)}createOutput(logicalId,scope){const self=this,outputAttributes=new cfn_parse.CfnParser({finder:{findResource(lId){return self.resources[lId]},findRefTarget(elementName){return self.resources[elementName]??self.parameters[elementName]},findCondition(conditionName){return self.conditions[conditionName]},findMapping(mappingName){return self.mappings[mappingName]}},parameters:this.parametersToReplace}).parseValue(this.template.Outputs[logicalId]),cfnOutput=new core.CfnOutput(scope,logicalId,{value:outputAttributes.Value,description:outputAttributes.Description,exportName:outputAttributes.Export?outputAttributes.Export.Name:void 0,condition:(()=>{if(outputAttributes.Condition){if(this.conditions[outputAttributes.Condition])return self.getCondition(outputAttributes.Condition)}else return;throw new Error(`Output with name '${logicalId}' refers to a Condition with name '${outputAttributes.Condition}' which was not found in this template`)})()});this.overrideLogicalIdIfNeeded(cfnOutput,logicalId),this.outputs[logicalId]=cfnOutput}getOrCreateCondition(conditionName){if(conditionName in this.conditions)return this.conditions[conditionName];const self=this,cfnParser=new cfn_parse.CfnParser({finder:{findResource(){throw new Error("Using GetAtt in Condition definitions is not allowed")},findRefTarget(elementName){return self.parameters[elementName]},findCondition(cName){return cName in(self.template.Conditions||{})?self.getOrCreateCondition(cName):void 0},findMapping(mappingName){return self.mappings[mappingName]}},context:cfn_parse.CfnParsingContext.CONDITIONS,parameters:this.parametersToReplace}),cfnCondition=new core.CfnCondition(this.conditionsScope,conditionName,{expression:cfnParser.parseValue(this.template.Conditions[conditionName])});return this.overrideLogicalIdIfNeeded(cfnCondition,conditionName),this.conditions[conditionName]=cfnCondition,cfnCondition}getPlaceholderID(){return`Placeholder${this.logicalIdToPlaceholderMap.size}`}getOrCreateResource(logicalId,cycleChain=[]){if(cycleChain=cycleChain.concat([logicalId]),cycleChain.length!==new Set(cycleChain).size){if(!this.allowCyclicalReferences)throw new Error(`Found a cycle between resources in the template: ${cycleChain.join(" depends on ")}`);if(this.logicalIdToPlaceholderMap.get(logicalId))return this.resources[this.logicalIdToPlaceholderMap.get(logicalId)];let placeholderResourceAttributes=this.template.Resources[logicalId],placeholderId=this.getPlaceholderID();this.logicalIdToPlaceholderMap.set(logicalId,placeholderId);let placeholderInstance=new core.CfnResource(this,placeholderId,{type:placeholderResourceAttributes.Type,properties:{}});return placeholderInstance.overrideLogicalId(placeholderId),this.resources[placeholderId]=placeholderInstance,placeholderInstance}const ret=this.resources[logicalId];if(ret)return ret;const self=this,finder={findCondition(conditionName){return self.conditions[conditionName]},findMapping(mappingName){return self.mappings[mappingName]},findResource(lId){if(lId in(self.template.Resources||{}))return self.getOrCreateResource(lId,cycleChain)},findRefTarget(elementName){return elementName in self.parameters?self.parameters[elementName]:this.findResource(elementName)}},cfnParser=new cfn_parse.CfnParser({finder,parameters:this.parametersToReplace}),resourceAttributes=this.template.Resources[logicalId];let l1Instance;if(this.nestedStacksToInclude[logicalId])l1Instance=this.createNestedStack(logicalId,cfnParser);else{const l1ClassFqn=cfn_type_to_l1_mapping.lookup(resourceAttributes.Type);if(l1ClassFqn&&resourceAttributes.Type!=="AWS::CloudFormation::CustomResource"){const options={parser:cfnParser},[moduleName,...className]=l1ClassFqn.split(".");l1Instance=require(moduleName)[className.join(".")]._fromCloudFormation(this,logicalId,resourceAttributes,options)}else l1Instance=new core.CfnResource(this,logicalId,{type:resourceAttributes.Type,properties:cfnParser.parseValue(resourceAttributes.Properties)}),cfnParser.handleAttributes(l1Instance,resourceAttributes,logicalId)}if(this.logicalIdToPlaceholderMap.get(logicalId)){let placeholderId=this.logicalIdToPlaceholderMap.get(logicalId);this.resources[placeholderId].overrideLogicalId(logicalId),this.node.tryRemoveChild(placeholderId),delete this.resources[placeholderId]}this.overrideLogicalIdIfNeeded(l1Instance,logicalId),this.resources[logicalId]=l1Instance;const knownAttributes=["Condition","DependsOn","Description","Metadata","Properties","Type","Version","CreationPolicy","DeletionPolicy","UpdatePolicy","UpdateReplacePolicy"];for(const[attrName,attrValue]of Object.entries(resourceAttributes))knownAttributes.includes(attrName)||l1Instance.addOverride(attrName,cfnParser.parseValue(attrValue));return l1Instance}createNestedStack(nestedStackId,cfnParser){const nestedStackAttributes=(this.template.Resources||{})[nestedStackId]||{};if(nestedStackAttributes.Type!=="AWS::CloudFormation::Stack")throw new Error(`Nested Stack with logical ID '${nestedStackId}' is not an AWS::CloudFormation::Stack resource`);if(nestedStackAttributes.CreationPolicy)throw new Error("CreationPolicy is not supported by the AWS::CloudFormation::Stack resource");if(nestedStackAttributes.UpdatePolicy)throw new Error("UpdatePolicy is not supported by the AWS::CloudFormation::Stack resource");const nestedStackProps=cfnParser.parseValue(nestedStackAttributes.Properties),nestedStack=new core.NestedStack(this,nestedStackId,{parameters:this.parametersForNestedStack(nestedStackProps.Parameters,nestedStackId),notificationArns:cfn_parse.FromCloudFormation.getStringArray(nestedStackProps.NotificationARNs).value,timeout:this.timeoutForNestedStack(nestedStackProps.TimeoutInMinutes)}),template=new CfnInclude(nestedStack,nestedStackId,this.nestedStacksToInclude[nestedStackId]);this.nestedStacks[nestedStackId]={stack:nestedStack,includedTemplate:template};const nestedStackResource=nestedStack.nestedStackResource;return cfnParser.handleAttributes(nestedStackResource,nestedStackAttributes,nestedStackId),nestedStackResource}parametersForNestedStack(parameters,nestedStackId){if(parameters==null)return;const parametersToReplace=this.nestedStacksToInclude[nestedStackId].parameters??{},ret={};for(const paramName of Object.keys(parameters))paramName in parametersToReplace||(ret[paramName]=cfn_parse.FromCloudFormation.getString(parameters[paramName]).value);return ret}timeoutForNestedStack(value){if(value!=null)return core.Duration.minutes(cfn_parse.FromCloudFormation.getNumber(value).value)}overrideLogicalIdIfNeeded(element,id){this.preserveLogicalIds&&element.overrideLogicalId(id)}}exports.CfnInclude=CfnInclude,_a=JSII_RTTI_SYMBOL_1,CfnInclude[_a]={fqn:"aws-cdk-lib.cloudformation_include.CfnInclude",version:"2.51.0"};
|
|
1
|
+
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnInclude=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),core=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal"),constructs_1=require("constructs"),cfn_type_to_l1_mapping=require("./cfn-type-to-l1-mapping"),futils=require("./file-utils");class CfnInclude extends core.CfnElement{constructor(scope,id,props){super(scope,id),this.conditions={},this.resources={},this.parameters={},this.mappings={},this.rules={},this.hooks={},this.outputs={},this.nestedStacks={};try{jsiiDeprecationWarnings.aws_cdk_lib_cloudformation_include_CfnIncludeProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnInclude),error}this.allowCyclicalReferences=props.allowCyclicalReferences??!1,this.logicalIdToPlaceholderMap=new Map,this.parametersToReplace=props.parameters||{},this.template=futils.readYamlSync(props.templateFile),this.preserveLogicalIds=props.preserveLogicalIds??!0;for(const logicalId of Object.keys(this.parametersToReplace))if(!(logicalId in(this.template.Parameters||{})))throw new Error(`Parameter with logical ID '${logicalId}' was not found in the template`);this.mappingsScope=new constructs_1.Construct(this,"$Mappings");for(const mappingName of Object.keys(this.template.Mappings||{}))this.createMapping(mappingName);for(const logicalId of Object.keys(this.template.Parameters||{}))this.createParameter(logicalId);this.conditionsScope=new constructs_1.Construct(this,"$Conditions");for(const conditionName of Object.keys(this.template.Conditions||{}))this.getOrCreateCondition(conditionName);this.rulesScope=new constructs_1.Construct(this,"$Rules");for(const ruleName of Object.keys(this.template.Rules||{}))this.createRule(ruleName);this.nestedStacksToInclude=props.loadNestedStacks||{};for(const logicalId of Object.keys(this.template.Resources||{}))this.getOrCreateResource(logicalId);for(const nestedStackId of Object.keys(props.loadNestedStacks||{}))if(!(nestedStackId in this.resources))throw new Error(`Nested Stack with logical ID '${nestedStackId}' was not found in the template`);this.hooksScope=new constructs_1.Construct(this,"$Hooks");for(const hookName of Object.keys(this.template.Hooks||{}))this.createHook(hookName);const outputScope=new constructs_1.Construct(this,"$Ouputs");for(const logicalId of Object.keys(this.template.Outputs||{}))this.createOutput(logicalId,outputScope)}getResource(logicalId){const ret=this.resources[logicalId];if(!ret)throw new Error(`Resource with logical ID '${logicalId}' was not found in the template`);return ret}getCondition(conditionName){const ret=this.conditions[conditionName];if(!ret)throw new Error(`Condition with name '${conditionName}' was not found in the template`);return ret}getParameter(parameterName){const ret=this.parameters[parameterName];if(!ret)throw new Error(`Parameter with name '${parameterName}' was not found in the template`);return ret}getMapping(mappingName){const ret=this.mappings[mappingName];if(!ret)throw new Error(`Mapping with name '${mappingName}' was not found in the template`);return ret}getOutput(logicalId){const ret=this.outputs[logicalId];if(!ret)throw new Error(`Output with logical ID '${logicalId}' was not found in the template`);return ret}getRule(ruleName){const ret=this.rules[ruleName];if(!ret)throw new Error(`Rule with name '${ruleName}' was not found in the template`);return ret}getHook(hookLogicalId){const ret=this.hooks[hookLogicalId];if(!ret)throw new Error(`Hook with logical ID '${hookLogicalId}' was not found in the template`);return ret}getNestedStack(logicalId){if(!this.nestedStacks[logicalId])throw this.template.Resources[logicalId]?this.template.Resources[logicalId].Type!=="AWS::CloudFormation::Stack"?new Error(`Resource with logical ID '${logicalId}' is not a CloudFormation Stack`):new Error(`Nested Stack '${logicalId}' was not included in the parent template. To retrieve an included nested stack, it must be specified either in the \`loadNestedStacks\` property, or through the \`loadNestedStack\` method`):new Error(`Nested Stack with logical ID '${logicalId}' was not found in the template`);return this.nestedStacks[logicalId]}loadNestedStack(logicalId,nestedStackProps){try{jsiiDeprecationWarnings.aws_cdk_lib_cloudformation_include_CfnIncludeProps(nestedStackProps)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.loadNestedStack),error}if(logicalId in this.nestedStacks)throw new Error(`Nested Stack '${logicalId}' was already included in its parent template`);const cfnStack=this.resources[logicalId];if(!cfnStack)throw new Error(`Nested Stack with logical ID '${logicalId}' was not found in the template`);if(cfnStack instanceof core.CfnStack)return this.node.tryRemoveChild(logicalId),delete this.resources[logicalId],this.nestedStacksToInclude[logicalId]=nestedStackProps,this.getOrCreateResource(logicalId),this.nestedStacks[logicalId];throw new Error(`Nested Stack with logical ID '${logicalId}' is not an AWS::CloudFormation::Stack resource`)}_toCloudFormation(){const ret={};for(const section of Object.keys(this.template)){const self=this,finder={findResource(lId){return self.resources[lId]},findRefTarget(elementName){return self.resources[elementName]??self.parameters[elementName]},findCondition(conditionName){return self.conditions[conditionName]},findMapping(mappingName){return self.mappings[mappingName]}},cfnParser=new cfn_parse.CfnParser({finder,parameters:this.parametersToReplace});switch(section){case"Conditions":case"Mappings":case"Resources":case"Parameters":case"Rules":case"Hooks":case"Outputs":break;default:ret[section]=cfnParser.parseValue(this.template[section])}}return ret}createMapping(mappingName){const cfnParser=new cfn_parse.CfnParser({finder:{findCondition(){throw new Error("Referring to Conditions in Mapping definitions is not allowed")},findMapping(){throw new Error("Referring to other Mappings in Mapping definitions is not allowed")},findRefTarget(){throw new Error("Using Ref expressions in Mapping definitions is not allowed")},findResource(){throw new Error("Using GetAtt expressions in Mapping definitions is not allowed")}},parameters:{}}),cfnMapping=new core.CfnMapping(this.mappingsScope,mappingName,{mapping:cfnParser.parseValue(this.template.Mappings[mappingName])});this.mappings[mappingName]=cfnMapping,this.overrideLogicalIdIfNeeded(cfnMapping,mappingName)}createParameter(logicalId){if(logicalId in this.parametersToReplace)return;const expression=new cfn_parse.CfnParser({finder:{findResource(){throw new Error("Using GetAtt expressions in Parameter definitions is not allowed")},findRefTarget(){throw new Error("Using Ref expressions in Parameter definitions is not allowed")},findCondition(){throw new Error("Referring to Conditions in Parameter definitions is not allowed")},findMapping(){throw new Error("Referring to Mappings in Parameter definitions is not allowed")}},parameters:{}}).parseValue(this.template.Parameters[logicalId]),cfnParameter=new core.CfnParameter(this,logicalId,{type:expression.Type,default:expression.Default,allowedPattern:expression.AllowedPattern,allowedValues:expression.AllowedValues,constraintDescription:expression.ConstraintDescription,description:expression.Description,maxLength:expression.MaxLength,maxValue:expression.MaxValue,minLength:expression.MinLength,minValue:expression.MinValue,noEcho:expression.NoEcho});this.overrideLogicalIdIfNeeded(cfnParameter,logicalId),this.parameters[logicalId]=cfnParameter}createRule(ruleName){const self=this,ruleProperties=new cfn_parse.CfnParser({finder:{findRefTarget(refTarget){return self.parameters[refTarget]},findResource(){throw new Error("Using GetAtt expressions in Rule definitions is not allowed")},findCondition(conditionName){return self.conditions[conditionName]},findMapping(mappingName){return self.mappings[mappingName]}},parameters:this.parametersToReplace,context:cfn_parse.CfnParsingContext.RULES}).parseValue(this.template.Rules[ruleName]),rule=new core.CfnRule(this.rulesScope,ruleName,{ruleCondition:ruleProperties.RuleCondition,assertions:ruleProperties.Assertions});this.rules[ruleName]=rule,this.overrideLogicalIdIfNeeded(rule,ruleName)}createHook(hookName){const self=this,cfnParser=new cfn_parse.CfnParser({finder:{findResource(lId){return self.resources[lId]},findRefTarget(elementName){return self.resources[elementName]??self.parameters[elementName]},findCondition(conditionName){return self.conditions[conditionName]},findMapping(mappingName){return self.mappings[mappingName]}},parameters:this.parametersToReplace}),hookAttributes=this.template.Hooks[hookName];let hook;switch(hookAttributes.Type){case"AWS::CodeDeploy::BlueGreen":hook=core.CfnCodeDeployBlueGreenHook._fromCloudFormation(this.hooksScope,hookName,hookAttributes,{parser:cfnParser});break;default:{const hookProperties=cfnParser.parseValue(hookAttributes.Properties)??{};hook=new core.CfnHook(this.hooksScope,hookName,{type:hookAttributes.Type,properties:hookProperties})}}this.hooks[hookName]=hook,this.overrideLogicalIdIfNeeded(hook,hookName)}createOutput(logicalId,scope){const self=this,outputAttributes=new cfn_parse.CfnParser({finder:{findResource(lId){return self.resources[lId]},findRefTarget(elementName){return self.resources[elementName]??self.parameters[elementName]},findCondition(conditionName){return self.conditions[conditionName]},findMapping(mappingName){return self.mappings[mappingName]}},parameters:this.parametersToReplace}).parseValue(this.template.Outputs[logicalId]),cfnOutput=new core.CfnOutput(scope,logicalId,{value:outputAttributes.Value,description:outputAttributes.Description,exportName:outputAttributes.Export?outputAttributes.Export.Name:void 0,condition:(()=>{if(outputAttributes.Condition){if(this.conditions[outputAttributes.Condition])return self.getCondition(outputAttributes.Condition)}else return;throw new Error(`Output with name '${logicalId}' refers to a Condition with name '${outputAttributes.Condition}' which was not found in this template`)})()});this.overrideLogicalIdIfNeeded(cfnOutput,logicalId),this.outputs[logicalId]=cfnOutput}getOrCreateCondition(conditionName){if(conditionName in this.conditions)return this.conditions[conditionName];const self=this,cfnParser=new cfn_parse.CfnParser({finder:{findResource(){throw new Error("Using GetAtt in Condition definitions is not allowed")},findRefTarget(elementName){return self.parameters[elementName]},findCondition(cName){return cName in(self.template.Conditions||{})?self.getOrCreateCondition(cName):void 0},findMapping(mappingName){return self.mappings[mappingName]}},context:cfn_parse.CfnParsingContext.CONDITIONS,parameters:this.parametersToReplace}),cfnCondition=new core.CfnCondition(this.conditionsScope,conditionName,{expression:cfnParser.parseValue(this.template.Conditions[conditionName])});return this.overrideLogicalIdIfNeeded(cfnCondition,conditionName),this.conditions[conditionName]=cfnCondition,cfnCondition}getPlaceholderID(){return`Placeholder${this.logicalIdToPlaceholderMap.size}`}getOrCreateResource(logicalId,cycleChain=[]){if(cycleChain=cycleChain.concat([logicalId]),cycleChain.length!==new Set(cycleChain).size){if(!this.allowCyclicalReferences)throw new Error(`Found a cycle between resources in the template: ${cycleChain.join(" depends on ")}`);if(this.logicalIdToPlaceholderMap.get(logicalId))return this.resources[this.logicalIdToPlaceholderMap.get(logicalId)];let placeholderResourceAttributes=this.template.Resources[logicalId],placeholderId=this.getPlaceholderID();this.logicalIdToPlaceholderMap.set(logicalId,placeholderId);let placeholderInstance=new core.CfnResource(this,placeholderId,{type:placeholderResourceAttributes.Type,properties:{}});return placeholderInstance.overrideLogicalId(placeholderId),this.resources[placeholderId]=placeholderInstance,placeholderInstance}const ret=this.resources[logicalId];if(ret)return ret;const self=this,finder={findCondition(conditionName){return self.conditions[conditionName]},findMapping(mappingName){return self.mappings[mappingName]},findResource(lId){if(lId in(self.template.Resources||{}))return self.getOrCreateResource(lId,cycleChain)},findRefTarget(elementName){return elementName in self.parameters?self.parameters[elementName]:this.findResource(elementName)}},cfnParser=new cfn_parse.CfnParser({finder,parameters:this.parametersToReplace}),resourceAttributes=this.template.Resources[logicalId];let l1Instance;if(this.nestedStacksToInclude[logicalId])l1Instance=this.createNestedStack(logicalId,cfnParser);else{const l1ClassFqn=cfn_type_to_l1_mapping.lookup(resourceAttributes.Type);if(l1ClassFqn&&resourceAttributes.Type!=="AWS::CloudFormation::CustomResource"){const options={parser:cfnParser},[moduleName,...className]=l1ClassFqn.split(".");l1Instance=require(moduleName)[className.join(".")]._fromCloudFormation(this,logicalId,resourceAttributes,options)}else l1Instance=new core.CfnResource(this,logicalId,{type:resourceAttributes.Type,properties:cfnParser.parseValue(resourceAttributes.Properties)}),cfnParser.handleAttributes(l1Instance,resourceAttributes,logicalId)}if(this.logicalIdToPlaceholderMap.get(logicalId)){let placeholderId=this.logicalIdToPlaceholderMap.get(logicalId);this.resources[placeholderId].overrideLogicalId(logicalId),this.node.tryRemoveChild(placeholderId),delete this.resources[placeholderId]}this.overrideLogicalIdIfNeeded(l1Instance,logicalId),this.resources[logicalId]=l1Instance;const knownAttributes=["Condition","DependsOn","Description","Metadata","Properties","Type","Version","CreationPolicy","DeletionPolicy","UpdatePolicy","UpdateReplacePolicy"];for(const[attrName,attrValue]of Object.entries(resourceAttributes))knownAttributes.includes(attrName)||l1Instance.addOverride(attrName,cfnParser.parseValue(attrValue));return l1Instance}createNestedStack(nestedStackId,cfnParser){const nestedStackAttributes=(this.template.Resources||{})[nestedStackId]||{};if(nestedStackAttributes.Type!=="AWS::CloudFormation::Stack")throw new Error(`Nested Stack with logical ID '${nestedStackId}' is not an AWS::CloudFormation::Stack resource`);if(nestedStackAttributes.CreationPolicy)throw new Error("CreationPolicy is not supported by the AWS::CloudFormation::Stack resource");if(nestedStackAttributes.UpdatePolicy)throw new Error("UpdatePolicy is not supported by the AWS::CloudFormation::Stack resource");const nestedStackProps=cfnParser.parseValue(nestedStackAttributes.Properties),nestedStack=new core.NestedStack(this,nestedStackId,{parameters:this.parametersForNestedStack(nestedStackProps.Parameters,nestedStackId),notificationArns:cfn_parse.FromCloudFormation.getStringArray(nestedStackProps.NotificationARNs).value,timeout:this.timeoutForNestedStack(nestedStackProps.TimeoutInMinutes)}),template=new CfnInclude(nestedStack,nestedStackId,this.nestedStacksToInclude[nestedStackId]);this.nestedStacks[nestedStackId]={stack:nestedStack,includedTemplate:template};const nestedStackResource=nestedStack.nestedStackResource;return cfnParser.handleAttributes(nestedStackResource,nestedStackAttributes,nestedStackId),nestedStackResource}parametersForNestedStack(parameters,nestedStackId){if(parameters==null)return;const parametersToReplace=this.nestedStacksToInclude[nestedStackId].parameters??{},ret={};for(const paramName of Object.keys(parameters))paramName in parametersToReplace||(ret[paramName]=cfn_parse.FromCloudFormation.getString(parameters[paramName]).value);return ret}timeoutForNestedStack(value){if(value!=null)return core.Duration.minutes(cfn_parse.FromCloudFormation.getNumber(value).value)}overrideLogicalIdIfNeeded(element,id){this.preserveLogicalIds&&element.overrideLogicalId(id)}}exports.CfnInclude=CfnInclude,_a=JSII_RTTI_SYMBOL_1,CfnInclude[_a]={fqn:"aws-cdk-lib.cloudformation_include.CfnInclude",version:"2.51.1"};
|
|
2
2
|
//# sourceMappingURL=cfn-include.js.map
|
package/core/lib/annotations.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Annotations=void 0;const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cxschema=require("../../cloud-assembly-schema"),cxapi=require("../../cx-api"),constructs_1=require("constructs"),DEPRECATIONS_SYMBOL=Symbol.for("@aws-cdk/core.deprecations");class Annotations{constructor(scope){this.scope=scope;const disableTrace=scope.node.tryGetContext(cxapi.DISABLE_METADATA_STACK_TRACE)||process.env.CDK_DISABLE_STACK_TRACE;this.stackTraces=!disableTrace}static of(scope){return new Annotations(scope)}addWarning(message){this.addMessage(cxschema.ArtifactMetadataEntryType.WARN,message)}addInfo(message){this.addMessage(cxschema.ArtifactMetadataEntryType.INFO,message)}addError(message){this.addMessage(cxschema.ArtifactMetadataEntryType.ERROR,message)}addDeprecation(api,message){const text=`The API ${api} is deprecated: ${message}. This API will be removed in the next major release`;if(process.env.CDK_BLOCK_DEPRECATIONS)throw new Error(`${constructs_1.Node.of(this.scope).path}: ${text}`);const set=this.deprecationsReported;set.has(api)||(this.addWarning(text),set.add(api))}addMessage(level,message){constructs_1.Node.of(this.scope).addMetadata(level,message,{stackTrace:this.stackTraces})}get deprecationsReported(){let set=this.scope[DEPRECATIONS_SYMBOL];return set||(set=new Set,Object.defineProperty(this.scope,DEPRECATIONS_SYMBOL,{value:set})),set}}exports.Annotations=Annotations,_a=JSII_RTTI_SYMBOL_1,Annotations[_a]={fqn:"aws-cdk-lib.Annotations",version:"2.51.
|
|
1
|
+
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Annotations=void 0;const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cxschema=require("../../cloud-assembly-schema"),cxapi=require("../../cx-api"),constructs_1=require("constructs"),DEPRECATIONS_SYMBOL=Symbol.for("@aws-cdk/core.deprecations");class Annotations{constructor(scope){this.scope=scope;const disableTrace=scope.node.tryGetContext(cxapi.DISABLE_METADATA_STACK_TRACE)||process.env.CDK_DISABLE_STACK_TRACE;this.stackTraces=!disableTrace}static of(scope){return new Annotations(scope)}addWarning(message){this.addMessage(cxschema.ArtifactMetadataEntryType.WARN,message)}addInfo(message){this.addMessage(cxschema.ArtifactMetadataEntryType.INFO,message)}addError(message){this.addMessage(cxschema.ArtifactMetadataEntryType.ERROR,message)}addDeprecation(api,message){const text=`The API ${api} is deprecated: ${message}. This API will be removed in the next major release`;if(process.env.CDK_BLOCK_DEPRECATIONS)throw new Error(`${constructs_1.Node.of(this.scope).path}: ${text}`);const set=this.deprecationsReported;set.has(api)||(this.addWarning(text),set.add(api))}addMessage(level,message){constructs_1.Node.of(this.scope).addMetadata(level,message,{stackTrace:this.stackTraces})}get deprecationsReported(){let set=this.scope[DEPRECATIONS_SYMBOL];return set||(set=new Set,Object.defineProperty(this.scope,DEPRECATIONS_SYMBOL,{value:set})),set}}exports.Annotations=Annotations,_a=JSII_RTTI_SYMBOL_1,Annotations[_a]={fqn:"aws-cdk-lib.Annotations",version:"2.51.1"};
|
|
2
2
|
//# sourceMappingURL=annotations.js.map
|
package/core/lib/app.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.attachCustomSynthesis=exports.App=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cxapi=require("../../cx-api"),fs=require("fs-extra"),synthesis_1=require("./private/synthesis"),stage_1=require("./stage"),APP_SYMBOL=Symbol.for("@aws-cdk/core.App");class App extends stage_1.Stage{constructor(props={}){super(void 0,"",{outdir:props.outdir??process.env[cxapi.OUTDIR_ENV]});try{jsiiDeprecationWarnings.aws_cdk_lib_AppProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,App),error}Object.defineProperty(this,APP_SYMBOL,{value:!0}),this.loadContext(props.context,props.postCliContext),props.stackTraces===!1&&this.node.setContext(cxapi.DISABLE_METADATA_STACK_TRACE,!0);const analyticsReporting=props.analyticsReporting??props.runtimeInfo;analyticsReporting!==void 0&&this.node.setContext(cxapi.ANALYTICS_REPORTING_ENABLED_CONTEXT,analyticsReporting),(props.autoSynth??cxapi.OUTDIR_ENV in process.env)&&process.once("beforeExit",()=>this.synth()),this._treeMetadata=props.treeMetadata??!0}static isApp(obj){return APP_SYMBOL in obj}loadContext(defaults={},final={}){for(const[k,v]of Object.entries(defaults))this.node.setContext(k,v);const context={...this.readContextFromEnvironment(),...this.readContextFromTempFile()};for(const[k,v]of Object.entries(context))this.node.setContext(k,v);for(const[k,v]of Object.entries(final))this.node.setContext(k,v)}readContextFromTempFile(){const location=process.env[cxapi.CONTEXT_OVERFLOW_LOCATION_ENV];return location?fs.readJSONSync(location):{}}readContextFromEnvironment(){const contextJson=process.env[cxapi.CONTEXT_ENV];return contextJson?JSON.parse(contextJson):{}}}exports.App=App,_a=JSII_RTTI_SYMBOL_1,App[_a]={fqn:"aws-cdk-lib.App",version:"2.51.
|
|
1
|
+
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.attachCustomSynthesis=exports.App=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cxapi=require("../../cx-api"),fs=require("fs-extra"),synthesis_1=require("./private/synthesis"),stage_1=require("./stage"),APP_SYMBOL=Symbol.for("@aws-cdk/core.App");class App extends stage_1.Stage{constructor(props={}){super(void 0,"",{outdir:props.outdir??process.env[cxapi.OUTDIR_ENV]});try{jsiiDeprecationWarnings.aws_cdk_lib_AppProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,App),error}Object.defineProperty(this,APP_SYMBOL,{value:!0}),this.loadContext(props.context,props.postCliContext),props.stackTraces===!1&&this.node.setContext(cxapi.DISABLE_METADATA_STACK_TRACE,!0);const analyticsReporting=props.analyticsReporting??props.runtimeInfo;analyticsReporting!==void 0&&this.node.setContext(cxapi.ANALYTICS_REPORTING_ENABLED_CONTEXT,analyticsReporting),(props.autoSynth??cxapi.OUTDIR_ENV in process.env)&&process.once("beforeExit",()=>this.synth()),this._treeMetadata=props.treeMetadata??!0}static isApp(obj){return APP_SYMBOL in obj}loadContext(defaults={},final={}){for(const[k,v]of Object.entries(defaults))this.node.setContext(k,v);const context={...this.readContextFromEnvironment(),...this.readContextFromTempFile()};for(const[k,v]of Object.entries(context))this.node.setContext(k,v);for(const[k,v]of Object.entries(final))this.node.setContext(k,v)}readContextFromTempFile(){const location=process.env[cxapi.CONTEXT_OVERFLOW_LOCATION_ENV];return location?fs.readJSONSync(location):{}}readContextFromEnvironment(){const contextJson=process.env[cxapi.CONTEXT_ENV];return contextJson?JSON.parse(contextJson):{}}}exports.App=App,_a=JSII_RTTI_SYMBOL_1,App[_a]={fqn:"aws-cdk-lib.App",version:"2.51.1"};function attachCustomSynthesis(construct,synthesis){synthesis_1.addCustomSynthesis(construct,synthesis)}exports.attachCustomSynthesis=attachCustomSynthesis;
|
|
2
2
|
//# sourceMappingURL=app.js.map
|
package/core/lib/arn.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Arn=exports.ArnFormat=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cfn_fn_1=require("./cfn-fn"),token_1=require("./token"),util_1=require("./util");var ArnFormat;(function(ArnFormat2){ArnFormat2.NO_RESOURCE_NAME="arn:aws:service:region:account:resource",ArnFormat2.COLON_RESOURCE_NAME="arn:aws:service:region:account:resource:resourceName",ArnFormat2.SLASH_RESOURCE_NAME="arn:aws:service:region:account:resource/resourceName",ArnFormat2.SLASH_RESOURCE_SLASH_RESOURCE_NAME="arn:aws:service:region:account:/resource/resourceName"})(ArnFormat=exports.ArnFormat||(exports.ArnFormat={}));class Arn{constructor(){}static format(components,stack){try{jsiiDeprecationWarnings.aws_cdk_lib_ArnComponents(components),jsiiDeprecationWarnings.aws_cdk_lib_Stack(stack)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.format),error}const partition=components.partition??stack?.partition,region=components.region??stack?.region,account=components.account??stack?.account;if(partition==null||region==null||account==null)throw new Error(`Arn.format: partition (${partition}), region (${region}), and account (${account}) must all be passed if stack is not passed.`);const sep=components.sep??(components.arnFormat===ArnFormat.COLON_RESOURCE_NAME?":":"/"),values=["arn",":",partition,":",components.service,":",region,":",account,":",...components.arnFormat===ArnFormat.SLASH_RESOURCE_SLASH_RESOURCE_NAME?["/"]:[],components.resource];if(sep!=="/"&&sep!==":"&&sep!=="")throw new Error('resourcePathSep may only be ":", "/" or an empty string');return components.resourceName!=null&&(values.push(sep),values.push(components.resourceName)),values.join("")}static parse(arn,sepIfToken="/",hasName=!0){let arnFormat;return hasName?arnFormat=sepIfToken==="/"?ArnFormat.SLASH_RESOURCE_NAME:ArnFormat.COLON_RESOURCE_NAME:arnFormat=ArnFormat.NO_RESOURCE_NAME,this.split(arn,arnFormat)}static split(arn,arnFormat){try{jsiiDeprecationWarnings.aws_cdk_lib_ArnFormat(arnFormat)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.split),error}const components=parseArnShape(arn);if(components==="token")return parseTokenArn(arn,arnFormat);const[,partition,service,region,account,resourceTypeOrName,...rest]=components;let resource,resourceName,sep,resourcePartStartIndex=0,detectedArnFormat,slashIndex=resourceTypeOrName.indexOf("/");return slashIndex===0&&(slashIndex=resourceTypeOrName.indexOf("/",1),resourcePartStartIndex=1,detectedArnFormat=ArnFormat.SLASH_RESOURCE_SLASH_RESOURCE_NAME),slashIndex!==-1?arnFormat===ArnFormat.NO_RESOURCE_NAME?(sep=void 0,slashIndex=-1,detectedArnFormat=ArnFormat.NO_RESOURCE_NAME):(sep="/",detectedArnFormat=resourcePartStartIndex===0?ArnFormat.SLASH_RESOURCE_NAME:ArnFormat.SLASH_RESOURCE_SLASH_RESOURCE_NAME):rest.length>0?(sep=":",slashIndex=-1,detectedArnFormat=ArnFormat.COLON_RESOURCE_NAME):(sep=void 0,detectedArnFormat=ArnFormat.NO_RESOURCE_NAME),slashIndex!==-1?(resource=resourceTypeOrName.substring(resourcePartStartIndex,slashIndex),resourceName=resourceTypeOrName.substring(slashIndex+1)):resource=resourceTypeOrName,rest.length>0&&(resourceName?resourceName+=":":resourceName="",resourceName+=rest.join(":")),util_1.filterUndefined({service:service||void 0,resource:resource||void 0,partition:partition||void 0,region,account,resourceName,sep,arnFormat:detectedArnFormat})}static extractResourceName(arn,resourceType){if(parseArnShape(arn)==="token")return cfn_fn_1.Fn.select(1,cfn_fn_1.Fn.split(`:${resourceType}/`,arn));const parsed=Arn.split(arn,ArnFormat.SLASH_RESOURCE_NAME);if(!token_1.Token.isUnresolved(parsed.resource)&&parsed.resource!==resourceType)throw new Error(`Expected resource type '${resourceType}' in ARN, got '${parsed.resource}' in '${arn}'`);if(!parsed.resourceName)throw new Error(`Expected resource name in ARN, didn't find one: '${arn}'`);return parsed.resourceName}}exports.Arn=Arn,_a=JSII_RTTI_SYMBOL_1,Arn[_a]={fqn:"aws-cdk-lib.Arn",version:"2.51.
|
|
1
|
+
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Arn=exports.ArnFormat=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cfn_fn_1=require("./cfn-fn"),token_1=require("./token"),util_1=require("./util");var ArnFormat;(function(ArnFormat2){ArnFormat2.NO_RESOURCE_NAME="arn:aws:service:region:account:resource",ArnFormat2.COLON_RESOURCE_NAME="arn:aws:service:region:account:resource:resourceName",ArnFormat2.SLASH_RESOURCE_NAME="arn:aws:service:region:account:resource/resourceName",ArnFormat2.SLASH_RESOURCE_SLASH_RESOURCE_NAME="arn:aws:service:region:account:/resource/resourceName"})(ArnFormat=exports.ArnFormat||(exports.ArnFormat={}));class Arn{constructor(){}static format(components,stack){try{jsiiDeprecationWarnings.aws_cdk_lib_ArnComponents(components),jsiiDeprecationWarnings.aws_cdk_lib_Stack(stack)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.format),error}const partition=components.partition??stack?.partition,region=components.region??stack?.region,account=components.account??stack?.account;if(partition==null||region==null||account==null)throw new Error(`Arn.format: partition (${partition}), region (${region}), and account (${account}) must all be passed if stack is not passed.`);const sep=components.sep??(components.arnFormat===ArnFormat.COLON_RESOURCE_NAME?":":"/"),values=["arn",":",partition,":",components.service,":",region,":",account,":",...components.arnFormat===ArnFormat.SLASH_RESOURCE_SLASH_RESOURCE_NAME?["/"]:[],components.resource];if(sep!=="/"&&sep!==":"&&sep!=="")throw new Error('resourcePathSep may only be ":", "/" or an empty string');return components.resourceName!=null&&(values.push(sep),values.push(components.resourceName)),values.join("")}static parse(arn,sepIfToken="/",hasName=!0){let arnFormat;return hasName?arnFormat=sepIfToken==="/"?ArnFormat.SLASH_RESOURCE_NAME:ArnFormat.COLON_RESOURCE_NAME:arnFormat=ArnFormat.NO_RESOURCE_NAME,this.split(arn,arnFormat)}static split(arn,arnFormat){try{jsiiDeprecationWarnings.aws_cdk_lib_ArnFormat(arnFormat)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.split),error}const components=parseArnShape(arn);if(components==="token")return parseTokenArn(arn,arnFormat);const[,partition,service,region,account,resourceTypeOrName,...rest]=components;let resource,resourceName,sep,resourcePartStartIndex=0,detectedArnFormat,slashIndex=resourceTypeOrName.indexOf("/");return slashIndex===0&&(slashIndex=resourceTypeOrName.indexOf("/",1),resourcePartStartIndex=1,detectedArnFormat=ArnFormat.SLASH_RESOURCE_SLASH_RESOURCE_NAME),slashIndex!==-1?arnFormat===ArnFormat.NO_RESOURCE_NAME?(sep=void 0,slashIndex=-1,detectedArnFormat=ArnFormat.NO_RESOURCE_NAME):(sep="/",detectedArnFormat=resourcePartStartIndex===0?ArnFormat.SLASH_RESOURCE_NAME:ArnFormat.SLASH_RESOURCE_SLASH_RESOURCE_NAME):rest.length>0?(sep=":",slashIndex=-1,detectedArnFormat=ArnFormat.COLON_RESOURCE_NAME):(sep=void 0,detectedArnFormat=ArnFormat.NO_RESOURCE_NAME),slashIndex!==-1?(resource=resourceTypeOrName.substring(resourcePartStartIndex,slashIndex),resourceName=resourceTypeOrName.substring(slashIndex+1)):resource=resourceTypeOrName,rest.length>0&&(resourceName?resourceName+=":":resourceName="",resourceName+=rest.join(":")),util_1.filterUndefined({service:service||void 0,resource:resource||void 0,partition:partition||void 0,region,account,resourceName,sep,arnFormat:detectedArnFormat})}static extractResourceName(arn,resourceType){if(parseArnShape(arn)==="token")return cfn_fn_1.Fn.select(1,cfn_fn_1.Fn.split(`:${resourceType}/`,arn));const parsed=Arn.split(arn,ArnFormat.SLASH_RESOURCE_NAME);if(!token_1.Token.isUnresolved(parsed.resource)&&parsed.resource!==resourceType)throw new Error(`Expected resource type '${resourceType}' in ARN, got '${parsed.resource}' in '${arn}'`);if(!parsed.resourceName)throw new Error(`Expected resource name in ARN, didn't find one: '${arn}'`);return parsed.resourceName}}exports.Arn=Arn,_a=JSII_RTTI_SYMBOL_1,Arn[_a]={fqn:"aws-cdk-lib.Arn",version:"2.51.1"};function parseTokenArn(arnToken,arnFormat){const components=cfn_fn_1.Fn.split(":",arnToken),partition=cfn_fn_1.Fn.select(1,components).toString(),service=cfn_fn_1.Fn.select(2,components).toString(),region=cfn_fn_1.Fn.select(3,components).toString(),account=cfn_fn_1.Fn.select(4,components).toString();let resource,resourceName,sep;if(arnFormat===ArnFormat.NO_RESOURCE_NAME||arnFormat===ArnFormat.COLON_RESOURCE_NAME)resource=cfn_fn_1.Fn.select(5,components),arnFormat===ArnFormat.COLON_RESOURCE_NAME?(resourceName=cfn_fn_1.Fn.select(6,components),sep=":"):(resourceName=void 0,sep=void 0);else{const lastComponents=cfn_fn_1.Fn.split("/",cfn_fn_1.Fn.select(5,components));arnFormat===ArnFormat.SLASH_RESOURCE_NAME?(resource=cfn_fn_1.Fn.select(0,lastComponents),resourceName=cfn_fn_1.Fn.select(1,lastComponents)):(resource=cfn_fn_1.Fn.select(1,lastComponents),resourceName=cfn_fn_1.Fn.select(2,lastComponents)),sep="/"}return{partition,service,region,account,resource,resourceName,sep,arnFormat}}function parseArnShape(arn){if(!arn.startsWith("arn:")){if(token_1.Token.isUnresolved(arn))return"token";throw new Error(`ARNs must start with "arn:" and have at least 6 components: ${arn}`)}const components=arn.split(":");if(!(components.length>1?components[1]:void 0))throw new Error("The `partition` component (2nd component) of an ARN is required: "+arn);if(!(components.length>2?components[2]:void 0))throw new Error("The `service` component (3rd component) of an ARN is required: "+arn);if(!(components.length>5?components[5]:void 0))throw new Error("The `resource` component (6th component) of an ARN is required: "+arn);return components}
|
|
2
2
|
//# sourceMappingURL=arn.js.map
|
package/core/lib/aspect.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Aspects=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),ASPECTS_SYMBOL=Symbol.for("cdk-aspects");class Aspects{constructor(){this._aspects=[]}static of(scope){let aspects=scope[ASPECTS_SYMBOL];return aspects||(aspects=new Aspects,Object.defineProperty(scope,ASPECTS_SYMBOL,{value:aspects,configurable:!1,enumerable:!1})),aspects}add(aspect){try{jsiiDeprecationWarnings.aws_cdk_lib_IAspect(aspect)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.add),error}this._aspects.push(aspect)}get all(){return[...this._aspects]}}exports.Aspects=Aspects,_a=JSII_RTTI_SYMBOL_1,Aspects[_a]={fqn:"aws-cdk-lib.Aspects",version:"2.51.
|
|
1
|
+
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Aspects=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),ASPECTS_SYMBOL=Symbol.for("cdk-aspects");class Aspects{constructor(){this._aspects=[]}static of(scope){let aspects=scope[ASPECTS_SYMBOL];return aspects||(aspects=new Aspects,Object.defineProperty(scope,ASPECTS_SYMBOL,{value:aspects,configurable:!1,enumerable:!1})),aspects}add(aspect){try{jsiiDeprecationWarnings.aws_cdk_lib_IAspect(aspect)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.add),error}this._aspects.push(aspect)}get all(){return[...this._aspects]}}exports.Aspects=Aspects,_a=JSII_RTTI_SYMBOL_1,Aspects[_a]={fqn:"aws-cdk-lib.Aspects",version:"2.51.1"};
|
|
2
2
|
//# sourceMappingURL=aspect.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AssetStaging=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),crypto=require("crypto"),os=require("os"),path=require("path"),cxapi=require("../../cx-api"),constructs_1=require("constructs"),fs=require("fs-extra"),assets_1=require("./assets"),bundling_1=require("./bundling"),fs_1=require("./fs"),fingerprint_1=require("./fs/fingerprint"),names_1=require("./names"),cache_1=require("./private/cache"),stack_1=require("./stack"),stage_1=require("./stage"),ARCHIVE_EXTENSIONS=[".tar.gz",".zip",".jar",".tar",".tgz"],ASSET_SALT_CONTEXT_KEY="@aws-cdk/core:assetHashSalt";class AssetStaging extends constructs_1.Construct{constructor(scope,id,props){super(scope,id);try{jsiiDeprecationWarnings.aws_cdk_lib_AssetStagingProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,AssetStaging),error}const salt=this.node.tryGetContext(ASSET_SALT_CONTEXT_KEY);if(this.sourcePath=path.resolve(props.sourcePath),this.fingerprintOptions={...props,extraHash:props.extraHash||salt?`${props.extraHash??""}${salt??""}`:void 0},!fs.existsSync(this.sourcePath))throw new Error(`Cannot find asset at ${this.sourcePath}`);this.sourceStats=fs.statSync(this.sourcePath);const outdir=stage_1.Stage.of(this)?.assetOutdir;if(!outdir)throw new Error('unable to determine cloud assembly asset output directory. Assets must be defined indirectly within a "Stage" or an "App" scope');this.assetOutdir=outdir,this.customSourceFingerprint=props.assetHash,this.hashType=determineHashType(props.assetHashType,this.customSourceFingerprint);let stageThisAsset,skip=!1;if(props.bundling){skip=!stack_1.Stack.of(this).bundlingRequired;const bundling=props.bundling;stageThisAsset=()=>this.stageByBundling(bundling,skip)}else stageThisAsset=()=>this.stageByCopying();this.cacheKey=calculateCacheKey({outdir:this.assetOutdir,sourcePath:path.resolve(props.sourcePath),bundling:props.bundling,assetHashType:this.hashType,customFingerprint:this.customSourceFingerprint,extraHash:props.extraHash,exclude:props.exclude,ignoreMode:props.ignoreMode,skip});const staged=AssetStaging.assetCache.obtain(this.cacheKey,stageThisAsset);this.stagedPath=staged.stagedPath,this.absoluteStagedPath=staged.stagedPath,this.assetHash=staged.assetHash,this.packaging=staged.packaging,this.isArchive=staged.isArchive}static clearAssetHashCache(){this.assetCache.clear(),fingerprint_1.clearLargeFileFingerprintCache()}get sourceHash(){return this.assetHash}relativeStagedPath(stack){try{jsiiDeprecationWarnings.aws_cdk_lib_Stack(stack)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.relativeStagedPath),error}const asmManifestDir=stage_1.Stage.of(stack)?.outdir;return asmManifestDir?path.relative(this.assetOutdir,this.stagedPath).startsWith("..")||this.stagingDisabled?this.stagedPath:path.relative(asmManifestDir,this.stagedPath):this.stagedPath}stageByCopying(){const assetHash=this.calculateHash(this.hashType),stagedPath=this.stagingDisabled?this.sourcePath:path.resolve(this.assetOutdir,renderAssetFilename(assetHash,getExtension(this.sourcePath)));if(!this.sourceStats.isDirectory()&&!this.sourceStats.isFile())throw new Error(`Asset ${this.sourcePath} is expected to be either a directory or a regular file`);return this.stageAsset(this.sourcePath,stagedPath,"copy"),{assetHash,stagedPath,packaging:this.sourceStats.isDirectory()?assets_1.FileAssetPackaging.ZIP_DIRECTORY:assets_1.FileAssetPackaging.FILE,isArchive:this.sourceStats.isDirectory()||ARCHIVE_EXTENSIONS.includes(getExtension(this.sourcePath).toLowerCase())}}stageByBundling(bundling,skip){if(!this.sourceStats.isDirectory())throw new Error(`Asset ${this.sourcePath} is expected to be a directory when bundling`);if(skip){let hashType=this.hashType;return(hashType===assets_1.AssetHashType.OUTPUT||hashType===assets_1.AssetHashType.BUNDLE)&&(this.customSourceFingerprint=names_1.Names.uniqueId(this),hashType=assets_1.AssetHashType.CUSTOM),{assetHash:this.calculateHash(hashType,bundling),stagedPath:this.sourcePath,packaging:assets_1.FileAssetPackaging.ZIP_DIRECTORY,isArchive:!0}}let assetHash=this.hashType===assets_1.AssetHashType.SOURCE||this.hashType===assets_1.AssetHashType.CUSTOM?this.calculateHash(this.hashType,bundling):void 0;const bundleDir=this.determineBundleDir(this.assetOutdir,assetHash);this.bundle(bundling,bundleDir);const bundlingOutputType=bundling.outputType??bundling_1.BundlingOutput.AUTO_DISCOVER,bundledAsset=determineBundledAsset(bundleDir,bundlingOutputType);assetHash=assetHash??this.calculateHash(this.hashType,bundling,bundledAsset.path);const stagedPath=path.resolve(this.assetOutdir,renderAssetFilename(assetHash,bundledAsset.extension));return this.stageAsset(bundledAsset.path,stagedPath,"move"),bundledAsset.packaging===assets_1.FileAssetPackaging.FILE&&fs.closeSync(fs.openSync(bundledAsset.path,"w")),{assetHash,stagedPath,packaging:bundledAsset.packaging,isArchive:!0}}get stagingDisabled(){return!!this.node.tryGetContext(cxapi.DISABLE_ASSET_STAGING_CONTEXT)}stageAsset(sourcePath,targetPath,style){if(fs.existsSync(targetPath)){style==="move"&&sourcePath!==targetPath&&fs.removeSync(sourcePath);return}if(style=="move"){fs.renameSync(sourcePath,targetPath);return}if(this.sourceStats.isFile())fs.copyFileSync(sourcePath,targetPath);else if(this.sourceStats.isDirectory())fs.mkdirSync(targetPath),fs_1.FileSystem.copyDirectory(sourcePath,targetPath,this.fingerprintOptions);else throw new Error(`Unknown file type: ${sourcePath}`)}determineBundleDir(outdir,sourceHash){return sourceHash?path.resolve(outdir,renderAssetFilename(sourceHash)):path.resolve(outdir,`bundling-temp-${this.cacheKey}`)}bundle(options,bundleDir){if(fs.existsSync(bundleDir))return;fs.ensureDirSync(bundleDir),fs.chmodSync(bundleDir,511);const volumes=[{hostPath:this.sourcePath,containerPath:AssetStaging.BUNDLING_INPUT_DIR},{hostPath:bundleDir,containerPath:AssetStaging.BUNDLING_OUTPUT_DIR},...options.volumes??[]];let localBundling;try{if(process.stderr.write(`Bundling asset ${this.node.path}...
|
|
2
|
-
`),localBundling=options.local?.tryBundle(bundleDir,options),!localBundling){let user;if(options.user)user=options.user;else{const userInfo=os.userInfo();user=userInfo.uid!==-1?`${userInfo.uid}:${userInfo.gid}`:"1000:1000"}options.image.run({command:options.command,user,volumes,environment:options.environment,entrypoint:options.entrypoint,workingDirectory:options.workingDirectory??AssetStaging.BUNDLING_INPUT_DIR,securityOpt:options.securityOpt??""})}}catch(err){const bundleErrorDir=bundleDir+"-error";throw fs.existsSync(bundleErrorDir)&&fs.removeSync(bundleErrorDir),fs.renameSync(bundleDir,bundleErrorDir),new Error(`Failed to bundle asset ${this.node.path}, bundle output is located at ${bundleErrorDir}: ${err}`)}if(fs_1.FileSystem.isEmpty(bundleDir)){const outputDir=localBundling?bundleDir:AssetStaging.BUNDLING_OUTPUT_DIR;throw new Error(`Bundling did not produce any output. Check that content is written to ${outputDir}.`)}}calculateHash(hashType,bundling,outputDir){if(hashType==assets_1.AssetHashType.CUSTOM||hashType==assets_1.AssetHashType.SOURCE&&bundling){const hash=crypto.createHash("sha256");return hash.update(this.customSourceFingerprint??fs_1.FileSystem.fingerprint(this.sourcePath,this.fingerprintOptions)),bundling&&hash.update(JSON.stringify(bundling)),hash.digest("hex")}switch(hashType){case assets_1.AssetHashType.SOURCE:return fs_1.FileSystem.fingerprint(this.sourcePath,this.fingerprintOptions);case assets_1.AssetHashType.BUNDLE:case assets_1.AssetHashType.OUTPUT:if(!outputDir)throw new Error(`Cannot use \`${hashType}\` hash type when \`bundling\` is not specified.`);return fs_1.FileSystem.fingerprint(outputDir,this.fingerprintOptions);default:throw new Error("Unknown asset hash type.")}}}exports.AssetStaging=AssetStaging,_a=JSII_RTTI_SYMBOL_1,AssetStaging[_a]={fqn:"aws-cdk-lib.AssetStaging",version:"2.51.
|
|
2
|
+
`),localBundling=options.local?.tryBundle(bundleDir,options),!localBundling){let user;if(options.user)user=options.user;else{const userInfo=os.userInfo();user=userInfo.uid!==-1?`${userInfo.uid}:${userInfo.gid}`:"1000:1000"}options.image.run({command:options.command,user,volumes,environment:options.environment,entrypoint:options.entrypoint,workingDirectory:options.workingDirectory??AssetStaging.BUNDLING_INPUT_DIR,securityOpt:options.securityOpt??""})}}catch(err){const bundleErrorDir=bundleDir+"-error";throw fs.existsSync(bundleErrorDir)&&fs.removeSync(bundleErrorDir),fs.renameSync(bundleDir,bundleErrorDir),new Error(`Failed to bundle asset ${this.node.path}, bundle output is located at ${bundleErrorDir}: ${err}`)}if(fs_1.FileSystem.isEmpty(bundleDir)){const outputDir=localBundling?bundleDir:AssetStaging.BUNDLING_OUTPUT_DIR;throw new Error(`Bundling did not produce any output. Check that content is written to ${outputDir}.`)}}calculateHash(hashType,bundling,outputDir){if(hashType==assets_1.AssetHashType.CUSTOM||hashType==assets_1.AssetHashType.SOURCE&&bundling){const hash=crypto.createHash("sha256");return hash.update(this.customSourceFingerprint??fs_1.FileSystem.fingerprint(this.sourcePath,this.fingerprintOptions)),bundling&&hash.update(JSON.stringify(bundling)),hash.digest("hex")}switch(hashType){case assets_1.AssetHashType.SOURCE:return fs_1.FileSystem.fingerprint(this.sourcePath,this.fingerprintOptions);case assets_1.AssetHashType.BUNDLE:case assets_1.AssetHashType.OUTPUT:if(!outputDir)throw new Error(`Cannot use \`${hashType}\` hash type when \`bundling\` is not specified.`);return fs_1.FileSystem.fingerprint(outputDir,this.fingerprintOptions);default:throw new Error("Unknown asset hash type.")}}}exports.AssetStaging=AssetStaging,_a=JSII_RTTI_SYMBOL_1,AssetStaging[_a]={fqn:"aws-cdk-lib.AssetStaging",version:"2.51.1"},AssetStaging.BUNDLING_INPUT_DIR="/asset-input",AssetStaging.BUNDLING_OUTPUT_DIR="/asset-output",AssetStaging.assetCache=new cache_1.Cache;function renderAssetFilename(assetHash,extension=""){return`asset.${assetHash}${extension}`}function determineHashType(assetHashType,customSourceFingerprint){const hashType=customSourceFingerprint?assetHashType??assets_1.AssetHashType.CUSTOM:assetHashType??assets_1.AssetHashType.SOURCE;if(customSourceFingerprint&&hashType!==assets_1.AssetHashType.CUSTOM)throw new Error(`Cannot specify \`${assetHashType}\` for \`assetHashType\` when \`assetHash\` is specified. Use \`CUSTOM\` or leave \`undefined\`.`);if(hashType===assets_1.AssetHashType.CUSTOM&&!customSourceFingerprint)throw new Error("`assetHash` must be specified when `assetHashType` is set to `AssetHashType.CUSTOM`.");return hashType}function calculateCacheKey(props){return crypto.createHash("sha256").update(JSON.stringify(sortObject(props))).digest("hex")}function sortObject(object){if(typeof object!="object"||object instanceof Array)return object;const ret={};for(const key of Object.keys(object).sort())ret[key]=sortObject(object[key]);return ret}function singleArchiveFile(directory){if(!fs.existsSync(directory))throw new Error(`Directory ${directory} does not exist.`);if(!fs.statSync(directory).isDirectory())throw new Error(`${directory} is not a directory.`);const content=fs.readdirSync(directory);if(content.length===1){const file=path.join(directory,content[0]),extension=getExtension(content[0]).toLowerCase();if(fs.statSync(file).isFile()&&ARCHIVE_EXTENSIONS.includes(extension))return file}}function determineBundledAsset(bundleDir,outputType){const archiveFile=singleArchiveFile(bundleDir);switch(outputType===bundling_1.BundlingOutput.AUTO_DISCOVER&&(outputType=archiveFile?bundling_1.BundlingOutput.ARCHIVED:bundling_1.BundlingOutput.NOT_ARCHIVED),outputType){case bundling_1.BundlingOutput.NOT_ARCHIVED:return{path:bundleDir,packaging:assets_1.FileAssetPackaging.ZIP_DIRECTORY};case bundling_1.BundlingOutput.ARCHIVED:if(!archiveFile)throw new Error("Bundling output directory is expected to include only a single archive file when `output` is set to `ARCHIVED`");return{path:archiveFile,packaging:assets_1.FileAssetPackaging.FILE,extension:getExtension(archiveFile)}}}function getExtension(source){for(const ext of ARCHIVE_EXTENSIONS)if(source.toLowerCase().endsWith(ext))return ext;return path.extname(source)}
|
|
3
3
|
//# sourceMappingURL=asset-staging.js.map
|