@@ -48,7 +48,7 @@ export default ({
4848 const mappedEndpoints = Object . keys ( endpoints ?? { } ) . map ( key => ( {
4949 id : cuid ( ) ,
5050 key,
51- value : endpoints [ key ]
51+ value : endpoints [ key ] ,
5252 } ) )
5353
5454 const formattedElasticSearchClusterConfig = {
@@ -58,62 +58,64 @@ export default ({
5858 dedicatedMasterCount : elasticSearchClusterconfig ?. DedicatedMasterCount ,
5959 zoneAwarenessEnabled : elasticSearchClusterconfig ?. ZoneAwarenessEnabled ,
6060 zoneAwarenessConfig : {
61- availabilityZoneCount : elasticSearchClusterconfig ?. ZoneAwarenessConfig ?. AvailabilityZoneCount
61+ availabilityZoneCount :
62+ elasticSearchClusterconfig ?. ZoneAwarenessConfig ?. AvailabilityZoneCount ,
6263 } ,
6364 dedicatedMasterType : elasticSearchClusterconfig ?. DedicatedMasterType ,
6465 warmEnabled : elasticSearchClusterconfig ?. WarmEnabled ,
6566 warmType : elasticSearchClusterconfig ?. WarmType ,
6667 warmCount : elasticSearchClusterconfig ?. WarmCount ,
6768 coldStorageOptions : {
68- enabled : elasticSearchClusterconfig ?. ColdStorageOptions ?. Enabled
69- }
69+ enabled : elasticSearchClusterconfig ?. ColdStorageOptions ?. Enabled ,
70+ } ,
7071 }
7172
7273 const formattedEbsOptions = {
7374 ebsEnabled : ebsOptions ?. EBSEnabled ,
7475 volumeType : ebsOptions ?. VolumeType ,
7576 volumeSize : ebsOptions ?. VolumeSize ,
76- iops : ebsOptions ?. Iops
77+ iops : ebsOptions ?. Iops ,
7778 }
7879
7980 const formattedSnapshotOptions = {
80- automatedSnapshotStartHour : snapshotOptions ?. AutomatedSnapshotStartHour
81+ automatedSnapshotStartHour : snapshotOptions ?. AutomatedSnapshotStartHour ,
8182 }
8283
8384 const formattedVpcOptions = {
8485 vpcId : vpcOptions ?. VPCId ,
8586 subnetIds : vpcOptions ?. SubnetIds ,
8687 availabilityZones : vpcOptions ?. AvailabilityZones ,
87- securityGroupIds : vpcOptions ?. SecurityGroupIds
88+ securityGroupIds : vpcOptions ?. SecurityGroupIds ,
8889 }
8990
9091 const formattedCognioOptions = {
9192 enabled : cognitoOptions ?. Enabled ,
9293 userPoolId : cognitoOptions ?. UserPoolId ,
9394 identityPoolId : cognitoOptions ?. IdentityPoolId ,
94- roleArn : cognitoOptions ?. RoleArn
95+ roleArn : cognitoOptions ?. RoleArn ,
9596 }
9697
9798 const formattedEncryptionAtRestOptions = {
9899 enabled : encryptionAtRestOptions ?. Enabled ,
99- kmsKeyId : encryptionAtRestOptions ?. KmsKeyId
100+ kmsKeyId : encryptionAtRestOptions ?. KmsKeyId ,
100101 }
101102
102103 const formattedNodeToNodeEncryptionOptions = {
103- enabled : nodeToNodeEncryptionOptions ?. Enabled
104+ enabled : nodeToNodeEncryptionOptions ?. Enabled ,
104105 }
105106
106107 const mappedAdvancedOptions = Object . keys ( advancedOptions ?? { } ) . map ( key => ( {
107108 id : cuid ( ) ,
108109 key,
109- value : advancedOptions [ key ]
110+ value : advancedOptions [ key ] ,
110111 } ) )
111112
112113 const mappedLogPublishingOptions = Object . keys ( logPublishingOptions ?? { } ) . map ( key => ( {
113114 id : cuid ( ) ,
114115 key,
115116 enabled : logPublishingOptions [ key ] ?. Enabled ,
116- cloudWatchLogsLogGroupArn : logPublishingOptions [ key ] ?. CloudWatchLogsLogGroupArn
117+ cloudWatchLogsLogGroupArn :
118+ logPublishingOptions [ key ] ?. CloudWatchLogsLogGroupArn ,
117119 } ) )
118120
119121 const formattedServiceSoftwareOptions = {
@@ -123,43 +125,49 @@ export default ({
123125 cancellable : serviceSoftwareOptions ?. Cancellable ,
124126 updateStatus : serviceSoftwareOptions ?. UpdateStatus ,
125127 description : serviceSoftwareOptions ?. Description ,
126- automatedUpdateDate : serviceSoftwareOptions ?. AutomatedUpdateDate ?. toISOString ( ) ,
127- optionalDeployment : serviceSoftwareOptions ?. OptionalDeployment
128+ automatedUpdateDate :
129+ serviceSoftwareOptions ?. AutomatedUpdateDate ?. toISOString ( ) ,
130+ optionalDeployment : serviceSoftwareOptions ?. OptionalDeployment ,
128131 }
129132
130133 const formattedDomainEndpointOptions = {
131134 enforceHttps : domainEndpointOptions ?. EnforceHTTPS ,
132135 tlsSecurityPolicy : domainEndpointOptions ?. TLSSecurityPolicy ,
133136 customEndpointEnabled : domainEndpointOptions ?. CustomEndpointEnabled ,
134137 customEndpoint : domainEndpointOptions ?. CustomEndpoint ,
135- customEndpointCertificateArn : domainEndpointOptions ?. CustomEndpointCertificateArn
138+ customEndpointCertificateArn :
139+ domainEndpointOptions ?. CustomEndpointCertificateArn ,
136140 }
137141
138142 const formattedAdvancedSecurityOptions = {
139143 enabled : advancedSecurityOptions ?. Enabled ,
140- internalUserDatabaseEnabled : advancedSecurityOptions ?. InternalUserDatabaseEnabled ,
144+ internalUserDatabaseEnabled :
145+ advancedSecurityOptions ?. InternalUserDatabaseEnabled ,
141146 samlOptions : {
142147 enabled : advancedSecurityOptions ?. SAMLOptions ?. Enabled ,
143148 idp : {
144- metadataContent : advancedSecurityOptions ?. SAMLOptions ?. Idp ?. MetadataContent ,
145- entityId : advancedSecurityOptions ?. SAMLOptions ?. Idp ?. EntityId
149+ metadataContent :
150+ advancedSecurityOptions ?. SAMLOptions ?. Idp ?. MetadataContent ,
151+ entityId : advancedSecurityOptions ?. SAMLOptions ?. Idp ?. EntityId ,
146152 } ,
147153 subjectKey : advancedSecurityOptions ?. SAMLOptions ?. SubjectKey ,
148154 rolesKey : advancedSecurityOptions ?. SAMLOptions ?. RolesKey ,
149- sessionTimeoutMinutes : advancedSecurityOptions ?. SAMLOptions ?. SessionTimeoutMinutes
155+ sessionTimeoutMinutes :
156+ advancedSecurityOptions ?. SAMLOptions ?. SessionTimeoutMinutes ,
150157 } ,
151- anonymousAuthDisableDate : advancedSecurityOptions ?. AnonymousAuthDisableDate ?. toISOString ( ) ,
152- anonymousAuthEnabled : advancedSecurityOptions ?. AnonymousAuthEnabled
158+ anonymousAuthDisableDate :
159+ advancedSecurityOptions ?. AnonymousAuthDisableDate ?. toISOString ( ) ,
160+ anonymousAuthEnabled : advancedSecurityOptions ?. AnonymousAuthEnabled ,
153161 }
154162
155163 const formattedAutoTuneOptions = {
156164 state : autoTuneOptions ?. State ,
157- errorMessage : autoTuneOptions ?. ErrorMessage
165+ errorMessage : autoTuneOptions ?. ErrorMessage ,
158166 }
159167
160168 const formattedChangeProgressDetails = {
161169 changeId : changeProcessDetails ?. ChangeId ,
162- message : changeProcessDetails ?. Message
170+ message : changeProcessDetails ?. Message ,
163171 }
164172
165173 return {
@@ -173,6 +181,7 @@ export default ({
173181 processing,
174182 upgradeProcessing,
175183 elasticSearchVersion,
184+ rawPolicy : accessPolicies ,
176185 accessPolicies : formatIamJsonPolicy ( accessPolicies ) ,
177186 domainName,
178187 endpoints : mappedEndpoints ,
@@ -190,6 +199,6 @@ export default ({
190199 advancedSecurityOptions : formattedAdvancedSecurityOptions ,
191200 autoTuneOptions : formattedAutoTuneOptions ,
192201 changeProcessDetails : formattedChangeProgressDetails ,
193- tags : formatTagsFromMap ( tags ?? { } )
202+ tags : formatTagsFromMap ( tags ?? { } ) ,
194203 }
195204}
0 commit comments