azurerm_managed_disk

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 {
	// CreateOption: string, required
	CreateOption terra.StringValue `hcl:"create_option,attr" validate:"required"`
	// DiskAccessId: string, optional
	DiskAccessId terra.StringValue `hcl:"disk_access_id,attr"`
	// DiskEncryptionSetId: string, optional
	DiskEncryptionSetId terra.StringValue `hcl:"disk_encryption_set_id,attr"`
	// DiskIopsReadOnly: number, optional
	DiskIopsReadOnly terra.NumberValue `hcl:"disk_iops_read_only,attr"`
	// DiskIopsReadWrite: number, optional
	DiskIopsReadWrite terra.NumberValue `hcl:"disk_iops_read_write,attr"`
	// DiskMbpsReadOnly: number, optional
	DiskMbpsReadOnly terra.NumberValue `hcl:"disk_mbps_read_only,attr"`
	// DiskMbpsReadWrite: number, optional
	DiskMbpsReadWrite terra.NumberValue `hcl:"disk_mbps_read_write,attr"`
	// DiskSizeGb: number, optional
	DiskSizeGb terra.NumberValue `hcl:"disk_size_gb,attr"`
	// EdgeZone: string, optional
	EdgeZone terra.StringValue `hcl:"edge_zone,attr"`
	// GalleryImageReferenceId: string, optional
	GalleryImageReferenceId terra.StringValue `hcl:"gallery_image_reference_id,attr"`
	// HyperVGeneration: string, optional
	HyperVGeneration terra.StringValue `hcl:"hyper_v_generation,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ImageReferenceId: string, optional
	ImageReferenceId terra.StringValue `hcl:"image_reference_id,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// LogicalSectorSize: number, optional
	LogicalSectorSize terra.NumberValue `hcl:"logical_sector_size,attr"`
	// MaxShares: number, optional
	MaxShares terra.NumberValue `hcl:"max_shares,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// NetworkAccessPolicy: string, optional
	NetworkAccessPolicy terra.StringValue `hcl:"network_access_policy,attr"`
	// OnDemandBurstingEnabled: bool, optional
	OnDemandBurstingEnabled terra.BoolValue `hcl:"on_demand_bursting_enabled,attr"`
	// OptimizedFrequentAttachEnabled: bool, optional
	OptimizedFrequentAttachEnabled terra.BoolValue `hcl:"optimized_frequent_attach_enabled,attr"`
	// OsType: string, optional
	OsType terra.StringValue `hcl:"os_type,attr"`
	// PerformancePlusEnabled: bool, optional
	PerformancePlusEnabled terra.BoolValue `hcl:"performance_plus_enabled,attr"`
	// PublicNetworkAccessEnabled: bool, optional
	PublicNetworkAccessEnabled terra.BoolValue `hcl:"public_network_access_enabled,attr"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// SecureVmDiskEncryptionSetId: string, optional
	SecureVmDiskEncryptionSetId terra.StringValue `hcl:"secure_vm_disk_encryption_set_id,attr"`
	// SecurityType: string, optional
	SecurityType terra.StringValue `hcl:"security_type,attr"`
	// SourceResourceId: string, optional
	SourceResourceId terra.StringValue `hcl:"source_resource_id,attr"`
	// SourceUri: string, optional
	SourceUri terra.StringValue `hcl:"source_uri,attr"`
	// StorageAccountId: string, optional
	StorageAccountId terra.StringValue `hcl:"storage_account_id,attr"`
	// StorageAccountType: string, required
	StorageAccountType terra.StringValue `hcl:"storage_account_type,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Tier: string, optional
	Tier terra.StringValue `hcl:"tier,attr"`
	// TrustedLaunchEnabled: bool, optional
	TrustedLaunchEnabled terra.BoolValue `hcl:"trusted_launch_enabled,attr"`
	// UploadSizeBytes: number, optional
	UploadSizeBytes terra.NumberValue `hcl:"upload_size_bytes,attr"`
	// Zone: string, optional
	Zone terra.StringValue `hcl:"zone,attr"`
	// EncryptionSettings: optional
	EncryptionSettings *EncryptionSettings `hcl:"encryption_settings,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_managed_disk.

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for azurerm_managed_disk.

type DataEncryptionSettingsAttributes

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

func (DataEncryptionSettingsAttributes) DiskEncryptionKey

func (DataEncryptionSettingsAttributes) Enabled

func (DataEncryptionSettingsAttributes) InternalRef

func (DataEncryptionSettingsAttributes) InternalTokens

func (es DataEncryptionSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataEncryptionSettingsAttributes) InternalWithRef

func (DataEncryptionSettingsAttributes) KeyEncryptionKey

type DataEncryptionSettingsDiskEncryptionKeyAttributes

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

func (DataEncryptionSettingsDiskEncryptionKeyAttributes) InternalRef

func (DataEncryptionSettingsDiskEncryptionKeyAttributes) InternalTokens

func (DataEncryptionSettingsDiskEncryptionKeyAttributes) InternalWithRef

func (DataEncryptionSettingsDiskEncryptionKeyAttributes) SecretUrl

func (DataEncryptionSettingsDiskEncryptionKeyAttributes) SourceVaultId

type DataEncryptionSettingsDiskEncryptionKeyState

type DataEncryptionSettingsDiskEncryptionKeyState struct {
	SecretUrl     string `json:"secret_url"`
	SourceVaultId string `json:"source_vault_id"`
}

type DataEncryptionSettingsKeyEncryptionKeyAttributes

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

func (DataEncryptionSettingsKeyEncryptionKeyAttributes) InternalRef

func (DataEncryptionSettingsKeyEncryptionKeyAttributes) InternalTokens

func (DataEncryptionSettingsKeyEncryptionKeyAttributes) InternalWithRef

func (DataEncryptionSettingsKeyEncryptionKeyAttributes) KeyUrl

func (DataEncryptionSettingsKeyEncryptionKeyAttributes) SourceVaultId

type DataEncryptionSettingsKeyEncryptionKeyState

type DataEncryptionSettingsKeyEncryptionKeyState struct {
	KeyUrl        string `json:"key_url"`
	SourceVaultId string `json:"source_vault_id"`
}

type DataEncryptionSettingsState

type DataEncryptionSettingsState struct {
	Enabled           bool                                           `json:"enabled"`
	DiskEncryptionKey []DataEncryptionSettingsDiskEncryptionKeyState `json:"disk_encryption_key"`
	KeyEncryptionKey  []DataEncryptionSettingsKeyEncryptionKeyState  `json:"key_encryption_key"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource azurerm_managed_disk.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (amd *DataSource) Attributes() dataAzurermManagedDiskAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (amd *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (amd *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (amd *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataTimeouts

type DataTimeouts struct {
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
}

type DataTimeoutsAttributes

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

func (DataTimeoutsAttributes) InternalRef

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

func (DataTimeoutsAttributes) InternalTokens

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

func (DataTimeoutsAttributes) InternalWithRef

func (DataTimeoutsAttributes) Read

type DataTimeoutsState

type DataTimeoutsState struct {
	Read string `json:"read"`
}

type EncryptionSettings

type EncryptionSettings struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// EncryptionSettingsDiskEncryptionKey: optional
	DiskEncryptionKey *EncryptionSettingsDiskEncryptionKey `hcl:"disk_encryption_key,block"`
	// EncryptionSettingsKeyEncryptionKey: optional
	KeyEncryptionKey *EncryptionSettingsKeyEncryptionKey `hcl:"key_encryption_key,block"`
}

type EncryptionSettingsAttributes

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

func (EncryptionSettingsAttributes) DiskEncryptionKey

func (EncryptionSettingsAttributes) Enabled

func (EncryptionSettingsAttributes) InternalRef

func (es EncryptionSettingsAttributes) InternalRef() (terra.Reference, error)

func (EncryptionSettingsAttributes) InternalTokens

func (es EncryptionSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EncryptionSettingsAttributes) InternalWithRef

func (EncryptionSettingsAttributes) KeyEncryptionKey

type EncryptionSettingsDiskEncryptionKey

type EncryptionSettingsDiskEncryptionKey struct {
	// SecretUrl: string, required
	SecretUrl terra.StringValue `hcl:"secret_url,attr" validate:"required"`
	// SourceVaultId: string, required
	SourceVaultId terra.StringValue `hcl:"source_vault_id,attr" validate:"required"`
}

type EncryptionSettingsDiskEncryptionKeyAttributes

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

func (EncryptionSettingsDiskEncryptionKeyAttributes) InternalRef

func (EncryptionSettingsDiskEncryptionKeyAttributes) InternalTokens

func (EncryptionSettingsDiskEncryptionKeyAttributes) InternalWithRef

func (EncryptionSettingsDiskEncryptionKeyAttributes) SecretUrl

func (EncryptionSettingsDiskEncryptionKeyAttributes) SourceVaultId

type EncryptionSettingsDiskEncryptionKeyState

type EncryptionSettingsDiskEncryptionKeyState struct {
	SecretUrl     string `json:"secret_url"`
	SourceVaultId string `json:"source_vault_id"`
}

type EncryptionSettingsKeyEncryptionKey

type EncryptionSettingsKeyEncryptionKey struct {
	// KeyUrl: string, required
	KeyUrl terra.StringValue `hcl:"key_url,attr" validate:"required"`
	// SourceVaultId: string, required
	SourceVaultId terra.StringValue `hcl:"source_vault_id,attr" validate:"required"`
}

type EncryptionSettingsKeyEncryptionKeyAttributes

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

func (EncryptionSettingsKeyEncryptionKeyAttributes) InternalRef

func (EncryptionSettingsKeyEncryptionKeyAttributes) InternalTokens

func (EncryptionSettingsKeyEncryptionKeyAttributes) InternalWithRef

func (EncryptionSettingsKeyEncryptionKeyAttributes) KeyUrl

func (EncryptionSettingsKeyEncryptionKeyAttributes) SourceVaultId

type EncryptionSettingsKeyEncryptionKeyState

type EncryptionSettingsKeyEncryptionKeyState struct {
	KeyUrl        string `json:"key_url"`
	SourceVaultId string `json:"source_vault_id"`
}

type EncryptionSettingsState

type EncryptionSettingsState struct {
	Enabled           bool                                       `json:"enabled"`
	DiskEncryptionKey []EncryptionSettingsDiskEncryptionKeyState `json:"disk_encryption_key"`
	KeyEncryptionKey  []EncryptionSettingsKeyEncryptionKeyState  `json:"key_encryption_key"`
}

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_managed_disk.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (amd *Resource) Attributes() azurermManagedDiskAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (amd *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (amd *Resource) State() (*azurermManagedDiskState, bool)

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

func (*Resource) StateMust

func (amd *Resource) StateMust() *azurermManagedDiskState

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

func (*Resource) Type

func (amd *Resource) Type() string

Type returns the Terraform object type for Resource.

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