azurerm_site_recovery_replicated_vm

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MultiVmGroupName: string, optional
	MultiVmGroupName terra.StringValue `hcl:"multi_vm_group_name,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RecoveryReplicationPolicyId: string, required
	RecoveryReplicationPolicyId terra.StringValue `hcl:"recovery_replication_policy_id,attr" validate:"required"`
	// RecoveryVaultName: string, required
	RecoveryVaultName terra.StringValue `hcl:"recovery_vault_name,attr" validate:"required"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// SourceRecoveryFabricName: string, required
	SourceRecoveryFabricName terra.StringValue `hcl:"source_recovery_fabric_name,attr" validate:"required"`
	// SourceRecoveryProtectionContainerName: string, required
	SourceRecoveryProtectionContainerName terra.StringValue `hcl:"source_recovery_protection_container_name,attr" validate:"required"`
	// SourceVmId: string, required
	SourceVmId terra.StringValue `hcl:"source_vm_id,attr" validate:"required"`
	// TargetAvailabilitySetId: string, optional
	TargetAvailabilitySetId terra.StringValue `hcl:"target_availability_set_id,attr"`
	// TargetBootDiagnosticStorageAccountId: string, optional
	TargetBootDiagnosticStorageAccountId terra.StringValue `hcl:"target_boot_diagnostic_storage_account_id,attr"`
	// TargetCapacityReservationGroupId: string, optional
	TargetCapacityReservationGroupId terra.StringValue `hcl:"target_capacity_reservation_group_id,attr"`
	// TargetEdgeZone: string, optional
	TargetEdgeZone terra.StringValue `hcl:"target_edge_zone,attr"`
	// TargetNetworkId: string, optional
	TargetNetworkId terra.StringValue `hcl:"target_network_id,attr"`
	// TargetProximityPlacementGroupId: string, optional
	TargetProximityPlacementGroupId terra.StringValue `hcl:"target_proximity_placement_group_id,attr"`
	// TargetRecoveryFabricId: string, required
	TargetRecoveryFabricId terra.StringValue `hcl:"target_recovery_fabric_id,attr" validate:"required"`
	// TargetRecoveryProtectionContainerId: string, required
	TargetRecoveryProtectionContainerId terra.StringValue `hcl:"target_recovery_protection_container_id,attr" validate:"required"`
	// TargetResourceGroupId: string, required
	TargetResourceGroupId terra.StringValue `hcl:"target_resource_group_id,attr" validate:"required"`
	// TargetVirtualMachineScaleSetId: string, optional
	TargetVirtualMachineScaleSetId terra.StringValue `hcl:"target_virtual_machine_scale_set_id,attr"`
	// TargetZone: string, optional
	TargetZone terra.StringValue `hcl:"target_zone,attr"`
	// TestNetworkId: string, optional
	TestNetworkId terra.StringValue `hcl:"test_network_id,attr"`
	// ManagedDisk: min=0
	ManagedDisk []ManagedDisk `hcl:"managed_disk,block" validate:"min=0"`
	// NetworkInterface: min=0
	NetworkInterface []NetworkInterface `hcl:"network_interface,block" validate:"min=0"`
	// UnmanagedDisk: min=0
	UnmanagedDisk []UnmanagedDisk `hcl:"unmanaged_disk,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_site_recovery_replicated_vm.

type ManagedDisk

type ManagedDisk struct {
	// DiskId: string, optional
	DiskId terra.StringValue `hcl:"disk_id,attr"`
	// StagingStorageAccountId: string, optional
	StagingStorageAccountId terra.StringValue `hcl:"staging_storage_account_id,attr"`
	// TargetDiskEncryptionSetId: string, optional
	TargetDiskEncryptionSetId terra.StringValue `hcl:"target_disk_encryption_set_id,attr"`
	// TargetDiskType: string, optional
	TargetDiskType terra.StringValue `hcl:"target_disk_type,attr"`
	// TargetReplicaDiskType: string, optional
	TargetReplicaDiskType terra.StringValue `hcl:"target_replica_disk_type,attr"`
	// TargetResourceGroupId: string, optional
	TargetResourceGroupId terra.StringValue `hcl:"target_resource_group_id,attr"`
	// ManagedDiskTargetDiskEncryption: min=0
	TargetDiskEncryption []ManagedDiskTargetDiskEncryption `hcl:"target_disk_encryption,block" validate:"min=0"`
}

type ManagedDiskAttributes

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

func (ManagedDiskAttributes) DiskId

func (ManagedDiskAttributes) InternalRef

func (md ManagedDiskAttributes) InternalRef() (terra.Reference, error)

func (ManagedDiskAttributes) InternalTokens

func (md ManagedDiskAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ManagedDiskAttributes) InternalWithRef

func (ManagedDiskAttributes) StagingStorageAccountId

func (md ManagedDiskAttributes) StagingStorageAccountId() terra.StringValue

func (ManagedDiskAttributes) TargetDiskEncryption

func (ManagedDiskAttributes) TargetDiskEncryptionSetId

func (md ManagedDiskAttributes) TargetDiskEncryptionSetId() terra.StringValue

func (ManagedDiskAttributes) TargetDiskType

func (md ManagedDiskAttributes) TargetDiskType() terra.StringValue

func (ManagedDiskAttributes) TargetReplicaDiskType

func (md ManagedDiskAttributes) TargetReplicaDiskType() terra.StringValue

func (ManagedDiskAttributes) TargetResourceGroupId

func (md ManagedDiskAttributes) TargetResourceGroupId() terra.StringValue

type ManagedDiskState

type ManagedDiskState struct {
	DiskId                    string                                 `json:"disk_id"`
	StagingStorageAccountId   string                                 `json:"staging_storage_account_id"`
	TargetDiskEncryptionSetId string                                 `json:"target_disk_encryption_set_id"`
	TargetDiskType            string                                 `json:"target_disk_type"`
	TargetReplicaDiskType     string                                 `json:"target_replica_disk_type"`
	TargetResourceGroupId     string                                 `json:"target_resource_group_id"`
	TargetDiskEncryption      []ManagedDiskTargetDiskEncryptionState `json:"target_disk_encryption"`
}

type ManagedDiskTargetDiskEncryption

type ManagedDiskTargetDiskEncryption struct {
	// ManagedDiskTargetDiskEncryptionDiskEncryptionKey: min=0
	DiskEncryptionKey []ManagedDiskTargetDiskEncryptionDiskEncryptionKey `hcl:"disk_encryption_key,block" validate:"min=0"`
	// ManagedDiskTargetDiskEncryptionKeyEncryptionKey: min=0
	KeyEncryptionKey []ManagedDiskTargetDiskEncryptionKeyEncryptionKey `hcl:"key_encryption_key,block" validate:"min=0"`
}

type ManagedDiskTargetDiskEncryptionAttributes

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

func (ManagedDiskTargetDiskEncryptionAttributes) DiskEncryptionKey

func (ManagedDiskTargetDiskEncryptionAttributes) InternalRef

func (ManagedDiskTargetDiskEncryptionAttributes) InternalTokens

func (ManagedDiskTargetDiskEncryptionAttributes) InternalWithRef

func (ManagedDiskTargetDiskEncryptionAttributes) KeyEncryptionKey

type ManagedDiskTargetDiskEncryptionDiskEncryptionKey

type ManagedDiskTargetDiskEncryptionDiskEncryptionKey struct {
	// SecretUrl: string, optional
	SecretUrl terra.StringValue `hcl:"secret_url,attr"`
	// VaultId: string, optional
	VaultId terra.StringValue `hcl:"vault_id,attr"`
}

type ManagedDiskTargetDiskEncryptionDiskEncryptionKeyAttributes

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

func (ManagedDiskTargetDiskEncryptionDiskEncryptionKeyAttributes) InternalRef

func (ManagedDiskTargetDiskEncryptionDiskEncryptionKeyAttributes) InternalTokens

func (ManagedDiskTargetDiskEncryptionDiskEncryptionKeyAttributes) InternalWithRef

func (ManagedDiskTargetDiskEncryptionDiskEncryptionKeyAttributes) SecretUrl

func (ManagedDiskTargetDiskEncryptionDiskEncryptionKeyAttributes) VaultId

type ManagedDiskTargetDiskEncryptionDiskEncryptionKeyState

type ManagedDiskTargetDiskEncryptionDiskEncryptionKeyState struct {
	SecretUrl string `json:"secret_url"`
	VaultId   string `json:"vault_id"`
}

type ManagedDiskTargetDiskEncryptionKeyEncryptionKey

type ManagedDiskTargetDiskEncryptionKeyEncryptionKey struct {
	// KeyUrl: string, optional
	KeyUrl terra.StringValue `hcl:"key_url,attr"`
	// VaultId: string, optional
	VaultId terra.StringValue `hcl:"vault_id,attr"`
}

type ManagedDiskTargetDiskEncryptionKeyEncryptionKeyAttributes

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

func (ManagedDiskTargetDiskEncryptionKeyEncryptionKeyAttributes) InternalRef

func (ManagedDiskTargetDiskEncryptionKeyEncryptionKeyAttributes) InternalTokens

func (ManagedDiskTargetDiskEncryptionKeyEncryptionKeyAttributes) InternalWithRef

func (ManagedDiskTargetDiskEncryptionKeyEncryptionKeyAttributes) KeyUrl

func (ManagedDiskTargetDiskEncryptionKeyEncryptionKeyAttributes) VaultId

type ManagedDiskTargetDiskEncryptionKeyEncryptionKeyState

type ManagedDiskTargetDiskEncryptionKeyEncryptionKeyState struct {
	KeyUrl  string `json:"key_url"`
	VaultId string `json:"vault_id"`
}

type ManagedDiskTargetDiskEncryptionState

type ManagedDiskTargetDiskEncryptionState struct {
	DiskEncryptionKey []ManagedDiskTargetDiskEncryptionDiskEncryptionKeyState `json:"disk_encryption_key"`
	KeyEncryptionKey  []ManagedDiskTargetDiskEncryptionKeyEncryptionKeyState  `json:"key_encryption_key"`
}

type NetworkInterface

type NetworkInterface struct {
	// FailoverTestPublicIpAddressId: string, optional
	FailoverTestPublicIpAddressId terra.StringValue `hcl:"failover_test_public_ip_address_id,attr"`
	// FailoverTestStaticIp: string, optional
	FailoverTestStaticIp terra.StringValue `hcl:"failover_test_static_ip,attr"`
	// FailoverTestSubnetName: string, optional
	FailoverTestSubnetName terra.StringValue `hcl:"failover_test_subnet_name,attr"`
	// IsPrimary: bool, optional
	IsPrimary terra.BoolValue `hcl:"is_primary,attr"`
	// RecoveryPublicIpAddressId: string, optional
	RecoveryPublicIpAddressId terra.StringValue `hcl:"recovery_public_ip_address_id,attr"`
	// SourceNetworkInterfaceId: string, optional
	SourceNetworkInterfaceId terra.StringValue `hcl:"source_network_interface_id,attr"`
	// TargetStaticIp: string, optional
	TargetStaticIp terra.StringValue `hcl:"target_static_ip,attr"`
	// TargetSubnetName: string, optional
	TargetSubnetName terra.StringValue `hcl:"target_subnet_name,attr"`
}

type NetworkInterfaceAttributes

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

func (NetworkInterfaceAttributes) FailoverTestPublicIpAddressId

func (ni NetworkInterfaceAttributes) FailoverTestPublicIpAddressId() terra.StringValue

func (NetworkInterfaceAttributes) FailoverTestStaticIp

func (ni NetworkInterfaceAttributes) FailoverTestStaticIp() terra.StringValue

func (NetworkInterfaceAttributes) FailoverTestSubnetName

func (ni NetworkInterfaceAttributes) FailoverTestSubnetName() terra.StringValue

func (NetworkInterfaceAttributes) InternalRef

func (ni NetworkInterfaceAttributes) InternalRef() (terra.Reference, error)

func (NetworkInterfaceAttributes) InternalTokens

func (ni NetworkInterfaceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkInterfaceAttributes) InternalWithRef

func (NetworkInterfaceAttributes) IsPrimary

func (NetworkInterfaceAttributes) RecoveryPublicIpAddressId

func (ni NetworkInterfaceAttributes) RecoveryPublicIpAddressId() terra.StringValue

func (NetworkInterfaceAttributes) SourceNetworkInterfaceId

func (ni NetworkInterfaceAttributes) SourceNetworkInterfaceId() terra.StringValue

func (NetworkInterfaceAttributes) TargetStaticIp

func (ni NetworkInterfaceAttributes) TargetStaticIp() terra.StringValue

func (NetworkInterfaceAttributes) TargetSubnetName

func (ni NetworkInterfaceAttributes) TargetSubnetName() terra.StringValue

type NetworkInterfaceState

type NetworkInterfaceState struct {
	FailoverTestPublicIpAddressId string `json:"failover_test_public_ip_address_id"`
	FailoverTestStaticIp          string `json:"failover_test_static_ip"`
	FailoverTestSubnetName        string `json:"failover_test_subnet_name"`
	IsPrimary                     bool   `json:"is_primary"`
	RecoveryPublicIpAddressId     string `json:"recovery_public_ip_address_id"`
	SourceNetworkInterfaceId      string `json:"source_network_interface_id"`
	TargetStaticIp                string `json:"target_static_ip"`
	TargetSubnetName              string `json:"target_subnet_name"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asrrv *Resource) Attributes() azurermSiteRecoveryReplicatedVmAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asrrv *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asrrv *Resource) State() (*azurermSiteRecoveryReplicatedVmState, bool)

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

