pulumi-harness 0.8.0a1755712204__py3-none-any.whl → 0.8.0a1755714852__py3-none-any.whl

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.

Potentially problematic release.


This version of pulumi-harness might be problematic. Click here for more details.

Files changed (223) hide show
  1. pulumi_harness/__init__.py +67 -0
  2. pulumi_harness/add_user_to_group.py +4 -0
  3. pulumi_harness/application.py +4 -0
  4. pulumi_harness/application_git_sync.py +4 -0
  5. pulumi_harness/chaos/__init__.py +21 -0
  6. pulumi_harness/chaos/_inputs.py +2702 -0
  7. pulumi_harness/chaos/get_hub.py +324 -0
  8. pulumi_harness/chaos/get_image_registry.py +339 -0
  9. pulumi_harness/chaos/get_infrastructure_v2.py +684 -0
  10. pulumi_harness/chaos/get_security_governance_condition.py +261 -0
  11. pulumi_harness/chaos/get_security_governance_rule.py +261 -0
  12. pulumi_harness/chaos/hub.py +806 -0
  13. pulumi_harness/chaos/hub_sync.py +274 -0
  14. pulumi_harness/chaos/image_registry.py +730 -0
  15. pulumi_harness/chaos/infrastructure_v2.py +1670 -0
  16. pulumi_harness/chaos/outputs.py +2276 -0
  17. pulumi_harness/chaos/security_governance_condition.py +795 -0
  18. pulumi_harness/chaos/security_governance_rule.py +688 -0
  19. pulumi_harness/chaos_infrastructure.py +10 -4
  20. pulumi_harness/cloudprovider/aws.py +4 -0
  21. pulumi_harness/cloudprovider/azure.py +4 -0
  22. pulumi_harness/cloudprovider/datacenter.py +4 -0
  23. pulumi_harness/cloudprovider/kubernetes.py +4 -0
  24. pulumi_harness/cloudprovider/spot.py +4 -0
  25. pulumi_harness/cloudprovider/tanzu.py +4 -0
  26. pulumi_harness/cluster/_inputs.py +540 -0
  27. pulumi_harness/cluster/get_orchestrator_config.py +46 -6
  28. pulumi_harness/cluster/orchestrator.py +0 -16
  29. pulumi_harness/cluster/orchestrator_config.py +253 -5
  30. pulumi_harness/cluster/outputs.py +394 -0
  31. pulumi_harness/delegate_approval.py +4 -0
  32. pulumi_harness/encrypted_text.py +4 -0
  33. pulumi_harness/environment.py +4 -0
  34. pulumi_harness/get_current_account.py +3 -3
  35. pulumi_harness/git_connector.py +4 -0
  36. pulumi_harness/governance/rule.py +4 -0
  37. pulumi_harness/governance/rule_enforcement.py +4 -0
  38. pulumi_harness/infrastructure_definition.py +4 -0
  39. pulumi_harness/platform/_inputs.py +537 -469
  40. pulumi_harness/platform/app_dynamics_connector.py +4 -0
  41. pulumi_harness/platform/artifactory_connector.py +4 -0
  42. pulumi_harness/platform/aws_cc_connector.py +4 -0
  43. pulumi_harness/platform/aws_connector.py +11 -7
  44. pulumi_harness/platform/aws_kms_connector.py +70 -20
  45. pulumi_harness/platform/aws_secret_manager_connector.py +13 -9
  46. pulumi_harness/platform/azure_cloud_cost_connector.py +51 -0
  47. pulumi_harness/platform/azure_cloud_provider_connector.py +4 -0
  48. pulumi_harness/platform/azure_key_vault_connector.py +8 -0
  49. pulumi_harness/platform/bitbucket_connector.py +4 -0
  50. pulumi_harness/platform/connector_azure_artifacts.py +4 -2
  51. pulumi_harness/platform/connector_azure_repo.py +11 -16
  52. pulumi_harness/platform/connector_custom_secret_manager.py +51 -156
  53. pulumi_harness/platform/connector_customhealthsource.py +4 -0
  54. pulumi_harness/platform/connector_gcp_kms.py +4 -0
  55. pulumi_harness/platform/connector_jdbc.py +4 -0
  56. pulumi_harness/platform/connector_pdc.py +13 -13
  57. pulumi_harness/platform/connector_rancher.py +4 -0
  58. pulumi_harness/platform/dashboard_folders.py +2 -2
  59. pulumi_harness/platform/dashboards.py +10 -14
  60. pulumi_harness/platform/datadog_connector.py +4 -0
  61. pulumi_harness/platform/db_instance.py +4 -0
  62. pulumi_harness/platform/db_schema.py +25 -21
  63. pulumi_harness/platform/docker_connector.py +4 -4
  64. pulumi_harness/platform/dynatrace_connector.py +4 -0
  65. pulumi_harness/platform/elasticsearch_connector.py +19 -15
  66. pulumi_harness/platform/environment.py +25 -530
  67. pulumi_harness/platform/environment_clusters_mapping.py +8 -0
  68. pulumi_harness/platform/environment_group.py +13 -100
  69. pulumi_harness/platform/environment_service_overrides.py +20 -186
  70. pulumi_harness/platform/feature_flag_target_group.py +8 -8
  71. pulumi_harness/platform/file_store_file.py +11 -7
  72. pulumi_harness/platform/file_store_folder.py +11 -7
  73. pulumi_harness/platform/filters.py +8 -0
  74. pulumi_harness/platform/gcp_cloud_cost_connector.py +4 -0
  75. pulumi_harness/platform/gcp_connector.py +4 -0
  76. pulumi_harness/platform/gcp_secret_manager_connector.py +6 -92
  77. pulumi_harness/platform/get_api_key.py +8 -38
  78. pulumi_harness/platform/get_aws_kms_connector.py +16 -1
  79. pulumi_harness/platform/get_aws_secret_manager_connector.py +7 -3
  80. pulumi_harness/platform/get_azure_cloud_cost_connector.py +12 -1
  81. pulumi_harness/platform/get_connector_azure_repo.py +53 -2
  82. pulumi_harness/platform/get_connector_custom_secret_manager.py +28 -32
  83. pulumi_harness/platform/get_connector_pdc.py +3 -3
  84. pulumi_harness/platform/get_current_account.py +2 -20
  85. pulumi_harness/platform/get_dashboard_folders.py +16 -5
  86. pulumi_harness/platform/get_dashboards.py +15 -7
  87. pulumi_harness/platform/get_db_instance.py +5 -0
  88. pulumi_harness/platform/get_db_schema.py +12 -15
  89. pulumi_harness/platform/get_environment.py +5 -0
  90. pulumi_harness/platform/get_environment_list.py +12 -58
  91. pulumi_harness/platform/get_environment_service_overrides.py +6 -6
  92. pulumi_harness/platform/get_filters.py +4 -0
  93. pulumi_harness/platform/get_gcp_secret_manager_connector.py +4 -0
  94. pulumi_harness/platform/get_github_connector.py +3 -0
  95. pulumi_harness/platform/get_gitops_applications.py +8 -0
  96. pulumi_harness/platform/get_gitops_filters.py +25 -10
  97. pulumi_harness/platform/get_gitx_webhook.py +3 -3
  98. pulumi_harness/platform/get_har_registry.py +46 -10
  99. pulumi_harness/platform/get_iacm_default_pipeline.py +24 -0
  100. pulumi_harness/platform/get_infra_variable_set.py +34 -25
  101. pulumi_harness/platform/get_infrastructure.py +5 -0
  102. pulumi_harness/platform/get_manual_freeze.py +0 -24
  103. pulumi_harness/platform/get_monitored_service.py +22 -0
  104. pulumi_harness/platform/get_organization.py +4 -0
  105. pulumi_harness/platform/get_overrides.py +66 -2
  106. pulumi_harness/platform/get_pagerduty_connector.py +4 -0
  107. pulumi_harness/platform/get_pipeline_list.py +18 -63
  108. pulumi_harness/platform/get_project.py +4 -0
  109. pulumi_harness/platform/get_project_list.py +18 -63
  110. pulumi_harness/platform/get_provider.py +11 -2
  111. pulumi_harness/platform/get_resource_group.py +4 -0
  112. pulumi_harness/platform/get_role_assignments.py +6 -2
  113. pulumi_harness/platform/get_roles.py +4 -0
  114. pulumi_harness/platform/get_secret_file.py +4 -0
  115. pulumi_harness/platform/get_secret_sshkey.py +4 -0
  116. pulumi_harness/platform/get_service.py +5 -0
  117. pulumi_harness/platform/get_service_account.py +4 -0
  118. pulumi_harness/platform/get_service_list.py +22 -58
  119. pulumi_harness/platform/get_service_overrides_v2.py +42 -0
  120. pulumi_harness/platform/get_slo.py +22 -0
  121. pulumi_harness/platform/get_token.py +2 -0
  122. pulumi_harness/platform/get_user.py +4 -0
  123. pulumi_harness/platform/get_usergroup.py +4 -0
  124. pulumi_harness/platform/get_variables.py +4 -0
  125. pulumi_harness/platform/get_vault_connector.py +5 -1
  126. pulumi_harness/platform/get_workspace.py +8 -3
  127. pulumi_harness/platform/git_connector.py +4 -0
  128. pulumi_harness/platform/git_ops_agent.py +4 -0
  129. pulumi_harness/platform/git_ops_applications.py +4 -0
  130. pulumi_harness/platform/git_ops_cluster.py +51 -0
  131. pulumi_harness/platform/git_ops_gnupg.py +4 -0
  132. pulumi_harness/platform/git_ops_repo_cert.py +4 -0
  133. pulumi_harness/platform/git_ops_repo_cred.py +4 -0
  134. pulumi_harness/platform/git_ops_repository.py +4 -0
  135. pulumi_harness/platform/github_connector.py +11 -7
  136. pulumi_harness/platform/gitlab_connector.py +4 -0
  137. pulumi_harness/platform/gitops_app_project.py +4 -0
  138. pulumi_harness/platform/gitops_app_project_mapping.py +4 -0
  139. pulumi_harness/platform/gitops_applicationset.py +96 -0
  140. pulumi_harness/platform/gitops_filters.py +51 -179
  141. pulumi_harness/platform/gitx_webhook.py +4 -0
  142. pulumi_harness/platform/har_registry.py +42 -43
  143. pulumi_harness/platform/helm_connector.py +4 -0
  144. pulumi_harness/platform/iacm_default_pipeline.py +28 -0
  145. pulumi_harness/platform/infra_module.py +6 -2
  146. pulumi_harness/platform/infra_variable_set.py +38 -22
  147. pulumi_harness/platform/infrastructure.py +18 -240
  148. pulumi_harness/platform/input_set.py +4 -0
  149. pulumi_harness/platform/jenkins_connector.py +8 -0
  150. pulumi_harness/platform/jira_connector.py +4 -2
  151. pulumi_harness/platform/kubernetes_cloud_cost_connector.py +35 -11
  152. pulumi_harness/platform/kubernetes_connector.py +4 -0
  153. pulumi_harness/platform/manual_freeze.py +6 -154
  154. pulumi_harness/platform/monitored_service.py +16 -12
  155. pulumi_harness/platform/newrelic_connector.py +4 -0
  156. pulumi_harness/platform/nexus_connector.py +4 -4
  157. pulumi_harness/platform/notification_rule.py +4 -0
  158. pulumi_harness/platform/oci_helm_connector.py +4 -0
  159. pulumi_harness/platform/organization.py +8 -0
  160. pulumi_harness/platform/outputs.py +481 -219
  161. pulumi_harness/platform/overrides.py +48 -2
  162. pulumi_harness/platform/pagerduty_connector.py +8 -0
  163. pulumi_harness/platform/pipeline.py +18 -2
  164. pulumi_harness/platform/pipeline_filters.py +4 -0
  165. pulumi_harness/platform/policy.py +6 -26
  166. pulumi_harness/platform/policy_set.py +4 -0
  167. pulumi_harness/platform/project.py +8 -0
  168. pulumi_harness/platform/prometheus_connector.py +4 -0
  169. pulumi_harness/platform/provider.py +4 -2
  170. pulumi_harness/platform/repo.py +40 -0
  171. pulumi_harness/platform/resource_group.py +15 -7
  172. pulumi_harness/platform/role_assignments.py +20 -16
  173. pulumi_harness/platform/roles.py +8 -0
  174. pulumi_harness/platform/secret_file.py +8 -0
  175. pulumi_harness/platform/secret_sshkey.py +6 -2
  176. pulumi_harness/platform/secret_text.py +78 -0
  177. pulumi_harness/platform/service.py +13 -494
  178. pulumi_harness/platform/service_account.py +8 -0
  179. pulumi_harness/platform/service_now_connector.py +4 -2
  180. pulumi_harness/platform/service_overrides_v2.py +4 -204
  181. pulumi_harness/platform/slo.py +12 -18
  182. pulumi_harness/platform/splunk_connector.py +4 -0
  183. pulumi_harness/platform/spot_connector.py +4 -0
  184. pulumi_harness/platform/sumologic_connector.py +4 -0
  185. pulumi_harness/platform/tas_connector.py +4 -0
  186. pulumi_harness/platform/template.py +25 -21
  187. pulumi_harness/platform/template_filters.py +4 -0
  188. pulumi_harness/platform/terraform_cloud_connector.py +4 -0
  189. pulumi_harness/platform/token.py +6 -2
  190. pulumi_harness/platform/triggers.py +8 -0
  191. pulumi_harness/platform/user.py +13 -9
  192. pulumi_harness/platform/usergroup.py +71 -7
  193. pulumi_harness/platform/variables.py +8 -0
  194. pulumi_harness/platform/vault_connector.py +15 -7
  195. pulumi_harness/platform/workspace.py +19 -7
  196. pulumi_harness/platform_api_key.py +6 -66
  197. pulumi_harness/platform_ccm_filters.py +11 -7
  198. pulumi_harness/pulumi-plugin.json +1 -1
  199. pulumi_harness/service/__init__.py +4 -0
  200. pulumi_harness/service/_inputs.py +1729 -0
  201. pulumi_harness/service/ami.py +4 -0
  202. pulumi_harness/service/codedeploy.py +4 -0
  203. pulumi_harness/service/discovery_agent.py +1211 -0
  204. pulumi_harness/service/discovery_setting.py +384 -0
  205. pulumi_harness/service/ecs.py +4 -0
  206. pulumi_harness/service/get_discovery_agent.py +443 -0
  207. pulumi_harness/service/get_discovery_setting.py +199 -0
  208. pulumi_harness/service/helm.py +4 -0
  209. pulumi_harness/service/kubernetes.py +4 -0
  210. pulumi_harness/service/lambda_.py +4 -0
  211. pulumi_harness/service/outputs.py +2367 -117
  212. pulumi_harness/service/ssh.py +4 -0
  213. pulumi_harness/service/tanzu.py +4 -0
  214. pulumi_harness/service/winrm.py +4 -0
  215. pulumi_harness/ssh_credential.py +4 -0
  216. pulumi_harness/user.py +4 -0
  217. pulumi_harness/user_group.py +4 -0
  218. pulumi_harness/yaml_config.py +4 -0
  219. {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.0a1755714852.dist-info}/METADATA +1 -1
  220. pulumi_harness-0.8.0a1755714852.dist-info/RECORD +355 -0
  221. pulumi_harness-0.8.0a1755712204.dist-info/RECORD +0 -337
  222. {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.0a1755714852.dist-info}/WHEEL +0 -0
  223. {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.0a1755714852.dist-info}/top_level.txt +0 -0
