11import cuid from 'cuid'
2- import {
3- Configuration ,
4- } from 'aws-sdk/clients/emr'
2+ import { Configuration } from 'aws-sdk/clients/emr'
53import { AwsEmrCluster } from '../../types/generated'
64import { formatTagsFromMap } from '../../utils/format'
75import { RawAwsEmrCluster } from './data'
86
97export default ( {
108 service,
119 account,
12- region
10+ region,
1311} : {
1412 service : RawAwsEmrCluster
1513 account : string
@@ -28,12 +26,10 @@ export default ({
2826 AutoTerminate : autoTerminate ,
2927 TerminationProtected : terminationProtected ,
3028 VisibleToAllUsers : visibleToAllUsers ,
31- ServiceRole : serviceRole ,
3229 NormalizedInstanceHours : normalizedInstanceHours ,
3330 MasterPublicDnsName : masterPublicDnsName ,
3431 Configurations : configurations ,
3532 SecurityConfiguration : securityConfiguration ,
36- AutoScalingRole : autoScalingRole ,
3733 ScaleDownBehavior : scaleDownBehavior ,
3834 CustomAmiId : customAmiId ,
3935 EbsRootVolumeSize : ebsRootVolumeSize ,
@@ -50,7 +46,7 @@ export default ({
5046 Timeline : timeline ,
5147 } = status ?? { }
5248
53- const {
49+ const {
5450 Ec2KeyName : ec2KeyName ,
5551 Ec2SubnetId : ec2SubnetId ,
5652 RequestedEc2SubnetIds : requestedEc2SubnetIds ,
@@ -73,7 +69,7 @@ export default ({
7369 id : cuid ( ) ,
7470 key,
7571 value : app . AdditionalInfo [ key ] ,
76- } ) )
72+ } ) ) ,
7773 } ) )
7874
7975 const {
@@ -92,7 +88,7 @@ export default ({
9288 id : cuid ( ) ,
9389 key,
9490 value : config . Properties [ key ] ,
95- } ) )
91+ } ) ) ,
9692 } )
9793
9894 const placementGroups = service . PlacementGroups ?. map ( pg => ( {
@@ -116,7 +112,7 @@ export default ({
116112 creationDateTime : timeline ?. CreationDateTime ?. toISOString ( ) ,
117113 readyDateTime : timeline ?. ReadyDateTime ?. toISOString ( ) ,
118114 endDateTime : timeline ?. EndDateTime ?. toISOString ( ) ,
119- }
115+ } ,
120116 } ,
121117 ec2InstanceAttributes : {
122118 ec2KeyName,
@@ -141,12 +137,10 @@ export default ({
141137 terminationProtected,
142138 visibleToAllUsers,
143139 applications,
144- serviceRole,
145140 normalizedInstanceHours,
146141 masterPublicDnsName,
147142 configurations : configurations ?. map ( child => configConverter ( child ) ) ,
148143 securityConfiguration,
149- autoScalingRole,
150144 scaleDownBehavior,
151145 customAmiId,
152146 ebsRootVolumeSize,
@@ -163,4 +157,4 @@ export default ({
163157 placementGroups,
164158 tags : formatTagsFromMap ( Tags ) ,
165159 }
166- }
160+ }
0 commit comments