func (*Resource) StateMust

func (asrrv *Resource) StateMust() *azurermSiteRecoveryReplicatedVmState

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

func (*Resource) Type

func (asrrv *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"`
}

type UnmanagedDisk

type UnmanagedDisk struct {
	// DiskUri: string, optional
	DiskUri terra.StringValue `hcl:"disk_uri,attr"`
	// StagingStorageAccountId: string, optional
	StagingStorageAccountId terra.StringValue `hcl:"staging_storage_account_id,attr"`
	// TargetStorageAccountId: string, optional
	TargetStorageAccountId terra.StringValue `hcl:"target_storage_account_id,attr"`
}

type UnmanagedDiskAttributes

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

func (UnmanagedDiskAttributes) DiskUri

func (UnmanagedDiskAttributes) InternalRef

func (ud UnmanagedDiskAttributes) InternalRef() (terra.Reference, error)

func (UnmanagedDiskAttributes) InternalTokens

func (ud UnmanagedDiskAttributes) InternalTokens() (hclwrite.Tokens, error)

func (UnmanagedDiskAttributes) InternalWithRef

func (UnmanagedDiskAttributes) StagingStorageAccountId

func (ud UnmanagedDiskAttributes) StagingStorageAccountId() terra.StringValue

func (UnmanagedDiskAttributes) TargetStorageAccountId

func (ud UnmanagedDiskAttributes) TargetStorageAccountId() terra.StringValue

type UnmanagedDiskState

type UnmanagedDiskState struct {
	DiskUri                 string `json:"disk_uri"`
	StagingStorageAccountId string `json:"staging_storage_account_id"`
	TargetStorageAccountId  string `json:"target_storage_account_id"`
}

Jump to

Keyboard shortcuts

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