Skip to main content

Cohort

Resource Cohort in pulumi-posthog.
3 min read

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#

PropertyTypeRequiredDescription
deletedbooleannoWhether 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.
descriptionstringnoCohort description
filtersstringnoCohort 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.
isStaticbooleannoWhether 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.
namestringnoCohort name
projectIdstringnoProject ID (environment) for this resource. Overrides the provider-level project_id.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
cohortIdnumberyesCohort ID
createdAtstringyesTimestamp when the cohort was created.
deletedbooleannoWhether 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.
descriptionstringnoCohort description
filtersstringnoCohort 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.
isStaticbooleannoWhether 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.
namestringnoCohort name
projectIdstringnoProject ID (environment) for this resource. Overrides the provider-level project_id.