Documentation ¶
Index ¶
- func NewServerLoginOutputReference_Override(s ServerLoginOutputReference, terraformResource cdktf.IInterpolatingParent, ...)
- func NewServerNetworkInterfaceList_Override(s ServerNetworkInterfaceList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewServerNetworkInterfaceOutputReference_Override(s ServerNetworkInterfaceOutputReference, ...)
- func NewServerSimpleBackupOutputReference_Override(s ServerSimpleBackupOutputReference, ...)
- func NewServerStorageDevicesList_Override(s ServerStorageDevicesList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewServerStorageDevicesOutputReference_Override(s ServerStorageDevicesOutputReference, ...)
- func NewServerTemplateBackupRuleOutputReference_Override(s ServerTemplateBackupRuleOutputReference, ...)
- func NewServerTemplateOutputReference_Override(s ServerTemplateOutputReference, terraformResource cdktf.IInterpolatingParent, ...)
- func NewServer_Override(s Server, scope constructs.Construct, id *string, config *ServerConfig)
- func Server_IsConstruct(x interface{}) *bool
- func Server_IsTerraformElement(x interface{}) *bool
- func Server_IsTerraformResource(x interface{}) *bool
- func Server_TfResourceType() *string
- type Server
- type ServerConfig
- type ServerLogin
- type ServerLoginOutputReference
- type ServerNetworkInterface
- type ServerNetworkInterfaceList
- type ServerNetworkInterfaceOutputReference
- type ServerSimpleBackup
- type ServerSimpleBackupOutputReference
- type ServerStorageDevices
- type ServerStorageDevicesList
- type ServerStorageDevicesOutputReference
- type ServerTemplate
- type ServerTemplateBackupRule
- type ServerTemplateBackupRuleOutputReference
- type ServerTemplateOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServerLoginOutputReference_Override ¶
func NewServerLoginOutputReference_Override(s ServerLoginOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewServerNetworkInterfaceList_Override ¶
func NewServerNetworkInterfaceList_Override(s ServerNetworkInterfaceList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewServerNetworkInterfaceOutputReference_Override ¶
func NewServerNetworkInterfaceOutputReference_Override(s ServerNetworkInterfaceOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewServerSimpleBackupOutputReference_Override ¶
func NewServerSimpleBackupOutputReference_Override(s ServerSimpleBackupOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewServerStorageDevicesList_Override ¶
func NewServerStorageDevicesList_Override(s ServerStorageDevicesList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewServerStorageDevicesOutputReference_Override ¶
func NewServerStorageDevicesOutputReference_Override(s ServerStorageDevicesOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewServerTemplateBackupRuleOutputReference_Override ¶
func NewServerTemplateBackupRuleOutputReference_Override(s ServerTemplateBackupRuleOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewServerTemplateOutputReference_Override ¶
func NewServerTemplateOutputReference_Override(s ServerTemplateOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewServer_Override ¶
func NewServer_Override(s Server, scope constructs.Construct, id *string, config *ServerConfig)
Create a new {@link https://www.terraform.io/docs/providers/upcloud/r/server upcloud_server} Resource.
func Server_IsConstruct ¶
func Server_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func Server_IsTerraformResource ¶
func Server_IsTerraformResource(x interface{}) *bool
Experimental.
func Server_TfResourceType ¶
func Server_TfResourceType() *string
Types ¶
type Server ¶
type Server interface { cdktf.TerraformResource // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() *float64 // Experimental. SetCount(val *float64) Cpu() *float64 SetCpu(val *float64) CpuInput() *float64 // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) Firewall() interface{} SetFirewall(val interface{}) FirewallInput() interface{} // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Host() *float64 SetHost(val *float64) HostInput() *float64 Hostname() *string SetHostname(val *string) HostnameInput() *string Id() *string SetId(val *string) IdInput() *string Labels() *map[string]*string SetLabels(val *map[string]*string) LabelsInput() *map[string]*string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) Login() ServerLoginOutputReference LoginInput() *ServerLogin Mem() *float64 SetMem(val *float64) MemInput() *float64 Metadata() interface{} SetMetadata(val interface{}) MetadataInput() interface{} NetworkInterface() ServerNetworkInterfaceList NetworkInterfaceInput() interface{} // The tree node. Node() constructs.Node Plan() *string SetPlan(val *string) PlanInput() *string // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} SimpleBackup() ServerSimpleBackupOutputReference SimpleBackupInput() *ServerSimpleBackup StorageDevices() ServerStorageDevicesList StorageDevicesInput() interface{} Tags() *[]*string SetTags(val *[]*string) TagsInput() *[]*string Template() ServerTemplateOutputReference TemplateInput() *ServerTemplate // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Title() *string SetTitle(val *string) TitleInput() *string UserData() *string SetUserData(val *string) UserDataInput() *string Zone() *string SetZone(val *string) ZoneInput() *string // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutLogin(value *ServerLogin) PutNetworkInterface(value interface{}) PutSimpleBackup(value *ServerSimpleBackup) PutStorageDevices(value interface{}) PutTemplate(value *ServerTemplate) ResetCpu() ResetFirewall() ResetHost() ResetId() ResetLabels() ResetLogin() ResetMem() ResetMetadata() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetPlan() ResetSimpleBackup() ResetStorageDevices() ResetTags() ResetTemplate() ResetTitle() ResetUserData() SynthesizeAttributes() *map[string]interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://www.terraform.io/docs/providers/upcloud/r/server upcloud_server}.
func NewServer ¶
func NewServer(scope constructs.Construct, id *string, config *ServerConfig) Server
Create a new {@link https://www.terraform.io/docs/providers/upcloud/r/server upcloud_server} Resource.
type ServerConfig ¶
type ServerConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count *float64 `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` // A valid domain name. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#hostname Server#hostname} Hostname *string `field:"required" json:"hostname" yaml:"hostname"` // network_interface block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#network_interface Server#network_interface} NetworkInterface interface{} `field:"required" json:"networkInterface" yaml:"networkInterface"` // The zone in which the server will be hosted. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#zone Server#zone} Zone *string `field:"required" json:"zone" yaml:"zone"` // The number of CPU for the server. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#cpu Server#cpu} Cpu *float64 `field:"optional" json:"cpu" yaml:"cpu"` // Are firewall rules active for the server. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#firewall Server#firewall} Firewall interface{} `field:"optional" json:"firewall" yaml:"firewall"` // Use this to start the VM on a specific host. // // Refers to value from host -attribute. Only available for private cloud hosts // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#host Server#host} Host *float64 `field:"optional" json:"host" yaml:"host"` // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#id Server#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` // Labels contain key-value pairs to classify the server. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#labels Server#labels} Labels *map[string]*string `field:"optional" json:"labels" yaml:"labels"` // login block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#login Server#login} Login *ServerLogin `field:"optional" json:"login" yaml:"login"` // The size of memory for the server (in megabytes). // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#mem Server#mem} Mem *float64 `field:"optional" json:"mem" yaml:"mem"` // Is the metadata service active for the server. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#metadata Server#metadata} Metadata interface{} `field:"optional" json:"metadata" yaml:"metadata"` // The pricing plan used for the server. You can list available server plans with `upctl server plans`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#plan Server#plan} Plan *string `field:"optional" json:"plan" yaml:"plan"` // simple_backup block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#simple_backup Server#simple_backup} SimpleBackup *ServerSimpleBackup `field:"optional" json:"simpleBackup" yaml:"simpleBackup"` // storage_devices block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#storage_devices Server#storage_devices} StorageDevices interface{} `field:"optional" json:"storageDevices" yaml:"storageDevices"` // The server related tags. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#tags Server#tags} Tags *[]*string `field:"optional" json:"tags" yaml:"tags"` // template block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#template Server#template} Template *ServerTemplate `field:"optional" json:"template" yaml:"template"` // A short, informational description. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#title Server#title} Title *string `field:"optional" json:"title" yaml:"title"` // Defines URL for a server setup script, or the script body itself. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#user_data Server#user_data} UserData *string `field:"optional" json:"userData" yaml:"userData"` }
type ServerLogin ¶
type ServerLogin struct { // Indicates a password should be create to allow access. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#create_password Server#create_password} CreatePassword interface{} `field:"optional" json:"createPassword" yaml:"createPassword"` // A list of ssh keys to access the server. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#keys Server#keys} Keys *[]*string `field:"optional" json:"keys" yaml:"keys"` // The delivery method for the server's root password (one of `none`, `email` or `sms`). // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#password_delivery Server#password_delivery} PasswordDelivery *string `field:"optional" json:"passwordDelivery" yaml:"passwordDelivery"` // Username to be create to access the server. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#user Server#user} User *string `field:"optional" json:"user" yaml:"user"` }
type ServerLoginOutputReference ¶
type ServerLoginOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) CreatePassword() interface{} SetCreatePassword(val interface{}) CreatePasswordInput() interface{} // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *ServerLogin SetInternalValue(val *ServerLogin) Keys() *[]*string SetKeys(val *[]*string) KeysInput() *[]*string PasswordDelivery() *string SetPasswordDelivery(val *string) PasswordDeliveryInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) User() *string SetUser(val *string) UserInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetCreatePassword() ResetKeys() ResetPasswordDelivery() ResetUser() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewServerLoginOutputReference ¶
func NewServerLoginOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) ServerLoginOutputReference
type ServerNetworkInterface ¶
type ServerNetworkInterface struct { // Network interface type. For private network interfaces, a network must be specified with an existing network id. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#type Server#type} Type *string `field:"required" json:"type" yaml:"type"` // `true` if this interface should be used for network booting. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#bootable Server#bootable} Bootable interface{} `field:"optional" json:"bootable" yaml:"bootable"` // The assigned IP address. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#ip_address Server#ip_address} IpAddress *string `field:"optional" json:"ipAddress" yaml:"ipAddress"` // The IP address type of this interface (one of `IPv4` or `IPv6`). // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#ip_address_family Server#ip_address_family} IpAddressFamily *string `field:"optional" json:"ipAddressFamily" yaml:"ipAddressFamily"` // The unique ID of a network to attach this network to. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#network Server#network} Network *string `field:"optional" json:"network" yaml:"network"` // `true` if source IP should be filtered. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#source_ip_filtering Server#source_ip_filtering} SourceIpFiltering interface{} `field:"optional" json:"sourceIpFiltering" yaml:"sourceIpFiltering"` }
type ServerNetworkInterfaceList ¶
type ServerNetworkInterfaceList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) ServerNetworkInterfaceOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewServerNetworkInterfaceList ¶
func NewServerNetworkInterfaceList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) ServerNetworkInterfaceList
type ServerNetworkInterfaceOutputReference ¶
type ServerNetworkInterfaceOutputReference interface { cdktf.ComplexObject Bootable() interface{} SetBootable(val interface{}) BootableInput() interface{} // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) IpAddress() *string SetIpAddress(val *string) IpAddressFamily() *string SetIpAddressFamily(val *string) IpAddressFamilyInput() *string IpAddressFloating() cdktf.IResolvable IpAddressInput() *string MacAddress() *string Network() *string SetNetwork(val *string) NetworkInput() *string SourceIpFiltering() interface{} SetSourceIpFiltering(val interface{}) SourceIpFilteringInput() interface{} // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Type() *string SetType(val *string) TypeInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetBootable() ResetIpAddress() ResetIpAddressFamily() ResetNetwork() ResetSourceIpFiltering() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewServerNetworkInterfaceOutputReference ¶
func NewServerNetworkInterfaceOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) ServerNetworkInterfaceOutputReference
type ServerSimpleBackup ¶
type ServerSimpleBackup struct { // Simple backup plan. Accepted values: dailies, weeklies, monthlies. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#plan Server#plan} Plan *string `field:"required" json:"plan" yaml:"plan"` // Time of the day at which backup will be taken. Should be provided in a hhmm format (e.g. 2230). // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#time Server#time} Time *string `field:"required" json:"time" yaml:"time"` }
type ServerSimpleBackupOutputReference ¶
type ServerSimpleBackupOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *ServerSimpleBackup SetInternalValue(val *ServerSimpleBackup) Plan() *string SetPlan(val *string) PlanInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Time() *string SetTime(val *string) TimeInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewServerSimpleBackupOutputReference ¶
func NewServerSimpleBackupOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) ServerSimpleBackupOutputReference
type ServerStorageDevices ¶
type ServerStorageDevices struct { // A valid storage UUID. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#storage Server#storage} Storage *string `field:"required" json:"storage" yaml:"storage"` // The device address the storage will be attached to. // // Specify only the bus name (ide/scsi/virtio) to auto-select next available address from that bus. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#address Server#address} Address *string `field:"optional" json:"address" yaml:"address"` // The device type the storage will be attached as. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#type Server#type} Type *string `field:"optional" json:"type" yaml:"type"` }
type ServerStorageDevicesList ¶
type ServerStorageDevicesList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) ServerStorageDevicesOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewServerStorageDevicesList ¶
func NewServerStorageDevicesList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) ServerStorageDevicesList
type ServerStorageDevicesOutputReference ¶
type ServerStorageDevicesOutputReference interface { cdktf.ComplexObject Address() *string SetAddress(val *string) AddressInput() *string // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) Storage() *string SetStorage(val *string) StorageInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Type() *string SetType(val *string) TypeInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetAddress() ResetType() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewServerStorageDevicesOutputReference ¶
func NewServerStorageDevicesOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) ServerStorageDevicesOutputReference
type ServerTemplate ¶
type ServerTemplate struct { // A valid storage UUID or template name. // // You can list available public templates with `upctl storage list --public --template` and available private templates with `upctl storage list --template`. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#storage Server#storage} Storage *string `field:"required" json:"storage" yaml:"storage"` // The device address the storage will be attached to. // // Specify only the bus name (ide/scsi/virtio) to auto-select next available address from that bus. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#address Server#address} Address *string `field:"optional" json:"address" yaml:"address"` // backup_rule block. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#backup_rule Server#backup_rule} BackupRule *ServerTemplateBackupRule `field:"optional" json:"backupRule" yaml:"backupRule"` // If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#delete_autoresize_backup Server#delete_autoresize_backup} DeleteAutoresizeBackup interface{} `field:"optional" json:"deleteAutoresizeBackup" yaml:"deleteAutoresizeBackup"` // If set to true, provider will attempt to resize partition and filesystem when the size of template storage changes. // // Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used // to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). // Taking and keeping backups incure costs. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#filesystem_autoresize Server#filesystem_autoresize} FilesystemAutoresize interface{} `field:"optional" json:"filesystemAutoresize" yaml:"filesystemAutoresize"` // The size of the storage in gigabytes. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#size Server#size} Size *float64 `field:"optional" json:"size" yaml:"size"` // A short, informative description. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#title Server#title} Title *string `field:"optional" json:"title" yaml:"title"` }
type ServerTemplateBackupRule ¶
type ServerTemplateBackupRule struct { // The weekday when the backup is created. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#interval Server#interval} Interval *string `field:"required" json:"interval" yaml:"interval"` // The number of days before a backup is automatically deleted. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#retention Server#retention} Retention *float64 `field:"required" json:"retention" yaml:"retention"` // The time of day when the backup is created. // // Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/r/server#time Server#time} Time *string `field:"required" json:"time" yaml:"time"` }
type ServerTemplateBackupRuleOutputReference ¶
type ServerTemplateBackupRuleOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *ServerTemplateBackupRule SetInternalValue(val *ServerTemplateBackupRule) Interval() *string SetInterval(val *string) IntervalInput() *string Retention() *float64 SetRetention(val *float64) RetentionInput() *float64 // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Time() *string SetTime(val *string) TimeInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewServerTemplateBackupRuleOutputReference ¶
func NewServerTemplateBackupRuleOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) ServerTemplateBackupRuleOutputReference
type ServerTemplateOutputReference ¶
type ServerTemplateOutputReference interface { cdktf.ComplexObject Address() *string SetAddress(val *string) AddressInput() *string BackupRule() ServerTemplateBackupRuleOutputReference BackupRuleInput() *ServerTemplateBackupRule // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string DeleteAutoresizeBackup() interface{} SetDeleteAutoresizeBackup(val interface{}) DeleteAutoresizeBackupInput() interface{} FilesystemAutoresize() interface{} SetFilesystemAutoresize(val interface{}) FilesystemAutoresizeInput() interface{} // Experimental. Fqn() *string Id() *string InternalValue() *ServerTemplate SetInternalValue(val *ServerTemplate) Size() *float64 SetSize(val *float64) SizeInput() *float64 Storage() *string SetStorage(val *string) StorageInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Tier() *string Title() *string SetTitle(val *string) TitleInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutBackupRule(value *ServerTemplateBackupRule) ResetAddress() ResetBackupRule() ResetDeleteAutoresizeBackup() ResetFilesystemAutoresize() ResetSize() ResetTitle() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewServerTemplateOutputReference ¶
func NewServerTemplateOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) ServerTemplateOutputReference
Source Files ¶
- server.go
- server_Server.go
- server_ServerConfig.go
- server_ServerLogin.go
- server_ServerLoginOutputReference.go
- server_ServerLoginOutputReference__runtime_type_checks.go
- server_ServerNetworkInterface.go
- server_ServerNetworkInterfaceList.go
- server_ServerNetworkInterfaceList__runtime_type_checks.go
- server_ServerNetworkInterfaceOutputReference.go
- server_ServerNetworkInterfaceOutputReference__runtime_type_checks.go
- server_ServerSimpleBackup.go
- server_ServerSimpleBackupOutputReference.go
- server_ServerSimpleBackupOutputReference__runtime_type_checks.go
- server_ServerStorageDevices.go
- server_ServerStorageDevicesList.go
- server_ServerStorageDevicesList__runtime_type_checks.go
- server_ServerStorageDevicesOutputReference.go
- server_ServerStorageDevicesOutputReference__runtime_type_checks.go
- server_ServerTemplate.go
- server_ServerTemplateBackupRule.go
- server_ServerTemplateBackupRuleOutputReference.go
- server_ServerTemplateBackupRuleOutputReference__runtime_type_checks.go
- server_ServerTemplateOutputReference.go
- server_ServerTemplateOutputReference__runtime_type_checks.go
- server_Server__runtime_type_checks.go