webflow

package module
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Unofficial community-maintained Pulumi provider for managing Webflow sites, redirects, and robots.txt. Not affiliated with Pulumi Corporation or Webflow, Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	pulumi.CustomResourceState

	// The Webflow-assigned asset ID (read-only). This unique identifier can be used to reference the asset in API calls.
	AssetId pulumi.StringPtrOutput `pulumi:"assetId"`
	// The direct S3 URL for the asset (read-only). This is the raw S3 location where the file is stored.
	AssetUrl pulumi.StringPtrOutput `pulumi:"assetUrl"`
	// The MIME type of the asset (read-only). Examples: 'image/png', 'image/jpeg', 'application/pdf'. Determined by the fileName extension.
	ContentType pulumi.StringPtrOutput `pulumi:"contentType"`
	// The timestamp when the asset metadata was created (RFC3339 format, read-only). This is set when the asset is registered with Webflow.
	CreatedOn pulumi.StringPtrOutput `pulumi:"createdOn"`
	// MD5 hash of the file content (required). Webflow uses this hash to identify and deduplicate assets. Generate using: md5sum <filename> (Linux) or md5 <filename> (macOS). Example: 'd41d8cd98f00b204e9800998ecf8427e'.
	FileHash pulumi.StringOutput `pulumi:"fileHash"`
	// The name of the file to upload, including the extension. Examples: 'logo.png', 'hero-image.jpg', 'document.pdf'. The file name must not exceed 255 characters and should not contain invalid characters (<, >, :, ", |, ?, *).
	FileName pulumi.StringOutput `pulumi:"fileName"`
	// The source of the file to upload. For the current implementation, this is a reference field. In future versions, this may support URLs or local file paths for automatic upload. Examples: 'https://example.com/logo.png', '/path/to/local/file.png'.
	FileSource pulumi.StringPtrOutput `pulumi:"fileSource"`
	// The Webflow CDN URL where the asset will be hosted (read-only). This URL becomes accessible after completing the S3 upload. Example: 'https://assets.website-files.com/.../logo.png'.
	HostedUrl pulumi.StringPtrOutput `pulumi:"hostedUrl"`
	// The timestamp when the asset was last modified (RFC3339 format, read-only). For most assets, this will be the same as createdOn since assets are immutable.
	LastUpdated pulumi.StringPtrOutput `pulumi:"lastUpdated"`
	// Optional folder ID where the asset will be organized in the Webflow Assets panel. If not specified, the asset will be placed at the root level. Example: '5f0c8c9e1c9d440000e8d8c4'.
	ParentFolder pulumi.StringPtrOutput `pulumi:"parentFolder"`
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringOutput `pulumi:"siteId"`
	// The size of the asset in bytes (read-only). This is the actual size of the uploaded file.
	Size pulumi.IntPtrOutput `pulumi:"size"`
	// AWS S3 POST form fields required to complete the upload (read-only). Include these as form fields when POSTing the file to uploadUrl. Keys: acl, bucket, key, Content-Type, X-Amz-Algorithm, X-Amz-Credential, X-Amz-Date, Policy, X-Amz-Signature, success_action_status, Cache-Control.
	UploadDetails pulumi.StringMapOutput `pulumi:"uploadDetails"`
	// The presigned S3 URL for uploading the file content (read-only). Use this URL along with uploadDetails to complete the asset upload. See AWS S3 POST documentation: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html
	UploadUrl pulumi.StringPtrOutput `pulumi:"uploadUrl"`
}

Manages assets (images, files, documents) for a Webflow site. This resource allows you to upload and manage files that can be used in your Webflow site. Note: Assets are immutable - changing any property will delete and recreate the asset.

func GetAsset

func GetAsset(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AssetState, opts ...pulumi.ResourceOption) (*Asset, error)

GetAsset gets an existing Asset resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAsset

func NewAsset(ctx *pulumi.Context,
	name string, args *AssetArgs, opts ...pulumi.ResourceOption) (*Asset, error)

NewAsset registers a new resource with the given unique name, arguments, and options.

func (*Asset) ElementType

func (*Asset) ElementType() reflect.Type

func (*Asset) ToAssetOutput

func (i *Asset) ToAssetOutput() AssetOutput

func (*Asset) ToAssetOutputWithContext

func (i *Asset) ToAssetOutputWithContext(ctx context.Context) AssetOutput

type AssetArgs

type AssetArgs struct {
	// MD5 hash of the file content (required). Webflow uses this hash to identify and deduplicate assets. Generate using: md5sum <filename> (Linux) or md5 <filename> (macOS). Example: 'd41d8cd98f00b204e9800998ecf8427e'.
	FileHash pulumi.StringInput
	// The name of the file to upload, including the extension. Examples: 'logo.png', 'hero-image.jpg', 'document.pdf'. The file name must not exceed 255 characters and should not contain invalid characters (<, >, :, ", |, ?, *).
	FileName pulumi.StringInput
	// The source of the file to upload. For the current implementation, this is a reference field. In future versions, this may support URLs or local file paths for automatic upload. Examples: 'https://example.com/logo.png', '/path/to/local/file.png'.
	FileSource pulumi.StringPtrInput
	// Optional folder ID where the asset will be organized in the Webflow Assets panel. If not specified, the asset will be placed at the root level. Example: '5f0c8c9e1c9d440000e8d8c4'.
	ParentFolder pulumi.StringPtrInput
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringInput
}

The set of arguments for constructing a Asset resource.

func (AssetArgs) ElementType

func (AssetArgs) ElementType() reflect.Type

type AssetFolder

type AssetFolder struct {
	pulumi.CustomResourceState

	// List of asset IDs currently contained in this folder (read-only). This is automatically populated by Webflow when assets are added to the folder.
	Assets pulumi.StringArrayOutput `pulumi:"assets"`
	// The timestamp when the folder was created (RFC3339 format, read-only). This is automatically set when the folder is created.
	CreatedOn pulumi.StringPtrOutput `pulumi:"createdOn"`
	// The human-readable name for the asset folder. This name appears in the Webflow Assets panel and helps organize your files. Examples: 'Images', 'Documents', 'Icons', 'Hero Backgrounds'. Maximum length: 255 characters.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The Webflow-assigned folder ID (read-only). This unique identifier can be used to reference the folder in other resources, such as when uploading assets to this folder.
	FolderId pulumi.StringPtrOutput `pulumi:"folderId"`
	// The timestamp when the folder was last modified (RFC3339 format, read-only). This is updated when assets are added or removed from the folder.
	LastUpdated pulumi.StringPtrOutput `pulumi:"lastUpdated"`
	// Optional ID of the parent folder for creating nested folder structures. If not specified, the folder will be created at the root level of the Assets panel. Example: '5f0c8c9e1c9d440000e8d8c4'.
	ParentFolder pulumi.StringPtrOutput `pulumi:"parentFolder"`
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringOutput `pulumi:"siteId"`
}

Manages asset folders for organizing files in a Webflow site. This resource allows you to create folders to organize your assets (images, documents, etc.) in the Webflow Assets panel. NOTE: The Webflow API does not support deleting or updating asset folders. Deleting this resource will only remove it from Pulumi state, not from Webflow. Any changes to folder properties will require creating a new folder.

func GetAssetFolder

func GetAssetFolder(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AssetFolderState, opts ...pulumi.ResourceOption) (*AssetFolder, error)

GetAssetFolder gets an existing AssetFolder resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAssetFolder

func NewAssetFolder(ctx *pulumi.Context,
	name string, args *AssetFolderArgs, opts ...pulumi.ResourceOption) (*AssetFolder, error)

NewAssetFolder registers a new resource with the given unique name, arguments, and options.

func (*AssetFolder) ElementType

func (*AssetFolder) ElementType() reflect.Type

func (*AssetFolder) ToAssetFolderOutput

func (i *AssetFolder) ToAssetFolderOutput() AssetFolderOutput

func (*AssetFolder) ToAssetFolderOutputWithContext

func (i *AssetFolder) ToAssetFolderOutputWithContext(ctx context.Context) AssetFolderOutput

type AssetFolderArgs

type AssetFolderArgs struct {
	// The human-readable name for the asset folder. This name appears in the Webflow Assets panel and helps organize your files. Examples: 'Images', 'Documents', 'Icons', 'Hero Backgrounds'. Maximum length: 255 characters.
	DisplayName pulumi.StringInput
	// Optional ID of the parent folder for creating nested folder structures. If not specified, the folder will be created at the root level of the Assets panel. Example: '5f0c8c9e1c9d440000e8d8c4'.
	ParentFolder pulumi.StringPtrInput
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringInput
}

The set of arguments for constructing a AssetFolder resource.

func (AssetFolderArgs) ElementType

func (AssetFolderArgs) ElementType() reflect.Type

type AssetFolderInput

type AssetFolderInput interface {
	pulumi.Input

	ToAssetFolderOutput() AssetFolderOutput
	ToAssetFolderOutputWithContext(ctx context.Context) AssetFolderOutput
}

type AssetFolderOutput

type AssetFolderOutput struct{ *pulumi.OutputState }

func (AssetFolderOutput) Assets

List of asset IDs currently contained in this folder (read-only). This is automatically populated by Webflow when assets are added to the folder.

func (AssetFolderOutput) CreatedOn

The timestamp when the folder was created (RFC3339 format, read-only). This is automatically set when the folder is created.

func (AssetFolderOutput) DisplayName

func (o AssetFolderOutput) DisplayName() pulumi.StringOutput

The human-readable name for the asset folder. This name appears in the Webflow Assets panel and helps organize your files. Examples: 'Images', 'Documents', 'Icons', 'Hero Backgrounds'. Maximum length: 255 characters.

func (AssetFolderOutput) ElementType

func (AssetFolderOutput) ElementType() reflect.Type

func (AssetFolderOutput) FolderId

The Webflow-assigned folder ID (read-only). This unique identifier can be used to reference the folder in other resources, such as when uploading assets to this folder.

func (AssetFolderOutput) LastUpdated

func (o AssetFolderOutput) LastUpdated() pulumi.StringPtrOutput

The timestamp when the folder was last modified (RFC3339 format, read-only). This is updated when assets are added or removed from the folder.

func (AssetFolderOutput) ParentFolder

func (o AssetFolderOutput) ParentFolder() pulumi.StringPtrOutput

Optional ID of the parent folder for creating nested folder structures. If not specified, the folder will be created at the root level of the Assets panel. Example: '5f0c8c9e1c9d440000e8d8c4'.

func (AssetFolderOutput) SiteId

The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.

func (AssetFolderOutput) ToAssetFolderOutput

func (o AssetFolderOutput) ToAssetFolderOutput() AssetFolderOutput

func (AssetFolderOutput) ToAssetFolderOutputWithContext

func (o AssetFolderOutput) ToAssetFolderOutputWithContext(ctx context.Context) AssetFolderOutput

type AssetFolderState

type AssetFolderState struct {
}

func (AssetFolderState) ElementType

func (AssetFolderState) ElementType() reflect.Type

type AssetInput

type AssetInput interface {
	pulumi.Input

	ToAssetOutput() AssetOutput
	ToAssetOutputWithContext(ctx context.Context) AssetOutput
}

type AssetOutput

type AssetOutput struct{ *pulumi.OutputState }

func (AssetOutput) AssetId

func (o AssetOutput) AssetId() pulumi.StringPtrOutput

The Webflow-assigned asset ID (read-only). This unique identifier can be used to reference the asset in API calls.

func (AssetOutput) AssetUrl

func (o AssetOutput) AssetUrl() pulumi.StringPtrOutput

The direct S3 URL for the asset (read-only). This is the raw S3 location where the file is stored.

func (AssetOutput) ContentType

func (o AssetOutput) ContentType() pulumi.StringPtrOutput

The MIME type of the asset (read-only). Examples: 'image/png', 'image/jpeg', 'application/pdf'. Determined by the fileName extension.

func (AssetOutput) CreatedOn

func (o AssetOutput) CreatedOn() pulumi.StringPtrOutput

The timestamp when the asset metadata was created (RFC3339 format, read-only). This is set when the asset is registered with Webflow.

func (AssetOutput) ElementType

func (AssetOutput) ElementType() reflect.Type

func (AssetOutput) FileHash

func (o AssetOutput) FileHash() pulumi.StringOutput

MD5 hash of the file content (required). Webflow uses this hash to identify and deduplicate assets. Generate using: md5sum <filename> (Linux) or md5 <filename> (macOS). Example: 'd41d8cd98f00b204e9800998ecf8427e'.

func (AssetOutput) FileName

func (o AssetOutput) FileName() pulumi.StringOutput

