azurerm_function_app_slot

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// AppServicePlanId: string, required
	AppServicePlanId terra.StringValue `hcl:"app_service_plan_id,attr" validate:"required"`
	// AppSettings: map of string, optional
	AppSettings terra.MapValue[terra.StringValue] `hcl:"app_settings,attr"`
	// DailyMemoryTimeQuota: number, optional
	DailyMemoryTimeQuota terra.NumberValue `hcl:"daily_memory_time_quota,attr"`
	// EnableBuiltinLogging: bool, optional
	EnableBuiltinLogging terra.BoolValue `hcl:"enable_builtin_logging,attr"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// FunctionAppName: string, required
	FunctionAppName terra.StringValue `hcl:"function_app_name,attr" validate:"required"`
	// HttpsOnly: bool, optional
	HttpsOnly terra.BoolValue `hcl:"https_only,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// OsType: string, optional
	OsType terra.StringValue `hcl:"os_type,attr"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// StorageAccountAccessKey: string, required
	StorageAccountAccessKey terra.StringValue `hcl:"storage_account_access_key,attr" validate:"required"`
	// StorageAccountName: string, required
	StorageAccountName terra.StringValue `hcl:"storage_account_name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
	// AuthSettings: optional
	AuthSettings *AuthSettings `hcl:"auth_settings,block"`
	// ConnectionString: min=0
	ConnectionString []ConnectionString `hcl:"connection_string,block" validate:"min=0"`
	// Identity: optional
	Identity *Identity `hcl:"identity,block"`
	// SiteConfig: optional
	SiteConfig *SiteConfig `hcl:"site_config,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_function_app_slot.

type AuthSettings

type AuthSettings struct {
	// AdditionalLoginParams: map of string, optional
	AdditionalLoginParams terra.MapValue[terra.StringValue] `hcl:"additional_login_params,attr"`
	// AllowedExternalRedirectUrls: list of string, optional
	AllowedExternalRedirectUrls terra.ListValue[terra.StringValue] `hcl:"allowed_external_redirect_urls,attr"`
	// DefaultProvider: string, optional
	DefaultProvider terra.StringValue `hcl:"default_provider,attr"`
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
	// Issuer: string, optional
	Issuer terra.StringValue `hcl:"issuer,attr"`
	// RuntimeVersion: string, optional
	RuntimeVersion terra.StringValue `hcl:"runtime_version,attr"`
	// TokenRefreshExtensionHours: number, optional
	TokenRefreshExtensionHours terra.NumberValue `hcl:"token_refresh_extension_hours,attr"`
	// TokenStoreEnabled: bool, optional
	TokenStoreEnabled terra.BoolValue `hcl:"token_store_enabled,attr"`
	// UnauthenticatedClientAction: string, optional
	UnauthenticatedClientAction terra.StringValue `hcl:"unauthenticated_client_action,attr"`
	// AuthSettingsActiveDirectory: optional
	ActiveDirectory *AuthSettingsActiveDirectory `hcl:"active_directory,block"`
	// AuthSettingsFacebook: optional
	Facebook *AuthSettingsFacebook `hcl:"facebook,block"`
	// AuthSettingsGoogle: optional
	Google *AuthSettingsGoogle `hcl:"google,block"`
	// AuthSettingsMicrosoft: optional
	Microsoft *AuthSettingsMicrosoft `hcl:"microsoft,block"`
	// AuthSettingsTwitter: optional
	Twitter *AuthSettingsTwitter `hcl:"twitter,block"`
}

type AuthSettingsActiveDirectory

type AuthSettingsActiveDirectory struct {
	// AllowedAudiences: list of string, optional
	AllowedAudiences terra.ListValue[terra.StringValue] `hcl:"allowed_audiences,attr"`
	// ClientId: string, required
	ClientId terra.StringValue `hcl:"client_id,attr" validate:"required"`
	// ClientSecret: string, optional
	ClientSecret terra.StringValue `hcl:"client_secret,attr"`
}

type AuthSettingsActiveDirectoryAttributes

type AuthSettingsActiveDirectoryAttributes struct {
	// contains filtered or unexported fields
}

func (AuthSettingsActiveDirectoryAttributes) AllowedAudiences

func (AuthSettingsActiveDirectoryAttributes) ClientId

func (AuthSettingsActiveDirectoryAttributes) ClientSecret

func (AuthSettingsActiveDirectoryAttributes) InternalRef

func (AuthSettingsActiveDirectoryAttributes) InternalTokens

func (AuthSettingsActiveDirectoryAttributes) InternalWithRef

type AuthSettingsActiveDirectoryState

type AuthSettingsActiveDirectoryState struct {
	AllowedAudiences []string `json:"allowed_audiences"`
	ClientId         string   `json:"client_id"`
	ClientSecret     string   `json:"client_secret"`
}

type AuthSettingsAttributes

type AuthSettingsAttributes struct {
	// contains filtered or unexported fields
}

func (AuthSettingsAttributes) ActiveDirectory

func (AuthSettingsAttributes) AdditionalLoginParams

func (as AuthSettingsAttributes) AdditionalLoginParams() terra.MapValue[terra.StringValue]

func (AuthSettingsAttributes) AllowedExternalRedirectUrls

func (as AuthSettingsAttributes) AllowedExternalRedirectUrls() terra.ListValue[terra.StringValue]

func (AuthSettingsAttributes) DefaultProvider

func (as AuthSettingsAttributes) DefaultProvider() terra.StringValue

func (AuthSettingsAttributes) Enabled

func (as AuthSettingsAttributes) Enabled() terra.BoolValue

func (AuthSettingsAttributes) Facebook

func (AuthSettingsAttributes) Google

func (AuthSettingsAttributes) InternalRef

func (as AuthSettingsAttributes) InternalRef() (terra.Reference, error)

func (AuthSettingsAttributes) InternalTokens

func (as AuthSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AuthSettingsAttributes) InternalWithRef

func (AuthSettingsAttributes) Issuer

func (AuthSettingsAttributes) Microsoft

func (AuthSettingsAttributes) RuntimeVersion

func (as AuthSettingsAttributes) RuntimeVersion() terra.StringValue

func (AuthSettingsAttributes) TokenRefreshExtensionHours

func (as AuthSettingsAttributes) TokenRefreshExtensionHours() terra.NumberValue

func (AuthSettingsAttributes) TokenStoreEnabled

func (as AuthSettingsAttributes) TokenStoreEnabled() terra.BoolValue

func (AuthSettingsAttributes) Twitter

func (AuthSettingsAttributes) UnauthenticatedClientAction

func (as AuthSettingsAttributes) UnauthenticatedClientAction() terra.StringValue

type AuthSettingsFacebook

type AuthSettingsFacebook struct {
	// AppId: string, required
	AppId terra.StringValue `hcl:"app_id,attr" validate:"required"`
	// AppSecret: string, required
	AppSecret terra.StringValue `hcl:"app_secret,attr" validate:"required"`
	// OauthScopes: list of string, optional
	OauthScopes terra.ListValue[terra.StringValue] `hcl:"oauth_scopes,attr"`
}

type AuthSettingsFacebookAttributes

type AuthSettingsFacebookAttributes struct {
	// contains filtered or unexported fields
}

func (AuthSettingsFacebookAttributes) AppId

func (AuthSettingsFacebookAttributes) AppSecret

func (AuthSettingsFacebookAttributes) InternalRef

func (AuthSettingsFacebookAttributes) InternalTokens

func (f AuthSettingsFacebookAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AuthSettingsFacebookAttributes) InternalWithRef

func (AuthSettingsFacebookAttributes) OauthScopes

type AuthSettingsFacebookState

type AuthSettingsFacebookState struct {
	AppId       string   `json:"app_id"`
	AppSecret   string   `json:"app_secret"`
	OauthScopes []string `json:"oauth_scopes"`
}

type AuthSettingsGoogle

type AuthSettingsGoogle struct {
	// ClientId: string, required
	ClientId terra.StringValue `hcl:"client_id,attr" validate:"required"`
	// ClientSecret: string, required
	ClientSecret terra.StringValue `hcl:"client_secret,attr" validate:"required"`
	// OauthScopes: list of string, optional
	OauthScopes terra.ListValue[terra.StringValue] `hcl:"oauth_scopes,attr"`
}

type AuthSettingsGoogleAttributes

type AuthSettingsGoogleAttributes struct {
	// contains filtered or unexported fields
}

func (AuthSettingsGoogleAttributes) ClientId

func (AuthSettingsGoogleAttributes) ClientSecret

func (AuthSettingsGoogleAttributes) InternalRef

func (AuthSettingsGoogleAttributes) InternalTokens

func (g AuthSettingsGoogleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AuthSettingsGoogleAttributes) InternalWithRef

func (AuthSettingsGoogleAttributes) OauthScopes

type AuthSettingsGoogleState

type AuthSettingsGoogleState struct {
	ClientId     string   `json:"client_id"`
	ClientSecret string   `json:"client_secret"`
	OauthScopes  []string `json:"oauth_scopes"`
}

type AuthSettingsMicrosoft

type AuthSettingsMicrosoft struct {
	// ClientId: string, required
	ClientId terra.StringValue `hcl:"client_id,attr" validate:"required"`
	// ClientSecret: string, required
	ClientSecret terra.StringValue `hcl:"client_secret,attr" validate:"required"`
	// OauthScopes: list of string, optional
	OauthScopes terra.ListValue[terra.StringValue] `hcl:"oauth_scopes,attr"`
}

type AuthSettingsMicrosoftAttributes

type AuthSettingsMicrosoftAttributes struct {
	// contains filtered or unexported fields
}

func (AuthSettingsMicrosoftAttributes) ClientId

func (AuthSettingsMicrosoftAttributes) ClientSecret

func (AuthSettingsMicrosoftAttributes) InternalRef

func (AuthSettingsMicrosoftAttributes) InternalTokens

func (m AuthSettingsMicrosoftAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AuthSettingsMicrosoftAttributes) InternalWithRef

func (AuthSettingsMicrosoftAttributes) OauthScopes

type AuthSettingsMicrosoftState

type AuthSettingsMicrosoftState struct {
	ClientId     string   `json:"client_id"`
	ClientSecret string   `json:"client_secret"`
	OauthScopes  []string `json:"oauth_scopes"`
}

type AuthSettingsState

type AuthSettingsState struct {
	AdditionalLoginParams       map[string]string                  `json:"additional_login_params"`
	AllowedExternalRedirectUrls []string                           `json:"allowed_external_redirect_urls"`
	DefaultProvider             string                             `json:"default_provider"`
	Enabled                     bool                               `json:"enabled"`
	Issuer                      string                             `json:"issuer"`
	RuntimeVersion              string                             `json:"runtime_version"`
	TokenRefreshExtensionHours  float64                            `json:"token_refresh_extension_hours"`
	TokenStoreEnabled           bool                               `json:"token_store_enabled"`
	UnauthenticatedClientAction string                             `json:"unauthenticated_client_action"`
	ActiveDirectory             []AuthSettingsActiveDirectoryState `json:"active_directory"`
	Facebook                    []AuthSettingsFacebookState        `json:"facebook"`
	Google                      []AuthSettingsGoogleState          `json:"google"`
	Microsoft                   []AuthSettingsMicrosoftState       `json:"microsoft"`
	Twitter                     []AuthSettingsTwitterState         `json:"twitter"`
}

type AuthSettingsTwitter

type AuthSettingsTwitter struct {
	// ConsumerKey: string, required
	ConsumerKey terra.StringValue `hcl:"consumer_key,attr" validate:"required"`
	// ConsumerSecret: string, required
	ConsumerSecret terra.StringValue `hcl:"consumer_secret,attr" validate:"required"`
}

type AuthSettingsTwitterAttributes

type AuthSettingsTwitterAttributes struct {
	// contains filtered or unexported fields
}

func (AuthSettingsTwitterAttributes) ConsumerKey

func (AuthSettingsTwitterAttributes) ConsumerSecret

func (t AuthSettingsTwitterAttributes) ConsumerSecret() terra.StringValue

func (AuthSettingsTwitterAttributes) InternalRef

func (AuthSettingsTwitterAttributes) InternalTokens

func (t AuthSettingsTwitterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AuthSettingsTwitterAttributes) InternalWithRef

type AuthSettingsTwitterState

type AuthSettingsTwitterState struct {
	ConsumerKey    string `json:"consumer_key"`
	ConsumerSecret string `json:"consumer_secret"`
}

type ConnectionString

type ConnectionString struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type ConnectionStringAttributes

type ConnectionStringAttributes struct {
	// contains filtered or unexported fields
}

func (ConnectionStringAttributes) InternalRef

func (cs ConnectionStringAttributes) InternalRef() (terra.Reference, error)

func (ConnectionStringAttributes) InternalTokens

func (cs ConnectionStringAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConnectionStringAttributes) InternalWithRef

func (ConnectionStringAttributes) Name

func (ConnectionStringAttributes) Type

func (ConnectionStringAttributes) Value

type ConnectionStringState

type ConnectionStringState struct {
	Name  string `json:"name"`
	Type  string `json:"type"`
	Value string `json:"value"`
}

type Identity

type Identity struct {
	// IdentityIds: set of string, optional
	IdentityIds terra.SetValue[terra.StringValue] `hcl:"identity_ids,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type IdentityAttributes

