@spinnaker/amazon 0.0.0-main-2

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 (685) hide show
  1. package/CHANGELOG.md +4365 -0
  2. package/LICENSE.txt +203 -0
  3. package/dist/amazon.logo352d4e042476837f.svg +503 -0
  4. package/dist/aws.module.d.ts +5 -0
  5. package/dist/aws.settings.d.ts +59 -0
  6. package/dist/aws.validators.d.ts +7 -0
  7. package/dist/certificates/AmazonCertificateReader.d.ts +6 -0
  8. package/dist/certificates/index.d.ts +1 -0
  9. package/dist/common/AwsModalFooter.d.ts +21 -0
  10. package/dist/common/common.module.d.ts +1 -0
  11. package/dist/common/footer.component.d.ts +1 -0
  12. package/dist/common/index.d.ts +1 -0
  13. package/dist/deploymentStrategy/AdditionalFields.d.ts +10 -0
  14. package/dist/deploymentStrategy/rollingPush.strategy.d.ts +10 -0
  15. package/dist/domain/IAmazonBlockDeviceMapping.d.ts +15 -0
  16. package/dist/domain/IAmazonCertificate.d.ts +5 -0
  17. package/dist/domain/IAmazonFunction.d.ts +65 -0
  18. package/dist/domain/IAmazonFunctionSourceData.d.ts +46 -0
  19. package/dist/domain/IAmazonHealth.d.ts +11 -0
  20. package/dist/domain/IAmazonInstance.d.ts +24 -0
  21. package/dist/domain/IAmazonLaunchTemplate.d.ts +91 -0
  22. package/dist/domain/IAmazonLoadBalancer.d.ts +230 -0
  23. package/dist/domain/IAmazonLoadBalancerSourceData.d.ts +170 -0
  24. package/dist/domain/IAmazonScalingPolicy.d.ts +22 -0
  25. package/dist/domain/IAmazonSecurityGroup.d.ts +4 -0
  26. package/dist/domain/IAmazonServerGroup.d.ts +67 -0
  27. package/dist/domain/IKeyPair.d.ts +6 -0
  28. package/dist/domain/IScalingPolicy.d.ts +44 -0
  29. package/dist/domain/IScalingProcess.d.ts +10 -0
  30. package/dist/domain/ITargetTrackingPolicy.d.ts +22 -0
  31. package/dist/domain/index.d.ts +15 -0
  32. package/dist/function/CreateLambdaFunction.d.ts +25 -0
  33. package/dist/function/configure/ExecutionRole.d.ts +15 -0
  34. package/dist/function/configure/FunctionBasicInformation.d.ts +26 -0
  35. package/dist/function/configure/FunctionDebugAndErrorHandling.d.ts +15 -0
  36. package/dist/function/configure/FunctionEnvironmentVariables.d.ts +14 -0
  37. package/dist/function/configure/FunctionSettings.d.ts +14 -0
  38. package/dist/function/configure/FunctionTags.d.ts +14 -0
  39. package/dist/function/configure/Network.d.ts +42 -0
  40. package/dist/function/details/AmazonFunctionDetails.d.ts +19 -0
  41. package/dist/function/details/FunctionActions.d.ts +20 -0
  42. package/dist/function/function.module.d.ts +1 -0
  43. package/dist/function/function.transformer.d.ts +7 -0
  44. package/dist/function/index.d.ts +5 -0
  45. package/dist/help/amazon.help.d.ts +1 -0
  46. package/dist/image/image.reader.d.ts +25 -0
  47. package/dist/image/index.d.ts +1 -0
  48. package/dist/index.d.ts +14 -0
  49. package/dist/index.js +20873 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/instance/amazon.instance.write.service.d.ts +15 -0
  52. package/dist/instance/awsInstanceType.service.d.ts +50 -0
  53. package/dist/instance/awsInstanceTypes.d.ts +10 -0
  54. package/dist/instance/details/AmazonInstanceInformation.d.ts +6 -0
  55. package/dist/instance/details/CostFactor.d.ts +6 -0
  56. package/dist/instance/details/InstanceDns.d.ts +16 -0
  57. package/dist/instance/details/InstanceInformation.d.ts +13 -0
  58. package/dist/instance/details/InstanceSecurityGroups.d.ts +6 -0
  59. package/dist/instance/details/InstanceStatus.d.ts +16 -0
  60. package/dist/instance/details/InstanceTags.d.ts +8 -0
  61. package/dist/instance/details/amazonInstanceInformation.component.d.ts +1 -0
  62. package/dist/instance/details/instance.details.controller.d.ts +2 -0
  63. package/dist/instance/details/instanceDns.component.d.ts +1 -0
  64. package/dist/instance/details/instanceSecurityGroups.component.d.ts +1 -0
  65. package/dist/instance/details/instanceStatus.component.d.ts +1 -0
  66. package/dist/instance/details/instanceTags.component.d.ts +1 -0
  67. package/dist/instance/details/utils.d.ts +3 -0
  68. package/dist/instance/index.d.ts +5 -0
  69. package/dist/keyPairs/KeyPairsReader.d.ts +4 -0
  70. package/dist/keyPairs/index.d.ts +1 -0
  71. package/dist/loadBalancer/AmazonLoadBalancerClusterContainer.d.ts +6 -0
  72. package/dist/loadBalancer/AmazonLoadBalancersTag.d.ts +20 -0
  73. package/dist/loadBalancer/OidcConfigReader.d.ts +16 -0
  74. package/dist/loadBalancer/TargetGroup.d.ts +12 -0
  75. package/dist/loadBalancer/TargetGroupDetails.d.ts +7 -0
  76. package/dist/loadBalancer/amazonLoadBalancerDataUtils.d.ts +6 -0
  77. package/dist/loadBalancer/configure/AmazonLoadBalancerChoiceModal.d.ts +18 -0
  78. package/dist/loadBalancer/configure/LoadBalancerTypes.d.ts +14 -0
  79. package/dist/loadBalancer/configure/application/ALBAdvancedSettings.d.ts +2 -0
  80. package/dist/loadBalancer/configure/application/ALBListeners.d.ts +59 -0
  81. package/dist/loadBalancer/configure/application/ConfigureOidcConfigModal.d.ts +20 -0
  82. package/dist/loadBalancer/configure/application/ConfigureRedirectConfigModal.d.ts +17 -0
  83. package/dist/loadBalancer/configure/application/CreateApplicationLoadBalancer.d.ts +35 -0
  84. package/dist/loadBalancer/configure/application/TargetGroups.d.ts +33 -0
  85. package/dist/loadBalancer/configure/classic/AdvancedSettings.d.ts +10 -0
  86. package/dist/loadBalancer/configure/classic/CreateClassicLoadBalancer.d.ts +33 -0
  87. package/dist/loadBalancer/configure/classic/HealthCheck.d.ts +11 -0
  88. package/dist/loadBalancer/configure/classic/Listeners.d.ts +34 -0
  89. package/dist/loadBalancer/configure/common/AmazonCertificateSelectField.d.ts +15 -0
  90. package/dist/loadBalancer/configure/common/LoadBalancerLocation.d.ts +48 -0
  91. package/dist/loadBalancer/configure/common/SecurityGroups.d.ts +36 -0
  92. package/dist/loadBalancer/configure/common/targetGroupValidators.d.ts +10 -0
  93. package/dist/loadBalancer/configure/network/CertificateSelectors.d.ts +3 -0
  94. package/dist/loadBalancer/configure/network/CreateNetworkLoadBalancer.d.ts +34 -0
  95. package/dist/loadBalancer/configure/network/NLBAdvancedSettings.d.ts +5 -0
  96. package/dist/loadBalancer/configure/network/NLBListeners.d.ts +43 -0
  97. package/dist/loadBalancer/configure/network/TargetGroups.d.ts +34 -0
  98. package/dist/loadBalancer/details/LoadBalancerActions.d.ts +19 -0
  99. package/dist/loadBalancer/details/loadBalancerActions.component.d.ts +1 -0
  100. package/dist/loadBalancer/details/loadBalancerDetails.controller.d.ts +41 -0
  101. package/dist/loadBalancer/details/targetGroupDetails.controller.d.ts +30 -0
  102. package/dist/loadBalancer/index.d.ts +9 -0
  103. package/dist/loadBalancer/loadBalancer.module.d.ts +1 -0
  104. package/dist/loadBalancer/loadBalancer.transformer.d.ts +17 -0
  105. package/dist/loadBalancer/targetGroup.states.d.ts +1 -0
  106. package/dist/pipeline/stages/bake/awsBakeStage.d.ts +2 -0
  107. package/dist/pipeline/stages/bake/bakeExecutionDetails.controller.d.ts +2 -0
  108. package/dist/pipeline/stages/cloneServerGroup/awsCloneServerGroupStage.d.ts +2 -0
  109. package/dist/pipeline/stages/deleteLambda/DeleteLambdaFunctionStageForm.d.ts +3 -0
  110. package/dist/pipeline/stages/deleteLambda/LambdaDeleteStage.d.ts +8 -0
  111. package/dist/pipeline/stages/deleteLambda/constants/deleteVersion.constants.d.ts +6 -0
  112. package/dist/pipeline/stages/deleteLambda/constants/deleteVersion.picker.d.ts +16 -0
  113. package/dist/pipeline/stages/deleteLambda/constants/index.d.ts +2 -0
  114. package/dist/pipeline/stages/deleteLambda/index.d.ts +2 -0
  115. package/dist/pipeline/stages/deployCloudFormation/CloudFormationChangeSetInfo.d.ts +8 -0
  116. package/dist/pipeline/stages/deployCloudFormation/cloudFormationTemplateEntry.component.d.ts +1 -0
  117. package/dist/pipeline/stages/deployCloudFormation/deployCloudFormationExecutionDetails.d.ts +7 -0
  118. package/dist/pipeline/stages/deployCloudFormation/deployCloudFormationStackConfig.controller.d.ts +25 -0
  119. package/dist/pipeline/stages/deployCloudFormation/deployCloudFormationStackStage.d.ts +1 -0
  120. package/dist/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecution.service.d.ts +10 -0
  121. package/dist/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionApproval.d.ts +13 -0
  122. package/dist/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionDetails.d.ts +7 -0
  123. package/dist/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionLabel.d.ts +12 -0
  124. package/dist/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionMarkerIcon.d.ts +6 -0
  125. package/dist/pipeline/stages/deployLambda/components/AwsLambdaFunctionStageForm.d.ts +3 -0
  126. package/dist/pipeline/stages/deployLambda/components/BasicSettingsForm.d.ts +3 -0
  127. package/dist/pipeline/stages/deployLambda/components/EnvironmentForm.d.ts +2 -0
  128. package/dist/pipeline/stages/deployLambda/components/ExecutionRoleForm.d.ts +2 -0
  129. package/dist/pipeline/stages/deployLambda/components/LambdaAtEdgeForm.d.ts +3 -0
  130. package/dist/pipeline/stages/deployLambda/components/NetworkForm.d.ts +3 -0
  131. package/dist/pipeline/stages/deployLambda/components/TriggerEventsForm.d.ts +3 -0
  132. package/dist/pipeline/stages/deployLambda/components/function.constants.d.ts +5 -0
  133. package/dist/pipeline/stages/deployLambda/components/index.d.ts +5 -0
  134. package/dist/pipeline/stages/deployLambda/config/LambdaDeploymentStage.d.ts +3 -0
  135. package/dist/pipeline/stages/deployLambda/config/LambdaDeploymentStageConfig.d.ts +4 -0
  136. package/dist/pipeline/stages/deployLambda/config/LambdaDeploymentStageExecutionDetails.d.ts +6 -0
  137. package/dist/pipeline/stages/deployLambda/config/UpsertDefaults.d.ts +1 -0
  138. package/dist/pipeline/stages/deployLambda/config/function.defaults.d.ts +2 -0
  139. package/dist/pipeline/stages/deployLambda/index.d.ts +2 -0
  140. package/dist/pipeline/stages/destroyAsg/awsDestroyAsgStage.d.ts +2 -0
  141. package/dist/pipeline/stages/disableAsg/awsDisableAsgStage.d.ts +2 -0
  142. package/dist/pipeline/stages/disableCluster/awsDisableClusterStage.d.ts +2 -0
  143. package/dist/pipeline/stages/enableAsg/awsEnableAsgStage.d.ts +2 -0
  144. package/dist/pipeline/stages/findAmi/awsFindAmiStage.d.ts +2 -0
  145. package/dist/pipeline/stages/findImageFromTags/awsFindImageFromTagsStage.d.ts +2 -0
  146. package/dist/pipeline/stages/invokeLambda/InvokeLambdaFunctionStageForm.d.ts +3 -0
  147. package/dist/pipeline/stages/invokeLambda/LambdaInvokeStage.d.ts +8 -0
  148. package/dist/pipeline/stages/invokeLambda/components/InvokeLambdaOperation.d.ts +3 -0
  149. package/dist/pipeline/stages/invokeLambda/components/index.d.ts +1 -0
  150. package/dist/pipeline/stages/invokeLambda/index.d.ts +2 -0
  151. package/dist/pipeline/stages/modifyScalingProcess/modifyScalingProcessStage.d.ts +2 -0
  152. package/dist/pipeline/stages/resizeAsg/awsResizeAsgStage.d.ts +2 -0
  153. package/dist/pipeline/stages/rollbackCluster/awsRollbackClusterStage.d.ts +2 -0
  154. package/dist/pipeline/stages/routeLambda/LambdaRouteStage.d.ts +8 -0
  155. package/dist/pipeline/stages/routeLambda/RouteLambdaFunctionStageForm.d.ts +3 -0
  156. package/dist/pipeline/stages/routeLambda/TriggerEventsForm.d.ts +3 -0
  157. package/dist/pipeline/stages/routeLambda/components/BlueGreenDeployment/BlueGreenDeploymentForm.d.ts +3 -0
  158. package/dist/pipeline/stages/routeLambda/components/BlueGreenDeployment/HealthCheckStrategy.d.ts +3 -0
  159. package/dist/pipeline/stages/routeLambda/components/BlueGreenDeployment/InvocationHealthCheck.d.ts +3 -0
  160. package/dist/pipeline/stages/routeLambda/components/BlueGreenDeployment/health.constants.d.ts +5 -0
  161. package/dist/pipeline/stages/routeLambda/components/BlueGreenDeployment/index.d.ts +1 -0
  162. package/dist/pipeline/stages/routeLambda/components/DeploymentStrategyForm.d.ts +3 -0
  163. package/dist/pipeline/stages/routeLambda/components/RenderStrategy.d.ts +3 -0
  164. package/dist/pipeline/stages/routeLambda/components/SimpleDeploymentForm.d.ts +3 -0
  165. package/dist/pipeline/stages/routeLambda/components/VersionPicker.d.ts +14 -0
  166. package/dist/pipeline/stages/routeLambda/components/WeightedDeploymentForm.d.ts +3 -0
  167. package/dist/pipeline/stages/routeLambda/components/index.d.ts +1 -0
  168. package/dist/pipeline/stages/routeLambda/constants/index.d.ts +3 -0
  169. package/dist/pipeline/stages/routeLambda/constants/strategy.constants.d.ts +6 -0
  170. package/dist/pipeline/stages/routeLambda/constants/strategy.picker.d.ts +16 -0
  171. package/dist/pipeline/stages/routeLambda/constants/versions.constants.d.ts +6 -0
  172. package/dist/pipeline/stages/routeLambda/index.d.ts +2 -0
  173. package/dist/pipeline/stages/scaleDownCluster/awsScaleDownClusterStage.d.ts +2 -0
  174. package/dist/pipeline/stages/shrinkCluster/awsShrinkClusterStage.d.ts +2 -0
  175. package/dist/pipeline/stages/tagImage/awsTagImageStage.d.ts +2 -0
  176. package/dist/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStage.d.ts +3 -0
  177. package/dist/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStageConfig.d.ts +5 -0
  178. package/dist/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStageExecutionDetails.d.ts +6 -0
  179. package/dist/pipeline/stages/updateCodeLambda/components/UpdateCodeStageForm.d.ts +3 -0
  180. package/dist/pipeline/stages/updateCodeLambda/components/index.d.ts +1 -0
  181. package/dist/pipeline/stages/updateCodeLambda/index.d.ts +2 -0
  182. package/dist/reactShims/aws.react.injector.d.ts +18 -0
  183. package/dist/reactShims/aws.react.module.d.ts +1 -0
  184. package/dist/reactShims/index.d.ts +1 -0
  185. package/dist/search/searchResultFormatter.d.ts +2 -0
  186. package/dist/securityGroup/clone/cloneSecurityGroup.controller.d.ts +2 -0
  187. package/dist/securityGroup/configure/CreateSecurityGroupCtrl.d.ts +2 -0
  188. package/dist/securityGroup/configure/EditSecurityGroupCtrl.d.ts +2 -0
  189. package/dist/securityGroup/configure/configSecurityGroup.mixin.controller.d.ts +2 -0
  190. package/dist/securityGroup/configure/ingressRuleGroupSelector.component.d.ts +1 -0
  191. package/dist/securityGroup/configure/securityGroupDetailsCustom.component.d.ts +1 -0
  192. package/dist/securityGroup/configure/securityGroupDetailsCustom.d.ts +10 -0
  193. package/dist/securityGroup/details/IPRangeRules.d.ts +17 -0
  194. package/dist/securityGroup/details/index.d.ts +1 -0
  195. package/dist/securityGroup/details/securityGroupDetail.controller.d.ts +2 -0
  196. package/dist/securityGroup/details/securityGroupIpRangeRules.component.d.ts +1 -0
  197. package/dist/securityGroup/index.d.ts +1 -0
  198. package/dist/securityGroup/securityGroup.module.d.ts +1 -0
  199. package/dist/securityGroup/securityGroup.reader.d.ts +6 -0
  200. package/dist/securityGroup/securityGroup.transformer.d.ts +2 -0
  201. package/dist/serverGroup/AvailabilityZoneSelector.d.ts +21 -0
  202. package/dist/serverGroup/configure/AmazonImageSelectInput.d.ts +44 -0
  203. package/dist/serverGroup/configure/index.d.ts +5 -0
  204. package/dist/serverGroup/configure/serverGroupCommandBuilder.service.d.ts +17 -0
  205. package/dist/serverGroup/configure/serverGroupConfiguration.service.d.ts +126 -0
  206. package/dist/serverGroup/configure/wizard/AmazonCloneServerGroupModal.d.ts +31 -0
  207. package/dist/serverGroup/configure/wizard/ServerGroupTemplateSelection.d.ts +15 -0
  208. package/dist/serverGroup/configure/wizard/capacity/CapacitySelector.d.ts +18 -0
  209. package/dist/serverGroup/configure/wizard/capacity/MinMaxDesired.d.ts +11 -0
  210. package/dist/serverGroup/configure/wizard/instanceType/CpuCreditsToggle.d.ts +8 -0
  211. package/dist/serverGroup/configure/wizard/instanceType/InstanceTypeSelector.d.ts +9 -0
  212. package/dist/serverGroup/configure/wizard/instanceType/InstanceTypeWarning.d.ts +6 -0
  213. package/dist/serverGroup/configure/wizard/instanceType/advancedMode/AdvancedModeSelector.d.ts +14 -0
  214. package/dist/serverGroup/configure/wizard/instanceType/advancedMode/AmazonInstanceTypeInfoRenderer.d.ts +5 -0
  215. package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstanceProfileSelector.d.ts +9 -0
  216. package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeRow.d.ts +13 -0
  217. package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeSelect.d.ts +7 -0
  218. package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeTable.d.ts +18 -0
  219. package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeTableBody.d.ts +14 -0
  220. package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeTableParts.d.ts +17 -0
  221. package/dist/serverGroup/configure/wizard/instanceType/advancedMode/InstancesDistribution.d.ts +8 -0
  222. package/dist/serverGroup/configure/wizard/instanceType/simpleMode/SimpleModeSelector.d.ts +9 -0
  223. package/dist/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.d.ts +32 -0
  224. package/dist/serverGroup/configure/wizard/pages/ServerGroupCapacity.d.ts +13 -0
  225. package/dist/serverGroup/configure/wizard/pages/ServerGroupInstanceType.d.ts +22 -0
  226. package/dist/serverGroup/configure/wizard/pages/ServerGroupLoadBalancers.d.ts +29 -0
  227. package/dist/serverGroup/configure/wizard/pages/ServerGroupSecurityGroups.d.ts +13 -0
  228. package/dist/serverGroup/configure/wizard/pages/ServerGroupZones.d.ts +13 -0
  229. package/dist/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettings.d.ts +13 -0
  230. package/dist/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettingsCommon.d.ts +12 -0
  231. package/dist/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettingsInner.d.ts +11 -0
  232. package/dist/serverGroup/configure/wizard/pages/index.d.ts +8 -0
  233. package/dist/serverGroup/configure/wizard/securityGroups/SecurityGroupSelector.d.ts +22 -0
  234. package/dist/serverGroup/configure/wizard/securityGroups/ServerGroupSecurityGroupsRemoved.d.ts +11 -0
  235. package/dist/serverGroup/details/AmazonServerGroupActions.d.ts +23 -0
  236. package/dist/serverGroup/details/advancedSettings/editAsgAdvancedSettings.modal.controller.d.ts +2 -0
  237. package/dist/serverGroup/details/amazonServerGroupDetailsGetter.d.ts +4 -0
  238. package/dist/serverGroup/details/resize/AmazonResizeServerGroupModal.d.ts +47 -0
  239. package/dist/serverGroup/details/rollback/rollbackServerGroup.controller.d.ts +2 -0
  240. package/dist/serverGroup/details/scalingPolicy/CreateScalingPolicyButton.d.ts +21 -0
  241. package/dist/serverGroup/details/scalingPolicy/ScalingPolicySummary.d.ts +9 -0
  242. package/dist/serverGroup/details/scalingPolicy/ScalingPolicyWriter.d.ts +55 -0
  243. package/dist/serverGroup/details/scalingPolicy/StepPolicySummary.d.ts +10 -0
  244. package/dist/serverGroup/details/scalingPolicy/chart/DateLineChart.d.ts +15 -0
  245. package/dist/serverGroup/details/scalingPolicy/chart/MetricAlarmChart.d.ts +11 -0
  246. package/dist/serverGroup/details/scalingPolicy/createScalingPolicyButton.component.d.ts +1 -0
  247. package/dist/serverGroup/details/scalingPolicy/index.d.ts +12 -0
  248. package/dist/serverGroup/details/scalingPolicy/popover/AlarmSummary.d.ts +12 -0
  249. package/dist/serverGroup/details/scalingPolicy/popover/StepPolicyPopoverContent.d.ts +7 -0
  250. package/dist/serverGroup/details/scalingPolicy/scalingPolicy.module.d.ts +1 -0
  251. package/dist/serverGroup/details/scalingPolicy/scalingPolicySummary.component.d.ts +1 -0
  252. package/dist/serverGroup/details/scalingPolicy/targetTracking/TargetMetricFields.d.ts +17 -0
  253. package/dist/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingAdditionalSettings.d.ts +10 -0
  254. package/dist/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingChart.d.ts +9 -0
  255. package/dist/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingSummary.d.ts +10 -0
  256. package/dist/serverGroup/details/scalingPolicy/targetTracking/UpsertTargetTrackingModal.d.ts +9 -0
  257. package/dist/serverGroup/details/scalingPolicy/upsert/PolicyTypeSelectionModal.d.ts +7 -0
  258. package/dist/serverGroup/details/scalingPolicy/upsert/ScalingPolicyAdditionalSettings.d.ts +11 -0
  259. package/dist/serverGroup/details/scalingPolicy/upsert/ScalingPolicyCommandBuilderService.d.ts +11 -0
  260. package/dist/serverGroup/details/scalingPolicy/upsert/UpsertScalingPolicyModal.d.ts +9 -0
  261. package/dist/serverGroup/details/scalingPolicy/upsert/alarm/AlarmConfigurer.d.ts +16 -0
  262. package/dist/serverGroup/details/scalingPolicy/upsert/alarm/DimensionsEditor.d.ts +12 -0
  263. package/dist/serverGroup/details/scalingPolicy/upsert/alarm/MetricSelector.d.ts +15 -0
  264. package/dist/serverGroup/details/scalingPolicy/upsert/alarm/namespaces.d.ts +1 -0
  265. package/dist/serverGroup/details/scalingPolicy/upsert/index.d.ts +7 -0
  266. package/dist/serverGroup/details/scalingPolicy/upsert/simple/SimplePolicyAction.d.ts +13 -0
  267. package/dist/serverGroup/details/scalingPolicy/upsert/step/StepPolicyAction.d.ts +18 -0
  268. package/dist/serverGroup/details/scalingProcesses/AutoScalingProcessService.d.ts +6 -0
  269. package/dist/serverGroup/details/scalingProcesses/modifyScalingProcesses.controller.d.ts +2 -0
  270. package/dist/serverGroup/details/scheduledAction/ScheduledAction.d.ts +8 -0
  271. package/dist/serverGroup/details/scheduledAction/editScheduledActions.modal.controller.d.ts +2 -0
  272. package/dist/serverGroup/details/sections/AdvancedSettingsDetailsSection.d.ts +6 -0
  273. package/dist/serverGroup/details/sections/AmazonCapacityDetailsSection.d.ts +5 -0
  274. package/dist/serverGroup/details/sections/AmazonInfoDetailsSection.d.ts +12 -0
  275. package/dist/serverGroup/details/sections/HealthDetailsSection.d.ts +5 -0
  276. package/dist/serverGroup/details/sections/IAmazonServerGroupDetailsSectionProps.d.ts +5 -0
  277. package/dist/serverGroup/details/sections/InstancesDistributionDetailsSection.d.ts +3 -0
  278. package/dist/serverGroup/details/sections/LaunchConfigDetailsSection.d.ts +11 -0
  279. package/dist/serverGroup/details/sections/LaunchTemplateDetailsSection.d.ts +3 -0
  280. package/dist/serverGroup/details/sections/LogsDetailsSection.d.ts +5 -0
  281. package/dist/serverGroup/details/sections/MultipleInstanceTypesSubSection.d.ts +6 -0
  282. package/dist/serverGroup/details/sections/PackageDetailsSection.d.ts +12 -0
  283. package/dist/serverGroup/details/sections/ScalingPoliciesDetailsSection.d.ts +8 -0
  284. package/dist/serverGroup/details/sections/ScalingProcessesDetailsSection.d.ts +15 -0
  285. package/dist/serverGroup/details/sections/ScheduledActionsDetailsSection.d.ts +12 -0
  286. package/dist/serverGroup/details/sections/SecurityGroupsDetailsSection.d.ts +14 -0
  287. package/dist/serverGroup/details/sections/TagsDetailsSection.d.ts +5 -0
  288. package/dist/serverGroup/details/sections/index.d.ts +15 -0
  289. package/dist/serverGroup/details/securityGroup/editSecurityGroups.modal.controller.d.ts +2 -0
  290. package/dist/serverGroup/details/serverGroupDetails.module.d.ts +1 -0
  291. package/dist/serverGroup/details/utils.d.ts +1 -0
  292. package/dist/serverGroup/index.d.ts +5 -0
  293. package/dist/serverGroup/serverGroup.transformer.d.ts +14 -0
  294. package/dist/subnet/SubnetSelectField.d.ts +23 -0
  295. package/dist/subnet/SubnetSelectInput.d.ts +18 -0
  296. package/dist/subnet/index.d.ts +2 -0
  297. package/dist/subnet/subnet.renderer.d.ts +5 -0
  298. package/dist/validation/ApplicationNameValidator.d.ts +1 -0
  299. package/dist/vpc/VpcReader.d.ts +7 -0
  300. package/dist/vpc/VpcTag.d.ts +5 -0
  301. package/dist/vpc/index.d.ts +1 -0
  302. package/dist/vpc/vpc.module.d.ts +1 -0
  303. package/package.json +63 -0
  304. package/src/applicationProviderFields/awsFields.html +13 -0
  305. package/src/aws.module.ts +211 -0
  306. package/src/aws.settings.ts +71 -0
  307. package/src/aws.validators.ts +31 -0
  308. package/src/certificates/AmazonCertificateReader.ts +24 -0
  309. package/src/certificates/index.ts +1 -0
  310. package/src/common/AwsModalFooter.tsx +70 -0
  311. package/src/common/common.module.ts +6 -0
  312. package/src/common/footer.component.ts +29 -0
  313. package/src/common/index.ts +1 -0
  314. package/src/deploymentStrategy/AdditionalFields.tsx +110 -0
  315. package/src/deploymentStrategy/rollingPush.strategy.ts +43 -0
  316. package/src/domain/IAmazonBlockDeviceMapping.ts +16 -0
  317. package/src/domain/IAmazonCertificate.ts +6 -0
  318. package/src/domain/IAmazonFunction.ts +64 -0
  319. package/src/domain/IAmazonFunctionSourceData.ts +45 -0
  320. package/src/domain/IAmazonHealth.ts +15 -0
  321. package/src/domain/IAmazonInstance.ts +25 -0
  322. package/src/domain/IAmazonLaunchTemplate.ts +104 -0
  323. package/src/domain/IAmazonLoadBalancer.ts +277 -0
  324. package/src/domain/IAmazonLoadBalancerSourceData.ts +188 -0
  325. package/src/domain/IAmazonScalingPolicy.ts +26 -0
  326. package/src/domain/IAmazonSecurityGroup.ts +4 -0
  327. package/src/domain/IAmazonServerGroup.ts +74 -0
  328. package/src/domain/IKeyPair.ts +6 -0
  329. package/src/domain/IScalingPolicy.ts +85 -0
  330. package/src/domain/IScalingProcess.ts +11 -0
  331. package/src/domain/ITargetTrackingPolicy.ts +31 -0
  332. package/src/domain/index.ts +15 -0
  333. package/src/function/CreateLambdaFunction.tsx +228 -0
  334. package/src/function/configure/ExecutionRole.tsx +45 -0
  335. package/src/function/configure/FunctionBasicInformation.tsx +207 -0
  336. package/src/function/configure/FunctionDebugAndErrorHandling.tsx +49 -0
  337. package/src/function/configure/FunctionEnvironmentVariables.tsx +42 -0
  338. package/src/function/configure/FunctionSettings.tsx +43 -0
  339. package/src/function/configure/FunctionTags.tsx +35 -0
  340. package/src/function/configure/Network.tsx +260 -0
  341. package/src/function/details/AmazonFunctionDetails.tsx +198 -0
  342. package/src/function/details/FunctionActions.spec.tsx +55 -0
  343. package/src/function/details/FunctionActions.tsx +132 -0
  344. package/src/function/function.module.ts +5 -0
  345. package/src/function/function.transformer.ts +71 -0
  346. package/src/function/index.ts +5 -0
  347. package/src/help/amazon.help.ts +228 -0
  348. package/src/image/image.reader.spec.ts +75 -0
  349. package/src/image/image.reader.ts +44 -0
  350. package/src/image/index.ts +1 -0
  351. package/src/index.ts +15 -0
  352. package/src/instance/amazon.instance.write.service.ts +85 -0
  353. package/src/instance/awsInstanceType.service.spec.js +380 -0
  354. package/src/instance/awsInstanceType.service.ts +253 -0
  355. package/src/instance/awsInstanceTypes.ts +311 -0
  356. package/src/instance/details/AmazonInstanceInformation.tsx +35 -0
  357. package/src/instance/details/CostFactor.tsx +29 -0
  358. package/src/instance/details/InstanceDns.tsx +73 -0
  359. package/src/instance/details/InstanceInformation.spec.tsx +71 -0
  360. package/src/instance/details/InstanceInformation.tsx +66 -0
  361. package/src/instance/details/InstanceSecurityGroups.tsx +45 -0
  362. package/src/instance/details/InstanceStatus.tsx +92 -0
  363. package/src/instance/details/InstanceTags.tsx +21 -0
  364. package/src/instance/details/amazonInstanceInformation.component.ts +13 -0
  365. package/src/instance/details/instance.details.controller.js +586 -0
  366. package/src/instance/details/instance.details.controller.spec.js +133 -0
  367. package/src/instance/details/instanceDetails.html +65 -0
  368. package/src/instance/details/instanceDns.component.ts +21 -0
  369. package/src/instance/details/instanceSecurityGroups.component.ts +13 -0
  370. package/src/instance/details/instanceStatus.component.ts +19 -0
  371. package/src/instance/details/instanceTags.component.ts +13 -0
  372. package/src/instance/details/utils.ts +34 -0
  373. package/src/instance/index.ts +5 -0
  374. package/src/keyPairs/KeyPairsReader.ts +11 -0
  375. package/src/keyPairs/index.ts +1 -0
  376. package/src/loadBalancer/AmazonLoadBalancerClusterContainer.tsx +53 -0
  377. package/src/loadBalancer/AmazonLoadBalancersTag.tsx +231 -0
  378. package/src/loadBalancer/OidcConfigReader.ts +21 -0
  379. package/src/loadBalancer/TargetGroup.tsx +63 -0
  380. package/src/loadBalancer/TargetGroupDetails.tsx +13 -0
  381. package/src/loadBalancer/amazonLoadBalancerDataUtils.ts +64 -0
  382. package/src/loadBalancer/configure/AmazonLoadBalancerChoiceModal.tsx +155 -0
  383. package/src/loadBalancer/configure/LoadBalancerTypes.ts +42 -0
  384. package/src/loadBalancer/configure/application/ALBAdvancedSettings.tsx +28 -0
  385. package/src/loadBalancer/configure/application/ALBListeners.tsx +1023 -0
  386. package/src/loadBalancer/configure/application/ConfigureConfigModal.css +3 -0
  387. package/src/loadBalancer/configure/application/ConfigureOidcConfigModal.tsx +140 -0
  388. package/src/loadBalancer/configure/application/ConfigureRedirectConfigModal.tsx +146 -0
  389. package/src/loadBalancer/configure/application/CreateApplicationLoadBalancer.tsx +337 -0
  390. package/src/loadBalancer/configure/application/TargetGroups.tsx +548 -0
  391. package/src/loadBalancer/configure/classic/AdvancedSettings.css +3 -0
  392. package/src/loadBalancer/configure/classic/AdvancedSettings.tsx +69 -0
  393. package/src/loadBalancer/configure/classic/CreateClassicLoadBalancer.tsx +282 -0
  394. package/src/loadBalancer/configure/classic/HealthCheck.tsx +69 -0
  395. package/src/loadBalancer/configure/classic/Listeners.less +21 -0
  396. package/src/loadBalancer/configure/classic/Listeners.tsx +273 -0
  397. package/src/loadBalancer/configure/common/AmazonCertificateSelectField.tsx +48 -0
  398. package/src/loadBalancer/configure/common/LoadBalancerLocation.tsx +417 -0
  399. package/src/loadBalancer/configure/common/SecurityGroups.tsx +223 -0
  400. package/src/loadBalancer/configure/common/configure.less +131 -0
  401. package/src/loadBalancer/configure/common/targetGroupValidators.spec.ts +130 -0
  402. package/src/loadBalancer/configure/common/targetGroupValidators.ts +41 -0
  403. package/src/loadBalancer/configure/network/CertificateSelectors.tsx +73 -0
  404. package/src/loadBalancer/configure/network/CreateNetworkLoadBalancer.tsx +303 -0
  405. package/src/loadBalancer/configure/network/NLBAdvancedSettings.tsx +34 -0
  406. package/src/loadBalancer/configure/network/NLBListeners.tsx +298 -0
  407. package/src/loadBalancer/configure/network/TargetGroups.tsx +447 -0
  408. package/src/loadBalancer/details/LoadBalancerActions.tsx +166 -0
  409. package/src/loadBalancer/details/loadBalancerActions.component.ts +16 -0
  410. package/src/loadBalancer/details/loadBalancerDetails.controller.spec.ts +76 -0
  411. package/src/loadBalancer/details/loadBalancerDetails.controller.ts +240 -0
  412. package/src/loadBalancer/details/loadBalancerDetails.html +266 -0
  413. package/src/loadBalancer/details/targetGroupDetails.controller.ts +95 -0
  414. package/src/loadBalancer/details/targetGroupDetails.html +138 -0
  415. package/src/loadBalancer/index.ts +9 -0
  416. package/src/loadBalancer/loadBalancer.module.ts +15 -0
  417. package/src/loadBalancer/loadBalancer.transformer.ts +638 -0
  418. package/src/loadBalancer/targetGroup.less +46 -0
  419. package/src/loadBalancer/targetGroup.states.ts +55 -0
  420. package/src/logo/amazon.logo.svg +503 -0
  421. package/src/logo/aws.icon.svg +10 -0
  422. package/src/logo/aws.logo.less +5 -0
  423. package/src/pipeline/stages/bake/awsBakeStage.js +219 -0
  424. package/src/pipeline/stages/bake/bakeExecutionDetails.controller.js +43 -0
  425. package/src/pipeline/stages/bake/bakeExecutionDetails.html +65 -0
  426. package/src/pipeline/stages/bake/bakeStage.html +205 -0
  427. package/src/pipeline/stages/cloneServerGroup/awsCloneServerGroupStage.js +143 -0
  428. package/src/pipeline/stages/cloneServerGroup/cloneServerGroupStage.html +143 -0
  429. package/src/pipeline/stages/cloneServerGroup/cloneServerGroupStepLabel.html +1 -0
  430. package/src/pipeline/stages/deleteLambda/DeleteLambdaFunctionStageForm.tsx +143 -0
  431. package/src/pipeline/stages/deleteLambda/LambdaDeleteStage.tsx +86 -0
  432. package/src/pipeline/stages/deleteLambda/constants/deleteVersion.constants.ts +37 -0
  433. package/src/pipeline/stages/deleteLambda/constants/deleteVersion.picker.tsx +47 -0
  434. package/src/pipeline/stages/deleteLambda/constants/index.ts +5 -0
  435. package/src/pipeline/stages/deleteLambda/index.ts +17 -0
  436. package/src/pipeline/stages/deployCloudFormation/CloudFormationChangeSetInfo.tsx +80 -0
  437. package/src/pipeline/stages/deployCloudFormation/cloudFormationTemplateEntry.component.ts +46 -0
  438. package/src/pipeline/stages/deployCloudFormation/deployCloudFormationExecutionDetails.tsx +23 -0
  439. package/src/pipeline/stages/deployCloudFormation/deployCloudFormationStackConfig.controller.ts +84 -0
  440. package/src/pipeline/stages/deployCloudFormation/deployCloudFormationStackConfig.html +84 -0
  441. package/src/pipeline/stages/deployCloudFormation/deployCloudFormationStackStage.ts +37 -0
  442. package/src/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecution.service.ts +33 -0
  443. package/src/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionApproval.tsx +80 -0
  444. package/src/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionDetails.tsx +56 -0
  445. package/src/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionLabel.tsx +53 -0
  446. package/src/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionMarkerIcon.tsx +20 -0
  447. package/src/pipeline/stages/deployLambda/components/AwsLambdaFunctionStageForm.tsx +138 -0
  448. package/src/pipeline/stages/deployLambda/components/BasicSettingsForm.tsx +176 -0
  449. package/src/pipeline/stages/deployLambda/components/EnvironmentForm.tsx +24 -0
  450. package/src/pipeline/stages/deployLambda/components/ExecutionRoleForm.tsx +15 -0
  451. package/src/pipeline/stages/deployLambda/components/LambdaAtEdgeForm.tsx +28 -0
  452. package/src/pipeline/stages/deployLambda/components/NetworkForm.tsx +123 -0
  453. package/src/pipeline/stages/deployLambda/components/TriggerEventsForm.tsx +49 -0
  454. package/src/pipeline/stages/deployLambda/components/function.constants.ts +32 -0
  455. package/src/pipeline/stages/deployLambda/components/index.ts +8 -0
  456. package/src/pipeline/stages/deployLambda/config/LambdaDeploymentStage.tsx +20 -0
  457. package/src/pipeline/stages/deployLambda/config/LambdaDeploymentStageConfig.tsx +64 -0
  458. package/src/pipeline/stages/deployLambda/config/LambdaDeploymentStageExecutionDetails.tsx +31 -0
  459. package/src/pipeline/stages/deployLambda/config/UpsertDefaults.tsx +21 -0
  460. package/src/pipeline/stages/deployLambda/config/function.defaults.ts +39 -0
  461. package/src/pipeline/stages/deployLambda/index.ts +18 -0
  462. package/src/pipeline/stages/destroyAsg/awsDestroyAsgStage.js +66 -0
  463. package/src/pipeline/stages/destroyAsg/destroyAsgStage.html +9 -0
  464. package/src/pipeline/stages/destroyAsg/destroyAsgStepLabel.html +1 -0
  465. package/src/pipeline/stages/disableAsg/awsDisableAsgStage.js +69 -0
  466. package/src/pipeline/stages/disableAsg/disableAsgStage.html +11 -0
  467. package/src/pipeline/stages/disableAsg/disableAsgStepLabel.html +1 -0
  468. package/src/pipeline/stages/disableCluster/awsDisableClusterStage.js +84 -0
  469. package/src/pipeline/stages/disableCluster/disableClusterStage.html +26 -0
  470. package/src/pipeline/stages/enableAsg/awsEnableAsgStage.js +73 -0
  471. package/src/pipeline/stages/enableAsg/enableAsgStage.html +11 -0
  472. package/src/pipeline/stages/enableAsg/enableAsgStepLabel.html +1 -0
  473. package/src/pipeline/stages/findAmi/awsFindAmiStage.js +79 -0
  474. package/src/pipeline/stages/findAmi/findAmiStage.html +24 -0
  475. package/src/pipeline/stages/findImageFromTags/awsFindImageFromTagsStage.js +36 -0
  476. package/src/pipeline/stages/findImageFromTags/findImageFromTagsExecutionDetails.html +44 -0
  477. package/src/pipeline/stages/findImageFromTags/findImageFromTagsStage.html +11 -0
  478. package/src/pipeline/stages/invokeLambda/InvokeLambdaFunctionStageForm.tsx +106 -0
  479. package/src/pipeline/stages/invokeLambda/LambdaInvokeStage.tsx +125 -0
  480. package/src/pipeline/stages/invokeLambda/components/InvokeLambdaOperation.tsx +78 -0
  481. package/src/pipeline/stages/invokeLambda/components/index.ts +4 -0
  482. package/src/pipeline/stages/invokeLambda/index.ts +18 -0
  483. package/src/pipeline/stages/modifyScalingProcess/modifyScalingProcessExecutionDetails.html +36 -0
  484. package/src/pipeline/stages/modifyScalingProcess/modifyScalingProcessStage.html +24 -0
  485. package/src/pipeline/stages/modifyScalingProcess/modifyScalingProcessStage.js +98 -0
  486. package/src/pipeline/stages/resizeAsg/awsResizeAsgStage.js +127 -0
  487. package/src/pipeline/stages/resizeAsg/resizeAsgStage.html +90 -0
  488. package/src/pipeline/stages/resizeAsg/resizeAsgStepLabel.html +4 -0
  489. package/src/pipeline/stages/rollbackCluster/awsRollbackClusterStage.js +66 -0
  490. package/src/pipeline/stages/rollbackCluster/rollbackClusterStage.html +43 -0
  491. package/src/pipeline/stages/routeLambda/LambdaRouteStage.tsx +98 -0
  492. package/src/pipeline/stages/routeLambda/RouteLambdaFunctionStageForm.tsx +150 -0
  493. package/src/pipeline/stages/routeLambda/TriggerEventsForm.tsx +51 -0
  494. package/src/pipeline/stages/routeLambda/components/BlueGreenDeployment/BlueGreenDeploymentForm.tsx +27 -0
  495. package/src/pipeline/stages/routeLambda/components/BlueGreenDeployment/HealthCheckStrategy.tsx +21 -0
  496. package/src/pipeline/stages/routeLambda/components/BlueGreenDeployment/InvocationHealthCheck.tsx +93 -0
  497. package/src/pipeline/stages/routeLambda/components/BlueGreenDeployment/health.constants.ts +14 -0
  498. package/src/pipeline/stages/routeLambda/components/BlueGreenDeployment/index.ts +4 -0
  499. package/src/pipeline/stages/routeLambda/components/DeploymentStrategyForm.tsx +18 -0
  500. package/src/pipeline/stages/routeLambda/components/RenderStrategy.tsx +23 -0
  501. package/src/pipeline/stages/routeLambda/components/SimpleDeploymentForm.tsx +67 -0
  502. package/src/pipeline/stages/routeLambda/components/VersionPicker.tsx +43 -0
  503. package/src/pipeline/stages/routeLambda/components/WeightedDeploymentForm.tsx +107 -0
  504. package/src/pipeline/stages/routeLambda/components/index.ts +4 -0
  505. package/src/pipeline/stages/routeLambda/constants/index.ts +6 -0
  506. package/src/pipeline/stages/routeLambda/constants/strategy.constants.tsx +26 -0
  507. package/src/pipeline/stages/routeLambda/constants/strategy.picker.tsx +47 -0
  508. package/src/pipeline/stages/routeLambda/constants/versions.constants.ts +31 -0
  509. package/src/pipeline/stages/routeLambda/index.ts +18 -0
  510. package/src/pipeline/stages/scaleDownCluster/awsScaleDownClusterStage.js +78 -0
  511. package/src/pipeline/stages/scaleDownCluster/scaleDownClusterStage.html +35 -0
  512. package/src/pipeline/stages/shrinkCluster/awsShrinkClusterStage.js +73 -0
  513. package/src/pipeline/stages/shrinkCluster/shrinkClusterStage.html +34 -0
  514. package/src/pipeline/stages/tagImage/awsTagImageStage.js +34 -0
  515. package/src/pipeline/stages/tagImage/tagImageExecutionDetails.html +38 -0
  516. package/src/pipeline/stages/tagImage/tagImageStage.html +10 -0
  517. package/src/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStage.less +5 -0
  518. package/src/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStage.tsx +20 -0
  519. package/src/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStageConfig.tsx +41 -0
  520. package/src/pipeline/stages/updateCodeLambda/LambdaUpdateCodeStageExecutionDetails.tsx +31 -0
  521. package/src/pipeline/stages/updateCodeLambda/components/UpdateCodeStageForm.tsx +122 -0
  522. package/src/pipeline/stages/updateCodeLambda/components/index.ts +4 -0
  523. package/src/pipeline/stages/updateCodeLambda/index.ts +18 -0
  524. package/src/reactShims/aws.react.injector.ts +25 -0
  525. package/src/reactShims/aws.react.module.ts +12 -0
  526. package/src/reactShims/index.ts +1 -0
  527. package/src/search/searchResultFormatter.ts +19 -0
  528. package/src/securityGroup/clone/cloneSecurityGroup.controller.js +106 -0
  529. package/src/securityGroup/clone/cloneSecurityGroup.html +19 -0
  530. package/src/securityGroup/configure/CreateSecurityGroup.controller.spec.js +307 -0
  531. package/src/securityGroup/configure/CreateSecurityGroupCtrl.js +47 -0
  532. package/src/securityGroup/configure/EditSecurityGroupCtrl.js +115 -0
  533. package/src/securityGroup/configure/configSecurityGroup.mixin.controller.js +366 -0
  534. package/src/securityGroup/configure/createSecurityGroup.html +19 -0
  535. package/src/securityGroup/configure/createSecurityGroupIngress.html +100 -0
  536. package/src/securityGroup/configure/createSecurityGroupProperties.html +123 -0
  537. package/src/securityGroup/configure/editSecurityGroup.html +20 -0
  538. package/src/securityGroup/configure/ingressRuleGroupSelector.component.html +77 -0
  539. package/src/securityGroup/configure/ingressRuleGroupSelector.component.less +6 -0
  540. package/src/securityGroup/configure/ingressRuleGroupSelector.component.ts +190 -0
  541. package/src/securityGroup/configure/securityGroupDetailsCustom.component.ts +16 -0
  542. package/src/securityGroup/configure/securityGroupDetailsCustom.tsx +16 -0
  543. package/src/securityGroup/details/IPRangeRules.tsx +56 -0
  544. package/src/securityGroup/details/index.ts +1 -0
  545. package/src/securityGroup/details/securityGroupDetail.controller.js +249 -0
  546. package/src/securityGroup/details/securityGroupDetail.html +114 -0
  547. package/src/securityGroup/details/securityGroupIpRangeRules.component.ts +12 -0
  548. package/src/securityGroup/index.ts +1 -0
  549. package/src/securityGroup/securityGroup.module.ts +26 -0
  550. package/src/securityGroup/securityGroup.reader.ts +24 -0
  551. package/src/securityGroup/securityGroup.transformer.js +48 -0
  552. package/src/serverGroup/AvailabilityZoneSelector.tsx +107 -0
  553. package/src/serverGroup/configure/AccountServiceFixtures.js +45 -0
  554. package/src/serverGroup/configure/AmazonImageSelectInput.spec.tsx +101 -0
  555. package/src/serverGroup/configure/AmazonImageSelectInput.tsx +412 -0
  556. package/src/serverGroup/configure/index.ts +5 -0
  557. package/src/serverGroup/configure/serverGroupCommandBuilder.aws.service.spec.js +430 -0
  558. package/src/serverGroup/configure/serverGroupCommandBuilder.service.ts +528 -0
  559. package/src/serverGroup/configure/serverGroupCommandBuilder.spec.js +284 -0
  560. package/src/serverGroup/configure/serverGroupConfiguration.service.spec.ts +478 -0
  561. package/src/serverGroup/configure/serverGroupConfiguration.service.ts +747 -0
  562. package/src/serverGroup/configure/wizard/AmazonCloneServerGroupModal.tsx +243 -0
  563. package/src/serverGroup/configure/wizard/ServerGroupTemplateSelection.tsx +60 -0
  564. package/src/serverGroup/configure/wizard/capacity/CapacitySelector.tsx +181 -0
  565. package/src/serverGroup/configure/wizard/capacity/MinMaxDesired.tsx +60 -0
  566. package/src/serverGroup/configure/wizard/instanceType/CpuCreditsToggle.tsx +62 -0
  567. package/src/serverGroup/configure/wizard/instanceType/InstanceTypeSelector.tsx +167 -0
  568. package/src/serverGroup/configure/wizard/instanceType/InstanceTypeWarning.tsx +44 -0
  569. package/src/serverGroup/configure/wizard/instanceType/advancedMode/AdvancedModeSelector.tsx +102 -0
  570. package/src/serverGroup/configure/wizard/instanceType/advancedMode/AmazonInstanceTypeInfoRenderer.tsx +59 -0
  571. package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstanceProfileSelector.tsx +36 -0
  572. package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeRow.tsx +157 -0
  573. package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeSelect.tsx +78 -0
  574. package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeTable.tsx +148 -0
  575. package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeTableBody.tsx +144 -0
  576. package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstanceTypeTableParts.tsx +129 -0
  577. package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstancesDistribution.less +5 -0
  578. package/src/serverGroup/configure/wizard/instanceType/advancedMode/InstancesDistribution.tsx +111 -0
  579. package/src/serverGroup/configure/wizard/instanceType/advancedMode/advancedMode.less +122 -0
  580. package/src/serverGroup/configure/wizard/instanceType/simpleMode/SimpleModeSelector.tsx +65 -0
  581. package/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx +354 -0
  582. package/src/serverGroup/configure/wizard/pages/ServerGroupCapacity.tsx +66 -0
  583. package/src/serverGroup/configure/wizard/pages/ServerGroupInstanceType.tsx +157 -0
  584. package/src/serverGroup/configure/wizard/pages/ServerGroupLoadBalancers.tsx +262 -0
  585. package/src/serverGroup/configure/wizard/pages/ServerGroupSecurityGroups.tsx +52 -0
  586. package/src/serverGroup/configure/wizard/pages/ServerGroupZones.tsx +68 -0
  587. package/src/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettings.tsx +30 -0
  588. package/src/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettingsCommon.tsx +374 -0
  589. package/src/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettingsInner.tsx +40 -0
  590. package/src/serverGroup/configure/wizard/pages/index.ts +8 -0
  591. package/src/serverGroup/configure/wizard/securityGroups/SecurityGroupSelector.tsx +108 -0
  592. package/src/serverGroup/configure/wizard/securityGroups/ServerGroupSecurityGroupsRemoved.tsx +49 -0
  593. package/src/serverGroup/details/AmazonServerGroupActions.tsx +343 -0
  594. package/src/serverGroup/details/advancedSettings/editAsgAdvancedSettings.modal.controller.js +47 -0
  595. package/src/serverGroup/details/advancedSettings/editAsgAdvancedSettings.modal.html +79 -0
  596. package/src/serverGroup/details/amazonServerGroupDetailsGetter.ts +83 -0
  597. package/src/serverGroup/details/resize/AmazonResizeServerGroupModal.tsx +458 -0
  598. package/src/serverGroup/details/rollback/rollbackServerGroup.controller.js +146 -0
  599. package/src/serverGroup/details/rollback/rollbackServerGroup.html +139 -0
  600. package/src/serverGroup/details/scalingPolicy/CreateScalingPolicyButton.tsx +97 -0
  601. package/src/serverGroup/details/scalingPolicy/ScalingPolicySummary.tsx +33 -0
  602. package/src/serverGroup/details/scalingPolicy/ScalingPolicyWriter.ts +102 -0
  603. package/src/serverGroup/details/scalingPolicy/StepPolicySummary.less +10 -0
  604. package/src/serverGroup/details/scalingPolicy/StepPolicySummary.tsx +120 -0
  605. package/src/serverGroup/details/scalingPolicy/chart/DateLineChart.tsx +117 -0
  606. package/src/serverGroup/details/scalingPolicy/chart/MetricAlarmChart.tsx +85 -0
  607. package/src/serverGroup/details/scalingPolicy/createScalingPolicyButton.component.ts +15 -0
  608. package/src/serverGroup/details/scalingPolicy/index.ts +12 -0
  609. package/src/serverGroup/details/scalingPolicy/popover/AlarmSummary.tsx +26 -0
  610. package/src/serverGroup/details/scalingPolicy/popover/StepPolicyPopoverContent.tsx +90 -0
  611. package/src/serverGroup/details/scalingPolicy/scalingPolicy.module.ts +6 -0
  612. package/src/serverGroup/details/scalingPolicy/scalingPolicySummary.component.ts +14 -0
  613. package/src/serverGroup/details/scalingPolicy/targetTracking/TargetMetricFields.less +10 -0
  614. package/src/serverGroup/details/scalingPolicy/targetTracking/TargetMetricFields.tsx +212 -0
  615. package/src/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingAdditionalSettings.less +11 -0
  616. package/src/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingAdditionalSettings.tsx +122 -0
  617. package/src/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingChart.tsx +85 -0
  618. package/src/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingSummary.less +11 -0
  619. package/src/serverGroup/details/scalingPolicy/targetTracking/TargetTrackingSummary.tsx +117 -0
  620. package/src/serverGroup/details/scalingPolicy/targetTracking/UpsertTargetTrackingModal.tsx +77 -0
  621. package/src/serverGroup/details/scalingPolicy/upsert/PolicyTypeSelectionModal.tsx +77 -0
  622. package/src/serverGroup/details/scalingPolicy/upsert/ScalingPolicyAdditionalSettings.less +11 -0
  623. package/src/serverGroup/details/scalingPolicy/upsert/ScalingPolicyAdditionalSettings.tsx +105 -0
  624. package/src/serverGroup/details/scalingPolicy/upsert/ScalingPolicyCommandBuilderService.ts +133 -0
  625. package/src/serverGroup/details/scalingPolicy/upsert/UpsertScalingPolicyModal.tsx +213 -0
  626. package/src/serverGroup/details/scalingPolicy/upsert/alarm/AlarmConfigurer.less +19 -0
  627. package/src/serverGroup/details/scalingPolicy/upsert/alarm/AlarmConfigurer.tsx +176 -0
  628. package/src/serverGroup/details/scalingPolicy/upsert/alarm/DimensionsEditor.tsx +89 -0
  629. package/src/serverGroup/details/scalingPolicy/upsert/alarm/MetricSelector.less +15 -0
  630. package/src/serverGroup/details/scalingPolicy/upsert/alarm/MetricSelector.tsx +170 -0
  631. package/src/serverGroup/details/scalingPolicy/upsert/alarm/dimensionsEditor.less +18 -0
  632. package/src/serverGroup/details/scalingPolicy/upsert/alarm/namespaces.ts +31 -0
  633. package/src/serverGroup/details/scalingPolicy/upsert/index.ts +7 -0
  634. package/src/serverGroup/details/scalingPolicy/upsert/simple/SimplePolicyAction.less +9 -0
  635. package/src/serverGroup/details/scalingPolicy/upsert/simple/SimplePolicyAction.tsx +70 -0
  636. package/src/serverGroup/details/scalingPolicy/upsert/step/StepPolicyAction.less +18 -0
  637. package/src/serverGroup/details/scalingPolicy/upsert/step/StepPolicyAction.tsx +163 -0
  638. package/src/serverGroup/details/scalingProcesses/AutoScalingProcessService.spec.ts +94 -0
  639. package/src/serverGroup/details/scalingProcesses/AutoScalingProcessService.ts +76 -0
  640. package/src/serverGroup/details/scalingProcesses/modifyScalingProcesses.controller.js +95 -0
  641. package/src/serverGroup/details/scalingProcesses/modifyScalingProcesses.controller.spec.js +106 -0
  642. package/src/serverGroup/details/scalingProcesses/modifyScalingProcesses.html +30 -0
  643. package/src/serverGroup/details/scheduledAction/ScheduledAction.tsx +25 -0
  644. package/src/serverGroup/details/scheduledAction/editScheduledActions.modal.controller.js +70 -0
  645. package/src/serverGroup/details/scheduledAction/editScheduledActions.modal.html +89 -0
  646. package/src/serverGroup/details/sections/AdvancedSettingsDetailsSection.tsx +61 -0
  647. package/src/serverGroup/details/sections/AmazonCapacityDetailsSection.tsx +39 -0
  648. package/src/serverGroup/details/sections/AmazonInfoDetailsSection.tsx +89 -0
  649. package/src/serverGroup/details/sections/HealthDetailsSection.tsx +25 -0
  650. package/src/serverGroup/details/sections/IAmazonServerGroupDetailsSectionProps.ts +6 -0
  651. package/src/serverGroup/details/sections/InstancesDistributionDetailsSection.spec.tsx +88 -0
  652. package/src/serverGroup/details/sections/InstancesDistributionDetailsSection.tsx +50 -0
  653. package/src/serverGroup/details/sections/LaunchConfigDetailsSection.tsx +93 -0
  654. package/src/serverGroup/details/sections/LaunchTemplateDetailsSection.spec.tsx +255 -0
  655. package/src/serverGroup/details/sections/LaunchTemplateDetailsSection.tsx +61 -0
  656. package/src/serverGroup/details/sections/LogsDetailsSection.tsx +19 -0
  657. package/src/serverGroup/details/sections/MultipleInstanceTypesSubSection.tsx +44 -0
  658. package/src/serverGroup/details/sections/PackageDetailsSection.tsx +78 -0
  659. package/src/serverGroup/details/sections/ScalingPoliciesDetailsSection.tsx +65 -0
  660. package/src/serverGroup/details/sections/ScalingProcessesDetailsSection.tsx +113 -0
  661. package/src/serverGroup/details/sections/ScheduledActionsDetailsSection.tsx +92 -0
  662. package/src/serverGroup/details/sections/SecurityGroupsDetailsSection.tsx +119 -0
  663. package/src/serverGroup/details/sections/TagsDetailsSection.tsx +26 -0
  664. package/src/serverGroup/details/sections/index.ts +15 -0
  665. package/src/serverGroup/details/sections/multipleInstanceTypesSubSection.less +50 -0
  666. package/src/serverGroup/details/securityGroup/editSecurityGroups.modal.controller.js +95 -0
  667. package/src/serverGroup/details/securityGroup/editSecurityGroups.modal.html +40 -0
  668. package/src/serverGroup/details/serverGroupDetails.module.ts +18 -0
  669. package/src/serverGroup/details/utils.spec.ts +23 -0
  670. package/src/serverGroup/details/utils.ts +13 -0
  671. package/src/serverGroup/index.ts +5 -0
  672. package/src/serverGroup/serverGroup.transformer.spec.ts +185 -0
  673. package/src/serverGroup/serverGroup.transformer.ts +160 -0
  674. package/src/subnet/SubnetSelectField.tsx +84 -0
  675. package/src/subnet/SubnetSelectInput.spec.tsx +91 -0
  676. package/src/subnet/SubnetSelectInput.tsx +111 -0
  677. package/src/subnet/index.ts +2 -0
  678. package/src/subnet/subnet.renderer.ts +12 -0
  679. package/src/validation/ApplicationNameValidator.ts +84 -0
  680. package/src/vpc/VpcReader.spec.ts +45 -0
  681. package/src/vpc/VpcReader.ts +36 -0
  682. package/src/vpc/VpcTag.spec.tsx +37 -0
  683. package/src/vpc/VpcTag.tsx +24 -0
  684. package/src/vpc/index.ts +1 -0
  685. package/src/vpc/vpc.module.ts +9 -0