The name of the file to upload, including the extension. Examples: 'logo.png', 'hero-image.jpg', 'document.pdf'. The file name must not exceed 255 characters and should not contain invalid characters (<, >, :, ", |, ?, *).

func (AssetOutput) FileSource

func (o AssetOutput) FileSource() pulumi.StringPtrOutput

The source of the file to upload. For the current implementation, this is a reference field. In future versions, this may support URLs or local file paths for automatic upload. Examples: 'https://example.com/logo.png', '/path/to/local/file.png'.

func (AssetOutput) HostedUrl

func (o AssetOutput) HostedUrl() pulumi.StringPtrOutput

The Webflow CDN URL where the asset will be hosted (read-only). This URL becomes accessible after completing the S3 upload. Example: 'https://assets.website-files.com/.../logo.png'.

func (AssetOutput) LastUpdated

func (o AssetOutput) LastUpdated() pulumi.StringPtrOutput

The timestamp when the asset was last modified (RFC3339 format, read-only). For most assets, this will be the same as createdOn since assets are immutable.

func (AssetOutput) ParentFolder

func (o AssetOutput) ParentFolder() pulumi.StringPtrOutput

Optional folder ID where the asset will be organized in the Webflow Assets panel. If not specified, the asset will be placed at the root level. Example: '5f0c8c9e1c9d440000e8d8c4'.

func (AssetOutput) SiteId

func (o AssetOutput) SiteId() pulumi.StringOutput

The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.

func (AssetOutput) Size

func (o AssetOutput) Size() pulumi.IntPtrOutput

The size of the asset in bytes (read-only). This is the actual size of the uploaded file.

func (AssetOutput) ToAssetOutput

func (o AssetOutput) ToAssetOutput() AssetOutput

func (AssetOutput) ToAssetOutputWithContext

func (o AssetOutput) ToAssetOutputWithContext(ctx context.Context) AssetOutput

func (AssetOutput) UploadDetails

func (o AssetOutput) UploadDetails() pulumi.StringMapOutput

AWS S3 POST form fields required to complete the upload (read-only). Include these as form fields when POSTing the file to uploadUrl. Keys: acl, bucket, key, Content-Type, X-Amz-Algorithm, X-Amz-Credential, X-Amz-Date, Policy, X-Amz-Signature, success_action_status, Cache-Control.

func (AssetOutput) UploadUrl

func (o AssetOutput) UploadUrl() pulumi.StringPtrOutput

The presigned S3 URL for uploading the file content (read-only). Use this URL along with uploadDetails to complete the asset upload. See AWS S3 POST documentation: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html

type AssetState

type AssetState struct {
}

func (AssetState) ElementType

func (AssetState) ElementType() reflect.Type

type Collection

type Collection struct {
	pulumi.CustomResourceState

	// The Webflow-assigned collection ID (24-character lowercase hexadecimal string). Use this ID when creating CollectionField or CollectionItem resources. This is automatically assigned when the collection is created and is read-only.
	CollectionId pulumi.StringPtrOutput `pulumi:"collectionId"`
	// The timestamp when the collection was created (RFC3339 format). This is automatically set by Webflow and is read-only.
	CreatedOn pulumi.StringPtrOutput `pulumi:"createdOn"`
	// The human-readable name of the collection (e.g., 'Blog Posts', 'Products', 'Team Members'). This name appears in the Webflow CMS interface. Maximum length: 255 characters.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The timestamp when the collection was last updated (RFC3339 format). This is automatically updated by Webflow and is read-only.
	LastUpdated pulumi.StringPtrOutput `pulumi:"lastUpdated"`
	// The singular form of the collection name (e.g., 'Blog Post' for 'Blog Posts', 'Product' for 'Products'). Used in the CMS UI when referring to individual items. Maximum length: 255 characters.
	SingularName pulumi.StringOutput `pulumi:"singularName"`
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringOutput `pulumi:"siteId"`
	// The URL-friendly slug for the collection (optional, e.g., 'blog-posts', 'products'). If not provided, Webflow will auto-generate a slug from the displayName. The slug determines the URL path for collection items.
	Slug pulumi.StringPtrOutput `pulumi:"slug"`
}

Manages CMS collections for a Webflow site. Collections are containers for structured content items (blog posts, products, etc.). Note: Webflow collections do not support updates - any changes require replacement (delete + recreate).

func GetCollection

func GetCollection(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CollectionState, opts ...pulumi.ResourceOption) (*Collection, error)

GetCollection gets an existing Collection resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCollection

func NewCollection(ctx *pulumi.Context,
	name string, args *CollectionArgs, opts ...pulumi.ResourceOption) (*Collection, error)

NewCollection registers a new resource with the given unique name, arguments, and options.

func (*Collection) ElementType

func (*Collection) ElementType() reflect.Type

func (*Collection) ToCollectionOutput

func (i *Collection) ToCollectionOutput() CollectionOutput

func (*Collection) ToCollectionOutputWithContext

func (i *Collection) ToCollectionOutputWithContext(ctx context.Context) CollectionOutput

type CollectionArgs

type CollectionArgs struct {
	// The human-readable name of the collection (e.g., 'Blog Posts', 'Products', 'Team Members'). This name appears in the Webflow CMS interface. Maximum length: 255 characters.
	DisplayName pulumi.StringInput
	// The singular form of the collection name (e.g., 'Blog Post' for 'Blog Posts', 'Product' for 'Products'). Used in the CMS UI when referring to individual items. Maximum length: 255 characters.
	SingularName pulumi.StringInput
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringInput
	// The URL-friendly slug for the collection (optional, e.g., 'blog-posts', 'products'). If not provided, Webflow will auto-generate a slug from the displayName. The slug determines the URL path for collection items.
	Slug pulumi.StringPtrInput
}

The set of arguments for constructing a Collection resource.

func (CollectionArgs) ElementType

func (CollectionArgs) ElementType() reflect.Type

type CollectionField

type CollectionField struct {
	pulumi.CustomResourceState

	// The Webflow collection ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find collection IDs via the Webflow API or dashboard. This field will be validated before making any API calls.
	CollectionId pulumi.StringOutput `pulumi:"collectionId"`
	// The human-readable name of the field (e.g., 'Title', 'Description', 'Author'). This name appears in the Webflow CMS interface. Maximum length: 255 characters.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The Webflow-assigned field ID (read-only). This ID is automatically generated when the field is created.
	FieldId pulumi.StringPtrOutput `pulumi:"fieldId"`
	// Optional help text shown in the CMS interface (e.g., 'Enter the article title'). Helps content editors understand what to enter in this field.
	HelpText pulumi.StringPtrOutput `pulumi:"helpText"`
	// Whether the field can be edited (read-only). System fields may not be editable.
	IsEditable pulumi.BoolPtrOutput `pulumi:"isEditable"`
	// Whether the field is required (optional, defaults to false). When true, content items must provide a value for this field.
	IsRequired pulumi.BoolPtrOutput `pulumi:"isRequired"`
	// The URL-friendly slug for the field (optional, e.g., 'title', 'description'). If not provided, Webflow will auto-generate a slug from the displayName. The slug is used in API requests and exports.
	Slug pulumi.StringPtrOutput `pulumi:"slug"`
	// The field type (e.g., 'PlainText', 'RichText', 'Image', 'Number'). Supported types: PlainText, RichText, Image, MultiImage, Video, Link, Email, Phone, Number, DateTime, Switch, Color, Option, File, Reference, MultiReference. IMPORTANT: Cannot be changed after creation - changing this requires replacement.
	Type pulumi.StringOutput `pulumi:"type"`
	// Type-specific validation rules (optional). Different field types support different validations. Example for Number type: {"min": 0, "max": 100}. Example for PlainText type: {"maxLength": 500}. Refer to Webflow API documentation for validation options for each field type.
	Validations pulumi.MapOutput `pulumi:"validations"`
}

Manages fields for a Webflow CMS collection. Collection fields define the structure of content items in a collection. Note: The field type cannot be changed after creation - changing it requires replacement (delete + recreate).

func GetCollectionField

func GetCollectionField(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CollectionFieldState, opts ...pulumi.ResourceOption) (*CollectionField, error)

GetCollectionField gets an existing CollectionField resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCollectionField

func NewCollectionField(ctx *pulumi.Context,
	name string, args *CollectionFieldArgs, opts ...pulumi.ResourceOption) (*CollectionField, error)

NewCollectionField registers a new resource with the given unique name, arguments, and options.

func (*CollectionField) ElementType

func (*CollectionField) ElementType() reflect.Type

func (*CollectionField) ToCollectionFieldOutput

func (i *CollectionField) ToCollectionFieldOutput() CollectionFieldOutput

func (*CollectionField) ToCollectionFieldOutputWithContext

func (i *CollectionField) ToCollectionFieldOutputWithContext(ctx context.Context) CollectionFieldOutput

type CollectionFieldArgs

type CollectionFieldArgs struct {
	// The Webflow collection ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find collection IDs via the Webflow API or dashboard. This field will be validated before making any API calls.
	CollectionId pulumi.StringInput
	// The human-readable name of the field (e.g., 'Title', 'Description', 'Author'). This name appears in the Webflow CMS interface. Maximum length: 255 characters.
	DisplayName pulumi.StringInput
	// Optional help text shown in the CMS interface (e.g., 'Enter the article title'). Helps content editors understand what to enter in this field.
	HelpText pulumi.StringPtrInput
	// Whether the field is required (optional, defaults to false). When true, content items must provide a value for this field.
	IsRequired pulumi.BoolPtrInput
	// The URL-friendly slug for the field (optional, e.g., 'title', 'description'). If not provided, Webflow will auto-generate a slug from the displayName. The slug is used in API requests and exports.
	Slug pulumi.StringPtrInput
	// The field type (e.g., 'PlainText', 'RichText', 'Image', 'Number'). Supported types: PlainText, RichText, Image, MultiImage, Video, Link, Email, Phone, Number, DateTime, Switch, Color, Option, File, Reference, MultiReference. IMPORTANT: Cannot be changed after creation - changing this requires replacement.
	Type pulumi.StringInput
	// Type-specific validation rules (optional). Different field types support different validations. Example for Number type: {"min": 0, "max": 100}. Example for PlainText type: {"maxLength": 500}. Refer to Webflow API documentation for validation options for each field type.
	Validations pulumi.MapInput
}

The set of arguments for constructing a CollectionField resource.

func (CollectionFieldArgs) ElementType

func (CollectionFieldArgs) ElementType() reflect.Type

type CollectionFieldInput

type CollectionFieldInput interface {
	pulumi.Input

	ToCollectionFieldOutput() CollectionFieldOutput
	ToCollectionFieldOutputWithContext(ctx context.Context) CollectionFieldOutput
}

type CollectionFieldOutput

type CollectionFieldOutput struct{ *pulumi.OutputState }

func (CollectionFieldOutput) CollectionId

func (o CollectionFieldOutput) CollectionId() pulumi.StringOutput

The Webflow collection ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find collection IDs via the Webflow API or dashboard. This field will be validated before making any API calls.

func (CollectionFieldOutput) DisplayName

func (o CollectionFieldOutput) DisplayName() pulumi.StringOutput

The human-readable name of the field (e.g., 'Title', 'Description', 'Author'). This name appears in the Webflow CMS interface. Maximum length: 255 characters.

func (CollectionFieldOutput) ElementType

func (CollectionFieldOutput) ElementType() reflect.Type

func (CollectionFieldOutput) FieldId

The Webflow-assigned field ID (read-only). This ID is automatically generated when the field is created.

func (CollectionFieldOutput) HelpText

Optional help text shown in the CMS interface (e.g., 'Enter the article title'). Helps content editors understand what to enter in this field.

func (CollectionFieldOutput) IsEditable

Whether the field can be edited (read-only). System fields may not be editable.

func (CollectionFieldOutput) IsRequired

Whether the field is required (optional, defaults to false). When true, content items must provide a value for this field.

func (CollectionFieldOutput) Slug

The URL-friendly slug for the field (optional, e.g., 'title', 'description'). If not provided, Webflow will auto-generate a slug from the displayName. The slug is used in API requests and exports.

func (CollectionFieldOutput) ToCollectionFieldOutput

func (o CollectionFieldOutput) ToCollectionFieldOutput() CollectionFieldOutput

func (CollectionFieldOutput) ToCollectionFieldOutputWithContext

func (o CollectionFieldOutput) ToCollectionFieldOutputWithContext(ctx context.Context) CollectionFieldOutput

func (CollectionFieldOutput) Type

The field type (e.g., 'PlainText', 'RichText', 'Image', 'Number'). Supported types: PlainText, RichText, Image, MultiImage, Video, Link, Email, Phone, Number, DateTime, Switch, Color, Option, File, Reference, MultiReference. IMPORTANT: Cannot be changed after creation - changing this requires replacement.

func (CollectionFieldOutput) Validations

func (o CollectionFieldOutput) Validations() pulumi.MapOutput

Type-specific validation rules (optional). Different field types support different validations. Example for Number type: {"min": 0, "max": 100}. Example for PlainText type: {"maxLength": 500}. Refer to Webflow API documentation for validation options for each field type.

type CollectionFieldState

type CollectionFieldState struct {
}

func (CollectionFieldState) ElementType

func (CollectionFieldState) ElementType() reflect.Type

type CollectionInput

type CollectionInput interface {
	pulumi.Input

	ToCollectionOutput() CollectionOutput
	ToCollectionOutputWithContext(ctx context.Context) CollectionOutput
}

type CollectionItem

type CollectionItem struct {
	pulumi.CustomResourceState

	// The locale ID for localized sites (optional, e.g., 'en-US'). Only required if your site uses Webflow's localization features. Leave empty for non-localized sites.
	CmsLocaleId pulumi.StringPtrOutput `pulumi:"cmsLocaleId"`
	// The Webflow collection ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find collection IDs via the Webflow API or dashboard. This field will be validated before making any API calls.
	CollectionId pulumi.StringOutput `pulumi:"collectionId"`
	// The timestamp when the item was created (RFC3339 format, read-only). This is automatically set by Webflow and is immutable.
	CreatedOn pulumi.StringPtrOutput `pulumi:"createdOn"`
	// A map of field slugs to values for the collection item. The field slugs must match the fields defined in the collection schema. Common fields include 'name' (required), 'slug' (required, URL-friendly), and any custom fields you've added to the collection. Example: {"name": "My Blog Post", "slug": "my-blog-post", "content": "Post content..."}
	FieldData pulumi.MapOutput `pulumi:"fieldData"`
	// Whether the item is archived (optional, defaults to false). Archived items are not visible on the published site but remain in the CMS.
	IsArchived pulumi.BoolPtrOutput `pulumi:"isArchived"`
	// Whether the item is a draft (optional, defaults to true). Draft items are not published to the live site. Set to false to publish the item immediately upon creation.
	IsDraft pulumi.BoolPtrOutput `pulumi:"isDraft"`
	// The Webflow-assigned item ID (read-only). This is automatically set by Webflow when the item is created.
	ItemId pulumi.StringPtrOutput `pulumi:"itemId"`
	// The timestamp when the item was last published (RFC3339 format, read-only). This is automatically updated by Webflow when the item is published.
	LastPublished pulumi.StringPtrOutput `pulumi:"lastPublished"`
	// The timestamp when the item was last updated (RFC3339 format, read-only). This is automatically updated by Webflow whenever the item is modified.
	LastUpdated pulumi.StringPtrOutput `pulumi:"lastUpdated"`
}

Manages CMS collection items for a Webflow collection. Collection items represent individual content entries (blog posts, products, etc.) within a CMS collection. Each item has dynamic field data based on the collection schema.

func GetCollectionItem

func GetCollectionItem(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CollectionItemState, opts ...pulumi.ResourceOption) (*CollectionItem, error)

GetCollectionItem gets an existing CollectionItem resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCollectionItem

func NewCollectionItem(ctx *pulumi.Context,
	name string, args *CollectionItemArgs, opts ...pulumi.ResourceOption) (*CollectionItem, error)

NewCollectionItem registers a new resource with the given unique name, arguments, and options.

func (*CollectionItem) ElementType

func (*CollectionItem) ElementType() reflect.Type

func (*CollectionItem) ToCollectionItemOutput

func (i *CollectionItem) ToCollectionItemOutput() CollectionItemOutput

func (*CollectionItem) ToCollectionItemOutputWithContext

func (i *CollectionItem) ToCollectionItemOutputWithContext(ctx context.Context) CollectionItemOutput

type CollectionItemArgs

type CollectionItemArgs struct {
	// The locale ID for localized sites (optional, e.g., 'en-US'). Only required if your site uses Webflow's localization features. Leave empty for non-localized sites.
	CmsLocaleId pulumi.StringPtrInput
	// The Webflow collection ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find collection IDs via the Webflow API or dashboard. This field will be validated before making any API calls.
	CollectionId pulumi.StringInput
	// A map of field slugs to values for the collection item. The field slugs must match the fields defined in the collection schema. Common fields include 'name' (required), 'slug' (required, URL-friendly), and any custom fields you've added to the collection. Example: {"name": "My Blog Post", "slug": "my-blog-post", "content": "Post content..."}
	FieldData pulumi.MapInput
	// Whether the item is archived (optional, defaults to false). Archived items are not visible on the published site but remain in the CMS.
	IsArchived pulumi.BoolPtrInput
	// Whether the item is a draft (optional, defaults to true). Draft items are not published to the live site. Set to false to publish the item immediately upon creation.
	IsDraft pulumi.BoolPtrInput
}

The set of arguments for constructing a CollectionItem resource.

func (CollectionItemArgs) ElementType

func (CollectionItemArgs) ElementType() reflect.Type

type CollectionItemInput

type CollectionItemInput interface {
	pulumi.Input

	ToCollectionItemOutput() CollectionItemOutput
	ToCollectionItemOutputWithContext(ctx context.Context) CollectionItemOutput
}

type CollectionItemOutput

type CollectionItemOutput struct{ *pulumi.OutputState }

func (CollectionItemOutput) CmsLocaleId

The locale ID for localized sites (optional, e.g., 'en-US'). Only required if your site uses Webflow's localization features. Leave empty for non-localized sites.

func (CollectionItemOutput) CollectionId

func (o CollectionItemOutput) CollectionId() pulumi.StringOutput

The Webflow collection ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find collection IDs via the Webflow API or dashboard. This field will be validated before making any API calls.

func (CollectionItemOutput) CreatedOn

The timestamp when the item was created (RFC3339 format, read-only). This is automatically set by Webflow and is immutable.

func (CollectionItemOutput) ElementType

func (CollectionItemOutput) ElementType() reflect.Type

func (CollectionItemOutput) FieldData

func (o CollectionItemOutput) FieldData() pulumi.MapOutput

A map of field slugs to values for the collection item. The field slugs must match the fields defined in the collection schema. Common fields include 'name' (required), 'slug' (required, URL-friendly), and any custom fields you've added to the collection. Example: {"name": "My Blog Post", "slug": "my-blog-post", "content": "Post content..."}

func (CollectionItemOutput) IsArchived

func (o CollectionItemOutput) IsArchived() pulumi.BoolPtrOutput

Whether the item is archived (optional, defaults to false). Archived items are not visible on the published site but remain in the CMS.

func (CollectionItemOutput) IsDraft

Whether the item is a draft (optional, defaults to true). Draft items are not published to the live site. Set to false to publish the item immediately upon creation.

func (CollectionItemOutput) ItemId

The Webflow-assigned item ID (read-only). This is automatically set by Webflow when the item is created.

func (CollectionItemOutput) LastPublished

func (o CollectionItemOutput) LastPublished() pulumi.StringPtrOutput

The timestamp when the item was last published (RFC3339 format, read-only). This is automatically updated by Webflow when the item is published.

func (CollectionItemOutput) LastUpdated

The timestamp when the item was last updated (RFC3339 format, read-only). This is automatically updated by Webflow whenever the item is modified.

func (CollectionItemOutput) ToCollectionItemOutput

func (o CollectionItemOutput) ToCollectionItemOutput() CollectionItemOutput

func (CollectionItemOutput) ToCollectionItemOutputWithContext

func (o CollectionItemOutput) ToCollectionItemOutputWithContext(ctx context.Context) CollectionItemOutput

type CollectionItemState

type CollectionItemState struct {
}

func (CollectionItemState) ElementType

func (CollectionItemState) ElementType() reflect.Type

type CollectionOutput

type CollectionOutput struct{ *pulumi.OutputState }

func (CollectionOutput) CollectionId

func (o CollectionOutput) CollectionId() pulumi.StringPtrOutput

The Webflow-assigned collection ID (24-character lowercase hexadecimal string). Use this ID when creating CollectionField or CollectionItem resources. This is automatically assigned when the collection is created and is read-only.

func (CollectionOutput) CreatedOn

func (o CollectionOutput) CreatedOn() pulumi.StringPtrOutput

The timestamp when the collection was created (RFC3339 format). This is automatically set by Webflow and is read-only.

func (CollectionOutput) DisplayName

func (o CollectionOutput) DisplayName() pulumi.StringOutput

The human-readable name of the collection (e.g., 'Blog Posts', 'Products', 'Team Members'). This name appears in the Webflow CMS interface. Maximum length: 255 characters.

func (CollectionOutput) ElementType

func (CollectionOutput) ElementType() reflect.Type

func (CollectionOutput) LastUpdated

func (o CollectionOutput) LastUpdated() pulumi.StringPtrOutput

The timestamp when the collection was last updated (RFC3339 format). This is automatically updated by Webflow and is read-only.

func (CollectionOutput) SingularName

func (o CollectionOutput) SingularName() pulumi.StringOutput

The singular form of the collection name (e.g., 'Blog Post' for 'Blog Posts', 'Product' for 'Products'). Used in the CMS UI when referring to individual items. Maximum length: 255 characters.

func (CollectionOutput) SiteId

The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.

func (CollectionOutput) Slug

The URL-friendly slug for the collection (optional, e.g., 'blog-posts', 'products'). If not provided, Webflow will auto-generate a slug from the displayName. The slug determines the URL path for collection items.

func (CollectionOutput) ToCollectionOutput

func (o CollectionOutput) ToCollectionOutput() CollectionOutput

func (CollectionOutput) ToCollectionOutputWithContext

func (o CollectionOutput) ToCollectionOutputWithContext(ctx context.Context) CollectionOutput

type CollectionState

type CollectionState struct {
}

func (CollectionState) ElementType

func (CollectionState) ElementType() reflect.Type

type CustomScriptArgs

type CustomScriptArgs struct {
	// Optional developer-specified key/value pairs applied as HTML attributes to the script tag. Example: {'data-config': 'my-value'}. These attributes are passed directly to the script tag.
	Attributes map[string]interface{} `pulumi:"attributes"`
	// The unique identifier of the registered custom code script. The script must first be registered to the site using the RegisterScript resource. Examples: 'cms_slider', 'analytics', 'custom_widget'
	Id string `pulumi:"id"`
	// The location where the script is placed on the page. Valid values: 'header' (placed in the <head> section), 'footer' (placed before </body>). Scripts in the header execute before page content loads, while footer scripts execute after the page has loaded.
	Location string `pulumi:"location"`
	// The semantic version string for the registered script (e.g., '1.0.0', '0.1.2'). This version must exist for the registered script ID. When you update the version, a different version of the script will be applied.
	ScriptVersion string `pulumi:"scriptVersion"`
}

type CustomScriptArgsArgs

type CustomScriptArgsArgs struct {
	// Optional developer-specified key/value pairs applied as HTML attributes to the script tag. Example: {'data-config': 'my-value'}. These attributes are passed directly to the script tag.
	Attributes pulumi.MapInput `pulumi:"attributes"`
	// The unique identifier of the registered custom code script. The script must first be registered to the site using the RegisterScript resource. Examples: 'cms_slider', 'analytics', 'custom_widget'
	Id pulumi.StringInput `pulumi:"id"`
	// The location where the script is placed on the page. Valid values: 'header' (placed in the <head> section), 'footer' (placed before </body>). Scripts in the header execute before page content loads, while footer scripts execute after the page has loaded.
	Location pulumi.StringInput `pulumi:"location"`
	// The semantic version string for the registered script (e.g., '1.0.0', '0.1.2'). This version must exist for the registered script ID. When you update the version, a different version of the script will be applied.
	ScriptVersion pulumi.StringInput `pulumi:"scriptVersion"`
}

func (CustomScriptArgsArgs) ElementType

func (CustomScriptArgsArgs) ElementType() reflect.Type

func (CustomScriptArgsArgs) ToCustomScriptArgsOutput

func (i CustomScriptArgsArgs) ToCustomScriptArgsOutput() CustomScriptArgsOutput

func (CustomScriptArgsArgs) ToCustomScriptArgsOutputWithContext

func (i CustomScriptArgsArgs) ToCustomScriptArgsOutputWithContext(ctx context.Context) CustomScriptArgsOutput

type CustomScriptArgsArray

type CustomScriptArgsArray []CustomScriptArgsInput

func (CustomScriptArgsArray) ElementType

func (CustomScriptArgsArray) ElementType() reflect.Type

func (CustomScriptArgsArray) ToCustomScriptArgsArrayOutput

func (i CustomScriptArgsArray) ToCustomScriptArgsArrayOutput() CustomScriptArgsArrayOutput

func (CustomScriptArgsArray) ToCustomScriptArgsArrayOutputWithContext

func (i CustomScriptArgsArray) ToCustomScriptArgsArrayOutputWithContext(ctx context.Context) CustomScriptArgsArrayOutput

type CustomScriptArgsArrayInput

type CustomScriptArgsArrayInput interface {
	pulumi.Input

	ToCustomScriptArgsArrayOutput() CustomScriptArgsArrayOutput
	ToCustomScriptArgsArrayOutputWithContext(context.Context) CustomScriptArgsArrayOutput
}

CustomScriptArgsArrayInput is an input type that accepts CustomScriptArgsArray and CustomScriptArgsArrayOutput values. You can construct a concrete instance of `CustomScriptArgsArrayInput` via:

CustomScriptArgsArray{ CustomScriptArgsArgs{...} }

type CustomScriptArgsArrayOutput

type CustomScriptArgsArrayOutput struct{ *pulumi.OutputState }

func (CustomScriptArgsArrayOutput) ElementType

func (CustomScriptArgsArrayOutput) Index

func (CustomScriptArgsArrayOutput) ToCustomScriptArgsArrayOutput

func (o CustomScriptArgsArrayOutput) ToCustomScriptArgsArrayOutput() CustomScriptArgsArrayOutput

func (CustomScriptArgsArrayOutput) ToCustomScriptArgsArrayOutputWithContext

func (o CustomScriptArgsArrayOutput) ToCustomScriptArgsArrayOutputWithContext(ctx context.Context) CustomScriptArgsArrayOutput

type CustomScriptArgsInput

type CustomScriptArgsInput interface {
	pulumi.Input

	ToCustomScriptArgsOutput() CustomScriptArgsOutput
	ToCustomScriptArgsOutputWithContext(context.Context) CustomScriptArgsOutput
}

CustomScriptArgsInput is an input type that accepts CustomScriptArgsArgs and CustomScriptArgsOutput values. You can construct a concrete instance of `CustomScriptArgsInput` via:

CustomScriptArgsArgs{...}

type CustomScriptArgsOutput

type CustomScriptArgsOutput struct{ *pulumi.OutputState }

func (CustomScriptArgsOutput) Attributes

func (o CustomScriptArgsOutput) Attributes() pulumi.MapOutput

Optional developer-specified key/value pairs applied as HTML attributes to the script tag. Example: {'data-config': 'my-value'}. These attributes are passed directly to the script tag.

func (CustomScriptArgsOutput) ElementType

func (CustomScriptArgsOutput) ElementType() reflect.Type

func (CustomScriptArgsOutput) Id

The unique identifier of the registered custom code script. The script must first be registered to the site using the RegisterScript resource. Examples: 'cms_slider', 'analytics', 'custom_widget'

func (CustomScriptArgsOutput) Location

The location where the script is placed on the page. Valid values: 'header' (placed in the <head> section), 'footer' (placed before </body>). Scripts in the header execute before page content loads, while footer scripts execute after the page has loaded.

func (CustomScriptArgsOutput) ScriptVersion added in v0.10.0

func (o CustomScriptArgsOutput) ScriptVersion() pulumi.StringOutput

The semantic version string for the registered script (e.g., '1.0.0', '0.1.2'). This version must exist for the registered script ID. When you update the version, a different version of the script will be applied.

func (CustomScriptArgsOutput) ToCustomScriptArgsOutput

func (o CustomScriptArgsOutput) ToCustomScriptArgsOutput() CustomScriptArgsOutput

func (CustomScriptArgsOutput) ToCustomScriptArgsOutputWithContext

func (o CustomScriptArgsOutput) ToCustomScriptArgsOutputWithContext(ctx context.Context) CustomScriptArgsOutput

type EcommerceSettings

type EcommerceSettings struct {
	pulumi.CustomResourceState

	// The timestamp when ecommerce was enabled on the site (ISO 8601 format). This is automatically set when ecommerce is enabled and is read-only.
	CreatedOn pulumi.StringPtrOutput `pulumi:"createdOn"`
	// The three-letter ISO 4217 currency code for the site (e.g., 'USD', 'EUR', 'GBP'). This is the default currency used for ecommerce transactions on this site. This value is set in the Webflow dashboard and is read-only.
	DefaultCurrency pulumi.StringOutput `pulumi:"defaultCurrency"`
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). The site must have ecommerce enabled through the Webflow dashboard. You can find your site ID in the Webflow dashboard under Site Settings.
	SiteId pulumi.StringOutput `pulumi:"siteId"`
}

