|  | 
| 175 | 175 |       - Cluster extensions for Data Hub cluster. | 
| 176 | 176 |     type: str | 
| 177 | 177 |     required: False | 
|  | 178 | +  multi_az: | 
|  | 179 | +    description: | 
|  | 180 | +      - (AWS) Flag indicating whether to defer to the CDP Environment for availability zone/subnet placement. | 
|  | 181 | +      - Useful for when you are not sure which subnet is available to the datahub cluster. | 
|  | 182 | +    type: bool | 
|  | 183 | +    required: False | 
|  | 184 | +    default: True | 
| 178 | 185 |   force: | 
| 179 | 186 |     description: | 
| 180 | 187 |       - Flag indicating if the datahub should be force deleted. | 
| @@ -569,10 +576,16 @@ def _configure_payload(self): | 
| 569 | 576 |         ) | 
| 570 | 577 | 
 | 
| 571 | 578 |         if self.definition is not None: | 
| 572 |  | -            payload["clusterDefinition"] = self.definition | 
|  | 579 | +            if self.host_env['cloudPlatform'] == 'AWS': | 
|  | 580 | +                payload["clusterDefinition"] = self.definition | 
|  | 581 | +            else: | 
|  | 582 | +                payload["clusterDefinitionName"] = self.definition | 
| 573 | 583 |         else: | 
| 574 | 584 |             payload["image"] = {"id": self.image_id, "catalogName": self.image_catalog} | 
| 575 |  | -            payload["clusterTemplate"] = self.template | 
|  | 585 | +            if self.host_env['cloudPlatform'] == 'AWS': | 
|  | 586 | +                payload["clusterTemplate"] = self.template | 
|  | 587 | +            else: | 
|  | 588 | +                payload["clusterTemplateName"] = self.template | 
| 576 | 589 |             payload["instanceGroups"] = self.groups | 
| 577 | 590 | 
 | 
| 578 | 591 |         if self.subnets_filter: | 
| @@ -602,7 +615,8 @@ def _configure_payload(self): | 
| 602 | 615 |         if self.extension is not None: | 
| 603 | 616 |             payload['clusterExtension'] = self.extension | 
| 604 | 617 | 
 | 
| 605 |  | -        payload['multiAz'] = self.multi_az | 
|  | 618 | +        if self.host_env['cloudPlatform'] == 'AWS': | 
|  | 619 | +            payload['multiAz'] = self.multi_az | 
| 606 | 620 | 
 | 
| 607 | 621 |         if self.tags is not None: | 
| 608 | 622 |             payload['tags'] = list() | 
| @@ -676,7 +690,6 @@ def main(): | 
| 676 | 690 |             tags=dict(required=False, type='dict', aliases=['datahub_tags']), | 
| 677 | 691 |             extension=dict(required=False, type='dict'), | 
| 678 | 692 |             multi_az=dict(required=False, type='bool', default=True), | 
| 679 |  | - | 
| 680 | 693 |             force=dict(required=False, type='bool', default=False), | 
| 681 | 694 |             wait=dict(required=False, type='bool', default=True), | 
| 682 | 695 |             delay=dict(required=False, type='int', aliases=['polling_delay'], default=15), | 
|  | 
0 commit comments