nomoss 0.0.5 → 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 +16 -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,1756 @@
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
+ interface Volume {
15
+ readonly VolumeId:
16
+ | ResourceEntity<{
17
+ readonly provider: "aws";
18
+ readonly service: "ec2";
19
+ readonly resource: "volume";
20
+ }>
21
+ | string;
22
+ readonly Device: string;
23
+ }
24
+
25
+ const Volume = Schema.Struct({
26
+ VolumeId: Schema.Union([
27
+ Schema.Union([
28
+ ResourceReferenceSchema(
29
+ Schema.Struct({
30
+ provider: Schema.Literal("aws"),
31
+ service: Schema.Literal("ec2"),
32
+ resource: Schema.Literal("volume"),
33
+ }),
34
+ {
35
+ value: null,
36
+ outputs: [
37
+ {
38
+ source: ["VolumeId"],
39
+ target: [],
40
+ },
41
+ ],
42
+ },
43
+ ).annotate({ expected: "ResourceEntity" }),
44
+ ]),
45
+ Schema.String.annotate({
46
+ description:
47
+ "The ID of the EBS volume. The volume and instance must be within the same Availability Zone.",
48
+ }),
49
+ ]),
50
+ Device: Schema.String.annotate({
51
+ description: "The device name (for example, /dev/sdh or xvdh).",
52
+ }),
53
+ }).annotate({ identifier: "Volume" });
54
+
55
+ interface ResourceInputProperties {
56
+ readonly Enabled?: boolean;
57
+ }
58
+
59
+ const ResourceInputProperties = Schema.Struct({
60
+ Enabled: Schema.optionalKey(
61
+ Schema.Boolean.annotate({
62
+ description:
63
+ "If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves.",
64
+ }),
65
+ ),
66
+ }).annotate({
67
+ description:
68
+ "Indicates whether the instance is enabled for AWS Nitro Enclaves.",
69
+ });
70
+
71
+ interface Tag {
72
+ readonly Value: string;
73
+ readonly Key: string;
74
+ }
75
+
76
+ const Tag = Schema.Struct({
77
+ Value: Schema.String,
78
+ Key: Schema.String,
79
+ }).annotate({ identifier: "Tag" });
80
+
81
+ type ResourceInputItems = globalThis.ReadonlyArray<Tag>;
82
+
83
+ const ResourceInputItems = Schema.Array(Tag).annotate({
84
+ description: "The tags to add to the instance.",
85
+ });
86
+
87
+ interface ResourceInputProperties_1 {
88
+ readonly Configured?: boolean;
89
+ }
90
+
91
+ const ResourceInputProperties_1 = Schema.Struct({
92
+ Configured: Schema.optionalKey(
93
+ Schema.Boolean.annotate({
94
+ description:
95
+ "If you set this parameter to true, your instance is enabled for hibernation.",
96
+ }),
97
+ ),
98
+ }).annotate({
99
+ description: "Indicates whether an instance is enabled for hibernation.",
100
+ });
101
+
102
+ interface LicenseSpecification {
103
+ readonly LicenseConfigurationArn: string;
104
+ }
105
+
106
+ const LicenseSpecification = Schema.Struct({
107
+ LicenseConfigurationArn: Schema.String.annotate({
108
+ description: "The Amazon Resource Name (ARN) of the license configuration.",
109
+ }),
110
+ }).annotate({ identifier: "LicenseSpecification" });
111
+
112
+ type ResourceInputItems_1 = globalThis.ReadonlyArray<LicenseSpecification>;
113
+
114
+ const ResourceInputItems_1 = Schema.Array(LicenseSpecification).annotate({
115
+ description: "The license configurations.",
116
+ });
117
+
118
+ interface MetadataOptions {
119
+ readonly HttpPutResponseHopLimit?: number;
120
+ readonly HttpProtocolIpv6?: "disabled" | "enabled";
121
+ readonly HttpTokens?: "optional" | "required";
122
+ readonly InstanceMetadataTags?: "disabled" | "enabled";
123
+ readonly HttpEndpoint?: "disabled" | "enabled";
124
+ }
125
+
126
+ const MetadataOptions = Schema.Struct({
127
+ HttpPutResponseHopLimit: Schema.optionalKey(
128
+ Schema.Number.annotate({
129
+ description:
130
+ "The number of network hops that the metadata token can travel. Maximum is 64.",
131
+ })
132
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
133
+ .check(
134
+ Schema.isGreaterThanOrEqualTo(1).annotate({
135
+ expected: "a value greater than or equal to 1",
136
+ }),
137
+ )
138
+ .check(
139
+ Schema.isLessThanOrEqualTo(64).annotate({
140
+ expected: "a value less than or equal to 64",
141
+ }),
142
+ ),
143
+ ),
144
+ HttpProtocolIpv6: Schema.optionalKey(
145
+ Schema.Literals(["disabled", "enabled"]).annotate({
146
+ description:
147
+ "Enables or disables the IPv6 endpoint for the instance metadata service. To use this option, the instance must be a Nitro-based instance launched in a subnet that supports IPv6.",
148
+ }),
149
+ ),
150
+ HttpTokens: Schema.optionalKey(
151
+ Schema.Literals(["optional", "required"]).annotate({
152
+ description: "Indicates whether IMDSv2 is required.",
153
+ }),
154
+ ),
155
+ InstanceMetadataTags: Schema.optionalKey(
156
+ Schema.Literals(["disabled", "enabled"]).annotate({
157
+ description:
158
+ "Indicates whether tags from the instance are propagated to the EBS volumes.",
159
+ }),
160
+ ),
161
+ HttpEndpoint: Schema.optionalKey(
162
+ Schema.Literals(["disabled", "enabled"]).annotate({
163
+ description:
164
+ "Enables or disables the HTTP metadata endpoint on your instances. If you specify a value of disabled, you cannot access your instance metadata.",
165
+ }),
166
+ ),
167
+ }).annotate({ identifier: "MetadataOptions" });
168
+
169
+ interface ResourceInputProperties_2 {
170
+ readonly ThreadsPerCore?: number;
171
+ readonly CoreCount?: number;
172
+ }
173
+
174
+ const ResourceInputProperties_2 = Schema.Struct({
175
+ ThreadsPerCore: Schema.optionalKey(Schema.Int),
176
+ CoreCount: Schema.optionalKey(Schema.Int),
177
+ }).annotate({ description: "The CPU options for the instance." });
178
+
179
+ interface PrivateDnsNameOptions {
180
+ readonly EnableResourceNameDnsARecord?: boolean;
181
+ readonly HostnameType?: "ip-name" | "resource-name";
182
+ readonly EnableResourceNameDnsAAAARecord?: boolean;
183
+ }
184
+
185
+ const PrivateDnsNameOptions = Schema.Struct({
186
+ EnableResourceNameDnsARecord: Schema.optionalKey(
187
+ Schema.Boolean.annotate({
188
+ description:
189
+ "Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.",
190
+ }),
191
+ ),
192
+ HostnameType: Schema.optionalKey(
193
+ Schema.Literals(["ip-name", "resource-name"]).annotate({
194
+ description:
195
+ "The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.",
196
+ }),
197
+ ),
198
+ EnableResourceNameDnsAAAARecord: Schema.optionalKey(
199
+ Schema.Boolean.annotate({
200
+ description:
201
+ "Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.",
202
+ }),
203
+ ),
204
+ }).annotate({ identifier: "PrivateDnsNameOptions" });
205
+
206
+ interface AssociationParameter {
207
+ readonly Value: globalThis.ReadonlyArray<string>;
208
+ readonly Key: string;
209
+ }
210
+
211
+ const AssociationParameter = Schema.Struct({
212
+ Value: Schema.Array(Schema.String).annotate({
213
+ description: "The value of an input parameter.",
214
+ }),
215
+ Key: Schema.String.annotate({
216
+ description:
217
+ "The name of an input parameter that is in the associated SSM document.",
218
+ }),
219
+ }).annotate({ identifier: "AssociationParameter" });
220
+
221
+ type ResourceInputItems_2 = globalThis.ReadonlyArray<AssociationParameter>;
222
+
223
+ const ResourceInputItems_2 = Schema.Array(AssociationParameter).annotate({
224
+ description:
225
+ "The input parameter values to use with the associated SSM document.",
226
+ });
227
+
228
+ interface SsmAssociation {
229
+ readonly AssociationParameters?: ResourceInputItems_2;
230
+ readonly DocumentName:
231
+ | ResourceEntity<{
232
+ readonly provider: "aws";
233
+ readonly service: "ssm";
234
+ readonly resource: "document";
235
+ }>
236
+ | string;
237
+ }
238
+
239
+ const SsmAssociation = Schema.Struct({
240
+ AssociationParameters: Schema.optionalKey(ResourceInputItems_2),
241
+ DocumentName: Schema.Union([
242
+ Schema.Union([
243
+ ResourceReferenceSchema(
244
+ Schema.Struct({
245
+ provider: Schema.Literal("aws"),
246
+ service: Schema.Literal("ssm"),
247
+ resource: Schema.Literal("document"),
248
+ }),
249
+ {
250
+ value: null,
251
+ outputs: [
252
+ {
253
+ source: ["Name"],
254
+ target: [],
255
+ },
256
+ ],
257
+ },
258
+ ).annotate({ expected: "ResourceEntity" }),
259
+ ]),
260
+ Schema.String.annotate({
261
+ description:
262
+ "The name of an SSM document to associate with the instance.",
263
+ }),
264
+ ]),
265
+ }).annotate({ identifier: "SsmAssociation" });
266
+
267
+ type ResourceInputAlternatives = "default" | "host";
268
+
269
+ const ResourceInputAlternatives = Schema.Literals(["default", "host"]).annotate(
270
+ {
271
+ description:
272
+ "Indicates whether the instance is associated with a dedicated host. If you want the instance to always restart on the same host on which it was launched, specify host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specify default.",
273
+ },
274
+ );
275
+
276
+ type ResourceInputItems_3 = globalThis.ReadonlyArray<string>;
277
+
278
+ const ResourceInputItems_3 = Schema.Array(Schema.String).annotate({
279
+ description:
280
+ "the names of the security groups. For a nondefault VPC, you must use security group IDs instead.",
281
+ });
282
+
283
+ interface Ebs {
284
+ readonly SnapshotId?: string;
285
+ readonly VolumeType?: string;
286
+ readonly KmsKeyId?: string;
287
+ readonly Encrypted?: boolean;
288
+ readonly Iops?: number;
289
+ readonly VolumeSize?: number;
290
+ readonly DeleteOnTermination?: boolean;
291
+ }
292
+
293
+ const Ebs = Schema.Struct({
294
+ SnapshotId: Schema.optionalKey(
295
+ Schema.String.annotate({ description: "The ID of the snapshot." }),
296
+ ),
297
+ VolumeType: Schema.optionalKey(
298
+ Schema.String.annotate({ description: "The volume type." }),
299
+ ),
300
+ KmsKeyId: Schema.optionalKey(
301
+ Schema.String.annotate({
302
+ description:
303
+ "The identifier of the AWS Key Management Service (AWS KMS) customer managed CMK to use for Amazon EBS encryption. If KmsKeyId is specified, the encrypted state must be true. If the encrypted state is true but you do not specify KmsKeyId, your AWS managed CMK for EBS is used.",
304
+ }),
305
+ ),
306
+ Encrypted: Schema.optionalKey(
307
+ Schema.Boolean.annotate({
308
+ description: "Indicates whether the volume should be encrypted.",
309
+ }),
310
+ ),
311
+ Iops: Schema.optionalKey(
312
+ Schema.Number.annotate({
313
+ description:
314
+ "The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.",
315
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
316
+ ),
317
+ VolumeSize: Schema.optionalKey(
318
+ Schema.Number.annotate({
319
+ description:
320
+ "The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.",
321
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
322
+ ),
323
+ DeleteOnTermination: Schema.optionalKey(
324
+ Schema.Boolean.annotate({
325
+ description:
326
+ "Indicates whether the EBS volume is deleted on instance termination.",
327
+ }),
328
+ ),
329
+ }).annotate({ identifier: "Ebs" });
330
+
331
+ interface BlockDeviceMapping {
332
+ readonly Ebs?: Ebs;
333
+ readonly NoDevice?: {
334
+ readonly [x: string]: never;
335
+ };
336
+ readonly VirtualName?: string;
337
+ readonly DeviceName: string;
338
+ }
339
+
340
+ const BlockDeviceMapping = Schema.Struct({
341
+ Ebs: Schema.optionalKey(Ebs),
342
+ NoDevice: Schema.optionalKey(Schema.Record(Schema.String, Schema.Never)),
343
+ VirtualName: Schema.optionalKey(Schema.String),
344
+ DeviceName: Schema.String.annotate({
345
+ description: "The device name (for example, /dev/sdh or xvdh).",
346
+ }),
347
+ }).annotate({ identifier: "BlockDeviceMapping" });
348
+
349
+ type ResourceInputItems_4 = globalThis.ReadonlyArray<BlockDeviceMapping>;
350
+
351
+ const ResourceInputItems_4 = Schema.Array(BlockDeviceMapping).annotate({
352
+ description:
353
+ "The block device mapping entries that defines the block devices to attach to the instance at launch.",
354
+ });
355
+
356
+ interface InstanceIpv6Address {
357
+ readonly Ipv6Address: string;
358
+ }
359
+
360
+ const InstanceIpv6Address = Schema.Struct({
361
+ Ipv6Address: Schema.String.annotate({ description: "The IPv6 address." }),
362
+ }).annotate({ identifier: "InstanceIpv6Address" });
363
+
364
+ type ResourceInputItems_5 = globalThis.ReadonlyArray<InstanceIpv6Address>;
365
+
366
+ const ResourceInputItems_5 = Schema.Array(InstanceIpv6Address).annotate({
367
+ description:
368
+ "[EC2-VPC] The IPv6 addresses from the range of the subnet to associate with the primary network interface.",
369
+ });
370
+
371
+ interface ElasticGpuSpecification {
372
+ readonly Type: string;
373
+ }
374
+
375
+ const ElasticGpuSpecification = Schema.Struct({
376
+ Type: Schema.String.annotate({
377
+ description:
378
+ "The type of Elastic Graphics accelerator. Amazon Elastic Graphics is no longer available.",
379
+ }),
380
+ }).annotate({ identifier: "ElasticGpuSpecification" });
381
+
382
+ type ResourceInputItems_6 = globalThis.ReadonlyArray<ElasticGpuSpecification>;
383
+
384
+ const ResourceInputItems_6 = Schema.Array(ElasticGpuSpecification).annotate({
385
+ description:
386
+ "An elastic GPU to associate with the instance. Amazon Elastic Graphics is no longer available.",
387
+ });
388
+
389
+ interface ElasticInferenceAccelerator {
390
+ readonly Type: string;
391
+ readonly Count?: number;
392
+ }
393
+
394
+ const ElasticInferenceAccelerator = Schema.Struct({
395
+ Type: Schema.String.annotate({
396
+ description:
397
+ "The type of elastic inference accelerator. Amazon Elastic Inference is no longer available.",
398
+ }),
399
+ Count: Schema.optionalKey(
400
+ Schema.Number.annotate({
401
+ description:
402
+ "The number of elastic inference accelerators to attach to the instance. Amazon Elastic Inference is no longer available.",
403
+ })
404
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
405
+ .check(
406
+ Schema.isGreaterThanOrEqualTo(0).annotate({
407
+ expected: "a value greater than or equal to 0",
408
+ }),
409
+ ),
410
+ ),
411
+ }).annotate({ identifier: "ElasticInferenceAccelerator" });
412
+
413
+ type ResourceInputItems_7 =
414
+ globalThis.ReadonlyArray<ElasticInferenceAccelerator>;
415
+
416
+ const ResourceInputItems_7 = Schema.Array(ElasticInferenceAccelerator).annotate(
417
+ {
418
+ description:
419
+ "An elastic inference accelerator to associate with the instance. Amazon Elastic Inference is no longer available.",
420
+ },
421
+ );
422
+
423
+ type ResourceInputAlternatives_1 = ResourceEntity<{
424
+ readonly provider: "aws";
425
+ readonly service: "ec2";
426
+ readonly resource: "launchtemplate";
427
+ }>;
428
+
429
+ const ResourceInputAlternatives_1 = Schema.Union([
430
+ ResourceReferenceSchema(
431
+ Schema.Struct({
432
+ provider: Schema.Literal("aws"),
433
+ service: Schema.Literal("ec2"),
434
+ resource: Schema.Literal("launchtemplate"),
435
+ }),
436
+ {
437
+ value: null,
438
+ outputs: [
439
+ {
440
+ source: ["LatestVersionNumber"],
441
+ target: [],
442
+ },
443
+ ],
444
+ },
445
+ ).annotate({ expected: "ResourceEntity" }),
446
+ ]);
447
+
448
+ type ResourceInputAlternatives_2 = ResourceEntity<{
449
+ readonly provider: "aws";
450
+ readonly service: "ec2";
451
+ readonly resource: "launchtemplate";
452
+ }>;
453
+
454
+ const ResourceInputAlternatives_2 = Schema.Union([
455
+ ResourceReferenceSchema(
456
+ Schema.Struct({
457
+ provider: Schema.Literal("aws"),
458
+ service: Schema.Literal("ec2"),
459
+ resource: Schema.Literal("launchtemplate"),
460
+ }),
461
+ {
462
+ value: null,
463
+ outputs: [
464
+ {
465
+ source: ["LaunchTemplateId"],
466
+ target: [],
467
+ },
468
+ ],
469
+ },
470
+ ).annotate({ expected: "ResourceEntity" }),
471
+ ]);
472
+
473
+ type LaunchTemplateSpecification =
474
+ | {
475
+ readonly LaunchTemplateName: string;
476
+ readonly Version: ResourceInputAlternatives_1 | string;
477
+ readonly LaunchTemplateId?: ResourceInputAlternatives_2 | string;
478
+ }
479
+ | {
480
+ readonly LaunchTemplateId: ResourceInputAlternatives_2 | string;
481
+ readonly Version: ResourceInputAlternatives_1 | string;
482
+ readonly LaunchTemplateName?: string;
483
+ };
484
+
485
+ const LaunchTemplateSpecification = Schema.Union(
486
+ [
487
+ Schema.Struct({
488
+ LaunchTemplateName: Schema.String.annotate({
489
+ description:
490
+ "The name of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
491
+ }),
492
+ Version: Schema.Union([
493
+ ResourceInputAlternatives_1,
494
+ Schema.String.annotate({
495
+ description: "The version number of the launch template.",
496
+ }),
497
+ ]),
498
+ LaunchTemplateId: Schema.optionalKey(
499
+ Schema.Union([
500
+ ResourceInputAlternatives_2,
501
+ Schema.String.annotate({
502
+ description:
503
+ "The ID of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
504
+ }),
505
+ ]),
506
+ ),
507
+ }),
508
+ Schema.Struct({
509
+ LaunchTemplateId: Schema.Union([
510
+ ResourceInputAlternatives_2,
511
+ Schema.String.annotate({
512
+ description:
513
+ "The ID of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
514
+ }),
515
+ ]),
516
+ Version: Schema.Union([
517
+ ResourceInputAlternatives_1,
518
+ Schema.String.annotate({
519
+ description: "The version number of the launch template.",
520
+ }),
521
+ ]),
522
+ LaunchTemplateName: Schema.optionalKey(
523
+ Schema.String.annotate({
524
+ description:
525
+ "The name of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
526
+ }),
527
+ ),
528
+ }),
529
+ ],
530
+ { mode: "oneOf" },
531
+ ).annotate({ identifier: "LaunchTemplateSpecification" });
532
+
533
+ interface PrivateIpAddressSpecification {
534
+ readonly PrivateIpAddress: string;
535
+ readonly Primary: boolean;
536
+ }
537
+
538
+ const PrivateIpAddressSpecification = Schema.Struct({
539
+ PrivateIpAddress: Schema.String.annotate({
540
+ description: "The private IPv4 addresses.",
541
+ }),
542
+ Primary: Schema.Boolean.annotate({
543
+ description:
544
+ "Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.",
545
+ }),
546
+ }).annotate({ identifier: "PrivateIpAddressSpecification" });
547
+
548
+ type ResourceInputItems_8 =
549
+ globalThis.ReadonlyArray<PrivateIpAddressSpecification>;
550
+
551
+ const ResourceInputItems_8 = Schema.Array(
552
+ PrivateIpAddressSpecification,
553
+ ).annotate({
554
+ description:
555
+ "One or more private IPv4 addresses to assign to the network interface.",
556
+ });
557
+
558
+ type ResourceInputItems_9 = globalThis.ReadonlyArray<InstanceIpv6Address>;
559
+
560
+ const ResourceInputItems_9 = Schema.Array(InstanceIpv6Address).annotate({
561
+ description: "The IPv6 addresses associated with the network interface.",
562
+ });
563
+
564
+ interface EnaSrdUdpSpecification {
565
+ readonly EnaSrdUdpEnabled?: boolean;
566
+ }
567
+
568
+ const EnaSrdUdpSpecification = Schema.Struct({
569
+ EnaSrdUdpEnabled: Schema.optionalKey(
570
+ Schema.Boolean.annotate({
571
+ description:
572
+ "Indicates whether UDP traffic uses ENA Express for your instance.",
573
+ }),
574
+ ),
575
+ }).annotate({
576
+ description:
577
+ "Contains ENA Express settings for UDP network traffic for the network interface that's attached to the instance.",
578
+ identifier: "EnaSrdUdpSpecification",
579
+ });
580
+
581
+ interface EnaSrdSpecification {
582
+ readonly EnaSrdEnabled?: boolean;
583
+ readonly EnaSrdUdpSpecification?: EnaSrdUdpSpecification;
584
+ }
585
+
586
+ const EnaSrdSpecification = Schema.Struct({
587
+ EnaSrdEnabled: Schema.optionalKey(
588
+ Schema.Boolean.annotate({
589
+ description:
590
+ "Specifies whether ENA Express is enabled for the network interface when you launch an instance.",
591
+ }),
592
+ ),
593
+ EnaSrdUdpSpecification: Schema.optionalKey(EnaSrdUdpSpecification),
594
+ }).annotate({
595
+ description:
596
+ "Specifies the ENA Express settings for the network interface that's attached to the instance.",
597
+ identifier: "EnaSrdSpecification",
598
+ });
599
+
600
+ interface NetworkInterface {
601
+ readonly Description?: string;
602
+ readonly PrivateIpAddress?: string;
603
+ readonly PrivateIpAddresses?: ResourceInputItems_8;
604
+ readonly SecondaryPrivateIpAddressCount?: number;
605
+ readonly DeviceIndex: string;
606
+ readonly GroupSet?: globalThis.ReadonlyArray<
607
+ | ResourceEntity<{
608
+ readonly provider: "aws";
609
+ readonly service: "ec2";
610
+ readonly resource: "securitygroup";
611
+ }>
612
+ | string
613
+ >;
614
+ readonly Ipv6Addresses?: ResourceInputItems_9;
615
+ readonly SubnetId?:
616
+ | ResourceEntity<{
617
+ readonly provider: "aws";
618
+ readonly service: "ec2";
619
+ readonly resource: "subnet";
620
+ }>
621
+ | string;
622
+ readonly AssociatePublicIpAddress?: boolean;
623
+ readonly NetworkInterfaceId?:
624
+ | ResourceEntity<{
625
+ readonly provider: "aws";
626
+ readonly service: "ec2";
627
+ readonly resource: "networkinterface";
628
+ }>
629
+ | string;
630
+ readonly AssociateCarrierIpAddress?: boolean;
631
+ readonly EnaSrdSpecification?: EnaSrdSpecification;
632
+ readonly Ipv6AddressCount?: number;
633
+ readonly DeleteOnTermination?: boolean;
634
+ }
635
+
636
+ const NetworkInterface = Schema.Struct({
637
+ Description: Schema.optionalKey(
638
+ Schema.String.annotate({
639
+ description: "The description of the network interface.",
640
+ }),
641
+ ),
642
+ PrivateIpAddress: Schema.optionalKey(
643
+ Schema.String.annotate({
644
+ description: "The private IPv4 address of the network interface.",
645
+ }),
646
+ ),
647
+ PrivateIpAddresses: Schema.optionalKey(ResourceInputItems_8),
648
+ SecondaryPrivateIpAddressCount: Schema.optionalKey(
649
+ Schema.Number.annotate({
650
+ description: "The number of secondary private IPv4 addresses.",
651
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
652
+ ),
653
+ DeviceIndex: Schema.String.annotate({
654
+ description:
655
+ "The position of the network interface in the attachment order. A primary network interface has a device index of 0.",
656
+ }),
657
+ GroupSet: Schema.optionalKey(
658
+ Schema.Array(
659
+ Schema.Union([
660
+ Schema.Union([
661
+ ResourceReferenceSchema(
662
+ Schema.Struct({
663
+ provider: Schema.Literal("aws"),
664
+ service: Schema.Literal("ec2"),
665
+ resource: Schema.Literal("securitygroup"),
666
+ }),
667
+ {
668
+ value: null,
669
+ outputs: [
670
+ {
671
+ source: ["Id"],
672
+ target: [],
673
+ },
674
+ ],
675
+ },
676
+ ).annotate({ expected: "ResourceEntity" }),
677
+ ]),
678
+ Schema.String,
679
+ ]),
680
+ ).annotate({
681
+ description: "The IDs of the security groups for the network interface.",
682
+ }),
683
+ ),
684
+ Ipv6Addresses: Schema.optionalKey(ResourceInputItems_9),
685
+ SubnetId: Schema.optionalKey(
686
+ Schema.Union([
687
+ Schema.Union([
688
+ ResourceReferenceSchema(
689
+ Schema.Struct({
690
+ provider: Schema.Literal("aws"),
691
+ service: Schema.Literal("ec2"),
692
+ resource: Schema.Literal("subnet"),
693
+ }),
694
+ {
695
+ value: null,
696
+ outputs: [
697
+ {
698
+ source: ["SubnetId"],
699
+ target: [],
700
+ },
701
+ ],
702
+ },
703
+ ).annotate({ expected: "ResourceEntity" }),
704
+ ]),
705
+ Schema.String.annotate({ description: "The ID of the subnet." }),
706
+ ]),
707
+ ),
708
+ AssociatePublicIpAddress: Schema.optionalKey(
709
+ Schema.Boolean.annotate({
710
+ description:
711
+ "Indicates whether to assign a public IPv4 address to an instance you launch in a VPC.",
712
+ }),
713
+ ),
714
+ NetworkInterfaceId: Schema.optionalKey(
715
+ Schema.Union([
716
+ Schema.Union([
717
+ ResourceReferenceSchema(
718
+ Schema.Struct({
719
+ provider: Schema.Literal("aws"),
720
+ service: Schema.Literal("ec2"),
721
+ resource: Schema.Literal("networkinterface"),
722
+ }),
723
+ {
724
+ value: null,
725
+ outputs: [
726
+ {
727
+ source: ["Id"],
728
+ target: [],
729
+ },
730
+ ],
731
+ },
732
+ ).annotate({ expected: "ResourceEntity" }),
733
+ ]),
734
+ Schema.String.annotate({
735
+ description: "The ID of the network interface.",
736
+ }),
737
+ ]),
738
+ ),
739
+ AssociateCarrierIpAddress: Schema.optionalKey(
740
+ Schema.Boolean.annotate({
741
+ description: "Not currently supported by AWS CloudFormation.",
742
+ }),
743
+ ),
744
+ EnaSrdSpecification: Schema.optionalKey(EnaSrdSpecification),
745
+ Ipv6AddressCount: Schema.optionalKey(
746
+ Schema.Number.annotate({
747
+ description:
748
+ "A number of IPv6 addresses to assign to the network interface.",
749
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
750
+ ),
751
+ DeleteOnTermination: Schema.optionalKey(
752
+ Schema.Boolean.annotate({
753
+ description:
754
+ "If set to true, the interface is deleted when the instance is terminated.",
755
+ }),
756
+ ),
757
+ }).annotate({ identifier: "NetworkInterface" });
758
+
759
+ interface ResourceInputProperties_3 {
760
+ readonly CPUCredits?: string;
761
+ }
762
+
763
+ const ResourceInputProperties_3 = Schema.Struct({
764
+ CPUCredits: Schema.optionalKey(Schema.String),
765
+ }).annotate({
766
+ description:
767
+ "The credit option for CPU usage of the burstable performance instance. Valid values are standard and unlimited.",
768
+ });
769
+
770
+ interface State {
771
+ readonly Code?: string;
772
+ readonly Name?: string;
773
+ }
774
+
775
+ const State = Schema.Struct({
776
+ Code: Schema.optionalKey(
777
+ Schema.String.annotate({
778
+ description: "The state of the instance as a 16-bit unsigned integer.",
779
+ }),
780
+ ),
781
+ Name: Schema.optionalKey(
782
+ Schema.String.annotate({
783
+ description: "The current state of the instance.",
784
+ }),
785
+ ),
786
+ }).annotate({
787
+ description: "The current state of the instance",
788
+ identifier: "State",
789
+ });
790
+
791
+ interface Volume_1 {
792
+ readonly VolumeId: string;
793
+ readonly Device: string;
794
+ }
795
+
796
+ const Volume_1 = Schema.Struct({
797
+ VolumeId: Schema.String.annotate({
798
+ description:
799
+ "The ID of the EBS volume. The volume and instance must be within the same Availability Zone.",
800
+ }),
801
+ Device: Schema.String.annotate({
802
+ description: "The device name (for example, /dev/sdh or xvdh).",
803
+ }),
804
+ }).annotate({ identifier: "Volume_1" });
805
+
806
+ interface SsmAssociation_1 {
807
+ readonly AssociationParameters?: ResourceInputItems_2;
808
+ readonly DocumentName: string;
809
+ }
810
+
811
+ const SsmAssociation_1 = Schema.Struct({
812
+ AssociationParameters: Schema.optionalKey(ResourceInputItems_2),
813
+ DocumentName: Schema.String.annotate({
814
+ description: "The name of an SSM document to associate with the instance.",
815
+ }),
816
+ }).annotate({ identifier: "SsmAssociation_1" });
817
+
818
+ type LaunchTemplateSpecification_1 =
819
+ | {
820
+ readonly LaunchTemplateName: string;
821
+ readonly Version: string;
822
+ readonly LaunchTemplateId?: string;
823
+ }
824
+ | {
825
+ readonly LaunchTemplateId: string;
826
+ readonly Version: string;
827
+ readonly LaunchTemplateName?: string;
828
+ };
829
+
830
+ const LaunchTemplateSpecification_1 = Schema.Union(
831
+ [
832
+ Schema.Struct({
833
+ LaunchTemplateName: Schema.String.annotate({
834
+ description:
835
+ "The name of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
836
+ }),
837
+ Version: Schema.String.annotate({
838
+ description: "The version number of the launch template.",
839
+ }),
840
+ LaunchTemplateId: Schema.optionalKey(
841
+ Schema.String.annotate({
842
+ description:
843
+ "The ID of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
844
+ }),
845
+ ),
846
+ }),
847
+ Schema.Struct({
848
+ LaunchTemplateId: Schema.String.annotate({
849
+ description:
850
+ "The ID of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
851
+ }),
852
+ Version: Schema.String.annotate({
853
+ description: "The version number of the launch template.",
854
+ }),
855
+ LaunchTemplateName: Schema.optionalKey(
856
+ Schema.String.annotate({
857
+ description:
858
+ "The name of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
859
+ }),
860
+ ),
861
+ }),
862
+ ],
863
+ { mode: "oneOf" },
864
+ ).annotate({ identifier: "LaunchTemplateSpecification_1" });
865
+
866
+ interface NetworkInterface_1 {
867
+ readonly Description?: string;
868
+ readonly PrivateIpAddress?: string;
869
+ readonly PrivateIpAddresses?: ResourceInputItems_8;
870
+ readonly SecondaryPrivateIpAddressCount?: number;
871
+ readonly DeviceIndex: string;
872
+ readonly GroupSet?: globalThis.ReadonlyArray<string>;
873
+ readonly Ipv6Addresses?: ResourceInputItems_9;
874
+ readonly SubnetId?: string;
875
+ readonly AssociatePublicIpAddress?: boolean;
876
+ readonly NetworkInterfaceId?: string;
877
+ readonly AssociateCarrierIpAddress?: boolean;
878
+ readonly EnaSrdSpecification?: EnaSrdSpecification;
879
+ readonly Ipv6AddressCount?: number;
880
+ readonly DeleteOnTermination?: boolean;
881
+ }
882
+
883
+ const NetworkInterface_1 = Schema.Struct({
884
+ Description: Schema.optionalKey(
885
+ Schema.String.annotate({
886
+ description: "The description of the network interface.",
887
+ }),
888
+ ),
889
+ PrivateIpAddress: Schema.optionalKey(
890
+ Schema.String.annotate({
891
+ description: "The private IPv4 address of the network interface.",
892
+ }),
893
+ ),
894
+ PrivateIpAddresses: Schema.optionalKey(ResourceInputItems_8),
895
+ SecondaryPrivateIpAddressCount: Schema.optionalKey(
896
+ Schema.Number.annotate({
897
+ description: "The number of secondary private IPv4 addresses.",
898
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
899
+ ),
900
+ DeviceIndex: Schema.String.annotate({
901
+ description:
902
+ "The position of the network interface in the attachment order. A primary network interface has a device index of 0.",
903
+ }),
904
+ GroupSet: Schema.optionalKey(
905
+ Schema.Array(Schema.String).annotate({
906
+ description: "The IDs of the security groups for the network interface.",
907
+ }),
908
+ ),
909
+ Ipv6Addresses: Schema.optionalKey(ResourceInputItems_9),
910
+ SubnetId: Schema.optionalKey(
911
+ Schema.String.annotate({ description: "The ID of the subnet." }),
912
+ ),
913
+ AssociatePublicIpAddress: Schema.optionalKey(
914
+ Schema.Boolean.annotate({
915
+ description:
916
+ "Indicates whether to assign a public IPv4 address to an instance you launch in a VPC.",
917
+ }),
918
+ ),
919
+ NetworkInterfaceId: Schema.optionalKey(
920
+ Schema.String.annotate({ description: "The ID of the network interface." }),
921
+ ),
922
+ AssociateCarrierIpAddress: Schema.optionalKey(
923
+ Schema.Boolean.annotate({
924
+ description: "Not currently supported by AWS CloudFormation.",
925
+ }),
926
+ ),
927
+ EnaSrdSpecification: Schema.optionalKey(EnaSrdSpecification),
928
+ Ipv6AddressCount: Schema.optionalKey(
929
+ Schema.Number.annotate({
930
+ description:
931
+ "A number of IPv6 addresses to assign to the network interface.",
932
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
933
+ ),
934
+ DeleteOnTermination: Schema.optionalKey(
935
+ Schema.Boolean.annotate({
936
+ description:
937
+ "If set to true, the interface is deleted when the instance is terminated.",
938
+ }),
939
+ ),
940
+ }).annotate({ identifier: "NetworkInterface_1" });
941
+
942
+ export interface AWSInstanceProps {
943
+ readonly Volumes?: globalThis.ReadonlyArray<Volume>;
944
+ readonly EnclaveOptions?: ResourceInputProperties;
945
+ readonly ImageId?: string;
946
+ readonly Tags?: ResourceInputItems;
947
+ readonly AdditionalInfo?: string;
948
+ readonly HibernationOptions?: ResourceInputProperties_1;
949
+ readonly LicenseSpecifications?: ResourceInputItems_1;
950
+ readonly MetadataOptions?: MetadataOptions;
951
+ readonly CpuOptions?: ResourceInputProperties_2;
952
+ readonly AvailabilityZone?: string;
953
+ readonly PrivateDnsNameOptions?: PrivateDnsNameOptions;
954
+ readonly HostId?:
955
+ | ResourceEntity<{
956
+ readonly provider: "aws";
957
+ readonly service: "ec2";
958
+ readonly resource: "host";
959
+ }>
960
+ | string;
961
+ readonly SecurityGroupIds?: globalThis.ReadonlyArray<
962
+ | ResourceEntity<{
963
+ readonly provider: "aws";
964
+ readonly service: "ec2";
965
+ readonly resource: "securitygroup";
966
+ }>
967
+ | string
968
+ >;
969
+ readonly PlacementGroupName?:
970
+ | ResourceEntity<{
971
+ readonly provider: "aws";
972
+ readonly service: "ec2";
973
+ readonly resource: "placementgroup";
974
+ }>
975
+ | string;
976
+ readonly SsmAssociations?: globalThis.ReadonlyArray<SsmAssociation>;
977
+ readonly Affinity?: ResourceInputAlternatives;
978
+ readonly Tenancy?: string;
979
+ readonly SecurityGroups?: ResourceInputItems_3;
980
+ readonly PrivateIpAddress?: string;
981
+ readonly UserData?: string;
982
+ readonly BlockDeviceMappings?: ResourceInputItems_4;
983
+ readonly IamInstanceProfile?:
984
+ | ResourceEntity<{
985
+ readonly provider: "aws";
986
+ readonly service: "iam";
987
+ readonly resource: "instanceprofile";
988
+ }>
989
+ | string;
990
+ readonly Ipv6Addresses?: ResourceInputItems_5;
991
+ readonly KernelId?: string;
992
+ readonly SubnetId?:
993
+ | ResourceEntity<{
994
+ readonly provider: "aws";
995
+ readonly service: "ec2";
996
+ readonly resource: "subnet";
997
+ }>
998
+ | string;
999
+ readonly EbsOptimized?: boolean;
1000
+ readonly PropagateTagsToVolumeOnCreation?: boolean;
1001
+ readonly ElasticGpuSpecifications?: ResourceInputItems_6;
1002
+ readonly ElasticInferenceAccelerators?: ResourceInputItems_7;
1003
+ readonly Ipv6AddressCount?: number;
1004
+ readonly LaunchTemplate?: LaunchTemplateSpecification;
1005
+ readonly NetworkInterfaces?: globalThis.ReadonlyArray<NetworkInterface>;
1006
+ readonly InstanceType?: string;
1007
+ readonly Monitoring?: boolean;
1008
+ readonly InstanceInitiatedShutdownBehavior?: string;
1009
+ readonly HostResourceGroupArn?: string;
1010
+ readonly DisableApiTermination?: boolean;
1011
+ readonly KeyName?: string;
1012
+ readonly RamdiskId?: string;
1013
+ readonly SourceDestCheck?: boolean;
1014
+ readonly CreditSpecification?: ResourceInputProperties_3;
1015
+ }
1016
+
1017
+ export const AWSInstanceResourceSchema = ResourceSchemaAnnotationSchema.make({
1018
+ provider: "aws",
1019
+ service: "ec2",
1020
+ resource: "instance",
1021
+ operation: "create",
1022
+ stateSecretOutputKeys: [],
1023
+ replacement: {
1024
+ order: "createBeforeDestroy",
1025
+ properties: [
1026
+ ["AvailabilityZone"],
1027
+ ["CpuOptions"],
1028
+ ["ElasticGpuSpecifications"],
1029
+ ["ElasticInferenceAccelerators"],
1030
+ ["EnclaveOptions"],
1031
+ ["HibernationOptions"],
1032
+ ["HostResourceGroupArn"],
1033
+ ["ImageId"],
1034
+ ["Ipv6AddressCount"],
1035
+ ["Ipv6Addresses"],
1036
+ ["KeyName"],
1037
+ ["LaunchTemplate"],
1038
+ ["LicenseSpecifications"],
1039
+ ["NetworkInterfaces"],
1040
+ ["PlacementGroupName"],
1041
+ ["PrivateIpAddress"],
1042
+ ["SecurityGroups"],
1043
+ ["SubnetId"],
1044
+ ],
1045
+ },
1046
+ primaryIdentifier: ["/properties/InstanceId"],
1047
+ });
1048
+
1049
+ export const AWSInstancePropsSchema = annotateResourceSchema(
1050
+ Schema.Struct({
1051
+ Volumes: Schema.optionalKey(
1052
+ Schema.Array(Volume).annotate({
1053
+ description: "The volumes to attach to the instance.",
1054
+ }),
1055
+ ),
1056
+ EnclaveOptions: Schema.optionalKey(ResourceInputProperties),
1057
+ ImageId: Schema.optionalKey(
1058
+ Schema.String.annotate({
1059
+ description:
1060
+ "The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch template.",
1061
+ }),
1062
+ ),
1063
+ Tags: Schema.optionalKey(ResourceInputItems),
1064
+ AdditionalInfo: Schema.optionalKey(
1065
+ Schema.String.annotate({
1066
+ description:
1067
+ "This property is reserved for internal use. If you use it, the stack fails with this error: Bad property set: [Testing this property] (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 0XXXXXX-49c7-4b40-8bcc-76885dcXXXXX).",
1068
+ }),
1069
+ ),
1070
+ HibernationOptions: Schema.optionalKey(ResourceInputProperties_1),
1071
+ LicenseSpecifications: Schema.optionalKey(ResourceInputItems_1),
1072
+ MetadataOptions: Schema.optionalKey(MetadataOptions),
1073
+ CpuOptions: Schema.optionalKey(ResourceInputProperties_2),
1074
+ AvailabilityZone: Schema.optionalKey(
1075
+ Schema.String.annotate({
1076
+ description: "The Availability Zone of the instance.",
1077
+ }),
1078
+ ),
1079
+ PrivateDnsNameOptions: Schema.optionalKey(PrivateDnsNameOptions),
1080
+ HostId: Schema.optionalKey(
1081
+ Schema.Union([
1082
+ Schema.Union([
1083
+ ResourceReferenceSchema(
1084
+ Schema.Struct({
1085
+ provider: Schema.Literal("aws"),
1086
+ service: Schema.Literal("ec2"),
1087
+ resource: Schema.Literal("host"),
1088
+ }),
1089
+ {
1090
+ value: null,
1091
+ outputs: [
1092
+ {
1093
+ source: ["HostId"],
1094
+ target: [],
1095
+ },
1096
+ ],
1097
+ },
1098
+ ).annotate({ expected: "ResourceEntity" }),
1099
+ ]),
1100
+ Schema.String.annotate({
1101
+ description:
1102
+ "If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with. If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account.",
1103
+ }),
1104
+ ]),
1105
+ ),
1106
+ SecurityGroupIds: Schema.optionalKey(
1107
+ Schema.Array(
1108
+ Schema.Union([
1109
+ Schema.Union([
1110
+ ResourceReferenceSchema(
1111
+ Schema.Struct({
1112
+ provider: Schema.Literal("aws"),
1113
+ service: Schema.Literal("ec2"),
1114
+ resource: Schema.Literal("securitygroup"),
1115
+ }),
1116
+ {
1117
+ value: null,
1118
+ outputs: [
1119
+ {
1120
+ source: ["Id"],
1121
+ target: [],
1122
+ },
1123
+ ],
1124
+ },
1125
+ ).annotate({ expected: "ResourceEntity" }),
1126
+ ]),
1127
+ Schema.String,
1128
+ ]),
1129
+ ).annotate({ description: "The IDs of the security groups." }),
1130
+ ),
1131
+ PlacementGroupName: Schema.optionalKey(
1132
+ Schema.Union([
1133
+ Schema.Union([
1134
+ ResourceReferenceSchema(
1135
+ Schema.Struct({
1136
+ provider: Schema.Literal("aws"),
1137
+ service: Schema.Literal("ec2"),
1138
+ resource: Schema.Literal("placementgroup"),
1139
+ }),
1140
+ {
1141
+ value: null,
1142
+ outputs: [
1143
+ {
1144
+ source: ["GroupName"],
1145
+ target: [],
1146
+ },
1147
+ ],
1148
+ },
1149
+ ).annotate({ expected: "ResourceEntity" }),
1150
+ ]),
1151
+ Schema.String.annotate({
1152
+ description:
1153
+ "The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).",
1154
+ }),
1155
+ ]),
1156
+ ),
1157
+ SsmAssociations: Schema.optionalKey(
1158
+ Schema.Array(SsmAssociation).annotate({
1159
+ description:
1160
+ "The SSM document and parameter values in AWS Systems Manager to associate with this instance.",
1161
+ }),
1162
+ ),
1163
+ Affinity: Schema.optionalKey(ResourceInputAlternatives),
1164
+ Tenancy: Schema.optionalKey(
1165
+ Schema.String.annotate({
1166
+ description:
1167
+ "The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.",
1168
+ }),
1169
+ ),
1170
+ SecurityGroups: Schema.optionalKey(ResourceInputItems_3),
1171
+ PrivateIpAddress: Schema.optionalKey(
1172
+ Schema.String.annotate({
1173
+ description:
1174
+ "[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.",
1175
+ }),
1176
+ ),
1177
+ UserData: Schema.optionalKey(
1178
+ Schema.String.annotate({
1179
+ description: "The user data to make available to the instance.",
1180
+ }),
1181
+ ),
1182
+ BlockDeviceMappings: Schema.optionalKey(ResourceInputItems_4),
1183
+ IamInstanceProfile: Schema.optionalKey(
1184
+ Schema.Union([
1185
+ Schema.Union([
1186
+ ResourceReferenceSchema(
1187
+ Schema.Struct({
1188
+ provider: Schema.Literal("aws"),
1189
+ service: Schema.Literal("iam"),
1190
+ resource: Schema.Literal("instanceprofile"),
1191
+ }),
1192
+ {
1193
+ value: null,
1194
+ outputs: [
1195
+ {
1196
+ source: ["InstanceProfileName"],
1197
+ target: [],
1198
+ },
1199
+ ],
1200
+ },
1201
+ ).annotate({ expected: "ResourceEntity" }),
1202
+ ]),
1203
+ Schema.String.annotate({ description: "The IAM instance profile." }),
1204
+ ]),
1205
+ ),
1206
+ Ipv6Addresses: Schema.optionalKey(ResourceInputItems_5),
1207
+ KernelId: Schema.optionalKey(
1208
+ Schema.String.annotate({ description: "The ID of the kernel." }),
1209
+ ),
1210
+ SubnetId: Schema.optionalKey(
1211
+ Schema.Union([
1212
+ Schema.Union([
1213
+ ResourceReferenceSchema(
1214
+ Schema.Struct({
1215
+ provider: Schema.Literal("aws"),
1216
+ service: Schema.Literal("ec2"),
1217
+ resource: Schema.Literal("subnet"),
1218
+ }),
1219
+ {
1220
+ value: null,
1221
+ outputs: [
1222
+ {
1223
+ source: ["SubnetId"],
1224
+ target: [],
1225
+ },
1226
+ ],
1227
+ },
1228
+ ).annotate({ expected: "ResourceEntity" }),
1229
+ ]),
1230
+ Schema.String.annotate({
1231
+ description:
1232
+ "[EC2-VPC] The ID of the subnet to launch the instance into.\n\n",
1233
+ }),
1234
+ ]),
1235
+ ),
1236
+ EbsOptimized: Schema.optionalKey(
1237
+ Schema.Boolean.annotate({
1238
+ description:
1239
+ "Indicates whether the instance is optimized for Amazon EBS I/O.",
1240
+ }),
1241
+ ),
1242
+ PropagateTagsToVolumeOnCreation: Schema.optionalKey(
1243
+ Schema.Boolean.annotate({
1244
+ description:
1245
+ "Indicates whether to assign the tags from the instance to all of the volumes attached to the instance at launch. If you specify true and you assign tags to the instance, those tags are automatically assigned to all of the volumes that you attach to the instance at launch. If you specify false, those tags are not assigned to the attached volumes.",
1246
+ }),
1247
+ ),
1248
+ ElasticGpuSpecifications: Schema.optionalKey(ResourceInputItems_6),
1249
+ ElasticInferenceAccelerators: Schema.optionalKey(ResourceInputItems_7),
1250
+ Ipv6AddressCount: Schema.optionalKey(
1251
+ Schema.Number.annotate({
1252
+ description:
1253
+ "[EC2-VPC] The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.",
1254
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1255
+ ),
1256
+ LaunchTemplate: Schema.optionalKey(LaunchTemplateSpecification),
1257
+ NetworkInterfaces: Schema.optionalKey(
1258
+ Schema.Array(NetworkInterface).annotate({
1259
+ description: "The network interfaces to associate with the instance.",
1260
+ }),
1261
+ ),
1262
+ InstanceType: Schema.optionalKey(
1263
+ Schema.String.annotate({ description: "The instance type." }),
1264
+ ),
1265
+ Monitoring: Schema.optionalKey(
1266
+ Schema.Boolean.annotate({
1267
+ description:
1268
+ "Specifies whether detailed monitoring is enabled for the instance.",
1269
+ }),
1270
+ ),
1271
+ InstanceInitiatedShutdownBehavior: Schema.optionalKey(
1272
+ Schema.String.annotate({
1273
+ description:
1274
+ "Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).",
1275
+ }),
1276
+ ),
1277
+ HostResourceGroupArn: Schema.optionalKey(
1278
+ Schema.String.annotate({
1279
+ description:
1280
+ "The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to host.",
1281
+ }),
1282
+ ),
1283
+ DisableApiTermination: Schema.optionalKey(
1284
+ Schema.Boolean.annotate({
1285
+ description:
1286
+ "If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.",
1287
+ }),
1288
+ ),
1289
+ KeyName: Schema.optionalKey(
1290
+ Schema.String.annotate({ description: "The name of the key pair." }),
1291
+ ),
1292
+ RamdiskId: Schema.optionalKey(
1293
+ Schema.String.annotate({
1294
+ description: "The ID of the RAM disk to select.",
1295
+ }),
1296
+ ),
1297
+ SourceDestCheck: Schema.optionalKey(
1298
+ Schema.Boolean.annotate({
1299
+ description:
1300
+ "Specifies whether to enable an instance launched in a VPC to perform NAT.",
1301
+ }),
1302
+ ),
1303
+ CreditSpecification: Schema.optionalKey(ResourceInputProperties_3),
1304
+ }),
1305
+ AWSInstanceResourceSchema,
1306
+ );
1307
+
1308
+ export interface AWSInstanceOutputs {
1309
+ readonly InstanceId?: string;
1310
+ readonly PrivateIp?: string;
1311
+ readonly PublicDnsName?: string;
1312
+ readonly PublicIp?: string;
1313
+ readonly PrivateDnsName?: string;
1314
+ readonly VpcId?: string;
1315
+ readonly State?: State;
1316
+ }
1317
+
1318
+ export const AWSInstanceOutputsSchema = Schema.Struct({
1319
+ InstanceId: Schema.optionalKey(
1320
+ Schema.String.annotate({ description: "The EC2 Instance ID." }),
1321
+ ),
1322
+ PrivateIp: Schema.optionalKey(
1323
+ Schema.String.annotate({
1324
+ description:
1325
+ "The private IP address of the specified instance. For example: 10.24.34.0.",
1326
+ }),
1327
+ ),
1328
+ PublicDnsName: Schema.optionalKey(
1329
+ Schema.String.annotate({
1330
+ description:
1331
+ "The public DNS name of the specified instance. For example: ec2-107-20-50-45.compute-1.amazonaws.com.",
1332
+ }),
1333
+ ),
1334
+ PublicIp: Schema.optionalKey(
1335
+ Schema.String.annotate({
1336
+ description:
1337
+ "The public IP address of the specified instance. For example: 192.0.2.0.",
1338
+ }),
1339
+ ),
1340
+ PrivateDnsName: Schema.optionalKey(
1341
+ Schema.String.annotate({
1342
+ description:
1343
+ "The private DNS name of the specified instance. For example: ip-10-24-34-0.ec2.internal.",
1344
+ }),
1345
+ ),
1346
+ VpcId: Schema.optionalKey(
1347
+ Schema.String.annotate({
1348
+ description: "The ID of the VPC that the instance is running in.",
1349
+ }),
1350
+ ),
1351
+ State: Schema.optionalKey(State),
1352
+ });
1353
+
1354
+ export interface AWSInstanceRequest {
1355
+ readonly Volumes?: globalThis.ReadonlyArray<Volume_1>;
1356
+ readonly EnclaveOptions?: ResourceInputProperties;
1357
+ readonly ImageId?: string;
1358
+ readonly Tags?: ResourceInputItems;
1359
+ readonly AdditionalInfo?: string;
1360
+ readonly HibernationOptions?: ResourceInputProperties_1;
1361
+ readonly LicenseSpecifications?: ResourceInputItems_1;
1362
+ readonly MetadataOptions?: MetadataOptions;
1363
+ readonly CpuOptions?: ResourceInputProperties_2;
1364
+ readonly AvailabilityZone?: string;
1365
+ readonly PrivateDnsNameOptions?: PrivateDnsNameOptions;
1366
+ readonly HostId?: string;
1367
+ readonly SecurityGroupIds?: globalThis.ReadonlyArray<string>;
1368
+ readonly PlacementGroupName?: string;
1369
+ readonly SsmAssociations?: globalThis.ReadonlyArray<SsmAssociation_1>;
1370
+ readonly Affinity?: ResourceInputAlternatives;
1371
+ readonly Tenancy?: string;
1372
+ readonly SecurityGroups?: ResourceInputItems_3;
1373
+ readonly PrivateIpAddress?: string;
1374
+ readonly UserData?: string;
1375
+ readonly BlockDeviceMappings?: ResourceInputItems_4;
1376
+ readonly IamInstanceProfile?: string;
1377
+ readonly Ipv6Addresses?: ResourceInputItems_5;
1378
+ readonly KernelId?: string;
1379
+ readonly SubnetId?: string;
1380
+ readonly EbsOptimized?: boolean;
1381
+ readonly PropagateTagsToVolumeOnCreation?: boolean;
1382
+ readonly ElasticGpuSpecifications?: ResourceInputItems_6;
1383
+ readonly ElasticInferenceAccelerators?: ResourceInputItems_7;
1384
+ readonly Ipv6AddressCount?: number;
1385
+ readonly LaunchTemplate?: LaunchTemplateSpecification_1;
1386
+ readonly NetworkInterfaces?: globalThis.ReadonlyArray<NetworkInterface_1>;
1387
+ readonly InstanceType?: string;
1388
+ readonly Monitoring?: boolean;
1389
+ readonly InstanceInitiatedShutdownBehavior?: string;
1390
+ readonly HostResourceGroupArn?: string;
1391
+ readonly DisableApiTermination?: boolean;
1392
+ readonly KeyName?: string;
1393
+ readonly RamdiskId?: string;
1394
+ readonly SourceDestCheck?: boolean;
1395
+ readonly CreditSpecification?: ResourceInputProperties_3;
1396
+ }
1397
+
1398
+ export const AWSInstanceRequestSchema = Schema.Struct({
1399
+ Volumes: Schema.optionalKey(
1400
+ Schema.Array(Volume_1).annotate({
1401
+ description: "The volumes to attach to the instance.",
1402
+ }),
1403
+ ),
1404
+ EnclaveOptions: Schema.optionalKey(ResourceInputProperties),
1405
+ ImageId: Schema.optionalKey(
1406
+ Schema.String.annotate({
1407
+ description:
1408
+ "The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch template.",
1409
+ }),
1410
+ ),
1411
+ Tags: Schema.optionalKey(ResourceInputItems),
1412
+ AdditionalInfo: Schema.optionalKey(
1413
+ Schema.String.annotate({
1414
+ description:
1415
+ "This property is reserved for internal use. If you use it, the stack fails with this error: Bad property set: [Testing this property] (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 0XXXXXX-49c7-4b40-8bcc-76885dcXXXXX).",
1416
+ }),
1417
+ ),
1418
+ HibernationOptions: Schema.optionalKey(ResourceInputProperties_1),
1419
+ LicenseSpecifications: Schema.optionalKey(ResourceInputItems_1),
1420
+ MetadataOptions: Schema.optionalKey(MetadataOptions),
1421
+ CpuOptions: Schema.optionalKey(ResourceInputProperties_2),
1422
+ AvailabilityZone: Schema.optionalKey(
1423
+ Schema.String.annotate({
1424
+ description: "The Availability Zone of the instance.",
1425
+ }),
1426
+ ),
1427
+ PrivateDnsNameOptions: Schema.optionalKey(PrivateDnsNameOptions),
1428
+ HostId: Schema.optionalKey(
1429
+ Schema.String.annotate({
1430
+ description:
1431
+ "If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with. If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account.",
1432
+ }),
1433
+ ),
1434
+ SecurityGroupIds: Schema.optionalKey(
1435
+ Schema.Array(Schema.String).annotate({
1436
+ description: "The IDs of the security groups.",
1437
+ }),
1438
+ ),
1439
+ PlacementGroupName: Schema.optionalKey(
1440
+ Schema.String.annotate({
1441
+ description:
1442
+ "The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).",
1443
+ }),
1444
+ ),
1445
+ SsmAssociations: Schema.optionalKey(
1446
+ Schema.Array(SsmAssociation_1).annotate({
1447
+ description:
1448
+ "The SSM document and parameter values in AWS Systems Manager to associate with this instance.",
1449
+ }),
1450
+ ),
1451
+ Affinity: Schema.optionalKey(ResourceInputAlternatives),
1452
+ Tenancy: Schema.optionalKey(
1453
+ Schema.String.annotate({
1454
+ description:
1455
+ "The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.",
1456
+ }),
1457
+ ),
1458
+ SecurityGroups: Schema.optionalKey(ResourceInputItems_3),
1459
+ PrivateIpAddress: Schema.optionalKey(
1460
+ Schema.String.annotate({
1461
+ description:
1462
+ "[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.",
1463
+ }),
1464
+ ),
1465
+ UserData: Schema.optionalKey(
1466
+ Schema.String.annotate({
1467
+ description: "The user data to make available to the instance.",
1468
+ }),
1469
+ ),
1470
+ BlockDeviceMappings: Schema.optionalKey(ResourceInputItems_4),
1471
+ IamInstanceProfile: Schema.optionalKey(
1472
+ Schema.String.annotate({ description: "The IAM instance profile." }),
1473
+ ),
1474
+ Ipv6Addresses: Schema.optionalKey(ResourceInputItems_5),
1475
+ KernelId: Schema.optionalKey(
1476
+ Schema.String.annotate({ description: "The ID of the kernel." }),
1477
+ ),
1478
+ SubnetId: Schema.optionalKey(
1479
+ Schema.String.annotate({
1480
+ description:
1481
+ "[EC2-VPC] The ID of the subnet to launch the instance into.\n\n",
1482
+ }),
1483
+ ),
1484
+ EbsOptimized: Schema.optionalKey(
1485
+ Schema.Boolean.annotate({
1486
+ description:
1487
+ "Indicates whether the instance is optimized for Amazon EBS I/O.",
1488
+ }),
1489
+ ),
1490
+ PropagateTagsToVolumeOnCreation: Schema.optionalKey(
1491
+ Schema.Boolean.annotate({
1492
+ description:
1493
+ "Indicates whether to assign the tags from the instance to all of the volumes attached to the instance at launch. If you specify true and you assign tags to the instance, those tags are automatically assigned to all of the volumes that you attach to the instance at launch. If you specify false, those tags are not assigned to the attached volumes.",
1494
+ }),
1495
+ ),
1496
+ ElasticGpuSpecifications: Schema.optionalKey(ResourceInputItems_6),
1497
+ ElasticInferenceAccelerators: Schema.optionalKey(ResourceInputItems_7),
1498
+ Ipv6AddressCount: Schema.optionalKey(
1499
+ Schema.Number.annotate({
1500
+ description:
1501
+ "[EC2-VPC] The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.",
1502
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1503
+ ),
1504
+ LaunchTemplate: Schema.optionalKey(LaunchTemplateSpecification_1),
1505
+ NetworkInterfaces: Schema.optionalKey(
1506
+ Schema.Array(NetworkInterface_1).annotate({
1507
+ description: "The network interfaces to associate with the instance.",
1508
+ }),
1509
+ ),
1510
+ InstanceType: Schema.optionalKey(
1511
+ Schema.String.annotate({ description: "The instance type." }),
1512
+ ),
1513
+ Monitoring: Schema.optionalKey(
1514
+ Schema.Boolean.annotate({
1515
+ description:
1516
+ "Specifies whether detailed monitoring is enabled for the instance.",
1517
+ }),
1518
+ ),
1519
+ InstanceInitiatedShutdownBehavior: Schema.optionalKey(
1520
+ Schema.String.annotate({
1521
+ description:
1522
+ "Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).",
1523
+ }),
1524
+ ),
1525
+ HostResourceGroupArn: Schema.optionalKey(
1526
+ Schema.String.annotate({
1527
+ description:
1528
+ "The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to host.",
1529
+ }),
1530
+ ),
1531
+ DisableApiTermination: Schema.optionalKey(
1532
+ Schema.Boolean.annotate({
1533
+ description:
1534
+ "If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.",
1535
+ }),
1536
+ ),
1537
+ KeyName: Schema.optionalKey(
1538
+ Schema.String.annotate({ description: "The name of the key pair." }),
1539
+ ),
1540
+ RamdiskId: Schema.optionalKey(
1541
+ Schema.String.annotate({
1542
+ description: "The ID of the RAM disk to select.",
1543
+ }),
1544
+ ),
1545
+ SourceDestCheck: Schema.optionalKey(
1546
+ Schema.Boolean.annotate({
1547
+ description:
1548
+ "Specifies whether to enable an instance launched in a VPC to perform NAT.",
1549
+ }),
1550
+ ),
1551
+ CreditSpecification: Schema.optionalKey(ResourceInputProperties_3),
1552
+ });
1553
+
1554
+ /**
1555
+ * The AWSInstanceRelationshipIssues array lists inputs that can use several outputs
1556
+ * from one source type. Each input retains its provider value until a reviewed
1557
+ * mapping chooses an output.
1558
+ */
1559
+ export const AWSInstanceRelationshipIssues = [
1560
+ {
1561
+ propertyPath: ["BlockDeviceMappings", "*", "Ebs", "KmsKeyId"],
1562
+ sourceType: "AWS::KMS::Key",
1563
+ sourceProperties: [["Arn"], ["KeyId"]],
1564
+ message:
1565
+ "Choose one of the permitted source properties before using a resource reference",
1566
+ },
1567
+ ];
1568
+
1569
+ export const AWSInstanceResourceTypeSchema = Schema.Struct({
1570
+ provider: Schema.Literal("aws"),
1571
+ service: Schema.Literal("ec2"),
1572
+ resource: Schema.Literal("instance"),
1573
+ });
1574
+
1575
+ /**
1576
+ * The AWSInstanceResource class retains its owning stack across declarations.
1577
+ * Applied output properties are ordinary values maintained by the lifecycle.
1578
+ */
1579
+ export class AWSInstanceResource<
1580
+ Props = AWSInstanceProps,
1581
+ > extends ResourceEntity<{
1582
+ readonly provider: "aws";
1583
+ readonly service: "ec2";
1584
+ readonly resource: "instance";
1585
+ }> {
1586
+ constructor(
1587
+ key: ResourceKey,
1588
+ readonly props: Props,
1589
+ private readonly binding?: ResourceOutputBinding,
1590
+ ) {
1591
+ super({
1592
+ key,
1593
+ resourceType: {
1594
+ provider: "aws",
1595
+ service: "ec2",
1596
+ resource: "instance",
1597
+ },
1598
+ });
1599
+ }
1600
+
1601
+ /**
1602
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1603
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1604
+ */
1605
+ get InstanceId(): Required<AWSInstanceOutputs>["InstanceId"] {
1606
+ const value: Required<AWSInstanceOutputs>["InstanceId"] =
1607
+ ResourceOutputBinding.value(
1608
+ this.binding,
1609
+ this.key,
1610
+ "InstanceId",
1611
+ Schema.requiredKey(AWSInstanceOutputsSchema.fields.InstanceId),
1612
+ );
1613
+ return value;
1614
+ }
1615
+
1616
+ /**
1617
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1618
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1619
+ */
1620
+ get PrivateIp(): Required<AWSInstanceOutputs>["PrivateIp"] {
1621
+ const value: Required<AWSInstanceOutputs>["PrivateIp"] =
1622
+ ResourceOutputBinding.value(
1623
+ this.binding,
1624
+ this.key,
1625
+ "PrivateIp",
1626
+ Schema.requiredKey(AWSInstanceOutputsSchema.fields.PrivateIp),
1627
+ );
1628
+ return value;
1629
+ }
1630
+
1631
+ /**
1632
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1633
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1634
+ */
1635
+ get PublicDnsName(): Required<AWSInstanceOutputs>["PublicDnsName"] {
1636
+ const value: Required<AWSInstanceOutputs>["PublicDnsName"] =
1637
+ ResourceOutputBinding.value(
1638
+ this.binding,
1639
+ this.key,
1640
+ "PublicDnsName",
1641
+ Schema.requiredKey(AWSInstanceOutputsSchema.fields.PublicDnsName),
1642
+ );
1643
+ return value;
1644
+ }
1645
+
1646
+ /**
1647
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1648
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1649
+ */
1650
+ get PublicIp(): Required<AWSInstanceOutputs>["PublicIp"] {
1651
+ const value: Required<AWSInstanceOutputs>["PublicIp"] =
1652
+ ResourceOutputBinding.value(
1653
+ this.binding,
1654
+ this.key,
1655
+ "PublicIp",
1656
+ Schema.requiredKey(AWSInstanceOutputsSchema.fields.PublicIp),
1657
+ );
1658
+ return value;
1659
+ }
1660
+
1661
+ /**
1662
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1663
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1664
+ */
1665
+ get PrivateDnsName(): Required<AWSInstanceOutputs>["PrivateDnsName"] {
1666
+ const value: Required<AWSInstanceOutputs>["PrivateDnsName"] =
1667
+ ResourceOutputBinding.value(
1668
+ this.binding,
1669
+ this.key,
1670
+ "PrivateDnsName",
1671
+ Schema.requiredKey(AWSInstanceOutputsSchema.fields.PrivateDnsName),
1672
+ );
1673
+ return value;
1674
+ }
1675
+
1676
+ /**
1677
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1678
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1679
+ */
1680
+ get VpcId(): Required<AWSInstanceOutputs>["VpcId"] {
1681
+ const value: Required<AWSInstanceOutputs>["VpcId"] =
1682
+ ResourceOutputBinding.value(
1683
+ this.binding,
1684
+ this.key,
1685
+ "VpcId",
1686
+ Schema.requiredKey(AWSInstanceOutputsSchema.fields.VpcId),
1687
+ );
1688
+ return value;
1689
+ }
1690
+
1691
+ /**
1692
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1693
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1694
+ */
1695
+ get State(): Required<AWSInstanceOutputs>["State"] {
1696
+ const value: Required<AWSInstanceOutputs>["State"] =
1697
+ ResourceOutputBinding.value(
1698
+ this.binding,
1699
+ this.key,
1700
+ "State",
1701
+ Schema.requiredKey(AWSInstanceOutputsSchema.fields.State),
1702
+ );
1703
+ return value;
1704
+ }
1705
+ }
1706
+
1707
+ /**
1708
+ * Callers must validate properties before constructing the declaration.
1709
+ * Compatible resources can depend on it before apply supplies provider values.
1710
+ * Reading applied outputs requires a binding to the owning stack.
1711
+ */
1712
+ export function createAWSInstanceDeclaration<Props>(
1713
+ key: ResourceKey,
1714
+ props: Props,
1715
+ binding?: ResourceOutputBinding,
1716
+ ): AWSInstanceResource<Props> {
1717
+ const resource: AWSInstanceResource<Props> = new AWSInstanceResource<Props>(
1718
+ key,
1719
+ props,
1720
+ binding,
1721
+ );
1722
+
1723
+ return resource;
1724
+ }
1725
+
1726
+ /**
1727
+ * The AWSInstance resource factory registers a validated declaration in the
1728
+ * stack graph. Its outputs become available after apply saves the resource.
1729
+ */
1730
+ export const AWSInstance = Effect.fn("AWSInstance")(function* (input: {
1731
+ logicalId: string;
1732
+ props: AWSInstanceProps;
1733
+ }) {
1734
+ const graph = yield* ResourceGraphBuilder;
1735
+
1736
+ const key: ResourceKey = { logicalId: input.logicalId };
1737
+
1738
+ const declaration = yield* graph.resource(key);
1739
+
1740
+ const props = yield* Schema.decodeEffect(AWSInstancePropsSchema)(input.props);
1741
+
1742
+ yield* declaration.registerEntity(AWSInstanceResourceTypeSchema, {
1743
+ propsSchema: AWSInstancePropsSchema,
1744
+ requestSchema: AWSInstanceRequestSchema,
1745
+ outputsSchema: AWSInstanceOutputsSchema,
1746
+ props,
1747
+ });
1748
+
1749
+ const resource: AWSInstanceResource = createAWSInstanceDeclaration(
1750
+ key,
1751
+ props,
1752
+ declaration.outputs,
1753
+ );
1754
+
1755
+ return resource;
1756
+ });