Manages (imports) ecommerce settings for a Webflow site. This is a read-only resource that allows you to track and reference existing ecommerce settings. Ecommerce must be enabled through the Webflow dashboard before this resource can be used. Use this resource to access the site's default currency and verify ecommerce is enabled.

func GetEcommerceSettings

func GetEcommerceSettings(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EcommerceSettingsState, opts ...pulumi.ResourceOption) (*EcommerceSettings, error)

GetEcommerceSettings gets an existing EcommerceSettings resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEcommerceSettings

func NewEcommerceSettings(ctx *pulumi.Context,
	name string, args *EcommerceSettingsArgs, opts ...pulumi.ResourceOption) (*EcommerceSettings, error)

NewEcommerceSettings registers a new resource with the given unique name, arguments, and options.

func (*EcommerceSettings) ElementType

func (*EcommerceSettings) ElementType() reflect.Type

func (*EcommerceSettings) ToEcommerceSettingsOutput

func (i *EcommerceSettings) ToEcommerceSettingsOutput() EcommerceSettingsOutput

func (*EcommerceSettings) ToEcommerceSettingsOutputWithContext

func (i *EcommerceSettings) ToEcommerceSettingsOutputWithContext(ctx context.Context) EcommerceSettingsOutput

type EcommerceSettingsArgs

type EcommerceSettingsArgs struct {
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). The site must have ecommerce enabled through the Webflow dashboard. You can find your site ID in the Webflow dashboard under Site Settings.
	SiteId pulumi.StringInput
}

The set of arguments for constructing a EcommerceSettings resource.

func (EcommerceSettingsArgs) ElementType

func (EcommerceSettingsArgs) ElementType() reflect.Type

type EcommerceSettingsInput

type EcommerceSettingsInput interface {
	pulumi.Input

	ToEcommerceSettingsOutput() EcommerceSettingsOutput
	ToEcommerceSettingsOutputWithContext(ctx context.Context) EcommerceSettingsOutput
}

type EcommerceSettingsOutput

type EcommerceSettingsOutput struct{ *pulumi.OutputState }

func (EcommerceSettingsOutput) CreatedOn

The timestamp when ecommerce was enabled on the site (ISO 8601 format). This is automatically set when ecommerce is enabled and is read-only.

func (EcommerceSettingsOutput) DefaultCurrency

func (o EcommerceSettingsOutput) DefaultCurrency() pulumi.StringOutput

The three-letter ISO 4217 currency code for the site (e.g., 'USD', 'EUR', 'GBP'). This is the default currency used for ecommerce transactions on this site. This value is set in the Webflow dashboard and is read-only.

func (EcommerceSettingsOutput) ElementType

func (EcommerceSettingsOutput) ElementType() reflect.Type

func (EcommerceSettingsOutput) SiteId

The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). The site must have ecommerce enabled through the Webflow dashboard. You can find your site ID in the Webflow dashboard under Site Settings.

func (EcommerceSettingsOutput) ToEcommerceSettingsOutput

func (o EcommerceSettingsOutput) ToEcommerceSettingsOutput() EcommerceSettingsOutput

func (EcommerceSettingsOutput) ToEcommerceSettingsOutputWithContext

func (o EcommerceSettingsOutput) ToEcommerceSettingsOutputWithContext(ctx context.Context) EcommerceSettingsOutput

type EcommerceSettingsState

type EcommerceSettingsState struct {
}

func (EcommerceSettingsState) ElementType

func (EcommerceSettingsState) ElementType() reflect.Type

type GetAuthorizedUserArgs

type GetAuthorizedUserArgs struct {
}

type GetAuthorizedUserOutputArgs

type GetAuthorizedUserOutputArgs struct {
}

func (GetAuthorizedUserOutputArgs) ElementType

type GetAuthorizedUserResult

type GetAuthorizedUserResult struct {
	// The email address of the authorized user.
	Email string `pulumi:"email"`
	// The first name of the authorized user.
	FirstName string `pulumi:"firstName"`
	// The last name of the authorized user.
	LastName string `pulumi:"lastName"`
	// The unique identifier for the authorized user.
	UserId string `pulumi:"userId"`
}

func GetAuthorizedUser

func GetAuthorizedUser(ctx *pulumi.Context, args *GetAuthorizedUserArgs, opts ...pulumi.InvokeOption) (*GetAuthorizedUserResult, error)

Retrieves information about the user who authorized the current Webflow API token. This is useful for auditing and understanding which user's credentials are being used. Requires the 'authorized_user:read' scope.

type GetAuthorizedUserResultOutput

type GetAuthorizedUserResultOutput struct{ *pulumi.OutputState }

func (GetAuthorizedUserResultOutput) ElementType

func (GetAuthorizedUserResultOutput) Email

The email address of the authorized user.

func (GetAuthorizedUserResultOutput) FirstName

The first name of the authorized user.

func (GetAuthorizedUserResultOutput) LastName

The last name of the authorized user.

func (GetAuthorizedUserResultOutput) ToGetAuthorizedUserResultOutput

func (o GetAuthorizedUserResultOutput) ToGetAuthorizedUserResultOutput() GetAuthorizedUserResultOutput

func (GetAuthorizedUserResultOutput) ToGetAuthorizedUserResultOutputWithContext

func (o GetAuthorizedUserResultOutput) ToGetAuthorizedUserResultOutputWithContext(ctx context.Context) GetAuthorizedUserResultOutput

func (GetAuthorizedUserResultOutput) UserId

The unique identifier for the authorized user.

type GetTokenInfoApplication

type GetTokenInfoApplication struct {
	// The application description.
	Description string `pulumi:"description"`
	// The human-readable name of the application.
	DisplayName string `pulumi:"displayName"`
	// The application homepage URL.
	Homepage string `pulumi:"homepage"`
	// The unique identifier for the application.
	Id string `pulumi:"id"`
}

type GetTokenInfoApplicationOutput

type GetTokenInfoApplicationOutput struct{ *pulumi.OutputState }

func (GetTokenInfoApplicationOutput) Description

The application description.

func (GetTokenInfoApplicationOutput) DisplayName

The human-readable name of the application.

func (GetTokenInfoApplicationOutput) ElementType

func (GetTokenInfoApplicationOutput) Homepage

The application homepage URL.

func (GetTokenInfoApplicationOutput) Id

The unique identifier for the application.

func (GetTokenInfoApplicationOutput) ToGetTokenInfoApplicationOutput

func (o GetTokenInfoApplicationOutput) ToGetTokenInfoApplicationOutput() GetTokenInfoApplicationOutput

func (GetTokenInfoApplicationOutput) ToGetTokenInfoApplicationOutputWithContext

func (o GetTokenInfoApplicationOutput) ToGetTokenInfoApplicationOutputWithContext(ctx context.Context) GetTokenInfoApplicationOutput

type GetTokenInfoArgs

