nomoss 0.0.4 → 0.0.6

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.
Files changed (635) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +3 -1
  3. package/ROADMAP.md +1 -1
  4. package/docs/README.md +2 -0
  5. package/docs/application/aws-resource-coverage.md +111 -20
  6. package/docs/application/designs/awsRequestBodyEncoding.ts +91 -0
  7. package/docs/application/designs/createBucketModeledErrors.ts +164 -0
  8. package/docs/application/designs/describeSubnetsEc2Query.ts +186 -0
  9. package/docs/application/designs/getBucketTaggingResponseDecoding.ts +136 -0
  10. package/docs/application/designs/lambdaGetPolicyRequest.ts +85 -0
  11. package/docs/application/designs/s3GetObjectDownload.ts +97 -0
  12. package/docs/application/designs/s3ObjectMetadata.ts +154 -0
  13. package/docs/application/designs/selectObjectContentEvents.ts +185 -0
  14. package/docs/application/generation-architecture.md +38 -0
  15. package/docs/application/resource-operations.md +4 -2
  16. package/docs/development/code-documentation.md +2 -0
  17. package/docs/development/design-walkthroughs.md +49 -0
  18. package/docs/development/effect-native-development.md +31 -2
  19. package/docs/development/review-code.md +1 -1
  20. package/docs/development/review-remediation-spec.md +1 -0
  21. package/docs/development/testing.md +20 -0
  22. package/docs/operations/releasing.md +4 -2
  23. package/examples/queue/application.ts +1 -1
  24. package/media/nomoss-logo.svg +16 -0
  25. package/package.json +8 -14
  26. package/providers/aws/README.md +7 -7
  27. package/providers/aws/awsEnvironment.ts +3 -3
  28. package/providers/aws/generated/resources/apigateway/apikey.ts +335 -0
  29. package/providers/aws/generated/resources/apigateway/authorizer.ts +329 -0
  30. package/providers/aws/generated/resources/apigateway/basepathmapping.ts +265 -0
  31. package/providers/aws/generated/resources/apigateway/deployment.ts +515 -0
  32. package/providers/aws/generated/resources/apigateway/domainname.ts +354 -0
  33. package/providers/aws/generated/resources/apigateway/gatewayresponse.ts +222 -0
  34. package/providers/aws/generated/resources/apigateway/method.ts +819 -0
  35. package/providers/aws/generated/resources/apigateway/model.ts +248 -0
  36. package/providers/aws/generated/resources/apigateway/requestvalidator.ts +224 -0
  37. package/providers/aws/generated/resources/apigateway/resource.ts +235 -0
  38. package/providers/aws/generated/resources/apigateway/restapi.ts +583 -0
  39. package/providers/aws/generated/resources/apigateway/stage.ts +656 -0
  40. package/providers/aws/generated/resources/apigateway/usageplan.ts +394 -0
  41. package/providers/aws/generated/resources/apigateway/usageplankey.ts +228 -0
  42. package/providers/aws/generated/resources/apigatewayv2/api.ts +40 -60
  43. package/providers/aws/generated/resources/apigatewayv2/apimapping.ts +284 -0
  44. package/providers/aws/generated/resources/apigatewayv2/authorizer.ts +333 -0
  45. package/providers/aws/generated/resources/apigatewayv2/deployment.ts +226 -0
  46. package/providers/aws/generated/resources/apigatewayv2/domainname.ts +333 -0
  47. package/providers/aws/generated/resources/apigatewayv2/integration.ts +70 -103
  48. package/providers/aws/generated/resources/apigatewayv2/integrationresponse.ts +323 -0
  49. package/providers/aws/generated/resources/apigatewayv2/model.ts +241 -0
  50. package/providers/aws/generated/resources/apigatewayv2/route.ts +59 -63
  51. package/providers/aws/generated/resources/apigatewayv2/routeresponse.ts +330 -0
  52. package/providers/aws/generated/resources/apigatewayv2/routingrule.ts +349 -0
  53. package/providers/aws/generated/resources/apigatewayv2/stage.ts +45 -66
  54. package/providers/aws/generated/resources/apigatewayv2/vpclink.ts +256 -0
  55. package/providers/aws/generated/resources/appsync/api.ts +486 -0
  56. package/providers/aws/generated/resources/appsync/apicache.ts +169 -0
  57. package/providers/aws/generated/resources/appsync/apikey.ts +245 -0
  58. package/providers/aws/generated/resources/appsync/channelnamespace.ts +444 -0
  59. package/providers/aws/generated/resources/appsync/datasource.ts +757 -0
  60. package/providers/aws/generated/resources/appsync/domainname.ts +355 -0
  61. package/providers/aws/generated/resources/appsync/domainnameapiassociation.ts +284 -0
  62. package/providers/aws/generated/resources/appsync/functionconfiguration.ts +448 -0
  63. package/providers/aws/generated/resources/appsync/graphqlapi.ts +1028 -0
  64. package/providers/aws/generated/resources/appsync/graphqlschema.ts +188 -0
  65. package/providers/aws/generated/resources/appsync/resolver.ts +514 -0
  66. package/providers/aws/generated/resources/appsync/sourceapiassociation.ts +429 -0
  67. package/providers/aws/generated/resources/certificatemanager/certificate.ts +211 -0
  68. package/providers/aws/generated/resources/cloudfront/cachepolicy.ts +352 -0
  69. package/providers/aws/generated/resources/cloudfront/distribution.ts +2477 -0
  70. package/providers/aws/generated/resources/cloudfront/function.ts +313 -0
  71. package/providers/aws/generated/resources/cloudfront/originaccesscontrol.ts +204 -0
  72. package/providers/aws/generated/resources/cloudfront/originrequestpolicy.ts +285 -0
  73. package/providers/aws/generated/resources/cloudfront/responseheaderspolicy.ts +591 -0
  74. package/providers/aws/generated/resources/cloudwatch/alarm.ts +4545 -0
  75. package/providers/aws/generated/resources/cloudwatch/compositealarm.ts +678 -0
  76. package/providers/aws/generated/resources/cloudwatch/dashboard.ts +229 -0
  77. package/providers/aws/generated/resources/cognito/identitypool.ts +419 -0
  78. package/providers/aws/generated/resources/cognito/identitypoolroleattachment.ts +288 -0
  79. package/providers/aws/generated/resources/cognito/userpool.ts +1372 -0
  80. package/providers/aws/generated/resources/cognito/userpoolclient.ts +555 -0
  81. package/providers/aws/generated/resources/cognito/userpooldomain.ts +223 -0
  82. package/providers/aws/generated/resources/cognito/userpoolgroup.ts +265 -0
  83. package/providers/aws/generated/resources/cognito/userpoolidentityprovider.ts +216 -0
  84. package/providers/aws/generated/resources/cognito/userpoolresourceserver.ts +233 -0
  85. package/providers/aws/generated/resources/dynamodb/globaltable.ts +1002 -0
  86. package/providers/aws/generated/resources/dynamodb/table.ts +1058 -0
  87. package/providers/aws/generated/resources/ec2/eip.ts +303 -0
  88. package/providers/aws/generated/resources/ec2/instance.ts +1756 -0
  89. package/providers/aws/generated/resources/ec2/internetgateway.ts +185 -0
  90. package/providers/aws/generated/resources/ec2/launchtemplate.ts +2218 -0
  91. package/providers/aws/generated/resources/ec2/natgateway.ts +509 -0
  92. package/providers/aws/generated/resources/ec2/route.ts +595 -0
  93. package/providers/aws/generated/resources/ec2/routetable.ts +207 -0
  94. package/providers/aws/generated/resources/ec2/securitygroup.ts +460 -0
  95. package/providers/aws/generated/resources/ec2/securitygroupegress.ts +332 -0
  96. package/providers/aws/generated/resources/ec2/securitygroupingress.ts +488 -0
  97. package/providers/aws/generated/resources/ec2/subnet.ts +492 -0
  98. package/providers/aws/generated/resources/ec2/subnetroutetableassociation.ts +228 -0
  99. package/providers/aws/generated/resources/ec2/volume.ts +267 -0
  100. package/providers/aws/generated/resources/ec2/volumeattachment.ts +268 -0
  101. package/providers/aws/generated/resources/ec2/vpc.ts +288 -0
  102. package/providers/aws/generated/resources/ec2/vpcendpoint.ts +660 -0
  103. package/providers/aws/generated/resources/ec2/vpcgatewayattachment.ts +290 -0
  104. package/providers/aws/generated/resources/ec2/vpcpeeringconnection.ts +310 -0
  105. package/providers/aws/generated/resources/ecr/repository.ts +627 -0
  106. package/providers/aws/generated/resources/ecs/cluster.ts +616 -0
  107. package/providers/aws/generated/resources/ecs/service.ts +2065 -0
  108. package/providers/aws/generated/resources/ecs/taskdefinition.ts +1848 -0
  109. package/providers/aws/generated/resources/elasticloadbalancingv2/listener.ts +1166 -0
  110. package/providers/aws/generated/resources/elasticloadbalancingv2/listenercertificate.ts +168 -0
  111. package/providers/aws/generated/resources/elasticloadbalancingv2/listenerrule.ts +1219 -0
  112. package/providers/aws/generated/resources/elasticloadbalancingv2/loadbalancer.ts +706 -0
  113. package/providers/aws/generated/resources/elasticloadbalancingv2/targetgroup.ts +699 -0
  114. package/providers/aws/generated/resources/events/apidestination.ts +314 -0
  115. package/providers/aws/generated/resources/events/archive.ts +316 -0
  116. package/providers/aws/generated/resources/events/connection.ts +609 -0
  117. package/providers/aws/generated/resources/events/endpoint.ts +551 -0
  118. package/providers/aws/generated/resources/events/eventbus.ts +261 -0
  119. package/providers/aws/generated/resources/events/eventbuspolicy.ts +343 -0
  120. package/providers/aws/generated/resources/events/rule.ts +1253 -0
  121. package/providers/aws/generated/resources/eventschemas/discoverer.ts +273 -0
  122. package/providers/aws/generated/resources/eventschemas/registry.ts +183 -0
  123. package/providers/aws/generated/resources/eventschemas/registrypolicy.ts +193 -0
  124. package/providers/aws/generated/resources/eventschemas/schema.ts +305 -0
  125. package/providers/aws/generated/resources/iam/accesskey.ts +12 -16
  126. package/providers/aws/generated/resources/iam/group.ts +13 -16
  127. package/providers/aws/generated/resources/iam/grouppolicy.ts +16 -20
  128. package/providers/aws/generated/resources/iam/instanceprofile.ts +2 -2
  129. package/providers/aws/generated/resources/iam/managedpolicy.ts +27 -36
  130. package/providers/aws/generated/resources/iam/oidcprovider.ts +52 -104
  131. package/providers/aws/generated/resources/iam/policy.ts +33 -90
  132. package/providers/aws/generated/resources/iam/role.ts +45 -60
  133. package/providers/aws/generated/resources/iam/rolepolicy.ts +16 -20
  134. package/providers/aws/generated/resources/iam/samlprovider.ts +72 -164
  135. package/providers/aws/generated/resources/iam/servercertificate.ts +73 -187
  136. package/providers/aws/generated/resources/iam/servicelinkedrole.ts +24 -40
  137. package/providers/aws/generated/resources/iam/user.ts +26 -32
  138. package/providers/aws/generated/resources/iam/userpolicy.ts +16 -20
  139. package/providers/aws/generated/resources/iam/usertogroupaddition.ts +2 -2
  140. package/providers/aws/generated/resources/iam/virtualmfadevice.ts +53 -97
  141. package/providers/aws/generated/resources/kms/alias.ts +225 -0
  142. package/providers/aws/generated/resources/kms/key.ts +33 -207
  143. package/providers/aws/generated/resources/kms/replicakey.ts +292 -0
  144. package/providers/aws/generated/resources/lambda/alias.ts +301 -0
  145. package/providers/aws/generated/resources/lambda/codesigningconfig.ts +414 -0
  146. package/providers/aws/generated/resources/lambda/eventinvokeconfig.ts +677 -0
  147. package/providers/aws/generated/resources/lambda/eventsourcemapping.ts +1798 -0
  148. package/providers/aws/generated/resources/lambda/function.ts +135 -181
  149. package/providers/aws/generated/resources/lambda/layerversion.ts +298 -0
  150. package/providers/aws/generated/resources/lambda/layerversionpermission.ts +233 -0
  151. package/providers/aws/generated/resources/lambda/permission.ts +13 -14
  152. package/providers/aws/generated/resources/lambda/url.ts +452 -0
  153. package/providers/aws/generated/resources/lambda/version.ts +349 -0
  154. package/providers/aws/generated/resources/pipes/pipe.ts +3801 -0
  155. package/providers/aws/generated/resources/rds/dbcluster.ts +1710 -0
  156. package/providers/aws/generated/resources/rds/dbinstance.ts +2248 -0
  157. package/providers/aws/generated/resources/rds/dbsubnetgroup.ts +270 -0
  158. package/providers/aws/generated/resources/route53/healthcheck.ts +648 -0
  159. package/providers/aws/generated/resources/route53/hostedzone.ts +430 -0
  160. package/providers/aws/generated/resources/route53/recordset.ts +249 -0
  161. package/providers/aws/generated/resources/route53/recordsetgroup.ts +263 -0
  162. package/providers/aws/generated/resources/s3/accesspoint.ts +616 -0
  163. package/providers/aws/generated/resources/s3/bucket.ts +1733 -1831
  164. package/providers/aws/generated/resources/s3/bucketpolicy.ts +214 -0
  165. package/providers/aws/generated/resources/scheduler/schedule.ts +1563 -0
  166. package/providers/aws/generated/resources/scheduler/schedulegroup.ts +351 -0
  167. package/providers/aws/generated/resources/secretsmanager/resourcepolicy.ts +242 -0
  168. package/providers/aws/generated/resources/secretsmanager/rotationschedule.ts +314 -0
  169. package/providers/aws/generated/resources/secretsmanager/secret.ts +327 -0
  170. package/providers/aws/generated/resources/secretsmanager/secrettargetattachment.ts +167 -0
  171. package/providers/aws/generated/resources/sns/subscription.ts +488 -0
  172. package/providers/aws/generated/resources/sns/topic.ts +60 -88
  173. package/providers/aws/generated/resources/sns/topicinlinepolicy.ts +169 -0
  174. package/providers/aws/generated/resources/sns/topicpolicy.ts +172 -0
  175. package/providers/aws/generated/resources/sqs/queue.ts +53 -82
  176. package/providers/aws/generated/resources/sqs/queueinlinepolicy.ts +163 -0
  177. package/providers/aws/generated/resources/sqs/queuepolicy.ts +172 -0
  178. package/providers/aws/generated/resources/ssm/association.ts +906 -0
  179. package/providers/aws/generated/resources/ssm/document.ts +472 -0
  180. package/providers/aws/generated/resources/ssm/maintenancewindow.ts +225 -0
  181. package/providers/aws/generated/resources/ssm/maintenancewindowtarget.ts +289 -0
  182. package/providers/aws/generated/resources/ssm/maintenancewindowtask.ts +497 -0
  183. package/providers/aws/generated/resources/ssm/parameter.ts +258 -0
  184. package/providers/aws/generated/resources/ssm/patchbaseline.ts +668 -0
  185. package/providers/aws/generated/resources/ssm/resourcedatasync.ts +465 -0
  186. package/providers/aws/generated/resources/ssm/resourcepolicy.ts +211 -0
  187. package/providers/aws/generated/resources/stepfunctions/activity.ts +237 -0
  188. package/providers/aws/generated/resources/stepfunctions/statemachine.ts +54 -41
  189. package/providers/aws/generated/resources/stepfunctions/statemachinealias.ts +361 -0
  190. package/providers/aws/generated/resources/stepfunctions/statemachineversion.ts +202 -0
  191. package/providers/aws/management/ec2/internetGateway.ts +129 -0
  192. package/providers/aws/management/ec2/resourceTags.ts +89 -0
  193. package/providers/aws/management/ec2/route.ts +254 -0
  194. package/providers/aws/management/ec2/routeTable.ts +138 -0
  195. package/providers/aws/management/ec2/subnet.ts +511 -0
  196. package/providers/aws/management/ec2/subnetRouteTableAssociation.ts +129 -0
  197. package/providers/aws/management/ec2/vpc.ts +466 -0
  198. package/providers/aws/management/ec2/vpcGatewayAttachment.ts +238 -0
  199. package/providers/aws/management/iam/role.ts +520 -0
  200. package/providers/aws/management/lambda/function.ts +651 -0
  201. package/providers/aws/management/resourcePolicies.ts +102 -0
  202. package/providers/aws/management/s3/bucket.ts +315 -0
  203. package/providers/aws/management/s3/bucketConfiguration.ts +1102 -0
  204. package/providers/aws/runtime.ts +17 -19
  205. package/src/core/resource/model.ts +13 -3
  206. package/src/core/resource/resourceCommandPolicy.ts +5 -1
  207. package/src/core/resource/resourceEntries.ts +193 -0
  208. package/src/core/resource/resourceLifecycle.ts +39 -23
  209. package/src/core/stack/planner.ts +78 -40
  210. package/src/core/stack/resourceStackLifecycle.ts +112 -18
  211. package/src/core/stack/resourceStackOperations.ts +18 -0
  212. package/src/core/stack/stackWorkflowRenderer.ts +12 -3
  213. package/src/core/state/stateStore.ts +47 -10
  214. package/src/providers/providerRuntimeLayer.ts +1 -1
  215. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5 -5055
  216. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5 -5055
  217. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsValidators.ts +5058 -0
  218. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +5 -2443
  219. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +5 -2443
  220. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsValidators.ts +2446 -0
  221. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +5 -23
  222. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +5 -23
  223. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsValidators.ts +26 -0
  224. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +5 -63
  225. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +5 -63
  226. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsValidators.ts +66 -0
  227. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +11 -121
  228. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +11 -121
  229. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsValidators.ts +130 -0
  230. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +17 -21
  231. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +4 -12
  232. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsValidators.ts +109 -0
  233. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +3 -2
  234. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +3 -2
  235. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsValidators.ts +11 -0
  236. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +18 -108
  237. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +18 -108
  238. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsValidators.ts +122 -0
  239. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +5 -30
  240. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +5 -30
  241. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsValidators.ts +34 -0
  242. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +5 -110
  243. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +5 -110
  244. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsValidators.ts +113 -0
  245. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +42 -218
  246. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +63 -336
  247. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsValidators.ts +604 -0
  248. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +11 -123
  249. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +11 -123
  250. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsValidators.ts +133 -0
  251. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +25 -322
  252. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +20 -317
  253. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsValidators.ts +359 -0
  254. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +139 -4161
  255. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +181 -4265
  256. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsValidators.ts +4529 -0
  257. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +5 -86
  258. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +5 -86
  259. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsValidators.ts +89 -0
  260. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +5 -151
  261. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +5 -151
  262. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsValidators.ts +154 -0
  263. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +34 -169
  264. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +24 -159
  265. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsValidators.ts +235 -0
  266. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +46 -644
  267. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +41 -639
  268. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsValidators.ts +691 -0
  269. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +5 -46
  270. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +5 -46
  271. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsValidators.ts +49 -0
  272. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +5 -160
  273. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +5 -160
  274. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsValidators.ts +163 -0
  275. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +8 -19
  276. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +8 -19
  277. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsValidators.ts +28 -0
  278. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +5 -55
  279. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +5 -55
  280. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsValidators.ts +58 -0
  281. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +36 -121
  282. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +24 -111
  283. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsValidators.ts +183 -0
  284. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +5 -119
  285. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +5 -119
  286. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsValidators.ts +122 -0
  287. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +5 -45
  288. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +5 -45
  289. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsValidators.ts +48 -0
  290. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +5 -195
  291. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +5 -195
  292. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsValidators.ts +198 -0
  293. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +5 -97
  294. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +5 -97
  295. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsValidators.ts +100 -0
  296. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +69 -1282
  297. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +43 -1259
  298. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsValidators.ts +1417 -0
  299. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +32 -126
  300. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +27 -121
  301. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsValidators.ts +172 -0
  302. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +32 -2103
  303. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +32 -2103
  304. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsValidators.ts +2134 -0
  305. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +37 -2065
  306. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +32 -2060
  307. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsValidators.ts +2196 -0
  308. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +56 -97
  309. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +98 -251
  310. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsValidators.ts +1024 -0
  311. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +14 -89
  312. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +14 -89
  313. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsValidators.ts +100 -0
  314. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +5 -246
  315. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +5 -246
  316. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsValidators.ts +249 -0
  317. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +5 -115
  318. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +5 -115
  319. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsValidators.ts +118 -0
  320. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +65 -5205
  321. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +59 -5200
  322. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsValidators.ts +5124 -0
  323. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +101 -1508
  324. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +95 -1598
  325. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsValidators.ts +2039 -0
  326. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +5 -2272
  327. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +5 -2272
  328. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsValidators.ts +2276 -0
  329. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +5 -37
  330. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +5 -37
  331. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsValidators.ts +40 -0
  332. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +194 -1425
  333. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +194 -1425
  334. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsValidators.ts +1580 -0
  335. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +5 -265
  336. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +5 -265
  337. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsValidators.ts +268 -0
  338. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +14 -28
  339. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +14 -28
  340. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsValidators.ts +42 -0
  341. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +26 -96
  342. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +26 -96
  343. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsValidators.ts +117 -0
  344. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +35 -314
  345. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +35 -314
  346. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsValidators.ts +330 -0
  347. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +5 -33
  348. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +5 -33
  349. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsValidators.ts +37 -0
  350. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +16 -43
  351. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +9 -39
  352. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsValidators.ts +105 -0
  353. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +5 -358
  354. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +5 -358
  355. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsValidators.ts +361 -0
  356. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +18 -66
  357. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +11 -61
  358. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsValidators.ts +100 -0
  359. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +73 -366
  360. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +49 -345
  361. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsValidators.ts +569 -0
  362. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +5 -39
  363. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +5 -39
  364. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsValidators.ts +42 -0
  365. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +5 -76
  366. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +5 -76
  367. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsValidators.ts +79 -0
  368. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +5 -27
  369. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +5 -27
  370. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsValidators.ts +30 -0
  371. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +11 -30
  372. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +11 -30
  373. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsValidators.ts +41 -0
  374. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +5 -1356
  375. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +5 -1356
  376. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsValidators.ts +1359 -0
  377. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +35 -2767
  378. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +35 -2767
  379. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsValidators.ts +2761 -0
  380. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +5 -170
  381. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +5 -170
  382. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsValidators.ts +173 -0
  383. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +5 -549
  384. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +5 -549
  385. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsValidators.ts +552 -0
  386. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +32 -143
  387. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +27 -138
  388. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsValidators.ts +187 -0
  389. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +99 -1668
  390. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +70 -1644
  391. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsValidators.ts +1872 -0
  392. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +123 -497
  393. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +118 -755
  394. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsValidators.ts +1902 -0
  395. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +23 -301
  396. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +11 -291
  397. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsValidators.ts +359 -0
  398. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +5 -113
  399. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +5 -113
  400. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsValidators.ts +116 -0
  401. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +5 -159
  402. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +5 -159
  403. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsValidators.ts +162 -0
  404. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +5 -3321
  405. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +5 -3321
  406. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsValidators.ts +3324 -0
  407. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +73 -698
  408. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +23 -646
  409. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsValidators.ts +931 -0
  410. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +5 -292
  411. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +5 -292
  412. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsValidators.ts +295 -0
  413. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +8 -19
  414. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +8 -19
  415. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsValidators.ts +29 -0
  416. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +5 -47
  417. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +5 -47
  418. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsValidators.ts +51 -0
  419. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +40 -629
  420. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +40 -629
  421. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsValidators.ts +655 -0
  422. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +5 -2387
  423. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +5 -2387
  424. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsValidators.ts +2391 -0
  425. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +11 -50
  426. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +11 -50
  427. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsValidators.ts +58 -0
  428. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +11 -21
  429. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +11 -21
  430. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsValidators.ts +34 -0
  431. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +5 -36
  432. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +5 -36
  433. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsValidators.ts +40 -0
  434. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +5 -36
  435. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +5 -36
  436. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsValidators.ts +40 -0
  437. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +5 -276
  438. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +5 -275
  439. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsValidators.ts +279 -0
  440. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +5 -73
  441. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +5 -73
  442. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsValidators.ts +77 -0
  443. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +5 -340
  444. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +5 -340
  445. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsValidators.ts +344 -0
  446. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +5 -137
  447. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +5 -137
  448. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsValidators.ts +141 -0
  449. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +5 -45
  450. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +5 -45
  451. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsValidators.ts +48 -0
  452. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +144 -3036
  453. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +279 -3175
  454. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsValidators.ts +3457 -0
  455. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +5 -883
  456. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +5 -882
  457. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsValidators.ts +886 -0
  458. package/src/providers/stripe/client/stripeClient.ts +11 -15
  459. package/providers/aws/generated/managementRegistry.ts +0 -136
  460. package/providers/aws/management/mappings/iam/group.ts +0 -63
  461. package/providers/aws/management/mappings/iam/iamIdentity.ts +0 -41
  462. package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +0 -8
  463. package/providers/aws/management/mappings/iam/inlinePolicies.ts +0 -159
  464. package/providers/aws/management/mappings/iam/instanceProfile.ts +0 -77
  465. package/providers/aws/management/mappings/iam/oidcProvider.ts +0 -94
  466. package/providers/aws/management/mappings/iam/role.ts +0 -74
  467. package/providers/aws/management/mappings/iam/samlProvider.ts +0 -98
  468. package/providers/aws/management/mappings/iam/serverCertificate.ts +0 -72
  469. package/providers/aws/management/mappings/iam/user.ts +0 -61
  470. package/providers/aws/management/mappings/iam/userToGroupAddition.ts +0 -75
  471. package/providers/aws/management/operations/iam/accessKey.ts +0 -206
  472. package/providers/aws/management/operations/iam/managedPolicy.ts +0 -491
  473. package/providers/aws/management/operations/iam/policy.ts +0 -476
  474. package/providers/aws/management/operations/iam/serviceLinkedRole.ts +0 -172
  475. package/providers/aws/management/operations/iam/virtualMfaDevice.ts +0 -253
  476. package/providers/aws/management/resourceAssociationConfiguration.ts +0 -112
  477. package/providers/aws/management/resourceAssociationRegistration.ts +0 -349
  478. package/providers/aws/management/resourceAssociations.ts +0 -168
  479. package/providers/aws/management/resourceConfiguration.ts +0 -119
  480. package/providers/aws/management/resourceLifecycleRegistration.ts +0 -540
  481. package/providers/aws/management/resourceManagementModule.ts +0 -31
  482. package/providers/aws/management/resourceManagementRegistry.ts +0 -62
  483. package/providers/aws/management/resourceMapping.ts +0 -84
  484. package/providers/aws/management/resourceOperation.ts +0 -134
  485. package/providers/aws/management/resourceTagOperations.ts +0 -108
  486. package/providers/aws/management/resourceTiming.ts +0 -4
  487. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +0 -35
  488. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +0 -35
  489. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +0 -44
  490. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +0 -35
  491. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +0 -35
  492. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +0 -35
  493. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +0 -35
  494. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +0 -35
  495. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +0 -35
  496. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +0 -35
  497. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +0 -35
  498. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +0 -35
  499. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +0 -68
  500. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +0 -35
  501. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +0 -35
  502. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +0 -35
  503. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +0 -35
  504. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +0 -35
  505. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +0 -44
  506. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +0 -35
  507. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +0 -35
  508. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +0 -35
  509. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +0 -35
  510. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +0 -35
  511. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +0 -35
  512. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +0 -35
  513. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +0 -35
  514. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +0 -35
  515. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +0 -44
  516. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +0 -35
  517. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +0 -35
  518. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +0 -35
  519. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +0 -35
  520. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +0 -35
  521. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +0 -35
  522. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +0 -35
  523. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +0 -35
  524. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +0 -35
  525. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +0 -59
  526. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +0 -35
  527. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +0 -35
  528. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +0 -35
  529. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +0 -35
  530. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +0 -35
  531. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +0 -35
  532. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +0 -111
  533. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +0 -35
  534. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +0 -77
  535. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +0 -35
  536. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +0 -35
  537. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +0 -35
  538. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +0 -35
  539. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +0 -50
  540. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +0 -35
  541. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +0 -35
  542. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +0 -83
  543. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +0 -35
  544. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +0 -50
  545. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +0 -35
  546. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +0 -74
  547. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +0 -35
  548. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +0 -65
  549. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +0 -35
  550. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +0 -79
  551. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +0 -35
  552. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +0 -35
  553. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +0 -35
  554. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +0 -35
  555. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +0 -44
  556. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +0 -35
  557. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +0 -35
  558. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +0 -44
  559. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +0 -35
  560. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +0 -35
  561. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +0 -35
  562. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +0 -35
  563. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +0 -35
  564. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +0 -35
  565. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +0 -35
  566. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +0 -35
  567. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +0 -35
  568. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +0 -35
  569. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +0 -35
  570. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +0 -35
  571. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +0 -35
  572. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +0 -44
  573. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +0 -35
  574. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +0 -35
  575. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +0 -35
  576. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +0 -39
  577. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +0 -35
  578. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +0 -35
  579. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +0 -35
  580. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +0 -35
  581. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +0 -35
  582. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +0 -35
  583. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +0 -56
  584. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +0 -35
  585. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +0 -35
  586. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +0 -35
  587. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +0 -44
  588. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +0 -35
  589. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +0 -56
  590. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +0 -35
  591. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +0 -35
  592. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +0 -35
  593. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +0 -35
  594. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +0 -35
  595. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +0 -35
  596. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +0 -38
  597. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +0 -39
  598. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +0 -38
  599. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +0 -154
  600. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +0 -51
  601. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +0 -120
  602. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +0 -32
  603. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +0 -37
  604. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +0 -125
  605. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +0 -34
  606. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +0 -34
  607. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +0 -34
  608. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +0 -34
  609. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +0 -32
  610. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +0 -37
  611. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +0 -34
  612. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +0 -130
  613. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +0 -34
  614. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +0 -39
  615. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +0 -89
  616. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +0 -34
  617. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +0 -30
  618. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +0 -34
  619. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +0 -34
  620. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +0 -34
  621. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +0 -34
  622. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +0 -97
  623. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +0 -34
  624. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +0 -34
  625. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +0 -37
  626. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +0 -34
  627. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +0 -97
  628. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +0 -34
  629. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +0 -34
  630. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +0 -37
  631. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +0 -53
  632. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +0 -42
  633. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +0 -63
  634. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +0 -94
  635. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +0 -34