@@ -38,14 +38,13 @@ class EnvironmentArgs:
38
38
  :param pulumi.Input[_builtins.str] type: The type of environment. Valid values are PreProduction, Production
39
39
  :param pulumi.Input[_builtins.str] color: Color of the environment.
40
40
  :param pulumi.Input[_builtins.str] description: Description of the resource.
41
- :param pulumi.Input[_builtins.bool] force_delete: When set to true, enables force deletion of environments.
42
- :param pulumi.Input['EnvironmentGitDetailsArgs'] git_details: Contains Git Information for remote entities from Git for Create/Update/Import
41
+ :param pulumi.Input[_builtins.bool] force_delete: Enable this flag for force deletion of environments
42
+ :param pulumi.Input['EnvironmentGitDetailsArgs'] git_details: Contains parameters related to creating an Entity for Git Experience.
43
43
  :param pulumi.Input[_builtins.str] name: Name of the resource.
44
44
  :param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
45
45
  :param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
46
46
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: Tags to associate with the resource.
47
- :param pulumi.Input[_builtins.str] yaml: Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.
48
- connectorId.
47
+ :param pulumi.Input[_builtins.str] yaml: Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
49
48
  """
50
49
  pulumi.set(__self__, "identifier", identifier)
51
50
  pulumi.set(__self__, "type", type)
@@ -120,7 +119,7 @@ class EnvironmentArgs:
120
119
  @pulumi.getter(name="forceDelete")
121
120
  def force_delete(self) -> Optional[pulumi.Input[_builtins.bool]]:
122
121
  """
