resources

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CertificateCustom = map[string]schema.Attribute{
	"id": schema.Int64Attribute{
		Description: "The ID of the certificate.",
		Computed:    true,
		PlanModifiers: []planmodifier.Int64{
			int64planmodifier.UseStateForUnknown(),
		},
	},
	"name": schema.StringAttribute{
		Description: "The name of the certificate.",
		Required:    true,
		PlanModifiers: []planmodifier.String{
			stringplanmodifier.RequiresReplace(),
		},
	},
	"certificate": schema.StringAttribute{
		Description: "The contents of the certificate.",
		Required:    true,
		Sensitive:   true,
		PlanModifiers: []planmodifier.String{
			stringplanmodifier.RequiresReplace(),
		},
	},
	"certificate_key": schema.StringAttribute{
		Description: "The contents of the certificate key.",
		Required:    true,
		Sensitive:   true,
		PlanModifiers: []planmodifier.String{
			stringplanmodifier.RequiresReplace(),
		},
	},
	"domain_names": schema.ListAttribute{
		Description: "The domain names associated with the certificate.",
		Computed:    true,
		ElementType: types.StringType,
	},
	"expires_on": schema.StringAttribute{
		Description: "The date and time the certificate expires.",
		Computed:    true,
	},
	"created_on": schema.StringAttribute{
		Description: "The date and time the certificate was created.",
		Computed:    true,
	},
	"modified_on": schema.StringAttribute{
		Description: "The date and time the certificate was last modified.",
		Computed:    true,
	},
}
View Source
var ProxyHost = map[string]schema.Attribute{
	"id": schema.Int64Attribute{
		Description: "The ID of the proxy host.",
		Computed:    true,
		PlanModifiers: []planmodifier.Int64{
			int64planmodifier.UseStateForUnknown(),
		},
	},
	"created_on": schema.StringAttribute{
		Description: "The date and time the proxy host was created.",
		Computed:    true,
		PlanModifiers: []planmodifier.String{
			stringplanmodifier.UseStateForUnknown(),
		},
	},
	"modified_on": schema.StringAttribute{
		Description: "The date and time the proxy host was last modified.",
		Computed:    true,
	},
	"owner_user_id": schema.Int64Attribute{
		Description: "The ID of the user that owns the proxy host.",
		Computed:    true,
		PlanModifiers: []planmodifier.Int64{
			int64planmodifier.UseStateForUnknown(),
		},
	},
	"domain_names": schema.ListAttribute{
		Description: "The domain names associated with the proxy host.",
		Required:    true,
		ElementType: types.StringType,
		Validators: []validator.List{
			listvalidator.SizeAtLeast(1),
		},
	},
	"forward_scheme": schema.StringAttribute{
		Description: "The scheme used to forward requests to the proxy host. Can be either `http` or `https`.",
		Required:    true,
		Validators: []validator.String{
			stringvalidator.OneOf("http", "https"),
		},
	},
	"forward_host": schema.StringAttribute{
		Description: "The host used to forward requests to the proxy host.",
		Required:    true,
	},
	"forward_port": schema.Int64Attribute{
		Description: "The port used to forward requests to the proxy host. Must be between 1 and 65535.",
		Required:    true,
		Validators: []validator.Int64{
			int64validator.Between(1, 65535),
		},
	},
	"certificate_id": schema.StringAttribute{
		Description: "The ID of the certificate used by the proxy host.",
		Computed:    true,
		Optional:    true,
		Default:     stringdefault.StaticString("0"),
	},
	"ssl_forced": schema.BoolAttribute{
		Description: "Whether SSL is forced for the proxy host.",
		Computed:    true,
		Optional:    true,
		Default:     booldefault.StaticBool(false),
	},
	"hsts_enabled": schema.BoolAttribute{
		Description: "Whether HSTS is enabled for the proxy host.",
		Computed:    true,
		Optional:    true,
		Default:     booldefault.StaticBool(false),
	},
	"hsts_subdomains": schema.BoolAttribute{
		Description: "Whether HSTS is enabled for subdomains of the proxy host.",
		Computed:    true,
		Optional:    true,
		Default:     booldefault.StaticBool(false),
	},
	"http2_support": schema.BoolAttribute{
		Description: "Whether HTTP/2 is supported for the proxy host.",
		Computed:    true,
		Optional:    true,
		Default:     booldefault.StaticBool(false),
	},
	"block_exploits": schema.BoolAttribute{
		Description: "Whether exploits are blocked for the proxy host.",
		Computed:    true,
		Optional:    true,
		Default:     booldefault.StaticBool(false),
	},
	"caching_enabled": schema.BoolAttribute{
		Description: "Whether caching is enabled for the proxy host.",
		Computed:    true,
		Optional:    true,
		Default:     booldefault.StaticBool(false),
	},
	"allow_websocket_upgrade": schema.BoolAttribute{
		Description: "Whether websocket upgrades are allowed for the proxy host.",
		Computed:    true,
		Optional:    true,
		Default:     booldefault.StaticBool(true),
	},
	"access_list_id": schema.Int64Attribute{
		Description: "The ID of the access list used by the proxy host.",
		Computed:    true,
		Optional:    true,
		Default:     int64default.StaticInt64(0),
	},
	"advanced_config": schema.StringAttribute{
		Description: "The advanced configuration used by the proxy host.",
		Computed:    true,
		Optional:    true,
		Default:     stringdefault.StaticString(""),
	},
	"enabled": schema.BoolAttribute{
		Description: "Whether the proxy host is enabled.",
		Computed:    true,
		PlanModifiers: []planmodifier.Bool{
			boolplanmodifier.UseStateForUnknown(),
		},
	},
	"meta": schema.MapAttribute{
		Description: "The meta data associated with the proxy host.",
		ElementType: types.StringType,
		Computed:    true,
	},
}
View Source
var ProxyHostLocation = map[string]schema.Attribute{
	"path": schema.StringAttribute{
		Description: "The path associated with the location.",
		Required:    true,
	},
	"forward_scheme": schema.StringAttribute{
		Description: "The scheme used to forward requests to the location. Can be either `http` or `https`.",
		Required:    true,
		Validators: []validator.String{
			stringvalidator.OneOf("http", "https"),
		},
	},
	"forward_host": schema.StringAttribute{
		Description: "The host used to forward requests to the location.",
		Required:    true,
	},
	"forward_port": schema.Int64Attribute{
		Description: "The port used to forward requests to the location. Must be between 1 and 65535.",
		Required:    true,
		Validators: []validator.Int64{
			int64validator.Between(1, 65535),
		},
	},
	"advanced_config": schema.StringAttribute{
		Description: "The advanced configuration used by the location.",
		Computed:    true,
		Optional:    true,
		Default:     stringdefault.StaticString(""),
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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