Documentation ¶
Index ¶
- func New() provider.Provider
- type AddErrorer
- type Alias
- type DNSRecord
- type DeployHook
- type Deployment
- type DeploymentDataSource
- type EdgeConfig
- type EdgeConfigSchema
- type EdgeConfigToken
- type EndpointVerification
- type EnvironmentItem
- type FileData
- type GitComments
- type GitRepository
- type LogDrain
- type LogDrainWithoutSecret
- type PasswordProtection
- type PasswordProtectionWithPassword
- type PrebuiltProjectData
- type Project
- type ProjectDataSource
- type ProjectDirectoryData
- type ProjectDomain
- type ProjectEnvironmentVariable
- type ProjectSettings
- type ProtectionBypass
- type SRV
- type SharedEnvironmentVariable
- type TrustedIpAddress
- type TrustedIps
- type VercelAuthentication
- type Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddErrorer ¶ added in v0.9.0
AddErrorer defines an interface that contains the AddError method. Most commonly used with Diagnostics.
type Alias ¶ added in v0.6.0
type Alias struct { Alias types.String `tfsdk:"alias"` ID types.String `tfsdk:"id"` DeploymentID types.String `tfsdk:"deployment_id"` TeamID types.String `tfsdk:"team_id"` }
Alias represents the terraform state for an alias resource.
type DNSRecord ¶ added in v0.5.0
type DNSRecord struct { ID types.String `tfsdk:"id"` Domain types.String `tfsdk:"domain"` MXPriority types.Int64 `tfsdk:"mx_priority"` Name types.String `tfsdk:"name"` SRV *SRV `tfsdk:"srv"` TTL types.Int64 `tfsdk:"ttl"` TeamID types.String `tfsdk:"team_id"` Type types.String `tfsdk:"type"` Value types.String `tfsdk:"value"` Comment types.String `tfsdk:"comment"` }
DNSRecord reflects the state terraform stores internally for a DNS Record.
type DeployHook ¶ added in v1.9.0
type Deployment ¶
type Deployment struct { Domains types.List `tfsdk:"domains"` Environment types.Map `tfsdk:"environment"` Files types.Map `tfsdk:"files"` ID types.String `tfsdk:"id"` Production types.Bool `tfsdk:"production"` ProjectID types.String `tfsdk:"project_id"` PathPrefix types.String `tfsdk:"path_prefix"` ProjectSettings *ProjectSettings `tfsdk:"project_settings"` TeamID types.String `tfsdk:"team_id"` URL types.String `tfsdk:"url"` DeleteOnDestroy types.Bool `tfsdk:"delete_on_destroy"` Ref types.String `tfsdk:"ref"` }
Deployment represents the terraform state for a deployment resource.
type DeploymentDataSource ¶ added in v1.8.0
type EdgeConfig ¶ added in v1.5.0
type EdgeConfigSchema ¶ added in v1.5.0
type EdgeConfigSchema struct { ID types.String `tfsdk:"id"` Definition types.String `tfsdk:"definition"` TeamID types.String `tfsdk:"team_id"` }
func (EdgeConfigSchema) JSONDefinition ¶ added in v1.5.0
func (e EdgeConfigSchema) JSONDefinition() (i any, err error)
type EdgeConfigToken ¶ added in v1.5.0
type EndpointVerification ¶ added in v1.7.0
type EndpointVerification struct { ID types.String `tfsdk:"id"` TeamID types.String `tfsdk:"team_id"` VerificationCode types.String `tfsdk:"verification_code"` }
FileData represents the information terraform knows about a File data source
type EnvironmentItem ¶
type EnvironmentItem struct { Target []types.String `tfsdk:"target"` GitBranch types.String `tfsdk:"git_branch"` Key types.String `tfsdk:"key"` Value types.String `tfsdk:"value"` ID types.String `tfsdk:"id"` Sensitive types.Bool `tfsdk:"sensitive"` }
EnvironmentItem reflects the state terraform stores internally for a project's environment variable.
type FileData ¶
type FileData struct { Path types.String `tfsdk:"path"` ID types.String `tfsdk:"id"` File map[string]string `tfsdk:"file"` }
FileData represents the information terraform knows about a File data source
type GitComments ¶ added in v1.9.0
type GitRepository ¶
type GitRepository struct { Type types.String `tfsdk:"type"` Repo types.String `tfsdk:"repo"` ProductionBranch types.String `tfsdk:"production_branch"` DeployHooks types.Set `tfsdk:"deploy_hooks"` }
GitRepository reflects the state terraform stores internally for a nested git_repository block on a project resource.
type LogDrain ¶ added in v1.7.0
type LogDrain struct { ID types.String `tfsdk:"id"` TeamID types.String `tfsdk:"team_id"` DeliveryFormat types.String `tfsdk:"delivery_format"` Environments types.Set `tfsdk:"environments"` Headers types.Map `tfsdk:"headers"` ProjectIDs types.Set `tfsdk:"project_ids"` SamplingRate types.Float64 `tfsdk:"sampling_rate"` Secret types.String `tfsdk:"secret"` Sources types.Set `tfsdk:"sources"` Endpoint types.String `tfsdk:"endpoint"` }
type LogDrainWithoutSecret ¶ added in v1.7.0
type LogDrainWithoutSecret struct { ID types.String `tfsdk:"id"` TeamID types.String `tfsdk:"team_id"` DeliveryFormat types.String `tfsdk:"delivery_format"` Environments types.Set `tfsdk:"environments"` Headers types.Map `tfsdk:"headers"` ProjectIDs types.Set `tfsdk:"project_ids"` SamplingRate types.Float64 `tfsdk:"sampling_rate"` Sources types.Set `tfsdk:"sources"` Endpoint types.String `tfsdk:"endpoint"` }
type PasswordProtection ¶ added in v0.13.0
type PasswordProtectionWithPassword ¶ added in v1.0.0
type PrebuiltProjectData ¶ added in v0.9.0
type PrebuiltProjectData struct { Path types.String `tfsdk:"path"` ID types.String `tfsdk:"id"` Output map[string]string `tfsdk:"output"` }
PrebuiltProjectData represents the information terraform knows about a project directory data source
type Project ¶
type Project struct { BuildCommand types.String `tfsdk:"build_command"` DevCommand types.String `tfsdk:"dev_command"` Environment types.Set `tfsdk:"environment"` Framework types.String `tfsdk:"framework"` GitRepository *GitRepository `tfsdk:"git_repository"` ID types.String `tfsdk:"id"` IgnoreCommand types.String `tfsdk:"ignore_command"` InstallCommand types.String `tfsdk:"install_command"` Name types.String `tfsdk:"name"` OutputDirectory types.String `tfsdk:"output_directory"` PublicSource types.Bool `tfsdk:"public_source"` RootDirectory types.String `tfsdk:"root_directory"` ServerlessFunctionRegion types.String `tfsdk:"serverless_function_region"` TeamID types.String `tfsdk:"team_id"` VercelAuthentication *VercelAuthentication `tfsdk:"vercel_authentication"` PasswordProtection *PasswordProtectionWithPassword `tfsdk:"password_protection"` TrustedIps *TrustedIps `tfsdk:"trusted_ips"` ProtectionBypassForAutomation types.Bool `tfsdk:"protection_bypass_for_automation"` ProtectionBypassForAutomationSecret types.String `tfsdk:"protection_bypass_for_automation_secret"` AutoExposeSystemEnvVars types.Bool `tfsdk:"automatically_expose_system_environment_variables"` GitComments types.Object `tfsdk:"git_comments"` PreviewComments types.Bool `tfsdk:"preview_comments"` AutoAssignCustomDomains types.Bool `tfsdk:"auto_assign_custom_domains"` GitLFS types.Bool `tfsdk:"git_lfs"` FunctionFailover types.Bool `tfsdk:"function_failover"` CustomerSuccessCodeVisibility types.Bool `tfsdk:"customer_success_code_visibility"` GitForkProtection types.Bool `tfsdk:"git_fork_protection"` PrioritiseProductionBuilds types.Bool `tfsdk:"prioritise_production_builds"` DirectoryListing types.Bool `tfsdk:"directory_listing"` SkewProtection types.String `tfsdk:"skew_protection"` }
Project reflects the state terraform stores internally for a project.
func (Project) RequiresUpdateAfterCreation ¶ added in v1.9.0
type ProjectDataSource ¶ added in v0.13.0
type ProjectDataSource struct { BuildCommand types.String `tfsdk:"build_command"` DevCommand types.String `tfsdk:"dev_command"` Environment types.Set `tfsdk:"environment"` Framework types.String `tfsdk:"framework"` GitRepository *GitRepository `tfsdk:"git_repository"` ID types.String `tfsdk:"id"` IgnoreCommand types.String `tfsdk:"ignore_command"` InstallCommand types.String `tfsdk:"install_command"` Name types.String `tfsdk:"name"` OutputDirectory types.String `tfsdk:"output_directory"` PublicSource types.Bool `tfsdk:"public_source"` RootDirectory types.String `tfsdk:"root_directory"` ServerlessFunctionRegion types.String `tfsdk:"serverless_function_region"` TeamID types.String `tfsdk:"team_id"` VercelAuthentication *VercelAuthentication `tfsdk:"vercel_authentication"` PasswordProtection *PasswordProtection `tfsdk:"password_protection"` TrustedIps *TrustedIps `tfsdk:"trusted_ips"` ProtectionBypassForAutomation types.Bool `tfsdk:"protection_bypass_for_automation"` AutoExposeSystemEnvVars types.Bool `tfsdk:"automatically_expose_system_environment_variables"` GitComments types.Object `tfsdk:"git_comments"` PreviewComments types.Bool `tfsdk:"preview_comments"` AutoAssignCustomDomains types.Bool `tfsdk:"auto_assign_custom_domains"` GitLFS types.Bool `tfsdk:"git_lfs"` FunctionFailover types.Bool `tfsdk:"function_failover"` CustomerSuccessCodeVisibility types.Bool `tfsdk:"customer_success_code_visibility"` GitForkProtection types.Bool `tfsdk:"git_fork_protection"` PrioritiseProductionBuilds types.Bool `tfsdk:"prioritise_production_builds"` DirectoryListing types.Bool `tfsdk:"directory_listing"` SkewProtection types.String `tfsdk:"skew_protection"` }
Project reflects the state terraform stores internally for a project.
type ProjectDirectoryData ¶
type ProjectDirectoryData struct { Path types.String `tfsdk:"path"` ID types.String `tfsdk:"id"` Files map[string]string `tfsdk:"files"` }
ProjectDirectoryData represents the information terraform knows about a project directory data source
type ProjectDomain ¶
type ProjectDomain struct { Domain types.String `tfsdk:"domain"` GitBranch types.String `tfsdk:"git_branch"` ID types.String `tfsdk:"id"` ProjectID types.String `tfsdk:"project_id"` Redirect types.String `tfsdk:"redirect"` RedirectStatusCode types.Int64 `tfsdk:"redirect_status_code"` TeamID types.String `tfsdk:"team_id"` }
ProjectDomain reflects the state terraform stores internally for a project domain.
type ProjectEnvironmentVariable ¶ added in v0.8.0
type ProjectEnvironmentVariable struct { Target []types.String `tfsdk:"target"` GitBranch types.String `tfsdk:"git_branch"` Key types.String `tfsdk:"key"` Value types.String `tfsdk:"value"` TeamID types.String `tfsdk:"team_id"` ProjectID types.String `tfsdk:"project_id"` ID types.String `tfsdk:"id"` Sensitive types.Bool `tfsdk:"sensitive"` }
ProjectEnvironmentVariable reflects the state terraform stores internally for a project environment variable.
type ProjectSettings ¶
type ProjectSettings struct { BuildCommand types.String `tfsdk:"build_command"` Framework types.String `tfsdk:"framework"` InstallCommand types.String `tfsdk:"install_command"` OutputDirectory types.String `tfsdk:"output_directory"` RootDirectory types.String `tfsdk:"root_directory"` }
ProjectSettings represents the terraform state for a nested deployment -> project_settings block. These are overrides specific to a single deployment.
type ProtectionBypass ¶ added in v1.0.0
type SRV ¶ added in v0.5.0
type SRV struct { Port types.Int64 `tfsdk:"port"` Priority types.Int64 `tfsdk:"priority"` Target types.String `tfsdk:"target"` Weight types.Int64 `tfsdk:"weight"` }
SRV reflect the state terraform stores internally for a nested SRV Record.
type SharedEnvironmentVariable ¶ added in v0.12.0
type SharedEnvironmentVariable struct {}
SharedEnvironmentVariable reflects the state terraform stores internally for a project environment variable.
type TrustedIpAddress ¶ added in v1.0.0
type TrustedIps ¶ added in v1.0.0
type TrustedIps struct { DeploymentType types.String `tfsdk:"deployment_type"` Addresses []TrustedIpAddress `tfsdk:"addresses"` ProtectionMode types.String `tfsdk:"protection_mode"` }
type VercelAuthentication ¶ added in v0.13.0
Source Files ¶
- contains.go
- data_source_alias.go
- data_source_deployment.go
- data_source_edge_config.go
- data_source_edge_config_schema.go
- data_source_edge_config_token.go
- data_source_endpoint_verification.go
- data_source_file.go
- data_source_log_drain.go
- data_source_prebuilt_project.go
- data_source_project.go
- data_source_project_directory.go
- data_source_shared_environment_variable.go
- deployment_protection.go
- provider.go
- resource_alias.go
- resource_deployment.go
- resource_dns_record.go
- resource_edge_config.go
- resource_edge_config_schema.go
- resource_edge_config_token.go
- resource_log_drain.go
- resource_project.go
- resource_project_domain.go
- resource_project_environment_variable.go
- resource_shared_environment_variable.go
- resource_webhook.go
- split.go
- to_team_id.go
- validator_float64_greater_than.go
- validator_float64_less_than.go
- validator_framework.go
- validator_int64_greater_than.go
- validator_int64_less_than.go
- validator_int64_one_of.go
- validator_json_string.go
- validator_map_items_min_count.go
- validator_map_max_count.go
- validator_serverless_function_region.go
- validator_string_length_between.go
- validator_string_length_greater_than.go
- validator_string_one_of.go
- validator_string_regex.go
- validator_string_set_items_in.go
- validator_string_set_min_count.go