nomoss 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (635) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +3 -1
  3. package/ROADMAP.md +1 -1
  4. package/docs/README.md +2 -0
  5. package/docs/application/aws-resource-coverage.md +111 -20
  6. package/docs/application/designs/awsRequestBodyEncoding.ts +91 -0
  7. package/docs/application/designs/createBucketModeledErrors.ts +164 -0
  8. package/docs/application/designs/describeSubnetsEc2Query.ts +186 -0
  9. package/docs/application/designs/getBucketTaggingResponseDecoding.ts +136 -0
  10. package/docs/application/designs/lambdaGetPolicyRequest.ts +85 -0
  11. package/docs/application/designs/s3GetObjectDownload.ts +97 -0
  12. package/docs/application/designs/s3ObjectMetadata.ts +154 -0
  13. package/docs/application/designs/selectObjectContentEvents.ts +185 -0
  14. package/docs/application/generation-architecture.md +38 -0
  15. package/docs/application/resource-operations.md +4 -2
  16. package/docs/development/code-documentation.md +2 -0
  17. package/docs/development/design-walkthroughs.md +49 -0
  18. package/docs/development/effect-native-development.md +31 -2
  19. package/docs/development/review-code.md +1 -1
  20. package/docs/development/review-remediation-spec.md +1 -0
  21. package/docs/development/testing.md +20 -0
  22. package/docs/operations/releasing.md +4 -2
  23. package/examples/queue/application.ts +1 -1
  24. package/media/nomoss-logo.svg +16 -0
  25. package/package.json +8 -14
  26. package/providers/aws/README.md +7 -7
  27. package/providers/aws/awsEnvironment.ts +3 -3
  28. package/providers/aws/generated/resources/apigateway/apikey.ts +335 -0
  29. package/providers/aws/generated/resources/apigateway/authorizer.ts +329 -0
  30. package/providers/aws/generated/resources/apigateway/basepathmapping.ts +265 -0
  31. package/providers/aws/generated/resources/apigateway/deployment.ts +515 -0
  32. package/providers/aws/generated/resources/apigateway/domainname.ts +354 -0
  33. package/providers/aws/generated/resources/apigateway/gatewayresponse.ts +222 -0
  34. package/providers/aws/generated/resources/apigateway/method.ts +819 -0
  35. package/providers/aws/generated/resources/apigateway/model.ts +248 -0
  36. package/providers/aws/generated/resources/apigateway/requestvalidator.ts +224 -0
  37. package/providers/aws/generated/resources/apigateway/resource.ts +235 -0
  38. package/providers/aws/generated/resources/apigateway/restapi.ts +583 -0
  39. package/providers/aws/generated/resources/apigateway/stage.ts +656 -0
  40. package/providers/aws/generated/resources/apigateway/usageplan.ts +394 -0
  41. package/providers/aws/generated/resources/apigateway/usageplankey.ts +228 -0
  42. package/providers/aws/generated/resources/apigatewayv2/api.ts +40 -60
  43. package/providers/aws/generated/resources/apigatewayv2/apimapping.ts +284 -0
  44. package/providers/aws/generated/resources/apigatewayv2/authorizer.ts +333 -0
  45. package/providers/aws/generated/resources/apigatewayv2/deployment.ts +226 -0
  46. package/providers/aws/generated/resources/apigatewayv2/domainname.ts +333 -0
  47. package/providers/aws/generated/resources/apigatewayv2/integration.ts +70 -103
  48. package/providers/aws/generated/resources/apigatewayv2/integrationresponse.ts +323 -0
  49. package/providers/aws/generated/resources/apigatewayv2/model.ts +241 -0
  50. package/providers/aws/generated/resources/apigatewayv2/route.ts +59 -63
  51. package/providers/aws/generated/resources/apigatewayv2/routeresponse.ts +330 -0
  52. package/providers/aws/generated/resources/apigatewayv2/routingrule.ts +349 -0
  53. package/providers/aws/generated/resources/apigatewayv2/stage.ts +45 -66
  54. package/providers/aws/generated/resources/apigatewayv2/vpclink.ts +256 -0
  55. package/providers/aws/generated/resources/appsync/api.ts +486 -0
  56. package/providers/aws/generated/resources/appsync/apicache.ts +169 -0
  57. package/providers/aws/generated/resources/appsync/apikey.ts +245 -0
  58. package/providers/aws/generated/resources/appsync/channelnamespace.ts +444 -0
  59. package/providers/aws/generated/resources/appsync/datasource.ts +757 -0
  60. package/providers/aws/generated/resources/appsync/domainname.ts +355 -0
  61. package/providers/aws/generated/resources/appsync/domainnameapiassociation.ts +284 -0
  62. package/providers/aws/generated/resources/appsync/functionconfiguration.ts +448 -0
  63. package/providers/aws/generated/resources/appsync/graphqlapi.ts +1028 -0
  64. package/providers/aws/generated/resources/appsync/graphqlschema.ts +188 -0
  65. package/providers/aws/generated/resources/appsync/resolver.ts +514 -0
  66. package/providers/aws/generated/resources/appsync/sourceapiassociation.ts +429 -0
  67. package/providers/aws/generated/resources/certificatemanager/certificate.ts +211 -0
  68. package/providers/aws/generated/resources/cloudfront/cachepolicy.ts +352 -0
  69. package/providers/aws/generated/resources/cloudfront/distribution.ts +2477 -0
  70. package/providers/aws/generated/resources/cloudfront/function.ts +313 -0
  71. package/providers/aws/generated/resources/cloudfront/originaccesscontrol.ts +204 -0
  72. package/providers/aws/generated/resources/cloudfront/originrequestpolicy.ts +285 -0
  73. package/providers/aws/generated/resources/cloudfront/responseheaderspolicy.ts +591 -0
  74. package/providers/aws/generated/resources/cloudwatch/alarm.ts +4545 -0
  75. package/providers/aws/generated/resources/cloudwatch/compositealarm.ts +678 -0
  76. package/providers/aws/generated/resources/cloudwatch/dashboard.ts +229 -0
  77. package/providers/aws/generated/resources/cognito/identitypool.ts +419 -0
  78. package/providers/aws/generated/resources/cognito/identitypoolroleattachment.ts +288 -0
  79. package/providers/aws/generated/resources/cognito/userpool.ts +1372 -0
  80. package/providers/aws/generated/resources/cognito/userpoolclient.ts +555 -0
  81. package/providers/aws/generated/resources/cognito/userpooldomain.ts +223 -0
  82. package/providers/aws/generated/resources/cognito/userpoolgroup.ts +265 -0
  83. package/providers/aws/generated/resources/cognito/userpoolidentityprovider.ts +216 -0
  84. package/providers/aws/generated/resources/cognito/userpoolresourceserver.ts +233 -0
  85. package/providers/aws/generated/resources/dynamodb/globaltable.ts +1002 -0
  86. package/providers/aws/generated/resources/dynamodb/table.ts +1058 -0
  87. package/providers/aws/generated/resources/ec2/eip.ts +303 -0
  88. package/providers/aws/generated/resources/ec2/instance.ts +1756 -0
  89. package/providers/aws/generated/resources/ec2/internetgateway.ts +185 -0
  90. package/providers/aws/generated/resources/ec2/launchtemplate.ts +2218 -0
  91. package/providers/aws/generated/resources/ec2/natgateway.ts +509 -0
  92. package/providers/aws/generated/resources/ec2/route.ts +595 -0
  93. package/providers/aws/generated/resources/ec2/routetable.ts +207 -0
  94. package/providers/aws/generated/resources/ec2/securitygroup.ts +460 -0
  95. package/providers/aws/generated/resources/ec2/securitygroupegress.ts +332 -0
  96. package/providers/aws/generated/resources/ec2/securitygroupingress.ts +488 -0
  97. package/providers/aws/generated/resources/ec2/subnet.ts +492 -0
  98. package/providers/aws/generated/resources/ec2/subnetroutetableassociation.ts +228 -0
  99. package/providers/aws/generated/resources/ec2/volume.ts +267 -0
  100. package/providers/aws/generated/resources/ec2/volumeattachment.ts +268 -0
  101. package/providers/aws/generated/resources/ec2/vpc.ts +288 -0
  102. package/providers/aws/generated/resources/ec2/vpcendpoint.ts +660 -0
  103. package/providers/aws/generated/resources/ec2/vpcgatewayattachment.ts +290 -0
  104. package/providers/aws/generated/resources/ec2/vpcpeeringconnection.ts +310 -0
  105. package/providers/aws/generated/resources/ecr/repository.ts +627 -0
  106. package/providers/aws/generated/resources/ecs/cluster.ts +616 -0
  107. package/providers/aws/generated/resources/ecs/service.ts +2065 -0
  108. package/providers/aws/generated/resources/ecs/taskdefinition.ts +1848 -0
  109. package/providers/aws/generated/resources/elasticloadbalancingv2/listener.ts +1166 -0
  110. package/providers/aws/generated/resources/elasticloadbalancingv2/listenercertificate.ts +168 -0
  111. package/providers/aws/generated/resources/elasticloadbalancingv2/listenerrule.ts +1219 -0
  112. package/providers/aws/generated/resources/elasticloadbalancingv2/loadbalancer.ts +706 -0
  113. package/providers/aws/generated/resources/elasticloadbalancingv2/targetgroup.ts +699 -0
  114. package/providers/aws/generated/resources/events/apidestination.ts +314 -0
  115. package/providers/aws/generated/resources/events/archive.ts +316 -0
  116. package/providers/aws/generated/resources/events/connection.ts +609 -0
  117. package/providers/aws/generated/resources/events/endpoint.ts +551 -0
  118. package/providers/aws/generated/resources/events/eventbus.ts +261 -0
  119. package/providers/aws/generated/resources/events/eventbuspolicy.ts +343 -0
  120. package/providers/aws/generated/resources/events/rule.ts +1253 -0
  121. package/providers/aws/generated/resources/eventschemas/discoverer.ts +273 -0
  122. package/providers/aws/generated/resources/eventschemas/registry.ts +183 -0
  123. package/providers/aws/generated/resources/eventschemas/registrypolicy.ts +193 -0
  124. package/providers/aws/generated/resources/eventschemas/schema.ts +305 -0
  125. package/providers/aws/generated/resources/iam/accesskey.ts +12 -16
  126. package/providers/aws/generated/resources/iam/group.ts +13 -16
  127. package/providers/aws/generated/resources/iam/grouppolicy.ts +16 -20
  128. package/providers/aws/generated/resources/iam/instanceprofile.ts +2 -2
  129. package/providers/aws/generated/resources/iam/managedpolicy.ts +27 -36
  130. package/providers/aws/generated/resources/iam/oidcprovider.ts +52 -104
  131. package/providers/aws/generated/resources/iam/policy.ts +33 -90
  132. package/providers/aws/generated/resources/iam/role.ts +45 -60
  133. package/providers/aws/generated/resources/iam/rolepolicy.ts +16 -20
  134. package/providers/aws/generated/resources/iam/samlprovider.ts +72 -164
  135. package/providers/aws/generated/resources/iam/servercertificate.ts +73 -187
  136. package/providers/aws/generated/resources/iam/servicelinkedrole.ts +24 -40
  137. package/providers/aws/generated/resources/iam/user.ts +26 -32
  138. package/providers/aws/generated/resources/iam/userpolicy.ts +16 -20
  139. package/providers/aws/generated/resources/iam/usertogroupaddition.ts +2 -2
  140. package/providers/aws/generated/resources/iam/virtualmfadevice.ts +53 -97
  141. package/providers/aws/generated/resources/kms/alias.ts +225 -0
  142. package/providers/aws/generated/resources/kms/key.ts +33 -207
  143. package/providers/aws/generated/resources/kms/replicakey.ts +292 -0
  144. package/providers/aws/generated/resources/lambda/alias.ts +301 -0
  145. package/providers/aws/generated/resources/lambda/codesigningconfig.ts +414 -0
  146. package/providers/aws/generated/resources/lambda/eventinvokeconfig.ts +677 -0
  147. package/providers/aws/generated/resources/lambda/eventsourcemapping.ts +1798 -0
  148. package/providers/aws/generated/resources/lambda/function.ts +135 -181
  149. package/providers/aws/generated/resources/lambda/layerversion.ts +298 -0
  150. package/providers/aws/generated/resources/lambda/layerversionpermission.ts +233 -0
  151. package/providers/aws/generated/resources/lambda/permission.ts +13 -14
  152. package/providers/aws/generated/resources/lambda/url.ts +452 -0
  153. package/providers/aws/generated/resources/lambda/version.ts +349 -0
  154. package/providers/aws/generated/resources/pipes/pipe.ts +3801 -0
  155. package/providers/aws/generated/resources/rds/dbcluster.ts +1710 -0
  156. package/providers/aws/generated/resources/rds/dbinstance.ts +2248 -0
  157. package/providers/aws/generated/resources/rds/dbsubnetgroup.ts +270 -0
  158. package/providers/aws/generated/resources/route53/healthcheck.ts +648 -0
  159. package/providers/aws/generated/resources/route53/hostedzone.ts +430 -0
  160. package/providers/aws/generated/resources/route53/recordset.ts +249 -0
  161. package/providers/aws/generated/resources/route53/recordsetgroup.ts +263 -0
  162. package/providers/aws/generated/resources/s3/accesspoint.ts +616 -0
  163. package/providers/aws/generated/resources/s3/bucket.ts +1733 -1831
  164. package/providers/aws/generated/resources/s3/bucketpolicy.ts +214 -0
  165. package/providers/aws/generated/resources/scheduler/schedule.ts +1563 -0
  166. package/providers/aws/generated/resources/scheduler/schedulegroup.ts +351 -0
  167. package/providers/aws/generated/resources/secretsmanager/resourcepolicy.ts +242 -0
  168. package/providers/aws/generated/resources/secretsmanager/rotationschedule.ts +314 -0
  169. package/providers/aws/generated/resources/secretsmanager/secret.ts +327 -0
  170. package/providers/aws/generated/resources/secretsmanager/secrettargetattachment.ts +167 -0
  171. package/providers/aws/generated/resources/sns/subscription.ts +488 -0
  172. package/providers/aws/generated/resources/sns/topic.ts +60 -88
  173. package/providers/aws/generated/resources/sns/topicinlinepolicy.ts +169 -0
  174. package/providers/aws/generated/resources/sns/topicpolicy.ts +172 -0
  175. package/providers/aws/generated/resources/sqs/queue.ts +53 -82
  176. package/providers/aws/generated/resources/sqs/queueinlinepolicy.ts +163 -0
  177. package/providers/aws/generated/resources/sqs/queuepolicy.ts +172 -0
  178. package/providers/aws/generated/resources/ssm/association.ts +906 -0
  179. package/providers/aws/generated/resources/ssm/document.ts +472 -0
  180. package/providers/aws/generated/resources/ssm/maintenancewindow.ts +225 -0
  181. package/providers/aws/generated/resources/ssm/maintenancewindowtarget.ts +289 -0
  182. package/providers/aws/generated/resources/ssm/maintenancewindowtask.ts +497 -0
  183. package/providers/aws/generated/resources/ssm/parameter.ts +258 -0
  184. package/providers/aws/generated/resources/ssm/patchbaseline.ts +668 -0
  185. package/providers/aws/generated/resources/ssm/resourcedatasync.ts +465 -0
  186. package/providers/aws/generated/resources/ssm/resourcepolicy.ts +211 -0
  187. package/providers/aws/generated/resources/stepfunctions/activity.ts +237 -0
  188. package/providers/aws/generated/resources/stepfunctions/statemachine.ts +54 -41
  189. package/providers/aws/generated/resources/stepfunctions/statemachinealias.ts +361 -0
  190. package/providers/aws/generated/resources/stepfunctions/statemachineversion.ts +202 -0
  191. package/providers/aws/management/ec2/internetGateway.ts +129 -0
  192. package/providers/aws/management/ec2/resourceTags.ts +89 -0
  193. package/providers/aws/management/ec2/route.ts +254 -0
  194. package/providers/aws/management/ec2/routeTable.ts +138 -0
  195. package/providers/aws/management/ec2/subnet.ts +511 -0
  196. package/providers/aws/management/ec2/subnetRouteTableAssociation.ts +129 -0
  197. package/providers/aws/management/ec2/vpc.ts +466 -0
  198. package/providers/aws/management/ec2/vpcGatewayAttachment.ts +238 -0
  199. package/providers/aws/management/iam/role.ts +520 -0
  200. package/providers/aws/management/lambda/function.ts +651 -0
  201. package/providers/aws/management/resourcePolicies.ts +102 -0
  202. package/providers/aws/management/s3/bucket.ts +315 -0
  203. package/providers/aws/management/s3/bucketConfiguration.ts +1102 -0
  204. package/providers/aws/runtime.ts +17 -19
  205. package/src/core/resource/model.ts +13 -3
  206. package/src/core/resource/resourceCommandPolicy.ts +5 -1
  207. package/src/core/resource/resourceEntries.ts +193 -0
  208. package/src/core/resource/resourceLifecycle.ts +39 -23
  209. package/src/core/stack/planner.ts +78 -40
  210. package/src/core/stack/resourceStackLifecycle.ts +112 -18
  211. package/src/core/stack/resourceStackOperations.ts +18 -0
  212. package/src/core/stack/stackWorkflowRenderer.ts +12 -3
  213. package/src/core/state/stateStore.ts +47 -10
  214. package/src/providers/providerRuntimeLayer.ts +1 -1
  215. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5 -5055
  216. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5 -5055
  217. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsValidators.ts +5058 -0
  218. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +5 -2443
  219. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +5 -2443
  220. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsValidators.ts +2446 -0
  221. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +5 -23
  222. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +5 -23
  223. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsValidators.ts +26 -0
  224. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +5 -63
  225. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +5 -63
  226. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsValidators.ts +66 -0
  227. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +11 -121
  228. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +11 -121
  229. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsValidators.ts +130 -0
  230. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +17 -21
  231. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +4 -12
  232. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsValidators.ts +109 -0
  233. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +3 -2
  234. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +3 -2
  235. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsValidators.ts +11 -0
  236. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +18 -108
  237. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +18 -108
  238. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsValidators.ts +122 -0
  239. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +5 -30
  240. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +5 -30
  241. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsValidators.ts +34 -0
  242. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +5 -110
  243. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +5 -110
  244. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsValidators.ts +113 -0
  245. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +42 -218
  246. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +63 -336
  247. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsValidators.ts +604 -0
  248. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +11 -123
  249. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +11 -123
  250. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsValidators.ts +133 -0
  251. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +25 -322
  252. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +20 -317
  253. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsValidators.ts +359 -0
  254. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +139 -4161
  255. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +181 -4265
  256. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsValidators.ts +4529 -0
  257. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +5 -86
  258. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +5 -86
  259. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsValidators.ts +89 -0
  260. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +5 -151
  261. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +5 -151
  262. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsValidators.ts +154 -0
  263. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +34 -169
  264. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +24 -159
  265. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsValidators.ts +235 -0
  266. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +46 -644
  267. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +41 -639
  268. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsValidators.ts +691 -0
  269. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +5 -46
  270. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +5 -46
  271. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsValidators.ts +49 -0
  272. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +5 -160
  273. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +5 -160
  274. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsValidators.ts +163 -0
  275. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +8 -19
  276. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +8 -19
  277. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsValidators.ts +28 -0
  278. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +5 -55
  279. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +5 -55
  280. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsValidators.ts +58 -0
  281. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +36 -121
  282. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +24 -111
  283. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsValidators.ts +183 -0
  284. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +5 -119
  285. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +5 -119
  286. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsValidators.ts +122 -0
  287. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +5 -45
  288. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +5 -45
  289. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsValidators.ts +48 -0
  290. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +5 -195
  291. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +5 -195
  292. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsValidators.ts +198 -0
  293. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +5 -97
  294. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +5 -97
  295. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsValidators.ts +100 -0
  296. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +69 -1282
  297. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +43 -1259
  298. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsValidators.ts +1417 -0
  299. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +32 -126
  300. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +27 -121
  301. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsValidators.ts +172 -0
  302. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +32 -2103
  303. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +32 -2103
  304. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsValidators.ts +2134 -0
  305. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +37 -2065
  306. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +32 -2060
  307. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsValidators.ts +2196 -0
  308. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +56 -97
  309. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +98 -251
  310. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsValidators.ts +1024 -0
  311. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +14 -89
  312. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +14 -89
  313. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsValidators.ts +100 -0
  314. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +5 -246
  315. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +5 -246
  316. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsValidators.ts +249 -0
  317. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +5 -115
  318. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +5 -115
  319. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsValidators.ts +118 -0
  320. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +65 -5205
  321. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +59 -5200
  322. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsValidators.ts +5124 -0
  323. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +101 -1508
  324. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +95 -1598
  325. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsValidators.ts +2039 -0
  326. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +5 -2272
  327. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +5 -2272
  328. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsValidators.ts +2276 -0
  329. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +5 -37
  330. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +5 -37
  331. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsValidators.ts +40 -0
  332. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +194 -1425
  333. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +194 -1425
  334. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsValidators.ts +1580 -0
  335. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +5 -265
  336. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +5 -265
  337. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsValidators.ts +268 -0
  338. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +14 -28
  339. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +14 -28
  340. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsValidators.ts +42 -0
  341. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +26 -96
  342. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +26 -96
  343. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsValidators.ts +117 -0
  344. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +35 -314
  345. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +35 -314
  346. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsValidators.ts +330 -0
  347. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +5 -33
  348. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +5 -33
  349. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsValidators.ts +37 -0
  350. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +16 -43
  351. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +9 -39
  352. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsValidators.ts +105 -0
  353. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +5 -358
  354. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +5 -358
  355. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsValidators.ts +361 -0
  356. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +18 -66
  357. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +11 -61
  358. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsValidators.ts +100 -0
  359. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +73 -366
  360. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +49 -345
  361. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsValidators.ts +569 -0
  362. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +5 -39
  363. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +5 -39
  364. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsValidators.ts +42 -0
  365. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +5 -76
  366. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +5 -76
  367. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsValidators.ts +79 -0
  368. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +5 -27
  369. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +5 -27
  370. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsValidators.ts +30 -0
  371. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +11 -30
  372. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +11 -30
  373. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsValidators.ts +41 -0
  374. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +5 -1356
  375. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +5 -1356
  376. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsValidators.ts +1359 -0
  377. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +35 -2767
  378. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +35 -2767
  379. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsValidators.ts +2761 -0
  380. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +5 -170
  381. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +5 -170
  382. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsValidators.ts +173 -0
  383. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +5 -549
  384. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +5 -549
  385. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsValidators.ts +552 -0
  386. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +32 -143
  387. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +27 -138
  388. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsValidators.ts +187 -0
  389. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +99 -1668
  390. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +70 -1644
  391. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsValidators.ts +1872 -0
  392. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +123 -497
  393. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +118 -755
  394. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsValidators.ts +1902 -0
  395. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +23 -301
  396. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +11 -291
  397. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsValidators.ts +359 -0
  398. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +5 -113
  399. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +5 -113
  400. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsValidators.ts +116 -0
  401. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +5 -159
  402. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +5 -159
  403. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsValidators.ts +162 -0
  404. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +5 -3321
  405. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +5 -3321
  406. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsValidators.ts +3324 -0
  407. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +73 -698
  408. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +23 -646
  409. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsValidators.ts +931 -0
  410. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +5 -292
  411. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +5 -292
  412. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsValidators.ts +295 -0
  413. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +8 -19
  414. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +8 -19
  415. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsValidators.ts +29 -0
  416. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +5 -47
  417. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +5 -47
  418. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsValidators.ts +51 -0
  419. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +40 -629
  420. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +40 -629
  421. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsValidators.ts +655 -0
  422. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +5 -2387
  423. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +5 -2387
  424. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsValidators.ts +2391 -0
  425. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +11 -50
  426. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +11 -50
  427. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsValidators.ts +58 -0
  428. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +11 -21
  429. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +11 -21
  430. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsValidators.ts +34 -0
  431. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +5 -36
  432. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +5 -36
  433. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsValidators.ts +40 -0
  434. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +5 -36
  435. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +5 -36
  436. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsValidators.ts +40 -0
  437. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +5 -276
  438. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +5 -275
  439. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsValidators.ts +279 -0
  440. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +5 -73
  441. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +5 -73
  442. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsValidators.ts +77 -0
  443. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +5 -340
  444. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +5 -340
  445. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsValidators.ts +344 -0
  446. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +5 -137
  447. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +5 -137
  448. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsValidators.ts +141 -0
  449. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +5 -45
  450. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +5 -45
  451. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsValidators.ts +48 -0
  452. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +144 -3036
  453. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +279 -3175
  454. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsValidators.ts +3457 -0
  455. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +5 -883
  456. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +5 -882
  457. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsValidators.ts +886 -0
  458. package/src/providers/stripe/client/stripeClient.ts +11 -15
  459. package/providers/aws/generated/managementRegistry.ts +0 -136
  460. package/providers/aws/management/mappings/iam/group.ts +0 -63
  461. package/providers/aws/management/mappings/iam/iamIdentity.ts +0 -41
  462. package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +0 -8
  463. package/providers/aws/management/mappings/iam/inlinePolicies.ts +0 -159
  464. package/providers/aws/management/mappings/iam/instanceProfile.ts +0 -77
  465. package/providers/aws/management/mappings/iam/oidcProvider.ts +0 -94
  466. package/providers/aws/management/mappings/iam/role.ts +0 -74
  467. package/providers/aws/management/mappings/iam/samlProvider.ts +0 -98
  468. package/providers/aws/management/mappings/iam/serverCertificate.ts +0 -72
  469. package/providers/aws/management/mappings/iam/user.ts +0 -61
  470. package/providers/aws/management/mappings/iam/userToGroupAddition.ts +0 -75
  471. package/providers/aws/management/operations/iam/accessKey.ts +0 -206
  472. package/providers/aws/management/operations/iam/managedPolicy.ts +0 -491
  473. package/providers/aws/management/operations/iam/policy.ts +0 -476
  474. package/providers/aws/management/operations/iam/serviceLinkedRole.ts +0 -172
  475. package/providers/aws/management/operations/iam/virtualMfaDevice.ts +0 -253
  476. package/providers/aws/management/resourceAssociationConfiguration.ts +0 -112
  477. package/providers/aws/management/resourceAssociationRegistration.ts +0 -349
  478. package/providers/aws/management/resourceAssociations.ts +0 -168
  479. package/providers/aws/management/resourceConfiguration.ts +0 -119
  480. package/providers/aws/management/resourceLifecycleRegistration.ts +0 -540
  481. package/providers/aws/management/resourceManagementModule.ts +0 -31
  482. package/providers/aws/management/resourceManagementRegistry.ts +0 -62
  483. package/providers/aws/management/resourceMapping.ts +0 -84
  484. package/providers/aws/management/resourceOperation.ts +0 -134
  485. package/providers/aws/management/resourceTagOperations.ts +0 -108
  486. package/providers/aws/management/resourceTiming.ts +0 -4
  487. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +0 -35
  488. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +0 -35
  489. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +0 -44
  490. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +0 -35
  491. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +0 -35
  492. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +0 -35
  493. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +0 -35
  494. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +0 -35
  495. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +0 -35
  496. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +0 -35
  497. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +0 -35
  498. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +0 -35
  499. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +0 -68
  500. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +0 -35
  501. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +0 -35
  502. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +0 -35
  503. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +0 -35
  504. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +0 -35
  505. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +0 -44
  506. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +0 -35
  507. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +0 -35
  508. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +0 -35
  509. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +0 -35
  510. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +0 -35
  511. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +0 -35
  512. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +0 -35
  513. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +0 -35
  514. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +0 -35
  515. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +0 -44
  516. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +0 -35
  517. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +0 -35
  518. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +0 -35
  519. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +0 -35
  520. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +0 -35
  521. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +0 -35
  522. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +0 -35
  523. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +0 -35
  524. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +0 -35
  525. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +0 -59
  526. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +0 -35
  527. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +0 -35
  528. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +0 -35
  529. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +0 -35
  530. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +0 -35
  531. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +0 -35
  532. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +0 -111
  533. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +0 -35
  534. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +0 -77
  535. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +0 -35
  536. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +0 -35
  537. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +0 -35
  538. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +0 -35
  539. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +0 -50
  540. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +0 -35
  541. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +0 -35
  542. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +0 -83
  543. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +0 -35
  544. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +0 -50
  545. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +0 -35
  546. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +0 -74
  547. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +0 -35
  548. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +0 -65
  549. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +0 -35
  550. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +0 -79
  551. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +0 -35
  552. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +0 -35
  553. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +0 -35
  554. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +0 -35
  555. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +0 -44
  556. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +0 -35
  557. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +0 -35
  558. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +0 -44
  559. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +0 -35
  560. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +0 -35
  561. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +0 -35
  562. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +0 -35
  563. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +0 -35
  564. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +0 -35
  565. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +0 -35
  566. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +0 -35
  567. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +0 -35
  568. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +0 -35
  569. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +0 -35
  570. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +0 -35
  571. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +0 -35
  572. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +0 -44
  573. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +0 -35
  574. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +0 -35
  575. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +0 -35
  576. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +0 -39
  577. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +0 -35
  578. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +0 -35
  579. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +0 -35
  580. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +0 -35
  581. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +0 -35
  582. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +0 -35
  583. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +0 -56
  584. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +0 -35
  585. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +0 -35
  586. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +0 -35
  587. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +0 -44
  588. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +0 -35
  589. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +0 -56
  590. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +0 -35
  591. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +0 -35
  592. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +0 -35
  593. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +0 -35
  594. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +0 -35
  595. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +0 -35
  596. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +0 -38
  597. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +0 -39
  598. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +0 -38
  599. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +0 -154
  600. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +0 -51
  601. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +0 -120
  602. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +0 -32
  603. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +0 -37
  604. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +0 -125
  605. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +0 -34
  606. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +0 -34
  607. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +0 -34
  608. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +0 -34
  609. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +0 -32
  610. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +0 -37
  611. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +0 -34
  612. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +0 -130
  613. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +0 -34
  614. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +0 -39
  615. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +0 -89
  616. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +0 -34
  617. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +0 -30
  618. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +0 -34
  619. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +0 -34
  620. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +0 -34
  621. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +0 -34
  622. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +0 -97
  623. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +0 -34
  624. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +0 -34
  625. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +0 -37
  626. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +0 -34
  627. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +0 -97
  628. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +0 -34
  629. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +0 -34
  630. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +0 -37
  631. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +0 -53
  632. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +0 -42
  633. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +0 -63
  634. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +0 -94
  635. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +0 -34