type IdentityAttributes struct {
	// contains filtered or unexported fields
}

func (IdentityAttributes) IdentityIds

func (IdentityAttributes) InternalRef

func (i IdentityAttributes) InternalRef() (terra.Reference, error)

func (IdentityAttributes) InternalTokens

func (i IdentityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (IdentityAttributes) InternalWithRef

func (i IdentityAttributes) InternalWithRef(ref terra.Reference) IdentityAttributes

func (IdentityAttributes) PrincipalId

func (i IdentityAttributes) PrincipalId() terra.StringValue

func (IdentityAttributes) TenantId

func (i IdentityAttributes) TenantId() terra.StringValue

func (IdentityAttributes) Type

type IdentityState

type IdentityState struct {
	IdentityIds []string `json:"identity_ids"`
	PrincipalId string   `json:"principal_id"`
	TenantId    string   `json:"tenant_id"`
	Type        string   `json:"type"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource azurerm_function_app_slot.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (afas *Resource) Attributes() azurermFunctionAppSlotAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (afas *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (afas *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (afas *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (afas *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (afas *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (afas *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (afas *Resource) State() (*azurermFunctionAppSlotState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (afas *Resource) StateMust() *azurermFunctionAppSlotState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (afas *Resource) Type() string

Type returns the Terraform object type for Resource.

type SiteConfig

type SiteConfig struct {
	// AlwaysOn: bool, optional
	AlwaysOn terra.BoolValue `hcl:"always_on,attr"`
	// AppScaleLimit: number, optional
	AppScaleLimit terra.NumberValue `hcl:"app_scale_limit,attr"`
	// AutoSwapSlotName: string, optional
	AutoSwapSlotName terra.StringValue `hcl:"auto_swap_slot_name,attr"`
	// DotnetFrameworkVersion: string, optional
	DotnetFrameworkVersion terra.StringValue `hcl:"dotnet_framework_version,attr"`
	// ElasticInstanceMinimum: number, optional
	ElasticInstanceMinimum terra.NumberValue `hcl:"elastic_instance_minimum,attr"`
	// FtpsState: string, optional
	FtpsState terra.StringValue `hcl:"ftps_state,attr"`
	// HealthCheckPath: string, optional
	HealthCheckPath terra.StringValue `hcl:"health_check_path,attr"`
	// Http2Enabled: bool, optional
	Http2Enabled terra.BoolValue `hcl:"http2_enabled,attr"`
	// JavaVersion: string, optional
	JavaVersion terra.StringValue `hcl:"java_version,attr"`
	// LinuxFxVersion: string, optional
	LinuxFxVersion terra.StringValue `hcl:"linux_fx_version,attr"`
	// MinTlsVersion: string, optional
	MinTlsVersion terra.StringValue `hcl:"min_tls_version,attr"`
	// PreWarmedInstanceCount: number, optional
	PreWarmedInstanceCount terra.NumberValue `hcl:"pre_warmed_instance_count,attr"`
	// RuntimeScaleMonitoringEnabled: bool, optional
	RuntimeScaleMonitoringEnabled terra.BoolValue `hcl:"runtime_scale_monitoring_enabled,attr"`
	// ScmType: string, optional
	ScmType terra.StringValue `hcl:"scm_type,attr"`
	// ScmUseMainIpRestriction: bool, optional
	ScmUseMainIpRestriction terra.BoolValue `hcl:"scm_use_main_ip_restriction,attr"`
	// Use32BitWorkerProcess: bool, optional
	Use32BitWorkerProcess terra.BoolValue `hcl:"use_32_bit_worker_process,attr"`
	// VnetRouteAllEnabled: bool, optional
	VnetRouteAllEnabled terra.BoolValue `hcl:"vnet_route_all_enabled,attr"`
	// WebsocketsEnabled: bool, optional
	WebsocketsEnabled terra.BoolValue `hcl:"websockets_enabled,attr"`
	// SiteConfigIpRestriction: min=0
	IpRestriction []SiteConfigIpRestriction `hcl:"ip_restriction,block" validate:"min=0"`
	// SiteConfigScmIpRestriction: min=0
	ScmIpRestriction []SiteConfigScmIpRestriction `hcl:"scm_ip_restriction,block" validate:"min=0"`
	// SiteConfigCors: optional
	Cors *SiteConfigCors `hcl:"cors,block"`
}

type SiteConfigAttributes

type SiteConfigAttributes struct {
	// contains filtered or unexported fields
}

func (SiteConfigAttributes) AlwaysOn

func (sc SiteConfigAttributes) AlwaysOn() terra.BoolValue

func (SiteConfigAttributes) AppScaleLimit

func (sc SiteConfigAttributes) AppScaleLimit() terra.NumberValue

func (SiteConfigAttributes) AutoSwapSlotName

func (sc SiteConfigAttributes) AutoSwapSlotName() terra.StringValue

func (SiteConfigAttributes) Cors

func (SiteConfigAttributes) DotnetFrameworkVersion

func (sc SiteConfigAttributes) DotnetFrameworkVersion() terra.StringValue

func (SiteConfigAttributes) ElasticInstanceMinimum

func (sc SiteConfigAttributes) ElasticInstanceMinimum() terra.NumberValue

func (SiteConfigAttributes) FtpsState

func (sc SiteConfigAttributes) FtpsState() terra.StringValue

func (SiteConfigAttributes) HealthCheckPath

func (sc SiteConfigAttributes) HealthCheckPath() terra.StringValue

func (SiteConfigAttributes) Http2Enabled

func (sc SiteConfigAttributes) Http2Enabled() terra.BoolValue

func (SiteConfigAttributes) InternalRef

func (sc SiteConfigAttributes) InternalRef() (terra.Reference, error)

func (SiteConfigAttributes) InternalTokens

func (sc SiteConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SiteConfigAttributes) InternalWithRef

func (sc SiteConfigAttributes) InternalWithRef(ref terra.Reference) SiteConfigAttributes

func (SiteConfigAttributes) IpRestriction

func (SiteConfigAttributes) JavaVersion

func (sc SiteConfigAttributes) JavaVersion() terra.StringValue

func (SiteConfigAttributes) LinuxFxVersion

func (sc SiteConfigAttributes) LinuxFxVersion() terra.StringValue

func (SiteConfigAttributes) MinTlsVersion

func (sc SiteConfigAttributes) MinTlsVersion() terra.StringValue

func (SiteConfigAttributes) PreWarmedInstanceCount

func (sc SiteConfigAttributes) PreWarmedInstanceCount() terra.NumberValue

func (SiteConfigAttributes) RuntimeScaleMonitoringEnabled

func (sc SiteConfigAttributes) RuntimeScaleMonitoringEnabled() terra.BoolValue

func (SiteConfigAttributes) ScmIpRestriction

func (SiteConfigAttributes) ScmType

func (sc SiteConfigAttributes) ScmType() terra.StringValue

func (SiteConfigAttributes) ScmUseMainIpRestriction

func (sc SiteConfigAttributes) ScmUseMainIpRestriction() terra.BoolValue

func (SiteConfigAttributes) Use32BitWorkerProcess

func (sc SiteConfigAttributes) Use32BitWorkerProcess() terra.BoolValue

func (SiteConfigAttributes) VnetRouteAllEnabled

func (sc SiteConfigAttributes) VnetRouteAllEnabled() terra.BoolValue

func (SiteConfigAttributes) WebsocketsEnabled

func (sc SiteConfigAttributes) WebsocketsEnabled() terra.BoolValue

type SiteConfigCors

type SiteConfigCors struct {
	// AllowedOrigins: set of string, required
	AllowedOrigins terra.SetValue[terra.StringValue] `hcl:"allowed_origins,attr" validate:"required"`
	// SupportCredentials: bool, optional
	SupportCredentials terra.BoolValue `hcl:"support_credentials,attr"`
}

type SiteConfigCorsAttributes

type SiteConfigCorsAttributes struct {
	// contains filtered or unexported fields
}

func (SiteConfigCorsAttributes) AllowedOrigins

func (SiteConfigCorsAttributes) InternalRef

func (c SiteConfigCorsAttributes) InternalRef() (terra.Reference, error)

func (SiteConfigCorsAttributes) InternalTokens

func (c SiteConfigCorsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SiteConfigCorsAttributes) InternalWithRef

func (SiteConfigCorsAttributes) SupportCredentials

func (c SiteConfigCorsAttributes) SupportCredentials() terra.BoolValue

type SiteConfigCorsState

type SiteConfigCorsState struct {
	AllowedOrigins     []string `json:"allowed_origins"`
	SupportCredentials bool     `json:"support_credentials"`
}

type SiteConfigIpRestriction

type SiteConfigIpRestriction struct {
	// Action: string, optional
	Action terra.StringValue `hcl:"action,attr"`
	// IpAddress: string, optional
	IpAddress terra.StringValue `hcl:"ip_address,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Priority: number, optional
	Priority terra.NumberValue `hcl:"priority,attr"`
	// ServiceTag: string, optional
	ServiceTag terra.StringValue `hcl:"service_tag,attr"`
	// VirtualNetworkSubnetId: string, optional
	VirtualNetworkSubnetId terra.StringValue `hcl:"virtual_network_subnet_id,attr"`
	// SiteConfigIpRestrictionHeaders: min=0
	Headers []SiteConfigIpRestrictionHeaders `hcl:"headers,block" validate:"min=0"`
}

type SiteConfigIpRestrictionAttributes

type SiteConfigIpRestrictionAttributes struct {
	// contains filtered or unexported fields
}

func (SiteConfigIpRestrictionAttributes) Action

func (SiteConfigIpRestrictionAttributes) Headers

func (SiteConfigIpRestrictionAttributes) InternalRef

func (SiteConfigIpRestrictionAttributes) InternalTokens

func (ir SiteConfigIpRestrictionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SiteConfigIpRestrictionAttributes) InternalWithRef

func (SiteConfigIpRestrictionAttributes) IpAddress

func (SiteConfigIpRestrictionAttributes) Name

func (SiteConfigIpRestrictionAttributes) Priority

func (SiteConfigIpRestrictionAttributes) ServiceTag

func (SiteConfigIpRestrictionAttributes) VirtualNetworkSubnetId

func (ir SiteConfigIpRestrictionAttributes) VirtualNetworkSubnetId() terra.StringValue

type SiteConfigIpRestrictionHeaders

type SiteConfigIpRestrictionHeaders struct {
	// XAzureFdid: set of string, optional
	XAzureFdid terra.SetValue[terra.StringValue] `hcl:"x_azure_fdid,attr"`
	// XFdHealthProbe: set of string, optional
	XFdHealthProbe terra.SetValue[terra.StringValue] `hcl:"x_fd_health_probe,attr"`
	// XForwardedFor: set of string, optional
	XForwardedFor terra.SetValue[terra.StringValue] `hcl:"x_forwarded_for,attr"`
	// XForwardedHost: set of string, optional
	XForwardedHost terra.SetValue[terra.StringValue] `hcl:"x_forwarded_host,attr"`
}

type SiteConfigIpRestrictionHeadersAttributes

type SiteConfigIpRestrictionHeadersAttributes struct {
	// contains filtered or unexported fields
}

func (SiteConfigIpRestrictionHeadersAttributes) InternalRef

func (SiteConfigIpRestrictionHeadersAttributes) InternalTokens

func (SiteConfigIpRestrictionHeadersAttributes) InternalWithRef

func (SiteConfigIpRestrictionHeadersAttributes) XAzureFdid

func (SiteConfigIpRestrictionHeadersAttributes) XFdHealthProbe

func (SiteConfigIpRestrictionHeadersAttributes) XForwardedFor

func (SiteConfigIpRestrictionHeadersAttributes) XForwardedHost

type SiteConfigIpRestrictionHeadersState

type SiteConfigIpRestrictionHeadersState struct {
	XAzureFdid     []string `json:"x_azure_fdid"`
	XFdHealthProbe []string `json:"x_fd_health_probe"`
	XForwardedFor  []string `json:"x_forwarded_for"`
	XForwardedHost []string `json:"x_forwarded_host"`
}

type SiteConfigIpRestrictionState

type SiteConfigIpRestrictionState struct {
	Action                 string                                `json:"action"`
	IpAddress              string                                `json:"ip_address"`
	Name                   string                                `json:"name"`
	Priority               float64                               `json:"priority"`
	ServiceTag             string                                `json:"service_tag"`
	VirtualNetworkSubnetId string                                `json:"virtual_network_subnet_id"`
	Headers                []SiteConfigIpRestrictionHeadersState `json:"headers"`
}

type SiteConfigScmIpRestriction

type SiteConfigScmIpRestriction struct {
	// Action: string, optional
	Action terra.StringValue `hcl:"action,attr"`
	// IpAddress: string, optional
	IpAddress terra.StringValue `hcl:"ip_address,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Priority: number, optional
	Priority terra.NumberValue `hcl:"priority,attr"`
	// ServiceTag: string, optional
	ServiceTag terra.StringValue `hcl:"service_tag,attr"`
	// VirtualNetworkSubnetId: string, optional
	VirtualNetworkSubnetId terra.StringValue `hcl:"virtual_network_subnet_id,attr"`
	// SiteConfigScmIpRestrictionHeaders: min=0
	Headers []SiteConfigScmIpRestrictionHeaders `hcl:"headers,block" validate:"min=0"`
}

type SiteConfigScmIpRestrictionAttributes

type SiteConfigScmIpRestrictionAttributes struct {
	// contains filtered or unexported fields
}

func (SiteConfigScmIpRestrictionAttributes) Action

func (SiteConfigScmIpRestrictionAttributes) Headers

func (SiteConfigScmIpRestrictionAttributes) InternalRef

func (SiteConfigScmIpRestrictionAttributes) InternalTokens

func (SiteConfigScmIpRestrictionAttributes) InternalWithRef

func (SiteConfigScmIpRestrictionAttributes) IpAddress

func (SiteConfigScmIpRestrictionAttributes) Name

func (SiteConfigScmIpRestrictionAttributes) Priority

func (SiteConfigScmIpRestrictionAttributes) ServiceTag

func (SiteConfigScmIpRestrictionAttributes) VirtualNetworkSubnetId

func (sir SiteConfigScmIpRestrictionAttributes) VirtualNetworkSubnetId() terra.StringValue

type SiteConfigScmIpRestrictionHeaders

type SiteConfigScmIpRestrictionHeaders struct {
	// XAzureFdid: set of string, optional
	XAzureFdid terra.SetValue[terra.StringValue] `hcl:"x_azure_fdid,attr"`
	// XFdHealthProbe: set of string, optional
	XFdHealthProbe terra.SetValue[terra.StringValue] `hcl:"x_fd_health_probe,attr"`
	// XForwardedFor: set of string, optional
	XForwardedFor terra.SetValue[terra.StringValue] `hcl:"x_forwarded_for,attr"`
	// XForwardedHost: set of string, optional
	XForwardedHost terra.SetValue[terra.StringValue] `hcl:"x_forwarded_host,attr"`
}

type SiteConfigScmIpRestrictionHeadersAttributes

type SiteConfigScmIpRestrictionHeadersAttributes struct {
	// contains filtered or unexported fields
}

func (SiteConfigScmIpRestrictionHeadersAttributes) InternalRef

func (SiteConfigScmIpRestrictionHeadersAttributes) InternalTokens

func (SiteConfigScmIpRestrictionHeadersAttributes) InternalWithRef

func (SiteConfigScmIpRestrictionHeadersAttributes) XAzureFdid

func (SiteConfigScmIpRestrictionHeadersAttributes) XFdHealthProbe

func (SiteConfigScmIpRestrictionHeadersAttributes) XForwardedFor

func (SiteConfigScmIpRestrictionHeadersAttributes) XForwardedHost

type SiteConfigScmIpRestrictionHeadersState

type SiteConfigScmIpRestrictionHeadersState struct {
	XAzureFdid     []string `json:"x_azure_fdid"`
	XFdHealthProbe []string `json:"x_fd_health_probe"`
	XForwardedFor  []string `json:"x_forwarded_for"`
	XForwardedHost []string `json:"x_forwarded_host"`
}

type SiteConfigScmIpRestrictionState

type SiteConfigScmIpRestrictionState struct {
	Action                 string                                   `json:"action"`
	IpAddress              string                                   `json:"ip_address"`
	Name                   string                                   `json:"name"`
	Priority               float64                                  `json:"priority"`
	ServiceTag             string                                   `json:"service_tag"`
	VirtualNetworkSubnetId string                                   `json:"virtual_network_subnet_id"`
	Headers                []SiteConfigScmIpRestrictionHeadersState `json:"headers"`
}

type SiteConfigState

type SiteConfigState struct {
	AlwaysOn                      bool                              `json:"always_on"`
	AppScaleLimit                 float64                           `json:"app_scale_limit"`
	AutoSwapSlotName              string                            `json:"auto_swap_slot_name"`
	DotnetFrameworkVersion        string                            `json:"dotnet_framework_version"`
	ElasticInstanceMinimum        float64                           `json:"elastic_instance_minimum"`
	FtpsState                     string                            `json:"ftps_state"`
	HealthCheckPath               string                            `json:"health_check_path"`
	Http2Enabled                  bool                              `json:"http2_enabled"`
	JavaVersion                   string                            `json:"java_version"`
	LinuxFxVersion                string                            `json:"linux_fx_version"`
	MinTlsVersion                 string                            `json:"min_tls_version"`
	PreWarmedInstanceCount        float64                           `json:"pre_warmed_instance_count"`
	RuntimeScaleMonitoringEnabled bool                              `json:"runtime_scale_monitoring_enabled"`
	ScmType                       string                            `json:"scm_type"`
	ScmUseMainIpRestriction       bool                              `json:"scm_use_main_ip_restriction"`
	Use32BitWorkerProcess         bool                              `json:"use_32_bit_worker_process"`
	VnetRouteAllEnabled           bool                              `json:"vnet_route_all_enabled"`
	WebsocketsEnabled             bool                              `json:"websockets_enabled"`
	IpRestriction                 []SiteConfigIpRestrictionState    `json:"ip_restriction"`
	ScmIpRestriction              []SiteConfigScmIpRestrictionState `json:"scm_ip_restriction"`
	Cors                          []SiteConfigCorsState             `json:"cors"`
}

type SiteCredentialAttributes

type SiteCredentialAttributes struct {
	// contains filtered or unexported fields
}

func (SiteCredentialAttributes) InternalRef

func (sc SiteCredentialAttributes) InternalRef() (terra.Reference, error)

func (SiteCredentialAttributes) InternalTokens

func (sc SiteCredentialAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SiteCredentialAttributes) InternalWithRef

func (SiteCredentialAttributes) Password

func (SiteCredentialAttributes) Username

type SiteCredentialState

type SiteCredentialState struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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