@@ -0,0 +1,45 @@
1
+ import type { FormikErrors, FormikProps } from 'formik';
2
+ import React from 'react';
3
+
4
+ import type { IWizardPageComponent } from '@spinnaker/core';
5
+ import { FormikFormField, FormValidator, TextInput } from '@spinnaker/core';
6
+ import { iamRoleValidator } from '../../aws.validators';
7
+ import type { IAmazonFunction } from '../../domain';
8
+ import type { IAmazonFunctionUpsertCommand } from '../../index';
9
+
10
+ export interface IExecutionRoleProps {
11
+ formik: FormikProps<IAmazonFunctionUpsertCommand>;
12
+ isNew?: boolean;
13
+ functionDef: IAmazonFunction;
14
+ }
15
+
16
+ export class ExecutionRole
17
+ extends React.Component<IExecutionRoleProps>
18
+ implements IWizardPageComponent<IAmazonFunctionUpsertCommand> {
19
+ constructor(props: IExecutionRoleProps) {
20
+ super(props);
21
+ }
22
+
23
+ public validate(values: IAmazonFunctionUpsertCommand): FormikErrors<IAmazonFunctionUpsertCommand> {
24
+ const validator = new FormValidator(values);
25
+ validator.field('role', 'Role ARN').required().withValidators(iamRoleValidator);
26
+ return validator.validateForm();
27
+ }
28
+
29
+ public render() {
30
+ return (
31
+ <div className="form-group">
32
+ <div className="col-md-11">
33
+ <div className="sp-margin-m-bottom">
34
+ <FormikFormField
35
+ name="role"
36
+ label="Role ARN"
37
+ input={(props) => <TextInput {...props} placeholder="Enter role ARN" name="role" />}
38
+ required={true}
39
+ />
40
+ </div>
41
+ </div>
42
+ </div>
43
+ );
44
+ }
45
+ }
@@ -0,0 +1,207 @@
1
+ import classNames from 'classnames';
2
+ import type { FormikErrors, FormikProps } from 'formik';
3
+ import React from 'react';
4
+ import type { Observable } from 'rxjs';
5
+ import { combineLatest as observableCombineLatest, from as observableFrom, Subject } from 'rxjs';
6
+ import { distinctUntilChanged, map, shareReplay, switchMap, takeUntil, withLatestFrom } from 'rxjs/operators';
7
+
8
+ import type { Application, IAccount, IRegion, IWizardPageComponent } from '@spinnaker/core';
9
+ import {
10
+ AccountService,
11
+ CheckboxInput,
12
+ FormikFormField,
13
+ FormValidator,
14
+ HelpField,
15
+ ReactSelectInput,
16
+ TextInput,
17
+ } from '@spinnaker/core';
18
+ import { s3BucketNameValidator } from '../../aws.validators';
19
+ import type { IAmazonFunction } from '../../domain';
20
+ import type { IAmazonFunctionUpsertCommand } from '../../index';
21
+
22
+ import { availableRuntimes } from '../../pipeline/stages/deployLambda/components/function.constants';
23
+
24
+ export interface IFunctionProps {
25
+ app: Application;
26
+ formik: FormikProps<IAmazonFunctionUpsertCommand>;
27
+ isNew?: boolean;
28
+ functionDef: IAmazonFunction;
29
+ }
30
+
31
+ export interface IFunctionState {
32
+ existingFunctionNames: string[];
33
+ accounts: IAccount[];
34
+ regions: IRegion[];
35
+ }
36
+
37
+ export class FunctionBasicInformation
38
+ extends React.Component<IFunctionProps, IFunctionState>
39
+ implements IWizardPageComponent<IAmazonFunctionUpsertCommand> {
40
+ public state: IFunctionState = {
41
+ accounts: [],
42
+ existingFunctionNames: [],
43
+ regions: [],
44
+ };
45
+
46
+ private props$ = new Subject<IFunctionProps>();
47
+ private destroy$ = new Subject<void>();
48
+
49
+ public validate(values: IAmazonFunctionUpsertCommand): FormikErrors<IAmazonFunctionUpsertCommand> {
50
+ const validator = new FormValidator(values);
51
+ validator.field('s3bucket', 'S3 Bucket Name').optional().withValidators(s3BucketNameValidator);
52
+ const errors = validator.validateForm();
53
+
54
+ if (
55
+ this.props.isNew &&
56
+ this.state.existingFunctionNames.includes(this.props.app.name.concat('-').concat(values.functionName))
57
+ ) {
58
+ errors.functionName = `There is already a function in ${values.credentials}:${values.region} with that name.`;
59
+ }
60
+ return errors;
61
+ }
62
+
63
+ public componentDidUpdate() {
64
+ this.props$.next(this.props);
65
+ }
66
+
67
+ public componentWillUnmount(): void {
68
+ this.destroy$.next();
69
+ }
70
+
71
+ public componentDidMount(): void {
72
+ const formValues$ = this.props$.pipe(map((props) => props.formik.values));
73
+
74
+ const form = {
75
+ account$: formValues$.pipe(
76
+ map((x) => x.credentials),
77
+ distinctUntilChanged(),
78
+ ),
79
+ region$: formValues$.pipe(
80
+ map((x) => x.region),
81
+ distinctUntilChanged(),
82
+ ),
83
+ functionName$: formValues$.pipe(
84
+ map((x) => x.functionName),
85
+ distinctUntilChanged(),
86
+ ),
87
+ runtime$: formValues$.pipe(
88
+ map((x) => x.runtime),
89
+ distinctUntilChanged(),
90
+ ),
91
+ s3bucket$: formValues$.pipe(
92
+ map((x) => x.s3bucket),
93
+ distinctUntilChanged(),
94
+ ),
95
+ s3key$: formValues$.pipe(
96
+ map((x) => x.s3key),
97
+ distinctUntilChanged(),
98
+ ),
99
+ handler$: formValues$.pipe(
100
+ map((x) => x.handler),
101
+ distinctUntilChanged(),
102
+ ),
103
+ };
104
+
105
+ const allAccounts$ = observableFrom(AccountService.listAccounts('aws')).pipe(shareReplay(1));
106
+ // combineLatest with allAccounts to wait for accounts to load and be cached
107
+ const accountRegions$ = observableCombineLatest([form.account$, allAccounts$]).pipe(
108
+ switchMap(([currentAccount, _allAccounts]) => AccountService.getRegionsForAccount(currentAccount)),
109
+ shareReplay(1),
110
+ );
111
+
112
+ const allFunctions$ = this.props.app.getDataSource('functions').data$ as Observable<IAmazonFunction[]>;
113
+ const regionfunctions$ = observableCombineLatest([allFunctions$, form.account$, form.region$]).pipe(
114
+ map(([allFunctions, currentAccount, currentRegion]) => {
115
+ return allFunctions
116
+ .filter((fn) => fn.account === currentAccount && fn.region === currentRegion)
117
+ .map((fn) => fn.functionName);
118
+ }),
119
+ shareReplay(1),
120
+ );
121
+
122
+ accountRegions$
123
+ .pipe(withLatestFrom(form.region$), takeUntil(this.destroy$))
124
+ .subscribe(([accountRegions, selectedRegion]) => {
125
+ // If the selected region doesn't exist in the new list of regions (for a new acct), select the first region.
126
+ if (!accountRegions.some((x) => x.name === selectedRegion)) {
127
+ this.props.formik.setFieldValue('region', accountRegions[0] && accountRegions[0].name);
128
+ }
129
+ });
130
+
131
+ observableCombineLatest([allAccounts$, accountRegions$, regionfunctions$])
132
+ .pipe(takeUntil(this.destroy$))
133
+ .subscribe(([accounts, regions, existingFunctionNames]) => {
134
+ return this.setState({ accounts, regions, existingFunctionNames });
135
+ });
136
+ }
137
+
138
+ public render() {
139
+ const { isNew } = this.props;
140
+ const { errors, values } = this.props.formik;
141
+ const { accounts, regions } = this.state;
142
+ const className = classNames({
143
+ well: true,
144
+ 'alert-danger': !!errors.functionName,
145
+ 'alert-info': !errors.functionName,
146
+ });
147
+ return (
148
+ <div className="container-fluid form-horizontal ">
149
+ {isNew && (
150
+ <div className={className}>
151
+ <strong>Your function will be named: </strong>
152
+ <HelpField id="aws.function.name" />
153
+ <span>
154
+ {this.props.app.name}-{values.functionName}
155
+ </span>
156
+ <FormikFormField name="functionName" input={() => null} />
157
+ </div>
158
+ )}
159
+ <FormikFormField
160
+ name="credentials"
161
+ label="Account"
162
+ input={(props) => (
163
+ <ReactSelectInput {...props} stringOptions={accounts.map((acc: IAccount) => acc.name)} clearable={true} />
164
+ )}
165
+ />
166
+ <FormikFormField
167
+ name="region"
168
+ label="Region"
169
+ input={(props) => (
170
+ <ReactSelectInput {...props} stringOptions={regions.map((reg: IRegion) => reg.name)} clearable={true} />
171
+ )}
172
+ />
173
+ <FormikFormField
174
+ name="functionName"
175
+ label="Function Name"
176
+ help={<HelpField id="aws.function.name" />}
177
+ input={(props) => <TextInput {...props} />}
178
+ />
179
+ <FormikFormField
180
+ name="runtime"
181
+ label="Runtime"
182
+ help={<HelpField id="aws.function.runtime" />}
183
+ input={(props) => <ReactSelectInput {...props} stringOptions={availableRuntimes} clearable={true} />}
184
+ />
185
+ <FormikFormField
186
+ name="s3bucket"
187
+ label="S3 Bucket"
188
+ help={<HelpField id="aws.function.s3bucket" />}
189
+ input={(props) => <TextInput {...props} placeholder="S3 bucket name" />}
190
+ />
191
+ <FormikFormField
192
+ name="s3key"
193
+ label="S3 Key"
194
+ help={<HelpField id="aws.function.s3key" />}
195
+ input={(props) => <TextInput {...props} placeholder="object.zip" />}
196
+ />
197
+ <FormikFormField
198
+ name="handler"
199
+ label="Handler"
200
+ help={<HelpField id="aws.function.handler" />}
201
+ input={(props) => <TextInput {...props} placeholder="filename.method" />}
202
+ />
203
+ <FormikFormField name="publish" label="Publish" input={(props) => <CheckboxInput {...props} />} />
204
+ </div>
205
+ );
206
+ }
207
+ }
@@ -0,0 +1,49 @@
1
+ import type { FormikErrors, FormikProps } from 'formik';
2
+ import React from 'react';
3
+
4
+ import type { IWizardPageComponent } from '@spinnaker/core';
5
+ import { FormikFormField, FormValidator, HelpField, ReactSelectInput, TextInput } from '@spinnaker/core';
6
+ import { awsArnValidator } from '../../aws.validators';
7
+ import type { IAmazonFunction } from '../../domain';
8
+ import type { IAmazonFunctionUpsertCommand } from '../../index';
9
+
10
+ export interface IFunctionDebugAndErrorHandlingProps {
11
+ formik: FormikProps<IAmazonFunctionUpsertCommand>;
12
+ isNew?: boolean;
13
+ functionDef: IAmazonFunction;
14
+ }
15
+
16
+ export class FunctionDebugAndErrorHandling
17
+ extends React.Component<IFunctionDebugAndErrorHandlingProps>
18
+ implements IWizardPageComponent<IAmazonFunctionUpsertCommand> {
19
+ constructor(props: IFunctionDebugAndErrorHandlingProps) {
20
+ super(props);
21
+ }
22
+
23
+ public validate = (values: IAmazonFunctionUpsertCommand): FormikErrors<IAmazonFunctionUpsertCommand> => {
24
+ const validator = new FormValidator(values);
25
+ validator.field('deadLetterConfig.targetArn', 'Target ARN').optional().withValidators(awsArnValidator);
26
+ return validator.validateForm();
27
+ };
28
+
29
+ public render() {
30
+ return (
31
+ <div className="container-fluid form-horizontal ">
32
+ Dead Letter Config
33
+ <FormikFormField
34
+ name="deadLetterConfig.targetArn"
35
+ label="Target ARN"
36
+ help={<HelpField id="aws.function.deadletterqueue" />}
37
+ input={(props) => <TextInput {...props} />}
38
+ />
39
+ X-Ray Tracing
40
+ <FormikFormField
41
+ name="tracingConfig.mode"
42
+ label="Mode"
43
+ help={<HelpField id="aws.function.tracingConfig.mode" />}
44
+ input={(props) => <ReactSelectInput {...props} stringOptions={['Active', 'PassThrough']} clearable={true} />}
45
+ />
46
+ </div>
47
+ );
48
+ }
49
+ }
@@ -0,0 +1,42 @@
1
+ import type { FormikProps } from 'formik';
2
+ import React from 'react';
3
+
4
+ import type { IWizardPageComponent } from '@spinnaker/core';
5
+ import { FormikFormField, FormValidator, HelpField, MapEditorInput, TextInput } from '@spinnaker/core';
6
+ import { awsArnValidator } from '../../aws.validators';
7
+ import type { IAmazonFunction } from '../../domain';
8
+ import type { IAmazonFunctionUpsertCommand } from '../../index';
9
+
10
+ export interface IFunctionEnvironmentVariablesProps {
11
+ formik: FormikProps<IAmazonFunctionUpsertCommand>;
12
+ isNew?: boolean;
13
+ functionDef: IAmazonFunction;
14
+ }
15
+
16
+ export class FunctionEnvironmentVariables
17
+ extends React.Component<IFunctionEnvironmentVariablesProps>
18
+ implements IWizardPageComponent<IAmazonFunctionUpsertCommand> {
19
+ public validate = (values: IAmazonFunctionUpsertCommand) => {
20
+ const validator = new FormValidator(values);
21
+ validator.field('kmskeyArn', 'KMS Key ARN').optional().withValidators(awsArnValidator);
22
+ return validator.validateForm();
23
+ };
24
+
25
+ public render() {
26
+ return (
27
+ <div className="container-fluid form-horizontal ">
28
+ <FormikFormField
29
+ name="envVariables"
30
+ label="Env Variables"
31
+ input={(props) => <MapEditorInput {...props} allowEmptyValues={true} addButtonLabel="Add" />}
32
+ />
33
+ <FormikFormField
34
+ name="kmskeyArn"
35
+ label="Key ARN"
36
+ help={<HelpField id="aws.function.kmsKeyArn" />}
37
+ input={(props) => <TextInput {...props} />}
38
+ />
39
+ </div>
40
+ );
41
+ }
42
+ }
@@ -0,0 +1,43 @@
1
+ import type { FormikProps } from 'formik';
2
+ import React from 'react';
3
+
4
+ import type { IWizardPageComponent } from '@spinnaker/core';
5
+ import { FormikFormField, HelpField, NumberInput, TextInput } from '@spinnaker/core';
6
+ import type { IAmazonFunction } from '../../domain';
7
+ import type { IAmazonFunctionUpsertCommand } from '../../index';
8
+
9
+ export interface IFunctionSettingsProps {
10
+ formik: FormikProps<IAmazonFunctionUpsertCommand>;
11
+ isNew?: boolean;
12
+ functionDef: IAmazonFunction;
13
+ }
14
+
15
+ export class FunctionSettings
16
+ extends React.Component<IFunctionSettingsProps>
17
+ implements IWizardPageComponent<IAmazonFunctionUpsertCommand> {
18
+ public validate = () => {
19
+ const errors = {} as any;
20
+ return errors;
21
+ };
22
+
23
+ public render() {
24
+ return (
25
+ <div className="container-fluid form-horizontal ">
26
+ <FormikFormField name="description" label="Description" input={(props) => <TextInput {...props} />} />
27
+ <FormikFormField
28
+ name="memorySize"
29
+ label="Memory (MB)"
30
+ help={<HelpField id="aws.functionBasicSettings.memorySize" />}
31
+ input={(props) => <NumberInput {...props} min={128} max={3008} />}
32
+ />
33
+ <FormikFormField
34
+ name="timeout"
35
+ label="Timeout (seconds)"
36
+ help={<HelpField id="aws.functionBasicSettings.timeout" />}
37
+ input={(props) => <NumberInput {...props} min={1} max={900} />}
38
+ />
39
+ <FormikFormField name="targetGroups" label="Target Group Name" input={(props) => <TextInput {...props} />} />
40
+ </div>
41
+ );
42
+ }
43
+ }
@@ -0,0 +1,35 @@
1
+ import type { FormikProps } from 'formik';
2
+ import React from 'react';
3
+
4
+ import type { IWizardPageComponent } from '@spinnaker/core';
5
+ import { FormikFormField, FormValidator, MapEditorInput } from '@spinnaker/core';
6
+ import { awsTagsValidator } from '../../aws.validators';
7
+ import type { IAmazonFunction } from '../../domain';
8
+ import type { IAmazonFunctionUpsertCommand } from '../../index';
9
+
10
+ export interface IFunctionTagsProps {
11
+ formik: FormikProps<IAmazonFunctionUpsertCommand>;
12
+ isNew?: boolean;
13
+ functionDef: IAmazonFunction;
14
+ }
15
+
16
+ export class FunctionTags
17
+ extends React.Component<IFunctionTagsProps>
18
+ implements IWizardPageComponent<IAmazonFunctionUpsertCommand> {
19
+ public validate = (values: IAmazonFunctionUpsertCommand) => {
20
+ const validator = new FormValidator(values);
21
+ validator.field('tags', 'Tag').required().withValidators(awsTagsValidator);
22
+ return validator.validateForm();
23
+ };
24
+
25
+ public render() {
26
+ return (
27
+ <div className="container-fluid form-horizontal ">
28
+ <FormikFormField
29
+ name="tags"
30
+ input={(props) => <MapEditorInput {...props} allowEmptyValues={false} addButtonLabel="Add" />}
31
+ />
32
+ </div>
33
+ );
34
+ }
35
+ }
@@ -0,0 +1,260 @@
1
+ import type { FormikErrors, FormikProps } from 'formik';
2
+ import { forOwn, uniqBy } from 'lodash';
3
+ import React from 'react';
4
+ import type { Option } from 'react-select';
5
+ import { combineLatest as observableCombineLatest, from as observableFrom, Subject } from 'rxjs';
6
+ import { takeUntil } from 'rxjs/operators';
7
+
8
+ import type {
9
+ Application,
10
+ IAccount,
11
+ IRegion,
12
+ ISecurityGroupsByAccountSourceData,
13
+ ISubnet,
14
+ IVpc,
15
+ IWizardPageComponent,
16
+ } from '@spinnaker/core';
17
+ import {
18
+ FormikFormField,
19
+ HelpField,
20
+ ReactInjector,
21
+ ReactSelectInput,
22
+ SubnetReader,
23
+ TetheredSelect,
24
+ } from '@spinnaker/core';
25
+ import type { IAmazonFunctionUpsertCommand } from '../../index';
26
+ import { VpcReader } from '../../vpc';
27
+
28
+ export interface ISubnetOption {
29
+ subnetId: string;
30
+ vpcId: string;
31
+ }
32
+
33
+ export interface INetworkProps {
34
+ formik: FormikProps<IAmazonFunctionUpsertCommand>;
35
+ isNew?: boolean;
36
+ app: Application;
37
+ }
38
+
39
+ export interface INetworkState {
40
+ vpcOptions: Array<{}>;
41
+ accounts: IAccount[];
42
+ regions: IRegion[];
43
+ subnets: ISubnetOption[];
44
+ availableSubnets: ISubnetOption[];
45
+ securityGroups: ISecurityGroupsByAccountSourceData;
46
+ }
47
+
48
+ export class Network
49
+ extends React.Component<INetworkProps, INetworkState>
50
+ implements IWizardPageComponent<IAmazonFunctionUpsertCommand> {
51
+ constructor(props: INetworkProps) {
52
+ super(props);
53
+ this.getAllVpcs();
54
+ }
55
+
56
+ public state: INetworkState = {
57
+ vpcOptions: [],
58
+ accounts: null,
59
+ regions: [],
60
+ subnets: [],
61
+ availableSubnets: [],
62
+ securityGroups: null,
63
+ };
64
+ private props$ = new Subject<INetworkProps>();
65
+ private destroy$ = new Subject<void>();
66
+
67
+ private getAllVpcs(): void {
68
+ observableFrom(VpcReader.listVpcs())
69
+ .pipe(takeUntil(this.destroy$))
70
+ .subscribe((Vpcs) => {
71
+ this.setState({ vpcOptions: Vpcs });
72
+ });
73
+ }
74
+
75
+ public validate(): FormikErrors<IAmazonFunctionUpsertCommand> {
76
+ return {};
77
+ }
78
+
79
+ private getAvailableSubnets(): PromiseLike<ISubnet[]> {
80
+ return SubnetReader.listSubnetsByProvider('aws');
81
+ }
82
+
83
+ private getAvailableSecurityGroups(): PromiseLike<ISecurityGroupsByAccountSourceData> {
84
+ return ReactInjector.securityGroupReader.getAllSecurityGroups();
85
+ }
86
+ private makeSubnetOptions(availableSubnets: ISubnet[]): ISubnetOption[] {
87
+ const subOptions: ISubnetOption[] = availableSubnets.map((s) => ({ subnetId: s.id, vpcId: s.vpcId }));
88
+ // we have to filter out any duplicate options
89
+ const uniqueSubOptions = uniqBy(subOptions, 'subnetId');
90
+ return uniqueSubOptions;
91
+ }
92
+
93
+ public componentDidUpdate() {
94
+ this.props$.next(this.props);
95
+ }
96
+
97
+ public componentWillUnmount(): void {
98
+ this.destroy$.next();
99
+ }
100
+
101
+ public componentDidMount(): void {
102
+ const allSubnets = Promise.resolve(this.getAvailableSubnets())
103
+ .then((subnets: ISubnet[]) => {
104
+ subnets.forEach((subnet: ISubnet) => {
105
+ subnet.label = subnet.id;
106
+ subnet.deprecated = !!subnet.deprecated;
107
+ if (subnet.deprecated) {
108
+ subnet.label += ' (deprecated)';
109
+ }
110
+ });
111
+ return subnets.filter((s) => s.label);
112
+ })
113
+ .then((subnets: ISubnet[]) => {
114
+ return this.makeSubnetOptions(subnets);
115
+ });
116
+
117
+ const secGroups$ = Promise.resolve(this.getAvailableSecurityGroups());
118
+ observableCombineLatest([allSubnets, secGroups$])
119
+ .pipe(takeUntil(this.destroy$))
120
+ .subscribe(([availableSubnets, securityGroups]) => {
121
+ return this.setState({ availableSubnets, securityGroups });
122
+ });
123
+ }
124
+
125
+ private handleSubnetUpdate = (options: Array<Option<string>>) => {
126
+ const subnetsSelected = options.map((o) => o.value);
127
+ this.props.formik.setFieldValue('subnetIds', subnetsSelected);
128
+ };
129
+
130
+ private handleSecurityGroupsUpdate = (options: Array<Option<string>>) => {
131
+ const sgSelected = options.map((o) => o.value);
132
+ this.props.formik.setFieldValue('securityGroupIds', sgSelected);
133
+ };
134
+
135
+ private setVpc = (vpcId: string): void => {
136
+ this.props.formik.setFieldValue('vpcId', vpcId);
137
+ this.props.formik.setFieldValue('subnetIds', []);
138
+ const { availableSubnets } = this.state;
139
+ const subs = availableSubnets.filter(function (s: ISubnetOption) {
140
+ return s.vpcId.includes(vpcId);
141
+ });
142
+ this.setState({ subnets: subs });
143
+ };
144
+
145
+ private toSubnetOption = (value: ISubnetOption): Option<string> => {
146
+ return { value: value.subnetId, label: value.subnetId };
147
+ };
148
+
149
+ private getSecurityGroupsByVpc = (sgs: ISecurityGroupsByAccountSourceData): Array<Option<string>> => {
150
+ const { values } = this.props.formik;
151
+ const sgOptions: Array<Option<string>> = [];
152
+ /** Get security groups that belong to current selected account */
153
+ forOwn(sgs, function (sgByAccount, acc) {
154
+ if (acc === values.credentials) {
155
+ /** Get security groups that fall under the provider 'aws' */
156
+ forOwn(sgByAccount, function (sgByRegion, provider) {
157
+ if (provider === 'aws') {
158
+ /** Get security groups that are under the current selected region */
159
+ forOwn(sgByRegion, function (groups, region) {
160
+ if (region === values.region) {
161
+ /** Get security groups that fall under the current selected VPC */
162
+ groups.forEach(function (group) {
163
+ if (group.vpcId === values.vpcId) {
164
+ sgOptions.push({ value: group.id, label: group.name });
165
+ }
166
+ });
167
+ }
168
+ });
169
+ }
170
+ });
171
+ }
172
+ });
173
+ return sgOptions;
174
+ };
175
+
176
+ private getSubnetOptions = (): Array<Option<string>> => {
177
+ const { subnets, availableSubnets } = this.state;
178
+ const { values } = this.props.formik;
179
+ if (!this.props.isNew && values.vpcId) {
180
+ return availableSubnets
181
+ .filter(function (s: ISubnetOption) {
182
+ return s.vpcId.includes(values.vpcId);
183
+ })
184
+ .map(this.toSubnetOption);
185
+ } else {
186
+ return subnets.map(this.toSubnetOption);
187
+ }
188
+ };
189
+
190
+ public render() {
191
+ const { vpcOptions, securityGroups } = this.state;
192
+ const { values } = this.props.formik;
193
+ const subnetOptions = this.getSubnetOptions();
194
+ const sgOptions = securityGroups ? this.getSecurityGroupsByVpc(securityGroups) : [];
195
+ return (
196
+ <div className="form-group">
197
+ <div className="col-md-11">
198
+ <div className="sp-margin-m-bottom">
199
+ {values.credentials && (
200
+ <FormikFormField
201
+ name="vpcId"
202
+ label="VPC Id"
203
+ help={<HelpField id="aws.function.vpc.id" />}
204
+ input={(props) => (
205
+ <ReactSelectInput
206
+ {...props}
207
+ stringOptions={vpcOptions
208
+ .filter((v: IVpc) => v.account === values.credentials)
209
+ .map((v: IVpc) => v.id)}
210
+ clearable={true}
211
+ />
212
+ )}
213
+ onChange={this.setVpc}
214
+ required={false}
215
+ />
216
+ )}
217
+ </div>
218
+ <div className="form-group">
219
+ <div className="col-md-4 sm-label-right">
220
+ <b>Subnets </b>
221
+ <HelpField id="aws.function.subnet" />
222
+ </div>
223
+ <div className="col-md-7">
224
+ {subnetOptions.length === 0 && (
225
+ <div className="form-control-static">No subnets found in the selected account/region/VPC</div>
226
+ )}
227
+ {values.vpcId ? (
228
+ <TetheredSelect
229
+ multi={true}
230
+ options={subnetOptions}
231
+ value={values.subnetIds}
232
+ onChange={this.handleSubnetUpdate}
233
+ />
234
+ ) : null}
235
+ </div>
236
+ </div>
237
+ <div className="form-group">
238
+ <div className="col-md-4 sm-label-right">
239
+ <b>Security Groups </b>
240
+ <HelpField id="aws.function.subnet" />
241
+ </div>
242
+ <div className="col-md-7">
243
+ {sgOptions.length === 0 && (
244
+ <div className="form-control-static">No security groups found in the selected account/region/VPC</div>
245
+ )}
246
+ {values.credentials && values.vpcId ? (
247
+ <TetheredSelect
248
+ multi={true}
249
+ options={sgOptions}
250
+ value={values.securityGroupIds}
251
+ onChange={this.handleSecurityGroupsUpdate}
252
+ />
253
+ ) : null}
254
+ </div>
255
+ </div>
256
+ </div>
257
+ </div>
258
+ );
259
+ }
260
+ }