123
- When set to true, enables force deletion of environments.
122
+ Enable this flag for force deletion of environments
124
123
  """
125
124
  return pulumi.get(self, "force_delete")
126
125
 
@@ -132,7 +131,7 @@ class EnvironmentArgs:
132
131
  @pulumi.getter(name="gitDetails")
133
132
  def git_details(self) -> Optional[pulumi.Input['EnvironmentGitDetailsArgs']]:
134
133
  """
135
- Contains Git Information for remote entities from Git for Create/Update/Import
134
+ Contains parameters related to creating an Entity for Git Experience.
136
135
  """
137
136
  return pulumi.get(self, "git_details")
138
137
 
@@ -192,8 +191,7 @@ class EnvironmentArgs:
192
191
  @pulumi.getter
193
192
  def yaml(self) -> Optional[pulumi.Input[_builtins.str]]:
194
193
  """
195
- Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.
196
- connectorId.
194
+ Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
197
195
  """
198
196
  return pulumi.get(self, "yaml")
199
197
 
@@ -220,16 +218,15 @@ class _EnvironmentState:
220
218
  Input properties used for looking up and filtering Environment resources.
221
219
  :param pulumi.Input[_builtins.str] color: Color of the environment.
222
220
  :param pulumi.Input[_builtins.str] description: Description of the resource.
223
- :param pulumi.Input[_builtins.bool] force_delete: When set to true, enables force deletion of environments.
224
- :param pulumi.Input['EnvironmentGitDetailsArgs'] git_details: Contains Git Information for remote entities from Git for Create/Update/Import
221
+ :param pulumi.Input[_builtins.bool] force_delete: Enable this flag for force deletion of environments
222
+ :param pulumi.Input['EnvironmentGitDetailsArgs'] git_details: Contains parameters related to creating an Entity for Git Experience.
225
223
  :param pulumi.Input[_builtins.str] identifier: Unique identifier of the resource.
226
224
  :param pulumi.Input[_builtins.str] name: Name of the resource.
227
225
  :param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
228
226
  :param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
229
227
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: Tags to associate with the resource.
230
228
  :param pulumi.Input[_builtins.str] type: The type of environment. Valid values are PreProduction, Production
231
- :param pulumi.Input[_builtins.str] yaml: Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.
232
- connectorId.
229
+ :param pulumi.Input[_builtins.str] yaml: Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
233
230
  """
