const VALIDATORS = { _aws_cdk_cx_api_SynthesisMessage: function _aws_cdk_cx_api_SynthesisMessage(p) { if (p == null) return; visitedObjects.add(p); try { if ("entry" in p) print("@aws-cdk/cx-api.SynthesisMessage#entry", "The official definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("id" in p) print("@aws-cdk/cx-api.SynthesisMessage#id", "The official definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("level" in p) print("@aws-cdk/cx-api.SynthesisMessage#level", "The official definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if (!visitedObjects.has(p.level)) module.exports._aws_cdk_cx_api_SynthesisMessageLevel(p.level); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_SynthesisMessageLevel: function _aws_cdk_cx_api_SynthesisMessageLevel(p) { if (p == null) return; visitedObjects.add(p); try { print("@aws-cdk/cx-api.SynthesisMessageLevel", "The official definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if (p === "info") print("@aws-cdk/cx-api.SynthesisMessageLevel#INFO", ""); if (p === "warning") print("@aws-cdk/cx-api.SynthesisMessageLevel#WARNING", ""); if (p === "error") print("@aws-cdk/cx-api.SynthesisMessageLevel#ERROR", ""); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_MissingContext: function _aws_cdk_cx_api_MissingContext(p) { if (p == null) return; visitedObjects.add(p); try { if ("key" in p) print("@aws-cdk/cx-api.MissingContext#key", "Use `stack.reportMissingContextKey()` instead"); if ("props" in p) print("@aws-cdk/cx-api.MissingContext#props", "Use `stack.reportMissingContextKey()` instead"); if ("provider" in p) print("@aws-cdk/cx-api.MissingContext#provider", "Use `stack.reportMissingContextKey()` instead"); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_MetadataEntryResult: function _aws_cdk_cx_api_MetadataEntryResult(p) { if (p == null) return; visitedObjects.add(p); try { if ("path" in p) print("@aws-cdk/cx-api.MetadataEntryResult#path", "The official definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_Environment: function _aws_cdk_cx_api_Environment(p) { if (p == null) return; visitedObjects.add(p); try { if ("account" in p) print("@aws-cdk/cx-api.Environment#account", "The official definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("name" in p) print("@aws-cdk/cx-api.Environment#name", "The official definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("region" in p) print("@aws-cdk/cx-api.Environment#region", "The official definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_AssemblyBuildOptions: function _aws_cdk_cx_api_AssemblyBuildOptions(p) { if (p == null) return; visitedObjects.add(p); try { if ("runtimeInfo" in p) print("@aws-cdk/cx-api.AssemblyBuildOptions#runtimeInfo", "All template modifications that should result from this should\nhave already been inserted into the template."); if (!visitedObjects.has(p.runtimeInfo)) module.exports._aws_cdk_cx_api_RuntimeInfo(p.runtimeInfo); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_EnvironmentPlaceholderValues: function _aws_cdk_cx_api_EnvironmentPlaceholderValues(p) { if (p == null) return; visitedObjects.add(p); try { if ("accountId" in p) print("@aws-cdk/cx-api.EnvironmentPlaceholderValues#accountId", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("partition" in p) print("@aws-cdk/cx-api.EnvironmentPlaceholderValues#partition", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("region" in p) print("@aws-cdk/cx-api.EnvironmentPlaceholderValues#region", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_SecurityGroupContextResponse: function _aws_cdk_cx_api_SecurityGroupContextResponse(p) { if (p == null) return; visitedObjects.add(p); try { if ("allowAllOutbound" in p) print("@aws-cdk/cx-api.SecurityGroupContextResponse#allowAllOutbound", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("securityGroupId" in p) print("@aws-cdk/cx-api.SecurityGroupContextResponse#securityGroupId", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_VpcSubnetGroupType: function _aws_cdk_cx_api_VpcSubnetGroupType(p) { if (p == null) return; visitedObjects.add(p); try { print("@aws-cdk/cx-api.VpcSubnetGroupType", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if (p === "Public") print("@aws-cdk/cx-api.VpcSubnetGroupType#PUBLIC", ""); if (p === "Private") print("@aws-cdk/cx-api.VpcSubnetGroupType#PRIVATE", ""); if (p === "Isolated") print("@aws-cdk/cx-api.VpcSubnetGroupType#ISOLATED", ""); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_VpcSubnet: function _aws_cdk_cx_api_VpcSubnet(p) { if (p == null) return; visitedObjects.add(p); try { if ("availabilityZone" in p) print("@aws-cdk/cx-api.VpcSubnet#availabilityZone", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("routeTableId" in p) print("@aws-cdk/cx-api.VpcSubnet#routeTableId", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("subnetId" in p) print("@aws-cdk/cx-api.VpcSubnet#subnetId", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("cidr" in p) print("@aws-cdk/cx-api.VpcSubnet#cidr", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_VpcSubnetGroup: function _aws_cdk_cx_api_VpcSubnetGroup(p) { if (p == null) return; visitedObjects.add(p); try { if ("name" in p) print("@aws-cdk/cx-api.VpcSubnetGroup#name", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("subnets" in p) print("@aws-cdk/cx-api.VpcSubnetGroup#subnets", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if (p.subnets != null) for (const o of p.subnets) if (!visitedObjects.has(o)) module.exports._aws_cdk_cx_api_VpcSubnet(o); if ("type" in p) print("@aws-cdk/cx-api.VpcSubnetGroup#type", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if (!visitedObjects.has(p.type)) module.exports._aws_cdk_cx_api_VpcSubnetGroupType(p.type); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_VpcContextResponse: function _aws_cdk_cx_api_VpcContextResponse(p) { if (p == null) return; visitedObjects.add(p); try { if ("availabilityZones" in p) print("@aws-cdk/cx-api.VpcContextResponse#availabilityZones", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("vpcId" in p) print("@aws-cdk/cx-api.VpcContextResponse#vpcId", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("isolatedSubnetIds" in p) print("@aws-cdk/cx-api.VpcContextResponse#isolatedSubnetIds", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("isolatedSubnetNames" in p) print("@aws-cdk/cx-api.VpcContextResponse#isolatedSubnetNames", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("isolatedSubnetRouteTableIds" in p) print("@aws-cdk/cx-api.VpcContextResponse#isolatedSubnetRouteTableIds", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("ownerAccountId" in p) print("@aws-cdk/cx-api.VpcContextResponse#ownerAccountId", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("privateSubnetIds" in p) print("@aws-cdk/cx-api.VpcContextResponse#privateSubnetIds", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("privateSubnetNames" in p) print("@aws-cdk/cx-api.VpcContextResponse#privateSubnetNames", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("privateSubnetRouteTableIds" in p) print("@aws-cdk/cx-api.VpcContextResponse#privateSubnetRouteTableIds", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("publicSubnetIds" in p) print("@aws-cdk/cx-api.VpcContextResponse#publicSubnetIds", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("publicSubnetNames" in p) print("@aws-cdk/cx-api.VpcContextResponse#publicSubnetNames", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("publicSubnetRouteTableIds" in p) print("@aws-cdk/cx-api.VpcContextResponse#publicSubnetRouteTableIds", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("region" in p) print("@aws-cdk/cx-api.VpcContextResponse#region", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("subnetGroups" in p) print("@aws-cdk/cx-api.VpcContextResponse#subnetGroups", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if (p.subnetGroups != null) for (const o of p.subnetGroups) if (!visitedObjects.has(o)) module.exports._aws_cdk_cx_api_VpcSubnetGroup(o); if ("vpcCidrBlock" in p) print("@aws-cdk/cx-api.VpcContextResponse#vpcCidrBlock", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("vpnGatewayId" in p) print("@aws-cdk/cx-api.VpcContextResponse#vpnGatewayId", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_LoadBalancerIpAddressType: function _aws_cdk_cx_api_LoadBalancerIpAddressType(p) { if (p == null) return; visitedObjects.add(p); try { print("@aws-cdk/cx-api.LoadBalancerIpAddressType", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if (p === "ipv4") print("@aws-cdk/cx-api.LoadBalancerIpAddressType#IPV4", ""); if (p === "dualstack") print("@aws-cdk/cx-api.LoadBalancerIpAddressType#DUAL_STACK", ""); if (p === "dualstack-without-public-ipv4") print("@aws-cdk/cx-api.LoadBalancerIpAddressType#DUAL_STACK_WITHOUT_PUBLIC_IPV4", ""); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_LoadBalancerContextResponse: function _aws_cdk_cx_api_LoadBalancerContextResponse(p) { if (p == null) return; visitedObjects.add(p); try { if ("ipAddressType" in p) print("@aws-cdk/cx-api.LoadBalancerContextResponse#ipAddressType", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if (!visitedObjects.has(p.ipAddressType)) module.exports._aws_cdk_cx_api_LoadBalancerIpAddressType(p.ipAddressType); if ("loadBalancerArn" in p) print("@aws-cdk/cx-api.LoadBalancerContextResponse#loadBalancerArn", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("loadBalancerCanonicalHostedZoneId" in p) print("@aws-cdk/cx-api.LoadBalancerContextResponse#loadBalancerCanonicalHostedZoneId", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("loadBalancerDnsName" in p) print("@aws-cdk/cx-api.LoadBalancerContextResponse#loadBalancerDnsName", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("securityGroupIds" in p) print("@aws-cdk/cx-api.LoadBalancerContextResponse#securityGroupIds", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("vpcId" in p) print("@aws-cdk/cx-api.LoadBalancerContextResponse#vpcId", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_LoadBalancerListenerContextResponse: function _aws_cdk_cx_api_LoadBalancerListenerContextResponse(p) { if (p == null) return; visitedObjects.add(p); try { if ("listenerArn" in p) print("@aws-cdk/cx-api.LoadBalancerListenerContextResponse#listenerArn", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("listenerPort" in p) print("@aws-cdk/cx-api.LoadBalancerListenerContextResponse#listenerPort", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("securityGroupIds" in p) print("@aws-cdk/cx-api.LoadBalancerListenerContextResponse#securityGroupIds", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_KeyContextResponse: function _aws_cdk_cx_api_KeyContextResponse(p) { if (p == null) return; visitedObjects.add(p); try { if ("keyId" in p) print("@aws-cdk/cx-api.KeyContextResponse#keyId", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_EndpointServiceAvailabilityZonesContextQuery: function _aws_cdk_cx_api_EndpointServiceAvailabilityZonesContextQuery(p) { if (p == null) return; visitedObjects.add(p); try { if ("account" in p) print("@aws-cdk/cx-api.EndpointServiceAvailabilityZonesContextQuery#account", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("region" in p) print("@aws-cdk/cx-api.EndpointServiceAvailabilityZonesContextQuery#region", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("serviceName" in p) print("@aws-cdk/cx-api.EndpointServiceAvailabilityZonesContextQuery#serviceName", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); } finally { visitedObjects.delete(p); } }, _aws_cdk_cx_api_AwsCloudFormationStackProperties: function _aws_cdk_cx_api_AwsCloudFormationStackProperties(p) { if (p == null) return; visitedObjects.add(p); try { if ("templateFile" in p) print("@aws-cdk/cx-api.AwsCloudFormationStackProperties#templateFile", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("parameters" in p) print("@aws-cdk/cx-api.AwsCloudFormationStackProperties#parameters", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("stackName" in p) print("@aws-cdk/cx-api.AwsCloudFormationStackProperties#stackName", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); if ("terminationProtection" in p) print("@aws-cdk/cx-api.AwsCloudFormationStackProperties#terminationProtection", "The definition of this type has moved to `@aws-cdk/cloud-assembly-api`."); } finally { visitedObjects.delete(p); } } }; function print(name, deprecationMessage) { const deprecated = process.env.JSII_DEPRECATED; const deprecationMode = ["warn", "fail", "quiet"].includes(deprecated) ? deprecated : "warn"; const message = `${name} is deprecated.\n ${deprecationMessage.trim()}\n This API will be removed in the next major release.`; switch (deprecationMode) { case "fail": throw new DeprecationError(message); case "warn": console.warn("[WARNING]", message); break; } } function getPropertyDescriptor(obj, prop) { const descriptor = Object.getOwnPropertyDescriptor(obj, prop); if (descriptor) { return descriptor; } const proto = Object.getPrototypeOf(obj); const prototypeDescriptor = proto && getPropertyDescriptor(proto, prop); if (prototypeDescriptor) { return prototypeDescriptor; } return {}; } const visitedObjects = new Set(); class DeprecationError extends Error { constructor(...args) { super(...args); Object.defineProperty(this, "name", { configurable: false, enumerable: true, value: "DeprecationError", writable: false, }); } } function nop() { } module.exports = new Proxy({}, { get(target, prop, receiver) { if (prop === "print") return print; if (prop === "getPropertyDescriptor") return getPropertyDescriptor; if (prop === "DeprecationError") return DeprecationError; return VALIDATORS[prop] ?? nop; }, });