Resource Cohort in pulumi-posthog.
Pulumi type: posthog:index/cohort:Cohort.
name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.
Example#
Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.
Arguments#
| Property | Type | Required | Description |
|---|---|---|---|
deleted | boolean | no | Whether the cohort is soft-deleted. PostHog does not permit hard deletion of cohorts, so destroying this resource marks it deleted. Terraform will restore soft-deleted cohorts on apply. |
description | string | no | Cohort description |
filters | string | no | Cohort membership rules as JSON, matching the filters object of the cohorts API. Compared semantically, so key ordering and whitespace differences from the PostHog API do not produce a diff. Only the fields declared here are tracked: PostHog annotates saved cohorts with computed fields (bytecode, conditionHash) that would otherwise surface as perpetual drift. |
isStatic | boolean | no | Whether the cohort is static (a fixed list of persons) rather than dynamic (recomputed by PostHog from filters). Defaults to false. Membership of a static cohort is not managed by this resource. |
name | string | no | Cohort name |
projectId | string | no | Project ID (environment) for this resource. Overrides the provider-level project_id. |
Outputs#
Computed outputs are produced by the provider. They are not constructor arguments.
| Property | Type | Computed | Description |
|---|---|---|---|
cohortId | number | yes | Cohort ID |
createdAt | string | yes | Timestamp when the cohort was created. |
deleted | boolean | no | Whether the cohort is soft-deleted. PostHog does not permit hard deletion of cohorts, so destroying this resource marks it deleted. Terraform will restore soft-deleted cohorts on apply. |
description | string | no | Cohort description |
filters | string | no | Cohort membership rules as JSON, matching the filters object of the cohorts API. Compared semantically, so key ordering and whitespace differences from the PostHog API do not produce a diff. Only the fields declared here are tracked: PostHog annotates saved cohorts with computed fields (bytecode, conditionHash) that would otherwise surface as perpetual drift. |
isStatic | boolean | no | Whether the cohort is static (a fixed list of persons) rather than dynamic (recomputed by PostHog from filters). Defaults to false. Membership of a static cohort is not managed by this resource. |
name | string | no | Cohort name |
projectId | string | no | Project ID (environment) for this resource. Overrides the provider-level project_id. |