234
231
  if color is not None:
235
232
  pulumi.set(__self__, "color", color)
@@ -282,7 +279,7 @@ class _EnvironmentState:
282
279
  @pulumi.getter(name="forceDelete")
283
280
  def force_delete(self) -> Optional[pulumi.Input[_builtins.bool]]:
284
281
  """
285
- When set to true, enables force deletion of environments.
282
+ Enable this flag for force deletion of environments
286
283
  """
287
284
  return pulumi.get(self, "force_delete")
288
285
 
@@ -294,7 +291,7 @@ class _EnvironmentState:
294
291
  @pulumi.getter(name="gitDetails")
295
292
  def git_details(self) -> Optional[pulumi.Input['EnvironmentGitDetailsArgs']]:
296
293
  """
297
- Contains Git Information for remote entities from Git for Create/Update/Import
294
+ Contains parameters related to creating an Entity for Git Experience.
298
295
  """
299
296
  return pulumi.get(self, "git_details")
300
297
 
@@ -378,8 +375,7 @@ class _EnvironmentState:
378
375
  @pulumi.getter
379
376
  def yaml(self) -> Optional[pulumi.Input[_builtins.str]]:
380
377
  """
381
- Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.
382
- connectorId.
378
+ Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
383
379
  """
384
380
  return pulumi.get(self, "yaml")
