Documentation
¶
Index ¶
- func Image_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func Image_IsConstruct(x interface{}) *bool
- func Image_IsTerraformElement(x interface{}) *bool
- func Image_IsTerraformResource(x interface{}) *bool
- func Image_TfResourceType() *string
- func NewImageChecksumOutputReference_Override(i ImageChecksumOutputReference, terraformResource cdktf.IInterpolatingParent, ...)
- func NewImageConfigAOutputReference_Override(i ImageConfigAOutputReference, terraformResource cdktf.IInterpolatingParent, ...)
- func NewImage_Override(i Image, scope constructs.Construct, id *string, config *ImageConfig)
- type Image
- type ImageChecksum
- type ImageChecksumOutputReference
- type ImageConfig
- type ImageConfigA
- type ImageConfigAOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Image_GenerateConfigForImport ¶
func Image_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a Image resource upon running "cdktf plan <stack-name>".
func Image_IsConstruct ¶
func Image_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 Image_TfResourceType ¶
func Image_TfResourceType() *string
func NewImageChecksumOutputReference_Override ¶
func NewImageChecksumOutputReference_Override(i ImageChecksumOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewImageConfigAOutputReference_Override ¶
func NewImageConfigAOutputReference_Override(i ImageConfigAOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewImage_Override ¶
func NewImage_Override(i Image, scope constructs.Construct, id *string, config *ImageConfig)
Create a new {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image stackit_image} Resource.
Types ¶
type Image ¶
type Image interface {
cdktf.TerraformResource
// Experimental.
CdktfStack() cdktf.TerraformStack
Checksum() ImageChecksumOutputReference
Config() ImageConfigAOutputReference
ConfigInput() interface{}
// Experimental.
Connection() interface{}
// Experimental.
SetConnection(val interface{})
// Experimental.
ConstructNodeMetadata() *map[string]interface{}
// Experimental.
Count() interface{}
// Experimental.
SetCount(val interface{})
// Experimental.
DependsOn() *[]*string
// Experimental.
SetDependsOn(val *[]*string)
DiskFormat() *string
SetDiskFormat(val *string)
DiskFormatInput() *string
// Experimental.
ForEach() cdktf.ITerraformIterator
// Experimental.
SetForEach(val cdktf.ITerraformIterator)
// Experimental.
Fqn() *string
// Experimental.
FriendlyUniqueId() *string
Id() *string
ImageId() *string
Labels() *map[string]*string
SetLabels(val *map[string]*string)
LabelsInput() *map[string]*string
// Experimental.
Lifecycle() *cdktf.TerraformResourceLifecycle
// Experimental.
SetLifecycle(val *cdktf.TerraformResourceLifecycle)
LocalFilePath() *string
SetLocalFilePath(val *string)
LocalFilePathInput() *string
MinDiskSize() *float64
SetMinDiskSize(val *float64)
MinDiskSizeInput() *float64
MinRam() *float64
SetMinRam(val *float64)
MinRamInput() *float64
Name() *string
SetName(val *string)
NameInput() *string
// The tree node.
Node() constructs.Node
ProjectId() *string
SetProjectId(val *string)
ProjectIdInput() *string
Protected() cdktf.IResolvable
// Experimental.
Provider() cdktf.TerraformProvider
// Experimental.
SetProvider(val cdktf.TerraformProvider)
// Experimental.
Provisioners() *[]interface{}
// Experimental.
SetProvisioners(val *[]interface{})
// Experimental.
RawOverrides() interface{}
Scope() *string
// Experimental.
TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata
// Experimental.
TerraformMetaArguments() *map[string]interface{}
// Experimental.
TerraformResourceType() *string
// Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.
// Experimental.
AddMoveTarget(moveTarget *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.
HasResourceMove() interface{}
// Experimental.
ImportFrom(id *string, provider cdktf.TerraformProvider)
// Experimental.
InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable
// Move the resource corresponding to "id" to this resource.
//
// Note that the resource being moved from must be marked as moved using it's instance function.
// Experimental.
MoveFromId(id *string)
// Moves this resource to the target resource given by moveTarget.
// Experimental.
MoveTo(moveTarget *string, index interface{})
// Moves this resource to the resource corresponding to "id".
// Experimental.
MoveToId(id *string)
// Overrides the auto-generated logical ID with a specific ID.
// Experimental.
OverrideLogicalId(newLogicalId *string)
PutConfig(value *ImageConfigA)
ResetConfig()
ResetLabels()
ResetMinDiskSize()
ResetMinRam()
// Resets a previously passed logical Id to use the auto-generated logical id again.
// Experimental.
ResetOverrideLogicalId()
SynthesizeAttributes() *map[string]interface{}
SynthesizeHclAttributes() *map[string]interface{}
// Experimental.
ToHclTerraform() 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://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image stackit_image}.
func NewImage ¶
func NewImage(scope constructs.Construct, id *string, config *ImageConfig) Image
Create a new {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image stackit_image} Resource.
type ImageChecksum ¶
type ImageChecksum struct {
}
type ImageChecksumOutputReference ¶
type ImageChecksumOutputReference interface {
cdktf.ComplexObject
Algorithm() *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
Digest() *string
// Experimental.
Fqn() *string
InternalValue() *ImageChecksum
SetInternalValue(val *ImageChecksum)
// Experimental.
TerraformAttribute() *string
// Experimental.
SetTerraformAttribute(val *string)
// Experimental.
TerraformResource() cdktf.IInterpolatingParent
// Experimental.
SetTerraformResource(val cdktf.IInterpolatingParent)
// 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 NewImageChecksumOutputReference ¶
func NewImageChecksumOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) ImageChecksumOutputReference
type ImageConfig ¶
type ImageConfig struct {
// Experimental.
Connection interface{} `field:"optional" json:"connection" yaml:"connection"`
// Experimental.
Count interface{} `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"`
// The disk format of the image.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#disk_format Image#disk_format}
DiskFormat *string `field:"required" json:"diskFormat" yaml:"diskFormat"`
// The filepath of the raw image file to be uploaded.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#local_file_path Image#local_file_path}
LocalFilePath *string `field:"required" json:"localFilePath" yaml:"localFilePath"`
// The name of the image.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#name Image#name}
Name *string `field:"required" json:"name" yaml:"name"`
// STACKIT project ID to which the image is associated.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#project_id Image#project_id}
ProjectId *string `field:"required" json:"projectId" yaml:"projectId"`
// Properties to set hardware and scheduling settings for an image.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#config Image#config}
Config *ImageConfigA `field:"optional" json:"config" yaml:"config"`
// Labels are key-value string pairs which can be attached to a resource container.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#labels Image#labels}
Labels *map[string]*string `field:"optional" json:"labels" yaml:"labels"`
// The minimum disk size of the image in GB.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#min_disk_size Image#min_disk_size}
MinDiskSize *float64 `field:"optional" json:"minDiskSize" yaml:"minDiskSize"`
// The minimum RAM of the image in MB.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#min_ram Image#min_ram}
MinRam *float64 `field:"optional" json:"minRam" yaml:"minRam"`
}
type ImageConfigA ¶
type ImageConfigA struct {
// Enables the BIOS bootmenu.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#boot_menu Image#boot_menu}
BootMenu interface{} `field:"optional" json:"bootMenu" yaml:"bootMenu"`
// Sets CDROM bus controller type.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#cdrom_bus Image#cdrom_bus}
CdromBus *string `field:"optional" json:"cdromBus" yaml:"cdromBus"`
// Sets Disk bus controller type.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#disk_bus Image#disk_bus}
DiskBus *string `field:"optional" json:"diskBus" yaml:"diskBus"`
// Sets virtual network interface model.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#nic_model Image#nic_model}
NicModel *string `field:"optional" json:"nicModel" yaml:"nicModel"`
// Enables operating system specific optimizations.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#operating_system Image#operating_system}
OperatingSystem *string `field:"optional" json:"operatingSystem" yaml:"operatingSystem"`
// Operating system distribution.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#operating_system_distro Image#operating_system_distro}
OperatingSystemDistro *string `field:"optional" json:"operatingSystemDistro" yaml:"operatingSystemDistro"`
// Version of the operating system.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#operating_system_version Image#operating_system_version}
OperatingSystemVersion *string `field:"optional" json:"operatingSystemVersion" yaml:"operatingSystemVersion"`
// Sets the device bus when the image is used as a rescue image.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#rescue_bus Image#rescue_bus}
RescueBus *string `field:"optional" json:"rescueBus" yaml:"rescueBus"`
// Sets the device when the image is used as a rescue image.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#rescue_device Image#rescue_device}
RescueDevice *string `field:"optional" json:"rescueDevice" yaml:"rescueDevice"`
// Enables Secure Boot.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#secure_boot Image#secure_boot}
SecureBoot interface{} `field:"optional" json:"secureBoot" yaml:"secureBoot"`
// Enables UEFI boot.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#uefi Image#uefi}
Uefi interface{} `field:"optional" json:"uefi" yaml:"uefi"`
// Sets Graphic device model.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#video_model Image#video_model}
VideoModel *string `field:"optional" json:"videoModel" yaml:"videoModel"`
// Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/stackitcloud/stackit/0.38.1/docs/resources/image#virtio_scsi Image#virtio_scsi}
VirtioScsi interface{} `field:"optional" json:"virtioScsi" yaml:"virtioScsi"`
}
type ImageConfigAOutputReference ¶
type ImageConfigAOutputReference interface {
cdktf.ComplexObject
BootMenu() interface{}
SetBootMenu(val interface{})
BootMenuInput() interface{}
CdromBus() *string
SetCdromBus(val *string)
CdromBusInput() *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
DiskBus() *string
SetDiskBus(val *string)
DiskBusInput() *string
// Experimental.
Fqn() *string
InternalValue() interface{}
SetInternalValue(val interface{})
NicModel() *string
SetNicModel(val *string)
NicModelInput() *string
OperatingSystem() *string
SetOperatingSystem(val *string)
OperatingSystemDistro() *string
SetOperatingSystemDistro(val *string)
OperatingSystemDistroInput() *string
OperatingSystemInput() *string
OperatingSystemVersion() *string
SetOperatingSystemVersion(val *string)
OperatingSystemVersionInput() *string
RescueBus() *string
SetRescueBus(val *string)
RescueBusInput() *string
RescueDevice() *string
SetRescueDevice(val *string)
RescueDeviceInput() *string
SecureBoot() interface{}
SetSecureBoot(val interface{})
SecureBootInput() interface{}
// Experimental.
TerraformAttribute() *string
// Experimental.
SetTerraformAttribute(val *string)
// Experimental.
TerraformResource() cdktf.IInterpolatingParent
// Experimental.
SetTerraformResource(val cdktf.IInterpolatingParent)
Uefi() interface{}
SetUefi(val interface{})
UefiInput() interface{}
VideoModel() *string
SetVideoModel(val *string)
VideoModelInput() *string
VirtioScsi() interface{}
SetVirtioScsi(val interface{})
VirtioScsiInput() interface{}
// 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
ResetBootMenu()
ResetCdromBus()
ResetDiskBus()
ResetNicModel()
ResetOperatingSystem()
ResetOperatingSystemDistro()
ResetOperatingSystemVersion()
ResetRescueBus()
ResetRescueDevice()
ResetSecureBoot()
ResetUefi()
ResetVideoModel()
ResetVirtioScsi()
// 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 NewImageConfigAOutputReference ¶
func NewImageConfigAOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) ImageConfigAOutputReference