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,2065 @@
1
+ // Generated from the CloudFormation Registry resource schema. Do not edit.
2
+ // biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's generated regular expressions.
3
+ import { Effect, Schema } from "effect";
4
+ import {
5
+ annotateResourceSchema,
6
+ ResourceEntity,
7
+ ResourceGraphBuilder,
8
+ type ResourceKey,
9
+ ResourceReferenceSchema,
10
+ ResourceSchemaAnnotationSchema,
11
+ } from "nomoss/core";
12
+ import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
13
+
14
+ type ResourceInputAlternatives = "SERVICE" | "TASK_DEFINITION";
15
+
16
+ const ResourceInputAlternatives = Schema.Literals([
17
+ "SERVICE",
18
+ "TASK_DEFINITION",
19
+ ]).annotate({
20
+ description:
21
+ "Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the task during task creation. To add tags to a task after task creation, use the [TagResource](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TagResource.html) API action.\n You must set this to a value other than ``NONE`` when you use Cost Explorer. For more information, see [Amazon ECS usage reports](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/usage-reports.html) in the *Amazon Elastic Container Service Developer Guide*.\n The default is ``NONE``.",
22
+ });
23
+
24
+ interface PlacementStrategy {
25
+ readonly Field?: string;
26
+ readonly Type: "binpack" | "random" | "spread";
27
+ }
28
+
29
+ const PlacementStrategy = Schema.Struct({
30
+ Field: Schema.optionalKey(
31
+ Schema.String.annotate({
32
+ description:
33
+ "The field to apply the placement strategy against. For the ``spread`` placement strategy, valid values are ``instanceId`` (or ``host``, which has the same effect), or any platform or custom attribute that's applied to a container instance, such as ``attribute:ecs.availability-zone``. For the ``binpack`` placement strategy, valid values are ``cpu`` and ``memory``. For the ``random`` placement strategy, this field is not used.",
34
+ }),
35
+ ),
36
+ Type: Schema.Literals(["binpack", "random", "spread"]).annotate({
37
+ description:
38
+ "The type of placement strategy. The ``random`` placement strategy randomly places tasks on available candidates. The ``spread`` placement strategy spreads placement across available candidates evenly based on the ``field`` parameter. The ``binpack`` strategy places tasks on available candidates that have the least available amount of the resource that's specified with the ``field`` parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory but still enough to run the task.",
39
+ }),
40
+ }).annotate({
41
+ description:
42
+ "The task placement strategy for a task or service. For more information, see [Task placement strategies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html) in the *Amazon Elastic Container Service Developer Guide*.",
43
+ identifier: "PlacementStrategy",
44
+ });
45
+
46
+ type ResourceInputItems = globalThis.ReadonlyArray<PlacementStrategy>;
47
+
48
+ const ResourceInputItems = Schema.Array(PlacementStrategy).annotate({
49
+ description:
50
+ "The placement strategy objects to use for tasks in your service. You can specify a maximum of 5 strategy rules for each service.\n To remove this property from your service resource, specify an empty ``PlacementStrategy`` array.",
51
+ });
52
+
53
+ interface ServiceRegistry {
54
+ readonly ContainerName?: string;
55
+ readonly Port?: number;
56
+ readonly ContainerPort?: number;
57
+ readonly RegistryArn?: string;
58
+ }
59
+
60
+ const ServiceRegistry = Schema.Struct({
61
+ ContainerName: Schema.optionalKey(
62
+ Schema.String.annotate({
63
+ description:
64
+ "The container name value to be used for your service discovery service. It's already specified in the task definition. If the task definition that your service task specifies uses the ``bridge`` or ``host`` network mode, you must specify a ``containerName`` and ``containerPort`` combination from the task definition. If the task definition that your service task specifies uses the ``awsvpc`` network mode and a type SRV DNS record is used, you must specify either a ``containerName`` and ``containerPort`` combination or a ``port`` value. However, you can't specify both.",
65
+ }),
66
+ ),
67
+ Port: Schema.optionalKey(
68
+ Schema.Number.annotate({
69
+ description:
70
+ "The port value used if your service discovery service specified an SRV record. This field might be used if both the ``awsvpc`` network mode and SRV records are used.",
71
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
72
+ ),
73
+ ContainerPort: Schema.optionalKey(
74
+ Schema.Number.annotate({
75
+ description:
76
+ "The port value to be used for your service discovery service. It's already specified in the task definition. If the task definition your service task specifies uses the ``bridge`` or ``host`` network mode, you must specify a ``containerName`` and ``containerPort`` combination from the task definition. If the task definition your service task specifies uses the ``awsvpc`` network mode and a type SRV DNS record is used, you must specify either a ``containerName`` and ``containerPort`` combination or a ``port`` value. However, you can't specify both.",
77
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
78
+ ),
79
+ RegistryArn: Schema.optionalKey(
80
+ Schema.String.annotate({
81
+ description:
82
+ "The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is CMAP. For more information, see [CreateService](https://docs.aws.amazon.com/cloud-map/latest/api/API_CreateService.html).",
83
+ }),
84
+ ),
85
+ }).annotate({
86
+ description:
87
+ "The details for the service registry.\n Each service may be associated with one service registry. Multiple service registries for each service are not supported.\n When you add, update, or remove the service registries configuration, Amazon ECS starts a new deployment. New tasks are registered and deregistered to the updated service registry configuration.",
88
+ identifier: "ServiceRegistry",
89
+ });
90
+
91
+ type ResourceInputItems_1 = globalThis.ReadonlyArray<ServiceRegistry>;
92
+
93
+ const ResourceInputItems_1 = Schema.Array(ServiceRegistry).annotate({
94
+ description:
95
+ "The details of the service discovery registry to associate with this service. For more information, see [Service discovery](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html).\n Each service may be associated with one service registry. Multiple service registries for each service isn't supported.\n To remove this property from your service resource, specify an empty ``ServiceRegistry`` array.",
96
+ });
97
+
98
+ interface Tag {
99
+ readonly Value?: string;
100
+ readonly Key?: string;
101
+ }
102
+
103
+ const Tag = Schema.Struct({
104
+ Value: Schema.optionalKey(
105
+ Schema.String.annotate({
106
+ description:
107
+ "The optional part of a key-value pair that make up a tag. A ``value`` acts as a descriptor within a tag category (key).",
108
+ }),
109
+ ),
110
+ Key: Schema.optionalKey(
111
+ Schema.String.annotate({
112
+ description:
113
+ "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.",
114
+ }),
115
+ ),
116
+ }).annotate({
117
+ description:
118
+ "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.\n \n In order to tag a service that has the following ARN format, you need to migrate the service to the long ARN. You must use the API, CLI or console to migrate the service ARN. For more information, see [Migrate an short service ARN to a long ARN](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-arn-migration.html) in the *Developer Guide*.\n ``arn:aws:ecs:region:aws_account_id:service/service-name`` \n After the migration is complete, the following are true:\n + The service ARN is: ``arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name``\n + You can use CFN to tag the service as you would a service with a long ARN format.\n + When the ``PhysicalResourceId`` in the CFN stack represents a service, the value does not change and will be the short service ARN.",
119
+ identifier: "Tag",
120
+ });
121
+
122
+ interface EBSTagSpecification {
123
+ readonly PropagateTags?: "SERVICE" | "TASK_DEFINITION";
124
+ readonly ResourceType: string;
125
+ readonly Tags?: globalThis.ReadonlyArray<Tag>;
126
+ }
127
+
128
+ const EBSTagSpecification = Schema.Struct({
129
+ PropagateTags: Schema.optionalKey(
130
+ Schema.Literals(["SERVICE", "TASK_DEFINITION"]).annotate({
131
+ description:
132
+ "Determines whether to propagate the tags from the task definition to the Amazon EBS volume. Tags can only propagate to a ``SERVICE`` specified in ``ServiceVolumeConfiguration``. If no value is specified, the tags aren't propagated.",
133
+ }),
134
+ ),
135
+ ResourceType: Schema.String.annotate({
136
+ description: "The type of volume resource.",
137
+ }),
138
+ Tags: Schema.optionalKey(
139
+ Schema.Array(Tag).annotate({
140
+ description:
141
+ "The tags applied to this Amazon EBS volume. ``AmazonECSCreated`` and ``AmazonECSManaged`` are reserved tags that can't be used.",
142
+ }),
143
+ ),
144
+ }).annotate({
145
+ description: "The tag specifications of an Amazon EBS volume.",
146
+ identifier: "EBSTagSpecification",
147
+ });
148
+
149
+ interface ServiceManagedEBSVolumeConfiguration {
150
+ readonly SnapshotId?: string;
151
+ readonly VolumeType?: string;
152
+ readonly KmsKeyId?: string;
153
+ readonly TagSpecifications?: globalThis.ReadonlyArray<EBSTagSpecification>;
154
+ readonly FilesystemType?: string;
155
+ readonly Encrypted?: boolean;
156
+ readonly Throughput?: number;
157
+ readonly VolumeInitializationRate?: number;
158
+ readonly Iops?: number;
159
+ readonly SizeInGiB?: number;
160
+ readonly RoleArn: string;
161
+ }
162
+
163
+ const ServiceManagedEBSVolumeConfiguration = Schema.Struct({
164
+ SnapshotId: Schema.optionalKey(
165
+ Schema.String.annotate({
166
+ description:
167
+ "The snapshot that Amazon ECS uses to create volumes for attachment to tasks maintained by the service. You must specify either ``snapshotId`` or ``sizeInGiB`` in your volume configuration. This parameter maps 1:1 with the ``SnapshotId`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*.",
168
+ }),
169
+ ),
170
+ VolumeType: Schema.optionalKey(
171
+ Schema.String.annotate({
172
+ description:
173
+ "The volume type. This parameter maps 1:1 with the ``VolumeType`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*. For more information, see [Amazon EBS volume types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html) in the *Amazon EC2 User Guide*.\n The following are the supported volume types.\n + General Purpose SSD: ``gp2``|``gp3``\n + Provisioned IOPS SSD: ``io1``|``io2``\n + Throughput Optimized HDD: ``st1``\n + Cold HDD: ``sc1``\n + Magnetic: ``standard``\n The magnetic volume type is not supported on Fargate.",
174
+ }),
175
+ ),
176
+ KmsKeyId: Schema.optionalKey(
177
+ Schema.String.annotate({
178
+ description:
179
+ "The Amazon Resource Name (ARN) identifier of the AWS Key Management Service key to use for Amazon EBS encryption. When a key is specified using this parameter, it overrides Amazon EBS default encryption or any KMS key that you specified for cluster-level managed storage encryption. This parameter maps 1:1 with the ``KmsKeyId`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*. For more information about encrypting Amazon EBS volumes attached to tasks, see [Encrypt data stored in Amazon EBS volumes attached to Amazon ECS tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-kms-encryption.html).\n AWS authenticates the AWS Key Management Service key asynchronously. Therefore, if you specify an ID, alias, or ARN that is invalid, the action can appear to complete, but eventually fails.",
180
+ }),
181
+ ),
182
+ TagSpecifications: Schema.optionalKey(
183
+ Schema.Array(EBSTagSpecification).annotate({
184
+ description:
185
+ "The tags to apply to the volume. Amazon ECS applies service-managed tags by default. This parameter maps 1:1 with the ``TagSpecifications.N`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*.",
186
+ }),
187
+ ),
188
+ FilesystemType: Schema.optionalKey(
189
+ Schema.String.annotate({
190
+ description:
191
+ "The filesystem type for the volume. For volumes created from a snapshot, you must specify the same filesystem type that the volume was using when the snapshot was created. If there is a filesystem type mismatch, the tasks will fail to start.\n The available Linux filesystem types are ``ext3``, ``ext4``, and ``xfs``. If no value is specified, the ``xfs`` filesystem type is used by default.\n The available Windows filesystem types are ``NTFS``.",
192
+ }),
193
+ ),
194
+ Encrypted: Schema.optionalKey(
195
+ Schema.Boolean.annotate({
196
+ description:
197
+ "Indicates whether the volume should be encrypted. If you turn on Region-level Amazon EBS encryption by default but set this value as ``false``, the setting is overridden and the volume is encrypted with the KMS key specified for Amazon EBS encryption by default. This parameter maps 1:1 with the ``Encrypted`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*.",
198
+ }),
199
+ ),
200
+ Throughput: Schema.optionalKey(
201
+ Schema.Number.annotate({
202
+ description:
203
+ "The throughput to provision for a volume, in MiB/s, with a maximum of 1,000 MiB/s. This parameter maps 1:1 with the ``Throughput`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*.\n This parameter is only supported for the ``gp3`` volume type.",
204
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
205
+ ),
206
+ VolumeInitializationRate: Schema.optionalKey(
207
+ Schema.Number.annotate({
208
+ description:
209
+ "The rate, in MiB/s, at which data is fetched from a snapshot of an existing EBS volume to create new volumes for attachment to the tasks maintained by the service. This property can be specified only if you specify a ``snapshotId``. For more information, see [Initialize Amazon EBS volumes](https://docs.aws.amazon.com/ebs/latest/userguide/initalize-volume.html) in the *Amazon EBS User Guide*.",
210
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
211
+ ),
212
+ Iops: Schema.optionalKey(
213
+ Schema.Number.annotate({
214
+ description:
215
+ "The number of I/O operations per second (IOPS). For ``gp3``, ``io1``, and ``io2`` volumes, this represents the number of IOPS that are provisioned for the volume. For ``gp2`` volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.\n The following are the supported values for each volume type.\n + ``gp3``: 3,000 - 16,000 IOPS\n + ``io1``: 100 - 64,000 IOPS\n + ``io2``: 100 - 256,000 IOPS\n \n This parameter is required for ``io1`` and ``io2`` volume types. The default for ``gp3`` volumes is ``3,000 IOPS``. This parameter is not supported for ``st1``, ``sc1``, or ``standard`` volume types.\n This parameter maps 1:1 with the ``Iops`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*.",
216
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
217
+ ),
218
+ SizeInGiB: Schema.optionalKey(
219
+ Schema.Number.annotate({
220
+ description:
221
+ "The size of the volume in GiB. You must specify either a volume size or a snapshot ID. If you specify a snapshot ID, the snapshot size is used for the volume size by default. You can optionally specify a volume size greater than or equal to the snapshot size. This parameter maps 1:1 with the ``Size`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*.\n The following are the supported volume size values for each volume type.\n + ``gp2`` and ``gp3``: 1-16,384\n + ``io1`` and ``io2``: 4-16,384\n + ``st1`` and ``sc1``: 125-16,384\n + ``standard``: 1-1,024",
222
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
223
+ ),
224
+ RoleArn: Schema.String.annotate({
225
+ description:
226
+ "The ARN of the IAM role to associate with this volume. This is the Amazon ECS infrastructure IAM role that is used to manage your AWS infrastructure. We recommend using the Amazon ECS-managed ``AmazonECSInfrastructureRolePolicyForVolumes`` IAM policy with this role. For more information, see [Amazon ECS infrastructure IAM role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) in the *Amazon ECS Developer Guide*.",
227
+ }),
228
+ }).annotate({
229
+ description:
230
+ "The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task in the service. For information about the supported launch types and operating systems, see [Supported operating systems and launch types](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volumes-configuration) in the*Amazon Elastic Container Service Developer Guide*.\n Many of these parameters map 1:1 with the Amazon EBS ``CreateVolume`` API request parameters.",
231
+ identifier: "ServiceManagedEBSVolumeConfiguration",
232
+ });
233
+
234
+ interface ServiceVolumeConfiguration {
235
+ readonly ManagedEBSVolume?: ServiceManagedEBSVolumeConfiguration;
236
+ readonly Name: string;
237
+ }
238
+
239
+ const ServiceVolumeConfiguration = Schema.Struct({
240
+ ManagedEBSVolume: Schema.optionalKey(ServiceManagedEBSVolumeConfiguration),
241
+ Name: Schema.String.annotate({
242
+ description:
243
+ "The name of the volume. This value must match the volume name from the ``Volume`` object in the task definition.",
244
+ }),
245
+ }).annotate({
246
+ description:
247
+ "The configuration for a volume specified in the task definition as a volume that is configured at launch time. Currently, the only supported volume type is an Amazon EBS volume.",
248
+ identifier: "ServiceVolumeConfiguration",
249
+ });
250
+
251
+ type ResourceInputItems_2 =
252
+ globalThis.ReadonlyArray<ServiceVolumeConfiguration>;
253
+
254
+ const ResourceInputItems_2 = Schema.Array(ServiceVolumeConfiguration).annotate({
255
+ description:
256
+ "The configuration for a volume specified in the task definition as a volume that is configured at launch time. Currently, the only supported volume type is an Amazon EBS volume.\n To remove this property from your service resource, specify an empty ``ServiceVolumeConfiguration`` array.",
257
+ });
258
+
259
+ interface CapacityProviderStrategyItem {
260
+ readonly CapacityProvider?:
261
+ | ResourceEntity<{
262
+ readonly provider: "aws";
263
+ readonly service: "ecs";
264
+ readonly resource: "capacityprovider";
265
+ }>
266
+ | string;
267
+ readonly Base?: number;
268
+ readonly Weight?: number;
269
+ }
270
+
271
+ const CapacityProviderStrategyItem = Schema.Struct({
272
+ CapacityProvider: Schema.optionalKey(
273
+ Schema.Union([
274
+ Schema.Union([
275
+ ResourceReferenceSchema(
276
+ Schema.Struct({
277
+ provider: Schema.Literal("aws"),
278
+ service: Schema.Literal("ecs"),
279
+ resource: Schema.Literal("capacityprovider"),
280
+ }),
281
+ {
282
+ value: null,
283
+ outputs: [
284
+ {
285
+ source: ["Name"],
286
+ target: [],
287
+ },
288
+ ],
289
+ },
290
+ ).annotate({ expected: "ResourceEntity" }),
291
+ ]),
292
+ Schema.String.annotate({
293
+ description:
294
+ "The short name of the capacity provider. This can be either an AWS managed capacity provider (``FARGATE`` or ``FARGATE_SPOT``) or the name of a custom capacity provider that you created.",
295
+ }),
296
+ ]),
297
+ ),
298
+ Base: Schema.optionalKey(
299
+ Schema.Number.annotate({
300
+ description:
301
+ "The *base* value designates how many tasks, at a minimum, to run on the specified capacity provider for each service. Only one capacity provider in a capacity provider strategy can have a *base* defined. If no value is specified, the default value of ``0`` is used.\n Base value characteristics:\n + Only one capacity provider in a strategy can have a base defined\n + The default value is ``0`` if not specified\n + The valid range is 0 to 100,000\n + Base requirements are satisfied first before weight distribution",
302
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
303
+ ),
304
+ Weight: Schema.optionalKey(
305
+ Schema.Number.annotate({
306
+ description:
307
+ "The *weight* value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The ``weight`` value is taken into consideration after the ``base`` value, if defined, is satisfied.\n If no ``weight`` value is specified, the default value of ``0`` is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of ``0`` can't be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of ``0``, any ``RunTask`` or ``CreateService`` actions using the capacity provider strategy will fail.\n Weight value characteristics:\n + Weight is considered after the base value is satisfied\n + The default value is ``0`` if not specified\n + The valid range is 0 to 1,000\n + At least one capacity provider must have a weight greater than zero\n + Capacity providers with weight of ``0`` cannot place tasks\n \n Task distribution logic:\n 1. Base satisfaction: The minimum number of tasks specified by the base value are placed on that capacity provider\n 1. Weight distribution: After base requirements are met, additional tasks are distributed according to weight ratios\n \n Examples:\n Equal Distribution: Two capacity providers both with weight ``1`` will split tasks evenly after base requirements are met.\n Weighted Distribution: If capacityProviderA has weight ``1`` and capacityProviderB has weight ``4``, then for every 1 task on A, 4 tasks will run on B.",
308
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
309
+ ),
310
+ }).annotate({
311
+ description:
312
+ "The details of a capacity provider strategy. A capacity provider strategy can be set when using the ``RunTask`` or ``CreateService`` APIs or as the default capacity provider strategy for a cluster with the ``CreateCluster`` API.\n Only capacity providers that are already associated with a cluster and have an ``ACTIVE`` or ``UPDATING`` status can be used in a capacity provider strategy. The ``PutClusterCapacityProviders`` API is used to associate a capacity provider with a cluster.\n If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created. New Auto Scaling group capacity providers can be created with the ``CreateCapacityProvider`` API operation.\n To use an FARGATElong capacity provider, specify either the ``FARGATE`` or ``FARGATE_SPOT`` capacity providers. The FARGATElong capacity providers are available to all accounts and only need to be associated with a cluster to be used in a capacity provider strategy.",
313
+ identifier: "CapacityProviderStrategyItem",
314
+ });
315
+
316
+ type ResourceInputAlternatives_1 = "EC2" | "FARGATE" | "EXTERNAL";
317
+
318
+ const ResourceInputAlternatives_1 = Schema.Literals([
319
+ "EC2",
320
+ "FARGATE",
321
+ "EXTERNAL",
322
+ ]).annotate({
323
+ description:
324
+ "The launch type on which to run your service. 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*.\n If you want to use Managed Instances, you must use the ``capacityProviderStrategy`` request parameter",
325
+ });
326
+
327
+ type ResourceInputAlternatives_2 = "ENABLED" | "DISABLED";
328
+
329
+ const ResourceInputAlternatives_2 = Schema.Literals([
330
+ "ENABLED",
331
+ "DISABLED",
332
+ ]).annotate({
333
+ description:
334
+ "Indicates whether to use Availability Zone rebalancing for the service.\n For more information, see [Balancing an Amazon ECS service across Availability Zones](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html) in the *Amazon Elastic Container Service Developer Guide*.\n The default behavior of ``AvailabilityZoneRebalancing`` differs between create and update requests:\n + For create service requests, when no value is specified for ``AvailabilityZoneRebalancing``, Amazon ECS defaults the value to ``ENABLED``.\n + For update service requests, when no value is specified for ``AvailabilityZoneRebalancing``, Amazon ECS defaults to the existing service’s ``AvailabilityZoneRebalancing`` value. If the service never had an ``AvailabilityZoneRebalancing`` value set, Amazon ECS treats this as ``DISABLED``.",
335
+ });
336
+
337
+ type ResourceInputAlternatives_3 = "DAEMON" | "REPLICA";
338
+
339
+ const ResourceInputAlternatives_3 = Schema.Literals([
340
+ "DAEMON",
341
+ "REPLICA",
342
+ ]).annotate({
343
+ description:
344
+ "The scheduling strategy to use for the service. For more information, see [Services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html).\n There are two service scheduler strategies available:\n + ``REPLICA``-The replica scheduling strategy places and maintains the desired number of tasks across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement strategies and constraints to customize task placement decisions. This scheduler strategy is required if the service uses the ``CODE_DEPLOY`` or ``EXTERNAL`` deployment controller types.\n + ``DAEMON``-The daemon scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that you specify in your cluster. The service scheduler also evaluates the task placement constraints for running tasks and will stop tasks that don't meet the placement constraints. When you're using this strategy, you don't need to specify a desired number of tasks, a task placement strategy, or use Service Auto Scaling policies.\n Tasks using the Fargate launch type or the ``CODE_DEPLOY`` or ``EXTERNAL`` deployment controller types don't support the ``DAEMON`` scheduling strategy.",
345
+ });
346
+
347
+ type ResourceInputAlternatives_4 = "DISABLED" | "ENABLED";
348
+
349
+ const ResourceInputAlternatives_4 = Schema.Literals([
350
+ "DISABLED",
351
+ "ENABLED",
352
+ ]).annotate({
353
+ description:
354
+ "Whether the task's elastic network interface receives a public IP address. \n Consider the following when you set this value:\n + When you use ``create-service`` or ``update-service``, the default is ``DISABLED``. \n + When the service ``deploymentController`` is ``ECS``, the value must be ``DISABLED``.",
355
+ });
356
+
357
+ interface AwsVpcConfiguration {
358
+ readonly SecurityGroups?: globalThis.ReadonlyArray<
359
+ | ResourceEntity<{
360
+ readonly provider: "aws";
361
+ readonly service: "ec2";
362
+ readonly resource: "securitygroup";
363
+ }>
364
+ | string
365
+ >;
366
+ readonly Subnets?: globalThis.ReadonlyArray<
367
+ | ResourceEntity<{
368
+ readonly provider: "aws";
369
+ readonly service: "ec2";
370
+ readonly resource: "subnet";
371
+ }>
372
+ | string
373
+ >;
374
+ readonly AssignPublicIp?: ResourceInputAlternatives_4;
375
+ }
376
+
377
+ const AwsVpcConfiguration = Schema.Struct({
378
+ SecurityGroups: Schema.optionalKey(
379
+ Schema.Array(
380
+ Schema.Union([
381
+ Schema.Union([
382
+ ResourceReferenceSchema(
383
+ Schema.Struct({
384
+ provider: Schema.Literal("aws"),
385
+ service: Schema.Literal("ec2"),
386
+ resource: Schema.Literal("securitygroup"),
387
+ }),
388
+ {
389
+ value: null,
390
+ outputs: [
391
+ {
392
+ source: ["Id"],
393
+ target: [],
394
+ },
395
+ ],
396
+ },
397
+ ).annotate({ expected: "ResourceEntity" }),
398
+ ]),
399
+ Schema.String,
400
+ ]),
401
+ ).annotate({
402
+ description:
403
+ "The IDs of the security groups associated with the task or service. If you don't specify a security group, the default security group for the VPC is used. There's a limit of 5 security groups that can be specified.\n All specified security groups must be from the same VPC.",
404
+ }),
405
+ ),
406
+ Subnets: Schema.optionalKey(
407
+ Schema.Array(
408
+ Schema.Union([
409
+ Schema.Union([
410
+ ResourceReferenceSchema(
411
+ Schema.Struct({
412
+ provider: Schema.Literal("aws"),
413
+ service: Schema.Literal("ec2"),
414
+ resource: Schema.Literal("subnet"),
415
+ }),
416
+ {
417
+ value: null,
418
+ outputs: [
419
+ {
420
+ source: ["SubnetId"],
421
+ target: [],
422
+ },
423
+ ],
424
+ },
425
+ ).annotate({ expected: "ResourceEntity" }),
426
+ ]),
427
+ Schema.String,
428
+ ]),
429
+ ).annotate({
430
+ description:
431
+ "The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified.\n All specified subnets must be from the same VPC.",
432
+ }),
433
+ ),
434
+ AssignPublicIp: Schema.optionalKey(ResourceInputAlternatives_4),
435
+ }).annotate({
436
+ description:
437
+ 'An object representing the networking details for a task or service. For example ``awsVpcConfiguration={subnets=["subnet-12344321"],securityGroups=["sg-12344321"]}``.',
438
+ identifier: "AwsVpcConfiguration",
439
+ });
440
+
441
+ interface NetworkConfiguration {
442
+ readonly AwsvpcConfiguration?: AwsVpcConfiguration;
443
+ }
444
+
445
+ const NetworkConfiguration = Schema.Struct({
446
+ AwsvpcConfiguration: Schema.optionalKey(AwsVpcConfiguration),
447
+ }).annotate({
448
+ description: "The network configuration for a task or service.",
449
+ identifier: "NetworkConfiguration",
450
+ });
451
+
452
+ type ResourceInputItems_3 = globalThis.ReadonlyArray<Tag>;
453
+
454
+ const ResourceInputItems_3 = Schema.Array(Tag).annotate({
455
+ description:
456
+ "The metadata that you apply to the service to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. When a service is deleted, the tags are deleted as well.\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.",
457
+ });
458
+
459
+ interface MetricConfiguration {
460
+ readonly ResolutionSeconds: 20 | 60;
461
+ readonly MetricNames: globalThis.ReadonlyArray<
462
+ "CPUUtilization" | "MemoryUtilization"
463
+ >;
464
+ }
465
+
466
+ const MetricConfiguration = Schema.Struct({
467
+ ResolutionSeconds: Schema.Literals([20, 60]).annotate({
468
+ description:
469
+ "The resolution, in seconds, at which to collect the metrics. The valid values are ``20`` and ``60``.",
470
+ }),
471
+ MetricNames: Schema.Array(
472
+ Schema.Literals(["CPUUtilization", "MemoryUtilization"]),
473
+ )
474
+ .annotate({
475
+ description:
476
+ "The list of metric names to configure. The supported metric names are ``CPUUtilization`` and ``MemoryUtilization``.",
477
+ })
478
+ .check(
479
+ Schema.isMinLength(1).annotate({
480
+ expected: "a value with a length of at least 1",
481
+ }),
482
+ )
483
+ .check(
484
+ Schema.isMaxLength(2).annotate({
485
+ expected: "a value with a length of at most 2",
486
+ }),
487
+ )
488
+ .check(
489
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
490
+ ),
491
+ }).annotate({
492
+ description:
493
+ "The configuration for a specific set of metrics to collect for a service.",
494
+ identifier: "MetricConfiguration",
495
+ });
496
+
497
+ interface MonitoringConfiguration {
498
+ readonly MetricConfigurations: globalThis.ReadonlyArray<MetricConfiguration>;
499
+ }
500
+
501
+ const MonitoringConfiguration = Schema.Struct({
502
+ MetricConfigurations: Schema.Array(MetricConfiguration)
503
+ .annotate({
504
+ description:
505
+ "The list of metric configurations for the service monitoring.",
506
+ })
507
+ .check(
508
+ Schema.isMinLength(1).annotate({
509
+ expected: "a value with a length of at least 1",
510
+ }),
511
+ )
512
+ .check(
513
+ Schema.isMaxLength(2).annotate({
514
+ expected: "a value with a length of at most 2",
515
+ }),
516
+ ),
517
+ }).annotate({
518
+ description:
519
+ "The optional monitoring configuration for a service, which defines the resolution for the service-level ``CPUUtilization`` and ``MemoryUtilization`` Amazon CloudWatch metrics. When not specified, Amazon ECS uses the default resolution of ``60`` seconds.",
520
+ identifier: "MonitoringConfiguration",
521
+ });
522
+
523
+ interface ForceNewDeployment {
524
+ readonly EnableForceNewDeployment: boolean;
525
+ readonly ForceNewDeploymentNonce?: string;
526
+ }
527
+
528
+ const ForceNewDeployment = Schema.Struct({
529
+ EnableForceNewDeployment: Schema.Boolean.annotate({
530
+ description:
531
+ "Determines whether to force a new deployment of the service. By default, deployments aren't forced. You can use this option to start a new deployment with no service definition changes. For example, you can update a service's tasks to use a newer Docker image with the same image/tag combination (``my_image:latest``) or to roll Fargate tasks onto a newer platform version.",
532
+ }),
533
+ ForceNewDeploymentNonce: Schema.optionalKey(
534
+ Schema.String.annotate({
535
+ description:
536
+ "When you change the``ForceNewDeploymentNonce`` value in your template, it signals ECS to start a new deployment even though no other service parameters have changed. The value must be a unique, time- varying value like a timestamp, random string, or sequence number. Use this property when you want to ensure your tasks pick up the latest version of a Docker image that uses the same tag but has been updated in the registry.",
537
+ })
538
+ .check(
539
+ Schema.isMinLength(1).annotate({
540
+ expected: "a value with a length of at least 1",
541
+ }),
542
+ )
543
+ .check(
544
+ Schema.isMaxCodePoints(255).annotate({
545
+ expected: "a string with at most 255 code points",
546
+ }),
547
+ ),
548
+ ),
549
+ }).annotate({
550
+ description:
551
+ "Determines whether to force a new deployment of the service. By default, deployments aren't forced. You can use this option to start a new deployment with no service definition changes. For example, you can update a service's tasks to use a newer Docker image with the same image/tag combination (``my_image:latest``) or to roll Fargate tasks onto a newer platform version.",
552
+ identifier: "ForceNewDeployment",
553
+ });
554
+
555
+ interface PlacementConstraint {
556
+ readonly Type: "distinctInstance" | "memberOf";
557
+ readonly Expression?: string;
558
+ }
559
+
560
+ const PlacementConstraint = Schema.Struct({
561
+ Type: Schema.Literals(["distinctInstance", "memberOf"]).annotate({
562
+ description:
563
+ "The type of constraint. Use ``distinctInstance`` to ensure that each task in a particular group is running on a different container instance. Use ``memberOf`` to restrict the selection to a group of valid candidates.",
564
+ }),
565
+ Expression: Schema.optionalKey(
566
+ Schema.String.annotate({
567
+ description:
568
+ "A cluster query language expression to apply to the constraint. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is ``distinctInstance``. 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*.",
569
+ }),
570
+ ),
571
+ }).annotate({
572
+ description:
573
+ "An object representing a constraint on task placement. 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 If you're using the Fargate launch type, task placement constraints aren't supported.",
574
+ identifier: "PlacementConstraint",
575
+ });
576
+
577
+ type ResourceInputItems_4 = globalThis.ReadonlyArray<PlacementConstraint>;
578
+
579
+ const ResourceInputItems_4 = Schema.Array(PlacementConstraint).annotate({
580
+ description:
581
+ "An array of placement constraint objects to use for tasks in your service. You can specify a maximum of 10 constraints for each task. This limit includes constraints in the task definition and those specified at runtime.\n To remove this property from your service resource, specify an empty ``PlacementConstraint`` array.",
582
+ });
583
+
584
+ interface AdvancedConfiguration {
585
+ readonly TestListenerRule?: string;
586
+ readonly AlternateTargetGroupArn: string;
587
+ readonly ProductionListenerRule?: string;
588
+ readonly RoleArn?: string;
589
+ }
590
+
591
+ const AdvancedConfiguration = Schema.Struct({
592
+ TestListenerRule: Schema.optionalKey(
593
+ Schema.String.annotate({
594
+ description:
595
+ "The Amazon Resource Name (ARN) that identifies ) that identifies the test listener rule (in the case of an Application Load Balancer) or listener (in the case for an Network Load Balancer) for routing test traffic.",
596
+ }),
597
+ ),
598
+ AlternateTargetGroupArn: Schema.String.annotate({
599
+ description:
600
+ "The Amazon Resource Name (ARN) of the alternate target group for Amazon ECS blue/green deployments.",
601
+ }),
602
+ ProductionListenerRule: Schema.optionalKey(
603
+ Schema.String.annotate({
604
+ description:
605
+ "The Amazon Resource Name (ARN) that that identifies the production listener rule (in the case of an Application Load Balancer) or listener (in the case for an Network Load Balancer) for routing production traffic.",
606
+ }),
607
+ ),
608
+ RoleArn: Schema.optionalKey(
609
+ Schema.String.annotate({
610
+ description:
611
+ "The Amazon Resource Name (ARN) of the IAM role that grants Amazon ECS permission to call the Elastic Load Balancing APIs for you.",
612
+ }),
613
+ ),
614
+ }).annotate({
615
+ description:
616
+ "The advanced settings for a load balancer used in blue/green deployments. Specify the alternate target group, listener rules, and IAM role required for traffic shifting during blue/green deployments. For more information, see [Required resources for Amazon ECS blue/green deployments](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/blue-green-deployment-implementation.html) in the *Amazon Elastic Container Service Developer Guide*.",
617
+ identifier: "AdvancedConfiguration",
618
+ });
619
+
620
+ interface LoadBalancer {
621
+ readonly TargetGroupArn?:
622
+ | ResourceEntity<{
623
+ readonly provider: "aws";
624
+ readonly service: "elasticloadbalancingv2";
625
+ readonly resource: "targetgroup";
626
+ }>
627
+ | string;
628
+ readonly LoadBalancerName?:
629
+ | ResourceEntity<{
630
+ readonly provider: "aws";
631
+ readonly service: "elasticloadbalancing";
632
+ readonly resource: "loadbalancer";
633
+ }>
634
+ | string;
635
+ readonly ContainerName?: string;
636
+ readonly ContainerPort?: number;
637
+ readonly AdvancedConfiguration?: AdvancedConfiguration;
638
+ }
639
+
640
+ const LoadBalancer = Schema.Struct({
641
+ TargetGroupArn: Schema.optionalKey(
642
+ Schema.Union([
643
+ Schema.Union([
644
+ ResourceReferenceSchema(
645
+ Schema.Struct({
646
+ provider: Schema.Literal("aws"),
647
+ service: Schema.Literal("elasticloadbalancingv2"),
648
+ resource: Schema.Literal("targetgroup"),
649
+ }),
650
+ {
651
+ value: null,
652
+ outputs: [
653
+ {
654
+ source: ["TargetGroupArn"],
655
+ target: [],
656
+ },
657
+ ],
658
+ },
659
+ ).annotate({ expected: "ResourceEntity" }),
660
+ ]),
661
+ Schema.String.annotate({
662
+ description:
663
+ "The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group or groups associated with a service or task set.\n A target group ARN is only specified when using an Application Load Balancer or Network Load Balancer. \n For services using the ``ECS`` deployment controller, you can specify one or multiple target groups. For more information, see [Registering multiple target groups with a service](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html) in the *Amazon Elastic Container Service Developer Guide*.\n For services using the ``CODE_DEPLOY`` deployment controller, you're required to define two target groups for the load balancer. For more information, see [Blue/green deployment with CodeDeploy](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-bluegreen.html) in the *Amazon Elastic Container Service Developer Guide*.\n If your service's task definition uses the ``awsvpc`` network mode, you must choose ``ip`` as the target type, not ``instance``. Do this when creating your target groups because tasks that use the ``awsvpc`` network mode are associated with an elastic network interface, not an Amazon EC2 instance. This network mode is required for the Fargate launch type.",
664
+ }),
665
+ ]),
666
+ ),
667
+ LoadBalancerName: Schema.optionalKey(
668
+ Schema.Union([
669
+ Schema.Union([
670
+ ResourceReferenceSchema(
671
+ Schema.Struct({
672
+ provider: Schema.Literal("aws"),
673
+ service: Schema.Literal("elasticloadbalancing"),
674
+ resource: Schema.Literal("loadbalancer"),
675
+ }),
676
+ {
677
+ value: null,
678
+ outputs: [
679
+ {
680
+ source: ["Id"],
681
+ target: [],
682
+ },
683
+ ],
684
+ },
685
+ ).annotate({ expected: "ResourceEntity" }),
686
+ ]),
687
+ Schema.String.annotate({
688
+ description:
689
+ "The name of the load balancer to associate with the Amazon ECS service or task set.\n If you are using an Application Load Balancer or a Network Load Balancer the load balancer name parameter should be omitted.",
690
+ }),
691
+ ]),
692
+ ),
693
+ ContainerName: Schema.optionalKey(
694
+ Schema.String.annotate({
695
+ description:
696
+ "The name of the container (as it appears in a container definition) to associate with the load balancer.\n You need to specify the container name when configuring the target group for an Amazon ECS load balancer.",
697
+ }),
698
+ ),
699
+ ContainerPort: Schema.optionalKey(
700
+ Schema.Number.annotate({
701
+ description:
702
+ "The port on the container to associate with the load balancer. This port must correspond to a ``containerPort`` in the task definition the tasks in the service are using. For tasks that use the EC2 launch type, the container instance they're launched on must allow ingress traffic on the ``hostPort`` of the port mapping.",
703
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
704
+ ),
705
+ AdvancedConfiguration: Schema.optionalKey(AdvancedConfiguration),
706
+ }).annotate({
707
+ description:
708
+ "The ``LoadBalancer`` property specifies details on a load balancer that is used with a service.\n If the service is using the ``CODE_DEPLOY`` deployment controller, the service is required to use either an Application Load Balancer or Network Load Balancer. When you are creating an ACDlong deployment group, you specify two target groups (referred to as a ``targetGroupPair``). Each target group binds to a separate task set in the deployment. The load balancer can also have up to two listeners, a required listener for production traffic and an optional listener that allows you to test new revisions of the service before routing production traffic to it.\n Services with tasks that use the ``awsvpc`` network mode (for example, those with the Fargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers are not supported. Also, when you create any target groups for these services, you must choose ``ip`` as the target type, not ``instance``. Tasks that use the ``awsvpc`` network mode are associated with an elastic network interface, not an Amazon EC2 instance.",
709
+ identifier: "LoadBalancer",
710
+ });
711
+
712
+ interface TimeoutConfiguration {
713
+ readonly PerRequestTimeoutSeconds?: number;
714
+ readonly IdleTimeoutSeconds?: number;
715
+ }
716
+
717
+ const TimeoutConfiguration = Schema.Struct({
718
+ PerRequestTimeoutSeconds: Schema.optionalKey(
719
+ Schema.Number.annotate({
720
+ description:
721
+ "The amount of time waiting for the upstream to respond with a complete response per request. A value of ``0`` can be set to disable ``perRequestTimeout``. ``perRequestTimeout`` can only be set if Service Connect ``appProtocol`` isn't ``TCP``. Only ``idleTimeout`` is allowed for ``TCP````appProtocol``.",
722
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
723
+ ),
724
+ IdleTimeoutSeconds: Schema.optionalKey(
725
+ Schema.Number.annotate({
726
+ description:
727
+ "The amount of time in seconds a connection will stay active while idle. A value of ``0`` can be set to disable ``idleTimeout``.\n The ``idleTimeout`` default for ``HTTP``/``HTTP2``/``GRPC`` is 5 minutes.\n The ``idleTimeout`` default for ``TCP`` is 1 hour.",
728
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
729
+ ),
730
+ }).annotate({
731
+ description:
732
+ "An object that represents the timeout configurations for Service Connect.\n If ``idleTimeout`` is set to a time that is less than ``perRequestTimeout``, the connection will close when the ``idleTimeout`` is reached and not the ``perRequestTimeout``.",
733
+ identifier: "TimeoutConfiguration",
734
+ });
735
+
736
+ interface ServiceConnectTestTrafficRulesHeaderValue {
737
+ readonly Exact: string;
738
+ }
739
+
740
+ const ServiceConnectTestTrafficRulesHeaderValue = Schema.Struct({
741
+ Exact: Schema.String.annotate({ description: "" }),
742
+ }).annotate({
743
+ description: "",
744
+ identifier: "ServiceConnectTestTrafficRulesHeaderValue",
745
+ });
746
+
747
+ interface ServiceConnectTestTrafficRulesHeader {
748
+ readonly Value?: ServiceConnectTestTrafficRulesHeaderValue;
749
+ readonly Name: string;
750
+ }
751
+
752
+ const ServiceConnectTestTrafficRulesHeader = Schema.Struct({
753
+ Value: Schema.optionalKey(ServiceConnectTestTrafficRulesHeaderValue),
754
+ Name: Schema.String.annotate({ description: "" }),
755
+ }).annotate({
756
+ description: "",
757
+ identifier: "ServiceConnectTestTrafficRulesHeader",
758
+ });
759
+
760
+ interface ServiceConnectTestTrafficRules {
761
+ readonly Header: ServiceConnectTestTrafficRulesHeader;
762
+ }
763
+
764
+ const ServiceConnectTestTrafficRules = Schema.Struct({
765
+ Header: ServiceConnectTestTrafficRulesHeader,
766
+ }).annotate({
767
+ description:
768
+ "The test traffic routing configuration for Amazon ECS blue/green deployments. This configuration allows you to define rules for routing specific traffic to the new service revision during the deployment process, allowing for safe testing before full production traffic shift.\n For more information, see [Service Connect for Amazon ECS blue/green deployments](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect-blue-green.html) in the *Amazon Elastic Container Service Developer Guide*.",
769
+ identifier: "ServiceConnectTestTrafficRules",
770
+ });
771
+
772
+ interface ServiceConnectClientAlias {
773
+ readonly DnsName?: string;
774
+ readonly TestTrafficRules?: ServiceConnectTestTrafficRules;
775
+ readonly Port: number;
776
+ }
777
+
778
+ const ServiceConnectClientAlias = Schema.Struct({
779
+ DnsName: Schema.optionalKey(
780
+ Schema.String.annotate({
781
+ description:
782
+ "The ``dnsName`` is the name that you use in the applications of client tasks to connect to this service. The name must be a valid DNS name but doesn't need to be fully-qualified. The name can include up to 127 characters. The name can include lowercase letters, numbers, underscores (_), hyphens (-), and periods (.). The name can't start with a hyphen.\n If this parameter isn't specified, the default value of ``discoveryName.namespace`` is used. If the ``discoveryName`` isn't specified, the port mapping name from the task definition is used in ``portName.namespace``.\n To avoid changing your applications in client Amazon ECS services, set this to the same name that the client application uses by default. For example, a few common names are ``database``, ``db``, or the lowercase name of a database, such as ``mysql`` or ``redis``. 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*.",
783
+ }),
784
+ ),
785
+ TestTrafficRules: Schema.optionalKey(ServiceConnectTestTrafficRules),
786
+ Port: Schema.Number.annotate({
787
+ description:
788
+ "The listening port number for the Service Connect proxy. This port is available inside of all of the tasks within the same namespace.\n To avoid changing your applications in client Amazon ECS services, set this to the same port that the client application uses by default. 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*.",
789
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
790
+ }).annotate({
791
+ description:
792
+ 'Each alias ("endpoint") is a fully-qualified name and port number that other tasks ("clients") can use to connect to this service.\n Each name and port mapping must be unique within the namespace.\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*.',
793
+ identifier: "ServiceConnectClientAlias",
794
+ });
795
+
796
+ interface ServiceConnectTlsCertificateAuthority {
797
+ readonly AwsPcaAuthorityArn?: string;
798
+ }
799
+
800
+ const ServiceConnectTlsCertificateAuthority = Schema.Struct({
801
+ AwsPcaAuthorityArn: Schema.optionalKey(
802
+ Schema.String.annotate({
803
+ description:
804
+ "The ARN of the AWS Private Certificate Authority certificate.",
805
+ }),
806
+ ),
807
+ }).annotate({
808
+ description: "The certificate root authority that secures your service.",
809
+ identifier: "ServiceConnectTlsCertificateAuthority",
810
+ });
811
+
812
+ interface ServiceConnectTlsConfiguration {
813
+ readonly IssuerCertificateAuthority: ServiceConnectTlsCertificateAuthority;
814
+ readonly KmsKey?: string;
815
+ readonly RoleArn?: string;
816
+ }
817
+
818
+ const ServiceConnectTlsConfiguration = Schema.Struct({
819
+ IssuerCertificateAuthority: ServiceConnectTlsCertificateAuthority,
820
+ KmsKey: Schema.optionalKey(
821
+ Schema.String.annotate({
822
+ description: "The AWS Key Management Service key.",
823
+ }),
824
+ ),
825
+ RoleArn: Schema.optionalKey(
826
+ Schema.String.annotate({
827
+ description:
828
+ "The Amazon Resource Name (ARN) of the IAM role that's associated with the Service Connect TLS.",
829
+ }),
830
+ ),
831
+ }).annotate({
832
+ description:
833
+ "The key that encrypts and decrypts your resources for Service Connect TLS.",
834
+ identifier: "ServiceConnectTlsConfiguration",
835
+ });
836
+
837
+ interface ServiceConnectService {
838
+ readonly Timeout?: TimeoutConfiguration;
839
+ readonly IngressPortOverride?: number;
840
+ readonly ClientAliases?: globalThis.ReadonlyArray<ServiceConnectClientAlias>;
841
+ readonly Tls?: ServiceConnectTlsConfiguration;
842
+ readonly DiscoveryName?: string;
843
+ readonly PortName: string;
844
+ }
845
+
846
+ const ServiceConnectService = Schema.Struct({
847
+ Timeout: Schema.optionalKey(TimeoutConfiguration),
848
+ IngressPortOverride: Schema.optionalKey(
849
+ Schema.Number.annotate({
850
+ description:
851
+ "The port number for the Service Connect proxy to listen on.\n Use the value of this field to bypass the proxy for traffic on the port number specified in the named ``portMapping`` in the task definition of this application, and then use it in your VPC security groups to allow traffic into the proxy for this Amazon ECS service.\n In ``awsvpc`` mode and Fargate, the default value is the container port number. The container port number is in the ``portMapping`` in the task definition. In bridge mode, the default value is the ephemeral port of the Service Connect proxy.",
852
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
853
+ ),
854
+ ClientAliases: Schema.optionalKey(
855
+ Schema.Array(ServiceConnectClientAlias).annotate({
856
+ description:
857
+ 'The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1.\n Each alias ("endpoint") is a fully-qualified name and port number that other Amazon ECS tasks ("clients") can use to connect to this service.\n Each name and port mapping must be unique within the namespace.\n For each ``ServiceConnectService``, you must provide at least one ``clientAlias`` with one ``port``.',
858
+ }),
859
+ ),
860
+ Tls: Schema.optionalKey(ServiceConnectTlsConfiguration),
861
+ DiscoveryName: Schema.optionalKey(
862
+ Schema.String.annotate({
863
+ description:
864
+ "The ``discoveryName`` is the name of the new CMAP service that Amazon ECS creates for this Amazon ECS service. This must be unique within the CMAP namespace. The name can contain up to 64 characters. The name can include lowercase letters, numbers, underscores (_), and hyphens (-). The name can't start with a hyphen.\n If the ``discoveryName`` isn't specified, the port mapping name from the task definition is used in ``portName.namespace``.",
865
+ }),
866
+ ),
867
+ PortName: Schema.String.annotate({
868
+ description:
869
+ "The ``portName`` must match the name of one of the ``portMappings`` from all the containers in the task definition of this Amazon ECS service.",
870
+ }),
871
+ }).annotate({
872
+ description:
873
+ "The Service Connect service object configuration. 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*.",
874
+ identifier: "ServiceConnectService",
875
+ });
876
+
877
+ interface ServiceConnectAccessLogConfiguration {
878
+ readonly Format: "TEXT" | "JSON";
879
+ readonly IncludeQueryParameters?: "DISABLED" | "ENABLED";
880
+ }
881
+
882
+ const ServiceConnectAccessLogConfiguration = Schema.Struct({
883
+ Format: Schema.Literals(["TEXT", "JSON"]).annotate({
884
+ description:
885
+ "The format for Service Connect access log output. Choose TEXT for human-readable logs or JSON for structured data that integrates well with log analysis tools.",
886
+ }),
887
+ IncludeQueryParameters: Schema.optionalKey(
888
+ Schema.Literals(["DISABLED", "ENABLED"]).annotate({
889
+ description:
890
+ "Specifies whether to include query parameters in Service Connect access logs.\n When enabled, query parameters from HTTP requests are included in the access logs. Consider security and privacy implications when enabling this feature, as query parameters may contain sensitive information such as request IDs and tokens. By default, this parameter is ``DISABLED``.",
891
+ }),
892
+ ),
893
+ }).annotate({
894
+ description:
895
+ "Configuration for Service Connect access logging. Access logs provide detailed information about requests made to your service, including request patterns, response codes, and timing data for debugging and monitoring purposes.\n To enable access logs, you must also specify a ``logConfiguration`` in the ``serviceConnectConfiguration``.",
896
+ identifier: "ServiceConnectAccessLogConfiguration",
897
+ });
898
+
899
+ interface Secret {
900
+ readonly ValueFrom: string;
901
+ readonly Name: string;
902
+ }
903
+
904
+ const Secret = Schema.Struct({
905
+ ValueFrom: Schema.String.annotate({
906
+ description:
907
+ "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.",
908
+ }),
909
+ Name: Schema.String.annotate({ description: "The name of the secret." }),
910
+ }).annotate({
911
+ description:
912
+ "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*.",
913
+ identifier: "Secret",
914
+ });
915
+
916
+ interface LogConfiguration {
917
+ readonly SecretOptions?: globalThis.ReadonlyArray<Secret>;
918
+ readonly Options?: {
919
+ readonly [x: string]: string;
920
+ };
921
+ readonly LogDriver?: string;
922
+ }
923
+
924
+ const LogConfiguration = Schema.Struct({
925
+ SecretOptions: Schema.optionalKey(
926
+ Schema.Array(Secret).annotate({
927
+ description:
928
+ "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*.",
929
+ }),
930
+ ),
931
+ Options: Schema.optionalKey(
932
+ Schema.Record(
933
+ Schema.String.check(
934
+ Schema.isPattern(new globalThis.RegExp(".{1,}", "u")).annotate({
935
+ expected: "a string matching the RegExp .{1,}",
936
+ }),
937
+ ),
938
+ Schema.String,
939
+ ).annotate({
940
+ description:
941
+ "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}}'``",
942
+ }),
943
+ ),
944
+ LogDriver: Schema.optionalKey(
945
+ Schema.String.annotate({
946
+ description:
947
+ "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.",
948
+ }),
949
+ ),
950
+ }).annotate({
951
+ description:
952
+ "The log configuration for the container. This parameter maps to ``LogConfig`` in the docker container create command and the ``--log-driver`` option to docker run.\n By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition.\n Understand the following when specifying a log configuration for your containers.\n + Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon. Additional log drivers may be available in future releases of the Amazon ECS container agent.\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 + This parameter requires version 1.18 of the Docker Remote API or greater on your container instance.\n + For tasks that are hosted on Amazon EC2 instances, the Amazon ECS container agent must register the available logging drivers with the ``ECS_AVAILABLE_LOGGING_DRIVERS`` environment variable before containers placed on that instance can use these log configuration 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 + For tasks that are on FARGATElong, because you don't have access to the underlying infrastructure your tasks are hosted on, any additional software needed must be installed outside of the task. For example, the Fluentd output aggregators or a remote host running Logstash to send Gelf logs to.",
953
+ identifier: "LogConfiguration",
954
+ });
955
+
956
+ interface ServiceConnectConfiguration {
957
+ readonly Services?: globalThis.ReadonlyArray<ServiceConnectService>;
958
+ readonly AccessLogConfiguration?: ServiceConnectAccessLogConfiguration;
959
+ readonly Enabled: boolean;
960
+ readonly LogConfiguration?: LogConfiguration;
961
+ readonly Namespace?: string;
962
+ }
963
+
964
+ const ServiceConnectConfiguration = Schema.Struct({
965
+ Services: Schema.optionalKey(
966
+ Schema.Array(ServiceConnectService).annotate({
967
+ description:
968
+ "The list of Service Connect service objects. These are names and aliases (also known as endpoints) that are used by other Amazon ECS services to connect to this service. \n This field is not required for a \"client\" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.\n An object selects a port from the task definition, assigns a name for the CMAPlong service, and a list of aliases (endpoints) and ports for client applications to refer to this service.",
969
+ }),
970
+ ),
971
+ AccessLogConfiguration: Schema.optionalKey(
972
+ ServiceConnectAccessLogConfiguration,
973
+ ),
974
+ Enabled: Schema.Boolean.annotate({
975
+ description: "Specifies whether to use Service Connect with this service.",
976
+ }),
977
+ LogConfiguration: Schema.optionalKey(LogConfiguration),
978
+ Namespace: Schema.optionalKey(
979
+ Schema.String.annotate({
980
+ description:
981
+ "The namespace name or full Amazon Resource Name (ARN) of the CMAPlong namespace for use with Service Connect. The namespace must be in the same AWS Region as the Amazon ECS service and cluster. The type of namespace doesn't affect Service Connect. For more information about CMAPlong, see [Working with Services](https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html) in the *Developer Guide*.",
982
+ }),
983
+ ),
984
+ }).annotate({
985
+ description:
986
+ "The Service Connect configuration of your Amazon ECS service. The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.\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*.",
987
+ identifier: "ServiceConnectConfiguration",
988
+ });
989
+
990
+ interface VpcLatticeConfiguration {
991
+ readonly TargetGroupArn: string;
992
+ readonly PortName: string;
993
+ readonly RoleArn: string;
994
+ }
995
+
996
+ const VpcLatticeConfiguration = Schema.Struct({
997
+ TargetGroupArn: Schema.String.annotate({
998
+ description:
999
+ "The full Amazon Resource Name (ARN) of the target group or groups associated with the VPC Lattice configuration that the Amazon ECS tasks will be registered to.",
1000
+ }),
1001
+ PortName: Schema.String.annotate({
1002
+ description:
1003
+ "The name of the port mapping to register in the VPC Lattice target group. This is the name of the ``portMapping`` you defined in your task definition.",
1004
+ }),
1005
+ RoleArn: Schema.String.annotate({
1006
+ description:
1007
+ "The ARN of the IAM role to associate with this VPC Lattice configuration. This is the Amazon ECS infrastructure IAM role that is used to manage your VPC Lattice infrastructure.",
1008
+ }),
1009
+ }).annotate({
1010
+ description:
1011
+ "The VPC Lattice configuration for your service that holds the information for the target group(s) Amazon ECS tasks will be registered to.",
1012
+ identifier: "VpcLatticeConfiguration",
1013
+ });
1014
+
1015
+ type ResourceInputItems_5 = globalThis.ReadonlyArray<VpcLatticeConfiguration>;
1016
+
1017
+ const ResourceInputItems_5 = Schema.Array(VpcLatticeConfiguration).annotate({
1018
+ description: "The VPC Lattice configuration for the service being created.",
1019
+ });
1020
+
1021
+ interface DeploymentController {
1022
+ readonly Type?: "CODE_DEPLOY" | "ECS" | "EXTERNAL";
1023
+ }
1024
+
1025
+ const DeploymentController = Schema.Struct({
1026
+ Type: Schema.optionalKey(
1027
+ Schema.Literals(["CODE_DEPLOY", "ECS", "EXTERNAL"]).annotate({
1028
+ description:
1029
+ "The deployment controller type to use.\n The deployment controller is the mechanism that determines how tasks are deployed for your service. The valid options are:\n + ECS\n When you create a service which uses the ``ECS`` deployment controller, you can choose between the following deployment strategies:\n + ``ROLLING``: When you create a service which uses the *rolling update* (``ROLLING``) deployment strategy, the ECS service scheduler replaces the currently running tasks with new tasks. The number of tasks that ECS adds or removes from the service during a rolling update is controlled by the service deployment configuration. \n Rolling update deployments are best suited for the following scenarios:\n + Gradual service updates: You need to update your service incrementally without taking the entire service offline at once.\n + Limited resource requirements: You want to avoid the additional resource costs of running two complete environments simultaneously (as required by blue/green deployments).\n + Acceptable deployment time: Your application can tolerate a longer deployment process, as rolling updates replace tasks one by one.\n + No need for instant roll back: Your service can tolerate a rollback process that takes minutes rather than seconds.\n + Simple deployment process: You prefer a straightforward deployment approach without the complexity of managing multiple environments, target groups, and listeners.\n + No load balancer requirement: Your service doesn't use or require a load balancer, ALB, NLB, or Service Connect (which are required for blue/green deployments).\n + Stateful applications: Your application maintains state that makes it difficult to run two parallel environments.\n + Cost sensitivity: You want to minimize deployment costs by not running duplicate environments during deployment.\n \n Rolling updates are the default deployment strategy for services and provide a balance between deployment safety and resource efficiency for many common application scenarios.\n + ``BLUE_GREEN``: A *blue/green* deployment strategy (``BLUE_GREEN``) is a release methodology that reduces downtime and risk by running two identical production environments called blue and green. With ECS blue/green deployments, you can validate new service revisions before directing production traffic to them. This approach provides a safer way to deploy changes with the ability to quickly roll back if needed.\n ECS blue/green deployments are best suited for the following scenarios:\n + Service validation: When you need to validate new service revisions before directing production traffic to them\n + Zero downtime: When your service requires zero-downtime deployments\n + Instant roll back: When you need the ability to quickly roll back if issues are detected\n + Load balancer requirement: When your service uses ALB, NLB, or Service Connect\n \n \n + External\n Use a third-party deployment controller.\n + Blue/green deployment (powered by ACD)\n ACD installs an updated version of the application as a new replacement task set and reroutes production traffic from the original application task set to the replacement task set. The original task set is terminated after a successful deployment. Use this deployment controller to verify a new deployment of a service before sending production traffic to it.\n \n When updating the deployment controller for a service, consider the following depending on the type of migration you're performing.\n + If you have a template that contains the ``EXTERNAL`` deployment controller information as well as ``TaskSet`` and ``PrimaryTaskSet`` resources, and you remove the task set resources from the template when updating from ``EXTERNAL`` to ``ECS``, the ``DescribeTaskSet`` and ``DeleteTaskSet`` API calls will return a 400 error after the deployment controller is updated to ``ECS``. This results in a delete failure on the task set resources, even though the stack transitions to ``UPDATE_COMPLETE`` status. For more information, see [Resource removed from stack but not deleted](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-resource-removed-not-deleted) in the CFNlong User Guide. To fix this issue, delete the task sets directly using the ECS``DeleteTaskSet`` API. For more information about how to delete a task set, see [DeleteTaskSet](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteTaskSet.html) in the ECSlong API Reference.\n + If you're migrating from ``CODE_DEPLOY`` to ``ECS`` with a new task definition and CFN performs a rollback operation, the ECS``UpdateService`` request fails with the following error:\n Resource handler returned message: \"Invalid request provided: Unable to update task definition on services with a CODE_DEPLOY deployment controller. \n + After a successful migration from ``ECS`` to ``EXTERNAL`` deployment controller, you need to manually remove the ``ACTIVE`` task set, because ECS no longer manages the deployment. For information about how to delete a task set, see [DeleteTaskSet](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteTaskSet.html) in the ECSlong API Reference.",
1030
+ }),
1031
+ ),
1032
+ }).annotate({
1033
+ description: "The deployment controller to use for the service.",
1034
+ identifier: "DeploymentController",
1035
+ });
1036
+
1037
+ interface CanaryConfiguration {
1038
+ readonly CanaryPercent?: number;
1039
+ readonly CanaryBakeTimeInMinutes?: number;
1040
+ }
1041
+
1042
+ const CanaryConfiguration = Schema.Struct({
1043
+ CanaryPercent: Schema.optionalKey(
1044
+ Schema.Number.annotate({
1045
+ description:
1046
+ "The percentage of production traffic to shift to the new service revision during the canary phase. Valid values are multiples of 0.1 from 0.1 to 100.0. The default value is 5.0.",
1047
+ })
1048
+ .check(Schema.isFinite().annotate({ expected: "a finite number" }))
1049
+ .check(
1050
+ Schema.isGreaterThanOrEqualTo(0.1).annotate({
1051
+ expected: "a value greater than or equal to 0.1",
1052
+ }),
1053
+ )
1054
+ .check(
1055
+ Schema.isLessThanOrEqualTo(100).annotate({
1056
+ expected: "a value less than or equal to 100",
1057
+ }),
1058
+ )
1059
+ .check(
1060
+ Schema.isMultipleOf(0.1).annotate({
1061
+ expected: "a value that is a multiple of 0.1",
1062
+ }),
1063
+ ),
1064
+ ),
1065
+ CanaryBakeTimeInMinutes: Schema.optionalKey(
1066
+ Schema.Number.annotate({
1067
+ description:
1068
+ "The amount of time in minutes to wait during the canary phase before shifting the remaining production traffic to the new service revision. Valid values are 0 to 1440 minutes (24 hours). The default value is 10.",
1069
+ })
1070
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1071
+ .check(
1072
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1073
+ expected: "a value greater than or equal to 0",
1074
+ }),
1075
+ )
1076
+ .check(
1077
+ Schema.isLessThanOrEqualTo(1440).annotate({
1078
+ expected: "a value less than or equal to 1440",
1079
+ }),
1080
+ ),
1081
+ ),
1082
+ }).annotate({
1083
+ description:
1084
+ "Configuration for a canary deployment strategy that shifts a fixed percentage of traffic to the new service revision, waits for a specified bake time, then shifts the remaining traffic. \n The following validation applies only to Canary deployments created through CFN. CFN operations time out after 36 hours. Canary deployments can approach this limit because of their extended duration. This can cause CFN to roll back the deployment. To prevent timeout-related rollbacks, CFN rejects deployments when the calculated deployment time exceeds 33 hours based on your template configuration: \n ``BakeTimeInMinutes + CanaryBakeTimeInMinutes`` \n Additional backend processes (such as task scaling and running lifecycle hooks) can extend deployment time beyond these calculations. Even deployments under the 33-hour threshold might still time out if these processes cause the total duration to exceed 36 hours.",
1085
+ identifier: "CanaryConfiguration",
1086
+ });
1087
+
1088
+ interface HookTimeoutConfig {
1089
+ readonly Action?: "ROLLBACK" | "CONTINUE";
1090
+ readonly TimeoutInMinutes?: number;
1091
+ }
1092
+
1093
+ const HookTimeoutConfig = Schema.Struct({
1094
+ Action: Schema.optionalKey(
1095
+ Schema.Literals(["ROLLBACK", "CONTINUE"]).annotate({ description: "" }),
1096
+ ),
1097
+ TimeoutInMinutes: Schema.optionalKey(
1098
+ Schema.Number.annotate({ description: "" })
1099
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1100
+ .check(
1101
+ Schema.isGreaterThanOrEqualTo(1).annotate({
1102
+ expected: "a value greater than or equal to 1",
1103
+ }),
1104
+ )
1105
+ .check(
1106
+ Schema.isLessThanOrEqualTo(20160).annotate({
1107
+ expected: "a value less than or equal to 20160",
1108
+ }),
1109
+ ),
1110
+ ),
1111
+ }).annotate({ description: "", identifier: "HookTimeoutConfig" });
1112
+
1113
+ interface DeploymentLifecycleHook {
1114
+ readonly TimeoutConfiguration?: HookTimeoutConfig;
1115
+ readonly LifecycleStages: globalThis.ReadonlyArray<
1116
+ | "RECONCILE_SERVICE"
1117
+ | "PRE_SCALE_UP"
1118
+ | "POST_SCALE_UP"
1119
+ | "TEST_TRAFFIC_SHIFT"
1120
+ | "POST_TEST_TRAFFIC_SHIFT"
1121
+ | "PRE_PRODUCTION_TRAFFIC_SHIFT"
1122
+ | "PRODUCTION_TRAFFIC_SHIFT"
1123
+ | "POST_PRODUCTION_TRAFFIC_SHIFT"
1124
+ >;
1125
+ readonly TargetType?: "AWS_LAMBDA" | "PAUSE";
1126
+ readonly HookTargetArn?: string;
1127
+ readonly HookDetails?:
1128
+ | string
1129
+ | {
1130
+ readonly [x: string]: Schema.Json;
1131
+ };
1132
+ readonly RoleArn?: string;
1133
+ }
1134
+
1135
+ const DeploymentLifecycleHook = Schema.Struct({
1136
+ TimeoutConfiguration: Schema.optionalKey(HookTimeoutConfig),
1137
+ LifecycleStages: Schema.Array(
1138
+ Schema.Literals([
1139
+ "RECONCILE_SERVICE",
1140
+ "PRE_SCALE_UP",
1141
+ "POST_SCALE_UP",
1142
+ "TEST_TRAFFIC_SHIFT",
1143
+ "POST_TEST_TRAFFIC_SHIFT",
1144
+ "PRE_PRODUCTION_TRAFFIC_SHIFT",
1145
+ "PRODUCTION_TRAFFIC_SHIFT",
1146
+ "POST_PRODUCTION_TRAFFIC_SHIFT",
1147
+ ]),
1148
+ )
1149
+ .annotate({
1150
+ description:
1151
+ "The lifecycle stages at which to run the hook. Choose from these valid values:\n + RECONCILE_SERVICE\n The reconciliation stage that only happens when you start a new service deployment with more than 1 service revision in an ACTIVE state.\n You can use a lifecycle hook for this stage.\n + PRE_SCALE_UP\n The green service revision has not started. The blue service revision is handling 100% of the production traffic. There is no test traffic.\n You can use a lifecycle hook for this stage.\n + POST_SCALE_UP\n The green service revision has started. The blue service revision is handling 100% of the production traffic. There is no test traffic.\n You can use a lifecycle hook for this stage.\n + TEST_TRAFFIC_SHIFT\n The blue and green service revisions are running. The blue service revision handles 100% of the production traffic. The green service revision is migrating from 0% to 100% of test traffic.\n You can use a lifecycle hook for this stage.\n + POST_TEST_TRAFFIC_SHIFT\n The test traffic shift is complete. The green service revision handles 100% of the test traffic.\n You can use a lifecycle hook for this stage.\n + PRE_PRODUCTION_TRAFFIC_SHIFT\n Occurs before production traffic shift. For linear and canary deployments, this stage is invoked before every traffic shift step.\n You can use a lifecycle hook for this stage.\n + PRODUCTION_TRAFFIC_SHIFT\n Production traffic is shifting to the green service revision. The green service revision is migrating from 0% to 100% of production traffic. For linear and canary deployments, this stage is invoked at every traffic shift step.\n You can use a lifecycle hook for this stage.\n + POST_PRODUCTION_TRAFFIC_SHIFT\n The production traffic shift is complete.\n You can use a lifecycle hook for this stage.\n \n ``PAUSE`` hooks cannot be configured at ``TEST_TRAFFIC_SHIFT`` or ``PRODUCTION_TRAFFIC_SHIFT`` stages. These stages are only valid for ``AWS_LAMBDA`` hooks.\n You must provide this parameter when configuring a deployment lifecycle hook.",
1152
+ })
1153
+ .check(
1154
+ Schema.isMinLength(1).annotate({
1155
+ expected: "a value with a length of at least 1",
1156
+ }),
1157
+ ),
1158
+ TargetType: Schema.optionalKey(
1159
+ Schema.Literals(["AWS_LAMBDA", "PAUSE"]).annotate({
1160
+ description:
1161
+ "The type of action the lifecycle hook performs. Valid values are:\n + ``AWS_LAMBDA`` - Invokes a Lambda function at the specified lifecycle stage. This is the default value.\n + ``PAUSE`` - Pauses the deployment at the specified lifecycle stage until you call ``ContinueServiceDeployment`` to continue or roll back.\n \n This field is optional. If not specified, the default value is ``AWS_LAMBDA``.",
1162
+ }),
1163
+ ),
1164
+ HookTargetArn: Schema.optionalKey(
1165
+ Schema.String.annotate({
1166
+ description:
1167
+ "The Amazon Resource Name (ARN) of the hook target. For ``AWS_LAMBDA`` hooks, this is the Lambda function ARN. This field is not applicable for ``PAUSE`` hooks.\n You must provide this parameter when configuring an ``AWS_LAMBDA`` lifecycle hook.",
1168
+ }),
1169
+ ),
1170
+ HookDetails: Schema.optionalKey(
1171
+ Schema.Union([
1172
+ Schema.String,
1173
+ Schema.Record(
1174
+ Schema.String,
1175
+ Schema.Json.annotate({ expected: "JSON value" }),
1176
+ ),
1177
+ ]).annotate({
1178
+ description:
1179
+ "Use this field to specify custom parameters that ECS passes to your hook target invocations (such as a Lambda function).\n This field must be a JSON object as a string.",
1180
+ }),
1181
+ ),
1182
+ RoleArn: Schema.optionalKey(
1183
+ Schema.String.annotate({
1184
+ description:
1185
+ "The Amazon Resource Name (ARN) of the IAM role that grants Amazon ECS permission to call Lambda functions on your behalf.\n For more information, see [Permissions required for Lambda functions in Amazon ECS blue/green deployments](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/blue-green-permissions.html) in the *Amazon Elastic Container Service Developer Guide*.",
1186
+ }),
1187
+ ),
1188
+ }).annotate({
1189
+ description:
1190
+ "A deployment lifecycle hook runs custom logic or pauses the deployment at specific stages of the deployment process. You can use Lambda functions or pause hooks as hook targets.\n For more information, see [Lifecycle hooks for Amazon ECS service deployments](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-lifecycle-hooks.html) in the *Amazon Elastic Container Service Developer Guide*.",
1191
+ identifier: "DeploymentLifecycleHook",
1192
+ });
1193
+
1194
+ type ResourceInputItems_6 = globalThis.ReadonlyArray<DeploymentLifecycleHook>;
1195
+
1196
+ const ResourceInputItems_6 = Schema.Array(DeploymentLifecycleHook).annotate({
1197
+ description:
1198
+ "An array of deployment lifecycle hook objects to run custom logic or pause the deployment at specific stages of the deployment lifecycle.",
1199
+ });
1200
+
1201
+ interface DeploymentAlarms {
1202
+ readonly AlarmNames: globalThis.ReadonlyArray<
1203
+ | ResourceEntity<{
1204
+ readonly provider: "aws";
1205
+ readonly service: "cloudwatch";
1206
+ readonly resource: "alarm";
1207
+ }>
1208
+ | string
1209
+ >;
1210
+ readonly Enable: boolean;
1211
+ readonly Rollback: boolean;
1212
+ }
1213
+
1214
+ const DeploymentAlarms = Schema.Struct({
1215
+ AlarmNames: Schema.Array(
1216
+ Schema.Union([
1217
+ Schema.Union([
1218
+ ResourceReferenceSchema(
1219
+ Schema.Struct({
1220
+ provider: Schema.Literal("aws"),
1221
+ service: Schema.Literal("cloudwatch"),
1222
+ resource: Schema.Literal("alarm"),
1223
+ }),
1224
+ {
1225
+ value: null,
1226
+ outputs: [
1227
+ {
1228
+ source: ["AlarmName"],
1229
+ target: [],
1230
+ },
1231
+ ],
1232
+ },
1233
+ ).annotate({ expected: "ResourceEntity" }),
1234
+ ]),
1235
+ Schema.String,
1236
+ ]),
1237
+ ).annotate({
1238
+ description:
1239
+ 'One or more CloudWatch alarm names. Use a "," to separate the alarms.',
1240
+ }),
1241
+ Enable: Schema.Boolean.annotate({
1242
+ description:
1243
+ "Determines whether to use the CloudWatch alarm option in the service deployment process.",
1244
+ }),
1245
+ Rollback: Schema.Boolean.annotate({
1246
+ description:
1247
+ "Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.",
1248
+ }),
1249
+ }).annotate({
1250
+ description:
1251
+ "One of the methods which provide a way for you to quickly identify when a deployment has failed, and then to optionally roll back the failure to the last working deployment.\n When the alarms are generated, Amazon ECS sets the service deployment to failed. Set the rollback parameter to have Amazon ECS to roll back your service to the last completed deployment after a failure.\n You can only use the ``DeploymentAlarms`` method to detect failures when the ``DeploymentController`` is set to ``ECS``.\n For more information, see [Rolling update](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html) in the *Amazon Elastic Container Service Developer Guide*.",
1252
+ identifier: "DeploymentAlarms",
1253
+ });
1254
+
1255
+ type ResourceInputAlternatives_5 =
1256
+ | "ROLLING"
1257
+ | "BLUE_GREEN"
1258
+ | "LINEAR"
1259
+ | "CANARY";
1260
+
1261
+ const ResourceInputAlternatives_5 = Schema.Literals([
1262
+ "ROLLING",
1263
+ "BLUE_GREEN",
1264
+ "LINEAR",
1265
+ "CANARY",
1266
+ ]).annotate({
1267
+ description:
1268
+ "The deployment strategy for the service. Choose from these valid values:\n + ``ROLLING`` - When you create a service which uses the rolling update (``ROLLING``) deployment strategy, the Amazon ECS service scheduler replaces the currently running tasks with new tasks. The number of tasks that Amazon ECS adds or removes from the service during a rolling update is controlled by the service deployment configuration.\n + ``BLUE_GREEN`` - A blue/green deployment strategy (``BLUE_GREEN``) is a release methodology that reduces downtime and risk by running two identical production environments called blue and green. With Amazon ECS blue/green deployments, you can validate new service revisions before directing production traffic to them. This approach provides a safer way to deploy changes with the ability to quickly roll back if needed.\n + ``LINEAR`` - A *linear* deployment strategy (``LINEAR``) gradually shifts traffic from the current production environment to a new environment in equal percentages over time. With Amazon ECS linear deployments, you can control the pace of traffic shifting and validate new service revisions with increasing amounts of production traffic.\n + ``CANARY`` - A *canary* deployment strategy (``CANARY``) shifts a small percentage of traffic to the new service revision first, then shifts the remaining traffic all at once after a specified time period. This allows you to test the new version with a subset of users before full deployment.",
1269
+ });
1270
+
1271
+ interface ThresholdConfiguration {
1272
+ readonly Type: "COUNT" | "BOUNDED_PERCENT" | "UNBOUNDED_PERCENT";
1273
+ readonly Value: number;
1274
+ }
1275
+
1276
+ const ThresholdConfiguration = Schema.Struct({
1277
+ Type: Schema.Literals(["COUNT", "BOUNDED_PERCENT", "UNBOUNDED_PERCENT"]),
1278
+ Value: Schema.Int,
1279
+ }).annotate({ description: "", identifier: "ThresholdConfiguration" });
1280
+
1281
+ interface DeploymentCircuitBreaker {
1282
+ readonly ThresholdConfiguration?: ThresholdConfiguration;
1283
+ readonly Enable: boolean;
1284
+ readonly ResetOnHealthyTask?: boolean;
1285
+ readonly Rollback: boolean;
1286
+ }
1287
+
1288
+ const DeploymentCircuitBreaker = Schema.Struct({
1289
+ ThresholdConfiguration: Schema.optionalKey(ThresholdConfiguration),
1290
+ Enable: Schema.Boolean.annotate({
1291
+ description:
1292
+ "Determines whether to use the deployment circuit breaker logic for the service.",
1293
+ }),
1294
+ ResetOnHealthyTask: Schema.optionalKey(
1295
+ Schema.Boolean.annotate({ description: "" }),
1296
+ ),
1297
+ Rollback: Schema.Boolean.annotate({
1298
+ description:
1299
+ "Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.",
1300
+ }),
1301
+ }).annotate({
1302
+ description:
1303
+ "The deployment circuit breaker can only be used for services using the rolling update (``ECS``) deployment type.\n The *deployment circuit breaker* determines whether a service deployment will fail if the service can't reach a steady state. If it is turned on, a service deployment will transition to a failed state and stop launching new tasks. You can also configure Amazon ECS to roll back your service to the last completed deployment after a failure. For more information, see [Rolling update](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html) in the *Amazon Elastic Container Service Developer Guide*.\n For more information about API failure reasons, see [API failure reasons](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html) in the *Amazon Elastic Container Service Developer Guide*.",
1304
+ identifier: "DeploymentCircuitBreaker",
1305
+ });
1306
+
1307
+ interface LinearConfiguration {
1308
+ readonly StepBakeTimeInMinutes?: number;
1309
+ readonly StepPercent?: number;
1310
+ }
1311
+
1312
+ const LinearConfiguration = Schema.Struct({
1313
+ StepBakeTimeInMinutes: Schema.optionalKey(
1314
+ Schema.Number.annotate({
1315
+ description:
1316
+ "The amount of time in minutes to wait between each traffic shifting step during a linear deployment. Valid values are 0 to 1440 minutes (24 hours). The default value is 6. This bake time is not applied after reaching 100 percent traffic.",
1317
+ })
1318
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1319
+ .check(
1320
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1321
+ expected: "a value greater than or equal to 0",
1322
+ }),
1323
+ )
1324
+ .check(
1325
+ Schema.isLessThanOrEqualTo(1440).annotate({
1326
+ expected: "a value less than or equal to 1440",
1327
+ }),
1328
+ ),
1329
+ ),
1330
+ StepPercent: Schema.optionalKey(
1331
+ Schema.Number.annotate({
1332
+ description:
1333
+ "The percentage of production traffic to shift in each step during a linear deployment. Valid values are multiples of 0.1 from 3.0 to 100.0. The default value is 10.0.",
1334
+ })
1335
+ .check(Schema.isFinite().annotate({ expected: "a finite number" }))
1336
+ .check(
1337
+ Schema.isGreaterThanOrEqualTo(3).annotate({
1338
+ expected: "a value greater than or equal to 3",
1339
+ }),
1340
+ )
1341
+ .check(
1342
+ Schema.isLessThanOrEqualTo(100).annotate({
1343
+ expected: "a value less than or equal to 100",
1344
+ }),
1345
+ )
1346
+ .check(
1347
+ Schema.isMultipleOf(0.1).annotate({
1348
+ expected: "a value that is a multiple of 0.1",
1349
+ }),
1350
+ ),
1351
+ ),
1352
+ }).annotate({
1353
+ description:
1354
+ "Configuration for a linear deployment strategy that shifts production traffic in equal percentage increments with configurable wait times between each step until 100 percent of traffic is shifted to the new service revision. \n The following validation applies only to Linear deployments created through CFN. CFN operations time out after 36 hours. Linear deployments can approach this limit because of their extended duration. This can cause CFN to roll back the deployment. To prevent timeout-related rollbacks, CFN rejects deployments when the calculated deployment time exceeds 33 hours based on your template configuration: \n ``BakeTimeInMinutes + (StepBakeTimeInMinutes × Number of deployment steps)`` \n Where the number of deployment steps is calculated as follows:\n + *If StepPercent evenly divides by 100*: The number of deployment steps equals ``(100 ÷ StepPercent) - 1``\n + *Otherwise*: The number of deployment steps equals the floor of ``100 ÷ StepPercent``. For example, if ``StepPercent`` is 11, the number of deployment steps is 9 (not 9.1).\n \n This calculation reflects that CFN doesn't apply the step bake time after the final traffic shift reaches 100%. For example, with a ``StepPercent`` of 50%, there are actually two traffic shifts, but only one deployment step is counted for validation purposes because the bake time is applied only after the first 50% shift, not after reaching 100%.\n Additional backend processes (such as task scaling and running lifecycle hooks) can extend deployment time beyond these calculations. Even deployments under the 33-hour threshold might still time out if these processes cause the total duration to exceed 36 hours.",
1355
+ identifier: "LinearConfiguration",
1356
+ });
1357
+
1358
+ interface DeploymentConfiguration {
1359
+ readonly CanaryConfiguration?: CanaryConfiguration;
1360
+ readonly BakeTimeInMinutes?: number;
1361
+ readonly LifecycleHooks?: ResourceInputItems_6;
1362
+ readonly Alarms?: DeploymentAlarms;
1363
+ readonly Strategy?: ResourceInputAlternatives_5;
1364
+ readonly DeploymentCircuitBreaker?: DeploymentCircuitBreaker;
1365
+ readonly MaximumPercent?: number;
1366
+ readonly MinimumHealthyPercent?: number;
1367
+ readonly LinearConfiguration?: LinearConfiguration;
1368
+ }
1369
+
1370
+ const DeploymentConfiguration = Schema.Struct({
1371
+ CanaryConfiguration: Schema.optionalKey(CanaryConfiguration),
1372
+ BakeTimeInMinutes: Schema.optionalKey(
1373
+ Schema.Number.annotate({
1374
+ description:
1375
+ "The duration waiting before terminating the previous service revision and marking a deployment complete.\n The following rules apply when you don't specify a value:\n + For blue/green, linear, and canary deployments, the value is set to 15 minutes.\n + For rolling deployments, there is no bake time set by default.\n + The external deployment controller (``EXTERNAL``) and the ACD blue/green deployment controller (``CODE_DEPLOY``) do not support the ``BakeTimeInMinutes`` parameter.\n \n If you provide a bake time for a rolling deployment, the CloudFormation handler timeout is increased to the maximum of 36 hours, matching the timeout for blue/green, linear, and canary deployments.",
1376
+ })
1377
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1378
+ .check(
1379
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1380
+ expected: "a value greater than or equal to 0",
1381
+ }),
1382
+ )
1383
+ .check(
1384
+ Schema.isLessThanOrEqualTo(1440).annotate({
1385
+ expected: "a value less than or equal to 1440",
1386
+ }),
1387
+ ),
1388
+ ),
1389
+ LifecycleHooks: Schema.optionalKey(ResourceInputItems_6),
1390
+ Alarms: Schema.optionalKey(DeploymentAlarms),
1391
+ Strategy: Schema.optionalKey(ResourceInputAlternatives_5),
1392
+ DeploymentCircuitBreaker: Schema.optionalKey(DeploymentCircuitBreaker),
1393
+ MaximumPercent: Schema.optionalKey(
1394
+ Schema.Number.annotate({
1395
+ description:
1396
+ "If a service is using the rolling update (``ECS``) deployment type, the ``maximumPercent`` parameter represents an upper limit on the number of your service's tasks that are allowed in the ``RUNNING`` or ``PENDING`` state during a deployment, as a percentage of the ``desiredCount`` (rounded down to the nearest integer). This parameter enables you to define the deployment batch size. For example, if your service is using the ``REPLICA`` service scheduler and has a ``desiredCount`` of four tasks and a ``maximumPercent`` value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default ``maximumPercent`` value for a service using the ``REPLICA`` service scheduler is 200%.\n The Amazon ECS scheduler uses this parameter to replace unhealthy tasks by starting replacement tasks first and then stopping the unhealthy tasks, as long as cluster resources for starting replacement tasks are available. For more information about how the scheduler replaces unhealthy tasks, see [Amazon ECS services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html).\n If a service is using either the blue/green (``CODE_DEPLOY``) or ``EXTERNAL`` deployment types, and tasks in the service use the EC2 launch type, the *maximum percent* value is set to the default value. The *maximum percent* value is used to define the upper limit on the number of the tasks in the service that remain in the ``RUNNING`` state while the container instances are in the ``DRAINING`` state.\n You can't specify a custom ``maximumPercent`` value for a service that uses either the blue/green (``CODE_DEPLOY``) or ``EXTERNAL`` deployment types and has tasks that use the EC2 launch type.\n If the service uses either the blue/green (``CODE_DEPLOY``) or ``EXTERNAL`` deployment types, and the tasks in the service use the Fargate launch type, the maximum percent value is not used. The value is still returned when describing your service.",
1397
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1398
+ ),
1399
+ MinimumHealthyPercent: Schema.optionalKey(
1400
+ Schema.Number.annotate({
1401
+ description:
1402
+ "If a service is using the rolling update (``ECS``) deployment type, the ``minimumHealthyPercent`` represents a lower limit on the number of your service's tasks that must remain in the ``RUNNING`` state during a deployment, as a percentage of the ``desiredCount`` (rounded up to the nearest integer). This parameter enables you to deploy without using additional cluster capacity. For example, if your service has a ``desiredCount`` of four tasks and a ``minimumHealthyPercent`` of 50%, the service scheduler may stop two existing tasks to free up cluster capacity before starting two new tasks. \n If any tasks are unhealthy and if ``maximumPercent`` doesn't allow the Amazon ECS scheduler to start replacement tasks, the scheduler stops the unhealthy tasks one-by-one — using the ``minimumHealthyPercent`` as a constraint — to clear up capacity to launch replacement tasks. For more information about how the scheduler replaces unhealthy tasks, see [Amazon ECS services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html). \n For services that *do not* use a load balancer, the following should be noted:\n + A service is considered healthy if all essential containers within the tasks in the service pass their health checks.\n + If a task has no essential containers with a health check defined, the service scheduler will wait for 40 seconds after a task reaches a ``RUNNING`` state before the task is counted towards the minimum healthy percent total.\n + If a task has one or more essential containers with a health check defined, the service scheduler will wait for the task to reach a healthy status before counting it towards the minimum healthy percent total. A task is considered healthy when all essential containers within the task have passed their health checks. The amount of time the service scheduler can wait for is determined by the container health check settings. \n \n For services that *do* use a load balancer, the following should be noted:\n + If a task has no essential containers with a health check defined, the service scheduler will wait for the load balancer target group health check to return a healthy status before counting the task towards the minimum healthy percent total.\n + If a task has an essential container with a health check defined, the service scheduler will wait for both the task to reach a healthy status and the load balancer target group health check to return a healthy status before counting the task towards the minimum healthy percent total.\n \n The default value for a replica service for ``minimumHealthyPercent`` is 100%. The default ``minimumHealthyPercent`` value for a service using the ``DAEMON`` service schedule is 0% for the CLI, the AWS SDKs, and the APIs and 50% for the AWS Management Console.\n The minimum number of healthy tasks during a deployment is the ``desiredCount`` multiplied by the ``minimumHealthyPercent``/100, rounded up to the nearest integer value.\n If a service is using either the blue/green (``CODE_DEPLOY``) or ``EXTERNAL`` deployment types and is running tasks that use the EC2 launch type, the *minimum healthy percent* value is set to the default value. The *minimum healthy percent* value is used to define the lower limit on the number of the tasks in the service that remain in the ``RUNNING`` state while the container instances are in the ``DRAINING`` state.\n You can't specify a custom ``minimumHealthyPercent`` value for a service that uses either the blue/green (``CODE_DEPLOY``) or ``EXTERNAL`` deployment types and has tasks that use the EC2 launch type.\n If a service is using either the blue/green (``CODE_DEPLOY``) or ``EXTERNAL`` deployment types and is running tasks that use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.",
1403
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1404
+ ),
1405
+ LinearConfiguration: Schema.optionalKey(LinearConfiguration),
1406
+ }).annotate({
1407
+ description:
1408
+ "Optional deployment parameters that control how many tasks run during a deployment and the ordering of stopping and starting tasks.",
1409
+ identifier: "DeploymentConfiguration",
1410
+ });
1411
+
1412
+ interface CapacityProviderStrategyItem_1 {
1413
+ readonly CapacityProvider?: string;
1414
+ readonly Base?: number;
1415
+ readonly Weight?: number;
1416
+ }
1417
+
1418
+ const CapacityProviderStrategyItem_1 = Schema.Struct({
1419
+ CapacityProvider: Schema.optionalKey(
1420
+ Schema.String.annotate({
1421
+ description:
1422
+ "The short name of the capacity provider. This can be either an AWS managed capacity provider (``FARGATE`` or ``FARGATE_SPOT``) or the name of a custom capacity provider that you created.",
1423
+ }),
1424
+ ),
1425
+ Base: Schema.optionalKey(
1426
+ Schema.Number.annotate({
1427
+ description:
1428
+ "The *base* value designates how many tasks, at a minimum, to run on the specified capacity provider for each service. Only one capacity provider in a capacity provider strategy can have a *base* defined. If no value is specified, the default value of ``0`` is used.\n Base value characteristics:\n + Only one capacity provider in a strategy can have a base defined\n + The default value is ``0`` if not specified\n + The valid range is 0 to 100,000\n + Base requirements are satisfied first before weight distribution",
1429
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1430
+ ),
1431
+ Weight: Schema.optionalKey(
1432
+ Schema.Number.annotate({
1433
+ description:
1434
+ "The *weight* value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The ``weight`` value is taken into consideration after the ``base`` value, if defined, is satisfied.\n If no ``weight`` value is specified, the default value of ``0`` is used. When multiple capacity providers are specified within a capacity provider strategy, at least one of the capacity providers must have a weight value greater than zero and any capacity providers with a weight of ``0`` can't be used to place tasks. If you specify multiple capacity providers in a strategy that all have a weight of ``0``, any ``RunTask`` or ``CreateService`` actions using the capacity provider strategy will fail.\n Weight value characteristics:\n + Weight is considered after the base value is satisfied\n + The default value is ``0`` if not specified\n + The valid range is 0 to 1,000\n + At least one capacity provider must have a weight greater than zero\n + Capacity providers with weight of ``0`` cannot place tasks\n \n Task distribution logic:\n 1. Base satisfaction: The minimum number of tasks specified by the base value are placed on that capacity provider\n 1. Weight distribution: After base requirements are met, additional tasks are distributed according to weight ratios\n \n Examples:\n Equal Distribution: Two capacity providers both with weight ``1`` will split tasks evenly after base requirements are met.\n Weighted Distribution: If capacityProviderA has weight ``1`` and capacityProviderB has weight ``4``, then for every 1 task on A, 4 tasks will run on B.",
1435
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1436
+ ),
1437
+ }).annotate({
1438
+ description:
1439
+ "The details of a capacity provider strategy. A capacity provider strategy can be set when using the ``RunTask`` or ``CreateService`` APIs or as the default capacity provider strategy for a cluster with the ``CreateCluster`` API.\n Only capacity providers that are already associated with a cluster and have an ``ACTIVE`` or ``UPDATING`` status can be used in a capacity provider strategy. The ``PutClusterCapacityProviders`` API is used to associate a capacity provider with a cluster.\n If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created. New Auto Scaling group capacity providers can be created with the ``CreateCapacityProvider`` API operation.\n To use an FARGATElong capacity provider, specify either the ``FARGATE`` or ``FARGATE_SPOT`` capacity providers. The FARGATElong capacity providers are available to all accounts and only need to be associated with a cluster to be used in a capacity provider strategy.",
1440
+ identifier: "CapacityProviderStrategyItem_1",
1441
+ });
1442
+
1443
+ interface AwsVpcConfiguration_1 {
1444
+ readonly SecurityGroups?: globalThis.ReadonlyArray<string>;
1445
+ readonly Subnets?: globalThis.ReadonlyArray<string>;
1446
+ readonly AssignPublicIp?: ResourceInputAlternatives_4;
1447
+ }
1448
+
1449
+ const AwsVpcConfiguration_1 = Schema.Struct({
1450
+ SecurityGroups: Schema.optionalKey(
1451
+ Schema.Array(Schema.String).annotate({
1452
+ description:
1453
+ "The IDs of the security groups associated with the task or service. If you don't specify a security group, the default security group for the VPC is used. There's a limit of 5 security groups that can be specified.\n All specified security groups must be from the same VPC.",
1454
+ }),
1455
+ ),
1456
+ Subnets: Schema.optionalKey(
1457
+ Schema.Array(Schema.String).annotate({
1458
+ description:
1459
+ "The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified.\n All specified subnets must be from the same VPC.",
1460
+ }),
1461
+ ),
1462
+ AssignPublicIp: Schema.optionalKey(ResourceInputAlternatives_4),
1463
+ }).annotate({
1464
+ description:
1465
+ 'An object representing the networking details for a task or service. For example ``awsVpcConfiguration={subnets=["subnet-12344321"],securityGroups=["sg-12344321"]}``.',
1466
+ identifier: "AwsVpcConfiguration_1",
1467
+ });
1468
+
1469
+ interface NetworkConfiguration_1 {
1470
+ readonly AwsvpcConfiguration?: AwsVpcConfiguration_1;
1471
+ }
1472
+
1473
+ const NetworkConfiguration_1 = Schema.Struct({
1474
+ AwsvpcConfiguration: Schema.optionalKey(AwsVpcConfiguration_1),
1475
+ }).annotate({
1476
+ description: "The network configuration for a task or service.",
1477
+ identifier: "NetworkConfiguration_1",
1478
+ });
1479
+
1480
+ interface LoadBalancer_1 {
1481
+ readonly TargetGroupArn?: string;
1482
+ readonly LoadBalancerName?: string;
1483
+ readonly ContainerName?: string;
1484
+ readonly ContainerPort?: number;
1485
+ readonly AdvancedConfiguration?: AdvancedConfiguration;
1486
+ }
1487
+
1488
+ const LoadBalancer_1 = Schema.Struct({
1489
+ TargetGroupArn: Schema.optionalKey(
1490
+ Schema.String.annotate({
1491
+ description:
1492
+ "The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group or groups associated with a service or task set.\n A target group ARN is only specified when using an Application Load Balancer or Network Load Balancer. \n For services using the ``ECS`` deployment controller, you can specify one or multiple target groups. For more information, see [Registering multiple target groups with a service](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html) in the *Amazon Elastic Container Service Developer Guide*.\n For services using the ``CODE_DEPLOY`` deployment controller, you're required to define two target groups for the load balancer. For more information, see [Blue/green deployment with CodeDeploy](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-bluegreen.html) in the *Amazon Elastic Container Service Developer Guide*.\n If your service's task definition uses the ``awsvpc`` network mode, you must choose ``ip`` as the target type, not ``instance``. Do this when creating your target groups because tasks that use the ``awsvpc`` network mode are associated with an elastic network interface, not an Amazon EC2 instance. This network mode is required for the Fargate launch type.",
1493
+ }),
1494
+ ),
1495
+ LoadBalancerName: Schema.optionalKey(
1496
+ Schema.String.annotate({
1497
+ description:
1498
+ "The name of the load balancer to associate with the Amazon ECS service or task set.\n If you are using an Application Load Balancer or a Network Load Balancer the load balancer name parameter should be omitted.",
1499
+ }),
1500
+ ),
1501
+ ContainerName: Schema.optionalKey(
1502
+ Schema.String.annotate({
1503
+ description:
1504
+ "The name of the container (as it appears in a container definition) to associate with the load balancer.\n You need to specify the container name when configuring the target group for an Amazon ECS load balancer.",
1505
+ }),
1506
+ ),
1507
+ ContainerPort: Schema.optionalKey(
1508
+ Schema.Number.annotate({
1509
+ description:
1510
+ "The port on the container to associate with the load balancer. This port must correspond to a ``containerPort`` in the task definition the tasks in the service are using. For tasks that use the EC2 launch type, the container instance they're launched on must allow ingress traffic on the ``hostPort`` of the port mapping.",
1511
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1512
+ ),
1513
+ AdvancedConfiguration: Schema.optionalKey(AdvancedConfiguration),
1514
+ }).annotate({
1515
+ description:
1516
+ "The ``LoadBalancer`` property specifies details on a load balancer that is used with a service.\n If the service is using the ``CODE_DEPLOY`` deployment controller, the service is required to use either an Application Load Balancer or Network Load Balancer. When you are creating an ACDlong deployment group, you specify two target groups (referred to as a ``targetGroupPair``). Each target group binds to a separate task set in the deployment. The load balancer can also have up to two listeners, a required listener for production traffic and an optional listener that allows you to test new revisions of the service before routing production traffic to it.\n Services with tasks that use the ``awsvpc`` network mode (for example, those with the Fargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers are not supported. Also, when you create any target groups for these services, you must choose ``ip`` as the target type, not ``instance``. Tasks that use the ``awsvpc`` network mode are associated with an elastic network interface, not an Amazon EC2 instance.",
1517
+ identifier: "LoadBalancer_1",
1518
+ });
1519
+
1520
+ interface DeploymentAlarms_1 {
1521
+ readonly AlarmNames: globalThis.ReadonlyArray<string>;
1522
+ readonly Enable: boolean;
1523
+ readonly Rollback: boolean;
1524
+ }
1525
+
1526
+ const DeploymentAlarms_1 = Schema.Struct({
1527
+ AlarmNames: Schema.Array(Schema.String).annotate({
1528
+ description:
1529
+ 'One or more CloudWatch alarm names. Use a "," to separate the alarms.',
1530
+ }),
1531
+ Enable: Schema.Boolean.annotate({
1532
+ description:
1533
+ "Determines whether to use the CloudWatch alarm option in the service deployment process.",
1534
+ }),
1535
+ Rollback: Schema.Boolean.annotate({
1536
+ description:
1537
+ "Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.",
1538
+ }),
1539
+ }).annotate({
1540
+ description:
1541
+ "One of the methods which provide a way for you to quickly identify when a deployment has failed, and then to optionally roll back the failure to the last working deployment.\n When the alarms are generated, Amazon ECS sets the service deployment to failed. Set the rollback parameter to have Amazon ECS to roll back your service to the last completed deployment after a failure.\n You can only use the ``DeploymentAlarms`` method to detect failures when the ``DeploymentController`` is set to ``ECS``.\n For more information, see [Rolling update](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html) in the *Amazon Elastic Container Service Developer Guide*.",
1542
+ identifier: "DeploymentAlarms_1",
1543
+ });
1544
+
1545
+ interface DeploymentConfiguration_1 {
1546
+ readonly CanaryConfiguration?: CanaryConfiguration;
1547
+ readonly BakeTimeInMinutes?: number;
1548
+ readonly LifecycleHooks?: ResourceInputItems_6;
1549
+ readonly Alarms?: DeploymentAlarms_1;
1550
+ readonly Strategy?: ResourceInputAlternatives_5;
1551
+ readonly DeploymentCircuitBreaker?: DeploymentCircuitBreaker;
1552
+ readonly MaximumPercent?: number;
1553
+ readonly MinimumHealthyPercent?: number;
1554
+ readonly LinearConfiguration?: LinearConfiguration;
1555
+ }
1556
+
1557
+ const DeploymentConfiguration_1 = Schema.Struct({
1558
+ CanaryConfiguration: Schema.optionalKey(CanaryConfiguration),
1559
+ BakeTimeInMinutes: Schema.optionalKey(
1560
+ Schema.Number.annotate({
1561
+ description:
1562
+ "The duration waiting before terminating the previous service revision and marking a deployment complete.\n The following rules apply when you don't specify a value:\n + For blue/green, linear, and canary deployments, the value is set to 15 minutes.\n + For rolling deployments, there is no bake time set by default.\n + The external deployment controller (``EXTERNAL``) and the ACD blue/green deployment controller (``CODE_DEPLOY``) do not support the ``BakeTimeInMinutes`` parameter.\n \n If you provide a bake time for a rolling deployment, the CloudFormation handler timeout is increased to the maximum of 36 hours, matching the timeout for blue/green, linear, and canary deployments.",
1563
+ })
1564
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1565
+ .check(
1566
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1567
+ expected: "a value greater than or equal to 0",
1568
+ }),
1569
+ )
1570
+ .check(
1571
+ Schema.isLessThanOrEqualTo(1440).annotate({
1572
+ expected: "a value less than or equal to 1440",
1573
+ }),
1574
+ ),
1575
+ ),
1576
+ LifecycleHooks: Schema.optionalKey(ResourceInputItems_6),
1577
+ Alarms: Schema.optionalKey(DeploymentAlarms_1),
1578
+ Strategy: Schema.optionalKey(ResourceInputAlternatives_5),
1579
+ DeploymentCircuitBreaker: Schema.optionalKey(DeploymentCircuitBreaker),
1580
+ MaximumPercent: Schema.optionalKey(
1581
+ Schema.Number.annotate({
1582
+ description:
1583
+ "If a service is using the rolling update (``ECS``) deployment type, the ``maximumPercent`` parameter represents an upper limit on the number of your service's tasks that are allowed in the ``RUNNING`` or ``PENDING`` state during a deployment, as a percentage of the ``desiredCount`` (rounded down to the nearest integer). This parameter enables you to define the deployment batch size. For example, if your service is using the ``REPLICA`` service scheduler and has a ``desiredCount`` of four tasks and a ``maximumPercent`` value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default ``maximumPercent`` value for a service using the ``REPLICA`` service scheduler is 200%.\n The Amazon ECS scheduler uses this parameter to replace unhealthy tasks by starting replacement tasks first and then stopping the unhealthy tasks, as long as cluster resources for starting replacement tasks are available. For more information about how the scheduler replaces unhealthy tasks, see [Amazon ECS services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html).\n If a service is using either the blue/green (``CODE_DEPLOY``) or ``EXTERNAL`` deployment types, and tasks in the service use the EC2 launch type, the *maximum percent* value is set to the default value. The *maximum percent* value is used to define the upper limit on the number of the tasks in the service that remain in the ``RUNNING`` state while the container instances are in the ``DRAINING`` state.\n You can't specify a custom ``maximumPercent`` value for a service that uses either the blue/green (``CODE_DEPLOY``) or ``EXTERNAL`` deployment types and has tasks that use the EC2 launch type.\n If the service uses either the blue/green (``CODE_DEPLOY``) or ``EXTERNAL`` deployment types, and the tasks in the service use the Fargate launch type, the maximum percent value is not used. The value is still returned when describing your service.",
1584
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1585
+ ),
1586
+ MinimumHealthyPercent: Schema.optionalKey(
1587
+ Schema.Number.annotate({
1588
+ description:
1589
+ "If a service is using the rolling update (``ECS``) deployment type, the ``minimumHealthyPercent`` represents a lower limit on the number of your service's tasks that must remain in the ``RUNNING`` state during a deployment, as a percentage of the ``desiredCount`` (rounded up to the nearest integer). This parameter enables you to deploy without using additional cluster capacity. For example, if your service has a ``desiredCount`` of four tasks and a ``minimumHealthyPercent`` of 50%, the service scheduler may stop two existing tasks to free up cluster capacity before starting two new tasks. \n If any tasks are unhealthy and if ``maximumPercent`` doesn't allow the Amazon ECS scheduler to start replacement tasks, the scheduler stops the unhealthy tasks one-by-one — using the ``minimumHealthyPercent`` as a constraint — to clear up capacity to launch replacement tasks. For more information about how the scheduler replaces unhealthy tasks, see [Amazon ECS services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html). \n For services that *do not* use a load balancer, the following should be noted:\n + A service is considered healthy if all essential containers within the tasks in the service pass their health checks.\n + If a task has no essential containers with a health check defined, the service scheduler will wait for 40 seconds after a task reaches a ``RUNNING`` state before the task is counted towards the minimum healthy percent total.\n + If a task has one or more essential containers with a health check defined, the service scheduler will wait for the task to reach a healthy status before counting it towards the minimum healthy percent total. A task is considered healthy when all essential containers within the task have passed their health checks. The amount of time the service scheduler can wait for is determined by the container health check settings. \n \n For services that *do* use a load balancer, the following should be noted:\n + If a task has no essential containers with a health check defined, the service scheduler will wait for the load balancer target group health check to return a healthy status before counting the task towards the minimum healthy percent total.\n + If a task has an essential container with a health check defined, the service scheduler will wait for both the task to reach a healthy status and the load balancer target group health check to return a healthy status before counting the task towards the minimum healthy percent total.\n \n The default value for a replica service for ``minimumHealthyPercent`` is 100%. The default ``minimumHealthyPercent`` value for a service using the ``DAEMON`` service schedule is 0% for the CLI, the AWS SDKs, and the APIs and 50% for the AWS Management Console.\n The minimum number of healthy tasks during a deployment is the ``desiredCount`` multiplied by the ``minimumHealthyPercent``/100, rounded up to the nearest integer value.\n If a service is using either the blue/green (``CODE_DEPLOY``) or ``EXTERNAL`` deployment types and is running tasks that use the EC2 launch type, the *minimum healthy percent* value is set to the default value. The *minimum healthy percent* value is used to define the lower limit on the number of the tasks in the service that remain in the ``RUNNING`` state while the container instances are in the ``DRAINING`` state.\n You can't specify a custom ``minimumHealthyPercent`` value for a service that uses either the blue/green (``CODE_DEPLOY``) or ``EXTERNAL`` deployment types and has tasks that use the EC2 launch type.\n If a service is using either the blue/green (``CODE_DEPLOY``) or ``EXTERNAL`` deployment types and is running tasks that use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.",
1590
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1591
+ ),
1592
+ LinearConfiguration: Schema.optionalKey(LinearConfiguration),
1593
+ }).annotate({
1594
+ description:
1595
+ "Optional deployment parameters that control how many tasks run during a deployment and the ordering of stopping and starting tasks.",
1596
+ identifier: "DeploymentConfiguration_1",
1597
+ });
1598
+
1599
+ export interface AWSServiceProps {
1600
+ readonly PlatformVersion?: string;
1601
+ readonly PropagateTags?: ResourceInputAlternatives;
1602
+ readonly PlacementStrategies?: ResourceInputItems;
1603
+ readonly ServiceRegistries?: ResourceInputItems_1;
1604
+ readonly VolumeConfigurations?: ResourceInputItems_2;
1605
+ readonly CapacityProviderStrategy?: globalThis.ReadonlyArray<CapacityProviderStrategyItem>;
1606
+ readonly LaunchType?: ResourceInputAlternatives_1;
1607
+ readonly AvailabilityZoneRebalancing?: ResourceInputAlternatives_2;
1608
+ readonly SchedulingStrategy?: ResourceInputAlternatives_3;
1609
+ readonly NetworkConfiguration?: NetworkConfiguration;
1610
+ readonly Tags?: ResourceInputItems_3;
1611
+ readonly Monitoring?: MonitoringConfiguration;
1612
+ readonly ForceNewDeployment?: ForceNewDeployment;
1613
+ readonly HealthCheckGracePeriodSeconds?: number;
1614
+ readonly EnableECSManagedTags?: boolean;
1615
+ readonly EnableExecuteCommand?: boolean;
1616
+ readonly PlacementConstraints?: ResourceInputItems_4;
1617
+ readonly Cluster?:
1618
+ | ResourceEntity<{
1619
+ readonly provider: "aws";
1620
+ readonly service: "ecs";
1621
+ readonly resource: "cluster";
1622
+ }>
1623
+ | string;
1624
+ readonly LoadBalancers?: globalThis.ReadonlyArray<LoadBalancer>;
1625
+ readonly ServiceConnectConfiguration?: ServiceConnectConfiguration;
1626
+ readonly DesiredCount?: number;
1627
+ readonly VpcLatticeConfigurations?: ResourceInputItems_5;
1628
+ readonly DeploymentController?: DeploymentController;
1629
+ readonly Role?: string;
1630
+ readonly TaskDefinition?:
1631
+ | ResourceEntity<{
1632
+ readonly provider: "aws";
1633
+ readonly service: "ecs";
1634
+ readonly resource: "taskdefinition";
1635
+ }>
1636
+ | string;
1637
+ readonly ServiceName?: string;
1638
+ readonly DeploymentConfiguration?: DeploymentConfiguration;
1639
+ }
1640
+
1641
+ export const AWSServiceResourceSchema = ResourceSchemaAnnotationSchema.make({
1642
+ provider: "aws",
1643
+ service: "ecs",
1644
+ resource: "service",
1645
+ operation: "create",
1646
+ stateSecretOutputKeys: [],
1647
+ replacement: {
1648
+ order: "createBeforeDestroy",
1649
+ properties: [
1650
+ ["Cluster"],
1651
+ ["Role"],
1652
+ ["SchedulingStrategy"],
1653
+ ["ServiceName"],
1654
+ ],
1655
+ },
1656
+ primaryIdentifier: ["/properties/ServiceArn", "/properties/Cluster"],
1657
+ });
1658
+
1659
+ export const AWSServicePropsSchema = annotateResourceSchema(
1660
+ Schema.Struct({
1661
+ PlatformVersion: Schema.optionalKey(
1662
+ Schema.String.annotate({
1663
+ description:
1664
+ "The platform version that your tasks in the service are running on. A platform version is specified only for tasks using the Fargate launch type. If one isn't specified, the ``LATEST`` platform version is used. For more information, see [platform versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) in the *Amazon Elastic Container Service Developer Guide*.",
1665
+ }),
1666
+ ),
1667
+ PropagateTags: Schema.optionalKey(ResourceInputAlternatives),
1668
+ PlacementStrategies: Schema.optionalKey(ResourceInputItems),
1669
+ ServiceRegistries: Schema.optionalKey(ResourceInputItems_1),
1670
+ VolumeConfigurations: Schema.optionalKey(ResourceInputItems_2),
1671
+ CapacityProviderStrategy: Schema.optionalKey(
1672
+ Schema.Array(CapacityProviderStrategyItem).annotate({
1673
+ description:
1674
+ "The capacity provider strategy to use for the service.\n If a ``capacityProviderStrategy`` is specified, the ``launchType`` parameter must be omitted. If no ``capacityProviderStrategy`` or ``launchType`` is specified, the ``defaultCapacityProviderStrategy`` for the cluster is used.\n A capacity provider strategy can contain a maximum of 20 capacity providers.\n To remove this property from your service resource, specify an empty ``CapacityProviderStrategyItem`` array.",
1675
+ }),
1676
+ ),
1677
+ LaunchType: Schema.optionalKey(ResourceInputAlternatives_1),
1678
+ AvailabilityZoneRebalancing: Schema.optionalKey(
1679
+ ResourceInputAlternatives_2,
1680
+ ),
1681
+ SchedulingStrategy: Schema.optionalKey(ResourceInputAlternatives_3),
1682
+ NetworkConfiguration: Schema.optionalKey(NetworkConfiguration),
1683
+ Tags: Schema.optionalKey(ResourceInputItems_3),
1684
+ Monitoring: Schema.optionalKey(MonitoringConfiguration),
1685
+ ForceNewDeployment: Schema.optionalKey(ForceNewDeployment),
1686
+ HealthCheckGracePeriodSeconds: Schema.optionalKey(
1687
+ Schema.Number.annotate({
1688
+ description:
1689
+ "The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started. If you do not specify a health check grace period value, the default value of 0 is used. If you do not use any of the health checks, then ``healthCheckGracePeriodSeconds`` is unused.\n If your service has more running tasks than desired, unhealthy tasks in the grace period might be stopped to reach the desired count.",
1690
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1691
+ ),
1692
+ EnableECSManagedTags: Schema.optionalKey(
1693
+ Schema.Boolean.annotate({
1694
+ description:
1695
+ "Specifies whether to turn on Amazon ECS managed tags for the tasks within the service. For more information, see [Tagging your Amazon ECS resources](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) in the *Amazon Elastic Container Service Developer Guide*.\n When you use Amazon ECS managed tags, you must set the ``propagateTags`` request parameter.",
1696
+ }),
1697
+ ),
1698
+ EnableExecuteCommand: Schema.optionalKey(
1699
+ Schema.Boolean.annotate({
1700
+ description:
1701
+ "Determines whether the execute command functionality is turned on for the service. If ``true``, the execute command functionality is turned on for all containers in tasks as part of the service.",
1702
+ }),
1703
+ ),
1704
+ PlacementConstraints: Schema.optionalKey(ResourceInputItems_4),
1705
+ Cluster: Schema.optionalKey(
1706
+ Schema.Union([
1707
+ Schema.Union([
1708
+ ResourceReferenceSchema(
1709
+ Schema.Struct({
1710
+ provider: Schema.Literal("aws"),
1711
+ service: Schema.Literal("ecs"),
1712
+ resource: Schema.Literal("cluster"),
1713
+ }),
1714
+ {
1715
+ value: null,
1716
+ outputs: [
1717
+ {
1718
+ source: ["ClusterName"],
1719
+ target: [],
1720
+ },
1721
+ ],
1722
+ },
1723
+ ).annotate({ expected: "ResourceEntity" }),
1724
+ ]),
1725
+ Schema.String.annotate({
1726
+ description:
1727
+ "The short name or full Amazon Resource Name (ARN) of the cluster that you run your service on. If you do not specify a cluster, the default cluster is assumed.",
1728
+ }),
1729
+ ]),
1730
+ ),
1731
+ LoadBalancers: Schema.optionalKey(
1732
+ Schema.Array(LoadBalancer).annotate({
1733
+ description:
1734
+ "A list of load balancer objects to associate with the service. If you specify the ``Role`` property, ``LoadBalancers`` must be specified as well. For information about the number of load balancers that you can specify per service, see [Service Load Balancing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html) in the *Amazon Elastic Container Service Developer Guide*.\n To remove this property from your service resource, specify an empty ``LoadBalancer`` array.",
1735
+ }),
1736
+ ),
1737
+ ServiceConnectConfiguration: Schema.optionalKey(
1738
+ ServiceConnectConfiguration,
1739
+ ),
1740
+ DesiredCount: Schema.optionalKey(
1741
+ Schema.Number.annotate({
1742
+ description:
1743
+ "The number of instantiations of the specified task definition to place and keep running in your service.\n For new services, if a desired count is not specified, a default value of ``1`` is used. When using the ``DAEMON`` scheduling strategy, the desired count is not required.\n For existing services, if a desired count is not specified, it is omitted from the operation.",
1744
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1745
+ ),
1746
+ VpcLatticeConfigurations: Schema.optionalKey(ResourceInputItems_5),
1747
+ DeploymentController: Schema.optionalKey(DeploymentController),
1748
+ Role: Schema.optionalKey(
1749
+ Schema.String.annotate({
1750
+ description:
1751
+ "The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. This parameter is only permitted if you are using a load balancer with your service and your task definition doesn't use the ``awsvpc`` network mode. If you specify the ``role`` parameter, you must also specify a load balancer object with the ``loadBalancers`` parameter.\n If your account has already created the Amazon ECS service-linked role, that role is used for your service unless you specify a role here. The service-linked role is required if your task definition uses the ``awsvpc`` network mode or if the service is configured to use service discovery, an external deployment controller, multiple target groups, or Elastic Inference accelerators in which case you don't specify a role here. For more information, see [Using service-linked roles for Amazon ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html) in the *Amazon Elastic Container Service Developer Guide*.\n If your specified role has a path other than ``/``, then you must either specify the full role ARN (this is recommended) or prefix the role name with the path. For example, if a role with the name ``bar`` has a path of ``/foo/`` then you would specify ``/foo/bar`` as the role name. For more information, see [Friendly names and paths](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) in the *IAM User Guide*.",
1752
+ }),
1753
+ ),
1754
+ TaskDefinition: Schema.optionalKey(
1755
+ Schema.Union([
1756
+ Schema.Union([
1757
+ ResourceReferenceSchema(
1758
+ Schema.Struct({
1759
+ provider: Schema.Literal("aws"),
1760
+ service: Schema.Literal("ecs"),
1761
+ resource: Schema.Literal("taskdefinition"),
1762
+ }),
1763
+ {
1764
+ value: null,
1765
+ outputs: [
1766
+ {
1767
+ source: ["TaskDefinitionArn"],
1768
+ target: [],
1769
+ },
1770
+ ],
1771
+ },
1772
+ ).annotate({ expected: "ResourceEntity" }),
1773
+ ]),
1774
+ Schema.String.annotate({
1775
+ description:
1776
+ "The ``family`` and ``revision`` (``family:revision``) or full ARN of the task definition to run in your service. If a ``revision`` isn't specified, the latest ``ACTIVE`` revision is used.\n A task definition must be specified if the service uses either the ``ECS`` or ``CODE_DEPLOY`` deployment controllers.\n For more information about deployment types, see [Amazon ECS deployment types](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html).",
1777
+ }),
1778
+ ]),
1779
+ ),
1780
+ ServiceName: Schema.optionalKey(
1781
+ Schema.String.annotate({
1782
+ description:
1783
+ "The name of your service. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a Region or across multiple Regions.\n The stack update fails if you change any properties that require replacement and the ``ServiceName`` is configured. This is because AWS CloudFormation creates the replacement service first, but each ``ServiceName`` must be unique in the cluster.",
1784
+ }),
1785
+ ),
1786
+ DeploymentConfiguration: Schema.optionalKey(DeploymentConfiguration),
1787
+ }),
1788
+ AWSServiceResourceSchema,
1789
+ );
1790
+
1791
+ export interface AWSServiceOutputs {
1792
+ readonly ServiceArn?: string;
1793
+ readonly Name?: string;
1794
+ readonly Cluster?: string;
1795
+ }
1796
+
1797
+ export const AWSServiceOutputsSchema = Schema.Struct({
1798
+ ServiceArn: Schema.optionalKey(Schema.String.annotate({ description: "" })),
1799
+ Name: Schema.optionalKey(Schema.String.annotate({ description: "" })),
1800
+ Cluster: Schema.optionalKey(
1801
+ Schema.String.annotate({
1802
+ description:
1803
+ "The short name or full Amazon Resource Name (ARN) of the cluster that you run your service on. If you do not specify a cluster, the default cluster is assumed.",
1804
+ }),
1805
+ ),
1806
+ });
1807
+
1808
+ export interface AWSServiceRequest {
1809
+ readonly PlatformVersion?: string;
1810
+ readonly PropagateTags?: ResourceInputAlternatives;
1811
+ readonly PlacementStrategies?: ResourceInputItems;
1812
+ readonly ServiceRegistries?: ResourceInputItems_1;
1813
+ readonly VolumeConfigurations?: ResourceInputItems_2;
1814
+ readonly CapacityProviderStrategy?: globalThis.ReadonlyArray<CapacityProviderStrategyItem_1>;
1815
+ readonly LaunchType?: ResourceInputAlternatives_1;
1816
+ readonly AvailabilityZoneRebalancing?: ResourceInputAlternatives_2;
1817
+ readonly SchedulingStrategy?: ResourceInputAlternatives_3;
1818
+ readonly NetworkConfiguration?: NetworkConfiguration_1;
1819
+ readonly Tags?: ResourceInputItems_3;
1820
+ readonly Monitoring?: MonitoringConfiguration;
1821
+ readonly ForceNewDeployment?: ForceNewDeployment;
1822
+ readonly HealthCheckGracePeriodSeconds?: number;
1823
+ readonly EnableECSManagedTags?: boolean;
1824
+ readonly EnableExecuteCommand?: boolean;
1825
+ readonly PlacementConstraints?: ResourceInputItems_4;
1826
+ readonly Cluster?: string;
1827
+ readonly LoadBalancers?: globalThis.ReadonlyArray<LoadBalancer_1>;
1828
+ readonly ServiceConnectConfiguration?: ServiceConnectConfiguration;
1829
+ readonly DesiredCount?: number;
1830
+ readonly VpcLatticeConfigurations?: ResourceInputItems_5;
1831
+ readonly DeploymentController?: DeploymentController;
1832
+ readonly Role?: string;
1833
+ readonly TaskDefinition?: string;
1834
+ readonly ServiceName?: string;
1835
+ readonly DeploymentConfiguration?: DeploymentConfiguration_1;
1836
+ }
1837
+
1838
+ export const AWSServiceRequestSchema = Schema.Struct({
1839
+ PlatformVersion: Schema.optionalKey(
1840
+ Schema.String.annotate({
1841
+ description:
1842
+ "The platform version that your tasks in the service are running on. A platform version is specified only for tasks using the Fargate launch type. If one isn't specified, the ``LATEST`` platform version is used. For more information, see [platform versions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) in the *Amazon Elastic Container Service Developer Guide*.",
1843
+ }),
1844
+ ),
1845
+ PropagateTags: Schema.optionalKey(ResourceInputAlternatives),
1846
+ PlacementStrategies: Schema.optionalKey(ResourceInputItems),
1847
+ ServiceRegistries: Schema.optionalKey(ResourceInputItems_1),
1848
+ VolumeConfigurations: Schema.optionalKey(ResourceInputItems_2),
1849
+ CapacityProviderStrategy: Schema.optionalKey(
1850
+ Schema.Array(CapacityProviderStrategyItem_1).annotate({
1851
+ description:
1852
+ "The capacity provider strategy to use for the service.\n If a ``capacityProviderStrategy`` is specified, the ``launchType`` parameter must be omitted. If no ``capacityProviderStrategy`` or ``launchType`` is specified, the ``defaultCapacityProviderStrategy`` for the cluster is used.\n A capacity provider strategy can contain a maximum of 20 capacity providers.\n To remove this property from your service resource, specify an empty ``CapacityProviderStrategyItem`` array.",
1853
+ }),
1854
+ ),
1855
+ LaunchType: Schema.optionalKey(ResourceInputAlternatives_1),
1856
+ AvailabilityZoneRebalancing: Schema.optionalKey(ResourceInputAlternatives_2),
1857
+ SchedulingStrategy: Schema.optionalKey(ResourceInputAlternatives_3),
1858
+ NetworkConfiguration: Schema.optionalKey(NetworkConfiguration_1),
1859
+ Tags: Schema.optionalKey(ResourceInputItems_3),
1860
+ Monitoring: Schema.optionalKey(MonitoringConfiguration),
1861
+ ForceNewDeployment: Schema.optionalKey(ForceNewDeployment),
1862
+ HealthCheckGracePeriodSeconds: Schema.optionalKey(
1863
+ Schema.Number.annotate({
1864
+ description:
1865
+ "The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started. If you do not specify a health check grace period value, the default value of 0 is used. If you do not use any of the health checks, then ``healthCheckGracePeriodSeconds`` is unused.\n If your service has more running tasks than desired, unhealthy tasks in the grace period might be stopped to reach the desired count.",
1866
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1867
+ ),
1868
+ EnableECSManagedTags: Schema.optionalKey(
1869
+ Schema.Boolean.annotate({
1870
+ description:
1871
+ "Specifies whether to turn on Amazon ECS managed tags for the tasks within the service. For more information, see [Tagging your Amazon ECS resources](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html) in the *Amazon Elastic Container Service Developer Guide*.\n When you use Amazon ECS managed tags, you must set the ``propagateTags`` request parameter.",
1872
+ }),
1873
+ ),
1874
+ EnableExecuteCommand: Schema.optionalKey(
1875
+ Schema.Boolean.annotate({
1876
+ description:
1877
+ "Determines whether the execute command functionality is turned on for the service. If ``true``, the execute command functionality is turned on for all containers in tasks as part of the service.",
1878
+ }),
1879
+ ),
1880
+ PlacementConstraints: Schema.optionalKey(ResourceInputItems_4),
1881
+ Cluster: Schema.optionalKey(
1882
+ Schema.String.annotate({
1883
+ description:
1884
+ "The short name or full Amazon Resource Name (ARN) of the cluster that you run your service on. If you do not specify a cluster, the default cluster is assumed.",
1885
+ }),
1886
+ ),
1887
+ LoadBalancers: Schema.optionalKey(
1888
+ Schema.Array(LoadBalancer_1).annotate({
1889
+ description:
1890
+ "A list of load balancer objects to associate with the service. If you specify the ``Role`` property, ``LoadBalancers`` must be specified as well. For information about the number of load balancers that you can specify per service, see [Service Load Balancing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html) in the *Amazon Elastic Container Service Developer Guide*.\n To remove this property from your service resource, specify an empty ``LoadBalancer`` array.",
1891
+ }),
1892
+ ),
1893
+ ServiceConnectConfiguration: Schema.optionalKey(ServiceConnectConfiguration),
1894
+ DesiredCount: Schema.optionalKey(
1895
+ Schema.Number.annotate({
1896
+ description:
1897
+ "The number of instantiations of the specified task definition to place and keep running in your service.\n For new services, if a desired count is not specified, a default value of ``1`` is used. When using the ``DAEMON`` scheduling strategy, the desired count is not required.\n For existing services, if a desired count is not specified, it is omitted from the operation.",
1898
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1899
+ ),
1900
+ VpcLatticeConfigurations: Schema.optionalKey(ResourceInputItems_5),
1901
+ DeploymentController: Schema.optionalKey(DeploymentController),
1902
+ Role: Schema.optionalKey(
1903
+ Schema.String.annotate({
1904
+ description:
1905
+ "The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. This parameter is only permitted if you are using a load balancer with your service and your task definition doesn't use the ``awsvpc`` network mode. If you specify the ``role`` parameter, you must also specify a load balancer object with the ``loadBalancers`` parameter.\n If your account has already created the Amazon ECS service-linked role, that role is used for your service unless you specify a role here. The service-linked role is required if your task definition uses the ``awsvpc`` network mode or if the service is configured to use service discovery, an external deployment controller, multiple target groups, or Elastic Inference accelerators in which case you don't specify a role here. For more information, see [Using service-linked roles for Amazon ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html) in the *Amazon Elastic Container Service Developer Guide*.\n If your specified role has a path other than ``/``, then you must either specify the full role ARN (this is recommended) or prefix the role name with the path. For example, if a role with the name ``bar`` has a path of ``/foo/`` then you would specify ``/foo/bar`` as the role name. For more information, see [Friendly names and paths](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) in the *IAM User Guide*.",
1906
+ }),
1907
+ ),
1908
+ TaskDefinition: Schema.optionalKey(
1909
+ Schema.String.annotate({
1910
+ description:
1911
+ "The ``family`` and ``revision`` (``family:revision``) or full ARN of the task definition to run in your service. If a ``revision`` isn't specified, the latest ``ACTIVE`` revision is used.\n A task definition must be specified if the service uses either the ``ECS`` or ``CODE_DEPLOY`` deployment controllers.\n For more information about deployment types, see [Amazon ECS deployment types](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html).",
1912
+ }),
1913
+ ),
1914
+ ServiceName: Schema.optionalKey(
1915
+ Schema.String.annotate({
1916
+ description:
1917
+ "The name of your service. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a Region or across multiple Regions.\n The stack update fails if you change any properties that require replacement and the ``ServiceName`` is configured. This is because AWS CloudFormation creates the replacement service first, but each ``ServiceName`` must be unique in the cluster.",
1918
+ }),
1919
+ ),
1920
+ DeploymentConfiguration: Schema.optionalKey(DeploymentConfiguration_1),
1921
+ });
1922
+
1923
+ /**
1924
+ * The AWSServiceRelationshipIssues array lists inputs that can use several outputs
1925
+ * from one source type. Each input retains its provider value until a reviewed
1926
+ * mapping chooses an output.
1927
+ */
1928
+ export const AWSServiceRelationshipIssues = [
1929
+ {
1930
+ propertyPath: ["Role"],
1931
+ sourceType: "AWS::IAM::Role",
1932
+ sourceProperties: [["RoleName"], ["Arn"]],
1933
+ message:
1934
+ "Choose one of the permitted source properties before using a resource reference",
1935
+ },
1936
+ ];
1937
+
1938
+ export const AWSServiceResourceTypeSchema = Schema.Struct({
1939
+ provider: Schema.Literal("aws"),
1940
+ service: Schema.Literal("ecs"),
1941
+ resource: Schema.Literal("service"),
1942
+ });
1943
+
1944
+ /**
1945
+ * The AWSServiceResource class retains its owning stack across declarations.
1946
+ * Applied output properties are ordinary values maintained by the lifecycle.
1947
+ */
1948
+ export class AWSServiceResource<
1949
+ Props = AWSServiceProps,
1950
+ > extends ResourceEntity<{
1951
+ readonly provider: "aws";
1952
+ readonly service: "ecs";
1953
+ readonly resource: "service";
1954
+ }> {
1955
+ constructor(
1956
+ key: ResourceKey,
1957
+ readonly props: Props,
1958
+ private readonly binding?: ResourceOutputBinding,
1959
+ ) {
1960
+ super({
1961
+ key,
1962
+ resourceType: {
1963
+ provider: "aws",
1964
+ service: "ecs",
1965
+ resource: "service",
1966
+ },
1967
+ });
1968
+ }
1969
+
1970
+ /**
1971
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1972
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1973
+ */
1974
+ get ServiceArn(): Required<AWSServiceOutputs>["ServiceArn"] {
1975
+ const value: Required<AWSServiceOutputs>["ServiceArn"] =
1976
+ ResourceOutputBinding.value(
1977
+ this.binding,
1978
+ this.key,
1979
+ "ServiceArn",
1980
+ Schema.requiredKey(AWSServiceOutputsSchema.fields.ServiceArn),
1981
+ );
1982
+ return value;
1983
+ }
1984
+
1985
+ /**
1986
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1987
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1988
+ */
1989
+ get Name(): Required<AWSServiceOutputs>["Name"] {
1990
+ const value: Required<AWSServiceOutputs>["Name"] =
1991
+ ResourceOutputBinding.value(
1992
+ this.binding,
1993
+ this.key,
1994
+ "Name",
1995
+ Schema.requiredKey(AWSServiceOutputsSchema.fields.Name),
1996
+ );
1997
+ return value;
1998
+ }
1999
+
2000
+ /**
2001
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2002
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2003
+ */
2004
+ get Cluster(): Required<AWSServiceOutputs>["Cluster"] {
2005
+ const value: Required<AWSServiceOutputs>["Cluster"] =
2006
+ ResourceOutputBinding.value(
2007
+ this.binding,
2008
+ this.key,
2009
+ "Cluster",
2010
+ Schema.requiredKey(AWSServiceOutputsSchema.fields.Cluster),
2011
+ );
2012
+ return value;
2013
+ }
2014
+ }
2015
+
2016
+ /**
2017
+ * Callers must validate properties before constructing the declaration.
2018
+ * Compatible resources can depend on it before apply supplies provider values.
2019
+ * Reading applied outputs requires a binding to the owning stack.
2020
+ */
2021
+ export function createAWSServiceDeclaration<Props>(
2022
+ key: ResourceKey,
2023
+ props: Props,
2024
+ binding?: ResourceOutputBinding,
2025
+ ): AWSServiceResource<Props> {
2026
+ const resource: AWSServiceResource<Props> = new AWSServiceResource<Props>(
2027
+ key,
2028
+ props,
2029
+ binding,
2030
+ );
2031
+
2032
+ return resource;
2033
+ }
2034
+
2035
+ /**
2036
+ * The AWSService resource factory registers a validated declaration in the
2037
+ * stack graph. Its outputs become available after apply saves the resource.
2038
+ */
2039
+ export const AWSService = Effect.fn("AWSService")(function* (input: {
2040
+ logicalId: string;
2041
+ props: AWSServiceProps;
2042
+ }) {
2043
+ const graph = yield* ResourceGraphBuilder;
2044
+
2045
+ const key: ResourceKey = { logicalId: input.logicalId };
2046
+
2047
+ const declaration = yield* graph.resource(key);
2048
+
2049
+ const props = yield* Schema.decodeEffect(AWSServicePropsSchema)(input.props);
2050
+
2051
+ yield* declaration.registerEntity(AWSServiceResourceTypeSchema, {
2052
+ propsSchema: AWSServicePropsSchema,
2053
+ requestSchema: AWSServiceRequestSchema,
2054
+ outputsSchema: AWSServiceOutputsSchema,
2055
+ props,
2056
+ });
2057
+
2058
+ const resource: AWSServiceResource = createAWSServiceDeclaration(
2059
+ key,
2060
+ props,
2061
+ declaration.outputs,
2062
+ );
2063
+
2064
+ return resource;
2065
+ });