385
381
 
@@ -409,259 +405,10 @@ class Environment(pulumi.CustomResource):
409
405
  """
410
406
  Resource for creating a Harness environment.
411
407
 
412
- ## Example to create Environment at different levels (Org, Project, Account)
413
-
414
- ### Account Level
415
- ```python
416
- import pulumi
417
- import pulumi_harness as harness
418
-
419
- example = harness.platform.Environment("example",
420
- identifier="identifier",
421
- name="name",
422
- tags=[
423
- "foo:bar",
424
- "bar:foo",
425
- ],
426
- type="PreProduction",
427
- description="env description",
428
- yaml=\"\"\"environment:
429
- name: name
430
- identifier: identifier
431
- type: PreProduction
432
- tags:
433
- foo: bar
434
- bar: foo
435
- variables:
436
- - name: envVar1
437
- type: String
438
- value: v1
439
- description: ""
440
- - name: envVar2
441
- type: String
442
- value: v2
443
- description: ""
444
- overrides:
445
- manifests:
446
- - manifest:
447
- identifier: manifestEnv
448
- type: Values
449
- spec:
450
- store:
451
- type: Git
452
- spec:
453
- connectorRef: <+input>
454
- gitFetchType: Branch
455
- paths:
456
- - file1
457
- repoName: <+input>
458
- branch: master
459
- configFiles:
460
- - configFile:
461
- identifier: configFileEnv
462
- spec:
463
- store:
464
- type: Harness
465
- spec:
466
- files:
467
- - account:/Add-ons/svcOverrideTest
468
- secretFiles: []
469
- \"\"\")
470
- ```
471
-
472
- ### Org Level
473
- ```python
474
- import pulumi
475
- import pulumi_harness as harness
476
-
477
- example = harness.platform.Environment("example",
478
- identifier="identifier",
479
- name="name",
480
- org_id="org_id",
481
- tags=[
482
- "foo:bar",
483
- "bar:foo",
484
- ],
485
- type="PreProduction",
486
- description="env description",
487
- yaml=\"\"\"environment:
488
- name: name
489
- identifier: identifier
490
- orgIdentifier: org_id
491
- type: PreProduction
492
- tags:
493
- foo: bar
494
- bar: foo
495
- variables:
496
- - name: envVar1
497
- type: String
498
- value: v1
499
- description: ""
500
- - name: envVar2
501
- type: String
502
- value: v2
503
- description: ""
504
- overrides:
505
- manifests:
506
- - manifest:
507
- identifier: manifestEnv
508
- type: Values
509
- spec:
510
- store:
511
- type: Git
512
- spec:
513
- connectorRef: <+input>
514
- gitFetchType: Branch
515
- paths:
516
- - file1
517
- repoName: <+input>
518
- branch: master
519
- configFiles:
520
- - configFile:
521
- identifier: configFileEnv
522
- spec:
523
- store:
524
- type: Harness
525
- spec:
526
- files:
527
- - account:/Add-ons/svcOverrideTest
528
- secretFiles: []
529
- \"\"\")
530
- ```
531
-
532
- ### Project Level
533
- ```python
534
- import pulumi
535
- import pulumi_harness as harness
536
-
537
- example = harness.platform.Environment("example",
538
- identifier="identifier",
539
- name="name",
540
- org_id="org_id",
541
- project_id="project_id",
542
- tags=[
543
- "foo:bar",
544
- "bar:foo",
545
- ],
546
- type="PreProduction",
547
- description="env description",
548
- yaml=\"\"\"environment:
549
- name: name
550
- identifier: identifier
551
- orgIdentifier: org_id
552
- projectIdentifier: project_id
553
- type: PreProduction
554
- tags:
555
- foo: bar
556
- bar: foo
557
- variables:
558
- - name: envVar1
559
- type: String
560
- value: v1
561
- description: ""
562
- - name: envVar2
563
- type: String
564
- value: v2
565
- description: ""
566
- overrides:
567
- manifests:
568
- - manifest:
569
- identifier: manifestEnv
570
- type: Values
571
- spec:
572
- store:
573
- type: Git
574
- spec:
575
- connectorRef: <+input>
576
- gitFetchType: Branch
577
- paths:
578
- - file1
579
- repoName: <+input>
580
- branch: master
581
- configFiles:
582
- - configFile:
583
- identifier: configFileEnv
584
- spec:
585
- store:
586
- type: Harness
587
- spec:
588
- files:
589
- - account:/Add-ons/svcOverrideTest
590
- secretFiles: []
591
- \"\"\")
592
- ```
593
-
594
- ### Creating Remote Environment
595
- ```python
596
- import pulumi
597
- import pulumi_harness as harness
598
-
599
- example = harness.platform.Environment("example",
600
- identifier="identifier",
601
- name="name",
602
- description="test",
603
- org_id="org_id",
604
- project_id="project_id",
605
- git_details={
606
- "store_type": "REMOTE",
607
- "connector_ref": "connector_ref",
608
- "repo_name": "repo_name",
609
- "file_path": "file_path",
610
- "branch": "branch",
611
- },
612
- yaml=\"\"\"environment:
613
- name: env
614
- identifier: env
615
- tags:
616
- test: ""
617
- type: PreProduction
618
- orgIdentifier: default
619
- projectIdentifier: proj1
620
- variables:
621
- - name: var1
622
- type: String
623
- value: abc
624
- description: ""
625
- required: false
626
- overrides:
627
- manifests:
628
- - manifest:
629
- identifier: Manifest1
630
- type: Values
631
- spec:
632
- store:
633
- type: Github
634
- spec:
635
- connectorRef: <+input>
636
- gitFetchType: Branch
637
- paths:
638
- - .harness/
639
- repoName: <+input>
640
- branch: <+input>
641
- \"\"\")
642
- ```
643
-
644
- ### Importing Environment From Git
645
- ```python
646
- import pulumi
647
- import pulumi_harness as harness
648
-
649
- example = harness.platform.Environment("example",
650
- identifier="identifier",
651
- name="name",
652
- type="PreProduction",
653
- git_details={
654
- "store_type": "REMOTE",
655
- "connector_ref": "connector_ref",
656
- "repo_name": "repo_name",
657
- "file_path": "file_path",
658
- "branch": "branch",
659
- "import_from_git": True,
660
- })
661
- ```
662
-
663
408
  ## Import
664
409
 
410
+ The `pulumi import` command can be used, for example:
411
+
665
412
  Import account level environment id
666
413
 
667
414
  ```sh
@@ -684,16 +431,15 @@ class Environment(pulumi.CustomResource):
684
431
  :param pulumi.ResourceOptions opts: Options for the resource.
685
432
  :param pulumi.Input[_builtins.str] color: Color of the environment.
686
433
  :param pulumi.Input[_builtins.str] description: Description of the resource.
687
- :param pulumi.Input[_builtins.bool] force_delete: When set to true, enables force deletion of environments.
688
- :param pulumi.Input[Union['EnvironmentGitDetailsArgs', 'EnvironmentGitDetailsArgsDict']] git_details: Contains Git Information for remote entities from Git for Create/Update/Import
434
+ :param pulumi.Input[_builtins.bool] force_delete: Enable this flag for force deletion of environments
435
+ :param pulumi.Input[Union['EnvironmentGitDetailsArgs', 'EnvironmentGitDetailsArgsDict']] git_details: Contains parameters related to creating an Entity for Git Experience.
689
436
  :param pulumi.Input[_builtins.str] identifier: Unique identifier of the resource.
690
437
  :param pulumi.Input[_builtins.str] name: Name of the resource.
691
438
  :param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
692
439
  :param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
693
440
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: Tags to associate with the resource.
694
441
  :param pulumi.Input[_builtins.str] type: The type of environment. Valid values are PreProduction, Production
695
- :param pulumi.Input[_builtins.str] yaml: Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.
696
- connectorId.
442
+ :param pulumi.Input[_builtins.str] yaml: Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
697
443
  """
