Skip to main content

Survey

Resource Survey in pulumi-posthog.
5 min read

Resource Survey in pulumi-posthog.

Pulumi type: posthog:index/survey:Survey.

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
appearanceJsonstringnoJSON object describing survey appearance settings.
archivedbooleannoWhether the survey is archived.
conditionsJsonstringnoJSON object describing survey display and targeting conditions.
createInFolderstringnoFolder identifier used only during survey creation.
descriptionstringnoSurvey description.
enableIframeEmbeddingbooleannoWhether the survey is embeddable in an iframe.
enablePartialResponsesbooleannoWhether partial responses are stored when a respondent exits early.
endDatestringnoRFC3339 end date for the survey.
formContentJsonstringnoJSON object describing custom form content.
iterationCountnumbernoNumber of survey recurrences when schedule is recurring.
iterationFrequencyDaysnumbernoNumber of days between recurrences when schedule is recurring.
linkedFlagIdnumbernoFeature flag ID linked to the survey. Remove this attribute to unlink the flag from the survey.
linkedInsightIdnumbernoInsight ID linked to the survey. This field is write-only in the PostHog API and is preserved from Terraform state when configured.
namestringnoSurvey name.
projectIdstringnoProject ID (environment) for this resource. Overrides the provider-level project_id.
questionsJsonstringyesJSON array describing the survey questions.
responseSamplingDailyLimitsJsonstringnoJSON object describing daily response sampling limits.
responseSamplingIntervalnumbernoResponse sampling interval value.
responseSamplingIntervalTypestringnoResponse sampling interval type. Supported values are day, week, and month.
responseSamplingLimitnumbernoMaximum responses allowed during each sampling interval.
responseSamplingStartDatestringnoRFC3339 date when response sampling starts.
responsesLimitnumbernoMaximum number of responses allowed for the survey.
schedulestringnoSurvey schedule. Supported values are once, recurring, and always.
startDatestringnoRFC3339 start date for the survey.
targetingFlagFiltersJsonstringnoJSON object describing targeting flag filters. This input is write-only in the PostHog API and is preserved from Terraform state when configured.
targetingFlagIdnumbernoExisting targeting feature flag ID to use for this survey. Remove this attribute to detach the targeting flag.
translationsJsonstringnoJSON object describing translated survey content.
typestringyesSurvey type. Supported values are popover, widget, externalSurvey, and api.

Outputs#

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

PropertyTypeComputedDescription
appearanceJsonstringnoJSON object describing survey appearance settings.
archivedbooleannoWhether the survey is archived.
conditionsJsonstringnoJSON object describing survey display and targeting conditions.
createInFolderstringnoFolder identifier used only during survey creation.
createdAtstringyesRFC3339 creation timestamp of the survey.
createdByJsonstringyesJSON object describing the survey creator.
descriptionstringnoSurvey description.
enableIframeEmbeddingbooleannoWhether the survey is embeddable in an iframe.
enablePartialResponsesbooleannoWhether partial responses are stored when a respondent exits early.
endDatestringnoRFC3339 end date for the survey.
formContentJsonstringnoJSON object describing custom form content.
internalTargetingFlagJsonstringyesJSON object describing the internal targeting feature flag returned by the API.
iterationCountnumbernoNumber of survey recurrences when schedule is recurring.
iterationFrequencyDaysnumbernoNumber of days between recurrences when schedule is recurring.
linkedFlagIdnumbernoFeature flag ID linked to the survey. Remove this attribute to unlink the flag from the survey.
linkedFlagJsonstringyesJSON object describing the linked feature flag returned by the API.
linkedInsightIdnumbernoInsight ID linked to the survey. This field is write-only in the PostHog API and is preserved from Terraform state when configured.
namestringnoSurvey name.
projectIdstringnoProject ID (environment) for this resource. Overrides the provider-level project_id.
questionsJsonstringnoJSON array describing the survey questions.
responseSamplingDailyLimitsJsonstringnoJSON object describing daily response sampling limits.
responseSamplingIntervalnumbernoResponse sampling interval value.
responseSamplingIntervalTypestringnoResponse sampling interval type. Supported values are day, week, and month.
responseSamplingLimitnumbernoMaximum responses allowed during each sampling interval.
responseSamplingStartDatestringnoRFC3339 date when response sampling starts.
responsesLimitnumbernoMaximum number of responses allowed for the survey.
schedulestringnoSurvey schedule. Supported values are once, recurring, and always.
startDatestringnoRFC3339 start date for the survey.
targetingFlagFiltersJsonstringnoJSON object describing targeting flag filters. This input is write-only in the PostHog API and is preserved from Terraform state when configured.
targetingFlagIdnumbernoExisting targeting feature flag ID to use for this survey. Remove this attribute to detach the targeting flag.
targetingFlagJsonstringyesJSON object describing the targeting feature flag returned by the API.
translationsJsonstringnoJSON object describing translated survey content.
typestringnoSurvey type. Supported values are popover, widget, externalSurvey, and api.