type GetTokenInfoArgs struct {
}

type GetTokenInfoAuthorization

type GetTokenInfoAuthorization struct {
	// The resources this token is authorized to access.
	AuthorizedTo GetTokenInfoAuthorizedTo `pulumi:"authorizedTo"`
	// The timestamp when this authorization was created (RFC3339 format).
	CreatedOn string `pulumi:"createdOn"`
	// The OAuth grant type used to obtain this token (e.g., 'authorization_code').
	GrantType string `pulumi:"grantType"`
	// The unique identifier for this authorization.
	Id string `pulumi:"id"`
	// The timestamp when this token was last used (RFC3339 format).
	LastUsed string `pulumi:"lastUsed"`
	// The rate limit for this token in requests per minute.
	RateLimit int `pulumi:"rateLimit"`
	// The OAuth scopes granted to this token (space or comma separated).
	Scope string `pulumi:"scope"`
}

type GetTokenInfoAuthorizationOutput

type GetTokenInfoAuthorizationOutput struct{ *pulumi.OutputState }

func (GetTokenInfoAuthorizationOutput) AuthorizedTo

The resources this token is authorized to access.

func (GetTokenInfoAuthorizationOutput) CreatedOn

The timestamp when this authorization was created (RFC3339 format).

func (GetTokenInfoAuthorizationOutput) ElementType

func (GetTokenInfoAuthorizationOutput) GrantType

The OAuth grant type used to obtain this token (e.g., 'authorization_code').

func (GetTokenInfoAuthorizationOutput) Id

The unique identifier for this authorization.

func (GetTokenInfoAuthorizationOutput) LastUsed

The timestamp when this token was last used (RFC3339 format).

func (GetTokenInfoAuthorizationOutput) RateLimit

The rate limit for this token in requests per minute.

func (GetTokenInfoAuthorizationOutput) Scope

The OAuth scopes granted to this token (space or comma separated).

func (GetTokenInfoAuthorizationOutput) ToGetTokenInfoAuthorizationOutput

func (o GetTokenInfoAuthorizationOutput) ToGetTokenInfoAuthorizationOutput() GetTokenInfoAuthorizationOutput

func (GetTokenInfoAuthorizationOutput) ToGetTokenInfoAuthorizationOutputWithContext

func (o GetTokenInfoAuthorizationOutput) ToGetTokenInfoAuthorizationOutputWithContext(ctx context.Context) GetTokenInfoAuthorizationOutput

type GetTokenInfoAuthorizedTo

type GetTokenInfoAuthorizedTo struct {
	// List of site IDs this token is authorized to access.
	SiteIds []string `pulumi:"siteIds"`
	// List of user IDs this token is authorized to access.
	UserIds []string `pulumi:"userIds"`
	// List of workspace IDs this token is authorized to access.
	WorkspaceIds []string `pulumi:"workspaceIds"`
}

type GetTokenInfoAuthorizedToOutput

type GetTokenInfoAuthorizedToOutput struct{ *pulumi.OutputState }

func (GetTokenInfoAuthorizedToOutput) ElementType

func (GetTokenInfoAuthorizedToOutput) SiteIds

List of site IDs this token is authorized to access.

func (GetTokenInfoAuthorizedToOutput) ToGetTokenInfoAuthorizedToOutput

func (o GetTokenInfoAuthorizedToOutput) ToGetTokenInfoAuthorizedToOutput() GetTokenInfoAuthorizedToOutput

func (GetTokenInfoAuthorizedToOutput) ToGetTokenInfoAuthorizedToOutputWithContext

func (o GetTokenInfoAuthorizedToOutput) ToGetTokenInfoAuthorizedToOutputWithContext(ctx context.Context) GetTokenInfoAuthorizedToOutput

func (GetTokenInfoAuthorizedToOutput) UserIds

List of user IDs this token is authorized to access.

func (GetTokenInfoAuthorizedToOutput) WorkspaceIds

List of workspace IDs this token is authorized to access.

type GetTokenInfoOutputArgs

type GetTokenInfoOutputArgs struct {
}

func (GetTokenInfoOutputArgs) ElementType

func (GetTokenInfoOutputArgs) ElementType() reflect.Type

type GetTokenInfoResult

type GetTokenInfoResult struct {
	// Application details for the token owner.
	Application GetTokenInfoApplication `pulumi:"application"`
	// Authorization details for the API token, including scopes and authorized resources.
	Authorization GetTokenInfoAuthorization `pulumi:"authorization"`
}

func GetTokenInfo

func GetTokenInfo(ctx *pulumi.Context, args *GetTokenInfoArgs, opts ...pulumi.InvokeOption) (*GetTokenInfoResult, error)

Retrieves information about the current Webflow API token, including authorization details, scopes, rate limits, and the authorized resources. This is useful for validating your API token configuration and understanding what resources it can access.

type GetTokenInfoResultOutput

type GetTokenInfoResultOutput struct{ *pulumi.OutputState }

func (GetTokenInfoResultOutput) Application

Application details for the token owner.

func (GetTokenInfoResultOutput) Authorization

Authorization details for the API token, including scopes and authorized resources.

func (GetTokenInfoResultOutput) ElementType

func (GetTokenInfoResultOutput) ElementType() reflect.Type

func (GetTokenInfoResultOutput) ToGetTokenInfoResultOutput

func (o GetTokenInfoResultOutput) ToGetTokenInfoResultOutput() GetTokenInfoResultOutput

func (GetTokenInfoResultOutput) ToGetTokenInfoResultOutputWithContext

func (o GetTokenInfoResultOutput) ToGetTokenInfoResultOutputWithContext(ctx context.Context) GetTokenInfoResultOutput

type InlineScript added in v0.9.2

type InlineScript struct {
	pulumi.CustomResourceState

	// Indicates whether the script can be copied when the site is duplicated. Default: false. When true, the script will be included when creating a copy of the site.
	CanCopy pulumi.BoolPtrOutput `pulumi:"canCopy"`
	// The timestamp when the script was created (RFC3339 format). This is automatically set by Webflow when the script is created and is read-only.
	CreatedOn pulumi.StringPtrOutput `pulumi:"createdOn"`
	// The user-facing name for the script (1-50 alphanumeric characters). This name is used to identify the script in the Webflow interface. Only letters (A-Z, a-z) and numbers (0-9) are allowed. Example valid names: 'CmsSlider', 'AnalyticsScript', 'MyCustomScript123'.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The URI for the hosted version of the inline script (read-only). This is automatically set by Webflow after the inline script is registered.
	HostedLocation pulumi.StringPtrOutput `pulumi:"hostedLocation"`
	// The Sub-Resource Integrity (SRI) hash for the script (optional). Format: 'sha384-<hash>', 'sha256-<hash>', or 'sha512-<hash>'. SRI hashes help ensure that the script hasn't been modified in transit. You can generate an SRI hash using https://www.srihash.org/
	IntegrityHash pulumi.StringPtrOutput `pulumi:"integrityHash"`
	// The timestamp when the script was last updated (RFC3339 format). This is automatically updated by Webflow when the script is modified and is read-only.
	LastUpdated pulumi.StringPtrOutput `pulumi:"lastUpdated"`
	// The Webflow-assigned script ID (read-only). This is typically the lowercase version of displayName. Use this value when referencing the script in SiteCustomCode or PageCustomCode resources.
	ScriptId pulumi.StringOutput `pulumi:"scriptId"`
	// The Semantic Version (SemVer) string for the script (e.g., '1.0.0', '2.3.1'). This helps track different versions of your script. See https://semver.org/ for more information on semantic versioning.
	ScriptVersion pulumi.StringOutput `pulumi:"scriptVersion"`
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringOutput `pulumi:"siteId"`
	// The inline JavaScript code to register, limited to 2000 characters. This code will be directly embedded in your Webflow site. If your script exceeds 2000 characters, consider hosting it externally and using the RegisteredScript resource with a hostedLocation instead.
	SourceCode pulumi.StringOutput `pulumi:"sourceCode"`
}

Manages inline custom code scripts in the Webflow script registry. This resource allows you to register and manage inline JavaScript code that can be deployed across your Webflow site with version control.

func GetInlineScript added in v0.9.2

func GetInlineScript(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InlineScriptState, opts ...pulumi.ResourceOption) (*InlineScript, error)

GetInlineScript gets an existing InlineScript resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewInlineScript added in v0.9.2

func NewInlineScript(ctx *pulumi.Context,
	name string, args *InlineScriptArgs, opts ...pulumi.ResourceOption) (*InlineScript, error)

NewInlineScript registers a new resource with the given unique name, arguments, and options.

func (*InlineScript) ElementType added in v0.9.2

func (*InlineScript) ElementType() reflect.Type

func (*InlineScript) ToInlineScriptOutput added in v0.9.2

func (i *InlineScript) ToInlineScriptOutput() InlineScriptOutput

func (*InlineScript) ToInlineScriptOutputWithContext added in v0.9.2

func (i *InlineScript) ToInlineScriptOutputWithContext(ctx context.Context) InlineScriptOutput

type InlineScriptArgs added in v0.9.2

type InlineScriptArgs struct {
	// Indicates whether the script can be copied when the site is duplicated. Default: false. When true, the script will be included when creating a copy of the site.
	CanCopy pulumi.BoolPtrInput
	// The user-facing name for the script (1-50 alphanumeric characters). This name is used to identify the script in the Webflow interface. Only letters (A-Z, a-z) and numbers (0-9) are allowed. Example valid names: 'CmsSlider', 'AnalyticsScript', 'MyCustomScript123'.
	DisplayName pulumi.StringInput
	// The Sub-Resource Integrity (SRI) hash for the script (optional). Format: 'sha384-<hash>', 'sha256-<hash>', or 'sha512-<hash>'. SRI hashes help ensure that the script hasn't been modified in transit. You can generate an SRI hash using https://www.srihash.org/
	IntegrityHash pulumi.StringPtrInput
	// The Semantic Version (SemVer) string for the script (e.g., '1.0.0', '2.3.1'). This helps track different versions of your script. See https://semver.org/ for more information on semantic versioning.
	ScriptVersion pulumi.StringInput
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringInput
	// The inline JavaScript code to register, limited to 2000 characters. This code will be directly embedded in your Webflow site. If your script exceeds 2000 characters, consider hosting it externally and using the RegisteredScript resource with a hostedLocation instead.
	SourceCode pulumi.StringInput
}

The set of arguments for constructing a InlineScript resource.

func (InlineScriptArgs) ElementType added in v0.9.2

func (InlineScriptArgs) ElementType() reflect.Type

type InlineScriptInput added in v0.9.2

type InlineScriptInput interface {
	pulumi.Input

	ToInlineScriptOutput() InlineScriptOutput
	ToInlineScriptOutputWithContext(ctx context.Context) InlineScriptOutput
}

type InlineScriptOutput added in v0.9.2

type InlineScriptOutput struct{ *pulumi.OutputState }

func (InlineScriptOutput) CanCopy added in v0.9.2

Indicates whether the script can be copied when the site is duplicated. Default: false. When true, the script will be included when creating a copy of the site.

func (InlineScriptOutput) CreatedOn added in v0.9.2

The timestamp when the script was created (RFC3339 format). This is automatically set by Webflow when the script is created and is read-only.

func (InlineScriptOutput) DisplayName added in v0.9.2

func (o InlineScriptOutput) DisplayName() pulumi.StringOutput

The user-facing name for the script (1-50 alphanumeric characters). This name is used to identify the script in the Webflow interface. Only letters (A-Z, a-z) and numbers (0-9) are allowed. Example valid names: 'CmsSlider', 'AnalyticsScript', 'MyCustomScript123'.

func (InlineScriptOutput) ElementType added in v0.9.2

func (InlineScriptOutput) ElementType() reflect.Type

func (InlineScriptOutput) HostedLocation added in v0.9.2

func (o InlineScriptOutput) HostedLocation() pulumi.StringPtrOutput

The URI for the hosted version of the inline script (read-only). This is automatically set by Webflow after the inline script is registered.

func (InlineScriptOutput) IntegrityHash added in v0.9.2

func (o InlineScriptOutput) IntegrityHash() pulumi.StringPtrOutput

The Sub-Resource Integrity (SRI) hash for the script (optional). Format: 'sha384-<hash>', 'sha256-<hash>', or 'sha512-<hash>'. SRI hashes help ensure that the script hasn't been modified in transit. You can generate an SRI hash using https://www.srihash.org/

func (InlineScriptOutput) LastUpdated added in v0.9.2

func (o InlineScriptOutput) LastUpdated() pulumi.StringPtrOutput

The timestamp when the script was last updated (RFC3339 format). This is automatically updated by Webflow when the script is modified and is read-only.

func (InlineScriptOutput) ScriptId added in v0.9.2

func (o InlineScriptOutput) ScriptId() pulumi.StringOutput

The Webflow-assigned script ID (read-only). This is typically the lowercase version of displayName. Use this value when referencing the script in SiteCustomCode or PageCustomCode resources.

func (InlineScriptOutput) ScriptVersion added in v0.10.0

func (o InlineScriptOutput) ScriptVersion() pulumi.StringOutput

The Semantic Version (SemVer) string for the script (e.g., '1.0.0', '2.3.1'). This helps track different versions of your script. See https://semver.org/ for more information on semantic versioning.

func (InlineScriptOutput) SiteId added in v0.9.2

The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.

func (InlineScriptOutput) SourceCode added in v0.9.2

func (o InlineScriptOutput) SourceCode() pulumi.StringOutput

The inline JavaScript code to register, limited to 2000 characters. This code will be directly embedded in your Webflow site. If your script exceeds 2000 characters, consider hosting it externally and using the RegisteredScript resource with a hostedLocation instead.

func (InlineScriptOutput) ToInlineScriptOutput added in v0.9.2

func (o InlineScriptOutput) ToInlineScriptOutput() InlineScriptOutput

func (InlineScriptOutput) ToInlineScriptOutputWithContext added in v0.9.2

func (o InlineScriptOutput) ToInlineScriptOutputWithContext(ctx context.Context) InlineScriptOutput

type InlineScriptState added in v0.9.2

type InlineScriptState struct {
}

func (InlineScriptState) ElementType added in v0.9.2

func (InlineScriptState) ElementType() reflect.Type

type NodeContentUpdate

type NodeContentUpdate struct {
	// The unique identifier for the DOM node to update. This ID comes from the page's DOM structure and must exist on the page. Retrieve node IDs using GET /pages/{page_id}/dom endpoint.
	NodeId string `pulumi:"nodeId"`
	// The new text content for the node. This will replace the existing text content in the specified node. Only applicable to text nodes or elements containing text.
	Text string `pulumi:"text"`
}

type NodeContentUpdateArgs

type NodeContentUpdateArgs struct {
	// The unique identifier for the DOM node to update. This ID comes from the page's DOM structure and must exist on the page. Retrieve node IDs using GET /pages/{page_id}/dom endpoint.
	NodeId pulumi.StringInput `pulumi:"nodeId"`
	// The new text content for the node. This will replace the existing text content in the specified node. Only applicable to text nodes or elements containing text.
	Text pulumi.StringInput `pulumi:"text"`
}

func (NodeContentUpdateArgs) ElementType

func (NodeContentUpdateArgs) ElementType() reflect.Type

func (NodeContentUpdateArgs) ToNodeContentUpdateOutput

func (i NodeContentUpdateArgs) ToNodeContentUpdateOutput() NodeContentUpdateOutput

func (NodeContentUpdateArgs) ToNodeContentUpdateOutputWithContext

func (i NodeContentUpdateArgs) ToNodeContentUpdateOutputWithContext(ctx context.Context) NodeContentUpdateOutput

type NodeContentUpdateArray

type NodeContentUpdateArray []NodeContentUpdateInput

func (NodeContentUpdateArray) ElementType

func (NodeContentUpdateArray) ElementType() reflect.Type

func (NodeContentUpdateArray) ToNodeContentUpdateArrayOutput

func (i NodeContentUpdateArray) ToNodeContentUpdateArrayOutput() NodeContentUpdateArrayOutput

func (NodeContentUpdateArray) ToNodeContentUpdateArrayOutputWithContext

func (i NodeContentUpdateArray) ToNodeContentUpdateArrayOutputWithContext(ctx context.Context) NodeContentUpdateArrayOutput

type NodeContentUpdateArrayInput