698
444
  ...
699
445
  @overload
@@ -704,259 +450,10 @@ class Environment(pulumi.CustomResource):
704
450
  """
705
451
  Resource for creating a Harness environment.
706
452
 
707
- ## Example to create Environment at different levels (Org, Project, Account)
708
-
709
- ### Account Level
710
- ```python
711
- import pulumi
712
- import pulumi_harness as harness
713
-
714
- example = harness.platform.Environment("example",
715
- identifier="identifier",
716
- name="name",
717
- tags=[
718
- "foo:bar",
719
- "bar:foo",
720
- ],
721
- type="PreProduction",
722
- description="env description",
723
- yaml=\"\"\"environment:
724
- name: name
725
- identifier: identifier
726
- type: PreProduction
727
- tags:
728
- foo: bar
729
- bar: foo
730
- variables:
731
- - name: envVar1
732
- type: String
733
- value: v1
734
- description: ""
735
- - name: envVar2
736
- type: String
737
- value: v2
738
- description: ""
739
- overrides:
740
- manifests:
741
- - manifest:
742
- identifier: manifestEnv
743
- type: Values
744
- spec:
745
- store:
746
- type: Git
747
- spec:
748
- connectorRef: <+input>
749
- gitFetchType: Branch
750
- paths:
751
- - file1
752
- repoName: <+input>
753
- branch: master
754
- configFiles:
755
- - configFile:
756
- identifier: configFileEnv
757
- spec:
758
- store:
759
- type: Harness
760
- spec:
761
- files:
762
- - account:/Add-ons/svcOverrideTest
763
- secretFiles: []
764
- \"\"\")
765
- ```
766
-
767
- ### Org Level
768
- ```python
769
- import pulumi
770
- import pulumi_harness as harness
771
-
772
- example = harness.platform.Environment("example",
773
- identifier="identifier",
774
- name="name",
775
- org_id="org_id",
776
- tags=[
777
- "foo:bar",
778
- "bar:foo",
779
- ],
780
- type="PreProduction",
781
- description="env description",
782
- yaml=\"\"\"environment:
783
- name: name
784
- identifier: identifier
785
- orgIdentifier: org_id
786
- type: PreProduction
787
- tags:
788
- foo: bar
789
- bar: foo
790
- variables:
791
- - name: envVar1
792
- type: String
793
- value: v1
794
- description: ""
795
- - name: envVar2
796
- type: String
797
- value: v2
798
- description: ""
799
- overrides:
800
- manifests:
801
- - manifest:
802
- identifier: manifestEnv
803
- type: Values
804
- spec:
805
- store:
806
- type: Git
807
- spec:
808
- connectorRef: <+input>
809
- gitFetchType: Branch
810
- paths:
811
- - file1
812
- repoName: <+input>
813
- branch: master
814
- configFiles:
815
- - configFile:
816
- identifier: configFileEnv
817
- spec:
818
- store:
819
- type: Harness
820
- spec:
821
- files:
822
- - account:/Add-ons/svcOverrideTest
823
- secretFiles: []
824
- \"\"\")
825
- ```
826
-
827
- ### Project Level
828
- ```python
829
- import pulumi
830
- import pulumi_harness as harness
831
-
832
- example = harness.platform.Environment("example",
833
- identifier="identifier",
834
- name="name",
835
- org_id="org_id",
836
- project_id="project_id",
837
- tags=[
838
- "foo:bar",
839
- "bar:foo",
840
- ],
841
- type="PreProduction",
842
- description="env description",
843
- yaml=\"\"\"environment:
844
- name: name
845
- identifier: identifier
846
- orgIdentifier: org_id
847
- projectIdentifier: project_id
848
- type: PreProduction
849
- tags:
850
- foo: bar
851
- bar: foo
852
- variables:
853
- - name: envVar1
854
- type: String
855
- value: v1
856
- description: ""
857
- - name: envVar2
858
- type: String
859
- value: v2
860
- description: ""
861
- overrides:
862
- manifests:
863
- - manifest:
864
- identifier: manifestEnv
865
- type: Values
866
- spec:
867
- store:
868
- type: Git
869
- spec:
870
- connectorRef: <+input>
871
- gitFetchType: Branch
872
- paths:
873
- - file1
874
- repoName: <+input>
875
- branch: master
876
- configFiles:
877
- - configFile:
878
- identifier: configFileEnv
879
- spec:
880
- store:
881
- type: Harness
882
- spec:
883
- files:
884
- - account:/Add-ons/svcOverrideTest
885
- secretFiles: []
886
- \"\"\")
887
- ```
888
-
889
- ### Creating Remote Environment
890
- ```python
891
- import pulumi
892
- import pulumi_harness as harness
893
-
894
- example = harness.platform.Environment("example",
895
- identifier="identifier",
896
- name="name",
897
- description="test",
898
- org_id="org_id",
899
- project_id="project_id",
900
- git_details={
901
- "store_type": "REMOTE",
902
- "connector_ref": "connector_ref",
903
- "repo_name": "repo_name",
904
- "file_path": "file_path",
905
- "branch": "branch",
906
- },
907
- yaml=\"\"\"environment:
908
- name: env
909
- identifier: env
910
- tags:
911
- test: ""
912
- type: PreProduction
913
- orgIdentifier: default
914
- projectIdentifier: proj1
915
- variables:
916
- - name: var1
917
- type: String
918
- value: abc
919
- description: ""
920
- required: false
921
- overrides:
922
- manifests:
923
- - manifest:
924
- identifier: Manifest1
925
- type: Values
926
- spec:
927
- store:
928
- type: Github
929
- spec:
930
- connectorRef: <+input>
931
- gitFetchType: Branch
932
- paths:
933
- - .harness/
934
- repoName: <+input>
935
- branch: <+input>
936
- \"\"\")
937
- ```
938
-
939
- ### Importing Environment From Git
940
- ```python
941
- import pulumi
942
- import pulumi_harness as harness
943
-
944
- example = harness.platform.Environment("example",
945
- identifier="identifier",
946
- name="name",
947
- type="PreProduction",
948
- git_details={
949
- "store_type": "REMOTE",
950
- "connector_ref": "connector_ref",
951
- "repo_name": "repo_name",
952
- "file_path": "file_path",
953
- "branch": "branch",
954
- "import_from_git": True,
955
- })
956
- ```
957
-
958
453
  ## Import
959
454
 
455
+ The `pulumi import` command can be used, for example:
456
+
960
457
  Import account level environment id
961
458
 
962
459
  ```sh
@@ -1055,16 +552,15 @@ class Environment(pulumi.CustomResource):
1055
552
  :param pulumi.ResourceOptions opts: Options for the resource.
1056
553
  :param pulumi.Input[_builtins.str] color: Color of the environment.
1057
554
  :param pulumi.Input[_builtins.str] description: Description of the resource.
1058
- :param pulumi.Input[_builtins.bool] force_delete: When set to true, enables force deletion of environments.
1059
- :param pulumi.Input[Union['EnvironmentGitDetailsArgs', 'EnvironmentGitDetailsArgsDict']] git_details: Contains Git Information for remote entities from Git for Create/Update/Import
555
+ :param pulumi.Input[_builtins.bool] force_delete: Enable this flag for force deletion of environments
556
+ :param pulumi.Input[Union['EnvironmentGitDetailsArgs', 'EnvironmentGitDetailsArgsDict']] git_details: Contains parameters related to creating an Entity for Git Experience.
1060
557
  :param pulumi.Input[_builtins.str] identifier: Unique identifier of the resource.
1061
558
  :param pulumi.Input[_builtins.str] name: Name of the resource.
1062
559
  :param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
1063
560
  :param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
1064
561
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: Tags to associate with the resource.
1065
562
  :param pulumi.Input[_builtins.str] type: The type of environment. Valid values are PreProduction, Production
1066
- :param pulumi.Input[_builtins.str] yaml: Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.
1067
- connectorId.
563
+ :param pulumi.Input[_builtins.str] yaml: Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
1068
564
  """