@@ -0,0 +1,1848 @@
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 InferenceAccelerator {
15
+ readonly DeviceType?: string;
16
+ readonly DeviceName?: string;
17
+ }
18
+
19
+ const InferenceAccelerator = Schema.Struct({
20
+ DeviceType: Schema.optionalKey(Schema.String),
21
+ DeviceName: Schema.optionalKey(Schema.String),
22
+ }).annotate({ description: "", identifier: "InferenceAccelerator" });
23
+
24
+ type ResourceInputItems = globalThis.ReadonlyArray<InferenceAccelerator>;
25
+
26
+ const ResourceInputItems = Schema.Array(InferenceAccelerator)
27
+ .annotate({ description: "" })
28
+ .check(
29
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
30
+ );
31
+
32
+ interface TaskDefinitionPlacementConstraint {
33
+ readonly Type: string;
34
+ readonly Expression?: string;
35
+ }
36
+
37
+ const TaskDefinitionPlacementConstraint = Schema.Struct({
38
+ Type: Schema.String.annotate({
39
+ description:
40
+ "The type of constraint. The ``MemberOf`` constraint restricts selection to be from a group of valid candidates.",
41
+ }),
42
+ Expression: Schema.optionalKey(
43
+ Schema.String.annotate({
44
+ description:
45
+ "A cluster query language expression to apply to the constraint. For more information, see [Cluster query language](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) in the *Amazon Elastic Container Service Developer Guide*.",
46
+ }),
47
+ ),
48
+ }).annotate({
49
+ description:
50
+ "The constraint on task placement in the task definition. For more information, see [Task placement constraints](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html) in the *Amazon Elastic Container Service Developer Guide*.\n Task placement constraints aren't supported for tasks run on FARGATElong.",
51
+ identifier: "TaskDefinitionPlacementConstraint",
52
+ });
53
+
54
+ type ResourceInputItems_1 =
55
+ globalThis.ReadonlyArray<TaskDefinitionPlacementConstraint>;
56
+
57
+ const ResourceInputItems_1 = Schema.Array(TaskDefinitionPlacementConstraint)
58
+ .annotate({
59
+ description:
60
+ "An array of placement constraint objects to use for tasks.\n This parameter isn't supported for tasks run on FARGATElong.",
61
+ })
62
+ .check(
63
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
64
+ );
65
+
66
+ type ResourceInputItems_2 = globalThis.ReadonlyArray<string>;
67
+
68
+ const ResourceInputItems_2 = Schema.Array(Schema.String)
69
+ .annotate({
70
+ description:
71
+ "The task launch types the task definition was validated against. The valid values are ``MANAGED_INSTANCES``, ``EC2``, ``FARGATE``, and ``EXTERNAL``. For more information, see [Amazon ECS launch types](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) in the *Amazon Elastic Container Service Developer Guide*.",
72
+ })
73
+ .check(
74
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
75
+ );
76
+
77
+ interface RuntimePlatform {
78
+ readonly OperatingSystemFamily?: string;
79
+ readonly CpuArchitecture?: string;
80
+ }
81
+
82
+ const RuntimePlatform = Schema.Struct({
83
+ OperatingSystemFamily: Schema.optionalKey(
84
+ Schema.String.annotate({ description: "The operating system." }),
85
+ ),
86
+ CpuArchitecture: Schema.optionalKey(
87
+ Schema.String.annotate({
88
+ description:
89
+ "The CPU architecture.\n You can run your Linux tasks on an ARM-based platform by setting the value to ``ARM64``. This option is available for tasks that run on Linux Amazon EC2 instance, Amazon ECS Managed Instances, or Linux containers on Fargate.",
90
+ }),
91
+ ),
92
+ }).annotate({
93
+ description:
94
+ "Information about the platform for the Amazon ECS service or task.\n For more information about ``RuntimePlatform``, see [RuntimePlatform](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#runtime-platform) in the *Amazon Elastic Container Service Developer Guide*.",
95
+ identifier: "RuntimePlatform",
96
+ });
97
+
98
+ interface KeyValuePair {
99
+ readonly Value?: string;
100
+ readonly Name?: string;
101
+ }
102
+
103
+ const KeyValuePair = Schema.Struct({
104
+ Value: Schema.optionalKey(
105
+ Schema.String.annotate({
106
+ description:
107
+ "The value of the key-value pair. For environment variables, this is the value of the environment variable.",
108
+ }),
109
+ ),
110
+ Name: Schema.optionalKey(
111
+ Schema.String.annotate({
112
+ description:
113
+ "The name of the key-value pair. For environment variables, this is the name of the environment variable.",
114
+ }),
115
+ ),
116
+ }).annotate({
117
+ description: "A key-value pair object.",
118
+ identifier: "KeyValuePair",
119
+ });
120
+
121
+ interface ProxyConfiguration {
122
+ readonly ProxyConfigurationProperties?: globalThis.ReadonlyArray<KeyValuePair>;
123
+ readonly Type?: string;
124
+ readonly ContainerName: string;
125
+ }
126
+
127
+ const ProxyConfiguration = Schema.Struct({
128
+ ProxyConfigurationProperties: Schema.optionalKey(
129
+ Schema.Array(KeyValuePair)
130
+ .annotate({
131
+ description:
132
+ "The set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified as key-value pairs.\n + ``IgnoredUID`` - (Required) The user ID (UID) of the proxy container as defined by the ``user`` parameter in a container definition. This is used to ensure the proxy ignores its own traffic. If ``IgnoredGID`` is specified, this field can be empty.\n + ``IgnoredGID`` - (Required) The group ID (GID) of the proxy container as defined by the ``user`` parameter in a container definition. This is used to ensure the proxy ignores its own traffic. If ``IgnoredUID`` is specified, this field can be empty.\n + ``AppPorts`` - (Required) The list of ports that the application uses. Network traffic to these ports is forwarded to the ``ProxyIngressPort`` and ``ProxyEgressPort``.\n + ``ProxyIngressPort`` - (Required) Specifies the port that incoming traffic to the ``AppPorts`` is directed to.\n + ``ProxyEgressPort`` - (Required) Specifies the port that outgoing traffic from the ``AppPorts`` is directed to.\n + ``EgressIgnoredPorts`` - (Required) The egress traffic going to the specified ports is ignored and not redirected to the ``ProxyEgressPort``. It can be an empty list.\n + ``EgressIgnoredIPs`` - (Required) The egress traffic going to the specified IP addresses is ignored and not redirected to the ``ProxyEgressPort``. It can be an empty list.",
133
+ })
134
+ .check(
135
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
136
+ ),
137
+ ),
138
+ Type: Schema.optionalKey(
139
+ Schema.String.annotate({
140
+ description: "The proxy type. The only supported value is ``APPMESH``.",
141
+ }),
142
+ ),
143
+ ContainerName: Schema.String.annotate({
144
+ description:
145
+ "The name of the container that will serve as the App Mesh proxy.",
146
+ }),
147
+ }).annotate({
148
+ description:
149
+ "The configuration details for the App Mesh proxy.\n For tasks that use the EC2 launch type, the container instances require at least version 1.26.0 of the container agent and at least version 1.26.0-1 of the ``ecs-init`` package to use a proxy configuration. If your container instances are launched from the Amazon ECS optimized AMI version ``20190301`` or later, then they contain the required versions of the container agent and ``ecs-init``. For more information, see [Amazon ECS-optimized Linux AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html)",
150
+ identifier: "ProxyConfiguration",
151
+ });
152
+
153
+ type ResourceInputAlternatives = "ENABLED" | "DISABLED";
154
+
155
+ const ResourceInputAlternatives = Schema.Literals([
156
+ "ENABLED",
157
+ "DISABLED",
158
+ ]).annotate({
159
+ description:
160
+ "Determines whether to use encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be turned on if Amazon EFS IAM authorization is used. If this parameter is omitted, the default value of ``DISABLED`` is used. For more information, see [Encrypting data in transit](https://docs.aws.amazon.com/efs/latest/ug/encryption-in-transit.html) in the *Amazon Elastic File System User Guide*.",
161
+ });
162
+
163
+ type ResourceInputAlternatives_1 = "ENABLED" | "DISABLED";
164
+
165
+ const ResourceInputAlternatives_1 = Schema.Literals([
166
+ "ENABLED",
167
+ "DISABLED",
168
+ ]).annotate({
169
+ description:
170
+ "Determines whether to use the Amazon ECS task role defined in a task definition when mounting the Amazon EFS file system. If it is turned on, transit encryption must be turned on in the ``EFSVolumeConfiguration``. If this parameter is omitted, the default value of ``DISABLED`` is used. For more information, see [Using Amazon EFS access points](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html#efs-volume-accesspoints) in the *Amazon Elastic Container Service Developer Guide*.",
171
+ });
172
+
173
+ interface AuthorizationConfig {
174
+ readonly IAM?: ResourceInputAlternatives_1;
175
+ readonly AccessPointId?:
176
+ | ResourceEntity<{
177
+ readonly provider: "aws";
178
+ readonly service: "efs";
179
+ readonly resource: "accesspoint";
180
+ }>
181
+ | string;
182
+ }
183
+
184
+ const AuthorizationConfig = Schema.Struct({
185
+ IAM: Schema.optionalKey(ResourceInputAlternatives_1),
186
+ AccessPointId: Schema.optionalKey(
187
+ Schema.Union([
188
+ Schema.Union([
189
+ ResourceReferenceSchema(
190
+ Schema.Struct({
191
+ provider: Schema.Literal("aws"),
192
+ service: Schema.Literal("efs"),
193
+ resource: Schema.Literal("accesspoint"),
194
+ }),
195
+ {
196
+ value: null,
197
+ outputs: [
198
+ {
199
+ source: ["AccessPointId"],
200
+ target: [],
201
+ },
202
+ ],
203
+ },
204
+ ).annotate({ expected: "ResourceEntity" }),
205
+ ]),
206
+ Schema.String.annotate({
207
+ description:
208
+ "The Amazon EFS access point ID to use. If an access point is specified, the root directory value specified in the ``EFSVolumeConfiguration`` must either be omitted or set to ``/`` which will enforce the path set on the EFS access point. If an access point is used, transit encryption must be on in the ``EFSVolumeConfiguration``. For more information, see [Working with Amazon EFS access points](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) in the *Amazon Elastic File System User Guide*.",
209
+ }),
210
+ ]),
211
+ ),
212
+ }).annotate({
213
+ description:
214
+ "The authorization configuration details for the Amazon EFS file system.",
215
+ identifier: "AuthorizationConfig",
216
+ });
217
+
218
+ interface EFSVolumeConfiguration {
219
+ readonly FilesystemId:
220
+ | ResourceEntity<{
221
+ readonly provider: "aws";
222
+ readonly service: "efs";
223
+ readonly resource: "filesystem";
224
+ }>
225
+ | string;
226
+ readonly TransitEncryption?: ResourceInputAlternatives;
227
+ readonly AuthorizationConfig?: AuthorizationConfig;
228
+ readonly RootDirectory?: string;
229
+ readonly TransitEncryptionPort?: number;
230
+ }
231
+
232
+ const EFSVolumeConfiguration = Schema.Struct({
233
+ FilesystemId: Schema.Union([
234
+ Schema.Union([
235
+ ResourceReferenceSchema(
236
+ Schema.Struct({
237
+ provider: Schema.Literal("aws"),
238
+ service: Schema.Literal("efs"),
239
+ resource: Schema.Literal("filesystem"),
240
+ }),
241
+ {
242
+ value: null,
243
+ outputs: [
244
+ {
245
+ source: ["FileSystemId"],
246
+ target: [],
247
+ },
248
+ ],
249
+ },
250
+ ).annotate({ expected: "ResourceEntity" }),
251
+ ]),
252
+ Schema.String.annotate({
253
+ description: "The Amazon EFS file system ID to use.",
254
+ }),
255
+ ]),
256
+ TransitEncryption: Schema.optionalKey(ResourceInputAlternatives),
257
+ AuthorizationConfig: Schema.optionalKey(AuthorizationConfig),
258
+ RootDirectory: Schema.optionalKey(
259
+ Schema.String.annotate({
260
+ description:
261
+ "The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume will be used. Specifying ``/`` will have the same effect as omitting this parameter.\n If an EFS access point is specified in the ``authorizationConfig``, the root directory parameter must either be omitted or set to ``/`` which will enforce the path set on the EFS access point.",
262
+ }),
263
+ ),
264
+ TransitEncryptionPort: Schema.optionalKey(
265
+ Schema.Number.annotate({
266
+ description:
267
+ "The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you do not specify a transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses. For more information, see [EFS mount helper](https://docs.aws.amazon.com/efs/latest/ug/efs-mount-helper.html) in the *Amazon Elastic File System User Guide*.",
268
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
269
+ ),
270
+ }).annotate({
271
+ description:
272
+ "This parameter is specified when you're using an Amazon Elastic File System file system for task storage. For more information, see [Amazon EFS volumes](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html) in the *Amazon Elastic Container Service Developer Guide*.",
273
+ identifier: "EFSVolumeConfiguration",
274
+ });
275
+
276
+ interface S3FilesVolumeConfiguration {
277
+ readonly FileSystemArn: string;
278
+ readonly AccessPointArn?: string;
279
+ readonly RootDirectory?: string;
280
+ readonly TransitEncryptionPort?: number;
281
+ }
282
+
283
+ const S3FilesVolumeConfiguration = Schema.Struct({
284
+ FileSystemArn: Schema.String.annotate({
285
+ description: "The full ARN of the S3 Files file system to mount.",
286
+ }),
287
+ AccessPointArn: Schema.optionalKey(
288
+ Schema.String.annotate({
289
+ description:
290
+ "The full ARN of the S3 Files access point to use. If an access point is specified, the root directory value specified in the ``S3FilesVolumeConfiguration`` must either be omitted or set to ``/`` which will enforce the path set on the S3 Files access point. For more information, see [Creating S3 Files access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-access-points-creating.html).",
291
+ }),
292
+ ),
293
+ RootDirectory: Schema.optionalKey(
294
+ Schema.String.annotate({
295
+ description:
296
+ "The directory within the Amazon S3 Files file system to mount as the root directory. If this parameter is omitted, the root of the Amazon S3 Files file system will be used. Specifying ``/`` will have the same effect as omitting this parameter.\n If a S3 Files access point is specified in the ``accessPointArn``, the root directory parameter must either be omitted or set to ``/`` which will enforce the path set on the S3 Files access point.",
297
+ }),
298
+ ),
299
+ TransitEncryptionPort: Schema.optionalKey(
300
+ Schema.Number.annotate({
301
+ description:
302
+ "The port to use for sending encrypted data between the ECS host and the S3 Files file system. If you do not specify a transit encryption port, it will use the port selection strategy that the Amazon S3 Files mount helper uses. For more information, see [S3 Files mount helper](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-mounting.html).",
303
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
304
+ ),
305
+ }).annotate({
306
+ description:
307
+ "This parameter is specified when you're using an Amazon S3 Files file system for task storage. For more information, see [Amazon S3 Files volumes](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/s3files-volumes.html) in the *Amazon Elastic Container Service Developer Guide*.\n Your task definition must include a Task IAM Role. See [IAM role for attaching your file system to compute resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-prereq-policies.html#s3-files-prereq-iam-compute-role) for required permissions.",
308
+ identifier: "S3FilesVolumeConfiguration",
309
+ });
310
+
311
+ interface HostVolumeProperties {
312
+ readonly SourcePath?: string;
313
+ }
314
+
315
+ const HostVolumeProperties = Schema.Struct({
316
+ SourcePath: Schema.optionalKey(
317
+ Schema.String.annotate({
318
+ description:
319
+ "When the ``host`` parameter is used, specify a ``sourcePath`` to declare the path on the host container instance that's presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If the ``host`` parameter contains a ``sourcePath`` file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the ``sourcePath`` value doesn't exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.\n If you're using the Fargate launch type, the ``sourcePath`` parameter is not supported.",
320
+ }),
321
+ ),
322
+ }).annotate({
323
+ description:
324
+ "The ``HostVolumeProperties`` property specifies details on a container instance bind mount host volume.",
325
+ identifier: "HostVolumeProperties",
326
+ });
327
+
328
+ interface DockerVolumeConfiguration {
329
+ readonly DriverOpts?: {
330
+ readonly [x: string]: string;
331
+ };
332
+ readonly Scope?: string;
333
+ readonly Autoprovision?: boolean;
334
+ readonly Driver?: string;
335
+ readonly Labels?: {
336
+ readonly [x: string]: string;
337
+ };
338
+ }
339
+
340
+ const DockerVolumeConfiguration = Schema.Struct({
341
+ DriverOpts: Schema.optionalKey(
342
+ Schema.Record(
343
+ Schema.String.check(
344
+ Schema.isPattern(new globalThis.RegExp(".{1,}", "u")).annotate({
345
+ expected: "a string matching the RegExp .{1,}",
346
+ }),
347
+ ),
348
+ Schema.String,
349
+ ).annotate({
350
+ description:
351
+ "A map of Docker driver-specific options passed through. This parameter maps to ``DriverOpts`` in the docker create-volume command and the ``xxopt`` option to docker volume create.",
352
+ }),
353
+ ),
354
+ Scope: Schema.optionalKey(
355
+ Schema.String.annotate({
356
+ description:
357
+ "The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a ``task`` are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are scoped as ``shared`` persist after the task stops.",
358
+ }),
359
+ ),
360
+ Autoprovision: Schema.optionalKey(
361
+ Schema.Boolean.annotate({
362
+ description:
363
+ "If this value is ``true``, the Docker volume is created if it doesn't already exist.\n This field is only used if the ``scope`` is ``shared``.",
364
+ }),
365
+ ),
366
+ Driver: Schema.optionalKey(
367
+ Schema.String.annotate({
368
+ description:
369
+ "The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use ``docker plugin ls`` to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. This parameter maps to ``Driver`` in the docker container create command and the ``xxdriver`` option to docker volume create.",
370
+ }),
371
+ ),
372
+ Labels: Schema.optionalKey(
373
+ Schema.Record(
374
+ Schema.String.check(
375
+ Schema.isPattern(new globalThis.RegExp(".{1,}", "u")).annotate({
376
+ expected: "a string matching the RegExp .{1,}",
377
+ }),
378
+ ),
379
+ Schema.String,
380
+ ).annotate({
381
+ description:
382
+ "Custom metadata to add to your Docker volume. This parameter maps to ``Labels`` in the docker container create command and the ``xxlabel`` option to docker volume create.",
383
+ }),
384
+ ),
385
+ }).annotate({
386
+ description:
387
+ "The ``DockerVolumeConfiguration`` property specifies a Docker volume configuration and is used when you use Docker volumes. Docker volumes are only supported when you are using the EC2 launch type. Windows containers only support the use of the ``local`` driver. To use bind mounts, specify a ``host`` instead.",
388
+ identifier: "DockerVolumeConfiguration",
389
+ });
390
+
391
+ interface FSxAuthorizationConfig {
392
+ readonly CredentialsParameter: string;
393
+ readonly Domain: string;
394
+ }
395
+
396
+ const FSxAuthorizationConfig = Schema.Struct({
397
+ CredentialsParameter: Schema.String.annotate({
398
+ description:
399
+ "The authorization credential option to use. The authorization credential options can be provided using either the Amazon Resource Name (ARN) of an ASMlong secret or SSM Parameter Store parameter. The ARN refers to the stored credentials.",
400
+ }),
401
+ Domain: Schema.String.annotate({
402
+ description:
403
+ "A fully qualified domain name hosted by an [](https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html) Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2.",
404
+ }),
405
+ }).annotate({
406
+ description:
407
+ "The authorization configuration details for Amazon FSx for Windows File Server file system. See [FSxWindowsFileServerVolumeConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_FSxWindowsFileServerVolumeConfiguration.html) in the *Amazon ECS API Reference*.\n For more information and the input format, see [Amazon FSx for Windows File Server Volumes](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/wfsx-volumes.html) in the *Amazon Elastic Container Service Developer Guide*.",
408
+ identifier: "FSxAuthorizationConfig",
409
+ });
410
+
411
+ interface FSxWindowsFileServerVolumeConfiguration {
412
+ readonly AuthorizationConfig?: FSxAuthorizationConfig;
413
+ readonly FileSystemId: string;
414
+ readonly RootDirectory: string;
415
+ }
416
+
417
+ const FSxWindowsFileServerVolumeConfiguration = Schema.Struct({
418
+ AuthorizationConfig: Schema.optionalKey(FSxAuthorizationConfig),
419
+ FileSystemId: Schema.String.annotate({
420
+ description:
421
+ "The Amazon FSx for Windows File Server file system ID to use.",
422
+ }),
423
+ RootDirectory: Schema.String.annotate({
424
+ description:
425
+ "The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host.",
426
+ }),
427
+ }).annotate({
428
+ description:
429
+ "This parameter is specified when you're using [Amazon FSx for Windows File Server](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/what-is.html) file system for task storage.\n For more information and the input format, see [Amazon FSx for Windows File Server volumes](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/wfsx-volumes.html) in the *Amazon Elastic Container Service Developer Guide*.",
430
+ identifier: "FSxWindowsFileServerVolumeConfiguration",
431
+ });
432
+
433
+ interface Volume {
434
+ readonly EFSVolumeConfiguration?: EFSVolumeConfiguration;
435
+ readonly S3FilesVolumeConfiguration?: S3FilesVolumeConfiguration;
436
+ readonly Host?: HostVolumeProperties;
437
+ readonly ConfiguredAtLaunch?: boolean;
438
+ readonly DockerVolumeConfiguration?: DockerVolumeConfiguration;
439
+ readonly FSxWindowsFileServerVolumeConfiguration?: FSxWindowsFileServerVolumeConfiguration;
440
+ readonly Name?: string;
441
+ }
442
+
443
+ const Volume = Schema.Struct({
444
+ EFSVolumeConfiguration: Schema.optionalKey(EFSVolumeConfiguration),
445
+ S3FilesVolumeConfiguration: Schema.optionalKey(S3FilesVolumeConfiguration),
446
+ Host: Schema.optionalKey(HostVolumeProperties),
447
+ ConfiguredAtLaunch: Schema.optionalKey(
448
+ Schema.Boolean.annotate({
449
+ description:
450
+ "Indicates whether the volume should be configured at launch time. This is used to create Amazon EBS volumes for standalone tasks or tasks created as part of a service. Each task definition revision may only have one volume configured at launch in the volume configuration.\n To configure a volume at launch time, use this task definition revision and specify a ``volumeConfigurations`` object when calling the ``CreateService``, ``UpdateService``, ``RunTask`` or ``StartTask`` APIs.",
451
+ }),
452
+ ),
453
+ DockerVolumeConfiguration: Schema.optionalKey(DockerVolumeConfiguration),
454
+ FSxWindowsFileServerVolumeConfiguration: Schema.optionalKey(
455
+ FSxWindowsFileServerVolumeConfiguration,
456
+ ),
457
+ Name: Schema.optionalKey(
458
+ Schema.String.annotate({
459
+ description:
460
+ "The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.\n When using a volume configured at launch, the ``name`` is required and must also be specified as the volume name in the ``ServiceVolumeConfiguration`` or ``TaskVolumeConfiguration`` parameter when creating your service or standalone task.\n For all other types of volumes, this name is referenced in the ``sourceVolume`` parameter of the ``mountPoints`` object in the container definition.\n When a volume is using the ``efsVolumeConfiguration``, the name is required.\n When a volume is using the ``s3filesVolumeConfiguration``, the name is required.",
461
+ }),
462
+ ),
463
+ }).annotate({
464
+ description:
465
+ "The data volume configuration for tasks launched using this task definition. Specifying a volume configuration in a task definition is optional. The volume configuration may contain multiple volumes but only one volume configured at launch is supported. Each volume defined in the volume configuration may only specify a ``name`` and one of either ``configuredAtLaunch``, ``dockerVolumeConfiguration``, ``efsVolumeConfiguration``, ``s3filesVolumeConfiguration``, ``fsxWindowsFileServerVolumeConfiguration``, or ``host``. If an empty volume configuration is specified, by default Amazon ECS uses a host volume. For more information, see [Using data volumes in tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html).",
466
+ identifier: "Volume",
467
+ });
468
+
469
+ interface Secret {
470
+ readonly ValueFrom: string;
471
+ readonly Name: string;
472
+ }
473
+
474
+ const Secret = Schema.Struct({
475
+ ValueFrom: Schema.String.annotate({
476
+ description:
477
+ "The secret to expose to the container. The supported values are either the full ARN of the ASMlong secret or the full ARN of the parameter in the SSM Parameter Store.\n For information about the require IAMlong permissions, see [Required IAM permissions for Amazon ECS secrets](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data-secrets.html#secrets-iam) (for Secrets Manager) or [Required IAM permissions for Amazon ECS secrets](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data-parameters.html) (for Systems Manager Parameter store) in the *Amazon Elastic Container Service Developer Guide*.\n If the SSM Parameter Store parameter exists in the same Region as the task you're launching, then you can use either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.",
478
+ }),
479
+ Name: Schema.String.annotate({ description: "The name of the secret." }),
480
+ }).annotate({
481
+ description:
482
+ "An object representing the secret to expose to your container. Secrets can be exposed to a container in the following ways:\n + To inject sensitive data into your containers as environment variables, use the ``secrets`` container definition parameter.\n + To reference sensitive information in the log configuration of a container, use the ``secretOptions`` container definition parameter.\n \n For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html) in the *Amazon Elastic Container Service Developer Guide*.",
483
+ identifier: "Secret",
484
+ });
485
+
486
+ interface HealthCheck {
487
+ readonly Command?: globalThis.ReadonlyArray<string>;
488
+ readonly Timeout?: number;
489
+ readonly Retries?: number;
490
+ readonly Interval?: number;
491
+ readonly StartPeriod?: number;
492
+ }
493
+
494
+ const HealthCheck = Schema.Struct({
495
+ Command: Schema.optionalKey(
496
+ Schema.Array(Schema.String).annotate({
497
+ description:
498
+ 'A string array representing the command that the container runs to determine if it is healthy. The string array must start with ``CMD`` to run the command arguments directly, or ``CMD-SHELL`` to run the command with the container\'s default shell. \n When you use the AWS Management Console JSON panel, the CLIlong, or the APIs, enclose the list of commands in double quotes and brackets.\n ``[ "CMD-SHELL", "curl -f http://localhost/ || exit 1" ]`` \n You don\'t include the double quotes and brackets when you use the AWS Management Console.\n ``CMD-SHELL, curl -f http://localhost/ || exit 1`` \n An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see ``HealthCheck`` in the docker container create command.',
499
+ }),
500
+ ),
501
+ Timeout: Schema.optionalKey(
502
+ Schema.Number.annotate({
503
+ description:
504
+ "The time period in seconds to wait for a health check to succeed before it is considered a failure. You may specify between 2 and 60 seconds. The default value is 5. This value applies only when you specify a ``command``.",
505
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
506
+ ),
507
+ Retries: Schema.optionalKey(
508
+ Schema.Number.annotate({
509
+ description:
510
+ "The number of times to retry a failed health check before the container is considered unhealthy. You may specify between 1 and 10 retries. The default value is 3. This value applies only when you specify a ``command``.",
511
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
512
+ ),
513
+ Interval: Schema.optionalKey(
514
+ Schema.Number.annotate({
515
+ description:
516
+ "The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds. This value applies only when you specify a ``command``.",
517
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
518
+ ),
519
+ StartPeriod: Schema.optionalKey(
520
+ Schema.Number.annotate({
521
+ description:
522
+ "The optional grace period to provide containers time to bootstrap before failed health checks count towards the maximum number of retries. You can specify between 0 and 300 seconds. By default, the ``startPeriod`` is off. This value applies only when you specify a ``command``. \n If a health check succeeds within the ``startPeriod``, then the container is considered healthy and any subsequent failures count toward the maximum number of retries.",
523
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
524
+ ),
525
+ }).annotate({
526
+ description:
527
+ "The ``HealthCheck`` property specifies an object representing a container health check. Health check parameters that are specified in a container definition override any Docker health checks that exist in the container image (such as those specified in a parent image or from the image's Dockerfile). This configuration maps to the ``HEALTHCHECK`` parameter of docker run.\n The Amazon ECS container agent only monitors and reports on the health checks specified in the task definition. Amazon ECS does not monitor Docker health checks that are embedded in a container image and not specified in the container definition. Health check parameters that are specified in a container definition override any Docker health checks that exist in the container image.\n If a task is run manually, and not as part of a service, the task will continue its lifecycle regardless of its health status. For tasks that are part of a service, if the task reports as unhealthy then the task will be stopped and the service scheduler will replace it.\n The following are notes about container health check support:\n + Container health checks require version 1.17.0 or greater of the Amazon ECS container agent. For more information, see [Updating the Amazon ECS Container Agent](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html).\n + Container health checks are supported for Fargate tasks if you are using platform version 1.1.0 or greater. For more information, see [Platform Versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).\n + Container health checks are not supported for tasks that are part of a service that is configured to use a Classic Load Balancer.",
528
+ identifier: "HealthCheck",
529
+ });
530
+
531
+ interface VolumeFrom {
532
+ readonly ReadOnly?: boolean;
533
+ readonly SourceContainer?: string;
534
+ }
535
+
536
+ const VolumeFrom = Schema.Struct({
537
+ ReadOnly: Schema.optionalKey(
538
+ Schema.Boolean.annotate({
539
+ description:
540
+ "If this value is ``true``, the container has read-only access to the volume. If this value is ``false``, then the container can write to the volume. The default value is ``false``.",
541
+ }),
542
+ ),
543
+ SourceContainer: Schema.optionalKey(
544
+ Schema.String.annotate({
545
+ description:
546
+ "The name of another container within the same task definition to mount volumes from.",
547
+ }),
548
+ ),
549
+ }).annotate({
550
+ description:
551
+ "Details on a data volume from another container in the same task definition.",
552
+ identifier: "VolumeFrom",
553
+ });
554
+
555
+ interface LogConfiguration {
556
+ readonly SecretOptions?: globalThis.ReadonlyArray<Secret>;
557
+ readonly Options?: {
558
+ readonly [x: string]: string;
559
+ };
560
+ readonly LogDriver: string;
561
+ }
562
+
563
+ const LogConfiguration = Schema.Struct({
564
+ SecretOptions: Schema.optionalKey(
565
+ Schema.Array(Secret).annotate({
566
+ description:
567
+ "The secrets to pass to the log configuration. For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html) in the *Amazon Elastic Container Service Developer Guide*.",
568
+ }),
569
+ ),
570
+ Options: Schema.optionalKey(
571
+ Schema.Record(
572
+ Schema.String.check(
573
+ Schema.isPattern(new globalThis.RegExp(".{1,}", "u")).annotate({
574
+ expected: "a string matching the RegExp .{1,}",
575
+ }),
576
+ ),
577
+ Schema.String,
578
+ ).annotate({
579
+ description:
580
+ "The configuration options to send to the log driver.\n The options you can specify depend on the log driver. Some of the options you can specify when you use the ``awslogs`` log driver to route logs to Amazon CloudWatch include the following:\n + awslogs-create-group Required: No Specify whether you want the log group to be created automatically. If this option isn't specified, it defaults to false. Your IAM policy must include the logs:CreateLogGroup permission before you attempt to use awslogs-create-group. + awslogs-region Required: Yes Specify the Region that the awslogs log driver is to send your Docker logs to. You can choose to send all of your logs from clusters in different Regions to a single region in CloudWatch Logs. This is so that they're all visible in one location. Otherwise, you can separate them by Region for more granularity. Make sure that the specified log group exists in the Region that you specify with this option. + awslogs-group Required: Yes Make sure to specify a log group that the awslogs log driver sends its log streams to. + awslogs-stream-prefix Required: Yes, when using Fargate.Optional when using EC2. Use the awslogs-stream-prefix option to associate a log stream with the specified prefix, the container name, and the ID of the Amazon ECS task that the container belongs to. If you specify a prefix with this option, then the log stream takes the format prefix-name/container-name/ecs-task-id. If you don't specify a prefix with this option, then the log stream is named after the container ID that's assigned by the Docker daemon on the container instance. Because it's difficult to trace logs back to the container that sent them with just the Docker container ID (which is only available on the container instance), we recommend that you specify a prefix with this option. For Amazon ECS services, you can use the service name as the prefix. Doing so, you can trace log streams to the service that the container belongs to, the name of the container that sent them, and the ID of the task that the container belongs to. You must specify a stream-prefix for your logs to have your logs appear in the Log pane when using the Amazon ECS console. + awslogs-datetime-format Required: No This option defines a multiline start pattern in Python strftime format. A log message consists of a line that matches the pattern and any following lines that don’t match the pattern. The matched line is the delimiter between log messages. One example of a use case for using this format is for parsing output such as a stack dump, which might otherwise be logged in multiple entries. The correct pattern allows it to be captured in a single entry. For more information, see awslogs-datetime-format. You cannot configure both the awslogs-datetime-format and awslogs-multiline-pattern options. Multiline logging performs regular expression parsing and matching of all log messages. This might have a negative impact on logging performance. + awslogs-multiline-pattern Required: No This option defines a multiline start pattern that uses a regular expression. A log message consists of a line that matches the pattern and any following lines that don’t match the pattern. The matched line is the delimiter between log messages. For more information, see awslogs-multiline-pattern. This option is ignored if awslogs-datetime-format is also configured. You cannot configure both the awslogs-datetime-format and awslogs-multiline-pattern options. Multiline logging performs regular expression parsing and matching of all log messages. This might have a negative impact on logging performance. \n The following options apply to all supported log drivers.\n + mode Required: No Valid values: non-blocking | blocking This option defines the delivery mode of log messages from the container to the log driver specified using logDriver. The delivery mode you choose affects application availability when the flow of logs from container is interrupted. If you use the blocking mode and the flow of logs is interrupted, calls from container code to write to the stdout and stderr streams will block. The logging thread of the application will block as a result. This may cause the application to become unresponsive and lead to container healthcheck failure. If you use the non-blocking mode, the container's logs are instead stored in an in-memory intermediate buffer configured with the max-buffer-size option. This prevents the application from becoming unresponsive when logs cannot be sent. We recommend using this mode if you want to ensure service availability and are okay with some log loss. For more information, see Preventing log loss with non-blocking mode in the awslogs container log driver. You can set a default mode for all containers in a specific Region by using the defaultLogDriverMode account setting. If you don't specify the mode option or configure the account setting, Amazon ECS will default to the non-blocking mode. For more information about the account setting, see Default log driver mode in the Amazon Elastic Container Service Developer Guide. On June 25, 2025, Amazon ECS changed the default log driver mode from blocking to non-blocking to prioritize task availability over logging. To continue using the blocking mode after this change, do one of the following: Set the mode option in your container definition's logConfiguration as blocking. Set the defaultLogDriverMode account setting to blocking. + max-buffer-size Required: No Default value: 10m When non-blocking mode is used, the max-buffer-size log option controls the size of the buffer that's used for intermediate message storage. Make sure to specify an adequate buffer size based on your application. When the buffer fills up, further logs cannot be stored. Logs that cannot be stored are lost. \n To route logs using the ``splunk`` log router, you need to specify a ``splunk-token`` and a ``splunk-url``.\n When you use the ``awsfirelens`` log router to route logs to an AWS Service or AWS Partner Network destination for log storage and analytics, you can set the ``log-driver-buffer-limit`` option to limit the number of events that are buffered in memory, before being sent to the log router container. It can help to resolve potential log loss issue because high throughput might result in memory running out for the buffer inside of Docker.\n Other options you can specify when using ``awsfirelens`` to route logs depend on the destination. When you export logs to Amazon Data Firehose, you can specify the AWS Region with ``region`` and a name for the log stream with ``delivery_stream``.\n When you export logs to Amazon Kinesis Data Streams, you can specify an AWS Region with ``region`` and a data stream name with ``stream``.\n When you export logs to Amazon OpenSearch Service, you can specify options like ``Name``, ``Host`` (OpenSearch Service endpoint without protocol), ``Port``, ``Index``, ``Type``, ``Aws_auth``, ``Aws_region``, ``Suppress_Type_Name``, and ``tls``. For more information, see [Under the hood: FireLens for Amazon ECS Tasks](https://docs.aws.amazon.com/containers/under-the-hood-firelens-for-amazon-ecs-tasks/).\n When you export logs to Amazon S3, you can specify the bucket using the ``bucket`` option. You can also specify ``region``, ``total_file_size``, ``upload_timeout``, and ``use_put_object`` as options.\n This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: ``sudo docker version --format '{{.Server.APIVersion}}'``",
581
+ }),
582
+ ),
583
+ LogDriver: Schema.String.annotate({
584
+ description:
585
+ "The log driver to use for the container.\n For tasks on FARGATElong, the supported log drivers are ``awslogs``, ``splunk``, and ``awsfirelens``.\n For tasks hosted on Amazon EC2 instances, the supported log drivers are ``awslogs``, ``fluentd``, ``gelf``, ``json-file``, ``journald``, ``syslog``, ``splunk``, and ``awsfirelens``.\n For more information about using the ``awslogs`` log driver, see [Send Amazon ECS logs to CloudWatch](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in the *Amazon Elastic Container Service Developer Guide*.\n For more information about using the ``awsfirelens`` log driver, see [Send Amazon ECS logs to an service or Partner](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html).\n If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent project that's [available on GitHub](https://docs.aws.amazon.com/https://github.com/aws/amazon-ecs-agent) and customize it to work with that driver. We encourage you to submit pull requests for changes that you would like to have included. However, we don't currently provide support for running modified copies of this software.",
586
+ }),
587
+ }).annotate({
588
+ description:
589
+ "The ``LogConfiguration`` property specifies log configuration options to send to a custom log driver for the container.",
590
+ identifier: "LogConfiguration",
591
+ });
592
+
593
+ interface ResourceRequirement {
594
+ readonly Type: string;
595
+ readonly Value: string;
596
+ }
597
+
598
+ const ResourceRequirement = Schema.Struct({
599
+ Type: Schema.String.annotate({
600
+ description: "The type of resource to assign to a container.",
601
+ }),
602
+ Value: Schema.String.annotate({
603
+ description:
604
+ "The value for the specified resource type.\n When the type is ``GPU``, the value is the number of physical ``GPUs`` the Amazon ECS container agent reserves for the container. The number of GPUs that's reserved for all containers in a task can't exceed the number of available GPUs on the container instance that the task is launched on. You can also specify ``ALL`` to allocate all available GPUs on the instance to the container.\n When the type is ``NeuronDevice``, the value must be ``ALL``. This allocates all available Neuron devices on the instance to the container. Only one container in a task can specify ``NeuronDevice`` resources. This resource type is only supported on Managed Instances.\n When the type is ``InferenceAccelerator``, the ``value`` matches the ``deviceName`` for an [InferenceAccelerator](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_InferenceAccelerator.html) specified in a task definition.",
605
+ }),
606
+ }).annotate({
607
+ description:
608
+ "The type and amount of a resource to assign to a container. The supported resource types are GPUs, Neuron devices, and Elastic Inference accelerators. For more information, see [Working with GPUs on Amazon ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-gpu.html) or [Working with Amazon Elastic Inference on Amazon ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-inference.html) in the *Amazon Elastic Container Service Developer Guide*",
609
+ identifier: "ResourceRequirement",
610
+ });
611
+
612
+ interface EnvironmentFile {
613
+ readonly Type?: string;
614
+ readonly Value?: string;
615
+ }
616
+
617
+ const EnvironmentFile = Schema.Struct({
618
+ Type: Schema.optionalKey(
619
+ Schema.String.annotate({
620
+ description:
621
+ "The file type to use. Environment files are objects in Amazon S3. The only supported value is ``s3``.",
622
+ }),
623
+ ),
624
+ Value: Schema.optionalKey(
625
+ Schema.String.annotate({
626
+ description:
627
+ "The Amazon Resource Name (ARN) of the Amazon S3 object containing the environment variable file.",
628
+ }),
629
+ ),
630
+ }).annotate({
631
+ description:
632
+ "A list of files containing the environment variables to pass to a container. You can specify up to ten environment files. The file must have a ``.env`` file extension. Each line in an environment file should contain an environment variable in ``VARIABLE=VALUE`` format. Lines beginning with ``#`` are treated as comments and are ignored.\n If there are environment variables specified using the ``environment`` parameter in a container definition, they take precedence over the variables contained within an environment file. If multiple environment files are specified that contain the same variable, they're processed from the top down. We recommend that you use unique variable names. For more information, see [Use a file to pass environment variables to a container](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/use-environment-file.html) in the *Amazon Elastic Container Service Developer Guide*.\n Environment variable files are objects in Amazon S3 and all Amazon S3 security considerations apply. \n You must use the following platforms for the Fargate launch type:\n + Linux platform version ``1.4.0`` or later.\n + Windows platform version ``1.0.0`` or later.\n \n Consider the following when using the Fargate launch type:\n + The file is handled like a native Docker env-file.\n + There is no support for shell escape handling.\n + The container entry point interperts the ``VARIABLE`` values.",
633
+ identifier: "EnvironmentFile",
634
+ });
635
+
636
+ interface FirelensConfiguration {
637
+ readonly Options?: {
638
+ readonly [x: string]: string;
639
+ };
640
+ readonly Type?: string;
641
+ }
642
+
643
+ const FirelensConfiguration = Schema.Struct({
644
+ Options: Schema.optionalKey(
645
+ Schema.Record(
646
+ Schema.String.check(
647
+ Schema.isPattern(new globalThis.RegExp(".{1,}", "u")).annotate({
648
+ expected: "a string matching the RegExp .{1,}",
649
+ }),
650
+ ),
651
+ Schema.String,
652
+ ).annotate({
653
+ description:
654
+ "The options to use when configuring the log router. This field is optional and can be used to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event.\n If specified, valid option keys are:\n + ``enable-ecs-log-metadata``, which can be ``true`` or ``false``\n + ``config-file-type``, which can be ``s3`` or ``file``\n + ``config-file-value``, which is either an S3 ARN or a file path",
655
+ }),
656
+ ),
657
+ Type: Schema.optionalKey(
658
+ Schema.String.annotate({
659
+ description:
660
+ "The log router to use. The valid values are ``fluentd`` or ``fluentbit``.",
661
+ }),
662
+ ),
663
+ }).annotate({
664
+ description:
665
+ "The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see [Custom log routing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) in the *Amazon Elastic Container Service Developer Guide*.",
666
+ identifier: "FirelensConfiguration",
667
+ });
668
+
669
+ interface SystemControl {
670
+ readonly Value?: string;
671
+ readonly Namespace?: string;
672
+ }
673
+
674
+ const SystemControl = Schema.Struct({
675
+ Value: Schema.optionalKey(
676
+ Schema.String.annotate({
677
+ description:
678
+ 'The namespaced kernel parameter to set a ``value`` for.\n Valid IPC namespace values: ``"kernel.msgmax" | "kernel.msgmnb" | "kernel.msgmni" | "kernel.sem" | "kernel.shmall" | "kernel.shmmax" | "kernel.shmmni" | "kernel.shm_rmid_forced"``, and ``Sysctls`` that start with ``"fs.mqueue.*"``\n Valid network namespace values: ``Sysctls`` that start with ``"net.*"``. Only namespaced ``Sysctls`` that exist within the container starting with "net.* are accepted.\n All of these values are supported by Fargate.',
679
+ }),
680
+ ),
681
+ Namespace: Schema.optionalKey(
682
+ Schema.String.annotate({
683
+ description: "The namespaced kernel parameter to set a ``value`` for.",
684
+ }),
685
+ ),
686
+ }).annotate({
687
+ description:
688
+ "A list of namespaced kernel parameters to set in the container. This parameter maps to ``Sysctls`` in the docker container create command and the ``--sysctl`` option to docker run. For example, you can configure ``net.ipv4.tcp_keepalive_time`` setting to maintain longer lived connections.\n We don't recommend that you specify network-related ``systemControls`` parameters for multiple containers in a single task that also uses either the ``awsvpc`` or ``host`` network mode. Doing this has the following disadvantages:\n + For tasks that use the ``awsvpc`` network mode including Fargate, if you set ``systemControls`` for any container, it applies to all containers in the task. If you set different ``systemControls`` for multiple containers in a single task, the container that's started last determines which ``systemControls`` take effect.\n + For tasks that use the ``host`` network mode, the network namespace ``systemControls`` aren't supported.\n \n If you're setting an IPC resource namespace to use for the containers in the task, the following conditions apply to your system controls. For more information, see [IPC mode](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_definition_ipcmode).\n + For tasks that use the ``host`` IPC mode, IPC namespace ``systemControls`` aren't supported.\n + For tasks that use the ``task`` IPC mode, IPC namespace ``systemControls`` values apply to all containers within a task.\n \n This parameter is not supported for Windows containers.\n This parameter is only supported for tasks that are hosted on FARGATElong if the tasks are using platform version ``1.4.0`` or later (Linux). This isn't supported for Windows containers on Fargate.",
689
+ identifier: "SystemControl",
690
+ });
691
+
692
+ interface Ulimit {
693
+ readonly SoftLimit: number;
694
+ readonly HardLimit: number;
695
+ readonly Name: string;
696
+ }
697
+
698
+ const Ulimit = Schema.Struct({
699
+ SoftLimit: Schema.Number.annotate({
700
+ description:
701
+ "The soft limit for the ``ulimit`` type. The value can be specified in bytes, seconds, or as a count, depending on the ``type`` of the ``ulimit``.",
702
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
703
+ HardLimit: Schema.Number.annotate({
704
+ description:
705
+ "The hard limit for the ``ulimit`` type. The value can be specified in bytes, seconds, or as a count, depending on the ``type`` of the ``ulimit``.",
706
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
707
+ Name: Schema.String.annotate({
708
+ description: "The ``type`` of the ``ulimit``.",
709
+ }),
710
+ }).annotate({
711
+ description:
712
+ "The ``ulimit`` settings to pass to the container.\n Amazon ECS tasks hosted on FARGATElong use the default resource limit values set by the operating system with the exception of the ``nofile`` resource limit parameter which FARGATElong overrides. The ``nofile`` resource limit sets a restriction on the number of open files that a container can use. The default ``nofile`` soft limit is ``65535`` and the default hard limit is ``65535``.\n You can specify the ``ulimit`` settings for a container in a task definition.",
713
+ identifier: "Ulimit",
714
+ });
715
+
716
+ interface RepositoryCredentials {
717
+ readonly CredentialsParameter?: string;
718
+ }
719
+
720
+ const RepositoryCredentials = Schema.Struct({
721
+ CredentialsParameter: Schema.optionalKey(
722
+ Schema.String.annotate({
723
+ description:
724
+ "The Amazon Resource Name (ARN) of the secret containing the private repository credentials.\n When you use the Amazon ECS API, CLI, or AWS SDK, if the secret exists in the same Region as the task that you're launching then you can use either the full ARN or the name of the secret. When you use the AWS Management Console, you must specify the full ARN of the secret.",
725
+ }),
726
+ ),
727
+ }).annotate({
728
+ description:
729
+ "The repository credentials for private registry authentication.",
730
+ identifier: "RepositoryCredentials",
731
+ });
732
+
733
+ interface HostEntry {
734
+ readonly Hostname?: string;
735
+ readonly IpAddress?: string;
736
+ }
737
+
738
+ const HostEntry = Schema.Struct({
739
+ Hostname: Schema.optionalKey(
740
+ Schema.String.annotate({
741
+ description: "The hostname to use in the ``/etc/hosts`` entry.",
742
+ }),
743
+ ),
744
+ IpAddress: Schema.optionalKey(
745
+ Schema.String.annotate({
746
+ description: "The IP address to use in the ``/etc/hosts`` entry.",
747
+ }),
748
+ ),
749
+ }).annotate({
750
+ description:
751
+ "The ``HostEntry`` property specifies a hostname and an IP address that are added to the ``/etc/hosts`` file of a container through the ``extraHosts`` parameter of its ``ContainerDefinition`` resource.",
752
+ identifier: "HostEntry",
753
+ });
754
+
755
+ interface KernelCapabilities {
756
+ readonly Add?: globalThis.ReadonlyArray<string>;
757
+ readonly Drop?: globalThis.ReadonlyArray<string>;
758
+ }
759
+
760
+ const KernelCapabilities = Schema.Struct({
761
+ Add: Schema.optionalKey(
762
+ Schema.Array(Schema.String).annotate({
763
+ description:
764
+ 'The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to ``CapAdd`` in the docker container create command and the ``--cap-add`` option to docker run.\n Tasks launched on FARGATElong only support adding the ``SYS_PTRACE`` kernel capability.\n Valid values: ``"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"``',
765
+ }),
766
+ ),
767
+ Drop: Schema.optionalKey(
768
+ Schema.Array(Schema.String).annotate({
769
+ description:
770
+ 'The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to ``CapDrop`` in the docker container create command and the ``--cap-drop`` option to docker run.\n Valid values: ``"ALL" | "AUDIT_CONTROL" | "AUDIT_WRITE" | "BLOCK_SUSPEND" | "CHOWN" | "DAC_OVERRIDE" | "DAC_READ_SEARCH" | "FOWNER" | "FSETID" | "IPC_LOCK" | "IPC_OWNER" | "KILL" | "LEASE" | "LINUX_IMMUTABLE" | "MAC_ADMIN" | "MAC_OVERRIDE" | "MKNOD" | "NET_ADMIN" | "NET_BIND_SERVICE" | "NET_BROADCAST" | "NET_RAW" | "SETFCAP" | "SETGID" | "SETPCAP" | "SETUID" | "SYS_ADMIN" | "SYS_BOOT" | "SYS_CHROOT" | "SYS_MODULE" | "SYS_NICE" | "SYS_PACCT" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME" | "SYS_TTY_CONFIG" | "SYSLOG" | "WAKE_ALARM"``',
771
+ }),
772
+ ),
773
+ }).annotate({
774
+ description:
775
+ "The Linux capabilities to add or remove from the default Docker configuration for a container defined in the task definition. For more detailed information about these Linux capabilities, see the [capabilities(7)](https://docs.aws.amazon.com/http://man7.org/linux/man-pages/man7/capabilities.7.html) Linux manual page.\n The following describes how Docker processes the Linux capabilities specified in the ``add`` and ``drop`` request parameters. For information about the latest behavior, see [Docker Compose: order of cap_drop and cap_add](https://docs.aws.amazon.com/https://forums.docker.com/t/docker-compose-order-of-cap-drop-and-cap-add/97136/1) in the Docker Community Forum.\n + When the container is a privleged container, the container capabilities are all of the default Docker capabilities. The capabilities specified in the ``add`` request parameter, and the ``drop`` request parameter are ignored.\n + When the ``add`` request parameter is set to ALL, the container capabilities are all of the default Docker capabilities, excluding those specified in the ``drop`` request parameter.\n + When the ``drop`` request parameter is set to ALL, the container capabilities are the capabilities specified in the ``add`` request parameter.\n + When the ``add`` request parameter and the ``drop`` request parameter are both empty, the capabilities the container capabilities are all of the default Docker capabilities.\n + The default is to first drop the capabilities specified in the ``drop`` request parameter, and then add the capabilities specified in the ``add`` request parameter.",
776
+ identifier: "KernelCapabilities",
777
+ });
778
+
779
+ interface Tmpfs {
780
+ readonly Size: number;
781
+ readonly ContainerPath?: string;
782
+ readonly MountOptions?: globalThis.ReadonlyArray<string>;
783
+ }
784
+
785
+ const Tmpfs = Schema.Struct({
786
+ Size: Schema.Number.annotate({
787
+ description: "The maximum size (in MiB) of the tmpfs volume.",
788
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
789
+ ContainerPath: Schema.optionalKey(
790
+ Schema.String.annotate({
791
+ description:
792
+ "The absolute file path where the tmpfs volume is to be mounted.",
793
+ }),
794
+ ),
795
+ MountOptions: Schema.optionalKey(
796
+ Schema.Array(Schema.String).annotate({
797
+ description:
798
+ 'The list of tmpfs volume mount options.\n Valid values: ``"defaults" | "ro" | "rw" | "suid" | "nosuid" | "dev" | "nodev" | "exec" | "noexec" | "sync" | "async" | "dirsync" | "remount" | "mand" | "nomand" | "atime" | "noatime" | "diratime" | "nodiratime" | "bind" | "rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime" | "norelatime" | "strictatime" | "nostrictatime" | "mode" | "uid" | "gid" | "nr_inodes" | "nr_blocks" | "mpol"``',
799
+ }),
800
+ ),
801
+ }).annotate({
802
+ description:
803
+ "The container path, mount options, and size of the tmpfs mount.",
804
+ identifier: "Tmpfs",
805
+ });
806
+
807
+ interface Device {
808
+ readonly HostPath?: string;
809
+ readonly Permissions?: globalThis.ReadonlyArray<string>;
810
+ readonly ContainerPath?: string;
811
+ }
812
+
813
+ const Device = Schema.Struct({
814
+ HostPath: Schema.optionalKey(
815
+ Schema.String.annotate({
816
+ description: "The path for the device on the host container instance.",
817
+ }),
818
+ ),
819
+ Permissions: Schema.optionalKey(
820
+ Schema.Array(Schema.String)
821
+ .annotate({
822
+ description:
823
+ "The explicit permissions to provide to the container for the device. By default, the container has permissions for ``read``, ``write``, and ``mknod`` for the device.",
824
+ })
825
+ .check(
826
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
827
+ ),
828
+ ),
829
+ ContainerPath: Schema.optionalKey(
830
+ Schema.String.annotate({
831
+ description:
832
+ "The path inside the container at which to expose the host device.",
833
+ }),
834
+ ),
835
+ }).annotate({
836
+ description:
837
+ "The ``Device`` property specifies an object representing a container instance host device.",
838
+ identifier: "Device",
839
+ });
840
+
841
+ interface LinuxParameters {
842
+ readonly Capabilities?: KernelCapabilities;
843
+ readonly Swappiness?: number;
844
+ readonly Tmpfs?: globalThis.ReadonlyArray<Tmpfs>;
845
+ readonly SharedMemorySize?: number;
846
+ readonly Devices?: globalThis.ReadonlyArray<Device>;
847
+ readonly InitProcessEnabled?: boolean;
848
+ readonly MaxSwap?: number;
849
+ }
850
+
851
+ const LinuxParameters = Schema.Struct({
852
+ Capabilities: Schema.optionalKey(KernelCapabilities),
853
+ Swappiness: Schema.optionalKey(
854
+ Schema.Number.annotate({
855
+ description:
856
+ "This allows you to tune a container's memory swappiness behavior. A ``swappiness`` value of ``0`` will cause swapping to not happen unless absolutely necessary. A ``swappiness`` value of ``100`` will cause pages to be swapped very aggressively. Accepted values are whole numbers between ``0`` and ``100``. If the ``swappiness`` parameter is not specified, a default value of ``60`` is used. If a value is not specified for ``maxSwap`` then this parameter is ignored. This parameter maps to the ``--memory-swappiness`` option to docker run.\n If you're using tasks that use the Fargate launch type, the ``swappiness`` parameter isn't supported.\n If you're using tasks on Amazon Linux 2023 the ``swappiness`` parameter isn't supported.",
857
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
858
+ ),
859
+ Tmpfs: Schema.optionalKey(
860
+ Schema.Array(Tmpfs).annotate({
861
+ description:
862
+ "The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the ``--tmpfs`` option to docker run.",
863
+ }),
864
+ ),
865
+ SharedMemorySize: Schema.optionalKey(
866
+ Schema.Number.annotate({
867
+ description:
868
+ "The value for the size (in MiB) of the ``/dev/shm`` volume. This parameter maps to the ``--shm-size`` option to docker run.\n If you are using tasks that use the Fargate launch type, the ``sharedMemorySize`` parameter is not supported.",
869
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
870
+ ),
871
+ Devices: Schema.optionalKey(
872
+ Schema.Array(Device).annotate({
873
+ description:
874
+ "Any host devices to expose to the container. This parameter maps to ``Devices`` in the docker container create command and the ``--device`` option to docker run.\n If you're using tasks that use the Fargate launch type, the ``devices`` parameter isn't supported.",
875
+ }),
876
+ ),
877
+ InitProcessEnabled: Schema.optionalKey(
878
+ Schema.Boolean.annotate({
879
+ description:
880
+ "Run an ``init`` process inside the container that forwards signals and reaps processes. This parameter maps to the ``--init`` option to docker run. This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: ``sudo docker version --format '{{.Server.APIVersion}}'``",
881
+ }),
882
+ ),
883
+ MaxSwap: Schema.optionalKey(
884
+ Schema.Number.annotate({
885
+ description:
886
+ "The total amount of swap memory (in MiB) a container can use. This parameter will be translated to the ``--memory-swap`` option to docker run where the value would be the sum of the container memory plus the ``maxSwap`` value.\n If a ``maxSwap`` value of ``0`` is specified, the container will not use swap. Accepted values are ``0`` or any positive integer. If the ``maxSwap`` parameter is omitted, the container will use the swap configuration for the container instance it is running on. A ``maxSwap`` value must be set for the ``swappiness`` parameter to be used.\n If you're using tasks that use the Fargate launch type, the ``maxSwap`` parameter isn't supported.\n If you're using tasks on Amazon Linux 2023 the ``swappiness`` parameter isn't supported.",
887
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
888
+ ),
889
+ }).annotate({
890
+ description:
891
+ "The Linux-specific options that are applied to the container, such as Linux [KernelCapabilities](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_KernelCapabilities.html).",
892
+ identifier: "LinuxParameters",
893
+ });
894
+
895
+ interface RestartPolicy {
896
+ readonly IgnoredExitCodes?: globalThis.ReadonlyArray<number>;
897
+ readonly RestartAttemptPeriod?: number;
898
+ readonly Enabled?: boolean;
899
+ }
900
+
901
+ const RestartPolicy = Schema.Struct({
902
+ IgnoredExitCodes: Schema.optionalKey(
903
+ Schema.Array(Schema.Int).annotate({
904
+ description:
905
+ "A list of exit codes that Amazon ECS will ignore and not attempt a restart on. You can specify a maximum of 50 container exit codes. By default, Amazon ECS does not ignore any exit codes.",
906
+ }),
907
+ ),
908
+ RestartAttemptPeriod: Schema.optionalKey(
909
+ Schema.Number.annotate({
910
+ description:
911
+ "A period of time (in seconds) that the container must run for before a restart can be attempted. A container can be restarted only once every ``restartAttemptPeriod`` seconds. If a container isn't able to run for this time period and exits early, it will not be restarted. You can set a minimum ``restartAttemptPeriod`` of 60 seconds and a maximum ``restartAttemptPeriod`` of 1800 seconds. By default, a container must run for 300 seconds before it can be restarted.",
912
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
913
+ ),
914
+ Enabled: Schema.optionalKey(
915
+ Schema.Boolean.annotate({
916
+ description:
917
+ "Specifies whether a restart policy is enabled for the container.",
918
+ }),
919
+ ),
920
+ }).annotate({
921
+ description:
922
+ "You can enable a restart policy for each container defined in your task definition, to overcome transient failures faster and maintain task availability. When you enable a restart policy for a container, Amazon ECS can restart the container if it exits, without needing to replace the task. For more information, see [Restart individual containers in Amazon ECS tasks with container restart policies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) in the *Amazon Elastic Container Service Developer Guide*.",
923
+ identifier: "RestartPolicy",
924
+ });
925
+
926
+ interface MountPoint {
927
+ readonly ReadOnly?: boolean;
928
+ readonly SourceVolume?: string;
929
+ readonly ContainerPath?: string;
930
+ }
931
+
932
+ const MountPoint = Schema.Struct({
933
+ ReadOnly: Schema.optionalKey(
934
+ Schema.Boolean.annotate({
935
+ description:
936
+ "If this value is ``true``, the container has read-only access to the volume. If this value is ``false``, then the container can write to the volume. The default value is ``false``.",
937
+ }),
938
+ ),
939
+ SourceVolume: Schema.optionalKey(
940
+ Schema.String.annotate({
941
+ description:
942
+ "The name of the volume to mount. Must be a volume name referenced in the ``name`` parameter of task definition ``volume``.",
943
+ }),
944
+ ),
945
+ ContainerPath: Schema.optionalKey(
946
+ Schema.String.annotate({
947
+ description: "The path on the container to mount the host volume at.",
948
+ }),
949
+ ),
950
+ }).annotate({
951
+ description:
952
+ "The details for a volume mount point that's used in a container definition.",
953
+ identifier: "MountPoint",
954
+ });
955
+
956
+ interface ContainerDependency {
957
+ readonly Condition?: string;
958
+ readonly ContainerName?: string;
959
+ }
960
+
961
+ const ContainerDependency = Schema.Struct({
962
+ Condition: Schema.optionalKey(
963
+ Schema.String.annotate({
964
+ description:
965
+ "The dependency condition of the container. The following are the available conditions and their behavior:\n + ``START`` - This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start.\n + ``COMPLETE`` - This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container.\n + ``SUCCESS`` - This condition is the same as ``COMPLETE``, but it also requires that the container exits with a ``zero`` status. This condition can't be set on an essential container.\n + ``HEALTHY`` - This condition validates that the dependent container passes its Docker health check before permitting other containers to start. This requires that the dependent container has health checks configured. This condition is confirmed only at task startup.",
966
+ }),
967
+ ),
968
+ ContainerName: Schema.optionalKey(
969
+ Schema.String.annotate({ description: "The name of a container." }),
970
+ ),
971
+ }).annotate({
972
+ description:
973
+ "The ``ContainerDependency`` property specifies the dependencies defined for container startup and shutdown. A container can contain multiple dependencies. When a dependency is defined for container startup, for container shutdown it is reversed.\n Your Amazon ECS container instances require at least version 1.26.0 of the container agent to enable container dependencies. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see [Updating the Amazon ECS Container Agent](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html) in the *Amazon Elastic Container Service Developer Guide*. If you are using an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the ``ecs-init`` package. If your container instances are launched from version ``20190301`` or later, then they contain the required versions of the container agent and ``ecs-init``. For more information, see [Amazon ECS-optimized Linux AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) in the *Amazon Elastic Container Service Developer Guide*.\n For tasks using the Fargate launch type, this parameter requires that the task or service uses platform version 1.3.0 or later.",
974
+ identifier: "ContainerDependency",
975
+ });
976
+
977
+ interface PortMapping {
978
+ readonly AppProtocol?: "http" | "http2" | "grpc";
979
+ readonly ContainerPortRange?: string;
980
+ readonly HostPort?: number;
981
+ readonly ContainerPort?: number;
982
+ readonly Protocol?: string;
983
+ readonly Name?: string;
984
+ }
985
+
986
+ const PortMapping = Schema.Struct({
987
+ AppProtocol: Schema.optionalKey(
988
+ Schema.Literals(["http", "http2", "grpc"]).annotate({
989
+ description:
990
+ "The application protocol that's used for the port mapping. This parameter only applies to Service Connect. We recommend that you set this parameter to be consistent with the protocol that your application uses. If you set this parameter, Amazon ECS adds protocol-specific connection handling to the Service Connect proxy. If you set this parameter, Amazon ECS adds protocol-specific telemetry in the Amazon ECS console and CloudWatch.\n If you don't set a value for this parameter, then TCP is used. However, Amazon ECS doesn't add protocol-specific telemetry for TCP.\n ``appProtocol`` is immutable in a Service Connect service. Updating this field requires a service deletion and redeployment.\n Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see [Service Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) in the *Amazon Elastic Container Service Developer Guide*.",
991
+ }),
992
+ ),
993
+ ContainerPortRange: Schema.optionalKey(
994
+ Schema.String.annotate({
995
+ description:
996
+ "The port number range on the container that's bound to the dynamically mapped host port range. \n The following rules apply when you specify a ``containerPortRange``:\n + You must use either the ``bridge`` network mode or the ``awsvpc`` network mode.\n + This parameter is available for both the EC2 and FARGATElong launch types.\n + This parameter is available for both the Linux and Windows operating systems.\n + The container instance must have at least version 1.67.0 of the container agent and at least version 1.67.0-1 of the ``ecs-init`` package \n + You can specify a maximum of 100 port ranges per container.\n + You do not specify a ``hostPortRange``. The value of the ``hostPortRange`` is set as follows:\n + For containers in a task with the ``awsvpc`` network mode, the ``hostPortRange`` is set to the same value as the ``containerPortRange``. This is a static mapping strategy.\n + For containers in a task with the ``bridge`` network mode, the Amazon ECS agent finds open host ports from the default ephemeral range and passes it to docker to bind them to the container ports.\n \n + The ``containerPortRange`` valid values are between 1 and 65535.\n + A port can only be included in one port mapping per container.\n + You cannot specify overlapping port ranges.\n + The first port in the range must be less than last port in the range.\n + Docker recommends that you turn off the docker-proxy in the Docker daemon config file when you have a large number of ports.\n For more information, see [Issue #11185](https://docs.aws.amazon.com/https://github.com/moby/moby/issues/11185) on the Github website.\n For information about how to turn off the docker-proxy in the Docker daemon config file, see [Docker daemon](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/bootstrap_container_instance.html#bootstrap_docker_daemon) in the *Amazon ECS Developer Guide*.\n \n You can call [DescribeTasks](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTasks.html) to view the ``hostPortRange`` which are the host ports that are bound to the container ports.",
997
+ }),
998
+ ),
999
+ HostPort: Schema.optionalKey(
1000
+ Schema.Number.annotate({
1001
+ description:
1002
+ "The port number on the container instance to reserve for your container.\n If you specify a ``containerPortRange``, leave this field empty and the value of the ``hostPort`` is set as follows:\n + For containers in a task with the ``awsvpc`` network mode, the ``hostPort`` is set to the same value as the ``containerPort``. This is a static mapping strategy.\n + For containers in a task with the ``bridge`` network mode, the Amazon ECS agent finds open ports on the host and automatically binds them to the container ports. This is a dynamic mapping strategy.\n \n If you use containers in a task with the ``awsvpc`` or ``host`` network mode, the ``hostPort`` can either be left blank or set to the same value as the ``containerPort``.\n If you use containers in a task with the ``bridge`` network mode, you can specify a non-reserved host port for your container port mapping, or you can omit the ``hostPort`` (or set it to ``0``) while specifying a ``containerPort`` and your container automatically receives a port in the ephemeral port range for your container instance operating system and Docker version.\n The default ephemeral port range for Docker version 1.6.0 and later is listed on the instance under ``/proc/sys/net/ipv4/ip_local_port_range``. If this kernel parameter is unavailable, the default ephemeral port range from 49153 through 65535 (Linux) or 49152 through 65535 (Windows) is used. Do not attempt to specify a host port in the ephemeral port range as these are reserved for automatic assignment. In general, ports below 32768 are outside of the ephemeral port range.\n The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376, and the Amazon ECS container agent ports 51678-51680. Any host port that was previously specified in a running task is also reserved while the task is running. That is, after a task stops, the host port is released. The current reserved ports are displayed in the ``remainingResources`` of [DescribeContainerInstances](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeContainerInstances.html) output. A container instance can have up to 100 reserved ports at a time. This number includes the default reserved ports. Automatically assigned ports aren't included in the 100 reserved ports quota.",
1003
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1004
+ ),
1005
+ ContainerPort: Schema.optionalKey(
1006
+ Schema.Number.annotate({
1007
+ description:
1008
+ "The port number on the container that's bound to the user-specified or automatically assigned host port.\n If you use containers in a task with the ``awsvpc`` or ``host`` network mode, specify the exposed ports using ``containerPort``.\n If you use containers in a task with the ``bridge`` network mode and you specify a container port and not a host port, your container automatically receives a host port in the ephemeral port range. For more information, see ``hostPort``. Port mappings that are automatically assigned in this way do not count toward the 100 reserved ports limit of a container instance.",
1009
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1010
+ ),
1011
+ Protocol: Schema.optionalKey(
1012
+ Schema.String.annotate({
1013
+ description:
1014
+ "The protocol used for the port mapping. Valid values are ``tcp`` and ``udp``. The default is ``tcp``. ``protocol`` is immutable in a Service Connect service. Updating this field requires a service deletion and redeployment.",
1015
+ }),
1016
+ ),
1017
+ Name: Schema.optionalKey(
1018
+ Schema.String.annotate({
1019
+ description:
1020
+ "The name that's used for the port mapping. This parameter is the name that you use in the ``serviceConnectConfiguration`` and the ``vpcLatticeConfigurations`` of a service. The name can include up to 64 characters. The characters can include lowercase letters, numbers, underscores (_), and hyphens (-). The name can't start with a hyphen.",
1021
+ }),
1022
+ ),
1023
+ }).annotate({
1024
+ description:
1025
+ "The ``PortMapping`` property specifies a port mapping. Port mappings allow containers to access ports on the host container instance to send or receive traffic. Port mappings are specified as part of the container definition.\n If you are using containers in a task with the ``awsvpc`` or ``host`` network mode, exposed ports should be specified using ``containerPort``. The ``hostPort`` can be left blank or it must be the same value as the ``containerPort``.\n After a task reaches the ``RUNNING`` status, manual and automatic host and container port assignments are visible in the ``networkBindings`` section of [DescribeTasks](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTasks.html) API responses.",
1026
+ identifier: "PortMapping",
1027
+ });
1028
+
1029
+ interface ContainerDefinition {
1030
+ readonly User?: string;
1031
+ readonly Secrets?: globalThis.ReadonlyArray<Secret>;
1032
+ readonly Memory?: number;
1033
+ readonly Privileged?: boolean;
1034
+ readonly HealthCheck?: HealthCheck;
1035
+ readonly StartTimeout?: number;
1036
+ readonly VolumesFrom?: globalThis.ReadonlyArray<VolumeFrom>;
1037
+ readonly Cpu?: number;
1038
+ readonly EntryPoint?: globalThis.ReadonlyArray<string>;
1039
+ readonly DnsServers?: globalThis.ReadonlyArray<string>;
1040
+ readonly ReadonlyRootFilesystem?: boolean;
1041
+ readonly Image: string;
1042
+ readonly Essential?: boolean;
1043
+ readonly LogConfiguration?: LogConfiguration;
1044
+ readonly ResourceRequirements?: globalThis.ReadonlyArray<ResourceRequirement>;
1045
+ readonly EnvironmentFiles?: globalThis.ReadonlyArray<EnvironmentFile>;
1046
+ readonly Name: string;
1047
+ readonly FirelensConfiguration?: FirelensConfiguration;
1048
+ readonly DockerSecurityOptions?: globalThis.ReadonlyArray<string>;
1049
+ readonly SystemControls?: globalThis.ReadonlyArray<SystemControl>;
1050
+ readonly Interactive?: boolean;
1051
+ readonly DnsSearchDomains?: globalThis.ReadonlyArray<string>;
1052
+ readonly CredentialSpecs?: globalThis.ReadonlyArray<string>;
1053
+ readonly Ulimits?: globalThis.ReadonlyArray<Ulimit>;
1054
+ readonly StopTimeout?: number;
1055
+ readonly WorkingDirectory?: string;
1056
+ readonly MemoryReservation?: number;
1057
+ readonly RepositoryCredentials?: RepositoryCredentials;
1058
+ readonly ExtraHosts?: globalThis.ReadonlyArray<HostEntry>;
1059
+ readonly Hostname?: string;
1060
+ readonly LinuxParameters?: LinuxParameters;
1061
+ readonly VersionConsistency?: "enabled" | "disabled";
1062
+ readonly RestartPolicy?: RestartPolicy;
1063
+ readonly DisableNetworking?: boolean;
1064
+ readonly PseudoTerminal?: boolean;
1065
+ readonly MountPoints?: globalThis.ReadonlyArray<MountPoint>;
1066
+ readonly DependsOn?: globalThis.ReadonlyArray<ContainerDependency>;
1067
+ readonly DockerLabels?: {
1068
+ readonly [x: string]: string;
1069
+ };
1070
+ readonly PortMappings?: globalThis.ReadonlyArray<PortMapping>;
1071
+ readonly Command?: globalThis.ReadonlyArray<string>;
1072
+ readonly Environment?: globalThis.ReadonlyArray<KeyValuePair>;
1073
+ readonly Links?: globalThis.ReadonlyArray<string>;
1074
+ }
1075
+
1076
+ const ContainerDefinition = Schema.Struct({
1077
+ User: Schema.optionalKey(
1078
+ Schema.String.annotate({
1079
+ description:
1080
+ "The user to use inside the container. This parameter maps to ``User`` in the docker container create command and the ``--user`` option to docker run.\n When running tasks using the ``host`` network mode, don't run containers using the root user (UID 0). We recommend using a non-root user for better security.\n You can specify the ``user`` using the following formats. If specifying a UID or GID, you must specify it as a positive integer.\n + ``user`` \n + ``user:group`` \n + ``uid`` \n + ``uid:gid`` \n + ``user:gid`` \n + ``uid:group`` \n \n This parameter is not supported for Windows containers.",
1081
+ }),
1082
+ ),
1083
+ Secrets: Schema.optionalKey(
1084
+ Schema.Array(Secret).annotate({
1085
+ description:
1086
+ "The secrets to pass to the container. For more information, see [Specifying Sensitive Data](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html) in the *Amazon Elastic Container Service Developer Guide*.",
1087
+ }),
1088
+ ),
1089
+ Memory: Schema.optionalKey(
1090
+ Schema.Number.annotate({
1091
+ description:
1092
+ "The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. The total amount of memory reserved for all containers within a task must be lower than the task ``memory`` value, if one is specified. This parameter maps to ``Memory`` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the ``--memory`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#security-configuration).\n If using the Fargate launch type, this parameter is optional.\n If using the EC2 launch type, you must specify either a task-level memory value or a container-level memory value. If you specify both a container-level ``memory`` and ``memoryReservation`` value, ``memory`` must be greater than ``memoryReservation``. If you specify ``memoryReservation``, then that value is subtracted from the available memory resources for the container instance where the container is placed. Otherwise, the value of ``memory`` is used.\n The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container, so you should not specify fewer than 6 MiB of memory for your containers.\n The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a container, so you should not specify fewer than 4 MiB of memory for your containers.",
1093
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1094
+ ),
1095
+ Privileged: Schema.optionalKey(
1096
+ Schema.Boolean.annotate({
1097
+ description:
1098
+ "When this parameter is true, the container is given elevated privileges on the host container instance (similar to the ``root`` user). This parameter maps to ``Privileged`` in the docker container create command and the ``--privileged`` option to docker run\n This parameter is not supported for Windows containers or tasks run on FARGATElong.",
1099
+ }),
1100
+ ),
1101
+ HealthCheck: Schema.optionalKey(HealthCheck),
1102
+ StartTimeout: Schema.optionalKey(
1103
+ Schema.Number.annotate({
1104
+ description:
1105
+ "Time duration (in seconds) to wait before giving up on resolving dependencies for a container. For example, you specify two containers in a task definition with containerA having a dependency on containerB reaching a ``COMPLETE``, ``SUCCESS``, or ``HEALTHY`` status. If a ``startTimeout`` value is specified for containerB and it doesn't reach the desired status within that time then containerA gives up and not start. This results in the task transitioning to a ``STOPPED`` state.\n When the ``ECS_CONTAINER_START_TIMEOUT`` container agent configuration variable is used, it's enforced independently from this start timeout value.\n For tasks using the Fargate launch type, the task or service requires the following platforms:\n + Linux platform version ``1.3.0`` or later.\n + Windows platform version ``1.0.0`` or later.\n \n For tasks using the EC2 launch type, your container instances require at least version ``1.26.0`` of the container agent to use a container start timeout value. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see [Updating the Amazon ECS Container Agent](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html) in the *Amazon Elastic Container Service Developer Guide*. If you're using an Amazon ECS-optimized Linux AMI, your instance needs at least version ``1.26.0-1`` of the ``ecs-init`` package. If your container instances are launched from version ``20190301`` or later, then they contain the required versions of the container agent and ``ecs-init``. For more information, see [Amazon ECS-optimized Linux AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) in the *Amazon Elastic Container Service Developer Guide*.\n The valid values for Fargate are 2-120 seconds.",
1106
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1107
+ ),
1108
+ VolumesFrom: Schema.optionalKey(
1109
+ Schema.Array(VolumeFrom)
1110
+ .annotate({
1111
+ description:
1112
+ "Data volumes to mount from another container. This parameter maps to ``VolumesFrom`` in the docker container create command and the ``--volumes-from`` option to docker run.",
1113
+ })
1114
+ .check(
1115
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1116
+ ),
1117
+ ),
1118
+ Cpu: Schema.optionalKey(
1119
+ Schema.Number.annotate({
1120
+ description:
1121
+ "The number of ``cpu`` units reserved for the container. This parameter maps to ``CpuShares`` in the docker container create command and the ``--cpu-shares`` option to docker run.\n This field is optional for tasks using the Fargate launch type, and the only requirement is that the total amount of CPU reserved for all containers within a task be lower than the task-level ``cpu`` value.\n You can determine the number of CPU units that are available per EC2 instance type by multiplying the vCPUs listed for that instance type on the [Amazon EC2 Instances](https://docs.aws.amazon.com/ec2/instance-types/) detail page by 1,024.\n Linux containers share unallocated CPU units with other containers on the container instance with the same ratio as their allocated amount. For example, if you run a single-container task on a single-core instance type with 512 CPU units specified for that container, and that's the only task running on the container instance, that container could use the full 1,024 CPU unit share at any given time. However, if you launched another copy of the same task on that container instance, each task is guaranteed a minimum of 512 CPU units when needed. Moreover, each container could float to higher CPU usage if the other container was not using it. If both tasks were 100% active all of the time, they would be limited to 512 CPU units.\n On Linux container instances, the Docker daemon on the container instance uses the CPU value to calculate the relative CPU share ratios for running containers. The minimum valid CPU share value that the Linux kernel allows is 2, and the maximum valid CPU share value that the Linux kernel allows is 262144. However, the CPU parameter isn't required, and you can use CPU values below 2 or above 262144 in your container definitions. For CPU values below 2 (including null) or above 262144, the behavior varies based on your Amazon ECS container agent version:\n + *Agent versions less than or equal to 1.1.0:* Null and zero CPU values are passed to Docker as 0, which Docker then converts to 1,024 CPU shares. CPU values of 1 are passed to Docker as 1, which the Linux kernel converts to two CPU shares.\n + *Agent versions greater than or equal to 1.2.0:* Null, zero, and CPU values of 1 are passed to Docker as 2.\n + *Agent versions greater than or equal to 1.84.0:* CPU values greater than 256 vCPU are passed to Docker as 256, which is equivalent to 262144 CPU shares.\n \n On Windows container instances, the CPU limit is enforced as an absolute limit, or a quota. Windows containers only have access to the specified amount of CPU that's described in the task definition. A null or zero CPU value is passed to Docker as ``0``, which Windows interprets as 1% of one CPU.",
1122
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1123
+ ),
1124
+ EntryPoint: Schema.optionalKey(
1125
+ Schema.Array(Schema.String).annotate({
1126
+ description:
1127
+ "Early versions of the Amazon ECS container agent don't properly handle ``entryPoint`` parameters. If you have problems using ``entryPoint``, update your container agent or enter your commands and arguments as ``command`` array items instead.\n The entry point that's passed to the container. This parameter maps to ``Entrypoint`` in the docker container create command and the ``--entrypoint`` option to docker run.",
1128
+ }),
1129
+ ),
1130
+ DnsServers: Schema.optionalKey(
1131
+ Schema.Array(Schema.String).annotate({
1132
+ description:
1133
+ "A list of DNS servers that are presented to the container. This parameter maps to ``Dns`` in the docker container create command and the ``--dns`` option to docker run.\n This parameter is not supported for Windows containers.",
1134
+ }),
1135
+ ),
1136
+ ReadonlyRootFilesystem: Schema.optionalKey(
1137
+ Schema.Boolean.annotate({
1138
+ description:
1139
+ "When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ``ReadonlyRootfs`` in the docker container create command and the ``--read-only`` option to docker run.\n This parameter is not supported for Windows containers.",
1140
+ }),
1141
+ ),
1142
+ Image: Schema.String.annotate({
1143
+ description:
1144
+ "The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either ``repository-url/image:tag`` or ``repository-url/image@digest``. For images using tags (repository-url/image:tag), up to 255 characters total are allowed, including letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs (#). For images using digests (repository-url/image@digest), the 255 character limit applies only to the repository URL and image name (everything before the @ sign). The only supported hash function is sha256, and the hash value after sha256: must be exactly 64 characters (only letters A-F, a-f, and numbers 0-9 are allowed). This parameter maps to ``Image`` in the docker container create command and the ``IMAGE`` parameter of docker run.\n + When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image aren't propagated to already running tasks.\n + Images in Amazon ECR repositories can be specified by either using the full ``registry/repository:tag`` or ``registry/repository@digest``. For example, ``012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>:latest`` or ``012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE``. \n + Images in official repositories on Docker Hub use a single name (for example, ``ubuntu`` or ``mongo``).\n + Images in other repositories on Docker Hub are qualified with an organization name (for example, ``amazon/amazon-ecs-agent``).\n + Images in other online repositories are qualified further by a domain name (for example, ``quay.io/assemblyline/ubuntu``).",
1145
+ }),
1146
+ Essential: Schema.optionalKey(
1147
+ Schema.Boolean.annotate({
1148
+ description:
1149
+ "If the ``essential`` parameter of a container is marked as ``true``, and that container fails or stops for any reason, all other containers that are part of the task are stopped. If the ``essential`` parameter of a container is marked as ``false``, its failure doesn't affect the rest of the containers in a task. If this parameter is omitted, a container is assumed to be essential.\n All tasks must have at least one essential container. If you have an application that's composed of multiple containers, group containers that are used for a common purpose into components, and separate the different components into multiple task definitions. For more information, see [Application Architecture](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html) in the *Amazon Elastic Container Service Developer Guide*.",
1150
+ }),
1151
+ ),
1152
+ LogConfiguration: Schema.optionalKey(LogConfiguration),
1153
+ ResourceRequirements: Schema.optionalKey(
1154
+ Schema.Array(ResourceRequirement).annotate({
1155
+ description:
1156
+ "The type and amount of a resource to assign to a container. The supported resources are GPUs and Neuron devices.",
1157
+ }),
1158
+ ),
1159
+ EnvironmentFiles: Schema.optionalKey(
1160
+ Schema.Array(EnvironmentFile).annotate({
1161
+ description:
1162
+ "A list of files containing the environment variables to pass to a container. This parameter maps to the ``--env-file`` option to docker run.\n You can specify up to ten environment files. The file must have a ``.env`` file extension. Each line in an environment file contains an environment variable in ``VARIABLE=VALUE`` format. Lines beginning with ``#`` are treated as comments and are ignored.\n If there are environment variables specified using the ``environment`` parameter in a container definition, they take precedence over the variables contained within an environment file. If multiple environment files are specified that contain the same variable, they're processed from the top down. We recommend that you use unique variable names. For more information, see [Specifying Environment Variables](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html) in the *Amazon Elastic Container Service Developer Guide*.",
1163
+ }),
1164
+ ),
1165
+ Name: Schema.String.annotate({
1166
+ description:
1167
+ "The name of a container. If you're linking multiple containers together in a task definition, the ``name`` of one container can be entered in the ``links`` of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to ``name`` in the docker container create command and the ``--name`` option to docker run.",
1168
+ }),
1169
+ FirelensConfiguration: Schema.optionalKey(FirelensConfiguration),
1170
+ DockerSecurityOptions: Schema.optionalKey(
1171
+ Schema.Array(Schema.String).annotate({
1172
+ description:
1173
+ 'A list of strings to provide custom configuration for multiple security systems. This field isn\'t valid for containers in tasks using the Fargate launch type.\n For Linux tasks on EC2, this parameter can be used to reference custom labels for SELinux and AppArmor multi-level security systems.\n For any tasks on EC2, this parameter can be used to reference a credential spec file that configures a container for Active Directory authentication. For more information, see [Using gMSAs for Windows Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows-gmsa.html) and [Using gMSAs for Linux Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html) in the *Amazon Elastic Container Service Developer Guide*.\n This parameter maps to ``SecurityOpt`` in the docker container create command and the ``--security-opt`` option to docker run.\n The Amazon ECS container agent running on a container instance must register with the ``ECS_SELINUX_CAPABLE=true`` or ``ECS_APPARMOR_CAPABLE=true`` environment variables before containers placed on that instance can use these security options. For more information, see [Amazon ECS Container Agent Configuration](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) in the *Amazon Elastic Container Service Developer Guide*.\n Valid values: "no-new-privileges" | "apparmor:PROFILE" | "label:value" | "credentialspec:CredentialSpecFilePath"',
1174
+ }),
1175
+ ),
1176
+ SystemControls: Schema.optionalKey(
1177
+ Schema.Array(SystemControl).annotate({
1178
+ description:
1179
+ "A list of namespaced kernel parameters to set in the container. This parameter maps to ``Sysctls`` in the docker container create command and the ``--sysctl`` option to docker run. For example, you can configure ``net.ipv4.tcp_keepalive_time`` setting to maintain longer lived connections.",
1180
+ }),
1181
+ ),
1182
+ Interactive: Schema.optionalKey(
1183
+ Schema.Boolean.annotate({
1184
+ description:
1185
+ "When this parameter is ``true``, you can deploy containerized applications that require ``stdin`` or a ``tty`` to be allocated. This parameter maps to ``OpenStdin`` in the docker container create command and the ``--interactive`` option to docker run.",
1186
+ }),
1187
+ ),
1188
+ DnsSearchDomains: Schema.optionalKey(
1189
+ Schema.Array(Schema.String).annotate({
1190
+ description:
1191
+ "A list of DNS search domains that are presented to the container. This parameter maps to ``DnsSearch`` in the docker container create command and the ``--dns-search`` option to docker run.\n This parameter is not supported for Windows containers.",
1192
+ }),
1193
+ ),
1194
+ CredentialSpecs: Schema.optionalKey(
1195
+ Schema.Array(Schema.String).annotate({
1196
+ description:
1197
+ "A list of ARNs in SSM or Amazon S3 to a credential spec (``CredSpec``) file that configures the container for Active Directory authentication. We recommend that you use this parameter instead of the ``dockerSecurityOptions``. The maximum number of ARNs is 1.\n There are two formats for each ARN.\n + credentialspecdomainless:MyARN You use credentialspecdomainless:MyARN to provide a CredSpec with an additional section for a secret in . You provide the login credentials to the domain in the secret. Each task that runs on any container instance can join different domains. You can use this format without joining the container instance to a domain. + credentialspec:MyARN You use credentialspec:MyARN to provide a CredSpec for a single domain. You must join the container instance to the domain before you start any tasks that use this task definition. \n In both formats, replace ``MyARN`` with the ARN in SSM or Amazon S3.\n If you provide a ``credentialspecdomainless:MyARN``, the ``credspec`` must provide a ARN in ASMlong for a secret containing the username, password, and the domain to connect to. For better security, the instance isn't joined to the domain for domainless authentication. Other applications on the instance can't use the domainless credentials. You can use this parameter to run tasks on the same instance, even it the tasks need to join different domains. For more information, see [Using gMSAs for Windows Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows-gmsa.html) and [Using gMSAs for Linux Containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/linux-gmsa.html).",
1198
+ }),
1199
+ ),
1200
+ Ulimits: Schema.optionalKey(
1201
+ Schema.Array(Ulimit).annotate({
1202
+ description:
1203
+ "A list of ``ulimits`` to set in the container. This parameter maps to ``Ulimits`` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the ``--ulimit`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/). Valid naming values are displayed in the [Ulimit](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_Ulimit.html) data type. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: ``sudo docker version --format '{{.Server.APIVersion}}'``\n This parameter is not supported for Windows containers.",
1204
+ }),
1205
+ ),
1206
+ StopTimeout: Schema.optionalKey(
1207
+ Schema.Number.annotate({
1208
+ description:
1209
+ "Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.\n For tasks using the Fargate launch type, the task or service requires the following platforms:\n + Linux platform version ``1.3.0`` or later.\n + Windows platform version ``1.0.0`` or later.\n \n For tasks that use the Fargate launch type, the max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used.\n For tasks that use the EC2 launch type, if the ``stopTimeout`` parameter isn't specified, the value set for the Amazon ECS container agent configuration variable ``ECS_CONTAINER_STOP_TIMEOUT`` is used. If neither the ``stopTimeout`` parameter or the ``ECS_CONTAINER_STOP_TIMEOUT`` agent configuration variable are set, then the default values of 30 seconds for Linux containers and 30 seconds on Windows containers are used. Your container instances require at least version 1.26.0 of the container agent to use a container stop timeout value. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see [Updating the Amazon ECS Container Agent](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html) in the *Amazon Elastic Container Service Developer Guide*. If you're using an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the ``ecs-init`` package. If your container instances are launched from version ``20190301`` or later, then they contain the required versions of the container agent and ``ecs-init``. For more information, see [Amazon ECS-optimized Linux AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) in the *Amazon Elastic Container Service Developer Guide*.\n The valid values for Fargate are 2-120 seconds.",
1210
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1211
+ ),
1212
+ WorkingDirectory: Schema.optionalKey(
1213
+ Schema.String.annotate({
1214
+ description:
1215
+ "The working directory to run commands inside the container in. This parameter maps to ``WorkingDir`` in the docker container create command and the ``--workdir`` option to docker run.",
1216
+ }),
1217
+ ),
1218
+ MemoryReservation: Schema.optionalKey(
1219
+ Schema.Number.annotate({
1220
+ description:
1221
+ "The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the ``memory`` parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to ``MemoryReservation`` in the docker container create command and the ``--memory-reservation`` option to docker run.\n If a task-level memory value is not specified, you must specify a non-zero integer for one or both of ``memory`` or ``memoryReservation`` in a container definition. If you specify both, ``memory`` must be greater than ``memoryReservation``. If you specify ``memoryReservation``, then that value is subtracted from the available memory resources for the container instance where the container is placed. Otherwise, the value of ``memory`` is used.\n For example, if your container normally uses 128 MiB of memory, but occasionally bursts to 256 MiB of memory for short periods of time, you can set a ``memoryReservation`` of 128 MiB, and a ``memory`` hard limit of 300 MiB. This configuration would allow the container to only reserve 128 MiB of memory from the remaining resources on the container instance, but also allow the container to consume more memory resources when needed.\n The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory for a container. So, don't specify less than 6 MiB of memory for your containers. \n The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of memory for a container. So, don't specify less than 4 MiB of memory for your containers.",
1222
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1223
+ ),
1224
+ RepositoryCredentials: Schema.optionalKey(RepositoryCredentials),
1225
+ ExtraHosts: Schema.optionalKey(
1226
+ Schema.Array(HostEntry).annotate({
1227
+ description:
1228
+ "A list of hostnames and IP address mappings to append to the ``/etc/hosts`` file on the container. This parameter maps to ``ExtraHosts`` in the docker container create command and the ``--add-host`` option to docker run.\n This parameter isn't supported for Windows containers or tasks that use the ``awsvpc`` network mode.",
1229
+ }),
1230
+ ),
1231
+ Hostname: Schema.optionalKey(
1232
+ Schema.String.annotate({
1233
+ description:
1234
+ "The hostname to use for your container. This parameter maps to ``Hostname`` in the docker container create command and the ``--hostname`` option to docker run.\n The ``hostname`` parameter is not supported if you're using the ``awsvpc`` network mode.",
1235
+ }),
1236
+ ),
1237
+ LinuxParameters: Schema.optionalKey(LinuxParameters),
1238
+ VersionConsistency: Schema.optionalKey(
1239
+ Schema.Literals(["enabled", "disabled"]).annotate({
1240
+ description:
1241
+ "Specifies whether Amazon ECS will resolve the container image tag provided in the container definition to an image digest. By default, the value is ``enabled``. If you set the value for a container as ``disabled``, Amazon ECS will not resolve the provided container image tag to a digest and will use the original image URI specified in the container definition for deployment. For more information about container image resolution, see [Container image resolution](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html#deployment-container-image-stability) in the *Amazon ECS Developer Guide*.",
1242
+ }),
1243
+ ),
1244
+ RestartPolicy: Schema.optionalKey(RestartPolicy),
1245
+ DisableNetworking: Schema.optionalKey(
1246
+ Schema.Boolean.annotate({
1247
+ description:
1248
+ "When this parameter is true, networking is off within the container. This parameter maps to ``NetworkDisabled`` in the docker container create command.\n This parameter is not supported for Windows containers.",
1249
+ }),
1250
+ ),
1251
+ PseudoTerminal: Schema.optionalKey(
1252
+ Schema.Boolean.annotate({
1253
+ description:
1254
+ "When this parameter is ``true``, a TTY is allocated. This parameter maps to ``Tty`` in the docker container create command and the ``--tty`` option to docker run.",
1255
+ }),
1256
+ ),
1257
+ MountPoints: Schema.optionalKey(
1258
+ Schema.Array(MountPoint)
1259
+ .annotate({
1260
+ description:
1261
+ "The mount points for data volumes in your container.\n This parameter maps to ``Volumes`` in the docker container create command and the ``--volume`` option to docker run.\n Windows containers can mount whole directories on the same drive as ``$env:ProgramData``. Windows containers can't mount directories on a different drive, and mount point can't be across drives.",
1262
+ })
1263
+ .check(
1264
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1265
+ ),
1266
+ ),
1267
+ DependsOn: Schema.optionalKey(
1268
+ Schema.Array(ContainerDependency).annotate({
1269
+ description:
1270
+ "The dependencies defined for container startup and shutdown. A container can contain multiple dependencies. When a dependency is defined for container startup, for container shutdown it is reversed.\n For tasks using the EC2 launch type, the container instances require at least version 1.26.0 of the container agent to turn on container dependencies. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see [Updating the Amazon ECS Container Agent](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html) in the *Amazon Elastic Container Service Developer Guide*. If you're using an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the ``ecs-init`` package. If your container instances are launched from version ``20190301`` or later, then they contain the required versions of the container agent and ``ecs-init``. For more information, see [Amazon ECS-optimized Linux AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html) in the *Amazon Elastic Container Service Developer Guide*.\n For tasks using the Fargate launch type, the task or service requires the following platforms:\n + Linux platform version ``1.3.0`` or later.\n + Windows platform version ``1.0.0`` or later.\n \n If the task definition is used in a blue/green deployment that uses [AWS::CodeDeploy::DeploymentGroup BlueGreenDeploymentConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-bluegreendeploymentconfiguration.html), the ``dependsOn`` parameter is not supported.",
1271
+ }),
1272
+ ),
1273
+ DockerLabels: Schema.optionalKey(
1274
+ Schema.Record(
1275
+ Schema.String.check(
1276
+ Schema.isPattern(new globalThis.RegExp(".{1,}", "u")).annotate({
1277
+ expected: "a string matching the RegExp .{1,}",
1278
+ }),
1279
+ ),
1280
+ Schema.String,
1281
+ ).annotate({
1282
+ description:
1283
+ "A key/value map of labels to add to the container. This parameter maps to ``Labels`` in the docker container create command and the ``--label`` option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: ``sudo docker version --format '{{.Server.APIVersion}}'``",
1284
+ }),
1285
+ ),
1286
+ PortMappings: Schema.optionalKey(
1287
+ Schema.Array(PortMapping)
1288
+ .annotate({
1289
+ description:
1290
+ "The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic.\n For task definitions that use the ``awsvpc`` network mode, you should only specify the ``containerPort``. The ``hostPort`` can be left blank or it must be the same value as the ``containerPort``.\n Port mappings on Windows use the ``NetNAT`` gateway address rather than ``localhost``. There is no loopback for port mappings on Windows, so you cannot access a container's mapped port from the host itself. \n This parameter maps to ``PortBindings`` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.35/) and the ``--publish`` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/). If the network mode of a task definition is set to ``none``, then you can't specify port mappings. If the network mode of a task definition is set to ``host``, then host ports must either be undefined or they must match the container port in the port mapping.\n After a task reaches the ``RUNNING`` status, manual and automatic host and container port assignments are visible in the *Network Bindings* section of a container description for a selected task in the Amazon ECS console. The assignments are also visible in the ``networkBindings`` section [DescribeTasks](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTasks.html) responses.",
1291
+ })
1292
+ .check(
1293
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1294
+ ),
1295
+ ),
1296
+ Command: Schema.optionalKey(
1297
+ Schema.Array(Schema.String).annotate({
1298
+ description:
1299
+ "The command that's passed to the container. This parameter maps to ``Cmd`` in the docker container create command and the ``COMMAND`` parameter to docker run. If there are multiple arguments, each argument is a separated string in the array.",
1300
+ }),
1301
+ ),
1302
+ Environment: Schema.optionalKey(
1303
+ Schema.Array(KeyValuePair)
1304
+ .annotate({
1305
+ description:
1306
+ "The environment variables to pass to a container. This parameter maps to ``Env`` in the docker container create command and the ``--env`` option to docker run.\n We don't recommend that you use plaintext environment variables for sensitive information, such as credential data.",
1307
+ })
1308
+ .check(
1309
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1310
+ ),
1311
+ ),
1312
+ Links: Schema.optionalKey(
1313
+ Schema.Array(Schema.String)
1314
+ .annotate({
1315
+ description:
1316
+ "The ``links`` parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is ``bridge``. The ``name:internalName`` construct is analogous to ``name:alias`` in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to ``Links`` in the docker container create command and the ``--link`` option to docker run.\n This parameter is not supported for Windows containers.\n Containers that are collocated on a single container instance may be able to communicate with each other without requiring links or host port mappings. Network isolation is achieved on the container instance using security groups and VPC settings.",
1317
+ })
1318
+ .check(
1319
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1320
+ ),
1321
+ ),
1322
+ }).annotate({
1323
+ description:
1324
+ "The ``ContainerDefinition`` property specifies a container definition. Container definitions are used in task definitions to describe the different containers that are launched as part of a task.",
1325
+ identifier: "ContainerDefinition",
1326
+ });
1327
+
1328
+ type ResourceInputItems_3 = globalThis.ReadonlyArray<ContainerDefinition>;
1329
+
1330
+ const ResourceInputItems_3 = Schema.Array(ContainerDefinition)
1331
+ .annotate({
1332
+ description:
1333
+ "A list of container definitions in JSON format that describe the different containers that make up your task. For more information about container definition parameters and defaults, see [Amazon ECS Task Definitions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html) in the *Amazon Elastic Container Service Developer Guide*.",
1334
+ })
1335
+ .check(
1336
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1337
+ );
1338
+
1339
+ interface EphemeralStorage {
1340
+ readonly SizeInGiB?: number;
1341
+ }
1342
+
1343
+ const EphemeralStorage = Schema.Struct({
1344
+ SizeInGiB: Schema.optionalKey(
1345
+ Schema.Number.annotate({
1346
+ description:
1347
+ "The total amount, in GiB, of ephemeral storage to set for the task. The minimum supported value is ``21`` GiB and the maximum supported value is ``200`` GiB.",
1348
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1349
+ ),
1350
+ }).annotate({
1351
+ description:
1352
+ "The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on FARGATElong. For more information, see [Using data volumes in tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html) in the *Amazon ECS Developer Guide;*.\n For tasks using the Fargate launch type, the task requires the following platforms:\n + Linux platform version ``1.4.0`` or later.\n + Windows platform version ``1.0.0`` or later.",
1353
+ identifier: "EphemeralStorage",
1354
+ });
1355
+
1356
+ interface Tag {
1357
+ readonly Value?: string;
1358
+ readonly Key?: string;
1359
+ }
1360
+
1361
+ const Tag = Schema.Struct({
1362
+ Value: Schema.optionalKey(
1363
+ Schema.String.annotate({
1364
+ description:
1365
+ "The optional part of a key-value pair that make up a tag. A ``value`` acts as a descriptor within a tag category (key).",
1366
+ }),
1367
+ ),
1368
+ Key: Schema.optionalKey(
1369
+ Schema.String.annotate({
1370
+ description:
1371
+ "One part of a key-value pair that make up a tag. A ``key`` is a general label that acts like a category for more specific tag values.",
1372
+ }),
1373
+ ),
1374
+ }).annotate({
1375
+ description:
1376
+ "The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value. You define them.\n The following basic restrictions apply to tags:\n + Maximum number of tags per resource - 50\n + For each resource, each tag key must be unique, and each tag key can have only one value.\n + Maximum key length - 128 Unicode characters in UTF-8\n + Maximum value length - 256 Unicode characters in UTF-8\n + If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.\n + Tag keys and values are case-sensitive.\n + Do not use ``aws:``, ``AWS:``, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.",
1377
+ identifier: "Tag",
1378
+ });
1379
+
1380
+ type ResourceInputItems_4 = globalThis.ReadonlyArray<Tag>;
1381
+
1382
+ const ResourceInputItems_4 = Schema.Array(Tag).annotate({
1383
+ description:
1384
+ "The metadata that you apply to the task definition to help you categorize and organize them. Each tag consists of a key and an optional value. You define both of them.\n The following basic restrictions apply to tags:\n + Maximum number of tags per resource - 50\n + For each resource, each tag key must be unique, and each tag key can have only one value.\n + Maximum key length - 128 Unicode characters in UTF-8\n + Maximum value length - 256 Unicode characters in UTF-8\n + If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.\n + Tag keys and values are case-sensitive.\n + Do not use ``aws:``, ``AWS:``, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.",
1385
+ });
1386
+
1387
+ interface AuthorizationConfig_1 {
1388
+ readonly IAM?: ResourceInputAlternatives_1;
1389
+ readonly AccessPointId?: string;
1390
+ }
1391
+
1392
+ const AuthorizationConfig_1 = Schema.Struct({
1393
+ IAM: Schema.optionalKey(ResourceInputAlternatives_1),
1394
+ AccessPointId: Schema.optionalKey(
1395
+ Schema.String.annotate({
1396
+ description:
1397
+ "The Amazon EFS access point ID to use. If an access point is specified, the root directory value specified in the ``EFSVolumeConfiguration`` must either be omitted or set to ``/`` which will enforce the path set on the EFS access point. If an access point is used, transit encryption must be on in the ``EFSVolumeConfiguration``. For more information, see [Working with Amazon EFS access points](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) in the *Amazon Elastic File System User Guide*.",
1398
+ }),
1399
+ ),
1400
+ }).annotate({
1401
+ description:
1402
+ "The authorization configuration details for the Amazon EFS file system.",
1403
+ identifier: "AuthorizationConfig_1",
1404
+ });
1405
+
1406
+ interface EFSVolumeConfiguration_1 {
1407
+ readonly FilesystemId: string;
1408
+ readonly TransitEncryption?: ResourceInputAlternatives;
1409
+ readonly AuthorizationConfig?: AuthorizationConfig_1;
1410
+ readonly RootDirectory?: string;
1411
+ readonly TransitEncryptionPort?: number;
1412
+ }
1413
+
1414
+ const EFSVolumeConfiguration_1 = Schema.Struct({
1415
+ FilesystemId: Schema.String.annotate({
1416
+ description: "The Amazon EFS file system ID to use.",
1417
+ }),
1418
+ TransitEncryption: Schema.optionalKey(ResourceInputAlternatives),
1419
+ AuthorizationConfig: Schema.optionalKey(AuthorizationConfig_1),
1420
+ RootDirectory: Schema.optionalKey(
1421
+ Schema.String.annotate({
1422
+ description:
1423
+ "The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume will be used. Specifying ``/`` will have the same effect as omitting this parameter.\n If an EFS access point is specified in the ``authorizationConfig``, the root directory parameter must either be omitted or set to ``/`` which will enforce the path set on the EFS access point.",
1424
+ }),
1425
+ ),
1426
+ TransitEncryptionPort: Schema.optionalKey(
1427
+ Schema.Number.annotate({
1428
+ description:
1429
+ "The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you do not specify a transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses. For more information, see [EFS mount helper](https://docs.aws.amazon.com/efs/latest/ug/efs-mount-helper.html) in the *Amazon Elastic File System User Guide*.",
1430
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1431
+ ),
1432
+ }).annotate({
1433
+ description:
1434
+ "This parameter is specified when you're using an Amazon Elastic File System file system for task storage. For more information, see [Amazon EFS volumes](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html) in the *Amazon Elastic Container Service Developer Guide*.",
1435
+ identifier: "EFSVolumeConfiguration_1",
1436
+ });
1437
+
1438
+ interface Volume_1 {
1439
+ readonly EFSVolumeConfiguration?: EFSVolumeConfiguration_1;
1440
+ readonly S3FilesVolumeConfiguration?: S3FilesVolumeConfiguration;
1441
+ readonly Host?: HostVolumeProperties;
1442
+ readonly ConfiguredAtLaunch?: boolean;
1443
+ readonly DockerVolumeConfiguration?: DockerVolumeConfiguration;
1444
+ readonly FSxWindowsFileServerVolumeConfiguration?: FSxWindowsFileServerVolumeConfiguration;
1445
+ readonly Name?: string;
1446
+ }
1447
+
1448
+ const Volume_1 = Schema.Struct({
1449
+ EFSVolumeConfiguration: Schema.optionalKey(EFSVolumeConfiguration_1),
1450
+ S3FilesVolumeConfiguration: Schema.optionalKey(S3FilesVolumeConfiguration),
1451
+ Host: Schema.optionalKey(HostVolumeProperties),
1452
+ ConfiguredAtLaunch: Schema.optionalKey(
1453
+ Schema.Boolean.annotate({
1454
+ description:
1455
+ "Indicates whether the volume should be configured at launch time. This is used to create Amazon EBS volumes for standalone tasks or tasks created as part of a service. Each task definition revision may only have one volume configured at launch in the volume configuration.\n To configure a volume at launch time, use this task definition revision and specify a ``volumeConfigurations`` object when calling the ``CreateService``, ``UpdateService``, ``RunTask`` or ``StartTask`` APIs.",
1456
+ }),
1457
+ ),
1458
+ DockerVolumeConfiguration: Schema.optionalKey(DockerVolumeConfiguration),
1459
+ FSxWindowsFileServerVolumeConfiguration: Schema.optionalKey(
1460
+ FSxWindowsFileServerVolumeConfiguration,
1461
+ ),
1462
+ Name: Schema.optionalKey(
1463
+ Schema.String.annotate({
1464
+ description:
1465
+ "The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.\n When using a volume configured at launch, the ``name`` is required and must also be specified as the volume name in the ``ServiceVolumeConfiguration`` or ``TaskVolumeConfiguration`` parameter when creating your service or standalone task.\n For all other types of volumes, this name is referenced in the ``sourceVolume`` parameter of the ``mountPoints`` object in the container definition.\n When a volume is using the ``efsVolumeConfiguration``, the name is required.\n When a volume is using the ``s3filesVolumeConfiguration``, the name is required.",
1466
+ }),
1467
+ ),
1468
+ }).annotate({
1469
+ description:
1470
+ "The data volume configuration for tasks launched using this task definition. Specifying a volume configuration in a task definition is optional. The volume configuration may contain multiple volumes but only one volume configured at launch is supported. Each volume defined in the volume configuration may only specify a ``name`` and one of either ``configuredAtLaunch``, ``dockerVolumeConfiguration``, ``efsVolumeConfiguration``, ``s3filesVolumeConfiguration``, ``fsxWindowsFileServerVolumeConfiguration``, or ``host``. If an empty volume configuration is specified, by default Amazon ECS uses a host volume. For more information, see [Using data volumes in tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html).",
1471
+ identifier: "Volume_1",
1472
+ });
1473
+
1474
+ export interface AWSTaskDefinitionProps {
1475
+ readonly TaskRoleArn?: string;
1476
+ readonly IpcMode?: string;
1477
+ readonly InferenceAccelerators?: ResourceInputItems;
1478
+ readonly Memory?: string;
1479
+ readonly PlacementConstraints?: ResourceInputItems_1;
1480
+ readonly Cpu?: string;
1481
+ readonly RequiresCompatibilities?: ResourceInputItems_2;
1482
+ readonly NetworkMode?: string;
1483
+ readonly PidMode?: string;
1484
+ readonly EnableFaultInjection?: boolean;
1485
+ readonly ExecutionRoleArn?:
1486
+ | ResourceEntity<{
1487
+ readonly provider: "aws";
1488
+ readonly service: "iam";
1489
+ readonly resource: "role";
1490
+ }>
1491
+ | string;
1492
+ readonly RuntimePlatform?: RuntimePlatform;
1493
+ readonly ProxyConfiguration?: ProxyConfiguration;
1494
+ readonly Volumes?: globalThis.ReadonlyArray<Volume>;
1495
+ readonly ContainerDefinitions?: ResourceInputItems_3;
1496
+ readonly Family?: string;
1497
+ readonly EphemeralStorage?: EphemeralStorage;
1498
+ readonly Tags?: ResourceInputItems_4;
1499
+ }
1500
+
1501
+ export const AWSTaskDefinitionResourceSchema =
1502
+ ResourceSchemaAnnotationSchema.make({
1503
+ provider: "aws",
1504
+ service: "ecs",
1505
+ resource: "taskdefinition",
1506
+ operation: "create",
1507
+ stateSecretOutputKeys: [],
1508
+ replacement: {
1509
+ order: "createBeforeDestroy",
1510
+ properties: [
1511
+ ["Family"],
1512
+ ["ContainerDefinitions"],
1513
+ ["Cpu"],
1514
+ ["EnableFaultInjection"],
1515
+ ["ExecutionRoleArn"],
1516
+ ["InferenceAccelerators"],
1517
+ ["Memory"],
1518
+ ["NetworkMode"],
1519
+ ["PlacementConstraints"],
1520
+ ["ProxyConfiguration"],
1521
+ ["RequiresCompatibilities"],
1522
+ ["RuntimePlatform"],
1523
+ ["TaskRoleArn"],
1524
+ ["Volumes"],
1525
+ ["PidMode"],
1526
+ ["IpcMode"],
1527
+ ["EphemeralStorage"],
1528
+ ],
1529
+ },
1530
+ primaryIdentifier: ["/properties/TaskDefinitionArn"],
1531
+ });
1532
+
1533
+ export const AWSTaskDefinitionPropsSchema = annotateResourceSchema(
1534
+ Schema.Struct({
1535
+ TaskRoleArn: Schema.optionalKey(
1536
+ Schema.String.annotate({
1537
+ description:
1538
+ "The short name or full Amazon Resource Name (ARN) of the IAMlong role that grants containers in the task permission to call AWS APIs on your behalf. For more information, see [Amazon ECS Task Role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) in the *Amazon Elastic Container Service Developer Guide*.\n IAM roles for tasks on Windows require that the ``-EnableTaskIAMRole`` option is set when you launch the Amazon ECS-optimized Windows AMI. Your containers must also run some configuration code to use the feature. For more information, see [Windows IAM roles for tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows_task_IAM_roles.html) in the *Amazon Elastic Container Service Developer Guide*.\n String validation is done on the ECS side. If an invalid string value is given for ``TaskRoleArn``, it may cause the Cloudformation job to hang.",
1539
+ }),
1540
+ ),
1541
+ IpcMode: Schema.optionalKey(
1542
+ Schema.String.annotate({
1543
+ description:
1544
+ "The IPC resource namespace to use for the containers in the task. The valid values are ``host``, ``task``, or ``none``. If ``host`` is specified, then all containers within the tasks that specified the ``host`` IPC mode on the same container instance share the same IPC resources with the host Amazon EC2 instance. If ``task`` is specified, all containers within the specified task share the same IPC resources. If ``none`` is specified, then IPC resources within the containers of a task are private and not shared with other containers in a task or on the container instance. If no value is specified, then the IPC resource namespace sharing depends on the Docker daemon setting on the container instance.\n If the ``host`` IPC mode is used, be aware that there is a heightened risk of undesired IPC namespace expose.\n If you are setting namespaced kernel parameters using ``systemControls`` for the containers in the task, the following will apply to your IPC resource namespace. For more information, see [System Controls](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) in the *Amazon Elastic Container Service Developer Guide*.\n + For tasks that use the ``host`` IPC mode, IPC namespace related ``systemControls`` are not supported.\n + For tasks that use the ``task`` IPC mode, IPC namespace related ``systemControls`` will apply to all containers within a task.\n \n This parameter is not supported for Windows containers or tasks run on FARGATElong.",
1545
+ }),
1546
+ ),
1547
+ InferenceAccelerators: Schema.optionalKey(ResourceInputItems),
1548
+ Memory: Schema.optionalKey(
1549
+ Schema.String.annotate({
1550
+ description:
1551
+ "The amount (in MiB) of memory used by the task.\n If your tasks runs on Amazon EC2 instances, you must specify either a task-level memory value or a container-level memory value. This field is optional and any value can be used. If a task-level memory value is specified, the container-level memory value is optional. For more information regarding container-level memory and memory reservation, see [ContainerDefinition](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html).\n If your tasks runs on FARGATElong, this field is required. You must use one of the following values. The value you choose determines your range of valid values for the ``cpu`` parameter.\n + 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available ``cpu`` values: 256 (.25 vCPU)\n + 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available ``cpu`` values: 512 (.5 vCPU)\n + 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available ``cpu`` values: 1024 (1 vCPU)\n + Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available ``cpu`` values: 2048 (2 vCPU)\n + Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available ``cpu`` values: 4096 (4 vCPU)\n + Between 16 GB and 60 GB in 4 GB increments - Available ``cpu`` values: 8192 (8 vCPU)\n This option requires Linux platform ``1.4.0`` or later.\n + Between 32GB and 120 GB in 8 GB increments - Available ``cpu`` values: 16384 (16 vCPU)\n This option requires Linux platform ``1.4.0`` or later.",
1552
+ }),
1553
+ ),
1554
+ PlacementConstraints: Schema.optionalKey(ResourceInputItems_1),
1555
+ Cpu: Schema.optionalKey(
1556
+ Schema.String.annotate({
1557
+ description:
1558
+ "The number of ``cpu`` units used by the task. If you use the EC2 launch type, this field is optional. Any value can be used. If you use the Fargate launch type, this field is required. You must use one of the following values. The value that you choose determines your range of valid values for the ``memory`` parameter.\n If you're using the EC2 launch type or the external launch type, this field is optional. Supported values are between ``128`` CPU units (``0.125`` vCPUs) and ``196608`` CPU units (``192`` vCPUs). \n This field is required for Fargate. For information about the valid values, see [Task size](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size) in the *Amazon Elastic Container Service Developer Guide*.",
1559
+ }),
1560
+ ),
1561
+ RequiresCompatibilities: Schema.optionalKey(ResourceInputItems_2),
1562
+ NetworkMode: Schema.optionalKey(
1563
+ Schema.String.annotate({
1564
+ description:
1565
+ "The Docker networking mode to use for the containers in the task. The valid values are ``none``, ``bridge``, ``awsvpc``, and ``host``. If no network mode is specified, the default is ``bridge``.\n For Amazon ECS tasks on Fargate, the ``awsvpc`` network mode is required. For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, ``<default>`` or ``awsvpc`` can be used. If the network mode is set to ``none``, you cannot specify port mappings in your container definitions, and the tasks containers do not have external connectivity. The ``host`` and ``awsvpc`` network modes offer the highest networking performance for containers because they use the EC2 network stack instead of the virtualized network stack provided by the ``bridge`` mode.\n With the ``host`` and ``awsvpc`` network modes, exposed container ports are mapped directly to the corresponding host port (for the ``host`` network mode) or the attached elastic network interface port (for the ``awsvpc`` network mode), so you cannot take advantage of dynamic host port mappings. \n When using the ``host`` network mode, you should not run containers using the root user (UID 0). It is considered best practice to use a non-root user.\n If the network mode is ``awsvpc``, the task is allocated an elastic network interface, and you must specify a [NetworkConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html) value when you create a service or run a task with the task definition. For more information, see [Task Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) in the *Amazon Elastic Container Service Developer Guide*.\n If the network mode is ``host``, you cannot run multiple instantiations of the same task on a single container instance when port mappings are used.",
1566
+ }),
1567
+ ),
1568
+ PidMode: Schema.optionalKey(
1569
+ Schema.String.annotate({
1570
+ description:
1571
+ "The process namespace to use for the containers in the task. The valid values are ``host`` or ``task``. On Fargate for Linux containers, the only valid value is ``task``. For example, monitoring sidecars might need ``pidMode`` to access information about other containers running in the same task.\n If ``host`` is specified, all containers within the tasks that specified the ``host`` PID mode on the same container instance share the same process namespace with the host Amazon EC2 instance.\n If ``task`` is specified, all containers within the specified task share the same process namespace.\n If no value is specified, the The default is a private namespace for each container.\n If the ``host`` PID mode is used, there's a heightened risk of undesired process namespace exposure.\n This parameter is not supported for Windows containers.\n This parameter is only supported for tasks that are hosted on FARGATElong if the tasks are using platform version ``1.4.0`` or later (Linux). This isn't supported for Windows containers on Fargate.",
1572
+ }),
1573
+ ),
1574
+ EnableFaultInjection: Schema.optionalKey(
1575
+ Schema.Boolean.annotate({
1576
+ description:
1577
+ "Enables fault injection and allows for fault injection requests to be accepted from the task's containers. The default value is ``false``.",
1578
+ }),
1579
+ ),
1580
+ ExecutionRoleArn: Schema.optionalKey(
1581
+ Schema.Union([
1582
+ Schema.Union([
1583
+ ResourceReferenceSchema(
1584
+ Schema.Struct({
1585
+ provider: Schema.Literal("aws"),
1586
+ service: Schema.Literal("iam"),
1587
+ resource: Schema.Literal("role"),
1588
+ }),
1589
+ {
1590
+ value: null,
1591
+ outputs: [
1592
+ {
1593
+ source: ["Arn"],
1594
+ target: [],
1595
+ },
1596
+ ],
1597
+ },
1598
+ ).annotate({ expected: "ResourceEntity" }),
1599
+ ]),
1600
+ Schema.String.annotate({
1601
+ description:
1602
+ "The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make AWS API calls on your behalf. For informationabout the required IAM roles for Amazon ECS, see [IAM roles for Amazon ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html) in the *Amazon Elastic Container Service Developer Guide*.",
1603
+ }),
1604
+ ]),
1605
+ ),
1606
+ RuntimePlatform: Schema.optionalKey(RuntimePlatform),
1607
+ ProxyConfiguration: Schema.optionalKey(ProxyConfiguration),
1608
+ Volumes: Schema.optionalKey(
1609
+ Schema.Array(Volume)
1610
+ .annotate({
1611
+ description:
1612
+ "The list of data volume definitions for the task. For more information, see [Using data volumes in tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html) in the *Amazon Elastic Container Service Developer Guide*.\n The ``host`` and ``sourcePath`` parameters aren't supported for tasks run on FARGATElong.",
1613
+ })
1614
+ .check(
1615
+ Schema.isUnique().annotate({
1616
+ expected: "an array with unique items",
1617
+ }),
1618
+ ),
1619
+ ),
1620
+ ContainerDefinitions: Schema.optionalKey(ResourceInputItems_3),
1621
+ Family: Schema.optionalKey(
1622
+ Schema.String.annotate({
1623
+ description:
1624
+ "The name of a family that this task definition is registered to. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.\n A family groups multiple versions of a task definition. Amazon ECS gives the first task definition that you registered to a family a revision number of 1. Amazon ECS gives sequential revision numbers to each task definition that you add.\n To use revision numbers when you update a task definition, specify this property. If you don't specify a value, CFNlong generates a new task definition each time that you update it.",
1625
+ }),
1626
+ ),
1627
+ EphemeralStorage: Schema.optionalKey(EphemeralStorage),
1628
+ Tags: Schema.optionalKey(ResourceInputItems_4),
1629
+ }),
1630
+ AWSTaskDefinitionResourceSchema,
1631
+ );
1632
+
1633
+ export interface AWSTaskDefinitionOutputs {
1634
+ readonly TaskDefinitionArn?: string;
1635
+ }
1636
+
1637
+ export const AWSTaskDefinitionOutputsSchema = Schema.Struct({
1638
+ TaskDefinitionArn: Schema.optionalKey(
1639
+ Schema.String.annotate({ description: "" }),
1640
+ ),
1641
+ });
1642
+
1643
+ export interface AWSTaskDefinitionRequest {
1644
+ readonly TaskRoleArn?: string;
1645
+ readonly IpcMode?: string;
1646
+ readonly InferenceAccelerators?: ResourceInputItems;
1647
+ readonly Memory?: string;
1648
+ readonly PlacementConstraints?: ResourceInputItems_1;
1649
+ readonly Cpu?: string;
1650
+ readonly RequiresCompatibilities?: ResourceInputItems_2;
1651
+ readonly NetworkMode?: string;
1652
+ readonly PidMode?: string;
1653
+ readonly EnableFaultInjection?: boolean;
1654
+ readonly ExecutionRoleArn?: string;
1655
+ readonly RuntimePlatform?: RuntimePlatform;
1656
+ readonly ProxyConfiguration?: ProxyConfiguration;
1657
+ readonly Volumes?: globalThis.ReadonlyArray<Volume_1>;
1658
+ readonly ContainerDefinitions?: ResourceInputItems_3;
1659
+ readonly Family?: string;
1660
+ readonly EphemeralStorage?: EphemeralStorage;
1661
+ readonly Tags?: ResourceInputItems_4;
1662
+ }
1663
+
1664
+ export const AWSTaskDefinitionRequestSchema = Schema.Struct({
1665
+ TaskRoleArn: Schema.optionalKey(
1666
+ Schema.String.annotate({
1667
+ description:
1668
+ "The short name or full Amazon Resource Name (ARN) of the IAMlong role that grants containers in the task permission to call AWS APIs on your behalf. For more information, see [Amazon ECS Task Role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) in the *Amazon Elastic Container Service Developer Guide*.\n IAM roles for tasks on Windows require that the ``-EnableTaskIAMRole`` option is set when you launch the Amazon ECS-optimized Windows AMI. Your containers must also run some configuration code to use the feature. For more information, see [Windows IAM roles for tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows_task_IAM_roles.html) in the *Amazon Elastic Container Service Developer Guide*.\n String validation is done on the ECS side. If an invalid string value is given for ``TaskRoleArn``, it may cause the Cloudformation job to hang.",
1669
+ }),
1670
+ ),
1671
+ IpcMode: Schema.optionalKey(
1672
+ Schema.String.annotate({
1673
+ description:
1674
+ "The IPC resource namespace to use for the containers in the task. The valid values are ``host``, ``task``, or ``none``. If ``host`` is specified, then all containers within the tasks that specified the ``host`` IPC mode on the same container instance share the same IPC resources with the host Amazon EC2 instance. If ``task`` is specified, all containers within the specified task share the same IPC resources. If ``none`` is specified, then IPC resources within the containers of a task are private and not shared with other containers in a task or on the container instance. If no value is specified, then the IPC resource namespace sharing depends on the Docker daemon setting on the container instance.\n If the ``host`` IPC mode is used, be aware that there is a heightened risk of undesired IPC namespace expose.\n If you are setting namespaced kernel parameters using ``systemControls`` for the containers in the task, the following will apply to your IPC resource namespace. For more information, see [System Controls](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) in the *Amazon Elastic Container Service Developer Guide*.\n + For tasks that use the ``host`` IPC mode, IPC namespace related ``systemControls`` are not supported.\n + For tasks that use the ``task`` IPC mode, IPC namespace related ``systemControls`` will apply to all containers within a task.\n \n This parameter is not supported for Windows containers or tasks run on FARGATElong.",
1675
+ }),
1676
+ ),
1677
+ InferenceAccelerators: Schema.optionalKey(ResourceInputItems),
1678
+ Memory: Schema.optionalKey(
1679
+ Schema.String.annotate({
1680
+ description:
1681
+ "The amount (in MiB) of memory used by the task.\n If your tasks runs on Amazon EC2 instances, you must specify either a task-level memory value or a container-level memory value. This field is optional and any value can be used. If a task-level memory value is specified, the container-level memory value is optional. For more information regarding container-level memory and memory reservation, see [ContainerDefinition](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html).\n If your tasks runs on FARGATElong, this field is required. You must use one of the following values. The value you choose determines your range of valid values for the ``cpu`` parameter.\n + 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available ``cpu`` values: 256 (.25 vCPU)\n + 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available ``cpu`` values: 512 (.5 vCPU)\n + 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available ``cpu`` values: 1024 (1 vCPU)\n + Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available ``cpu`` values: 2048 (2 vCPU)\n + Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available ``cpu`` values: 4096 (4 vCPU)\n + Between 16 GB and 60 GB in 4 GB increments - Available ``cpu`` values: 8192 (8 vCPU)\n This option requires Linux platform ``1.4.0`` or later.\n + Between 32GB and 120 GB in 8 GB increments - Available ``cpu`` values: 16384 (16 vCPU)\n This option requires Linux platform ``1.4.0`` or later.",
1682
+ }),
1683
+ ),
1684
+ PlacementConstraints: Schema.optionalKey(ResourceInputItems_1),
1685
+ Cpu: Schema.optionalKey(
1686
+ Schema.String.annotate({
1687
+ description:
1688
+ "The number of ``cpu`` units used by the task. If you use the EC2 launch type, this field is optional. Any value can be used. If you use the Fargate launch type, this field is required. You must use one of the following values. The value that you choose determines your range of valid values for the ``memory`` parameter.\n If you're using the EC2 launch type or the external launch type, this field is optional. Supported values are between ``128`` CPU units (``0.125`` vCPUs) and ``196608`` CPU units (``192`` vCPUs). \n This field is required for Fargate. For information about the valid values, see [Task size](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size) in the *Amazon Elastic Container Service Developer Guide*.",
1689
+ }),
1690
+ ),
1691
+ RequiresCompatibilities: Schema.optionalKey(ResourceInputItems_2),
1692
+ NetworkMode: Schema.optionalKey(
1693
+ Schema.String.annotate({
1694
+ description:
1695
+ "The Docker networking mode to use for the containers in the task. The valid values are ``none``, ``bridge``, ``awsvpc``, and ``host``. If no network mode is specified, the default is ``bridge``.\n For Amazon ECS tasks on Fargate, the ``awsvpc`` network mode is required. For Amazon ECS tasks on Amazon EC2 Linux instances, any network mode can be used. For Amazon ECS tasks on Amazon EC2 Windows instances, ``<default>`` or ``awsvpc`` can be used. If the network mode is set to ``none``, you cannot specify port mappings in your container definitions, and the tasks containers do not have external connectivity. The ``host`` and ``awsvpc`` network modes offer the highest networking performance for containers because they use the EC2 network stack instead of the virtualized network stack provided by the ``bridge`` mode.\n With the ``host`` and ``awsvpc`` network modes, exposed container ports are mapped directly to the corresponding host port (for the ``host`` network mode) or the attached elastic network interface port (for the ``awsvpc`` network mode), so you cannot take advantage of dynamic host port mappings. \n When using the ``host`` network mode, you should not run containers using the root user (UID 0). It is considered best practice to use a non-root user.\n If the network mode is ``awsvpc``, the task is allocated an elastic network interface, and you must specify a [NetworkConfiguration](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_NetworkConfiguration.html) value when you create a service or run a task with the task definition. For more information, see [Task Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) in the *Amazon Elastic Container Service Developer Guide*.\n If the network mode is ``host``, you cannot run multiple instantiations of the same task on a single container instance when port mappings are used.",
1696
+ }),
1697
+ ),
1698
+ PidMode: Schema.optionalKey(
1699
+ Schema.String.annotate({
1700
+ description:
1701
+ "The process namespace to use for the containers in the task. The valid values are ``host`` or ``task``. On Fargate for Linux containers, the only valid value is ``task``. For example, monitoring sidecars might need ``pidMode`` to access information about other containers running in the same task.\n If ``host`` is specified, all containers within the tasks that specified the ``host`` PID mode on the same container instance share the same process namespace with the host Amazon EC2 instance.\n If ``task`` is specified, all containers within the specified task share the same process namespace.\n If no value is specified, the The default is a private namespace for each container.\n If the ``host`` PID mode is used, there's a heightened risk of undesired process namespace exposure.\n This parameter is not supported for Windows containers.\n This parameter is only supported for tasks that are hosted on FARGATElong if the tasks are using platform version ``1.4.0`` or later (Linux). This isn't supported for Windows containers on Fargate.",
1702
+ }),
1703
+ ),
1704
+ EnableFaultInjection: Schema.optionalKey(
1705
+ Schema.Boolean.annotate({
1706
+ description:
1707
+ "Enables fault injection and allows for fault injection requests to be accepted from the task's containers. The default value is ``false``.",
1708
+ }),
1709
+ ),
1710
+ ExecutionRoleArn: Schema.optionalKey(
1711
+ Schema.String.annotate({
1712
+ description:
1713
+ "The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make AWS API calls on your behalf. For informationabout the required IAM roles for Amazon ECS, see [IAM roles for Amazon ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/security-ecs-iam-role-overview.html) in the *Amazon Elastic Container Service Developer Guide*.",
1714
+ }),
1715
+ ),
1716
+ RuntimePlatform: Schema.optionalKey(RuntimePlatform),
1717
+ ProxyConfiguration: Schema.optionalKey(ProxyConfiguration),
1718
+ Volumes: Schema.optionalKey(
1719
+ Schema.Array(Volume_1)
1720
+ .annotate({
1721
+ description:
1722
+ "The list of data volume definitions for the task. For more information, see [Using data volumes in tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html) in the *Amazon Elastic Container Service Developer Guide*.\n The ``host`` and ``sourcePath`` parameters aren't supported for tasks run on FARGATElong.",
1723
+ })
1724
+ .check(
1725
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1726
+ ),
1727
+ ),
1728
+ ContainerDefinitions: Schema.optionalKey(ResourceInputItems_3),
1729
+ Family: Schema.optionalKey(
1730
+ Schema.String.annotate({
1731
+ description:
1732
+ "The name of a family that this task definition is registered to. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.\n A family groups multiple versions of a task definition. Amazon ECS gives the first task definition that you registered to a family a revision number of 1. Amazon ECS gives sequential revision numbers to each task definition that you add.\n To use revision numbers when you update a task definition, specify this property. If you don't specify a value, CFNlong generates a new task definition each time that you update it.",
1733
+ }),
1734
+ ),
1735
+ EphemeralStorage: Schema.optionalKey(EphemeralStorage),
1736
+ Tags: Schema.optionalKey(ResourceInputItems_4),
1737
+ });
1738
+
1739
+ /**
1740
+ * The AWSTaskDefinitionRelationshipIssues array lists inputs that can use several outputs
1741
+ * from one source type. Each input retains its provider value until a reviewed
1742
+ * mapping chooses an output.
1743
+ */
1744
+ export const AWSTaskDefinitionRelationshipIssues = [
1745
+ {
1746
+ propertyPath: ["TaskRoleArn"],
1747
+ sourceType: "AWS::IAM::Role",
1748
+ sourceProperties: [["Arn"], ["RoleName"]],
1749
+ message:
1750
+ "Choose one of the permitted source properties before using a resource reference",
1751
+ },
1752
+ ];
1753
+
1754
+ export const AWSTaskDefinitionResourceTypeSchema = Schema.Struct({
1755
+ provider: Schema.Literal("aws"),
1756
+ service: Schema.Literal("ecs"),
1757
+ resource: Schema.Literal("taskdefinition"),
1758
+ });
1759
+
1760
+ /**
1761
+ * The AWSTaskDefinitionResource class retains its owning stack across declarations.
1762
+ * Applied output properties are ordinary values maintained by the lifecycle.
1763
+ */
1764
+ export class AWSTaskDefinitionResource<
1765
+ Props = AWSTaskDefinitionProps,
1766
+ > extends ResourceEntity<{
1767
+ readonly provider: "aws";
1768
+ readonly service: "ecs";
1769
+ readonly resource: "taskdefinition";
1770
+ }> {
1771
+ constructor(
1772
+ key: ResourceKey,
1773
+ readonly props: Props,
1774
+ private readonly binding?: ResourceOutputBinding,
1775
+ ) {
1776
+ super({
1777
+ key,
1778
+ resourceType: {
1779
+ provider: "aws",
1780
+ service: "ecs",
1781
+ resource: "taskdefinition",
1782
+ },
1783
+ });
1784
+ }
1785
+
1786
+ /**
1787
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1788
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1789
+ */
1790
+ get TaskDefinitionArn(): Required<AWSTaskDefinitionOutputs>["TaskDefinitionArn"] {
1791
+ const value: Required<AWSTaskDefinitionOutputs>["TaskDefinitionArn"] =
1792
+ ResourceOutputBinding.value(
1793
+ this.binding,
1794
+ this.key,
1795
+ "TaskDefinitionArn",
1796
+ Schema.requiredKey(
1797
+ AWSTaskDefinitionOutputsSchema.fields.TaskDefinitionArn,
1798
+ ),
1799
+ );
1800
+ return value;
1801
+ }
1802
+ }
1803
+
1804
+ /**
1805
+ * Callers must validate properties before constructing the declaration.
1806
+ * Compatible resources can depend on it before apply supplies provider values.
1807
+ * Reading applied outputs requires a binding to the owning stack.
1808
+ */
1809
+ export function createAWSTaskDefinitionDeclaration<Props>(
1810
+ key: ResourceKey,
1811
+ props: Props,
1812
+ binding?: ResourceOutputBinding,
1813
+ ): AWSTaskDefinitionResource<Props> {
1814
+ const resource: AWSTaskDefinitionResource<Props> =
1815
+ new AWSTaskDefinitionResource<Props>(key, props, binding);
1816
+
1817
+ return resource;
1818
+ }
1819
+
1820
+ /**
1821
+ * The AWSTaskDefinition resource factory registers a validated declaration in the
1822
+ * stack graph. Its outputs become available after apply saves the resource.
1823
+ */
1824
+ export const AWSTaskDefinition = Effect.fn("AWSTaskDefinition")(
1825
+ function* (input: { logicalId: string; props: AWSTaskDefinitionProps }) {
1826
+ const graph = yield* ResourceGraphBuilder;
1827
+
1828
+ const key: ResourceKey = { logicalId: input.logicalId };
1829
+
1830
+ const declaration = yield* graph.resource(key);
1831
+
1832
+ const props = yield* Schema.decodeEffect(AWSTaskDefinitionPropsSchema)(
1833
+ input.props,
1834
+ );
1835
+
1836
+ yield* declaration.registerEntity(AWSTaskDefinitionResourceTypeSchema, {
1837
+ propsSchema: AWSTaskDefinitionPropsSchema,
1838
+ requestSchema: AWSTaskDefinitionRequestSchema,
1839
+ outputsSchema: AWSTaskDefinitionOutputsSchema,
1840
+ props,
1841
+ });
1842
+
1843
+ const resource: AWSTaskDefinitionResource =
1844
+ createAWSTaskDefinitionDeclaration(key, props, declaration.outputs);
1845
+
1846
+ return resource;
1847
+ },
1848
+ );