type NodeContentUpdateArrayInput interface {
	pulumi.Input

	ToNodeContentUpdateArrayOutput() NodeContentUpdateArrayOutput
	ToNodeContentUpdateArrayOutputWithContext(context.Context) NodeContentUpdateArrayOutput
}

NodeContentUpdateArrayInput is an input type that accepts NodeContentUpdateArray and NodeContentUpdateArrayOutput values. You can construct a concrete instance of `NodeContentUpdateArrayInput` via:

NodeContentUpdateArray{ NodeContentUpdateArgs{...} }

type NodeContentUpdateArrayOutput

type NodeContentUpdateArrayOutput struct{ *pulumi.OutputState }

func (NodeContentUpdateArrayOutput) ElementType

func (NodeContentUpdateArrayOutput) Index

func (NodeContentUpdateArrayOutput) ToNodeContentUpdateArrayOutput

func (o NodeContentUpdateArrayOutput) ToNodeContentUpdateArrayOutput() NodeContentUpdateArrayOutput

func (NodeContentUpdateArrayOutput) ToNodeContentUpdateArrayOutputWithContext

func (o NodeContentUpdateArrayOutput) ToNodeContentUpdateArrayOutputWithContext(ctx context.Context) NodeContentUpdateArrayOutput

type NodeContentUpdateInput

type NodeContentUpdateInput interface {
	pulumi.Input

	ToNodeContentUpdateOutput() NodeContentUpdateOutput
	ToNodeContentUpdateOutputWithContext(context.Context) NodeContentUpdateOutput
}

NodeContentUpdateInput is an input type that accepts NodeContentUpdateArgs and NodeContentUpdateOutput values. You can construct a concrete instance of `NodeContentUpdateInput` via:

NodeContentUpdateArgs{...}

type NodeContentUpdateOutput

type NodeContentUpdateOutput struct{ *pulumi.OutputState }

func (NodeContentUpdateOutput) ElementType

func (NodeContentUpdateOutput) ElementType() reflect.Type

func (NodeContentUpdateOutput) NodeId

The unique identifier for the DOM node to update. This ID comes from the page's DOM structure and must exist on the page. Retrieve node IDs using GET /pages/{page_id}/dom endpoint.

func (NodeContentUpdateOutput) Text

The new text content for the node. This will replace the existing text content in the specified node. Only applicable to text nodes or elements containing text.

func (NodeContentUpdateOutput) ToNodeContentUpdateOutput

func (o NodeContentUpdateOutput) ToNodeContentUpdateOutput() NodeContentUpdateOutput

func (NodeContentUpdateOutput) ToNodeContentUpdateOutputWithContext

func (o NodeContentUpdateOutput) ToNodeContentUpdateOutputWithContext(ctx context.Context) NodeContentUpdateOutput

type PageContent

type PageContent struct {
	pulumi.CustomResourceState

	// The timestamp when the page content was last updated (RFC3339 format). This is automatically set when content is updated and is read-only.
	LastUpdated pulumi.StringPtrOutput `pulumi:"lastUpdated"`
	// List of node content updates to apply. Each update specifies the nodeId (from the page's DOM structure) and the new text content. Node IDs can be retrieved by fetching the page DOM using GET /pages/{page_id}/dom. Only text content in existing nodes can be updated via this resource.
	Nodes NodeContentUpdateArrayOutput `pulumi:"nodes"`
	// The Webflow page ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c4'). You can find page IDs using the Pages API list endpoint or in the Webflow designer. This field will be validated before making any API calls.
	PageId pulumi.StringOutput `pulumi:"pageId"`
}

Manages static content (text) for a Webflow page. This resource allows you to update text content within existing DOM nodes on a page. It does NOT manage page structure or layout - only content within existing nodes. To find node IDs, you must first retrieve the page DOM structure using the Webflow API.

**IMPORTANT LIMITATION:** This resource does NOT support drift detection for content changes. If content is modified outside of Pulumi (via Webflow UI or API), those changes will NOT be detected during 'pulumi refresh' or 'pulumi up'. The resource only verifies that the page still exists. This is due to the complexity of extracting and comparing specific node text from the full DOM structure.

func GetPageContent

func GetPageContent(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PageContentState, opts ...pulumi.ResourceOption) (*PageContent, error)

GetPageContent gets an existing PageContent resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPageContent

func NewPageContent(ctx *pulumi.Context,
	name string, args *PageContentArgs, opts ...pulumi.ResourceOption) (*PageContent, error)

NewPageContent registers a new resource with the given unique name, arguments, and options.

func (*PageContent) ElementType

func (*PageContent) ElementType() reflect.Type

func (*PageContent) ToPageContentOutput

func (i *PageContent) ToPageContentOutput() PageContentOutput

func (*PageContent) ToPageContentOutputWithContext

func (i *PageContent) ToPageContentOutputWithContext(ctx context.Context) PageContentOutput

type PageContentArgs

type PageContentArgs struct {
	// List of node content updates to apply. Each update specifies the nodeId (from the page's DOM structure) and the new text content. Node IDs can be retrieved by fetching the page DOM using GET /pages/{page_id}/dom. Only text content in existing nodes can be updated via this resource.
	Nodes NodeContentUpdateArrayInput
	// The Webflow page ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c4'). You can find page IDs using the Pages API list endpoint or in the Webflow designer. This field will be validated before making any API calls.
	PageId pulumi.StringInput
}

The set of arguments for constructing a PageContent resource.

func (PageContentArgs) ElementType

func (PageContentArgs) ElementType() reflect.Type

type PageContentInput

type PageContentInput interface {
	pulumi.Input

	ToPageContentOutput() PageContentOutput
	ToPageContentOutputWithContext(ctx context.Context) PageContentOutput
}

type PageContentOutput

type PageContentOutput struct{ *pulumi.OutputState }

func (PageContentOutput) ElementType

func (PageContentOutput) ElementType() reflect.Type

func (PageContentOutput) LastUpdated

func (o PageContentOutput) LastUpdated() pulumi.StringPtrOutput

The timestamp when the page content was last updated (RFC3339 format). This is automatically set when content is updated and is read-only.

func (PageContentOutput) Nodes