1069
565
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
1070
566
 
@@ -1103,7 +599,7 @@ class Environment(pulumi.CustomResource):
1103
599
  @pulumi.getter(name="forceDelete")
1104
600
  def force_delete(self) -> pulumi.Output[_builtins.bool]:
1105
601
  """
1106
- When set to true, enables force deletion of environments.
602
+ Enable this flag for force deletion of environments
1107
603
  """
1108
604
  return pulumi.get(self, "force_delete")
1109
605
 
@@ -1111,7 +607,7 @@ class Environment(pulumi.CustomResource):
1111
607
  @pulumi.getter(name="gitDetails")
1112
608
  def git_details(self) -> pulumi.Output['outputs.EnvironmentGitDetails']:
1113
609
  """
1114
- Contains Git Information for remote entities from Git for Create/Update/Import
610
+ Contains parameters related to creating an Entity for Git Experience.
1115
611
  """
1116
612
  return pulumi.get(self, "git_details")
1117
613
 
@@ -1167,8 +663,7 @@ class Environment(pulumi.CustomResource):
1167
663
  @pulumi.getter
1168
664
  def yaml(self) -> pulumi.Output[Optional[_builtins.str]]:
1169
665
  """
1170
- Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.
1171
- connectorId.
666
+ Environment YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
1172
667
  """
1173
668
  return pulumi.get(self, "yaml")
1174
669