@@ -0,0 +1,2477 @@
1
+ // Generated from the CloudFormation Registry resource schema. Do not edit.
2
+ // biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's generated regular expressions.
3
+ import { Effect, Schema } from "effect";
4
+ import {
5
+ annotateResourceSchema,
6
+ ResourceEntity,
7
+ ResourceGraphBuilder,
8
+ type ResourceKey,
9
+ ResourceReferenceSchema,
10
+ ResourceSchemaAnnotationSchema,
11
+ } from "nomoss/core";
12
+ import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
13
+
14
+ type ResourceInputItems = globalThis.ReadonlyArray<string>;
15
+
16
+ const ResourceInputItems = Schema.Array(Schema.String).annotate({
17
+ description:
18
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.",
19
+ });
20
+
21
+ type ResourceInputItems_1 = globalThis.ReadonlyArray<string>;
22
+
23
+ const ResourceInputItems_1 = Schema.Array(Schema.String).annotate({
24
+ description:
25
+ "An alias for the CF distribution's domain name.\n This property is legacy. We recommend that you use [Aliases](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases) instead.",
26
+ });
27
+
28
+ type ResourceInputItems_2 = globalThis.ReadonlyArray<string>;
29
+
30
+ const ResourceInputItems_2 = Schema.Array(Schema.String).annotate({
31
+ description:
32
+ "A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:\n + CloudFront forwards only ``GET`` and ``HEAD`` requests.\n + CloudFront forwards only ``GET``, ``HEAD``, and ``OPTIONS`` requests.\n + CloudFront forwards ``GET, HEAD, OPTIONS, PUT, PATCH, POST``, and ``DELETE`` requests.\n \n If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin.",
33
+ });
34
+
35
+ type ResourceInputItems_3 = globalThis.ReadonlyArray<string>;
36
+
37
+ const ResourceInputItems_3 = Schema.Array(Schema.String).annotate({
38
+ description:
39
+ "A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices:\n + CloudFront caches responses to ``GET`` and ``HEAD`` requests.\n + CloudFront caches responses to ``GET``, ``HEAD``, and ``OPTIONS`` requests.\n \n If you pick the second choice for your Amazon S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers, and Origin headers for the responses to be cached correctly.",
40
+ });
41
+
42
+ interface Cookies {
43
+ readonly Forward: string;
44
+ readonly WhitelistedNames?: globalThis.ReadonlyArray<string>;
45
+ }
46
+
47
+ const Cookies = Schema.Struct({
48
+ Forward: Schema.String.annotate({
49
+ description:
50
+ "This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.\n If you want to include cookies in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide*.\n If you want to send cookies to the origin but not include them in the cache key, use origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide*.\n Specifies which cookies to forward to the origin for this cache behavior: all, none, or the list of cookies specified in the ``WhitelistedNames`` complex type.\n Amazon S3 doesn't process cookies. When the cache behavior is forwarding requests to an Amazon S3 origin, specify none for the ``Forward`` element.",
51
+ }),
52
+ WhitelistedNames: Schema.optionalKey(
53
+ Schema.Array(Schema.String).annotate({
54
+ description:
55
+ "This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.\n If you want to include cookies in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide*.\n If you want to send cookies to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide*.\n Required if you specify ``whitelist`` for the value of ``Forward``. A complex type that specifies how many different cookies you want CloudFront to forward to the origin for this cache behavior and, if you want to forward selected cookies, the names of those cookies.\n If you specify ``all`` or ``none`` for the value of ``Forward``, omit ``WhitelistedNames``. If you change the value of ``Forward`` from ``whitelist`` to ``all`` or ``none`` and you don't delete the ``WhitelistedNames`` element and its child elements, CloudFront deletes them automatically.\n For the current limit on the number of cookie names that you can whitelist for each cache behavior, see [CloudFront Limits](https://docs.aws.amazon.com/general/latest/gr/xrefaws_service_limits.html#limits_cloudfront) in the *General Reference*.",
56
+ }),
57
+ ),
58
+ }).annotate({
59
+ description:
60
+ "This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.\n If you want to include cookies in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide*.\n If you want to send cookies to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide*.\n A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see [How CloudFront Forwards, Caches, and Logs Cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html) in the *Amazon CloudFront Developer Guide*.",
61
+ identifier: "Cookies",
62
+ });
63
+
64
+ interface ForwardedValues {
65
+ readonly Cookies?: Cookies;
66
+ readonly Headers?: globalThis.ReadonlyArray<string>;
67
+ readonly QueryString: boolean;
68
+ readonly QueryStringCacheKeys?: globalThis.ReadonlyArray<string>;
69
+ }
70
+
71
+ const ForwardedValues = Schema.Struct({
72
+ Cookies: Schema.optionalKey(Cookies),
73
+ Headers: Schema.optionalKey(
74
+ Schema.Array(Schema.String).annotate({
75
+ description:
76
+ "This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.\n If you want to include headers in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide*.\n If you want to send headers to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide*.\n A complex type that specifies the ``Headers``, if any, that you want CloudFront to forward to the origin for this cache behavior (whitelisted headers). For the headers that you specify, CloudFront also caches separate versions of a specified object that is based on the header values in viewer requests.\n For more information, see [Caching Content Based on Request Headers](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html) in the *Amazon CloudFront Developer Guide*.",
77
+ }),
78
+ ),
79
+ QueryString: Schema.Boolean.annotate({
80
+ description:
81
+ "This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.\n If you want to include query strings in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide*.\n If you want to send query strings to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide*.\n Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior and cache based on the query string parameters. CloudFront behavior depends on the value of ``QueryString`` and on the values that you specify for ``QueryStringCacheKeys``, if any:\n If you specify true for ``QueryString`` and you don't specify any values for ``QueryStringCacheKeys``, CloudFront forwards all query string parameters to the origin and caches based on all query string parameters. Depending on how many query string parameters and values you have, this can adversely affect performance because CloudFront must forward more requests to the origin.\n If you specify true for ``QueryString`` and you specify one or more values for ``QueryStringCacheKeys``, CloudFront forwards all query string parameters to the origin, but it only caches based on the query string parameters that you specify.\n If you specify false for ``QueryString``, CloudFront doesn't forward any query string parameters to the origin, and doesn't cache based on query string parameters.\n For more information, see [Configuring CloudFront to Cache Based on Query String Parameters](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.html) in the *Amazon CloudFront Developer Guide*.",
82
+ }),
83
+ QueryStringCacheKeys: Schema.optionalKey(
84
+ Schema.Array(Schema.String).annotate({
85
+ description:
86
+ "This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.\n If you want to include query strings in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide*.\n If you want to send query strings to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide*.\n A complex type that contains information about the query string parameters that you want CloudFront to use for caching for this cache behavior.",
87
+ }),
88
+ ),
89
+ }).annotate({
90
+ description:
91
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.\n If you want to include values in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide*.\n If you want to send values to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide*.\n A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.",
92
+ identifier: "ForwardedValues",
93
+ });
94
+
95
+ interface FunctionAssociation {
96
+ readonly EventType?: string;
97
+ readonly FunctionARN?:
98
+ | ResourceEntity<{
99
+ readonly provider: "aws";
100
+ readonly service: "cloudfront";
101
+ readonly resource: "function";
102
+ }>
103
+ | string;
104
+ }
105
+
106
+ const FunctionAssociation = Schema.Struct({
107
+ EventType: Schema.optionalKey(
108
+ Schema.String.annotate({
109
+ description:
110
+ "The event type of the function, either ``viewer-request`` or ``viewer-response``. You cannot use origin-facing event types (``origin-request`` and ``origin-response``) with a CloudFront function.",
111
+ }),
112
+ ),
113
+ FunctionARN: Schema.optionalKey(
114
+ Schema.Union([
115
+ Schema.Union([
116
+ ResourceReferenceSchema(
117
+ Schema.Struct({
118
+ provider: Schema.Literal("aws"),
119
+ service: Schema.Literal("cloudfront"),
120
+ resource: Schema.Literal("function"),
121
+ }),
122
+ {
123
+ value: null,
124
+ outputs: [
125
+ {
126
+ source: ["FunctionARN"],
127
+ target: [],
128
+ },
129
+ ],
130
+ },
131
+ ).annotate({ expected: "ResourceEntity" }),
132
+ ]),
133
+ Schema.String.annotate({
134
+ description: "The Amazon Resource Name (ARN) of the function.",
135
+ }),
136
+ ]),
137
+ ),
138
+ }).annotate({
139
+ description:
140
+ "A CloudFront function that is associated with a cache behavior in a CloudFront distribution.",
141
+ identifier: "FunctionAssociation",
142
+ });
143
+
144
+ interface GrpcConfig {
145
+ readonly Enabled: boolean;
146
+ }
147
+
148
+ const GrpcConfig = Schema.Struct({
149
+ Enabled: Schema.Boolean.annotate({
150
+ description:
151
+ "Enables your CloudFront distribution to receive gRPC requests and to proxy them directly to your origins.",
152
+ }),
153
+ }).annotate({
154
+ description:
155
+ "Amazon CloudFront supports gRPC, an open-source remote procedure call (RPC) framework built on HTTP/2. gRPC offers bi-directional streaming and binary protocol that buffers payloads, making it suitable for applications that require low latency communications.\n To enable your distribution to handle gRPC requests, you must include HTTP/2 as one of the supported ``HTTP`` versions and allow ``HTTP`` methods, including ``POST``.\n For more information, see [Using gRPC with CloudFront distributions](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-using-grpc.html) in the *Amazon CloudFront Developer Guide*.",
156
+ identifier: "GrpcConfig",
157
+ });
158
+
159
+ interface LambdaFunctionAssociation {
160
+ readonly EventType?: string;
161
+ readonly IncludeBody?: boolean;
162
+ readonly LambdaFunctionARN?:
163
+ | ResourceEntity<{
164
+ readonly provider: "aws";
165
+ readonly service: "lambda";
166
+ readonly resource: "version";
167
+ }>
168
+ | string;
169
+ }
170
+
171
+ const LambdaFunctionAssociation = Schema.Struct({
172
+ EventType: Schema.optionalKey(
173
+ Schema.String.annotate({
174
+ description:
175
+ "Specifies the event type that triggers a Lambda@Edge function invocation. You can specify the following values:\n + ``viewer-request``: The function executes when CloudFront receives a request from a viewer and before it checks to see whether the requested object is in the edge cache.\n + ``origin-request``: The function executes only when CloudFront sends a request to your origin. When the requested object is in the edge cache, the function doesn't execute.\n + ``origin-response``: The function executes after CloudFront receives a response from the origin and before it caches the object in the response. When the requested object is in the edge cache, the function doesn't execute.\n + ``viewer-response``: The function executes before CloudFront returns the requested object to the viewer. The function executes regardless of whether the object was already in the edge cache.\n If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.",
176
+ }),
177
+ ),
178
+ IncludeBody: Schema.optionalKey(
179
+ Schema.Boolean.annotate({
180
+ description:
181
+ "A flag that allows a Lambda@Edge function to have read access to the body content. For more information, see [Accessing the Request Body by Choosing the Include Body Option](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html) in the Amazon CloudFront Developer Guide.",
182
+ }),
183
+ ),
184
+ LambdaFunctionARN: Schema.optionalKey(
185
+ Schema.Union([
186
+ Schema.Union([
187
+ ResourceReferenceSchema(
188
+ Schema.Struct({
189
+ provider: Schema.Literal("aws"),
190
+ service: Schema.Literal("lambda"),
191
+ resource: Schema.Literal("version"),
192
+ }),
193
+ {
194
+ value: null,
195
+ outputs: [
196
+ {
197
+ source: ["FunctionArn"],
198
+ target: [],
199
+ },
200
+ ],
201
+ },
202
+ ).annotate({ expected: "ResourceEntity" }),
203
+ ]),
204
+ Schema.String.annotate({
205
+ description:
206
+ "The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an alias or $LATEST.",
207
+ }),
208
+ ]),
209
+ ),
210
+ }).annotate({
211
+ description:
212
+ "A complex type that contains a Lambda@Edge function association.",
213
+ identifier: "LambdaFunctionAssociation",
214
+ });
215
+
216
+ type ResourceInputItems_4 = globalThis.ReadonlyArray<string>;
217
+
218
+ const ResourceInputItems_4 = Schema.Array(Schema.String).annotate({
219
+ description:
220
+ "We recommend using ``TrustedKeyGroups`` instead of ``TrustedSigners``.\n This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n A list of AWS-account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.\n When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in the trusted signer's AWS-account. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see [Serving private content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide*.",
221
+ });
222
+
223
+ interface CacheBehavior {
224
+ readonly AllowedMethods?: ResourceInputItems_2;
225
+ readonly CachePolicyId?:
226
+ | ResourceEntity<{
227
+ readonly provider: "aws";
228
+ readonly service: "cloudfront";
229
+ readonly resource: "cachepolicy";
230
+ }>
231
+ | string;
232
+ readonly CachedMethods?: ResourceInputItems_3;
233
+ readonly Compress?: boolean;
234
+ readonly DefaultTTL?: number;
235
+ readonly FieldLevelEncryptionId?: string;
236
+ readonly ForwardedValues?: ForwardedValues;
237
+ readonly FunctionAssociations?: globalThis.ReadonlyArray<FunctionAssociation>;
238
+ readonly GrpcConfig?: GrpcConfig;
239
+ readonly LambdaFunctionAssociations?: globalThis.ReadonlyArray<LambdaFunctionAssociation>;
240
+ readonly MaxTTL?: number;
241
+ readonly MinTTL?: number;
242
+ readonly OriginRequestPolicyId?:
243
+ | ResourceEntity<{
244
+ readonly provider: "aws";
245
+ readonly service: "cloudfront";
246
+ readonly resource: "originrequestpolicy";
247
+ }>
248
+ | string;
249
+ readonly PathPattern: string;
250
+ readonly RealtimeLogConfigArn?: string;
251
+ readonly ResponseHeadersPolicyId?:
252
+ | ResourceEntity<{
253
+ readonly provider: "aws";
254
+ readonly service: "cloudfront";
255
+ readonly resource: "responseheaderspolicy";
256
+ }>
257
+ | string;
258
+ readonly SmoothStreaming?: boolean;
259
+ readonly TargetOriginId: string;
260
+ readonly TrustedKeyGroups?: globalThis.ReadonlyArray<
261
+ | ResourceEntity<{
262
+ readonly provider: "aws";
263
+ readonly service: "cloudfront";
264
+ readonly resource: "keygroup";
265
+ }>
266
+ | string
267
+ >;
268
+ readonly TrustedSigners?: ResourceInputItems_4;
269
+ readonly ViewerProtocolPolicy: string;
270
+ }
271
+
272
+ const CacheBehavior = Schema.Struct({
273
+ AllowedMethods: Schema.optionalKey(ResourceInputItems_2),
274
+ CachePolicyId: Schema.optionalKey(
275
+ Schema.Union([
276
+ Schema.Union([
277
+ ResourceReferenceSchema(
278
+ Schema.Struct({
279
+ provider: Schema.Literal("aws"),
280
+ service: Schema.Literal("cloudfront"),
281
+ resource: Schema.Literal("cachepolicy"),
282
+ }),
283
+ {
284
+ value: null,
285
+ outputs: [
286
+ {
287
+ source: ["Id"],
288
+ target: [],
289
+ },
290
+ ],
291
+ },
292
+ ).annotate({ expected: "ResourceEntity" }),
293
+ ]),
294
+ Schema.String.annotate({
295
+ description:
296
+ "The unique identifier of the cache policy that is attached to this cache behavior. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n A ``CacheBehavior`` must include either a ``CachePolicyId`` or ``ForwardedValues``. We recommend that you use a ``CachePolicyId``.",
297
+ }),
298
+ ]),
299
+ ),
300
+ CachedMethods: Schema.optionalKey(ResourceInputItems_3),
301
+ Compress: Schema.optionalKey(
302
+ Schema.Boolean.annotate({
303
+ description:
304
+ "Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true; if not, specify false. For more information, see [Serving Compressed Files](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) in the *Amazon CloudFront Developer Guide*.",
305
+ }),
306
+ ),
307
+ DefaultTTL: Schema.optionalKey(
308
+ Schema.Number.annotate({
309
+ description:
310
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use the ``DefaultTTL`` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n The default amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as ``Cache-Control max-age``, ``Cache-Control s-maxage``, and ``Expires`` to objects. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.",
311
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
312
+ ),
313
+ FieldLevelEncryptionId: Schema.optionalKey(
314
+ Schema.String.annotate({
315
+ description:
316
+ "The value of ``ID`` for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for this cache behavior.",
317
+ }),
318
+ ),
319
+ ForwardedValues: Schema.optionalKey(ForwardedValues),
320
+ FunctionAssociations: Schema.optionalKey(
321
+ Schema.Array(FunctionAssociation).annotate({
322
+ description:
323
+ "A list of CloudFront functions that are associated with this cache behavior. CloudFront functions must be published to the ``LIVE`` stage to associate them with a cache behavior.",
324
+ }),
325
+ ),
326
+ GrpcConfig: Schema.optionalKey(GrpcConfig),
327
+ LambdaFunctionAssociations: Schema.optionalKey(
328
+ Schema.Array(LambdaFunctionAssociation).annotate({
329
+ description:
330
+ "A complex type that contains zero or more Lambda@Edge function associations for a cache behavior.",
331
+ }),
332
+ ),
333
+ MaxTTL: Schema.optionalKey(
334
+ Schema.Number.annotate({
335
+ description:
336
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use the ``MaxTTL`` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n The maximum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as ``Cache-Control max-age``, ``Cache-Control s-maxage``, and ``Expires`` to objects. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.",
337
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
338
+ ),
339
+ MinTTL: Schema.optionalKey(
340
+ Schema.Number.annotate({
341
+ description:
342
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use the ``MinTTL`` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.\n You must specify ``0`` for ``MinTTL`` if you configure CloudFront to forward all headers to your origin (under ``Headers``, if you specify ``1`` for ``Quantity`` and ``*`` for ``Name``).",
343
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
344
+ ),
345
+ OriginRequestPolicyId: Schema.optionalKey(
346
+ Schema.Union([
347
+ Schema.Union([
348
+ ResourceReferenceSchema(
349
+ Schema.Struct({
350
+ provider: Schema.Literal("aws"),
351
+ service: Schema.Literal("cloudfront"),
352
+ resource: Schema.Literal("originrequestpolicy"),
353
+ }),
354
+ {
355
+ value: null,
356
+ outputs: [
357
+ {
358
+ source: ["Id"],
359
+ target: [],
360
+ },
361
+ ],
362
+ },
363
+ ).annotate({ expected: "ResourceEntity" }),
364
+ ]),
365
+ Schema.String.annotate({
366
+ description:
367
+ "The unique identifier of the origin request policy that is attached to this cache behavior. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) or [Using the managed origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) in the *Amazon CloudFront Developer Guide*.",
368
+ }),
369
+ ]),
370
+ ),
371
+ PathPattern: Schema.String.annotate({
372
+ description:
373
+ "The pattern (for example, ``images/*.jpg``) that specifies which requests to apply the behavior to. When CloudFront receives a viewer request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution.\n You can optionally include a slash (``/``) at the beginning of the path pattern. For example, ``/images/*.jpg``. CloudFront behavior is the same with or without the leading ``/``.\n The path pattern for the default cache behavior is ``*`` and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.\n For more information, see [Path Pattern](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesPathPattern) in the *Amazon CloudFront Developer Guide*.",
374
+ }),
375
+ RealtimeLogConfigArn: Schema.optionalKey(
376
+ Schema.String.annotate({
377
+ description:
378
+ "The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see [Real-time logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html) in the *Amazon CloudFront Developer Guide*.",
379
+ }),
380
+ ),
381
+ ResponseHeadersPolicyId: Schema.optionalKey(
382
+ Schema.Union([
383
+ Schema.Union([
384
+ ResourceReferenceSchema(
385
+ Schema.Struct({
386
+ provider: Schema.Literal("aws"),
387
+ service: Schema.Literal("cloudfront"),
388
+ resource: Schema.Literal("responseheaderspolicy"),
389
+ }),
390
+ {
391
+ value: null,
392
+ outputs: [
393
+ {
394
+ source: ["Id"],
395
+ target: [],
396
+ },
397
+ ],
398
+ },
399
+ ).annotate({ expected: "ResourceEntity" }),
400
+ ]),
401
+ Schema.String.annotate({
402
+ description: "The identifier for a response headers policy.",
403
+ }),
404
+ ]),
405
+ ),
406
+ SmoothStreaming: Schema.optionalKey(
407
+ Schema.Boolean.annotate({
408
+ description:
409
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify ``true``; if not, specify ``false``. If you specify ``true`` for ``SmoothStreaming``, you can still distribute other content using this cache behavior if the content matches the value of ``PathPattern``.",
410
+ }),
411
+ ),
412
+ TargetOriginId: Schema.String.annotate({
413
+ description:
414
+ "The value of ``ID`` for the origin that you want CloudFront to route requests to when they match this cache behavior.",
415
+ }),
416
+ TrustedKeyGroups: Schema.optionalKey(
417
+ Schema.Array(
418
+ Schema.Union([
419
+ Schema.Union([
420
+ ResourceReferenceSchema(
421
+ Schema.Struct({
422
+ provider: Schema.Literal("aws"),
423
+ service: Schema.Literal("cloudfront"),
424
+ resource: Schema.Literal("keygroup"),
425
+ }),
426
+ {
427
+ value: null,
428
+ outputs: [
429
+ {
430
+ source: ["Id"],
431
+ target: [],
432
+ },
433
+ ],
434
+ },
435
+ ).annotate({ expected: "ResourceEntity" }),
436
+ ]),
437
+ Schema.String,
438
+ ]),
439
+ ).annotate({
440
+ description:
441
+ "A list of key groups that CloudFront can use to validate signed URLs or signed cookies.\n When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see [Serving private content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide*.",
442
+ }),
443
+ ),
444
+ TrustedSigners: Schema.optionalKey(ResourceInputItems_4),
445
+ ViewerProtocolPolicy: Schema.String.annotate({
446
+ description:
447
+ "The protocol that viewers can use to access the files in the origin specified by ``TargetOriginId`` when a request matches the path pattern in ``PathPattern``. You can specify the following options:\n + ``allow-all``: Viewers can use HTTP or HTTPS.\n + ``redirect-to-https``: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.\n + ``https-only``: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).\n \n For more information about requiring the HTTPS protocol, see [Requiring HTTPS Between Viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html) in the *Amazon CloudFront Developer Guide*.\n The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects' cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see [Managing Cache Expiration](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.",
448
+ }),
449
+ }).annotate({
450
+ description:
451
+ "A complex type that describes how CloudFront processes requests.\n You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to serve objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin is never used.\n For the current quota (formerly known as limit) on the number of cache behaviors that you can add to a distribution, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) in the *Amazon CloudFront Developer Guide*.\n If you don't want to specify any cache behaviors, include only an empty ``CacheBehaviors`` element. Don't specify an empty individual ``CacheBehavior`` element, because this is invalid. For more information, see [CacheBehaviors](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehaviors.html). \n To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty ``CacheBehaviors`` element.\n To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution.\n If your minimum TTL is greater than 0, CloudFront will cache content for at least the duration specified in the cache policy's minimum TTL, even if the ``Cache-Control: no-cache``, ``no-store``, or ``private`` directives are present in the origin headers.\n For more information about cache behaviors, see [Cache Behavior Settings](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior) in the *Amazon CloudFront Developer Guide*.",
452
+ identifier: "CacheBehavior",
453
+ });
454
+
455
+ type ConnectionMode = "direct" | "tenant-only";
456
+
457
+ const ConnectionMode = Schema.Literals(["direct", "tenant-only"]).annotate({
458
+ identifier: "ConnectionMode",
459
+ });
460
+
461
+ interface ConnectionFunctionAssociation {
462
+ readonly Id: string;
463
+ }
464
+
465
+ const ConnectionFunctionAssociation = Schema.Struct({
466
+ Id: Schema.String.annotate({ description: "The association's ID." }),
467
+ }).annotate({
468
+ description: "A connection function association.",
469
+ identifier: "ConnectionFunctionAssociation",
470
+ });
471
+
472
+ interface CustomErrorResponse {
473
+ readonly ErrorCachingMinTTL?: number;
474
+ readonly ErrorCode: number;
475
+ readonly ResponseCode?: number;
476
+ readonly ResponsePagePath?: string;
477
+ }
478
+
479
+ const CustomErrorResponse = Schema.Struct({
480
+ ErrorCachingMinTTL: Schema.optionalKey(
481
+ Schema.Number.annotate({
482
+ description:
483
+ "The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ``ErrorCode``. When this time period has elapsed, CloudFront queries your origin to see whether the problem that caused the error has been resolved and the requested object is now available.\n For more information, see [Customizing Error Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the *Amazon CloudFront Developer Guide*.",
484
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
485
+ ),
486
+ ErrorCode: Schema.Number.annotate({
487
+ description:
488
+ "The HTTP status code for which you want to specify a custom error page and/or a caching duration.",
489
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
490
+ ResponseCode: Schema.optionalKey(
491
+ Schema.Number.annotate({
492
+ description:
493
+ "The HTTP status code that you want CloudFront to return to the viewer along with the custom error page. There are a variety of reasons that you might want CloudFront to return a status code different from the status code that your origin returned to CloudFront, for example:\n + Some Internet devices (some firewalls and corporate proxies, for example) intercept HTTP 4xx and 5xx and prevent the response from being returned to the viewer. If you substitute ``200``, the response typically won't be intercepted.\n + If you don't care about distinguishing among different client errors or server errors, you can specify ``400`` or ``500`` as the ``ResponseCode`` for all 4xx or 5xx errors.\n + You might want to return a ``200`` status code (OK) and static website so your customers don't know that your website is down.\n \n If you specify a value for ``ResponseCode``, you must also specify a value for ``ResponsePagePath``.",
494
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
495
+ ),
496
+ ResponsePagePath: Schema.optionalKey(
497
+ Schema.String.annotate({
498
+ description:
499
+ "The path to the custom error page that you want CloudFront to return to a viewer when your origin returns the HTTP status code specified by ``ErrorCode``, for example, ``/4xx-errors/403-forbidden.html``. If you want to store your objects and your custom error pages in different locations, your distribution must include a cache behavior for which the following is true:\n + The value of ``PathPattern`` matches the path to your custom error messages. For example, suppose you saved custom error pages for 4xx errors in an Amazon S3 bucket in a directory named ``/4xx-errors``. Your distribution must include a cache behavior for which the path pattern routes requests for your custom error pages to that location, for example, ``/4xx-errors/*``.\n + The value of ``TargetOriginId`` specifies the value of the ``ID`` element for the origin that contains your custom error pages.\n \n If you specify a value for ``ResponsePagePath``, you must also specify a value for ``ResponseCode``.\n We recommend that you store custom error pages in an Amazon S3 bucket. If you store custom error pages on an HTTP server and the server starts to return 5xx errors, CloudFront can't get the files that you want to return to viewers because the origin server is unavailable.",
500
+ }),
501
+ ),
502
+ }).annotate({
503
+ description:
504
+ "A complex type that controls:\n + Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.\n + How long CloudFront caches HTTP status codes in the 4xx and 5xx range.\n \n For more information about custom error pages, see [Customizing Error Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the *Amazon CloudFront Developer Guide*.",
505
+ identifier: "CustomErrorResponse",
506
+ });
507
+
508
+ type ResourceInputItems_5 = globalThis.ReadonlyArray<CustomErrorResponse>;
509
+
510
+ const ResourceInputItems_5 = Schema.Array(CustomErrorResponse).annotate({
511
+ description:
512
+ "A complex type that controls the following:\n + Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.\n + How long CloudFront caches HTTP status codes in the 4xx and 5xx range.\n \n For more information about custom error pages, see [Customizing Error Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the *Amazon CloudFront Developer Guide*.",
513
+ });
514
+
515
+ interface LegacyCustomOrigin {
516
+ readonly DNSName: string;
517
+ readonly HTTPPort?: number;
518
+ readonly HTTPSPort?: number;
519
+ readonly OriginProtocolPolicy: string;
520
+ readonly OriginSSLProtocols: globalThis.ReadonlyArray<string>;
521
+ }
522
+
523
+ const LegacyCustomOrigin = Schema.Struct({
524
+ DNSName: Schema.String.annotate({
525
+ description: "The domain name assigned to your CF distribution.",
526
+ }),
527
+ HTTPPort: Schema.optionalKey(
528
+ Schema.Number.annotate({
529
+ description:
530
+ "The HTTP port that CF uses to connect to the origin. Specify the HTTP port that the origin listens on.",
531
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
532
+ ),
533
+ HTTPSPort: Schema.optionalKey(
534
+ Schema.Number.annotate({
535
+ description:
536
+ "The HTTPS port that CF uses to connect to the origin. Specify the HTTPS port that the origin listens on.",
537
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
538
+ ),
539
+ OriginProtocolPolicy: Schema.String.annotate({
540
+ description:
541
+ "Specifies the protocol (HTTP or HTTPS) that CF uses to connect to the origin.",
542
+ }),
543
+ OriginSSLProtocols: Schema.Array(Schema.String).annotate({
544
+ description:
545
+ "The minimum SSL/TLS protocol version that CF uses when communicating with your origin server over HTTPs.\n For more information, see [Minimum Origin SSL Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols) in the *Developer Guide*.",
546
+ }),
547
+ }).annotate({
548
+ description:
549
+ "A custom origin. A custom origin is any origin that is *not* an S3 bucket, with one exception. An S3 bucket that is [configured with static website hosting](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html)*is* a custom origin.\n This property is legacy. We recommend that you use [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) instead.",
550
+ identifier: "LegacyCustomOrigin",
551
+ });
552
+
553
+ type ResourceInputItems_6 = globalThis.ReadonlyArray<string>;
554
+
555
+ const ResourceInputItems_6 = Schema.Array(Schema.String).annotate({
556
+ description:
557
+ "A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:\n + CloudFront forwards only ``GET`` and ``HEAD`` requests.\n + CloudFront forwards only ``GET``, ``HEAD``, and ``OPTIONS`` requests.\n + CloudFront forwards ``GET, HEAD, OPTIONS, PUT, PATCH, POST``, and ``DELETE`` requests.\n \n If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin.",
558
+ });
559
+
560
+ type ResourceInputItems_7 = globalThis.ReadonlyArray<string>;
561
+
562
+ const ResourceInputItems_7 = Schema.Array(Schema.String).annotate({
563
+ description:
564
+ "A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices:\n + CloudFront caches responses to ``GET`` and ``HEAD`` requests.\n + CloudFront caches responses to ``GET``, ``HEAD``, and ``OPTIONS`` requests.\n \n If you pick the second choice for your Amazon S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers, and Origin headers for the responses to be cached correctly.",
565
+ });
566
+
567
+ interface FunctionAssociation_1 {
568
+ readonly EventType?: string;
569
+ readonly FunctionARN?:
570
+ | ResourceEntity<{
571
+ readonly provider: "aws";
572
+ readonly service: "cloudfront";
573
+ readonly resource: "function";
574
+ }>
575
+ | string;
576
+ }
577
+
578
+ const FunctionAssociation_1 = Schema.Struct({
579
+ EventType: Schema.optionalKey(
580
+ Schema.String.annotate({
581
+ description:
582
+ "The event type of the function, either ``viewer-request`` or ``viewer-response``. You cannot use origin-facing event types (``origin-request`` and ``origin-response``) with a CloudFront function.",
583
+ }),
584
+ ),
585
+ FunctionARN: Schema.optionalKey(
586
+ Schema.Union([
587
+ Schema.Union([
588
+ ResourceReferenceSchema(
589
+ Schema.Struct({
590
+ provider: Schema.Literal("aws"),
591
+ service: Schema.Literal("cloudfront"),
592
+ resource: Schema.Literal("function"),
593
+ }),
594
+ {
595
+ value: null,
596
+ outputs: [
597
+ {
598
+ source: ["FunctionARN"],
599
+ target: [],
600
+ },
601
+ ],
602
+ },
603
+ ).annotate({ expected: "ResourceEntity" }),
604
+ ]),
605
+ Schema.String.annotate({
606
+ description: "The Amazon Resource Name (ARN) of the function.",
607
+ }),
608
+ ]),
609
+ ),
610
+ }).annotate({
611
+ description:
612
+ "A CloudFront function that is associated with a cache behavior in a CloudFront distribution.",
613
+ identifier: "FunctionAssociation_1",
614
+ });
615
+
616
+ interface LambdaFunctionAssociation_1 {
617
+ readonly EventType?: string;
618
+ readonly IncludeBody?: boolean;
619
+ readonly LambdaFunctionARN?:
620
+ | ResourceEntity<{
621
+ readonly provider: "aws";
622
+ readonly service: "lambda";
623
+ readonly resource: "version";
624
+ }>
625
+ | string;
626
+ }
627
+
628
+ const LambdaFunctionAssociation_1 = Schema.Struct({
629
+ EventType: Schema.optionalKey(
630
+ Schema.String.annotate({
631
+ description:
632
+ "Specifies the event type that triggers a Lambda@Edge function invocation. You can specify the following values:\n + ``viewer-request``: The function executes when CloudFront receives a request from a viewer and before it checks to see whether the requested object is in the edge cache.\n + ``origin-request``: The function executes only when CloudFront sends a request to your origin. When the requested object is in the edge cache, the function doesn't execute.\n + ``origin-response``: The function executes after CloudFront receives a response from the origin and before it caches the object in the response. When the requested object is in the edge cache, the function doesn't execute.\n + ``viewer-response``: The function executes before CloudFront returns the requested object to the viewer. The function executes regardless of whether the object was already in the edge cache.\n If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.",
633
+ }),
634
+ ),
635
+ IncludeBody: Schema.optionalKey(
636
+ Schema.Boolean.annotate({
637
+ description:
638
+ "A flag that allows a Lambda@Edge function to have read access to the body content. For more information, see [Accessing the Request Body by Choosing the Include Body Option](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html) in the Amazon CloudFront Developer Guide.",
639
+ }),
640
+ ),
641
+ LambdaFunctionARN: Schema.optionalKey(
642
+ Schema.Union([
643
+ Schema.Union([
644
+ ResourceReferenceSchema(
645
+ Schema.Struct({
646
+ provider: Schema.Literal("aws"),
647
+ service: Schema.Literal("lambda"),
648
+ resource: Schema.Literal("version"),
649
+ }),
650
+ {
651
+ value: null,
652
+ outputs: [
653
+ {
654
+ source: ["FunctionArn"],
655
+ target: [],
656
+ },
657
+ ],
658
+ },
659
+ ).annotate({ expected: "ResourceEntity" }),
660
+ ]),
661
+ Schema.String.annotate({
662
+ description:
663
+ "The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an alias or $LATEST.",
664
+ }),
665
+ ]),
666
+ ),
667
+ }).annotate({
668
+ description:
669
+ "A complex type that contains a Lambda@Edge function association.",
670
+ identifier: "LambdaFunctionAssociation_1",
671
+ });
672
+
673
+ type ResourceInputItems_8 = globalThis.ReadonlyArray<string>;
674
+
675
+ const ResourceInputItems_8 = Schema.Array(Schema.String).annotate({
676
+ description:
677
+ "We recommend using ``TrustedKeyGroups`` instead of ``TrustedSigners``.\n This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n A list of AWS-account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.\n When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in a trusted signer's AWS-account. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see [Serving private content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide*.",
678
+ });
679
+
680
+ interface DefaultCacheBehavior {
681
+ readonly AllowedMethods?: ResourceInputItems_6;
682
+ readonly CachePolicyId?:
683
+ | ResourceEntity<{
684
+ readonly provider: "aws";
685
+ readonly service: "cloudfront";
686
+ readonly resource: "cachepolicy";
687
+ }>
688
+ | string;
689
+ readonly CachedMethods?: ResourceInputItems_7;
690
+ readonly Compress?: boolean;
691
+ readonly DefaultTTL?: number;
692
+ readonly FieldLevelEncryptionId?: string;
693
+ readonly ForwardedValues?: ForwardedValues;
694
+ readonly FunctionAssociations?: globalThis.ReadonlyArray<FunctionAssociation_1>;
695
+ readonly GrpcConfig?: GrpcConfig;
696
+ readonly LambdaFunctionAssociations?: globalThis.ReadonlyArray<LambdaFunctionAssociation_1>;
697
+ readonly MaxTTL?: number;
698
+ readonly MinTTL?: number;
699
+ readonly OriginRequestPolicyId?:
700
+ | ResourceEntity<{
701
+ readonly provider: "aws";
702
+ readonly service: "cloudfront";
703
+ readonly resource: "originrequestpolicy";
704
+ }>
705
+ | string;
706
+ readonly RealtimeLogConfigArn?:
707
+ | ResourceEntity<{
708
+ readonly provider: "aws";
709
+ readonly service: "cloudfront";
710
+ readonly resource: "realtimelogconfig";
711
+ }>
712
+ | string;
713
+ readonly ResponseHeadersPolicyId?:
714
+ | ResourceEntity<{
715
+ readonly provider: "aws";
716
+ readonly service: "cloudfront";
717
+ readonly resource: "responseheaderspolicy";
718
+ }>
719
+ | string;
720
+ readonly SmoothStreaming?: boolean;
721
+ readonly TargetOriginId:
722
+ | ResourceEntity<{
723
+ readonly provider: "aws";
724
+ readonly service: "elasticloadbalancingv2";
725
+ readonly resource: "loadbalancer";
726
+ }>
727
+ | string;
728
+ readonly TrustedKeyGroups?: globalThis.ReadonlyArray<
729
+ | ResourceEntity<{
730
+ readonly provider: "aws";
731
+ readonly service: "cloudfront";
732
+ readonly resource: "keygroup";
733
+ }>
734
+ | string
735
+ >;
736
+ readonly TrustedSigners?: ResourceInputItems_8;
737
+ readonly ViewerProtocolPolicy: string;
738
+ }
739
+
740
+ const DefaultCacheBehavior = Schema.Struct({
741
+ AllowedMethods: Schema.optionalKey(ResourceInputItems_6),
742
+ CachePolicyId: Schema.optionalKey(
743
+ Schema.Union([
744
+ Schema.Union([
745
+ ResourceReferenceSchema(
746
+ Schema.Struct({
747
+ provider: Schema.Literal("aws"),
748
+ service: Schema.Literal("cloudfront"),
749
+ resource: Schema.Literal("cachepolicy"),
750
+ }),
751
+ {
752
+ value: null,
753
+ outputs: [
754
+ {
755
+ source: ["Id"],
756
+ target: [],
757
+ },
758
+ ],
759
+ },
760
+ ).annotate({ expected: "ResourceEntity" }),
761
+ ]),
762
+ Schema.String.annotate({
763
+ description:
764
+ "The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n A ``DefaultCacheBehavior`` must include either a ``CachePolicyId`` or ``ForwardedValues``. We recommend that you use a ``CachePolicyId``.",
765
+ }),
766
+ ]),
767
+ ),
768
+ CachedMethods: Schema.optionalKey(ResourceInputItems_7),
769
+ Compress: Schema.optionalKey(
770
+ Schema.Boolean.annotate({
771
+ description:
772
+ "Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify ``true``; if not, specify ``false``. For more information, see [Serving Compressed Files](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) in the *Amazon CloudFront Developer Guide*.",
773
+ }),
774
+ ),
775
+ DefaultTTL: Schema.optionalKey(
776
+ Schema.Number.annotate({
777
+ description:
778
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use the ``DefaultTTL`` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n The default amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as ``Cache-Control max-age``, ``Cache-Control s-maxage``, and ``Expires`` to objects. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.",
779
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
780
+ ),
781
+ FieldLevelEncryptionId: Schema.optionalKey(
782
+ Schema.String.annotate({
783
+ description:
784
+ "The value of ``ID`` for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.",
785
+ }),
786
+ ),
787
+ ForwardedValues: Schema.optionalKey(ForwardedValues),
788
+ FunctionAssociations: Schema.optionalKey(
789
+ Schema.Array(FunctionAssociation_1).annotate({
790
+ description:
791
+ "A list of CloudFront functions that are associated with this cache behavior. Your functions must be published to the ``LIVE`` stage to associate them with a cache behavior.",
792
+ }),
793
+ ),
794
+ GrpcConfig: Schema.optionalKey(GrpcConfig),
795
+ LambdaFunctionAssociations: Schema.optionalKey(
796
+ Schema.Array(LambdaFunctionAssociation_1).annotate({
797
+ description:
798
+ "A complex type that contains zero or more Lambda@Edge function associations for a cache behavior.",
799
+ }),
800
+ ),
801
+ MaxTTL: Schema.optionalKey(
802
+ Schema.Number.annotate({
803
+ description:
804
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use the ``MaxTTL`` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n The maximum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as ``Cache-Control max-age``, ``Cache-Control s-maxage``, and ``Expires`` to objects. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.",
805
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
806
+ ),
807
+ MinTTL: Schema.optionalKey(
808
+ Schema.Number.annotate({
809
+ description:
810
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use the ``MinTTL`` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.\n You must specify ``0`` for ``MinTTL`` if you configure CloudFront to forward all headers to your origin (under ``Headers``, if you specify ``1`` for ``Quantity`` and ``*`` for ``Name``).",
811
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
812
+ ),
813
+ OriginRequestPolicyId: Schema.optionalKey(
814
+ Schema.Union([
815
+ Schema.Union([
816
+ ResourceReferenceSchema(
817
+ Schema.Struct({
818
+ provider: Schema.Literal("aws"),
819
+ service: Schema.Literal("cloudfront"),
820
+ resource: Schema.Literal("originrequestpolicy"),
821
+ }),
822
+ {
823
+ value: null,
824
+ outputs: [
825
+ {
826
+ source: ["Id"],
827
+ target: [],
828
+ },
829
+ ],
830
+ },
831
+ ).annotate({ expected: "ResourceEntity" }),
832
+ ]),
833
+ Schema.String.annotate({
834
+ description:
835
+ "The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) or [Using the managed origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) in the *Amazon CloudFront Developer Guide*.",
836
+ }),
837
+ ]),
838
+ ),
839
+ RealtimeLogConfigArn: Schema.optionalKey(
840
+ Schema.Union([
841
+ Schema.Union([
842
+ ResourceReferenceSchema(
843
+ Schema.Struct({
844
+ provider: Schema.Literal("aws"),
845
+ service: Schema.Literal("cloudfront"),
846
+ resource: Schema.Literal("realtimelogconfig"),
847
+ }),
848
+ {
849
+ value: null,
850
+ outputs: [
851
+ {
852
+ source: ["Arn"],
853
+ target: [],
854
+ },
855
+ ],
856
+ },
857
+ ).annotate({ expected: "ResourceEntity" }),
858
+ ]),
859
+ Schema.String.annotate({
860
+ description:
861
+ "The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see [Real-time logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html) in the *Amazon CloudFront Developer Guide*.",
862
+ }),
863
+ ]),
864
+ ),
865
+ ResponseHeadersPolicyId: Schema.optionalKey(
866
+ Schema.Union([
867
+ Schema.Union([
868
+ ResourceReferenceSchema(
869
+ Schema.Struct({
870
+ provider: Schema.Literal("aws"),
871
+ service: Schema.Literal("cloudfront"),
872
+ resource: Schema.Literal("responseheaderspolicy"),
873
+ }),
874
+ {
875
+ value: null,
876
+ outputs: [
877
+ {
878
+ source: ["Id"],
879
+ target: [],
880
+ },
881
+ ],
882
+ },
883
+ ).annotate({ expected: "ResourceEntity" }),
884
+ ]),
885
+ Schema.String.annotate({
886
+ description: "The identifier for a response headers policy.",
887
+ }),
888
+ ]),
889
+ ),
890
+ SmoothStreaming: Schema.optionalKey(
891
+ Schema.Boolean.annotate({
892
+ description:
893
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify ``true``; if not, specify ``false``. If you specify ``true`` for ``SmoothStreaming``, you can still distribute other content using this cache behavior if the content matches the value of ``PathPattern``.",
894
+ }),
895
+ ),
896
+ TargetOriginId: Schema.Union([
897
+ Schema.Union([
898
+ ResourceReferenceSchema(
899
+ Schema.Struct({
900
+ provider: Schema.Literal("aws"),
901
+ service: Schema.Literal("elasticloadbalancingv2"),
902
+ resource: Schema.Literal("loadbalancer"),
903
+ }),
904
+ {
905
+ value: null,
906
+ outputs: [
907
+ {
908
+ source: ["LoadBalancerArn"],
909
+ target: [],
910
+ },
911
+ ],
912
+ },
913
+ ).annotate({ expected: "ResourceEntity" }),
914
+ ]),
915
+ Schema.String.annotate({
916
+ description:
917
+ "The value of ``ID`` for the origin that you want CloudFront to route requests to when they use the default cache behavior.",
918
+ }),
919
+ ]),
920
+ TrustedKeyGroups: Schema.optionalKey(
921
+ Schema.Array(
922
+ Schema.Union([
923
+ Schema.Union([
924
+ ResourceReferenceSchema(
925
+ Schema.Struct({
926
+ provider: Schema.Literal("aws"),
927
+ service: Schema.Literal("cloudfront"),
928
+ resource: Schema.Literal("keygroup"),
929
+ }),
930
+ {
931
+ value: null,
932
+ outputs: [
933
+ {
934
+ source: ["Id"],
935
+ target: [],
936
+ },
937
+ ],
938
+ },
939
+ ).annotate({ expected: "ResourceEntity" }),
940
+ ]),
941
+ Schema.String,
942
+ ]),
943
+ ).annotate({
944
+ description:
945
+ "A list of key groups that CloudFront can use to validate signed URLs or signed cookies.\n When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see [Serving private content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide*.",
946
+ }),
947
+ ),
948
+ TrustedSigners: Schema.optionalKey(ResourceInputItems_8),
949
+ ViewerProtocolPolicy: Schema.String.annotate({
950
+ description:
951
+ "The protocol that viewers can use to access the files in the origin specified by ``TargetOriginId`` when a request matches the path pattern in ``PathPattern``. You can specify the following options:\n + ``allow-all``: Viewers can use HTTP or HTTPS.\n + ``redirect-to-https``: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.\n + ``https-only``: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).\n \n For more information about requiring the HTTPS protocol, see [Requiring HTTPS Between Viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html) in the *Amazon CloudFront Developer Guide*.\n The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects' cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see [Managing Cache Expiration](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.",
952
+ }),
953
+ }).annotate({
954
+ description:
955
+ "A complex type that describes the default cache behavior if you don't specify a ``CacheBehavior`` element or if request URLs don't match any of the values of ``PathPattern`` in ``CacheBehavior`` elements. You must create exactly one default cache behavior.\n If your minimum TTL is greater than 0, CloudFront will cache content for at least the duration specified in the cache policy's minimum TTL, even if the ``Cache-Control: no-cache``, ``no-store``, or ``private`` directives are present in the origin headers.",
956
+ identifier: "DefaultCacheBehavior",
957
+ });
958
+
959
+ interface Logging {
960
+ readonly Bucket?: string;
961
+ readonly IncludeCookies?: boolean;
962
+ readonly Prefix?: string;
963
+ }
964
+
965
+ const Logging = Schema.Struct({
966
+ Bucket: Schema.optionalKey(
967
+ Schema.String.annotate({
968
+ description:
969
+ "The Amazon S3 bucket to store the access logs in, for example, ``amzn-s3-demo-bucket.s3.amazonaws.com``.",
970
+ }),
971
+ ),
972
+ IncludeCookies: Schema.optionalKey(
973
+ Schema.Boolean.annotate({
974
+ description:
975
+ "Specifies whether you want CloudFront to include cookies in access logs, specify ``true`` for ``IncludeCookies``. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you don't want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify ``false`` for ``IncludeCookies``.",
976
+ }),
977
+ ),
978
+ Prefix: Schema.optionalKey(
979
+ Schema.String.annotate({
980
+ description:
981
+ "An optional string that you want CloudFront to prefix to the access log ``filenames`` for this distribution, for example, ``myprefix/``. If you want to enable logging, but you don't want to specify a prefix, you still must include an empty ``Prefix`` element in the ``Logging`` element.",
982
+ }),
983
+ ),
984
+ }).annotate({
985
+ description:
986
+ "A complex type that specifies whether access logs are written for the distribution.\n If you already enabled standard logging (legacy) and you want to enable standard logging (v2) to send your access logs to Amazon S3, we recommend that you specify a *different* Amazon S3 bucket or use a *separate path* in the same bucket (for example, use a log prefix or partitioning). This helps you keep track of which log files are associated with which logging subscription and prevents log files from overwriting each other. For more information, see [Standard logging (access logs)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html) in the *Amazon CloudFront Developer Guide*.",
987
+ identifier: "Logging",
988
+ });
989
+
990
+ interface StatusCodes {
991
+ readonly Items: globalThis.ReadonlyArray<number>;
992
+ readonly Quantity: number;
993
+ }
994
+
995
+ const StatusCodes = Schema.Struct({
996
+ Items: Schema.Array(Schema.Int).annotate({
997
+ description: "The items (status codes) for an origin group.",
998
+ }),
999
+ Quantity: Schema.Number.annotate({
1000
+ description: "The number of status codes.",
1001
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1002
+ }).annotate({
1003
+ description:
1004
+ "A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.",
1005
+ identifier: "StatusCodes",
1006
+ });
1007
+
1008
+ interface OriginGroupFailoverCriteria {
1009
+ readonly StatusCodes: StatusCodes;
1010
+ }
1011
+
1012
+ const OriginGroupFailoverCriteria = Schema.Struct({
1013
+ StatusCodes: StatusCodes,
1014
+ }).annotate({
1015
+ description:
1016
+ "A complex data type that includes information about the failover criteria for an origin group, including the status codes for which CloudFront will failover from the primary origin to the second origin.",
1017
+ identifier: "OriginGroupFailoverCriteria",
1018
+ });
1019
+
1020
+ interface OriginGroupMember {
1021
+ readonly OriginId: string;
1022
+ }
1023
+
1024
+ const OriginGroupMember = Schema.Struct({
1025
+ OriginId: Schema.String.annotate({
1026
+ description: "The ID for an origin in an origin group.",
1027
+ }),
1028
+ }).annotate({
1029
+ description: "An origin in an origin group.",
1030
+ identifier: "OriginGroupMember",
1031
+ });
1032
+
1033
+ interface OriginGroupMembers {
1034
+ readonly Items: globalThis.ReadonlyArray<OriginGroupMember>;
1035
+ readonly Quantity: number;
1036
+ }
1037
+
1038
+ const OriginGroupMembers = Schema.Struct({
1039
+ Items: Schema.Array(OriginGroupMember).annotate({
1040
+ description: "Items (origins) in an origin group.",
1041
+ }),
1042
+ Quantity: Schema.Number.annotate({
1043
+ description: "The number of origins in an origin group.",
1044
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1045
+ }).annotate({
1046
+ description:
1047
+ "A complex data type for the origins included in an origin group.",
1048
+ identifier: "OriginGroupMembers",
1049
+ });
1050
+
1051
+ type OriginGroupSelectionCriteria = "default" | "media-quality-based";
1052
+
1053
+ const OriginGroupSelectionCriteria = Schema.Literals([
1054
+ "default",
1055
+ "media-quality-based",
1056
+ ]).annotate({ identifier: "OriginGroupSelectionCriteria" });
1057
+
1058
+ interface OriginGroup {
1059
+ readonly FailoverCriteria: OriginGroupFailoverCriteria;
1060
+ readonly Id: string;
1061
+ readonly Members: OriginGroupMembers;
1062
+ readonly SelectionCriteria?: OriginGroupSelectionCriteria;
1063
+ }
1064
+
1065
+ const OriginGroup = Schema.Struct({
1066
+ FailoverCriteria: OriginGroupFailoverCriteria,
1067
+ Id: Schema.String.annotate({ description: "The origin group's ID." }),
1068
+ Members: OriginGroupMembers,
1069
+ SelectionCriteria: Schema.optionalKey(OriginGroupSelectionCriteria),
1070
+ }).annotate({
1071
+ description:
1072
+ "An origin group includes two origins (a primary origin and a secondary origin to failover to) and a failover criteria that you specify. You create an origin group to support origin failover in CloudFront. When you create or update a distribution, you can specify the origin group instead of a single origin, and CloudFront will failover from the primary origin to the secondary origin under the failover conditions that you've chosen.\n Optionally, you can choose selection criteria for your origin group to specify how your origins are selected when your distribution routes viewer requests.",
1073
+ identifier: "OriginGroup",
1074
+ });
1075
+
1076
+ interface OriginGroups {
1077
+ readonly Items?: globalThis.ReadonlyArray<OriginGroup>;
1078
+ readonly Quantity: number;
1079
+ }
1080
+
1081
+ const OriginGroups = Schema.Struct({
1082
+ Items: Schema.optionalKey(
1083
+ Schema.Array(OriginGroup).annotate({
1084
+ description: "The items (origin groups) in a distribution.",
1085
+ }),
1086
+ ),
1087
+ Quantity: Schema.Number.annotate({
1088
+ description: "The number of origin groups.",
1089
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1090
+ }).annotate({
1091
+ description:
1092
+ "A complex data type for the origin groups specified for a distribution.",
1093
+ identifier: "OriginGroups",
1094
+ });
1095
+
1096
+ interface OriginMtlsConfig {
1097
+ readonly ClientCertificateArn: string;
1098
+ }
1099
+
1100
+ const OriginMtlsConfig = Schema.Struct({
1101
+ ClientCertificateArn: Schema.String.annotate({
1102
+ description:
1103
+ "The Amazon Resource Name (ARN) of the client certificate stored in AWS Certificate Manager (ACM) that CloudFront uses to authenticate with your origin using Mutual TLS.",
1104
+ }),
1105
+ }).annotate({
1106
+ description:
1107
+ "Configures mutual TLS authentication between CloudFront and your origin server.",
1108
+ identifier: "OriginMtlsConfig",
1109
+ });
1110
+
1111
+ interface CustomOriginConfig {
1112
+ readonly HTTPPort?: number;
1113
+ readonly HTTPSPort?: number;
1114
+ readonly OriginKeepaliveTimeout?: number;
1115
+ readonly OriginProtocolPolicy: string;
1116
+ readonly OriginReadTimeout?: number;
1117
+ readonly OriginSSLProtocols?: globalThis.ReadonlyArray<string>;
1118
+ readonly IpAddressType?: "ipv4" | "ipv6" | "dualstack";
1119
+ readonly OriginMtlsConfig?: OriginMtlsConfig;
1120
+ }
1121
+
1122
+ const CustomOriginConfig = Schema.Struct({
1123
+ HTTPPort: Schema.optionalKey(
1124
+ Schema.Number.annotate({
1125
+ description:
1126
+ "The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.",
1127
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1128
+ ),
1129
+ HTTPSPort: Schema.optionalKey(
1130
+ Schema.Number.annotate({
1131
+ description:
1132
+ "The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.",
1133
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1134
+ ),
1135
+ OriginKeepaliveTimeout: Schema.optionalKey(
1136
+ Schema.Number.annotate({
1137
+ description:
1138
+ "Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 300 seconds, and the default (if you don't specify otherwise) is 5 seconds.\n For more information, see [Keep-alive timeout (custom origins only)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginKeepaliveTimeout) in the *Amazon CloudFront Developer Guide*.",
1139
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1140
+ ),
1141
+ OriginProtocolPolicy: Schema.String.annotate({
1142
+ description:
1143
+ "Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:\n + ``http-only`` – CloudFront always uses HTTP to connect to the origin.\n + ``match-viewer`` – CloudFront connects to the origin using the same protocol that the viewer used to connect to CloudFront.\n + ``https-only`` – CloudFront always uses HTTPS to connect to the origin.",
1144
+ }),
1145
+ OriginReadTimeout: Schema.optionalKey(
1146
+ Schema.Number.annotate({
1147
+ description:
1148
+ "Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the *origin response timeout*. The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.\n For more information, see [Response timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout) in the *Amazon CloudFront Developer Guide*.",
1149
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1150
+ ),
1151
+ OriginSSLProtocols: Schema.optionalKey(
1152
+ Schema.Array(Schema.String).annotate({
1153
+ description:
1154
+ "Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. Valid values include ``SSLv3``, ``TLSv1``, ``TLSv1.1``, and ``TLSv1.2``.\n For more information, see [Minimum Origin SSL Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginSSLProtocols) in the *Amazon CloudFront Developer Guide*.",
1155
+ }),
1156
+ ),
1157
+ IpAddressType: Schema.optionalKey(
1158
+ Schema.Literals(["ipv4", "ipv6", "dualstack"]).annotate({
1159
+ description:
1160
+ "Specifies which IP protocol CloudFront uses when connecting to your origin. If your origin uses both IPv4 and IPv6 protocols, you can choose ``dualstack`` to help optimize reliability.",
1161
+ }),
1162
+ ),
1163
+ OriginMtlsConfig: Schema.optionalKey(OriginMtlsConfig),
1164
+ }).annotate({
1165
+ description:
1166
+ "A custom origin. A custom origin is any origin that is *not* an Amazon S3 bucket, with one exception. An Amazon S3 bucket that is [configured with static website hosting](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html)*is* a custom origin.",
1167
+ identifier: "CustomOriginConfig",
1168
+ });
1169
+
1170
+ interface OriginCustomHeader {
1171
+ readonly HeaderName: string;
1172
+ readonly HeaderValue: string;
1173
+ }
1174
+
1175
+ const OriginCustomHeader = Schema.Struct({
1176
+ HeaderName: Schema.String.annotate({
1177
+ description:
1178
+ "The name of a header that you want CloudFront to send to your origin. For more information, see [Adding Custom Headers to Origin Requests](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html) in the *Amazon CloudFront Developer Guide*.",
1179
+ }),
1180
+ HeaderValue: Schema.String.annotate({
1181
+ description:
1182
+ "The value for the header that you specified in the ``HeaderName`` field.",
1183
+ }),
1184
+ }).annotate({
1185
+ description:
1186
+ "A complex type that contains ``HeaderName`` and ``HeaderValue`` elements, if any, for this distribution.",
1187
+ identifier: "OriginCustomHeader",
1188
+ });
1189
+
1190
+ type ResourceInputItems_9 = globalThis.ReadonlyArray<OriginCustomHeader>;
1191
+
1192
+ const ResourceInputItems_9 = Schema.Array(OriginCustomHeader).annotate({
1193
+ description:
1194
+ "A list of HTTP header names and values that CloudFront adds to the requests that it sends to the origin.\n For more information, see [Adding Custom Headers to Origin Requests](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html) in the *Amazon CloudFront Developer Guide*.",
1195
+ });
1196
+
1197
+ interface OriginShield {
1198
+ readonly Enabled?: boolean;
1199
+ readonly OriginShieldRegion?: string;
1200
+ }
1201
+
1202
+ const OriginShield = Schema.Struct({
1203
+ Enabled: Schema.optionalKey(
1204
+ Schema.Boolean.annotate({
1205
+ description:
1206
+ "A flag that specifies whether Origin Shield is enabled.\n When it's enabled, CloudFront routes all requests through Origin Shield, which can help protect your origin. When it's disabled, CloudFront might send requests directly to your origin from multiple edge locations or regional edge caches.",
1207
+ }),
1208
+ ),
1209
+ OriginShieldRegion: Schema.optionalKey(
1210
+ Schema.String.annotate({
1211
+ description:
1212
+ "The AWS-Region for Origin Shield.\n Specify the AWS-Region that has the lowest latency to your origin. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as ``us-east-2``.\n When you enable CloudFront Origin Shield, you must specify the AWS-Region for Origin Shield. For the list of AWS-Regions that you can specify, and for help choosing the best Region for your origin, see [Choosing the for Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html#choose-origin-shield-region) in the *Amazon CloudFront Developer Guide*.",
1213
+ }),
1214
+ ),
1215
+ }).annotate({
1216
+ description:
1217
+ "CloudFront Origin Shield.\n Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the *Amazon CloudFront Developer Guide*.",
1218
+ identifier: "OriginShield",
1219
+ });
1220
+
1221
+ interface S3OriginConfig {
1222
+ readonly OriginAccessIdentity?: string;
1223
+ readonly OriginReadTimeout?: number;
1224
+ }
1225
+
1226
+ const S3OriginConfig = Schema.Struct({
1227
+ OriginAccessIdentity: Schema.optionalKey(
1228
+ Schema.String.annotate({
1229
+ description:
1230
+ "If you're using origin access control (OAC) instead of origin access identity, specify an empty ``OriginAccessIdentity`` element. For more information, see [Restricting access to an](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-origin.html) in the *Amazon CloudFront Developer Guide*.\n The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that viewers can *only* access objects in an Amazon S3 bucket through CloudFront. The format of the value is:\n ``origin-access-identity/cloudfront/ID-of-origin-access-identity`` \n The ``ID-of-origin-access-identity`` is the value that CloudFront returned in the ``ID`` element when you created the origin access identity.\n If you want viewers to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty ``OriginAccessIdentity`` element.\n To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty ``OriginAccessIdentity`` element.\n To replace the origin access identity, update the distribution configuration and specify the new origin access identity.\n For more information about the origin access identity, see [Serving Private Content through CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide*.",
1231
+ }),
1232
+ ),
1233
+ OriginReadTimeout: Schema.optionalKey(
1234
+ Schema.Number.annotate({
1235
+ description:
1236
+ "Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the *origin response timeout*. The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.\n For more information, see [Response timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout) in the *Amazon CloudFront Developer Guide*.",
1237
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1238
+ ),
1239
+ }).annotate({
1240
+ description:
1241
+ "A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin or an S3 bucket that is configured as a website endpoint, use the ``CustomOriginConfig`` element instead.",
1242
+ identifier: "S3OriginConfig",
1243
+ });
1244
+
1245
+ interface VpcOriginConfig {
1246
+ readonly OriginKeepaliveTimeout?: number;
1247
+ readonly OriginReadTimeout?: number;
1248
+ readonly OwnerAccountId?: string;
1249
+ readonly VpcOriginId: string;
1250
+ }
1251
+
1252
+ const VpcOriginConfig = Schema.Struct({
1253
+ OriginKeepaliveTimeout: Schema.optionalKey(
1254
+ Schema.Number.annotate({
1255
+ description:
1256
+ "Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 300 seconds, and the default (if you don't specify otherwise) is 5 seconds.\n For more information, see [Keep-alive timeout (custom origins only)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginKeepaliveTimeout) in the *Amazon CloudFront Developer Guide*.",
1257
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1258
+ ),
1259
+ OriginReadTimeout: Schema.optionalKey(
1260
+ Schema.Number.annotate({
1261
+ description:
1262
+ "Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the *origin response timeout*. The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.\n For more information, see [Response timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout) in the *Amazon CloudFront Developer Guide*.",
1263
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1264
+ ),
1265
+ OwnerAccountId: Schema.optionalKey(
1266
+ Schema.String.annotate({
1267
+ description:
1268
+ "The account ID of the AWS-account that owns the VPC origin.",
1269
+ }),
1270
+ ),
1271
+ VpcOriginId: Schema.String.annotate({ description: "The VPC origin ID." }),
1272
+ }).annotate({
1273
+ description: "An Amazon CloudFront VPC origin configuration.",
1274
+ identifier: "VpcOriginConfig",
1275
+ });
1276
+
1277
+ interface Origin {
1278
+ readonly ConnectionAttempts?: number;
1279
+ readonly ConnectionTimeout?: number;
1280
+ readonly ResponseCompletionTimeout?: number;
1281
+ readonly CustomOriginConfig?: CustomOriginConfig;
1282
+ readonly DomainName:
1283
+ | ResourceEntity<{
1284
+ readonly provider: "aws";
1285
+ readonly service: "apigateway";
1286
+ readonly resource: "domainname";
1287
+ }>
1288
+ | ResourceEntity<{
1289
+ readonly provider: "aws";
1290
+ readonly service: "elasticloadbalancingv2";
1291
+ readonly resource: "loadbalancer";
1292
+ }>
1293
+ | string;
1294
+ readonly Id:
1295
+ | ResourceEntity<{
1296
+ readonly provider: "aws";
1297
+ readonly service: "elasticloadbalancingv2";
1298
+ readonly resource: "loadbalancer";
1299
+ }>
1300
+ | string;
1301
+ readonly OriginAccessControlId?:
1302
+ | ResourceEntity<{
1303
+ readonly provider: "aws";
1304
+ readonly service: "cloudfront";
1305
+ readonly resource: "originaccesscontrol";
1306
+ }>
1307
+ | string;
1308
+ readonly OriginCustomHeaders?: ResourceInputItems_9;
1309
+ readonly OriginPath?: string;
1310
+ readonly OriginShield?: OriginShield;
1311
+ readonly S3OriginConfig?: S3OriginConfig;
1312
+ readonly VpcOriginConfig?: VpcOriginConfig;
1313
+ }
1314
+
1315
+ const Origin = Schema.Struct({
1316
+ ConnectionAttempts: Schema.optionalKey(
1317
+ Schema.Number.annotate({
1318
+ description:
1319
+ "The number of times that CloudFront attempts to connect to the origin. The minimum number is 1, the maximum is 3, and the default (if you don't specify otherwise) is 3.\n For a custom origin (including an Amazon S3 bucket that's configured with static website hosting), this value also specifies the number of times that CloudFront attempts to get a response from the origin, in the case of an [Origin Response Timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout).\n For more information, see [Origin Connection Attempts](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-attempts) in the *Amazon CloudFront Developer Guide*.",
1320
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1321
+ ),
1322
+ ConnectionTimeout: Schema.optionalKey(
1323
+ Schema.Number.annotate({
1324
+ description:
1325
+ "The number of seconds that CloudFront waits when trying to establish a connection to the origin. The minimum timeout is 1 second, the maximum is 10 seconds, and the default (if you don't specify otherwise) is 10 seconds.\n For more information, see [Origin Connection Timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-timeout) in the *Amazon CloudFront Developer Guide*.",
1326
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1327
+ ),
1328
+ ResponseCompletionTimeout: Schema.optionalKey(
1329
+ Schema.Number.annotate({
1330
+ description:
1331
+ "The time (in seconds) that a request from CloudFront to the origin can stay open and wait for a response. If the complete response isn't received from the origin by this time, CloudFront ends the connection.\n The value for ``ResponseCompletionTimeout`` must be equal to or greater than the value for ``OriginReadTimeout``. If you don't set a value for ``ResponseCompletionTimeout``, CloudFront doesn't enforce a maximum value.\n For more information, see [Response completion timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#response-completion-timeout) in the *Amazon CloudFront Developer Guide*.",
1332
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1333
+ ),
1334
+ CustomOriginConfig: Schema.optionalKey(CustomOriginConfig),
1335
+ DomainName: Schema.Union([
1336
+ Schema.Union([
1337
+ ResourceReferenceSchema(
1338
+ Schema.Struct({
1339
+ provider: Schema.Literal("aws"),
1340
+ service: Schema.Literal("apigateway"),
1341
+ resource: Schema.Literal("domainname"),
1342
+ }),
1343
+ {
1344
+ value: null,
1345
+ outputs: [
1346
+ {
1347
+ source: ["DomainName"],
1348
+ target: [],
1349
+ },
1350
+ ],
1351
+ },
1352
+ ).annotate({ expected: "ResourceEntity" }),
1353
+ ResourceReferenceSchema(
1354
+ Schema.Struct({
1355
+ provider: Schema.Literal("aws"),
1356
+ service: Schema.Literal("elasticloadbalancingv2"),
1357
+ resource: Schema.Literal("loadbalancer"),
1358
+ }),
1359
+ {
1360
+ value: null,
1361
+ outputs: [
1362
+ {
1363
+ source: ["DNSName"],
1364
+ target: [],
1365
+ },
1366
+ ],
1367
+ },
1368
+ ).annotate({ expected: "ResourceEntity" }),
1369
+ ]),
1370
+ Schema.String.annotate({
1371
+ description:
1372
+ "The domain name for the origin.\n For more information, see [Origin Domain Name](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesDomainName) in the *Amazon CloudFront Developer Guide*.",
1373
+ }),
1374
+ ]),
1375
+ Id: Schema.Union([
1376
+ Schema.Union([
1377
+ ResourceReferenceSchema(
1378
+ Schema.Struct({
1379
+ provider: Schema.Literal("aws"),
1380
+ service: Schema.Literal("elasticloadbalancingv2"),
1381
+ resource: Schema.Literal("loadbalancer"),
1382
+ }),
1383
+ {
1384
+ value: null,
1385
+ outputs: [
1386
+ {
1387
+ source: ["LoadBalancerArn"],
1388
+ target: [],
1389
+ },
1390
+ ],
1391
+ },
1392
+ ).annotate({ expected: "ResourceEntity" }),
1393
+ ]),
1394
+ Schema.String.annotate({
1395
+ description:
1396
+ "A unique identifier for the origin. This value must be unique within the distribution.\n Use this value to specify the ``TargetOriginId`` in a ``CacheBehavior`` or ``DefaultCacheBehavior``.",
1397
+ }),
1398
+ ]),
1399
+ OriginAccessControlId: Schema.optionalKey(
1400
+ Schema.Union([
1401
+ Schema.Union([
1402
+ ResourceReferenceSchema(
1403
+ Schema.Struct({
1404
+ provider: Schema.Literal("aws"),
1405
+ service: Schema.Literal("cloudfront"),
1406
+ resource: Schema.Literal("originaccesscontrol"),
1407
+ }),
1408
+ {
1409
+ value: null,
1410
+ outputs: [
1411
+ {
1412
+ source: ["Id"],
1413
+ target: [],
1414
+ },
1415
+ ],
1416
+ },
1417
+ ).annotate({ expected: "ResourceEntity" }),
1418
+ ]),
1419
+ Schema.String.annotate({
1420
+ description:
1421
+ "The unique identifier of an origin access control for this origin.\n For more information, see [Restricting access to an Amazon S3 origin](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) in the *Amazon CloudFront Developer Guide*.",
1422
+ }),
1423
+ ]),
1424
+ ),
1425
+ OriginCustomHeaders: Schema.optionalKey(ResourceInputItems_9),
1426
+ OriginPath: Schema.optionalKey(
1427
+ Schema.String.annotate({
1428
+ description:
1429
+ "An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.\n For more information, see [Origin Path](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginPath) in the *Amazon CloudFront Developer Guide*.",
1430
+ }),
1431
+ ),
1432
+ OriginShield: Schema.optionalKey(OriginShield),
1433
+ S3OriginConfig: Schema.optionalKey(S3OriginConfig),
1434
+ VpcOriginConfig: Schema.optionalKey(VpcOriginConfig),
1435
+ }).annotate({
1436
+ description:
1437
+ "An origin.\n An origin is the location where content is stored, and from which CloudFront gets content to serve to viewers. To specify an origin:\n + Use ``S3OriginConfig`` to specify an Amazon S3 bucket that is not configured with static website hosting.\n + Use ``VpcOriginConfig`` to specify a VPC origin.\n + Use ``CustomOriginConfig`` to specify all other kinds of origins, including:\n + An Amazon S3 bucket that is configured with static website hosting\n + An Elastic Load Balancing load balancer\n + An EMPlong endpoint\n + An EMSlong container\n + Any other HTTP server, running on an Amazon EC2 instance or any other kind of host\n \n \n For the current maximum number of origins that you can specify per distribution, see [General Quotas on Web Distributions](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html#limits-web-distributions) in the *Amazon CloudFront Developer Guide* (quotas were formerly referred to as limits).",
1438
+ identifier: "Origin",
1439
+ });
1440
+
1441
+ interface GeoRestriction {
1442
+ readonly Locations?: globalThis.ReadonlyArray<string>;
1443
+ readonly RestrictionType: string;
1444
+ }
1445
+
1446
+ const GeoRestriction = Schema.Struct({
1447
+ Locations: Schema.optionalKey(
1448
+ Schema.Array(Schema.String).annotate({
1449
+ description:
1450
+ "A complex type that contains a ``Location`` element for each country in which you want CloudFront either to distribute your content (``whitelist``) or not distribute your content (``blacklist``).\n The ``Location`` element is a two-letter, uppercase country code for a country that you want to include in your ``blacklist`` or ``whitelist``. Include one ``Location`` element for each country.\n CloudFront and ``MaxMind`` both use ``ISO 3166`` country codes. For the current list of countries and the corresponding codes, see ``ISO 3166-1-alpha-2`` code on the *International Organization for Standardization* website. You can also refer to the country list on the CloudFront console, which includes both country names and codes.",
1451
+ }),
1452
+ ),
1453
+ RestrictionType: Schema.String.annotate({
1454
+ description:
1455
+ "The method that you want to use to restrict distribution of your content by country:\n + ``none``: No geo restriction is enabled, meaning access to content is not restricted by client geo location.\n + ``blacklist``: The ``Location`` elements specify the countries in which you don't want CloudFront to distribute your content.\n + ``whitelist``: The ``Location`` elements specify the countries in which you want CloudFront to distribute your content.",
1456
+ }),
1457
+ }).annotate({
1458
+ description:
1459
+ "A complex type that controls the countries in which your content is distributed. CF determines the location of your users using ``MaxMind`` GeoIP databases. To disable geo restriction, remove the [Restrictions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-restrictions) property from your stack template.",
1460
+ identifier: "GeoRestriction",
1461
+ });
1462
+
1463
+ interface Restrictions {
1464
+ readonly GeoRestriction: GeoRestriction;
1465
+ }
1466
+
1467
+ const Restrictions = Schema.Struct({ GeoRestriction: GeoRestriction }).annotate(
1468
+ {
1469
+ description:
1470
+ "A complex type that identifies ways in which you want to restrict distribution of your content.",
1471
+ identifier: "Restrictions",
1472
+ },
1473
+ );
1474
+
1475
+ interface LegacyS3Origin {
1476
+ readonly DNSName: string;
1477
+ readonly OriginAccessIdentity?: string;
1478
+ }
1479
+
1480
+ const LegacyS3Origin = Schema.Struct({
1481
+ DNSName: Schema.String.annotate({
1482
+ description: "The domain name assigned to your CF distribution.",
1483
+ }),
1484
+ OriginAccessIdentity: Schema.optionalKey(
1485
+ Schema.String.annotate({
1486
+ description:
1487
+ "The CF origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an S3 through CF.\n This property is legacy. We recommend that you use [OriginAccessControl](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-cloudfront-originaccesscontrol.html) instead.",
1488
+ }),
1489
+ ),
1490
+ }).annotate({
1491
+ description:
1492
+ "The origin as an S3 bucket. \n This property is legacy. We recommend that you use [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) instead.",
1493
+ identifier: "LegacyS3Origin",
1494
+ });
1495
+
1496
+ interface ParameterDefinition {
1497
+ readonly Name: string;
1498
+ readonly Definition: {
1499
+ readonly StringSchema?: {
1500
+ readonly Comment?: string;
1501
+ readonly DefaultValue?: string;
1502
+ readonly Required: boolean;
1503
+ };
1504
+ };
1505
+ }
1506
+
1507
+ const ParameterDefinition = Schema.Struct({
1508
+ Name: Schema.String.annotate({ description: "The name of the parameter." }),
1509
+ Definition: Schema.Struct({
1510
+ StringSchema: Schema.optionalKey(
1511
+ Schema.Struct({
1512
+ Comment: Schema.optionalKey(Schema.String),
1513
+ DefaultValue: Schema.optionalKey(Schema.String),
1514
+ Required: Schema.Boolean,
1515
+ }),
1516
+ ),
1517
+ }).annotate({ description: "The value that you assigned to the parameter." }),
1518
+ }).annotate({
1519
+ description:
1520
+ "A list of parameter values to add to the resource. A parameter is specified as a key-value pair. A valid parameter value must exist for any parameter that is marked as required in the multi-tenant distribution.",
1521
+ identifier: "ParameterDefinition",
1522
+ });
1523
+
1524
+ interface ResourceInputProperties {
1525
+ readonly ParameterDefinitions?: globalThis.ReadonlyArray<ParameterDefinition>;
1526
+ }
1527
+
1528
+ const ResourceInputProperties = Schema.Struct({
1529
+ ParameterDefinitions: Schema.optionalKey(Schema.Array(ParameterDefinition)),
1530
+ }).annotate({
1531
+ description:
1532
+ "This field only supports multi-tenant distributions. You can't specify this field for standard distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n A distribution tenant configuration.",
1533
+ });
1534
+
1535
+ interface CacheTagConfig {
1536
+ readonly HeaderName: string;
1537
+ }
1538
+
1539
+ const CacheTagConfig = Schema.Struct({
1540
+ HeaderName: Schema.String.annotate({
1541
+ description:
1542
+ "The name of the HTTP header that your origin includes in responses. CloudFront uses this header to extract cache tags. The header value must contain comma-separated tag values (for example, ``product:electronics, category:tv, brand:example``).",
1543
+ }),
1544
+ }).annotate({
1545
+ description:
1546
+ "A complex type that specifies the HTTP header name from which CloudFront extracts cache tags from origin responses. When you add ``CacheTagConfig`` to a distribution, CloudFront reads the specified header from origin responses, parses the comma-separated tag values, and stores them with the cached object. You can then invalidate cached objects by tag using the ``CreateInvalidation`` API.",
1547
+ identifier: "CacheTagConfig",
1548
+ });
1549
+
1550
+ type ViewerMtlsMode = "required" | "optional" | "passthrough";
1551
+
1552
+ const ViewerMtlsMode = Schema.Literals([
1553
+ "required",
1554
+ "optional",
1555
+ "passthrough",
1556
+ ]).annotate({ identifier: "ViewerMtlsMode" });
1557
+
1558
+ interface TrustStoreConfig {
1559
+ readonly TrustStoreId: string;
1560
+ readonly AdvertiseTrustStoreCaNames?: boolean;
1561
+ readonly IgnoreCertificateExpiry?: boolean;
1562
+ }
1563
+
1564
+ const TrustStoreConfig = Schema.Struct({
1565
+ TrustStoreId: Schema.String.annotate({ description: "The trust store ID." }),
1566
+ AdvertiseTrustStoreCaNames: Schema.optionalKey(
1567
+ Schema.Boolean.annotate({
1568
+ description:
1569
+ "The configuration to use to advertise trust store CA names.",
1570
+ }),
1571
+ ),
1572
+ IgnoreCertificateExpiry: Schema.optionalKey(
1573
+ Schema.Boolean.annotate({
1574
+ description: "The configuration to use to ignore certificate expiration.",
1575
+ }),
1576
+ ),
1577
+ }).annotate({
1578
+ description: "A trust store configuration.",
1579
+ identifier: "TrustStoreConfig",
1580
+ });
1581
+
1582
+ interface ViewerMtlsConfig {
1583
+ readonly Mode?: ViewerMtlsMode;
1584
+ readonly TrustStoreConfig?: TrustStoreConfig;
1585
+ }
1586
+
1587
+ const ViewerMtlsConfig = Schema.Struct({
1588
+ Mode: Schema.optionalKey(ViewerMtlsMode),
1589
+ TrustStoreConfig: Schema.optionalKey(TrustStoreConfig),
1590
+ }).annotate({
1591
+ description: "A viewer mTLS configuration.",
1592
+ identifier: "ViewerMtlsConfig",
1593
+ });
1594
+
1595
+ interface ViewerCertificate {
1596
+ readonly AcmCertificateArn?: string;
1597
+ readonly CloudFrontDefaultCertificate?: boolean;
1598
+ readonly IamCertificateId?: string;
1599
+ readonly MinimumProtocolVersion?: string;
1600
+ readonly SslSupportMethod?: string;
1601
+ }
1602
+
1603
+ const ViewerCertificate = Schema.Struct({
1604
+ AcmCertificateArn: Schema.optionalKey(
1605
+ Schema.String.annotate({
1606
+ description:
1607
+ "In CloudFormation, this field name is ``AcmCertificateArn``. Note the different capitalization.\n If the distribution uses ``Aliases`` (alternate domain names or CNAMEs) and the SSL/TLS certificate is stored in [(ACM)](https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html), provide the Amazon Resource Name (ARN) of the ACM certificate. CloudFront only supports ACM certificates in the US East (N. Virginia) Region (``us-east-1``).\n If you specify an ACM certificate ARN, you must also specify values for ``MinimumProtocolVersion`` and ``SSLSupportMethod``. (In CloudFormation, the field name is ``SslSupportMethod``. Note the different capitalization.)",
1608
+ }),
1609
+ ),
1610
+ CloudFrontDefaultCertificate: Schema.optionalKey(
1611
+ Schema.Boolean.annotate({
1612
+ description:
1613
+ "If the distribution uses the CloudFront domain name such as ``d111111abcdef8.cloudfront.net``, set this field to ``true``.\n If the distribution uses ``Aliases`` (alternate domain names or CNAMEs), omit this field and specify values for the following fields:\n + ``AcmCertificateArn`` or ``IamCertificateId`` (specify a value for one, not both) \n + ``MinimumProtocolVersion`` \n + ``SslSupportMethod``",
1614
+ }),
1615
+ ),
1616
+ IamCertificateId: Schema.optionalKey(
1617
+ Schema.String.annotate({
1618
+ description:
1619
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n In CloudFormation, this field name is ``IamCertificateId``. Note the different capitalization.\n If the distribution uses ``Aliases`` (alternate domain names or CNAMEs) and the SSL/TLS certificate is stored in [(IAM)](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html), provide the ID of the IAM certificate.\n If you specify an IAM certificate ID, you must also specify values for ``MinimumProtocolVersion`` and ``SSLSupportMethod``. (In CloudFormation, the field name is ``SslSupportMethod``. Note the different capitalization.)",
1620
+ }),
1621
+ ),
1622
+ MinimumProtocolVersion: Schema.optionalKey(
1623
+ Schema.String.annotate({
1624
+ description:
1625
+ "If the distribution uses ``Aliases`` (alternate domain names or CNAMEs), specify the security policy that you want CloudFront to use for HTTPS connections with viewers. The security policy determines two settings:\n + The minimum SSL/TLS protocol that CloudFront can use to communicate with viewers.\n + The ciphers that CloudFront can use to encrypt the content that it returns to viewers.\n \n For more information, see [Security Policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValues-security-policy) and [Supported Protocols and Ciphers Between Viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html#secure-connections-supported-ciphers) in the *Amazon CloudFront Developer Guide*.\n On the CloudFront console, this setting is called *Security Policy*.\n When you're using SNI only (you set ``SSLSupportMethod`` to ``sni-only``), you must specify ``TLSv1`` or higher. (In CloudFormation, the field name is ``SslSupportMethod``. Note the different capitalization.)\n If the distribution uses the CloudFront domain name such as ``d111111abcdef8.cloudfront.net`` (you set ``CloudFrontDefaultCertificate`` to ``true``), CloudFront automatically sets the security policy to ``TLSv1`` regardless of the value that you set here.",
1626
+ }),
1627
+ ),
1628
+ SslSupportMethod: Schema.optionalKey(
1629
+ Schema.String.annotate({
1630
+ description:
1631
+ "In CloudFormation, this field name is ``SslSupportMethod``. Note the different capitalization.\n If the distribution uses ``Aliases`` (alternate domain names or CNAMEs), specify which viewers the distribution accepts HTTPS connections from.\n + ``sni-only`` – The distribution accepts HTTPS connections from only viewers that support [server name indication (SNI)](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Server_Name_Indication). This is recommended. Most browsers and clients support SNI.\n + ``vip`` – The distribution accepts HTTPS connections from all viewers including those that don't support SNI. This is not recommended, and results in additional monthly charges from CloudFront.\n + ``static-ip`` - Do not specify this value unless your distribution has been enabled for this feature by the CloudFront team. If you have a use case that requires static IP addresses for a distribution, contact CloudFront through the [Center](https://docs.aws.amazon.com/support/home).\n \n If the distribution uses the CloudFront domain name such as ``d111111abcdef8.cloudfront.net``, don't set a value for this field.",
1632
+ }),
1633
+ ),
1634
+ }).annotate({
1635
+ description:
1636
+ "A complex type that determines the distribution's SSL/TLS configuration for communicating with viewers.\n If the distribution doesn't use ``Aliases`` (also known as alternate domain names or CNAMEs)—that is, if the distribution uses the CloudFront domain name such as ``d111111abcdef8.cloudfront.net``—set ``CloudFrontDefaultCertificate`` to ``true`` and leave all other fields empty.\n If the distribution uses ``Aliases`` (alternate domain names or CNAMEs), use the fields in this type to specify the following settings:\n + Which viewers the distribution accepts HTTPS connections from: only viewers that support [server name indication (SNI)](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Server_Name_Indication) (recommended), or all viewers including those that don't support SNI.\n + To accept HTTPS connections from only viewers that support SNI, set ``SSLSupportMethod`` to ``sni-only``. This is recommended. Most browsers and clients support SNI. (In CloudFormation, the field name is ``SslSupportMethod``. Note the different capitalization.)\n + To accept HTTPS connections from all viewers, including those that don't support SNI, set ``SSLSupportMethod`` to ``vip``. This is not recommended, and results in additional monthly charges from CloudFront. (In CloudFormation, the field name is ``SslSupportMethod``. Note the different capitalization.)\n \n + The minimum SSL/TLS protocol version that the distribution can use to communicate with viewers. To specify a minimum version, choose a value for ``MinimumProtocolVersion``. For more information, see [Security Policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValues-security-policy) in the *Amazon CloudFront Developer Guide*.\n + The location of the SSL/TLS certificate, [(ACM)](https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html) (recommended) or [(IAM)](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html). You specify the location by setting a value in one of the following fields (not both):\n + ``ACMCertificateArn`` (In CloudFormation, this field name is ``AcmCertificateArn``. Note the different capitalization.)\n + ``IAMCertificateId`` (In CloudFormation, this field name is ``IamCertificateId``. Note the different capitalization.)\n \n \n All distributions support HTTPS connections from viewers. To require viewers to use HTTPS only, or to redirect them from HTTP to HTTPS, use ``ViewerProtocolPolicy`` in the ``CacheBehavior`` or ``DefaultCacheBehavior``. To specify how CloudFront should use SSL/TLS to communicate with your custom origin, use ``CustomOriginConfig``.\n For more information, see [Using HTTPS with CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https.html) and [Using Alternate Domain Names and HTTPS](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-alternate-domain-names.html) in the *Amazon CloudFront Developer Guide*.",
1637
+ identifier: "ViewerCertificate",
1638
+ });
1639
+
1640
+ interface DistributionConfig {
1641
+ readonly Aliases?: ResourceInputItems;
1642
+ readonly AnycastIpListId?: string;
1643
+ readonly CNAMEs?: ResourceInputItems_1;
1644
+ readonly CacheBehaviors?: globalThis.ReadonlyArray<CacheBehavior>;
1645
+ readonly Comment?: string;
1646
+ readonly ConnectionMode?: ConnectionMode;
1647
+ readonly ConnectionFunctionAssociation?: ConnectionFunctionAssociation;
1648
+ readonly ContinuousDeploymentPolicyId?: string;
1649
+ readonly CustomErrorResponses?: ResourceInputItems_5;
1650
+ readonly CustomOrigin?: LegacyCustomOrigin;
1651
+ readonly DefaultCacheBehavior: DefaultCacheBehavior;
1652
+ readonly DefaultRootObject?: string;
1653
+ readonly Enabled: boolean;
1654
+ readonly HttpVersion?: string;
1655
+ readonly IPV6Enabled?: boolean;
1656
+ readonly Logging?: Logging;
1657
+ readonly OriginGroups?: OriginGroups;
1658
+ readonly Origins?: globalThis.ReadonlyArray<Origin>;
1659
+ readonly PriceClass?: string;
1660
+ readonly Restrictions?: Restrictions;
1661
+ readonly S3Origin?: LegacyS3Origin;
1662
+ readonly Staging?: boolean;
1663
+ readonly TenantConfig?: ResourceInputProperties;
1664
+ readonly CacheTagConfig?: CacheTagConfig;
1665
+ readonly ViewerMtlsConfig?: ViewerMtlsConfig;
1666
+ readonly ViewerCertificate?: ViewerCertificate;
1667
+ readonly WebACLId?:
1668
+ | ResourceEntity<{
1669
+ readonly provider: "aws";
1670
+ readonly service: "wafv2";
1671
+ readonly resource: "webacl";
1672
+ }>
1673
+ | string;
1674
+ }
1675
+
1676
+ const DistributionConfig = Schema.Struct({
1677
+ Aliases: Schema.optionalKey(ResourceInputItems),
1678
+ AnycastIpListId: Schema.optionalKey(
1679
+ Schema.String.annotate({
1680
+ description:
1681
+ "To use this field for a multi-tenant distribution, use a connection group instead. For more information, see [ConnectionGroup](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ConnectionGroup.html).\n ID of the Anycast static IP list that is associated with the distribution.",
1682
+ }),
1683
+ ),
1684
+ CNAMEs: Schema.optionalKey(ResourceInputItems_1),
1685
+ CacheBehaviors: Schema.optionalKey(
1686
+ Schema.Array(CacheBehavior).annotate({
1687
+ description:
1688
+ "A complex type that contains zero or more ``CacheBehavior`` elements.",
1689
+ }),
1690
+ ),
1691
+ Comment: Schema.optionalKey(
1692
+ Schema.String.annotate({
1693
+ description:
1694
+ "A comment to describe the distribution. The comment cannot be longer than 128 characters.",
1695
+ }),
1696
+ ),
1697
+ ConnectionMode: Schema.optionalKey(ConnectionMode),
1698
+ ConnectionFunctionAssociation: Schema.optionalKey(
1699
+ ConnectionFunctionAssociation,
1700
+ ),
1701
+ ContinuousDeploymentPolicyId: Schema.optionalKey(
1702
+ Schema.String.annotate({
1703
+ description:
1704
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n The identifier of a continuous deployment policy. For more information, see ``CreateContinuousDeploymentPolicy``.",
1705
+ }),
1706
+ ),
1707
+ CustomErrorResponses: Schema.optionalKey(ResourceInputItems_5),
1708
+ CustomOrigin: Schema.optionalKey(LegacyCustomOrigin),
1709
+ DefaultCacheBehavior: DefaultCacheBehavior,
1710
+ DefaultRootObject: Schema.optionalKey(
1711
+ Schema.String.annotate({
1712
+ description:
1713
+ "When a viewer requests the root URL for your distribution, the default root object is the object that you want CloudFront to request from your origin. For example, if your root URL is ``https://www.example.com``, you can specify CloudFront to return the ``index.html`` file as the default root object. You can specify a default root object so that viewers see a specific file or object, instead of another object in your distribution (for example, ``https://www.example.com/product-description.html``). A default root object avoids exposing the contents of your distribution.\n You can specify the object name or a path to the object name (for example, ``index.html`` or ``exampleFolderName/index.html``). Your string can't begin with a forward slash (``/``). Only specify the object name or the path to the object.\n If you don't want to specify a default root object when you create a distribution, include an empty ``DefaultRootObject`` element.\n To delete the default root object from an existing distribution, update the distribution configuration and include an empty ``DefaultRootObject`` element.\n To replace the default root object, update the distribution configuration and specify the new object.\n For more information about the default root object, see [Specify a default root object](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html) in the *Amazon CloudFront Developer Guide*.",
1714
+ }),
1715
+ ),
1716
+ Enabled: Schema.Boolean.annotate({
1717
+ description:
1718
+ "From this field, you can enable or disable the selected distribution.",
1719
+ }),
1720
+ HttpVersion: Schema.optionalKey(
1721
+ Schema.String.annotate({
1722
+ description:
1723
+ "(Optional) Specify the HTTP version(s) that you want viewers to use to communicate with CF. The default value for new distributions is ``http1.1``.\n For viewers and CF to use HTTP/2, viewers must support TLSv1.2 or later, and must support Server Name Indication (SNI).\n For viewers and CF to use HTTP/3, viewers must support TLSv1.3 and Server Name Indication (SNI). CF supports HTTP/3 connection migration to allow the viewer to switch networks without losing connection. For more information about connection migration, see [Connection Migration](https://docs.aws.amazon.com/https://www.rfc-editor.org/rfc/rfc9000.html#name-connection-migration) at RFC 9000. For more information about supported TLSv1.3 ciphers, see [Supported protocols and ciphers between viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html).",
1724
+ }),
1725
+ ),
1726
+ IPV6Enabled: Schema.optionalKey(
1727
+ Schema.Boolean.annotate({
1728
+ description:
1729
+ "To use this field for a multi-tenant distribution, use a connection group instead. For more information, see [ConnectionGroup](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ConnectionGroup.html).\n If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address for your distribution, specify ``true``. If you specify ``false``, CloudFront responds to IPv6 DNS requests with the DNS response code ``NOERROR`` and with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution.\n In general, you should enable IPv6 if you have users on IPv6 networks who want to access your content. However, if you're using signed URLs or signed cookies to restrict access to your content, and if you're using a custom policy that includes the ``IpAddress`` parameter to restrict the IP addresses that can access your content, don't enable IPv6. If you want to restrict access to some content by IP address and not restrict access to other content (or restrict access but not by IP address), you can create two distributions. For more information, see [Creating a Signed URL Using a Custom Policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html) in the *Amazon CloudFront Developer Guide*.\n If you're using an R53AWSIntlong alias resource record set to route traffic to your CloudFront distribution, you need to create a second alias resource record set when both of the following are true:\n + You enable IPv6 for the distribution\n + You're using alternate domain names in the URLs for your objects\n \n For more information, see [Routing Traffic to an Amazon CloudFront Web Distribution by Using Your Domain Name](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html) in the *Developer Guide*.\n If you created a CNAME resource record set, either with R53AWSIntlong or with another DNS service, you don't need to make any changes. A CNAME record will route traffic to your distribution regardless of the IP address format of the viewer request.",
1730
+ }),
1731
+ ),
1732
+ Logging: Schema.optionalKey(Logging),
1733
+ OriginGroups: Schema.optionalKey(OriginGroups),
1734
+ Origins: Schema.optionalKey(
1735
+ Schema.Array(Origin).annotate({
1736
+ description:
1737
+ "A complex type that contains information about origins for this distribution.\n Specify a value for either the ``Origins`` or ``OriginGroups`` property.",
1738
+ }),
1739
+ ),
1740
+ PriceClass: Schema.optionalKey(
1741
+ Schema.String.annotate({
1742
+ description:
1743
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n The price class that corresponds with the maximum price that you want to pay for CloudFront service. If you specify ``PriceClass_All``, CloudFront responds to requests for your objects from all CloudFront edge locations.\n If you specify a price class other than ``PriceClass_All``, CloudFront serves your objects from the CloudFront edge location that has the lowest latency among the edge locations in your price class. Viewers who are in or near regions that are excluded from your specified price class may encounter slower performance.\n For more information about price classes, see [Choosing the Price Class for a CloudFront Distribution](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PriceClass.html) in the *Amazon CloudFront Developer Guide*. For information about CloudFront pricing, including how price classes (such as Price Class 100) map to CloudFront regions, see [Amazon CloudFront Pricing](https://docs.aws.amazon.com/cloudfront/pricing/).",
1744
+ }),
1745
+ ),
1746
+ Restrictions: Schema.optionalKey(Restrictions),
1747
+ S3Origin: Schema.optionalKey(LegacyS3Origin),
1748
+ Staging: Schema.optionalKey(
1749
+ Schema.Boolean.annotate({
1750
+ description:
1751
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n A Boolean that indicates whether this is a staging distribution. When this value is ``true``, this is a staging distribution. When this value is ``false``, this is not a staging distribution.",
1752
+ }),
1753
+ ),
1754
+ TenantConfig: Schema.optionalKey(ResourceInputProperties),
1755
+ CacheTagConfig: Schema.optionalKey(CacheTagConfig),
1756
+ ViewerMtlsConfig: Schema.optionalKey(ViewerMtlsConfig),
1757
+ ViewerCertificate: Schema.optionalKey(ViewerCertificate),
1758
+ WebACLId: Schema.optionalKey(
1759
+ Schema.Union([
1760
+ Schema.Union([
1761
+ ResourceReferenceSchema(
1762
+ Schema.Struct({
1763
+ provider: Schema.Literal("aws"),
1764
+ service: Schema.Literal("wafv2"),
1765
+ resource: Schema.Literal("webacl"),
1766
+ }),
1767
+ {
1768
+ value: null,
1769
+ outputs: [
1770
+ {
1771
+ source: ["Arn"],
1772
+ target: [],
1773
+ },
1774
+ ],
1775
+ },
1776
+ ).annotate({ expected: "ResourceEntity" }),
1777
+ ]),
1778
+ Schema.String.annotate({
1779
+ description:
1780
+ "Multi-tenant distributions only support WAF V2 web ACLs.\n A unique identifier that specifies the WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of WAF, use the ACL ARN, for example ``arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111``. To specify a web ACL created using WAF Classic, use the ACL ID, for example ``a1b2c3d4-5678-90ab-cdef-EXAMPLE11111``.\n WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests that are forwarded to CloudFront, and lets you control access to your content. Based on conditions that you specify, such as the IP addresses that requests originate from or the values of query strings, CloudFront responds to requests either with the requested content or with an HTTP 403 status code (Forbidden). You can also configure CloudFront to return a custom error page when a request is blocked. For more information about WAF, see the [Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html).",
1781
+ }),
1782
+ ]),
1783
+ ),
1784
+ }).annotate({
1785
+ description: "A distribution configuration.",
1786
+ identifier: "DistributionConfig",
1787
+ });
1788
+
1789
+ interface Tag {
1790
+ readonly Key: string;
1791
+ readonly Value: string;
1792
+ }
1793
+
1794
+ const Tag = Schema.Struct({
1795
+ Key: Schema.String.annotate({
1796
+ description:
1797
+ "A string that contains ``Tag`` key.\n The string length should be between 1 and 128 characters. Valid characters include ``a-z``, ``A-Z``, ``0-9``, space, and the special characters ``_ - . : / = + @``.",
1798
+ }),
1799
+ Value: Schema.String.annotate({
1800
+ description:
1801
+ "A string that contains an optional ``Tag`` value.\n The string length should be between 0 and 256 characters. Valid characters include ``a-z``, ``A-Z``, ``0-9``, space, and the special characters ``_ - . : / = + @``.",
1802
+ }),
1803
+ }).annotate({
1804
+ description: "A complex type that contains ``Tag`` key and ``Tag`` value.",
1805
+ identifier: "Tag",
1806
+ });
1807
+
1808
+ type ResourceInputItems_10 = globalThis.ReadonlyArray<Tag>;
1809
+
1810
+ const ResourceInputItems_10 = Schema.Array(Tag).annotate({
1811
+ description: "A complex type that contains zero or more ``Tag`` elements.",
1812
+ });
1813
+
1814
+ interface FunctionAssociation_2 {
1815
+ readonly EventType?: string;
1816
+ readonly FunctionARN?: string;
1817
+ }
1818
+
1819
+ const FunctionAssociation_2 = Schema.Struct({
1820
+ EventType: Schema.optionalKey(
1821
+ Schema.String.annotate({
1822
+ description:
1823
+ "The event type of the function, either ``viewer-request`` or ``viewer-response``. You cannot use origin-facing event types (``origin-request`` and ``origin-response``) with a CloudFront function.",
1824
+ }),
1825
+ ),
1826
+ FunctionARN: Schema.optionalKey(
1827
+ Schema.String.annotate({
1828
+ description: "The Amazon Resource Name (ARN) of the function.",
1829
+ }),
1830
+ ),
1831
+ }).annotate({
1832
+ description:
1833
+ "A CloudFront function that is associated with a cache behavior in a CloudFront distribution.",
1834
+ identifier: "FunctionAssociation_2",
1835
+ });
1836
+
1837
+ interface LambdaFunctionAssociation_2 {
1838
+ readonly EventType?: string;
1839
+ readonly IncludeBody?: boolean;
1840
+ readonly LambdaFunctionARN?: string;
1841
+ }
1842
+
1843
+ const LambdaFunctionAssociation_2 = Schema.Struct({
1844
+ EventType: Schema.optionalKey(
1845
+ Schema.String.annotate({
1846
+ description:
1847
+ "Specifies the event type that triggers a Lambda@Edge function invocation. You can specify the following values:\n + ``viewer-request``: The function executes when CloudFront receives a request from a viewer and before it checks to see whether the requested object is in the edge cache.\n + ``origin-request``: The function executes only when CloudFront sends a request to your origin. When the requested object is in the edge cache, the function doesn't execute.\n + ``origin-response``: The function executes after CloudFront receives a response from the origin and before it caches the object in the response. When the requested object is in the edge cache, the function doesn't execute.\n + ``viewer-response``: The function executes before CloudFront returns the requested object to the viewer. The function executes regardless of whether the object was already in the edge cache.\n If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.",
1848
+ }),
1849
+ ),
1850
+ IncludeBody: Schema.optionalKey(
1851
+ Schema.Boolean.annotate({
1852
+ description:
1853
+ "A flag that allows a Lambda@Edge function to have read access to the body content. For more information, see [Accessing the Request Body by Choosing the Include Body Option](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html) in the Amazon CloudFront Developer Guide.",
1854
+ }),
1855
+ ),
1856
+ LambdaFunctionARN: Schema.optionalKey(
1857
+ Schema.String.annotate({
1858
+ description:
1859
+ "The ARN of the Lambda@Edge function. You must specify the ARN of a function version; you can't specify an alias or $LATEST.",
1860
+ }),
1861
+ ),
1862
+ }).annotate({
1863
+ description:
1864
+ "A complex type that contains a Lambda@Edge function association.",
1865
+ identifier: "LambdaFunctionAssociation_2",
1866
+ });
1867
+
1868
+ interface CacheBehavior_1 {
1869
+ readonly AllowedMethods?: ResourceInputItems_2;
1870
+ readonly CachePolicyId?: string;
1871
+ readonly CachedMethods?: ResourceInputItems_3;
1872
+ readonly Compress?: boolean;
1873
+ readonly DefaultTTL?: number;
1874
+ readonly FieldLevelEncryptionId?: string;
1875
+ readonly ForwardedValues?: ForwardedValues;
1876
+ readonly FunctionAssociations?: globalThis.ReadonlyArray<FunctionAssociation_2>;
1877
+ readonly GrpcConfig?: GrpcConfig;
1878
+ readonly LambdaFunctionAssociations?: globalThis.ReadonlyArray<LambdaFunctionAssociation_2>;
1879
+ readonly MaxTTL?: number;
1880
+ readonly MinTTL?: number;
1881
+ readonly OriginRequestPolicyId?: string;
1882
+ readonly PathPattern: string;
1883
+ readonly RealtimeLogConfigArn?: string;
1884
+ readonly ResponseHeadersPolicyId?: string;
1885
+ readonly SmoothStreaming?: boolean;
1886
+ readonly TargetOriginId: string;
1887
+ readonly TrustedKeyGroups?: globalThis.ReadonlyArray<string>;
1888
+ readonly TrustedSigners?: ResourceInputItems_4;
1889
+ readonly ViewerProtocolPolicy: string;
1890
+ }
1891
+
1892
+ const CacheBehavior_1 = Schema.Struct({
1893
+ AllowedMethods: Schema.optionalKey(ResourceInputItems_2),
1894
+ CachePolicyId: Schema.optionalKey(
1895
+ Schema.String.annotate({
1896
+ description:
1897
+ "The unique identifier of the cache policy that is attached to this cache behavior. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n A ``CacheBehavior`` must include either a ``CachePolicyId`` or ``ForwardedValues``. We recommend that you use a ``CachePolicyId``.",
1898
+ }),
1899
+ ),
1900
+ CachedMethods: Schema.optionalKey(ResourceInputItems_3),
1901
+ Compress: Schema.optionalKey(
1902
+ Schema.Boolean.annotate({
1903
+ description:
1904
+ "Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true; if not, specify false. For more information, see [Serving Compressed Files](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) in the *Amazon CloudFront Developer Guide*.",
1905
+ }),
1906
+ ),
1907
+ DefaultTTL: Schema.optionalKey(
1908
+ Schema.Number.annotate({
1909
+ description:
1910
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use the ``DefaultTTL`` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n The default amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as ``Cache-Control max-age``, ``Cache-Control s-maxage``, and ``Expires`` to objects. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.",
1911
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
1912
+ ),
1913
+ FieldLevelEncryptionId: Schema.optionalKey(
1914
+ Schema.String.annotate({
1915
+ description:
1916
+ "The value of ``ID`` for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for this cache behavior.",
1917
+ }),
1918
+ ),
1919
+ ForwardedValues: Schema.optionalKey(ForwardedValues),
1920
+ FunctionAssociations: Schema.optionalKey(
1921
+ Schema.Array(FunctionAssociation_2).annotate({
1922
+ description:
1923
+ "A list of CloudFront functions that are associated with this cache behavior. CloudFront functions must be published to the ``LIVE`` stage to associate them with a cache behavior.",
1924
+ }),
1925
+ ),
1926
+ GrpcConfig: Schema.optionalKey(GrpcConfig),
1927
+ LambdaFunctionAssociations: Schema.optionalKey(
1928
+ Schema.Array(LambdaFunctionAssociation_2).annotate({
1929
+ description:
1930
+ "A complex type that contains zero or more Lambda@Edge function associations for a cache behavior.",
1931
+ }),
1932
+ ),
1933
+ MaxTTL: Schema.optionalKey(
1934
+ Schema.Number.annotate({
1935
+ description:
1936
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use the ``MaxTTL`` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n The maximum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as ``Cache-Control max-age``, ``Cache-Control s-maxage``, and ``Expires`` to objects. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.",
1937
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
1938
+ ),
1939
+ MinTTL: Schema.optionalKey(
1940
+ Schema.Number.annotate({
1941
+ description:
1942
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use the ``MinTTL`` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.\n You must specify ``0`` for ``MinTTL`` if you configure CloudFront to forward all headers to your origin (under ``Headers``, if you specify ``1`` for ``Quantity`` and ``*`` for ``Name``).",
1943
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
1944
+ ),
1945
+ OriginRequestPolicyId: Schema.optionalKey(
1946
+ Schema.String.annotate({
1947
+ description:
1948
+ "The unique identifier of the origin request policy that is attached to this cache behavior. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) or [Using the managed origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) in the *Amazon CloudFront Developer Guide*.",
1949
+ }),
1950
+ ),
1951
+ PathPattern: Schema.String.annotate({
1952
+ description:
1953
+ "The pattern (for example, ``images/*.jpg``) that specifies which requests to apply the behavior to. When CloudFront receives a viewer request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution.\n You can optionally include a slash (``/``) at the beginning of the path pattern. For example, ``/images/*.jpg``. CloudFront behavior is the same with or without the leading ``/``.\n The path pattern for the default cache behavior is ``*`` and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.\n For more information, see [Path Pattern](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesPathPattern) in the *Amazon CloudFront Developer Guide*.",
1954
+ }),
1955
+ RealtimeLogConfigArn: Schema.optionalKey(
1956
+ Schema.String.annotate({
1957
+ description:
1958
+ "The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see [Real-time logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html) in the *Amazon CloudFront Developer Guide*.",
1959
+ }),
1960
+ ),
1961
+ ResponseHeadersPolicyId: Schema.optionalKey(
1962
+ Schema.String.annotate({
1963
+ description: "The identifier for a response headers policy.",
1964
+ }),
1965
+ ),
1966
+ SmoothStreaming: Schema.optionalKey(
1967
+ Schema.Boolean.annotate({
1968
+ description:
1969
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify ``true``; if not, specify ``false``. If you specify ``true`` for ``SmoothStreaming``, you can still distribute other content using this cache behavior if the content matches the value of ``PathPattern``.",
1970
+ }),
1971
+ ),
1972
+ TargetOriginId: Schema.String.annotate({
1973
+ description:
1974
+ "The value of ``ID`` for the origin that you want CloudFront to route requests to when they match this cache behavior.",
1975
+ }),
1976
+ TrustedKeyGroups: Schema.optionalKey(
1977
+ Schema.Array(Schema.String).annotate({
1978
+ description:
1979
+ "A list of key groups that CloudFront can use to validate signed URLs or signed cookies.\n When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see [Serving private content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide*.",
1980
+ }),
1981
+ ),
1982
+ TrustedSigners: Schema.optionalKey(ResourceInputItems_4),
1983
+ ViewerProtocolPolicy: Schema.String.annotate({
1984
+ description:
1985
+ "The protocol that viewers can use to access the files in the origin specified by ``TargetOriginId`` when a request matches the path pattern in ``PathPattern``. You can specify the following options:\n + ``allow-all``: Viewers can use HTTP or HTTPS.\n + ``redirect-to-https``: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.\n + ``https-only``: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).\n \n For more information about requiring the HTTPS protocol, see [Requiring HTTPS Between Viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html) in the *Amazon CloudFront Developer Guide*.\n The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects' cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see [Managing Cache Expiration](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.",
1986
+ }),
1987
+ }).annotate({
1988
+ description:
1989
+ "A complex type that describes how CloudFront processes requests.\n You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to serve objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin is never used.\n For the current quota (formerly known as limit) on the number of cache behaviors that you can add to a distribution, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) in the *Amazon CloudFront Developer Guide*.\n If you don't want to specify any cache behaviors, include only an empty ``CacheBehaviors`` element. Don't specify an empty individual ``CacheBehavior`` element, because this is invalid. For more information, see [CacheBehaviors](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehaviors.html). \n To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty ``CacheBehaviors`` element.\n To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution.\n If your minimum TTL is greater than 0, CloudFront will cache content for at least the duration specified in the cache policy's minimum TTL, even if the ``Cache-Control: no-cache``, ``no-store``, or ``private`` directives are present in the origin headers.\n For more information about cache behaviors, see [Cache Behavior Settings](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior) in the *Amazon CloudFront Developer Guide*.",
1990
+ identifier: "CacheBehavior_1",
1991
+ });
1992
+
1993
+ interface DefaultCacheBehavior_1 {
1994
+ readonly AllowedMethods?: ResourceInputItems_6;
1995
+ readonly CachePolicyId?: string;
1996
+ readonly CachedMethods?: ResourceInputItems_7;
1997
+ readonly Compress?: boolean;
1998
+ readonly DefaultTTL?: number;
1999
+ readonly FieldLevelEncryptionId?: string;
2000
+ readonly ForwardedValues?: ForwardedValues;
2001
+ readonly FunctionAssociations?: globalThis.ReadonlyArray<FunctionAssociation_2>;
2002
+ readonly GrpcConfig?: GrpcConfig;
2003
+ readonly LambdaFunctionAssociations?: globalThis.ReadonlyArray<LambdaFunctionAssociation_2>;
2004
+ readonly MaxTTL?: number;
2005
+ readonly MinTTL?: number;
2006
+ readonly OriginRequestPolicyId?: string;
2007
+ readonly RealtimeLogConfigArn?: string;
2008
+ readonly ResponseHeadersPolicyId?: string;
2009
+ readonly SmoothStreaming?: boolean;
2010
+ readonly TargetOriginId: string;
2011
+ readonly TrustedKeyGroups?: globalThis.ReadonlyArray<string>;
2012
+ readonly TrustedSigners?: ResourceInputItems_8;
2013
+ readonly ViewerProtocolPolicy: string;
2014
+ }
2015
+
2016
+ const DefaultCacheBehavior_1 = Schema.Struct({
2017
+ AllowedMethods: Schema.optionalKey(ResourceInputItems_6),
2018
+ CachePolicyId: Schema.optionalKey(
2019
+ Schema.String.annotate({
2020
+ description:
2021
+ "The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n A ``DefaultCacheBehavior`` must include either a ``CachePolicyId`` or ``ForwardedValues``. We recommend that you use a ``CachePolicyId``.",
2022
+ }),
2023
+ ),
2024
+ CachedMethods: Schema.optionalKey(ResourceInputItems_7),
2025
+ Compress: Schema.optionalKey(
2026
+ Schema.Boolean.annotate({
2027
+ description:
2028
+ "Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify ``true``; if not, specify ``false``. For more information, see [Serving Compressed Files](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) in the *Amazon CloudFront Developer Guide*.",
2029
+ }),
2030
+ ),
2031
+ DefaultTTL: Schema.optionalKey(
2032
+ Schema.Number.annotate({
2033
+ description:
2034
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use the ``DefaultTTL`` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n The default amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as ``Cache-Control max-age``, ``Cache-Control s-maxage``, and ``Expires`` to objects. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.",
2035
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
2036
+ ),
2037
+ FieldLevelEncryptionId: Schema.optionalKey(
2038
+ Schema.String.annotate({
2039
+ description:
2040
+ "The value of ``ID`` for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.",
2041
+ }),
2042
+ ),
2043
+ ForwardedValues: Schema.optionalKey(ForwardedValues),
2044
+ FunctionAssociations: Schema.optionalKey(
2045
+ Schema.Array(FunctionAssociation_2).annotate({
2046
+ description:
2047
+ "A list of CloudFront functions that are associated with this cache behavior. Your functions must be published to the ``LIVE`` stage to associate them with a cache behavior.",
2048
+ }),
2049
+ ),
2050
+ GrpcConfig: Schema.optionalKey(GrpcConfig),
2051
+ LambdaFunctionAssociations: Schema.optionalKey(
2052
+ Schema.Array(LambdaFunctionAssociation_2).annotate({
2053
+ description:
2054
+ "A complex type that contains zero or more Lambda@Edge function associations for a cache behavior.",
2055
+ }),
2056
+ ),
2057
+ MaxTTL: Schema.optionalKey(
2058
+ Schema.Number.annotate({
2059
+ description:
2060
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use the ``MaxTTL`` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n The maximum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as ``Cache-Control max-age``, ``Cache-Control s-maxage``, and ``Expires`` to objects. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.",
2061
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
2062
+ ),
2063
+ MinTTL: Schema.optionalKey(
2064
+ Schema.Number.annotate({
2065
+ description:
2066
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n This field is deprecated. We recommend that you use the ``MinTTL`` field in a cache policy instead of this field. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) or [Using the managed cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html) in the *Amazon CloudFront Developer Guide*.\n The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see [Managing How Long Content Stays in an Edge Cache (Expiration)](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.\n You must specify ``0`` for ``MinTTL`` if you configure CloudFront to forward all headers to your origin (under ``Headers``, if you specify ``1`` for ``Quantity`` and ``*`` for ``Name``).",
2067
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
2068
+ ),
2069
+ OriginRequestPolicyId: Schema.optionalKey(
2070
+ Schema.String.annotate({
2071
+ description:
2072
+ "The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) or [Using the managed origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html) in the *Amazon CloudFront Developer Guide*.",
2073
+ }),
2074
+ ),
2075
+ RealtimeLogConfigArn: Schema.optionalKey(
2076
+ Schema.String.annotate({
2077
+ description:
2078
+ "The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see [Real-time logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html) in the *Amazon CloudFront Developer Guide*.",
2079
+ }),
2080
+ ),
2081
+ ResponseHeadersPolicyId: Schema.optionalKey(
2082
+ Schema.String.annotate({
2083
+ description: "The identifier for a response headers policy.",
2084
+ }),
2085
+ ),
2086
+ SmoothStreaming: Schema.optionalKey(
2087
+ Schema.Boolean.annotate({
2088
+ description:
2089
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify ``true``; if not, specify ``false``. If you specify ``true`` for ``SmoothStreaming``, you can still distribute other content using this cache behavior if the content matches the value of ``PathPattern``.",
2090
+ }),
2091
+ ),
2092
+ TargetOriginId: Schema.String.annotate({
2093
+ description:
2094
+ "The value of ``ID`` for the origin that you want CloudFront to route requests to when they use the default cache behavior.",
2095
+ }),
2096
+ TrustedKeyGroups: Schema.optionalKey(
2097
+ Schema.Array(Schema.String).annotate({
2098
+ description:
2099
+ "A list of key groups that CloudFront can use to validate signed URLs or signed cookies.\n When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see [Serving private content](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) in the *Amazon CloudFront Developer Guide*.",
2100
+ }),
2101
+ ),
2102
+ TrustedSigners: Schema.optionalKey(ResourceInputItems_8),
2103
+ ViewerProtocolPolicy: Schema.String.annotate({
2104
+ description:
2105
+ "The protocol that viewers can use to access the files in the origin specified by ``TargetOriginId`` when a request matches the path pattern in ``PathPattern``. You can specify the following options:\n + ``allow-all``: Viewers can use HTTP or HTTPS.\n + ``redirect-to-https``: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.\n + ``https-only``: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).\n \n For more information about requiring the HTTPS protocol, see [Requiring HTTPS Between Viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html) in the *Amazon CloudFront Developer Guide*.\n The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects' cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see [Managing Cache Expiration](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.",
2106
+ }),
2107
+ }).annotate({
2108
+ description:
2109
+ "A complex type that describes the default cache behavior if you don't specify a ``CacheBehavior`` element or if request URLs don't match any of the values of ``PathPattern`` in ``CacheBehavior`` elements. You must create exactly one default cache behavior.\n If your minimum TTL is greater than 0, CloudFront will cache content for at least the duration specified in the cache policy's minimum TTL, even if the ``Cache-Control: no-cache``, ``no-store``, or ``private`` directives are present in the origin headers.",
2110
+ identifier: "DefaultCacheBehavior_1",
2111
+ });
2112
+
2113
+ interface Origin_1 {
2114
+ readonly ConnectionAttempts?: number;
2115
+ readonly ConnectionTimeout?: number;
2116
+ readonly ResponseCompletionTimeout?: number;
2117
+ readonly CustomOriginConfig?: CustomOriginConfig;
2118
+ readonly DomainName: string;
2119
+ readonly Id: string;
2120
+ readonly OriginAccessControlId?: string;
2121
+ readonly OriginCustomHeaders?: ResourceInputItems_9;
2122
+ readonly OriginPath?: string;
2123
+ readonly OriginShield?: OriginShield;
2124
+ readonly S3OriginConfig?: S3OriginConfig;
2125
+ readonly VpcOriginConfig?: VpcOriginConfig;
2126
+ }
2127
+
2128
+ const Origin_1 = Schema.Struct({
2129
+ ConnectionAttempts: Schema.optionalKey(
2130
+ Schema.Number.annotate({
2131
+ description:
2132
+ "The number of times that CloudFront attempts to connect to the origin. The minimum number is 1, the maximum is 3, and the default (if you don't specify otherwise) is 3.\n For a custom origin (including an Amazon S3 bucket that's configured with static website hosting), this value also specifies the number of times that CloudFront attempts to get a response from the origin, in the case of an [Origin Response Timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout).\n For more information, see [Origin Connection Attempts](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-attempts) in the *Amazon CloudFront Developer Guide*.",
2133
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2134
+ ),
2135
+ ConnectionTimeout: Schema.optionalKey(
2136
+ Schema.Number.annotate({
2137
+ description:
2138
+ "The number of seconds that CloudFront waits when trying to establish a connection to the origin. The minimum timeout is 1 second, the maximum is 10 seconds, and the default (if you don't specify otherwise) is 10 seconds.\n For more information, see [Origin Connection Timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-timeout) in the *Amazon CloudFront Developer Guide*.",
2139
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2140
+ ),
2141
+ ResponseCompletionTimeout: Schema.optionalKey(
2142
+ Schema.Number.annotate({
2143
+ description:
2144
+ "The time (in seconds) that a request from CloudFront to the origin can stay open and wait for a response. If the complete response isn't received from the origin by this time, CloudFront ends the connection.\n The value for ``ResponseCompletionTimeout`` must be equal to or greater than the value for ``OriginReadTimeout``. If you don't set a value for ``ResponseCompletionTimeout``, CloudFront doesn't enforce a maximum value.\n For more information, see [Response completion timeout](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#response-completion-timeout) in the *Amazon CloudFront Developer Guide*.",
2145
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2146
+ ),
2147
+ CustomOriginConfig: Schema.optionalKey(CustomOriginConfig),
2148
+ DomainName: Schema.String.annotate({
2149
+ description:
2150
+ "The domain name for the origin.\n For more information, see [Origin Domain Name](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesDomainName) in the *Amazon CloudFront Developer Guide*.",
2151
+ }),
2152
+ Id: Schema.String.annotate({
2153
+ description:
2154
+ "A unique identifier for the origin. This value must be unique within the distribution.\n Use this value to specify the ``TargetOriginId`` in a ``CacheBehavior`` or ``DefaultCacheBehavior``.",
2155
+ }),
2156
+ OriginAccessControlId: Schema.optionalKey(
2157
+ Schema.String.annotate({
2158
+ description:
2159
+ "The unique identifier of an origin access control for this origin.\n For more information, see [Restricting access to an Amazon S3 origin](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html) in the *Amazon CloudFront Developer Guide*.",
2160
+ }),
2161
+ ),
2162
+ OriginCustomHeaders: Schema.optionalKey(ResourceInputItems_9),
2163
+ OriginPath: Schema.optionalKey(
2164
+ Schema.String.annotate({
2165
+ description:
2166
+ "An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.\n For more information, see [Origin Path](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginPath) in the *Amazon CloudFront Developer Guide*.",
2167
+ }),
2168
+ ),
2169
+ OriginShield: Schema.optionalKey(OriginShield),
2170
+ S3OriginConfig: Schema.optionalKey(S3OriginConfig),
2171
+ VpcOriginConfig: Schema.optionalKey(VpcOriginConfig),
2172
+ }).annotate({
2173
+ description:
2174
+ "An origin.\n An origin is the location where content is stored, and from which CloudFront gets content to serve to viewers. To specify an origin:\n + Use ``S3OriginConfig`` to specify an Amazon S3 bucket that is not configured with static website hosting.\n + Use ``VpcOriginConfig`` to specify a VPC origin.\n + Use ``CustomOriginConfig`` to specify all other kinds of origins, including:\n + An Amazon S3 bucket that is configured with static website hosting\n + An Elastic Load Balancing load balancer\n + An EMPlong endpoint\n + An EMSlong container\n + Any other HTTP server, running on an Amazon EC2 instance or any other kind of host\n \n \n For the current maximum number of origins that you can specify per distribution, see [General Quotas on Web Distributions](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html#limits-web-distributions) in the *Amazon CloudFront Developer Guide* (quotas were formerly referred to as limits).",
2175
+ identifier: "Origin_1",
2176
+ });
2177
+
2178
+ interface DistributionConfig_1 {
2179
+ readonly Aliases?: ResourceInputItems;
2180
+ readonly AnycastIpListId?: string;
2181
+ readonly CNAMEs?: ResourceInputItems_1;
2182
+ readonly CacheBehaviors?: globalThis.ReadonlyArray<CacheBehavior_1>;
2183
+ readonly Comment?: string;
2184
+ readonly ConnectionMode?: ConnectionMode;
2185
+ readonly ConnectionFunctionAssociation?: ConnectionFunctionAssociation;
2186
+ readonly ContinuousDeploymentPolicyId?: string;
2187
+ readonly CustomErrorResponses?: ResourceInputItems_5;
2188
+ readonly CustomOrigin?: LegacyCustomOrigin;
2189
+ readonly DefaultCacheBehavior: DefaultCacheBehavior_1;
2190
+ readonly DefaultRootObject?: string;
2191
+ readonly Enabled: boolean;
2192
+ readonly HttpVersion?: string;
2193
+ readonly IPV6Enabled?: boolean;
2194
+ readonly Logging?: Logging;
2195
+ readonly OriginGroups?: OriginGroups;
2196
+ readonly Origins?: globalThis.ReadonlyArray<Origin_1>;
2197
+ readonly PriceClass?: string;
2198
+ readonly Restrictions?: Restrictions;
2199
+ readonly S3Origin?: LegacyS3Origin;
2200
+ readonly Staging?: boolean;
2201
+ readonly TenantConfig?: ResourceInputProperties;
2202
+ readonly CacheTagConfig?: CacheTagConfig;
2203
+ readonly ViewerMtlsConfig?: ViewerMtlsConfig;
2204
+ readonly ViewerCertificate?: ViewerCertificate;
2205
+ readonly WebACLId?: string;
2206
+ }
2207
+
2208
+ const DistributionConfig_1 = Schema.Struct({
2209
+ Aliases: Schema.optionalKey(ResourceInputItems),
2210
+ AnycastIpListId: Schema.optionalKey(
2211
+ Schema.String.annotate({
2212
+ description:
2213
+ "To use this field for a multi-tenant distribution, use a connection group instead. For more information, see [ConnectionGroup](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ConnectionGroup.html).\n ID of the Anycast static IP list that is associated with the distribution.",
2214
+ }),
2215
+ ),
2216
+ CNAMEs: Schema.optionalKey(ResourceInputItems_1),
2217
+ CacheBehaviors: Schema.optionalKey(
2218
+ Schema.Array(CacheBehavior_1).annotate({
2219
+ description:
2220
+ "A complex type that contains zero or more ``CacheBehavior`` elements.",
2221
+ }),
2222
+ ),
2223
+ Comment: Schema.optionalKey(
2224
+ Schema.String.annotate({
2225
+ description:
2226
+ "A comment to describe the distribution. The comment cannot be longer than 128 characters.",
2227
+ }),
2228
+ ),
2229
+ ConnectionMode: Schema.optionalKey(ConnectionMode),
2230
+ ConnectionFunctionAssociation: Schema.optionalKey(
2231
+ ConnectionFunctionAssociation,
2232
+ ),
2233
+ ContinuousDeploymentPolicyId: Schema.optionalKey(
2234
+ Schema.String.annotate({
2235
+ description:
2236
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n The identifier of a continuous deployment policy. For more information, see ``CreateContinuousDeploymentPolicy``.",
2237
+ }),
2238
+ ),
2239
+ CustomErrorResponses: Schema.optionalKey(ResourceInputItems_5),
2240
+ CustomOrigin: Schema.optionalKey(LegacyCustomOrigin),
2241
+ DefaultCacheBehavior: DefaultCacheBehavior_1,
2242
+ DefaultRootObject: Schema.optionalKey(
2243
+ Schema.String.annotate({
2244
+ description:
2245
+ "When a viewer requests the root URL for your distribution, the default root object is the object that you want CloudFront to request from your origin. For example, if your root URL is ``https://www.example.com``, you can specify CloudFront to return the ``index.html`` file as the default root object. You can specify a default root object so that viewers see a specific file or object, instead of another object in your distribution (for example, ``https://www.example.com/product-description.html``). A default root object avoids exposing the contents of your distribution.\n You can specify the object name or a path to the object name (for example, ``index.html`` or ``exampleFolderName/index.html``). Your string can't begin with a forward slash (``/``). Only specify the object name or the path to the object.\n If you don't want to specify a default root object when you create a distribution, include an empty ``DefaultRootObject`` element.\n To delete the default root object from an existing distribution, update the distribution configuration and include an empty ``DefaultRootObject`` element.\n To replace the default root object, update the distribution configuration and specify the new object.\n For more information about the default root object, see [Specify a default root object](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html) in the *Amazon CloudFront Developer Guide*.",
2246
+ }),
2247
+ ),
2248
+ Enabled: Schema.Boolean.annotate({
2249
+ description:
2250
+ "From this field, you can enable or disable the selected distribution.",
2251
+ }),
2252
+ HttpVersion: Schema.optionalKey(
2253
+ Schema.String.annotate({
2254
+ description:
2255
+ "(Optional) Specify the HTTP version(s) that you want viewers to use to communicate with CF. The default value for new distributions is ``http1.1``.\n For viewers and CF to use HTTP/2, viewers must support TLSv1.2 or later, and must support Server Name Indication (SNI).\n For viewers and CF to use HTTP/3, viewers must support TLSv1.3 and Server Name Indication (SNI). CF supports HTTP/3 connection migration to allow the viewer to switch networks without losing connection. For more information about connection migration, see [Connection Migration](https://docs.aws.amazon.com/https://www.rfc-editor.org/rfc/rfc9000.html#name-connection-migration) at RFC 9000. For more information about supported TLSv1.3 ciphers, see [Supported protocols and ciphers between viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html).",
2256
+ }),
2257
+ ),
2258
+ IPV6Enabled: Schema.optionalKey(
2259
+ Schema.Boolean.annotate({
2260
+ description:
2261
+ "To use this field for a multi-tenant distribution, use a connection group instead. For more information, see [ConnectionGroup](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ConnectionGroup.html).\n If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address for your distribution, specify ``true``. If you specify ``false``, CloudFront responds to IPv6 DNS requests with the DNS response code ``NOERROR`` and with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution.\n In general, you should enable IPv6 if you have users on IPv6 networks who want to access your content. However, if you're using signed URLs or signed cookies to restrict access to your content, and if you're using a custom policy that includes the ``IpAddress`` parameter to restrict the IP addresses that can access your content, don't enable IPv6. If you want to restrict access to some content by IP address and not restrict access to other content (or restrict access but not by IP address), you can create two distributions. For more information, see [Creating a Signed URL Using a Custom Policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html) in the *Amazon CloudFront Developer Guide*.\n If you're using an R53AWSIntlong alias resource record set to route traffic to your CloudFront distribution, you need to create a second alias resource record set when both of the following are true:\n + You enable IPv6 for the distribution\n + You're using alternate domain names in the URLs for your objects\n \n For more information, see [Routing Traffic to an Amazon CloudFront Web Distribution by Using Your Domain Name](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html) in the *Developer Guide*.\n If you created a CNAME resource record set, either with R53AWSIntlong or with another DNS service, you don't need to make any changes. A CNAME record will route traffic to your distribution regardless of the IP address format of the viewer request.",
2262
+ }),
2263
+ ),
2264
+ Logging: Schema.optionalKey(Logging),
2265
+ OriginGroups: Schema.optionalKey(OriginGroups),
2266
+ Origins: Schema.optionalKey(
2267
+ Schema.Array(Origin_1).annotate({
2268
+ description:
2269
+ "A complex type that contains information about origins for this distribution.\n Specify a value for either the ``Origins`` or ``OriginGroups`` property.",
2270
+ }),
2271
+ ),
2272
+ PriceClass: Schema.optionalKey(
2273
+ Schema.String.annotate({
2274
+ description:
2275
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n The price class that corresponds with the maximum price that you want to pay for CloudFront service. If you specify ``PriceClass_All``, CloudFront responds to requests for your objects from all CloudFront edge locations.\n If you specify a price class other than ``PriceClass_All``, CloudFront serves your objects from the CloudFront edge location that has the lowest latency among the edge locations in your price class. Viewers who are in or near regions that are excluded from your specified price class may encounter slower performance.\n For more information about price classes, see [Choosing the Price Class for a CloudFront Distribution](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PriceClass.html) in the *Amazon CloudFront Developer Guide*. For information about CloudFront pricing, including how price classes (such as Price Class 100) map to CloudFront regions, see [Amazon CloudFront Pricing](https://docs.aws.amazon.com/cloudfront/pricing/).",
2276
+ }),
2277
+ ),
2278
+ Restrictions: Schema.optionalKey(Restrictions),
2279
+ S3Origin: Schema.optionalKey(LegacyS3Origin),
2280
+ Staging: Schema.optionalKey(
2281
+ Schema.Boolean.annotate({
2282
+ description:
2283
+ "This field only supports standard distributions. You can't specify this field for multi-tenant distributions. For more information, see [Unsupported features for SaaS Manager for Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-config-options.html#unsupported-saas) in the *Amazon CloudFront Developer Guide*.\n A Boolean that indicates whether this is a staging distribution. When this value is ``true``, this is a staging distribution. When this value is ``false``, this is not a staging distribution.",
2284
+ }),
2285
+ ),
2286
+ TenantConfig: Schema.optionalKey(ResourceInputProperties),
2287
+ CacheTagConfig: Schema.optionalKey(CacheTagConfig),
2288
+ ViewerMtlsConfig: Schema.optionalKey(ViewerMtlsConfig),
2289
+ ViewerCertificate: Schema.optionalKey(ViewerCertificate),
2290
+ WebACLId: Schema.optionalKey(
2291
+ Schema.String.annotate({
2292
+ description:
2293
+ "Multi-tenant distributions only support WAF V2 web ACLs.\n A unique identifier that specifies the WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of WAF, use the ACL ARN, for example ``arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111``. To specify a web ACL created using WAF Classic, use the ACL ID, for example ``a1b2c3d4-5678-90ab-cdef-EXAMPLE11111``.\n WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests that are forwarded to CloudFront, and lets you control access to your content. Based on conditions that you specify, such as the IP addresses that requests originate from or the values of query strings, CloudFront responds to requests either with the requested content or with an HTTP 403 status code (Forbidden). You can also configure CloudFront to return a custom error page when a request is blocked. For more information about WAF, see the [Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html).",
2294
+ }),
2295
+ ),
2296
+ }).annotate({
2297
+ description: "A distribution configuration.",
2298
+ identifier: "DistributionConfig_1",
2299
+ });
2300
+
2301
+ export interface AWSDistributionProps {
2302
+ readonly DistributionConfig: DistributionConfig;
2303
+ readonly Tags?: ResourceInputItems_10;
2304
+ }
2305
+
2306
+ export const AWSDistributionResourceSchema =
2307
+ ResourceSchemaAnnotationSchema.make({
2308
+ provider: "aws",
2309
+ service: "cloudfront",
2310
+ resource: "distribution",
2311
+ operation: "create",
2312
+ stateSecretOutputKeys: [],
2313
+ primaryIdentifier: ["/properties/Id"],
2314
+ });
2315
+
2316
+ export const AWSDistributionPropsSchema = annotateResourceSchema(
2317
+ Schema.Struct({
2318
+ DistributionConfig: DistributionConfig,
2319
+ Tags: Schema.optionalKey(ResourceInputItems_10),
2320
+ }),
2321
+ AWSDistributionResourceSchema,
2322
+ );
2323
+
2324
+ export interface AWSDistributionOutputs {
2325
+ readonly Id?: string;
2326
+ readonly DomainName?: string;
2327
+ }
2328
+
2329
+ export const AWSDistributionOutputsSchema = Schema.Struct({
2330
+ Id: Schema.optionalKey(Schema.String.annotate({ description: "" })),
2331
+ DomainName: Schema.optionalKey(Schema.String.annotate({ description: "" })),
2332
+ });
2333
+
2334
+ export interface AWSDistributionRequest {
2335
+ readonly DistributionConfig: DistributionConfig_1;
2336
+ readonly Tags?: ResourceInputItems_10;
2337
+ }
2338
+
2339
+ export const AWSDistributionRequestSchema = Schema.Struct({
2340
+ DistributionConfig: DistributionConfig_1,
2341
+ Tags: Schema.optionalKey(ResourceInputItems_10),
2342
+ });
2343
+
2344
+ /**
2345
+ * The AWSDistributionRelationshipIssues array lists inputs that can use several outputs
2346
+ * from one source type. Each input retains its provider value until a reviewed
2347
+ * mapping chooses an output.
2348
+ */
2349
+ export const AWSDistributionRelationshipIssues = [
2350
+ {
2351
+ propertyPath: ["DistributionConfig", "Logging", "Bucket"],
2352
+ sourceType: "AWS::S3::Bucket",
2353
+ sourceProperties: [["RegionalDomainName"], ["DomainName"]],
2354
+ message:
2355
+ "Choose one of the permitted source properties before using a resource reference",
2356
+ },
2357
+ {
2358
+ propertyPath: ["DistributionConfig", "Origins", "*", "DomainName"],
2359
+ sourceType: "AWS::S3::Bucket",
2360
+ sourceProperties: [["RegionalDomainName"], ["DomainName"]],
2361
+ message:
2362
+ "Choose one of the permitted source properties before using a resource reference",
2363
+ },
2364
+ ];
2365
+
2366
+ export const AWSDistributionResourceTypeSchema = Schema.Struct({
2367
+ provider: Schema.Literal("aws"),
2368
+ service: Schema.Literal("cloudfront"),
2369
+ resource: Schema.Literal("distribution"),
2370
+ });
2371
+
2372
+ /**
2373
+ * The AWSDistributionResource class retains its owning stack across declarations.
2374
+ * Applied output properties are ordinary values maintained by the lifecycle.
2375
+ */
2376
+ export class AWSDistributionResource<
2377
+ Props = AWSDistributionProps,
2378
+ > extends ResourceEntity<{
2379
+ readonly provider: "aws";
2380
+ readonly service: "cloudfront";
2381
+ readonly resource: "distribution";
2382
+ }> {
2383
+ constructor(
2384
+ key: ResourceKey,
2385
+ readonly props: Props,
2386
+ private readonly binding?: ResourceOutputBinding,
2387
+ ) {
2388
+ super({
2389
+ key,
2390
+ resourceType: {
2391
+ provider: "aws",
2392
+ service: "cloudfront",
2393
+ resource: "distribution",
2394
+ },
2395
+ });
2396
+ }
2397
+
2398
+ /**
2399
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2400
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2401
+ */
2402
+ get Id(): Required<AWSDistributionOutputs>["Id"] {
2403
+ const value: Required<AWSDistributionOutputs>["Id"] =
2404
+ ResourceOutputBinding.value(
2405
+ this.binding,
2406
+ this.key,
2407
+ "Id",
2408
+ Schema.requiredKey(AWSDistributionOutputsSchema.fields.Id),
2409
+ );
2410
+ return value;
2411
+ }
2412
+
2413
+ /**
2414
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2415
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2416
+ */
2417
+ get DomainName(): Required<AWSDistributionOutputs>["DomainName"] {
2418
+ const value: Required<AWSDistributionOutputs>["DomainName"] =
2419
+ ResourceOutputBinding.value(
2420
+ this.binding,
2421
+ this.key,
2422
+ "DomainName",
2423
+ Schema.requiredKey(AWSDistributionOutputsSchema.fields.DomainName),
2424
+ );
2425
+ return value;
2426
+ }
2427
+ }
2428
+
2429
+ /**
2430
+ * Callers must validate properties before constructing the declaration.
2431
+ * Compatible resources can depend on it before apply supplies provider values.
2432
+ * Reading applied outputs requires a binding to the owning stack.
2433
+ */
2434
+ export function createAWSDistributionDeclaration<Props>(
2435
+ key: ResourceKey,
2436
+ props: Props,
2437
+ binding?: ResourceOutputBinding,
2438
+ ): AWSDistributionResource<Props> {
2439
+ const resource: AWSDistributionResource<Props> =
2440
+ new AWSDistributionResource<Props>(key, props, binding);
2441
+
2442
+ return resource;
2443
+ }
2444
+
2445
+ /**
2446
+ * The AWSDistribution resource factory registers a validated declaration in the
2447
+ * stack graph. Its outputs become available after apply saves the resource.
2448
+ */
2449
+ export const AWSDistribution = Effect.fn("AWSDistribution")(function* (input: {
2450
+ logicalId: string;
2451
+ props: AWSDistributionProps;
2452
+ }) {
2453
+ const graph = yield* ResourceGraphBuilder;
2454
+
2455
+ const key: ResourceKey = { logicalId: input.logicalId };
2456
+
2457
+ const declaration = yield* graph.resource(key);
2458
+
2459
+ const props = yield* Schema.decodeEffect(AWSDistributionPropsSchema)(
2460
+ input.props,
2461
+ );
2462
+
2463
+ yield* declaration.registerEntity(AWSDistributionResourceTypeSchema, {
2464
+ propsSchema: AWSDistributionPropsSchema,
2465
+ requestSchema: AWSDistributionRequestSchema,
2466
+ outputsSchema: AWSDistributionOutputsSchema,
2467
+ props,
2468
+ });
2469
+
2470
+ const resource: AWSDistributionResource = createAWSDistributionDeclaration(
2471
+ key,
2472
+ props,
2473
+ declaration.outputs,
2474
+ );
2475
+
2476
+ return resource;
2477
+ });