List of node content updates to apply. Each update specifies the nodeId (from the page's DOM structure) and the new text content. Node IDs can be retrieved by fetching the page DOM using GET /pages/{page_id}/dom. Only text content in existing nodes can be updated via this resource.

func (PageContentOutput) PageId

The Webflow page ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c4'). You can find page IDs using the Pages API list endpoint or in the Webflow designer. This field will be validated before making any API calls.

func (PageContentOutput) ToPageContentOutput

func (o PageContentOutput) ToPageContentOutput() PageContentOutput

func (PageContentOutput) ToPageContentOutputWithContext

func (o PageContentOutput) ToPageContentOutputWithContext(ctx context.Context) PageContentOutput

type PageContentState

type PageContentState struct {
}

func (PageContentState) ElementType

func (PageContentState) ElementType() reflect.Type

type PageCustomCode

type PageCustomCode struct {
	pulumi.CustomResourceState

	// The timestamp when the page custom code was first created (RFC3339 format). This is automatically set when the configuration is first created and is read-only.
	CreatedOn pulumi.StringPtrOutput `pulumi:"createdOn"`
	// The timestamp when the page custom code was last updated (RFC3339 format). This is automatically set when the configuration is updated and is read-only.
	LastUpdated pulumi.StringPtrOutput `pulumi:"lastUpdated"`
	// The Webflow page ID (24-character hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c4'). You can find page IDs using the Webflow Pages API or in the Webflow designer. This field will be validated before making any API calls.
	PageId pulumi.StringOutput `pulumi:"pageId"`
	// List of custom code scripts to apply to the page. Each script must reference a script ID and version that have been previously registered. All scripts in this list will be applied to the page; any scripts not listed will be removed from the page.
	Scripts PageCustomCodeScriptArrayOutput `pulumi:"scripts"`
}

Manages custom code (JavaScript) scripts applied to a Webflow page. This resource allows you to apply registered custom code scripts to specific pages. Scripts must first be registered using the RegisteredScript resource before they can be applied. All scripts in the configuration will be applied to the page; scripts not listed will be removed.

func GetPageCustomCode

func GetPageCustomCode(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PageCustomCodeState, opts ...pulumi.ResourceOption) (*PageCustomCode, error)

GetPageCustomCode gets an existing PageCustomCode resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPageCustomCode

func NewPageCustomCode(ctx *pulumi.Context,
	name string, args *PageCustomCodeArgs, opts ...pulumi.ResourceOption) (*PageCustomCode, error)

NewPageCustomCode registers a new resource with the given unique name, arguments, and options.

func (*PageCustomCode) ElementType

func (*PageCustomCode) ElementType() reflect.Type

func (*PageCustomCode) ToPageCustomCodeOutput

func (i *PageCustomCode) ToPageCustomCodeOutput() PageCustomCodeOutput

func (*PageCustomCode) ToPageCustomCodeOutputWithContext

func (i *PageCustomCode) ToPageCustomCodeOutputWithContext(ctx context.Context) PageCustomCodeOutput

type PageCustomCodeArgs

type PageCustomCodeArgs struct {
	// The Webflow page ID (24-character hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c4'). You can find page IDs using the Webflow Pages API or in the Webflow designer. This field will be validated before making any API calls.
	PageId pulumi.StringInput
	// List of custom code scripts to apply to the page. Each script must reference a script ID and version that have been previously registered. All scripts in this list will be applied to the page; any scripts not listed will be removed from the page.
	Scripts PageCustomCodeScriptArrayInput
}

The set of arguments for constructing a PageCustomCode resource.

func (PageCustomCodeArgs) ElementType

func (PageCustomCodeArgs) ElementType() reflect.Type

type PageCustomCodeInput

type PageCustomCodeInput interface {
	pulumi.Input

	ToPageCustomCodeOutput() PageCustomCodeOutput
	ToPageCustomCodeOutputWithContext(ctx context.Context) PageCustomCodeOutput
}

type PageCustomCodeOutput

type PageCustomCodeOutput struct{ *pulumi.OutputState }

func (PageCustomCodeOutput) CreatedOn

The timestamp when the page custom code was first created (RFC3339 format). This is automatically set when the configuration is first created and is read-only.

func (PageCustomCodeOutput) ElementType

func (PageCustomCodeOutput) ElementType() reflect.Type

func (PageCustomCodeOutput) LastUpdated

The timestamp when the page custom code was last updated (RFC3339 format). This is automatically set when the configuration is updated and is read-only.

func (PageCustomCodeOutput) PageId

The Webflow page ID (24-character hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c4'). You can find page IDs using the Webflow Pages API or in the Webflow designer. This field will be validated before making any API calls.

func (PageCustomCodeOutput) Scripts

List of custom code scripts to apply to the page. Each script must reference a script ID and version that have been previously registered. All scripts in this list will be applied to the page; any scripts not listed will be removed from the page.

func (PageCustomCodeOutput) ToPageCustomCodeOutput

func (o PageCustomCodeOutput) ToPageCustomCodeOutput() PageCustomCodeOutput

func (PageCustomCodeOutput) ToPageCustomCodeOutputWithContext

func (o PageCustomCodeOutput) ToPageCustomCodeOutputWithContext(ctx context.Context) PageCustomCodeOutput

type PageCustomCodeScript

type PageCustomCodeScript struct {
	// Optional developer-specified key/value pairs for script attributes. These attributes can be used by the script to customize its behavior on this page.
	Attributes map[string]interface{} `pulumi:"attributes"`
	// The unique identifier of a registered custom code script. This must be a script that was previously registered using the RegisteredScript resource. Script IDs are assigned by Webflow when the script is registered.
	Id string `pulumi:"id"`
	// Where the script should be applied on the page. Must be either 'header' (loaded in page header) or 'footer' (loaded at end of page). Use 'header' for scripts that don't depend on DOM elements. Use 'footer' for scripts that need to run after DOM is fully loaded.
	Location string `pulumi:"location"`
	// The semantic version string for the registered script (e.g., '1.0.0'). This version must match a registered version of the script. You can have multiple versions of the same script registered.
	ScriptVersion string `pulumi:"scriptVersion"`
}

type PageCustomCodeScriptArgs

type PageCustomCodeScriptArgs struct {
	// Optional developer-specified key/value pairs for script attributes. These attributes can be used by the script to customize its behavior on this page.
	Attributes pulumi.MapInput `pulumi:"attributes"`
	// The unique identifier of a registered custom code script. This must be a script that was previously registered using the RegisteredScript resource. Script IDs are assigned by Webflow when the script is registered.
	Id pulumi.StringInput `pulumi:"id"`
	// Where the script should be applied on the page. Must be either 'header' (loaded in page header) or 'footer' (loaded at end of page). Use 'header' for scripts that don't depend on DOM elements. Use 'footer' for scripts that need to run after DOM is fully loaded.
	Location pulumi.StringInput `pulumi:"location"`
	// The semantic version string for the registered script (e.g., '1.0.0'). This version must match a registered version of the script. You can have multiple versions of the same script registered.
	ScriptVersion pulumi.StringInput `pulumi:"scriptVersion"`
}

func (PageCustomCodeScriptArgs) ElementType

func (PageCustomCodeScriptArgs) ElementType() reflect.Type

func (PageCustomCodeScriptArgs) ToPageCustomCodeScriptOutput

func (i PageCustomCodeScriptArgs) ToPageCustomCodeScriptOutput() PageCustomCodeScriptOutput

func (PageCustomCodeScriptArgs) ToPageCustomCodeScriptOutputWithContext

func (i PageCustomCodeScriptArgs) ToPageCustomCodeScriptOutputWithContext(ctx context.Context) PageCustomCodeScriptOutput

type PageCustomCodeScriptArray

type PageCustomCodeScriptArray []PageCustomCodeScriptInput

func (PageCustomCodeScriptArray) ElementType

func (PageCustomCodeScriptArray) ElementType() reflect.Type

func (PageCustomCodeScriptArray) ToPageCustomCodeScriptArrayOutput

func (i PageCustomCodeScriptArray) ToPageCustomCodeScriptArrayOutput() PageCustomCodeScriptArrayOutput

func (PageCustomCodeScriptArray) ToPageCustomCodeScriptArrayOutputWithContext

func (i PageCustomCodeScriptArray) ToPageCustomCodeScriptArrayOutputWithContext(ctx context.Context) PageCustomCodeScriptArrayOutput

type PageCustomCodeScriptArrayInput

type PageCustomCodeScriptArrayInput interface {
	pulumi.Input

	ToPageCustomCodeScriptArrayOutput() PageCustomCodeScriptArrayOutput
	ToPageCustomCodeScriptArrayOutputWithContext(context.Context) PageCustomCodeScriptArrayOutput
}

PageCustomCodeScriptArrayInput is an input type that accepts PageCustomCodeScriptArray and PageCustomCodeScriptArrayOutput values. You can construct a concrete instance of `PageCustomCodeScriptArrayInput` via:

PageCustomCodeScriptArray{ PageCustomCodeScriptArgs{...} }

type PageCustomCodeScriptArrayOutput

type PageCustomCodeScriptArrayOutput struct{ *pulumi.OutputState }

func (PageCustomCodeScriptArrayOutput) ElementType

func (PageCustomCodeScriptArrayOutput) Index

func (PageCustomCodeScriptArrayOutput) ToPageCustomCodeScriptArrayOutput

func (o PageCustomCodeScriptArrayOutput) ToPageCustomCodeScriptArrayOutput() PageCustomCodeScriptArrayOutput

func (PageCustomCodeScriptArrayOutput) ToPageCustomCodeScriptArrayOutputWithContext

func (o PageCustomCodeScriptArrayOutput) ToPageCustomCodeScriptArrayOutputWithContext(ctx context.Context) PageCustomCodeScriptArrayOutput

type PageCustomCodeScriptInput

type PageCustomCodeScriptInput interface {
	pulumi.Input

	ToPageCustomCodeScriptOutput() PageCustomCodeScriptOutput
	ToPageCustomCodeScriptOutputWithContext(context.Context) PageCustomCodeScriptOutput
}

PageCustomCodeScriptInput is an input type that accepts PageCustomCodeScriptArgs and PageCustomCodeScriptOutput values. You can construct a concrete instance of `PageCustomCodeScriptInput` via:

PageCustomCodeScriptArgs{...}

type PageCustomCodeScriptOutput

type PageCustomCodeScriptOutput struct{ *pulumi.OutputState }

func (PageCustomCodeScriptOutput) Attributes

Optional developer-specified key/value pairs for script attributes. These attributes can be used by the script to customize its behavior on this page.

func (PageCustomCodeScriptOutput) ElementType

func (PageCustomCodeScriptOutput) ElementType() reflect.Type

func (PageCustomCodeScriptOutput) Id

The unique identifier of a registered custom code script. This must be a script that was previously registered using the RegisteredScript resource. Script IDs are assigned by Webflow when the script is registered.

func (PageCustomCodeScriptOutput) Location

Where the script should be applied on the page. Must be either 'header' (loaded in page header) or 'footer' (loaded at end of page). Use 'header' for scripts that don't depend on DOM elements. Use 'footer' for scripts that need to run after DOM is fully loaded.

func (PageCustomCodeScriptOutput) ScriptVersion added in v0.10.0

The semantic version string for the registered script (e.g., '1.0.0'). This version must match a registered version of the script. You can have multiple versions of the same script registered.

func (PageCustomCodeScriptOutput) ToPageCustomCodeScriptOutput

func (o PageCustomCodeScriptOutput) ToPageCustomCodeScriptOutput() PageCustomCodeScriptOutput

func (PageCustomCodeScriptOutput) ToPageCustomCodeScriptOutputWithContext

func (o PageCustomCodeScriptOutput) ToPageCustomCodeScriptOutputWithContext(ctx context.Context) PageCustomCodeScriptOutput

type PageCustomCodeState

type PageCustomCodeState struct {
}

func (PageCustomCodeState) ElementType

func (PageCustomCodeState) ElementType() reflect.Type

type PageData

type PageData struct {
	pulumi.CustomResourceState

	// Indicates if the page is archived (read-only). Only populated when pageId input is specified.
	Archived pulumi.BoolPtrOutput `pulumi:"archived"`
	// The ID of the CMS collection (read-only, optional). Only present for collection pages. Only populated when pageId input is specified.
	CollectionId pulumi.StringPtrOutput `pulumi:"collectionId"`
	// The timestamp when the page was created (read-only, RFC3339 format). Only populated when pageId input is specified.
	CreatedOn pulumi.StringPtrOutput `pulumi:"createdOn"`
	// Indicates if the page is in draft mode (read-only). Only populated when pageId input is specified.
	Draft pulumi.BoolPtrOutput `pulumi:"draft"`
	// The timestamp when the page was last updated (read-only, RFC3339 format). Only populated when pageId input is specified.
	LastUpdated pulumi.StringPtrOutput `pulumi:"lastUpdated"`
	// The specific page ID to retrieve (optional, 24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c4'). If specified, only this page's data will be returned. If omitted, all pages for the site will be returned in the 'pages' output.
	PageId pulumi.StringPtrOutput `pulumi:"pageId"`
	// List of all pages in the site (read-only). Only populated when pageId input is NOT specified. Each page includes all metadata fields: id, siteId, title, slug, createdOn, lastUpdated, archived, draft, and optional parentId/collectionId.
	Pages PageInfoArrayOutput `pulumi:"pages"`
	// The ID of the parent page (read-only, optional). Only present for nested pages. Only populated when pageId input is specified.
	ParentId pulumi.StringPtrOutput `pulumi:"parentId"`
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringOutput `pulumi:"siteId"`
	// The URL slug for the page (read-only, e.g., 'about' for '/about'). Only populated when pageId input is specified.
	Slug pulumi.StringPtrOutput `pulumi:"slug"`
	// The page title (read-only). This is the title shown in browser tabs and search results. Only populated when pageId input is specified.
	Title pulumi.StringPtrOutput `pulumi:"title"`
	// The Webflow page ID (read-only). Only populated when pageId input is specified.
	WebflowPageId pulumi.StringPtrOutput `pulumi:"webflowPageId"`
}

Reads page information from a Webflow site. Pages cannot be created via the API - they must be created in the Webflow designer. Use this data source to retrieve page metadata for use in your infrastructure code. Specify pageId to get a single page, or omit it to list all pages in the site.

func GetPageData

func GetPageData(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PageDataState, opts ...pulumi.ResourceOption) (*PageData, error)

GetPageData gets an existing PageData resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPageData

func NewPageData(ctx *pulumi.Context,
	name string, args *PageDataArgs, opts ...pulumi.ResourceOption) (*PageData, error)

NewPageData registers a new resource with the given unique name, arguments, and options.

func (*PageData) ElementType

func (*PageData) ElementType() reflect.Type

func (*PageData) ToPageDataOutput

func (i *PageData) ToPageDataOutput() PageDataOutput

func (*PageData) ToPageDataOutputWithContext

func (i *PageData) ToPageDataOutputWithContext(ctx context.Context) PageDataOutput

type PageDataArgs

type PageDataArgs struct {
	// The specific page ID to retrieve (optional, 24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c4'). If specified, only this page's data will be returned. If omitted, all pages for the site will be returned in the 'pages' output.
	PageId pulumi.StringPtrInput
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringInput
}

The set of arguments for constructing a PageData resource.

func (PageDataArgs) ElementType

func (PageDataArgs) ElementType() reflect.Type

type PageDataInput

type PageDataInput interface {
	pulumi.Input

	ToPageDataOutput() PageDataOutput
	ToPageDataOutputWithContext(ctx context.Context) PageDataOutput
}

type PageDataOutput

type PageDataOutput struct{ *pulumi.OutputState }

func (PageDataOutput) Archived

func (o PageDataOutput) Archived() pulumi.BoolPtrOutput

Indicates if the page is archived (read-only). Only populated when pageId input is specified.

func (PageDataOutput) CollectionId

func (o PageDataOutput) CollectionId() pulumi.StringPtrOutput

The ID of the CMS collection (read-only, optional). Only present for collection pages. Only populated when pageId input is specified.

func (PageDataOutput) CreatedOn

func (o PageDataOutput) CreatedOn() pulumi.StringPtrOutput

The timestamp when the page was created (read-only, RFC3339 format). Only populated when pageId input is specified.

func (PageDataOutput) Draft

Indicates if the page is in draft mode (read-only). Only populated when pageId input is specified.

func (PageDataOutput) ElementType

func (PageDataOutput) ElementType() reflect.Type

func (PageDataOutput) LastUpdated

func (o PageDataOutput) LastUpdated() pulumi.StringPtrOutput

The timestamp when the page was last updated (read-only, RFC3339 format). Only populated when pageId input is specified.

func (PageDataOutput) PageId

The specific page ID to retrieve (optional, 24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c4'). If specified, only this page's data will be returned. If omitted, all pages for the site will be returned in the 'pages' output.

func (PageDataOutput) Pages

List of all pages in the site (read-only). Only populated when pageId input is NOT specified. Each page includes all metadata fields: id, siteId, title, slug, createdOn, lastUpdated, archived, draft, and optional parentId/collectionId.

func (PageDataOutput) ParentId

func (o PageDataOutput) ParentId() pulumi.StringPtrOutput

The ID of the parent page (read-only, optional). Only present for nested pages. Only populated when pageId input is specified.

func (PageDataOutput) SiteId

func (o PageDataOutput) SiteId() pulumi.StringOutput

The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.

func (PageDataOutput) Slug

The URL slug for the page (read-only, e.g., 'about' for '/about'). Only populated when pageId input is specified.

func (PageDataOutput) Title

The page title (read-only). This is the title shown in browser tabs and search results. Only populated when pageId input is specified.

func (PageDataOutput) ToPageDataOutput

func (o PageDataOutput) ToPageDataOutput() PageDataOutput

func (PageDataOutput) ToPageDataOutputWithContext

func (o PageDataOutput) ToPageDataOutputWithContext(ctx context.Context) PageDataOutput

func (PageDataOutput) WebflowPageId

func (o PageDataOutput) WebflowPageId() pulumi.StringPtrOutput

The Webflow page ID (read-only). Only populated when pageId input is specified.

type PageDataState

type PageDataState struct {
}

func (PageDataState) ElementType

func (PageDataState) ElementType() reflect.Type

type PageInfo

type PageInfo struct {
	Archived     bool    `pulumi:"archived"`
	CollectionId *string `pulumi:"collectionId"`
	CreatedOn    string  `pulumi:"createdOn"`
	Draft        bool    `pulumi:"draft"`
	LastUpdated  string  `pulumi:"lastUpdated"`
	PageId       string  `pulumi:"pageId"`
	ParentId     *string `pulumi:"parentId"`
	SiteId       string  `pulumi:"siteId"`
	Slug         string  `pulumi:"slug"`
	Title        string  `pulumi:"title"`
}

type PageInfoArrayOutput

type PageInfoArrayOutput struct{ *pulumi.OutputState }

func (PageInfoArrayOutput) ElementType

func (PageInfoArrayOutput) ElementType() reflect.Type

func (PageInfoArrayOutput) Index

func (PageInfoArrayOutput) ToPageInfoArrayOutput

func (o PageInfoArrayOutput) ToPageInfoArrayOutput() PageInfoArrayOutput

func (PageInfoArrayOutput) ToPageInfoArrayOutputWithContext

func (o PageInfoArrayOutput) ToPageInfoArrayOutputWithContext(ctx context.Context) PageInfoArrayOutput

type PageInfoOutput

type PageInfoOutput struct{ *pulumi.OutputState }

func (PageInfoOutput) Archived

func (o PageInfoOutput) Archived() pulumi.BoolOutput

func (PageInfoOutput) CollectionId

func (o PageInfoOutput) CollectionId() pulumi.StringPtrOutput

func (PageInfoOutput) CreatedOn

func (o PageInfoOutput) CreatedOn() pulumi.StringOutput

func (PageInfoOutput) Draft

func (o PageInfoOutput) Draft() pulumi.BoolOutput

func (PageInfoOutput) ElementType

func (PageInfoOutput) ElementType() reflect.Type

func (PageInfoOutput) LastUpdated

func (o PageInfoOutput) LastUpdated() pulumi.StringOutput

func (PageInfoOutput) PageId

func (o PageInfoOutput) PageId() pulumi.StringOutput

func (PageInfoOutput) ParentId

func (o PageInfoOutput) ParentId() pulumi.StringPtrOutput

func (PageInfoOutput) SiteId

func (o PageInfoOutput) SiteId() pulumi.StringOutput

func (PageInfoOutput) Slug

func (PageInfoOutput) Title

func (PageInfoOutput) ToPageInfoOutput

func (o PageInfoOutput) ToPageInfoOutput() PageInfoOutput

func (PageInfoOutput) ToPageInfoOutputWithContext

func (o PageInfoOutput) ToPageInfoOutputWithContext(ctx context.Context) PageInfoOutput

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	// Webflow API v2 bearer token for authentication. Can also be set via WEBFLOW_API_TOKEN environment variable.
	ApiToken pulumi.StringPtrOutput `pulumi:"apiToken"`
}

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// Webflow API v2 bearer token for authentication. Can also be set via WEBFLOW_API_TOKEN environment variable.
	ApiToken pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) ApiToken

func (o ProviderOutput) ApiToken() pulumi.StringPtrOutput

Webflow API v2 bearer token for authentication. Can also be set via WEBFLOW_API_TOKEN environment variable.

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type Redirect

type Redirect struct {
	pulumi.CustomResourceState

	// The timestamp when the redirect was created (RFC3339 format). This is automatically set when the redirect is created and is read-only.
	CreatedOn pulumi.StringPtrOutput `pulumi:"createdOn"`
	// The URL path to redirect to (e.g., '/new-page', '/home'). Must start with '/' and contain only valid URL characters. This is the location where users will be redirected when they visit the source path.
	DestinationPath pulumi.StringOutput `pulumi:"destinationPath"`
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringOutput `pulumi:"siteId"`
	// The URL path to redirect from (e.g., '/old-page', '/blog/2023'). Must start with '/' and contain only valid URL characters (letters, numbers, hyphens, underscores, slashes, dots). Query strings and fragments are not allowed in the source path.
	SourcePath pulumi.StringOutput `pulumi:"sourcePath"`
	// The HTTP status code for the redirect. Must be either 301 or 302. 301 = permanent redirect (use when a page has moved permanently; search engines update their index). 302 = temporary redirect (use for maintenance or temporary page moves).
	StatusCode pulumi.IntOutput `pulumi:"statusCode"`
}

Manages HTTP redirects for a Webflow site. This resource allows you to define redirect rules for old URLs to new locations, supporting both permanent (301) and temporary (302) redirects.

func GetRedirect

func GetRedirect(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RedirectState, opts ...pulumi.ResourceOption) (*Redirect, error)

GetRedirect gets an existing Redirect resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRedirect

func NewRedirect(ctx *pulumi.Context,
	name string, args *RedirectArgs, opts ...pulumi.ResourceOption) (*Redirect, error)

NewRedirect registers a new resource with the given unique name, arguments, and options.

func (*Redirect) ElementType

func (*Redirect) ElementType() reflect.Type

func (*Redirect) ToRedirectOutput

func (i *Redirect) ToRedirectOutput() RedirectOutput

func (*Redirect) ToRedirectOutputWithContext

func (i *Redirect) ToRedirectOutputWithContext(ctx context.Context) RedirectOutput

type RedirectArgs

type RedirectArgs struct {
	// The URL path to redirect to (e.g., '/new-page', '/home'). Must start with '/' and contain only valid URL characters. This is the location where users will be redirected when they visit the source path.
	DestinationPath pulumi.StringInput
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringInput
	// The URL path to redirect from (e.g., '/old-page', '/blog/2023'). Must start with '/' and contain only valid URL characters (letters, numbers, hyphens, underscores, slashes, dots). Query strings and fragments are not allowed in the source path.
	SourcePath pulumi.StringInput
	// The HTTP status code for the redirect. Must be either 301 or 302. 301 = permanent redirect (use when a page has moved permanently; search engines update their index). 302 = temporary redirect (use for maintenance or temporary page moves).
	StatusCode pulumi.IntInput
}

The set of arguments for constructing a Redirect resource.

func (RedirectArgs) ElementType

func (RedirectArgs) ElementType() reflect.Type

type RedirectInput

type RedirectInput interface {
	pulumi.Input

	ToRedirectOutput() RedirectOutput
	ToRedirectOutputWithContext(ctx context.Context) RedirectOutput
}

type RedirectOutput

type RedirectOutput struct{ *pulumi.OutputState }

func (RedirectOutput) CreatedOn

func (o RedirectOutput) CreatedOn() pulumi.StringPtrOutput

The timestamp when the redirect was created (RFC3339 format). This is automatically set when the redirect is created and is read-only.

func (RedirectOutput) DestinationPath

func (o RedirectOutput) DestinationPath() pulumi.StringOutput

The URL path to redirect to (e.g., '/new-page', '/home'). Must start with '/' and contain only valid URL characters. This is the location where users will be redirected when they visit the source path.

func (RedirectOutput) ElementType

func (RedirectOutput) ElementType() reflect.Type

func (RedirectOutput) SiteId

func (o RedirectOutput) SiteId() pulumi.StringOutput

The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.

func (RedirectOutput) SourcePath

func (o RedirectOutput) SourcePath() pulumi.StringOutput

The URL path to redirect from (e.g., '/old-page', '/blog/2023'). Must start with '/' and contain only valid URL characters (letters, numbers, hyphens, underscores, slashes, dots). Query strings and fragments are not allowed in the source path.

func (RedirectOutput) StatusCode

func (o RedirectOutput) StatusCode() pulumi.IntOutput

The HTTP status code for the redirect. Must be either 301 or 302. 301 = permanent redirect (use when a page has moved permanently; search engines update their index). 302 = temporary redirect (use for maintenance or temporary page moves).

func (RedirectOutput) ToRedirectOutput

func (o RedirectOutput) ToRedirectOutput() RedirectOutput

func (RedirectOutput) ToRedirectOutputWithContext

func (o RedirectOutput) ToRedirectOutputWithContext(ctx context.Context) RedirectOutput

type RedirectState

type RedirectState struct {
}

func (RedirectState) ElementType

func (RedirectState) ElementType() reflect.Type

type RegisteredScript

type RegisteredScript struct {
	pulumi.CustomResourceState

	// Indicates whether the script can be copied when the site is duplicated. Default: false. When true, the script will be included when creating a copy of the site.
	CanCopy pulumi.BoolPtrOutput `pulumi:"canCopy"`
	// The timestamp when the script was created (RFC3339 format). This is automatically set by Webflow when the script is created and is read-only.
	CreatedOn pulumi.StringPtrOutput `pulumi:"createdOn"`
	// The user-facing name for the script (1-50 alphanumeric characters). This name is used to identify the script in the Webflow interface. Only letters (A-Z, a-z) and numbers (0-9) are allowed. Example valid names: 'CmsSlider', 'AnalyticsScript', 'MyCustomScript123'.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The URI for the externally hosted script (e.g., 'https://cdn.example.com/my-script.js'). Must be a valid HTTP or HTTPS URL. The script should be publicly accessible and properly configured for cross-origin requests.
	HostedLocation pulumi.StringOutput `pulumi:"hostedLocation"`
	// The Sub-Resource Integrity (SRI) hash for the script. Format: 'sha384-<hash>', 'sha256-<hash>', or 'sha512-<hash>'. SRI hashes help ensure that the script hasn't been modified in transit. You can generate an SRI hash using https://www.srihash.org/
	IntegrityHash pulumi.StringOutput `pulumi:"integrityHash"`
	// The timestamp when the script was last updated (RFC3339 format). This is automatically updated by Webflow when the script is modified and is read-only.
	LastUpdated pulumi.StringPtrOutput `pulumi:"lastUpdated"`
	// The Webflow-assigned script ID (read-only). This is typically the lowercase version of displayName. Use this value when referencing the script in SiteCustomCode or PageCustomCode resources.
	ScriptId pulumi.StringOutput `pulumi:"scriptId"`
	// The Semantic Version (SemVer) string for the script (e.g., '1.0.0', '2.3.1'). This helps track different versions of your script. See https://semver.org/ for more information on semantic versioning.
	ScriptVersion pulumi.StringPtrOutput `pulumi:"scriptVersion"`
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringOutput `pulumi:"siteId"`
}

Manages custom code scripts in the Webflow script registry. This resource allows you to register and manage externally hosted scripts that can be deployed across your Webflow site with version control and integrity verification.

func GetRegisteredScript

func GetRegisteredScript(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RegisteredScriptState, opts ...pulumi.ResourceOption) (*RegisteredScript, error)

GetRegisteredScript gets an existing RegisteredScript resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRegisteredScript

func NewRegisteredScript(ctx *pulumi.Context,
	name string, args *RegisteredScriptArgs, opts ...pulumi.ResourceOption) (*RegisteredScript, error)

NewRegisteredScript registers a new resource with the given unique name, arguments, and options.

func (*RegisteredScript) ElementType

func (*RegisteredScript) ElementType() reflect.Type

func (*RegisteredScript) ToRegisteredScriptOutput

func (i *RegisteredScript) ToRegisteredScriptOutput() RegisteredScriptOutput

func (*RegisteredScript) ToRegisteredScriptOutputWithContext

func (i *RegisteredScript) ToRegisteredScriptOutputWithContext(ctx context.Context) RegisteredScriptOutput

type RegisteredScriptArgs

type RegisteredScriptArgs struct {
	// Indicates whether the script can be copied when the site is duplicated. Default: false. When true, the script will be included when creating a copy of the site.
	CanCopy pulumi.BoolPtrInput
	// The user-facing name for the script (1-50 alphanumeric characters). This name is used to identify the script in the Webflow interface. Only letters (A-Z, a-z) and numbers (0-9) are allowed. Example valid names: 'CmsSlider', 'AnalyticsScript', 'MyCustomScript123'.
	DisplayName pulumi.StringInput
	// The URI for the externally hosted script (e.g., 'https://cdn.example.com/my-script.js'). Must be a valid HTTP or HTTPS URL. The script should be publicly accessible and properly configured for cross-origin requests.
	HostedLocation pulumi.StringInput
	// The Sub-Resource Integrity (SRI) hash for the script. Format: 'sha384-<hash>', 'sha256-<hash>', or 'sha512-<hash>'. SRI hashes help ensure that the script hasn't been modified in transit. You can generate an SRI hash using https://www.srihash.org/
	IntegrityHash pulumi.StringInput
	// The Semantic Version (SemVer) string for the script (e.g., '1.0.0', '2.3.1'). This helps track different versions of your script. See https://semver.org/ for more information on semantic versioning.
	ScriptVersion pulumi.StringPtrInput
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringInput
}

The set of arguments for constructing a RegisteredScript resource.

func (RegisteredScriptArgs) ElementType

func (RegisteredScriptArgs) ElementType() reflect.Type

type RegisteredScriptInput

type RegisteredScriptInput interface {
	pulumi.Input

	ToRegisteredScriptOutput() RegisteredScriptOutput
	ToRegisteredScriptOutputWithContext(ctx context.Context) RegisteredScriptOutput
}

type RegisteredScriptOutput

type RegisteredScriptOutput struct{ *pulumi.OutputState }

func (RegisteredScriptOutput) CanCopy

Indicates whether the script can be copied when the site is duplicated. Default: false. When true, the script will be included when creating a copy of the site.

func (RegisteredScriptOutput) CreatedOn

The timestamp when the script was created (RFC3339 format). This is automatically set by Webflow when the script is created and is read-only.

func (RegisteredScriptOutput) DisplayName

func (o RegisteredScriptOutput) DisplayName() pulumi.StringOutput

The user-facing name for the script (1-50 alphanumeric characters). This name is used to identify the script in the Webflow interface. Only letters (A-Z, a-z) and numbers (0-9) are allowed. Example valid names: 'CmsSlider', 'AnalyticsScript', 'MyCustomScript123'.

func (RegisteredScriptOutput) ElementType

func (RegisteredScriptOutput) ElementType() reflect.Type

func (RegisteredScriptOutput) HostedLocation

func (o RegisteredScriptOutput) HostedLocation() pulumi.StringOutput

The URI for the externally hosted script (e.g., 'https://cdn.example.com/my-script.js'). Must be a valid HTTP or HTTPS URL. The script should be publicly accessible and properly configured for cross-origin requests.

func (RegisteredScriptOutput) IntegrityHash

func (o RegisteredScriptOutput) IntegrityHash() pulumi.StringOutput

The Sub-Resource Integrity (SRI) hash for the script. Format: 'sha384-<hash>', 'sha256-<hash>', or 'sha512-<hash>'. SRI hashes help ensure that the script hasn't been modified in transit. You can generate an SRI hash using https://www.srihash.org/

func (RegisteredScriptOutput) LastUpdated

The timestamp when the script was last updated (RFC3339 format). This is automatically updated by Webflow when the script is modified and is read-only.

func (RegisteredScriptOutput) ScriptId

The Webflow-assigned script ID (read-only). This is typically the lowercase version of displayName. Use this value when referencing the script in SiteCustomCode or PageCustomCode resources.

func (RegisteredScriptOutput) ScriptVersion added in v0.10.0

func (o RegisteredScriptOutput) ScriptVersion() pulumi.StringPtrOutput

The Semantic Version (SemVer) string for the script (e.g., '1.0.0', '2.3.1'). This helps track different versions of your script. See https://semver.org/ for more information on semantic versioning.

func (RegisteredScriptOutput) SiteId

The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.

func (RegisteredScriptOutput) ToRegisteredScriptOutput

func (o RegisteredScriptOutput) ToRegisteredScriptOutput() RegisteredScriptOutput

func (RegisteredScriptOutput) ToRegisteredScriptOutputWithContext

func (o RegisteredScriptOutput) ToRegisteredScriptOutputWithContext(ctx context.Context) RegisteredScriptOutput

type RegisteredScriptState

type RegisteredScriptState struct {
}

func (RegisteredScriptState) ElementType

func (RegisteredScriptState) ElementType() reflect.Type

type RobotsTxt

type RobotsTxt struct {
	pulumi.CustomResourceState

	// The robots.txt content in traditional format. Supports User-agent, Allow, Disallow, and Sitemap directives.
	Content pulumi.StringOutput `pulumi:"content"`
	// RFC3339 timestamp of the last modification.
	LastModified pulumi.StringOutput `pulumi:"lastModified"`
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3').
	SiteId pulumi.StringOutput `pulumi:"siteId"`
}

Manages robots.txt configuration for a Webflow site. This resource allows you to define crawler access rules and sitemap references.

func GetRobotsTxt

func GetRobotsTxt(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RobotsTxtState, opts ...pulumi.ResourceOption) (*RobotsTxt, error)

GetRobotsTxt gets an existing RobotsTxt resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRobotsTxt

func NewRobotsTxt(ctx *pulumi.Context,
	name string, args *RobotsTxtArgs, opts ...pulumi.ResourceOption) (*RobotsTxt, error)

NewRobotsTxt registers a new resource with the given unique name, arguments, and options.

func (*RobotsTxt) ElementType

func (*RobotsTxt) ElementType() reflect.Type

func (*RobotsTxt) ToRobotsTxtOutput

func (i *RobotsTxt) ToRobotsTxtOutput() RobotsTxtOutput

func (*RobotsTxt) ToRobotsTxtOutputWithContext

func (i *RobotsTxt) ToRobotsTxtOutputWithContext(ctx context.Context) RobotsTxtOutput

type RobotsTxtArgs

type RobotsTxtArgs struct {
	// The robots.txt content in traditional format. Supports User-agent, Allow, Disallow, and Sitemap directives.
	Content pulumi.StringInput
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3').
	SiteId pulumi.StringInput
}

The set of arguments for constructing a RobotsTxt resource.

func (RobotsTxtArgs) ElementType

func (RobotsTxtArgs) ElementType() reflect.Type

type RobotsTxtInput

type RobotsTxtInput interface {
	pulumi.Input

	ToRobotsTxtOutput() RobotsTxtOutput
	ToRobotsTxtOutputWithContext(ctx context.Context) RobotsTxtOutput
}

type RobotsTxtOutput

type RobotsTxtOutput struct{ *pulumi.OutputState }

func (RobotsTxtOutput) Content

func (o RobotsTxtOutput) Content() pulumi.StringOutput

The robots.txt content in traditional format. Supports User-agent, Allow, Disallow, and Sitemap directives.

func (RobotsTxtOutput) ElementType

func (RobotsTxtOutput) ElementType() reflect.Type

func (RobotsTxtOutput) LastModified

func (o RobotsTxtOutput) LastModified() pulumi.StringOutput

RFC3339 timestamp of the last modification.

func (RobotsTxtOutput) SiteId

func (o RobotsTxtOutput) SiteId() pulumi.StringOutput

The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3').

func (RobotsTxtOutput) ToRobotsTxtOutput

func (o RobotsTxtOutput) ToRobotsTxtOutput() RobotsTxtOutput

func (RobotsTxtOutput) ToRobotsTxtOutputWithContext

func (o RobotsTxtOutput) ToRobotsTxtOutputWithContext(ctx context.Context) RobotsTxtOutput

type RobotsTxtState

type RobotsTxtState struct {
}

func (RobotsTxtState) ElementType

func (RobotsTxtState) ElementType() reflect.Type

type Site

type Site struct {
	pulumi.CustomResourceState

	// List of custom domains attached to the site (read-only in this release). Custom domain management will be available in a future release.
	CustomDomains pulumi.StringArrayOutput `pulumi:"customDomains"`
	// Indicates whether data collection is enabled for this site (read-only). Controlled by your Webflow workspace settings, not per-site.
	DataCollectionEnabled pulumi.BoolPtrOutput `pulumi:"dataCollectionEnabled"`
	// The type of data collection enabled for the site (read-only). Possible values: 'always' (always collect), 'optOut' (collect by default), 'disabled' (no collection). Controlled by your Webflow workspace settings, not per-site.
	DataCollectionType pulumi.StringPtrOutput `pulumi:"dataCollectionType"`
	// The human-readable name of the site as shown in the Webflow dashboard. Required - must be a non-empty string. Examples: 'My Marketing Site', 'Company Blog', 'Product Landing Page'. This is the name users will see when managing the site.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The RFC3339 timestamp of the last time the site was published (read-only). Automatically set by Webflow when changes are published to production.
	LastPublished pulumi.StringPtrOutput `pulumi:"lastPublished"`
	// The RFC3339 timestamp of the last time the site configuration was updated (read-only). Automatically set by Webflow when any site changes occur.
	LastUpdated pulumi.StringPtrOutput `pulumi:"lastUpdated"`
	// The folder ID where the site will be organized in the Webflow dashboard. Optional - the site will be placed at the workspace root if not specified. This is useful for organizing multiple sites into logical groups within your workspace.
	ParentFolderId pulumi.StringPtrOutput `pulumi:"parentFolderId"`
	// The URL to a preview image of the site (read-only). Automatically generated by Webflow for site thumbnails in the dashboard.
	PreviewUrl pulumi.StringPtrOutput `pulumi:"previewUrl"`
	// Automatically publish the site after creation or updates. When set to true, the provider will publish the site to production after successfully creating or updating it. Default: false (manual publishing required). Note: Site must have at least one published version before automatic publishing will work. If publishing fails, the entire operation will fail with an error (site may exist but Pulumi will report failure). Recommendation: Set to false for initial site creation, then enable after first manual publish.
	Publish pulumi.BoolPtrOutput `pulumi:"publish"`
	// The slugified version of the site name used in URLs (read-only). Auto-generated by Webflow from the displayName. Cannot be set via API. Examples: 'my-site', 'company-blog-2024', 'product-landing'.
	ShortName pulumi.StringPtrOutput `pulumi:"shortName"`
	// The template to use for site creation. Optional - if not specified, Webflow will create a blank site. **WARNING: This field is IMMUTABLE.** Once set, it cannot be changed. Changing this value will trigger a REPLACE operation, which will: (1) DELETE your existing site and ALL its content (pages, CMS items, assets, etc.), (2) CREATE a new site with the new template, (3) REPLACE all dependent resources (redirects, robots.txt, etc.). This is a DESTRUCTIVE operation that cannot be undone. Use any valid Webflow template identifier (e.g., 'mast-framework', 'blank'). Consider using resource protection (`protect: true`) to prevent accidental replacement.
	TemplateName pulumi.StringPtrOutput `pulumi:"templateName"`
	// The IANA timezone identifier for the site (read-only). This value is configured in Webflow Site Settings and cannot be changed via API. Examples: 'America/New_York', 'Europe/London', 'Asia/Tokyo', 'UTC'.
	TimeZone pulumi.StringPtrOutput `pulumi:"timeZone"`
	// The Webflow workspace ID where the site will be created. Required for site creation (Enterprise workspace required by Webflow API). Example: '5f0c8c9e1c9d440000e8d8c3'. You can find your workspace ID in the Webflow dashboard under Account Settings > Workspace.
	WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
}

Manages Webflow sites programmatically. This resource allows you to create, configure, and manage Webflow sites through infrastructure code. Create, Read, Update, and Delete operations are fully supported for complete site lifecycle management.

func GetSite

func GetSite(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SiteState, opts ...pulumi.ResourceOption) (*Site, error)

GetSite gets an existing Site resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSite

func NewSite(ctx *pulumi.Context,
	name string, args *SiteArgs, opts ...pulumi.ResourceOption) (*Site, error)

NewSite registers a new resource with the given unique name, arguments, and options.

func (*Site) ElementType

func (*Site) ElementType() reflect.Type

func (*Site) ToSiteOutput

func (i *Site) ToSiteOutput() SiteOutput

func (*Site) ToSiteOutputWithContext

func (i *Site) ToSiteOutputWithContext(ctx context.Context) SiteOutput

type SiteArgs

type SiteArgs struct {
	// The human-readable name of the site as shown in the Webflow dashboard. Required - must be a non-empty string. Examples: 'My Marketing Site', 'Company Blog', 'Product Landing Page'. This is the name users will see when managing the site.
	DisplayName pulumi.StringInput
	// The folder ID where the site will be organized in the Webflow dashboard. Optional - the site will be placed at the workspace root if not specified. This is useful for organizing multiple sites into logical groups within your workspace.
	ParentFolderId pulumi.StringPtrInput
	// Automatically publish the site after creation or updates. When set to true, the provider will publish the site to production after successfully creating or updating it. Default: false (manual publishing required). Note: Site must have at least one published version before automatic publishing will work. If publishing fails, the entire operation will fail with an error (site may exist but Pulumi will report failure). Recommendation: Set to false for initial site creation, then enable after first manual publish.
	Publish pulumi.BoolPtrInput
	// The template to use for site creation. Optional - if not specified, Webflow will create a blank site. **WARNING: This field is IMMUTABLE.** Once set, it cannot be changed. Changing this value will trigger a REPLACE operation, which will: (1) DELETE your existing site and ALL its content (pages, CMS items, assets, etc.), (2) CREATE a new site with the new template, (3) REPLACE all dependent resources (redirects, robots.txt, etc.). This is a DESTRUCTIVE operation that cannot be undone. Use any valid Webflow template identifier (e.g., 'mast-framework', 'blank'). Consider using resource protection (`protect: true`) to prevent accidental replacement.
	TemplateName pulumi.StringPtrInput
	// The Webflow workspace ID where the site will be created. Required for site creation (Enterprise workspace required by Webflow API). Example: '5f0c8c9e1c9d440000e8d8c3'. You can find your workspace ID in the Webflow dashboard under Account Settings > Workspace.
	WorkspaceId pulumi.StringInput
}

The set of arguments for constructing a Site resource.

func (SiteArgs) ElementType

func (SiteArgs) ElementType() reflect.Type

type SiteCustomCode

type SiteCustomCode struct {
	pulumi.CustomResourceState

	// The timestamp when the site's custom code was first created (RFC3339 format). This is automatically set when custom code is first applied and is read-only.
	CreatedOn pulumi.StringPtrOutput `pulumi:"createdOn"`
	// The timestamp when the site's custom code was last updated (RFC3339 format). This is automatically set and is read-only.
	LastUpdated pulumi.StringPtrOutput `pulumi:"lastUpdated"`
	// A list of custom scripts to apply to the site. Each script must be registered to the site first. To remove individual scripts, simply exclude them from this list on the next update. If you have multiple scripts your app manages, ensure they are always included in this list.
	Scripts CustomScriptArgsArrayOutput `pulumi:"scripts"`
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringOutput `pulumi:"siteId"`
}

Manages custom JavaScript code applied to a Webflow site. This resource allows you to apply registered custom scripts to a site and control where they are placed (header or footer). Custom scripts must be registered to the site first via the RegisterScript resource.

func GetSiteCustomCode

func GetSiteCustomCode(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SiteCustomCodeState, opts ...pulumi.ResourceOption) (*SiteCustomCode, error)

GetSiteCustomCode gets an existing SiteCustomCode resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSiteCustomCode

func NewSiteCustomCode(ctx *pulumi.Context,
	name string, args *SiteCustomCodeArgs, opts ...pulumi.ResourceOption) (*SiteCustomCode, error)

NewSiteCustomCode registers a new resource with the given unique name, arguments, and options.

func (*SiteCustomCode) ElementType

func (*SiteCustomCode) ElementType() reflect.Type

func (*SiteCustomCode) ToSiteCustomCodeOutput

func (i *SiteCustomCode) ToSiteCustomCodeOutput() SiteCustomCodeOutput

func (*SiteCustomCode) ToSiteCustomCodeOutputWithContext

func (i *SiteCustomCode) ToSiteCustomCodeOutputWithContext(ctx context.Context) SiteCustomCodeOutput

type SiteCustomCodeArgs

type SiteCustomCodeArgs struct {
	// A list of custom scripts to apply to the site. Each script must be registered to the site first. To remove individual scripts, simply exclude them from this list on the next update. If you have multiple scripts your app manages, ensure they are always included in this list.
	Scripts CustomScriptArgsArrayInput
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringInput
}

The set of arguments for constructing a SiteCustomCode resource.

func (SiteCustomCodeArgs) ElementType

func (SiteCustomCodeArgs) ElementType() reflect.Type

type SiteCustomCodeInput

type SiteCustomCodeInput interface {
	pulumi.Input

	ToSiteCustomCodeOutput() SiteCustomCodeOutput
	ToSiteCustomCodeOutputWithContext(ctx context.Context) SiteCustomCodeOutput
}

type SiteCustomCodeOutput

type SiteCustomCodeOutput struct{ *pulumi.OutputState }

func (SiteCustomCodeOutput) CreatedOn

The timestamp when the site's custom code was first created (RFC3339 format). This is automatically set when custom code is first applied and is read-only.

func (SiteCustomCodeOutput) ElementType

func (SiteCustomCodeOutput) ElementType() reflect.Type

func (SiteCustomCodeOutput) LastUpdated

The timestamp when the site's custom code was last updated (RFC3339 format). This is automatically set and is read-only.

func (SiteCustomCodeOutput) Scripts

A list of custom scripts to apply to the site. Each script must be registered to the site first. To remove individual scripts, simply exclude them from this list on the next update. If you have multiple scripts your app manages, ensure they are always included in this list.

func (SiteCustomCodeOutput) SiteId

The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.

func (SiteCustomCodeOutput) ToSiteCustomCodeOutput

func (o SiteCustomCodeOutput) ToSiteCustomCodeOutput() SiteCustomCodeOutput

func (SiteCustomCodeOutput) ToSiteCustomCodeOutputWithContext

func (o SiteCustomCodeOutput) ToSiteCustomCodeOutputWithContext(ctx context.Context) SiteCustomCodeOutput

type SiteCustomCodeState

type SiteCustomCodeState struct {
}

func (SiteCustomCodeState) ElementType

func (SiteCustomCodeState) ElementType() reflect.Type

type SiteInput

type SiteInput interface {
	pulumi.Input

	ToSiteOutput() SiteOutput
	ToSiteOutputWithContext(ctx context.Context) SiteOutput
}

type SiteOutput

type SiteOutput struct{ *pulumi.OutputState }

func (SiteOutput) CustomDomains

func (o SiteOutput) CustomDomains() pulumi.StringArrayOutput

List of custom domains attached to the site (read-only in this release). Custom domain management will be available in a future release.

func (SiteOutput) DataCollectionEnabled

func (o SiteOutput) DataCollectionEnabled() pulumi.BoolPtrOutput

Indicates whether data collection is enabled for this site (read-only). Controlled by your Webflow workspace settings, not per-site.

func (SiteOutput) DataCollectionType

func (o SiteOutput) DataCollectionType() pulumi.StringPtrOutput

The type of data collection enabled for the site (read-only). Possible values: 'always' (always collect), 'optOut' (collect by default), 'disabled' (no collection). Controlled by your Webflow workspace settings, not per-site.

func (SiteOutput) DisplayName

func (o SiteOutput) DisplayName() pulumi.StringOutput

The human-readable name of the site as shown in the Webflow dashboard. Required - must be a non-empty string. Examples: 'My Marketing Site', 'Company Blog', 'Product Landing Page'. This is the name users will see when managing the site.

func (SiteOutput) ElementType

func (SiteOutput) ElementType() reflect.Type

func (SiteOutput) LastPublished

func (o SiteOutput) LastPublished() pulumi.StringPtrOutput

The RFC3339 timestamp of the last time the site was published (read-only). Automatically set by Webflow when changes are published to production.

func (SiteOutput) LastUpdated

func (o SiteOutput) LastUpdated() pulumi.StringPtrOutput

The RFC3339 timestamp of the last time the site configuration was updated (read-only). Automatically set by Webflow when any site changes occur.

func (SiteOutput) ParentFolderId

func (o SiteOutput) ParentFolderId() pulumi.StringPtrOutput

The folder ID where the site will be organized in the Webflow dashboard. Optional - the site will be placed at the workspace root if not specified. This is useful for organizing multiple sites into logical groups within your workspace.

func (SiteOutput) PreviewUrl

func (o SiteOutput) PreviewUrl() pulumi.StringPtrOutput

The URL to a preview image of the site (read-only). Automatically generated by Webflow for site thumbnails in the dashboard.

func (SiteOutput) Publish

func (o SiteOutput) Publish() pulumi.BoolPtrOutput

Automatically publish the site after creation or updates. When set to true, the provider will publish the site to production after successfully creating or updating it. Default: false (manual publishing required). Note: Site must have at least one published version before automatic publishing will work. If publishing fails, the entire operation will fail with an error (site may exist but Pulumi will report failure). Recommendation: Set to false for initial site creation, then enable after first manual publish.

func (SiteOutput) ShortName

func (o SiteOutput) ShortName() pulumi.StringPtrOutput

The slugified version of the site name used in URLs (read-only). Auto-generated by Webflow from the displayName. Cannot be set via API. Examples: 'my-site', 'company-blog-2024', 'product-landing'.

func (SiteOutput) TemplateName

func (o SiteOutput) TemplateName() pulumi.StringPtrOutput

The template to use for site creation. Optional - if not specified, Webflow will create a blank site. **WARNING: This field is IMMUTABLE.** Once set, it cannot be changed. Changing this value will trigger a REPLACE operation, which will: (1) DELETE your existing site and ALL its content (pages, CMS items, assets, etc.), (2) CREATE a new site with the new template, (3) REPLACE all dependent resources (redirects, robots.txt, etc.). This is a DESTRUCTIVE operation that cannot be undone. Use any valid Webflow template identifier (e.g., 'mast-framework', 'blank'). Consider using resource protection (`protect: true`) to prevent accidental replacement.

func (SiteOutput) TimeZone

func (o SiteOutput) TimeZone() pulumi.StringPtrOutput

The IANA timezone identifier for the site (read-only). This value is configured in Webflow Site Settings and cannot be changed via API. Examples: 'America/New_York', 'Europe/London', 'Asia/Tokyo', 'UTC'.

func (SiteOutput) ToSiteOutput

func (o SiteOutput) ToSiteOutput() SiteOutput

func (SiteOutput) ToSiteOutputWithContext

func (o SiteOutput) ToSiteOutputWithContext(ctx context.Context) SiteOutput

func (SiteOutput) WorkspaceId

func (o SiteOutput) WorkspaceId() pulumi.StringOutput

The Webflow workspace ID where the site will be created. Required for site creation (Enterprise workspace required by Webflow API). Example: '5f0c8c9e1c9d440000e8d8c3'. You can find your workspace ID in the Webflow dashboard under Account Settings > Workspace.

type SiteState

type SiteState struct {
}

func (SiteState) ElementType

func (SiteState) ElementType() reflect.Type

type Webhook

type Webhook struct {
	pulumi.CustomResourceState

	// The timestamp when the webhook was created (RFC3339 format). This is automatically set by Webflow when the webhook is created and is read-only.
	CreatedOn pulumi.StringPtrOutput `pulumi:"createdOn"`
	// Optional filter for webhook events. The structure depends on the triggerType and allows you to receive only specific events. For example, for collection_item_created, you can filter by collection ID. Refer to Webflow API documentation for filter options for each trigger type.
	Filter pulumi.MapOutput `pulumi:"filter"`
	// The timestamp when the webhook was last triggered (RFC3339 format). This is automatically updated by Webflow when the webhook fires and is read-only. Will be empty if the webhook has never been triggered.
	LastTriggered pulumi.StringPtrOutput `pulumi:"lastTriggered"`
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringOutput `pulumi:"siteId"`
	// The Webflow event that triggers this webhook. Valid values: form_submission, site_publish, page_created, page_metadata_updated, page_deleted, ecomm_new_order, ecomm_order_changed, ecomm_inventory_changed, memberships_user_account_added, memberships_user_account_updated, memberships_user_account_deleted, collection_item_created, collection_item_changed, collection_item_deleted, collection_item_unpublished. Example: 'form_submission' to receive notifications when forms are submitted.
	TriggerType pulumi.StringOutput `pulumi:"triggerType"`
	// The HTTPS endpoint where Webflow will send webhook events (e.g., 'https://example.com/webhooks/webflow', 'https://api.example.com/events'). Must be a valid HTTPS URL. Webflow requires HTTPS for security. Your endpoint should accept POST requests with JSON payloads containing event data.
	Url pulumi.StringOutput `pulumi:"url"`
}

Manages webhooks for a Webflow site. Webhooks allow you to receive real-time notifications when events occur in your Webflow site, such as form submissions, page updates, e-commerce orders, and more. Note: Webhooks cannot be updated in-place; any change to triggerType, url, or filter requires replacement.

func GetWebhook

func GetWebhook(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WebhookState, opts ...pulumi.ResourceOption) (*Webhook, error)

GetWebhook gets an existing Webhook resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWebhook

func NewWebhook(ctx *pulumi.Context,
	name string, args *WebhookArgs, opts ...pulumi.ResourceOption) (*Webhook, error)

NewWebhook registers a new resource with the given unique name, arguments, and options.

func (*Webhook) ElementType

func (*Webhook) ElementType() reflect.Type

func (*Webhook) ToWebhookOutput

func (i *Webhook) ToWebhookOutput() WebhookOutput

func (*Webhook) ToWebhookOutputWithContext

func (i *Webhook) ToWebhookOutputWithContext(ctx context.Context) WebhookOutput

type WebhookArgs

type WebhookArgs struct {
	// Optional filter for webhook events. The structure depends on the triggerType and allows you to receive only specific events. For example, for collection_item_created, you can filter by collection ID. Refer to Webflow API documentation for filter options for each trigger type.
	Filter pulumi.MapInput
	// The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
	SiteId pulumi.StringInput
	// The Webflow event that triggers this webhook. Valid values: form_submission, site_publish, page_created, page_metadata_updated, page_deleted, ecomm_new_order, ecomm_order_changed, ecomm_inventory_changed, memberships_user_account_added, memberships_user_account_updated, memberships_user_account_deleted, collection_item_created, collection_item_changed, collection_item_deleted, collection_item_unpublished. Example: 'form_submission' to receive notifications when forms are submitted.
	TriggerType pulumi.StringInput
	// The HTTPS endpoint where Webflow will send webhook events (e.g., 'https://example.com/webhooks/webflow', 'https://api.example.com/events'). Must be a valid HTTPS URL. Webflow requires HTTPS for security. Your endpoint should accept POST requests with JSON payloads containing event data.
	Url pulumi.StringInput
}

The set of arguments for constructing a Webhook resource.

func (WebhookArgs) ElementType

func (WebhookArgs) ElementType() reflect.Type

type WebhookInput

type WebhookInput interface {
	pulumi.Input

	ToWebhookOutput() WebhookOutput
	ToWebhookOutputWithContext(ctx context.Context) WebhookOutput
}

type WebhookOutput

type WebhookOutput struct{ *pulumi.OutputState }

func (WebhookOutput) CreatedOn

func (o WebhookOutput) CreatedOn() pulumi.StringPtrOutput

The timestamp when the webhook was created (RFC3339 format). This is automatically set by Webflow when the webhook is created and is read-only.

func (WebhookOutput) ElementType

func (WebhookOutput) ElementType() reflect.Type

func (WebhookOutput) Filter

func (o WebhookOutput) Filter() pulumi.MapOutput

Optional filter for webhook events. The structure depends on the triggerType and allows you to receive only specific events. For example, for collection_item_created, you can filter by collection ID. Refer to Webflow API documentation for filter options for each trigger type.

func (WebhookOutput) LastTriggered

func (o WebhookOutput) LastTriggered() pulumi.StringPtrOutput

The timestamp when the webhook was last triggered (RFC3339 format). This is automatically updated by Webflow when the webhook fires and is read-only. Will be empty if the webhook has never been triggered.

func (WebhookOutput) SiteId

func (o WebhookOutput) SiteId() pulumi.StringOutput

The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.

func (WebhookOutput) ToWebhookOutput

func (o WebhookOutput) ToWebhookOutput() WebhookOutput

func (WebhookOutput) ToWebhookOutputWithContext

func (o WebhookOutput) ToWebhookOutputWithContext(ctx context.Context) WebhookOutput

func (WebhookOutput) TriggerType

func (o WebhookOutput) TriggerType() pulumi.StringOutput

The Webflow event that triggers this webhook. Valid values: form_submission, site_publish, page_created, page_metadata_updated, page_deleted, ecomm_new_order, ecomm_order_changed, ecomm_inventory_changed, memberships_user_account_added, memberships_user_account_updated, memberships_user_account_deleted, collection_item_created, collection_item_changed, collection_item_deleted, collection_item_unpublished. Example: 'form_submission' to receive notifications when forms are submitted.

func (WebhookOutput) Url

The HTTPS endpoint where Webflow will send webhook events (e.g., 'https://example.com/webhooks/webflow', 'https://api.example.com/events'). Must be a valid HTTPS URL. Webflow requires HTTPS for security. Your endpoint should accept POST requests with JSON payloads containing event data.

type WebhookState

type WebhookState struct {
}

func (WebhookState) ElementType

func (WebhookState) ElementType() reflect.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址