7474 - Must be a list of strings, e.g., ['admin_group1', 'admin_group2'].
7575 type: list
7676 elements: str
77+ resourcePool:
78+ description:
79+ - The Resource Pool of the Cloudera Data Visualization.
80+ type: str
7781 state:
7882 description: The state of the Data Visualization Instance
7983 type: str
8084 default: present
8185 choices:
8286 - present
8387 - absent
88+ image_version:
89+ description: Version of the Cloudera Data Visualization.
90+ type: str
91+ template_name:
92+ description: The template size for the Cloudera Data Visualization.
93+ type: str
8494 wait:
8595 description:
8696 - Flag to enable internal polling to wait for the Data Visualization Instance to achieve the declared state.
124134- cloudera.cloud.dw_data_visualization:
125135 environment: example-env
126136 name: example-name
127- config:
128- userGroups: "[ example_user_group ]"
129- adminGroups: "[ example_admin_group ]"
130137 state: absent
131138'''
132139
@@ -183,6 +190,8 @@ def __init__(self, module):
183190 self .name = self ._get_param ('name' )
184191 self .config = self ._get_param ('config' )
185192 self .state = self ._get_param ('state' )
193+ self .template_name = self ._get_param ('template_name' )
194+ self .image_version = self ._get_param ('image_version' )
186195 self .wait = self ._get_param ('wait' )
187196 self .delay = self ._get_param ('delay' )
188197 self .timeout = self ._get_param ('timeout' )
@@ -275,6 +284,8 @@ def process(self):
275284 cluster_id = self .cluster ['id' ],
276285 name = self .name ,
277286 config = self .config ,
287+ template_name = self .template_name ,
288+ image_version = self .image_version
278289 )
279290 if self .wait :
280291 self .cdpy .sdk .sleep (self .delay ) # Wait for consistency sync
@@ -296,6 +307,8 @@ def main():
296307 id = dict (type = 'str' ),
297308 name = dict (type = 'str' ),
298309 config = dict (type = 'dict' ),
310+ template_name = dict (type = 'str' ),
311+ image_version = dict (type = 'str' ),
299312 state = dict (type = 'str' , choices = ['present' , 'absent' ], default = 'present' ),
300313 wait = dict (type = 'bool' , default = True ),
301314 delay = dict (type = 'int' , aliases = ['polling_delay' ], default = 15 ),
0 commit comments