azurerm_site_recovery_replication_recovery_plan

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"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RecoveryVaultId: string, required
	RecoveryVaultId terra.StringValue `hcl:"recovery_vault_id,attr" validate:"required"`
	// SourceRecoveryFabricId: string, required
	SourceRecoveryFabricId terra.StringValue `hcl:"source_recovery_fabric_id,attr" validate:"required"`
	// TargetRecoveryFabricId: string, required
	TargetRecoveryFabricId terra.StringValue `hcl:"target_recovery_fabric_id,attr" validate:"required"`
	// AzureToAzureSettings: optional
	AzureToAzureSettings *AzureToAzureSettings `hcl:"azure_to_azure_settings,block"`
	// BootRecoveryGroup: min=0
	BootRecoveryGroup []BootRecoveryGroup `hcl:"boot_recovery_group,block" validate:"min=0"`
	// FailoverRecoveryGroup: optional
	FailoverRecoveryGroup *FailoverRecoveryGroup `hcl:"failover_recovery_group,block"`
	// RecoveryGroup: min=0
	RecoveryGroup []RecoveryGroup `hcl:"recovery_group,block" validate:"min=0"`
	// ShutdownRecoveryGroup: optional
	ShutdownRecoveryGroup *ShutdownRecoveryGroup `hcl:"shutdown_recovery_group,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_site_recovery_replication_recovery_plan.

type AzureToAzureSettings

type AzureToAzureSettings struct {
	// PrimaryEdgeZone: string, optional
	PrimaryEdgeZone terra.StringValue `hcl:"primary_edge_zone,attr"`
	// PrimaryZone: string, optional
	PrimaryZone terra.StringValue `hcl:"primary_zone,attr"`
	// RecoveryEdgeZone: string, optional
	RecoveryEdgeZone terra.StringValue `hcl:"recovery_edge_zone,attr"`
	// RecoveryZone: string, optional
	RecoveryZone terra.StringValue `hcl:"recovery_zone,attr"`
}

type AzureToAzureSettingsAttributes

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

func (AzureToAzureSettingsAttributes) InternalRef

func (atas AzureToAzureSettingsAttributes) InternalRef() (terra.Reference, error)

func (AzureToAzureSettingsAttributes) InternalTokens

func (atas AzureToAzureSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AzureToAzureSettingsAttributes) InternalWithRef

func (AzureToAzureSettingsAttributes) PrimaryEdgeZone

func (atas AzureToAzureSettingsAttributes) PrimaryEdgeZone() terra.StringValue

func (AzureToAzureSettingsAttributes) PrimaryZone

func (AzureToAzureSettingsAttributes) RecoveryEdgeZone

func (atas AzureToAzureSettingsAttributes) RecoveryEdgeZone() terra.StringValue

func (AzureToAzureSettingsAttributes) RecoveryZone

func (atas AzureToAzureSettingsAttributes) RecoveryZone() terra.StringValue

type AzureToAzureSettingsState

type AzureToAzureSettingsState struct {
	PrimaryEdgeZone  string `json:"primary_edge_zone"`
	PrimaryZone      string `json:"primary_zone"`
	RecoveryEdgeZone string `json:"recovery_edge_zone"`
	RecoveryZone     string `json:"recovery_zone"`
}

type BootRecoveryGroup

type BootRecoveryGroup struct {
	// ReplicatedProtectedItems: list of string, optional
	ReplicatedProtectedItems terra.ListValue[terra.StringValue] `hcl:"replicated_protected_items,attr"`
	// BootRecoveryGroupPostAction: min=0
	PostAction []BootRecoveryGroupPostAction `hcl:"post_action,block" validate:"min=0"`
	// BootRecoveryGroupPreAction: min=0
	PreAction []BootRecoveryGroupPreAction `hcl:"pre_action,block" validate:"min=0"`
}

type BootRecoveryGroupAttributes

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

func (BootRecoveryGroupAttributes) InternalRef

func (brg BootRecoveryGroupAttributes) InternalRef() (terra.Reference, error)

func (BootRecoveryGroupAttributes) InternalTokens

func (brg BootRecoveryGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BootRecoveryGroupAttributes) InternalWithRef

func (BootRecoveryGroupAttributes) PostAction

func (BootRecoveryGroupAttributes) PreAction

func (BootRecoveryGroupAttributes) ReplicatedProtectedItems

func (brg BootRecoveryGroupAttributes) ReplicatedProtectedItems() terra.ListValue[terra.StringValue]

type BootRecoveryGroupPostAction

type BootRecoveryGroupPostAction struct {
	// FabricLocation: string, optional
	FabricLocation terra.StringValue `hcl:"fabric_location,attr"`
	// FailOverDirections: set of string, required
	FailOverDirections terra.SetValue[terra.StringValue] `hcl:"fail_over_directions,attr" validate:"required"`
	// FailOverTypes: set of string, required
	FailOverTypes terra.SetValue[terra.StringValue] `hcl:"fail_over_types,attr" validate:"required"`
	// ManualActionInstruction: string, optional
	ManualActionInstruction terra.StringValue `hcl:"manual_action_instruction,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RunbookId: string, optional
	RunbookId terra.StringValue `hcl:"runbook_id,attr"`
	// ScriptPath: string, optional
	ScriptPath terra.StringValue `hcl:"script_path,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type BootRecoveryGroupPostActionAttributes

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

func (BootRecoveryGroupPostActionAttributes) FabricLocation

func (BootRecoveryGroupPostActionAttributes) FailOverDirections

func (BootRecoveryGroupPostActionAttributes) FailOverTypes

func (BootRecoveryGroupPostActionAttributes) InternalRef

func (BootRecoveryGroupPostActionAttributes) InternalTokens

func (BootRecoveryGroupPostActionAttributes) InternalWithRef

func (BootRecoveryGroupPostActionAttributes) ManualActionInstruction

func (pa BootRecoveryGroupPostActionAttributes) ManualActionInstruction() terra.StringValue

func (BootRecoveryGroupPostActionAttributes) Name

func (BootRecoveryGroupPostActionAttributes) RunbookId

func (BootRecoveryGroupPostActionAttributes) ScriptPath

func (BootRecoveryGroupPostActionAttributes) Type

type BootRecoveryGroupPostActionState

type BootRecoveryGroupPostActionState struct {
	FabricLocation          string   `json:"fabric_location"`
	FailOverDirections      []string `json:"fail_over_directions"`
	FailOverTypes           []string `json:"fail_over_types"`
	ManualActionInstruction string   `json:"manual_action_instruction"`
	Name                    string   `json:"name"`
	RunbookId               string   `json:"runbook_id"`
	ScriptPath              string   `json:"script_path"`
	Type                    string   `json:"type"`
}

type BootRecoveryGroupPreAction

type BootRecoveryGroupPreAction struct {
	// FabricLocation: string, optional
	FabricLocation terra.StringValue `hcl:"fabric_location,attr"`
	// FailOverDirections: set of string, required
	FailOverDirections terra.SetValue[terra.StringValue] `hcl:"fail_over_directions,attr" validate:"required"`
	// FailOverTypes: set of string, required
	FailOverTypes terra.SetValue[terra.StringValue] `hcl:"fail_over_types,attr" validate:"required"`
	// ManualActionInstruction: string, optional
	ManualActionInstruction terra.StringValue `hcl:"manual_action_instruction,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RunbookId: string, optional
	RunbookId terra.StringValue `hcl:"runbook_id,attr"`
	// ScriptPath: string, optional
	ScriptPath terra.StringValue `hcl:"script_path,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type BootRecoveryGroupPreActionAttributes

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

func (BootRecoveryGroupPreActionAttributes) FabricLocation

func (BootRecoveryGroupPreActionAttributes) FailOverDirections

func (BootRecoveryGroupPreActionAttributes) FailOverTypes

func (BootRecoveryGroupPreActionAttributes) InternalRef

func (BootRecoveryGroupPreActionAttributes) InternalTokens

func (BootRecoveryGroupPreActionAttributes) InternalWithRef

func (BootRecoveryGroupPreActionAttributes) ManualActionInstruction

func (pa BootRecoveryGroupPreActionAttributes) ManualActionInstruction() terra.StringValue

func (BootRecoveryGroupPreActionAttributes) Name

func (BootRecoveryGroupPreActionAttributes) RunbookId

func (BootRecoveryGroupPreActionAttributes) ScriptPath

func (BootRecoveryGroupPreActionAttributes) Type

type BootRecoveryGroupPreActionState

type BootRecoveryGroupPreActionState struct {
	FabricLocation          string   `json:"fabric_location"`
	FailOverDirections      []string `json:"fail_over_directions"`
	FailOverTypes           []string `json:"fail_over_types"`
	ManualActionInstruction string   `json:"manual_action_instruction"`
	Name                    string   `json:"name"`
	RunbookId               string   `json:"runbook_id"`
	ScriptPath              string   `json:"script_path"`
	Type                    string   `json:"type"`
}

type BootRecoveryGroupState

type BootRecoveryGroupState struct {
	ReplicatedProtectedItems []string                           `json:"replicated_protected_items"`
	PostAction               []BootRecoveryGroupPostActionState `json:"post_action"`
	PreAction                []BootRecoveryGroupPreActionState  `json:"pre_action"`
}

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"`
	// RecoveryVaultId: string, required
	RecoveryVaultId terra.StringValue `hcl:"recovery_vault_id,attr" validate:"required"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for azurerm_site_recovery_replication_recovery_plan.

type DataAzureToAzureSettingsAttributes

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

func (DataAzureToAzureSettingsAttributes) InternalRef

func (DataAzureToAzureSettingsAttributes) InternalTokens

func (atas DataAzureToAzureSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataAzureToAzureSettingsAttributes) InternalWithRef

func (DataAzureToAzureSettingsAttributes) PrimaryEdgeZone

func (atas DataAzureToAzureSettingsAttributes) PrimaryEdgeZone() terra.StringValue

func (DataAzureToAzureSettingsAttributes) PrimaryZone

func (DataAzureToAzureSettingsAttributes) RecoveryEdgeZone

func (atas DataAzureToAzureSettingsAttributes) RecoveryEdgeZone() terra.StringValue

func (DataAzureToAzureSettingsAttributes) RecoveryZone

type DataAzureToAzureSettingsState

type DataAzureToAzureSettingsState struct {
	PrimaryEdgeZone  string `json:"primary_edge_zone"`
	PrimaryZone      string `json:"primary_zone"`
	RecoveryEdgeZone string `json:"recovery_edge_zone"`
	RecoveryZone     string `json:"recovery_zone"`
}

type DataRecoveryGroupAttributes

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

func (DataRecoveryGroupAttributes) InternalRef

func (rg DataRecoveryGroupAttributes) InternalRef() (terra.Reference, error)

func (DataRecoveryGroupAttributes) InternalTokens

func (rg DataRecoveryGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataRecoveryGroupAttributes) InternalWithRef

func (DataRecoveryGroupAttributes) PostAction

func (DataRecoveryGroupAttributes) PreAction

func (DataRecoveryGroupAttributes) ReplicatedProtectedItems

func (rg DataRecoveryGroupAttributes) ReplicatedProtectedItems() terra.ListValue[terra.StringValue]

func (DataRecoveryGroupAttributes) Type

type DataRecoveryGroupPostActionAttributes

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

func (DataRecoveryGroupPostActionAttributes) FabricLocation

func (DataRecoveryGroupPostActionAttributes) FailOverDirections

func (DataRecoveryGroupPostActionAttributes) FailOverTypes

func (DataRecoveryGroupPostActionAttributes) InternalRef

func (DataRecoveryGroupPostActionAttributes) InternalTokens

func (DataRecoveryGroupPostActionAttributes) InternalWithRef

func (DataRecoveryGroupPostActionAttributes) ManualActionInstruction

func (pa DataRecoveryGroupPostActionAttributes) ManualActionInstruction() terra.StringValue

func (DataRecoveryGroupPostActionAttributes) Name

func (DataRecoveryGroupPostActionAttributes) RunbookId

func (DataRecoveryGroupPostActionAttributes) ScriptPath

func (DataRecoveryGroupPostActionAttributes) Type

type DataRecoveryGroupPostActionState

type DataRecoveryGroupPostActionState struct {
	FabricLocation          string   `json:"fabric_location"`
	FailOverDirections      []string `json:"fail_over_directions"`
	FailOverTypes           []string `json:"fail_over_types"`
	ManualActionInstruction string   `json:"manual_action_instruction"`
	Name                    string   `json:"name"`
	RunbookId               string   `json:"runbook_id"`
	ScriptPath              string   `json:"script_path"`
	Type                    string   `json:"type"`
}

type DataRecoveryGroupPreActionAttributes

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

func (DataRecoveryGroupPreActionAttributes) FabricLocation

func (DataRecoveryGroupPreActionAttributes) FailOverDirections

func (DataRecoveryGroupPreActionAttributes) FailOverTypes

func (DataRecoveryGroupPreActionAttributes) InternalRef

func (DataRecoveryGroupPreActionAttributes) InternalTokens

func (DataRecoveryGroupPreActionAttributes) InternalWithRef

func (DataRecoveryGroupPreActionAttributes) ManualActionInstruction

func (pa DataRecoveryGroupPreActionAttributes) ManualActionInstruction() terra.StringValue

func (DataRecoveryGroupPreActionAttributes) Name

func (DataRecoveryGroupPreActionAttributes) RunbookId

func (DataRecoveryGroupPreActionAttributes) ScriptPath

func (DataRecoveryGroupPreActionAttributes) Type

type DataRecoveryGroupPreActionState

type DataRecoveryGroupPreActionState struct {
	FabricLocation          string   `json:"fabric_location"`
	FailOverDirections      []string `json:"fail_over_directions"`
	FailOverTypes           []string `json:"fail_over_types"`
	ManualActionInstruction string   `json:"manual_action_instruction"`
	Name                    string   `json:"name"`
	RunbookId               string   `json:"runbook_id"`
	ScriptPath              string   `json:"script_path"`
	Type                    string   `json:"type"`
}

type DataRecoveryGroupState

type DataRecoveryGroupState struct {
	ReplicatedProtectedItems []string                           `json:"replicated_protected_items"`
	Type                     string                             `json:"type"`
	PostAction               []DataRecoveryGroupPostActionState `json:"post_action"`
	PreAction                []DataRecoveryGroupPreActionState  `json:"pre_action"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource azurerm_site_recovery_replication_recovery_plan.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (asrrrp *DataSource) Attributes() dataAzurermSiteRecoveryReplicationRecoveryPlanAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (asrrrp *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (asrrrp *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 FailoverRecoveryGroup

type FailoverRecoveryGroup struct {
	// FailoverRecoveryGroupPostAction: min=0
	PostAction []FailoverRecoveryGroupPostAction `hcl:"post_action,block" validate:"min=0"`
	// FailoverRecoveryGroupPreAction: min=0
	PreAction []FailoverRecoveryGroupPreAction `hcl:"pre_action,block" validate:"min=0"`
}

type FailoverRecoveryGroupAttributes

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

func (FailoverRecoveryGroupAttributes) InternalRef

func (FailoverRecoveryGroupAttributes) InternalTokens

func (frg FailoverRecoveryGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FailoverRecoveryGroupAttributes) InternalWithRef

func (FailoverRecoveryGroupAttributes) PostAction

func (FailoverRecoveryGroupAttributes) PreAction

type FailoverRecoveryGroupPostAction

type FailoverRecoveryGroupPostAction struct {
	// FabricLocation: string, optional
	FabricLocation terra.StringValue `hcl:"fabric_location,attr"`
	// FailOverDirections: set of string, required
	FailOverDirections terra.SetValue[terra.StringValue] `hcl:"fail_over_directions,attr" validate:"required"`
	// FailOverTypes: set of string, required
	FailOverTypes terra.SetValue[terra.StringValue] `hcl:"fail_over_types,attr" validate:"required"`
	// ManualActionInstruction: string, optional
	ManualActionInstruction terra.StringValue `hcl:"manual_action_instruction,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RunbookId: string, optional
	RunbookId terra.StringValue `hcl:"runbook_id,attr"`
	// ScriptPath: string, optional
	ScriptPath terra.StringValue `hcl:"script_path,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type FailoverRecoveryGroupPostActionAttributes

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

func (FailoverRecoveryGroupPostActionAttributes) FabricLocation

func (FailoverRecoveryGroupPostActionAttributes) FailOverDirections

func (FailoverRecoveryGroupPostActionAttributes) FailOverTypes

func (FailoverRecoveryGroupPostActionAttributes) InternalRef

func (FailoverRecoveryGroupPostActionAttributes) InternalTokens

func (FailoverRecoveryGroupPostActionAttributes) InternalWithRef

func (FailoverRecoveryGroupPostActionAttributes) ManualActionInstruction

func (pa FailoverRecoveryGroupPostActionAttributes) ManualActionInstruction() terra.StringValue

func (FailoverRecoveryGroupPostActionAttributes) Name

func (FailoverRecoveryGroupPostActionAttributes) RunbookId

func (FailoverRecoveryGroupPostActionAttributes) ScriptPath

func (FailoverRecoveryGroupPostActionAttributes) Type

type FailoverRecoveryGroupPostActionState

type FailoverRecoveryGroupPostActionState struct {
	FabricLocation          string   `json:"fabric_location"`
	FailOverDirections      []string `json:"fail_over_directions"`
	FailOverTypes           []string `json:"fail_over_types"`
	ManualActionInstruction string   `json:"manual_action_instruction"`
	Name                    string   `json:"name"`
	RunbookId               string   `json:"runbook_id"`
	ScriptPath              string   `json:"script_path"`
	Type                    string   `json:"type"`
}

type FailoverRecoveryGroupPreAction

type FailoverRecoveryGroupPreAction struct {
	// FabricLocation: string, optional
	FabricLocation terra.StringValue `hcl:"fabric_location,attr"`
	// FailOverDirections: set of string, required
	FailOverDirections terra.SetValue[terra.StringValue] `hcl:"fail_over_directions,attr" validate:"required"`
	// FailOverTypes: set of string, required
	FailOverTypes terra.SetValue[terra.StringValue] `hcl:"fail_over_types,attr" validate:"required"`
	// ManualActionInstruction: string, optional
	ManualActionInstruction terra.StringValue `hcl:"manual_action_instruction,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RunbookId: string, optional
	RunbookId terra.StringValue `hcl:"runbook_id,attr"`
	// ScriptPath: string, optional
	ScriptPath terra.StringValue `hcl:"script_path,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type FailoverRecoveryGroupPreActionAttributes

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

func (FailoverRecoveryGroupPreActionAttributes) FabricLocation

func (FailoverRecoveryGroupPreActionAttributes) FailOverDirections

func (FailoverRecoveryGroupPreActionAttributes) FailOverTypes

func (FailoverRecoveryGroupPreActionAttributes) InternalRef

func (FailoverRecoveryGroupPreActionAttributes) InternalTokens

func (FailoverRecoveryGroupPreActionAttributes) InternalWithRef

func (FailoverRecoveryGroupPreActionAttributes) ManualActionInstruction

func (pa FailoverRecoveryGroupPreActionAttributes) ManualActionInstruction() terra.StringValue

func (FailoverRecoveryGroupPreActionAttributes) Name

func (FailoverRecoveryGroupPreActionAttributes) RunbookId

func (FailoverRecoveryGroupPreActionAttributes) ScriptPath

func (FailoverRecoveryGroupPreActionAttributes) Type

type FailoverRecoveryGroupPreActionState

type FailoverRecoveryGroupPreActionState struct {
	FabricLocation          string   `json:"fabric_location"`
	FailOverDirections      []string `json:"fail_over_directions"`
	FailOverTypes           []string `json:"fail_over_types"`
	ManualActionInstruction string   `json:"manual_action_instruction"`
	Name                    string   `json:"name"`
	RunbookId               string   `json:"runbook_id"`
	ScriptPath              string   `json:"script_path"`
	Type                    string   `json:"type"`
}

type FailoverRecoveryGroupState

type FailoverRecoveryGroupState struct {
	PostAction []FailoverRecoveryGroupPostActionState `json:"post_action"`
	PreAction  []FailoverRecoveryGroupPreActionState  `json:"pre_action"`
}

type RecoveryGroup

type RecoveryGroup struct {
	// ReplicatedProtectedItems: list of string, optional
	ReplicatedProtectedItems terra.ListValue[terra.StringValue] `hcl:"replicated_protected_items,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// RecoveryGroupPostAction: min=0
	PostAction []RecoveryGroupPostAction `hcl:"post_action,block" validate:"min=0"`
	// RecoveryGroupPreAction: min=0
	PreAction []RecoveryGroupPreAction `hcl:"pre_action,block" validate:"min=0"`
}

type RecoveryGroupAttributes

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

func (RecoveryGroupAttributes) InternalRef

func (rg RecoveryGroupAttributes) InternalRef() (terra.Reference, error)

func (RecoveryGroupAttributes) InternalTokens

func (rg RecoveryGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RecoveryGroupAttributes) InternalWithRef

func (RecoveryGroupAttributes) PostAction

func (RecoveryGroupAttributes) PreAction

func (RecoveryGroupAttributes) ReplicatedProtectedItems

func (rg RecoveryGroupAttributes) ReplicatedProtectedItems() terra.ListValue[terra.StringValue]

func (RecoveryGroupAttributes) Type

type RecoveryGroupPostAction

type RecoveryGroupPostAction struct {
	// FabricLocation: string, optional
	FabricLocation terra.StringValue `hcl:"fabric_location,attr"`
	// FailOverDirections: set of string, required
	FailOverDirections terra.SetValue[terra.StringValue] `hcl:"fail_over_directions,attr" validate:"required"`
	// FailOverTypes: set of string, required
	FailOverTypes terra.SetValue[terra.StringValue] `hcl:"fail_over_types,attr" validate:"required"`
	// ManualActionInstruction: string, optional
	ManualActionInstruction terra.StringValue `hcl:"manual_action_instruction,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RunbookId: string, optional
	RunbookId terra.StringValue `hcl:"runbook_id,attr"`
	// ScriptPath: string, optional
	ScriptPath terra.StringValue `hcl:"script_path,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type RecoveryGroupPostActionAttributes

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

func (RecoveryGroupPostActionAttributes) FabricLocation

func (RecoveryGroupPostActionAttributes) FailOverDirections

func (RecoveryGroupPostActionAttributes) FailOverTypes

func (RecoveryGroupPostActionAttributes) InternalRef

func (RecoveryGroupPostActionAttributes) InternalTokens

func (pa RecoveryGroupPostActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RecoveryGroupPostActionAttributes) InternalWithRef

func (RecoveryGroupPostActionAttributes) ManualActionInstruction

func (pa RecoveryGroupPostActionAttributes) ManualActionInstruction() terra.StringValue

func (RecoveryGroupPostActionAttributes) Name

func (RecoveryGroupPostActionAttributes) RunbookId

func (RecoveryGroupPostActionAttributes) ScriptPath

func (RecoveryGroupPostActionAttributes) Type

type RecoveryGroupPostActionState

type RecoveryGroupPostActionState struct {
	FabricLocation          string   `json:"fabric_location"`
	FailOverDirections      []string `json:"fail_over_directions"`
	FailOverTypes           []string `json:"fail_over_types"`
	ManualActionInstruction string   `json:"manual_action_instruction"`
	Name                    string   `json:"name"`
	RunbookId               string   `json:"runbook_id"`
	ScriptPath              string   `json:"script_path"`
	Type                    string   `json:"type"`
}

type RecoveryGroupPreAction

type RecoveryGroupPreAction struct {
	// FabricLocation: string, optional
	FabricLocation terra.StringValue `hcl:"fabric_location,attr"`
	// FailOverDirections: set of string, required
	FailOverDirections terra.SetValue[terra.StringValue] `hcl:"fail_over_directions,attr" validate:"required"`
	// FailOverTypes: set of string, required
	FailOverTypes terra.SetValue[terra.StringValue] `hcl:"fail_over_types,attr" validate:"required"`
	// ManualActionInstruction: string, optional
	ManualActionInstruction terra.StringValue `hcl:"manual_action_instruction,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RunbookId: string, optional
	RunbookId terra.StringValue `hcl:"runbook_id,attr"`
	// ScriptPath: string, optional
	ScriptPath terra.StringValue `hcl:"script_path,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type RecoveryGroupPreActionAttributes

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

func (RecoveryGroupPreActionAttributes) FabricLocation

func (RecoveryGroupPreActionAttributes) FailOverDirections

func (RecoveryGroupPreActionAttributes) FailOverTypes

func (RecoveryGroupPreActionAttributes) InternalRef

func (RecoveryGroupPreActionAttributes) InternalTokens

func (pa RecoveryGroupPreActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RecoveryGroupPreActionAttributes) InternalWithRef

func (RecoveryGroupPreActionAttributes) ManualActionInstruction

func (pa RecoveryGroupPreActionAttributes) ManualActionInstruction() terra.StringValue

func (RecoveryGroupPreActionAttributes) Name

func (RecoveryGroupPreActionAttributes) RunbookId

func (RecoveryGroupPreActionAttributes) ScriptPath

func (RecoveryGroupPreActionAttributes) Type

type RecoveryGroupPreActionState

type RecoveryGroupPreActionState struct {
	FabricLocation          string   `json:"fabric_location"`
	FailOverDirections      []string `json:"fail_over_directions"`
	FailOverTypes           []string `json:"fail_over_types"`
	ManualActionInstruction string   `json:"manual_action_instruction"`
	Name                    string   `json:"name"`
	RunbookId               string   `json:"runbook_id"`
	ScriptPath              string   `json:"script_path"`
	Type                    string   `json:"type"`
}

type RecoveryGroupState

type RecoveryGroupState struct {
	ReplicatedProtectedItems []string                       `json:"replicated_protected_items"`
	Type                     string                         `json:"type"`
	PostAction               []RecoveryGroupPostActionState `json:"post_action"`
	PreAction                []RecoveryGroupPreActionState  `json:"pre_action"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asrrrp *Resource) Attributes() azurermSiteRecoveryReplicationRecoveryPlanAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asrrrp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asrrrp *Resource) State() (*azurermSiteRecoveryReplicationRecoveryPlanState, bool)

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

func (*Resource) StateMust

func (asrrrp *Resource) StateMust() *azurermSiteRecoveryReplicationRecoveryPlanState

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

func (*Resource) Type

func (asrrrp *Resource) Type() string

Type returns the Terraform object type for Resource.

type ShutdownRecoveryGroup

type ShutdownRecoveryGroup struct {
	// ShutdownRecoveryGroupPostAction: min=0
	PostAction []ShutdownRecoveryGroupPostAction `hcl:"post_action,block" validate:"min=0"`
	// ShutdownRecoveryGroupPreAction: min=0
	PreAction []ShutdownRecoveryGroupPreAction `hcl:"pre_action,block" validate:"min=0"`
}

type ShutdownRecoveryGroupAttributes

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

func (ShutdownRecoveryGroupAttributes) InternalRef

func (ShutdownRecoveryGroupAttributes) InternalTokens

func (srg ShutdownRecoveryGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ShutdownRecoveryGroupAttributes) InternalWithRef

func (ShutdownRecoveryGroupAttributes) PostAction

func (ShutdownRecoveryGroupAttributes) PreAction

type ShutdownRecoveryGroupPostAction

type ShutdownRecoveryGroupPostAction struct {
	// FabricLocation: string, optional
	FabricLocation terra.StringValue `hcl:"fabric_location,attr"`
	// FailOverDirections: set of string, required
	FailOverDirections terra.SetValue[terra.StringValue] `hcl:"fail_over_directions,attr" validate:"required"`
	// FailOverTypes: set of string, required
	FailOverTypes terra.SetValue[terra.StringValue] `hcl:"fail_over_types,attr" validate:"required"`
	// ManualActionInstruction: string, optional
	ManualActionInstruction terra.StringValue `hcl:"manual_action_instruction,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RunbookId: string, optional
	RunbookId terra.StringValue `hcl:"runbook_id,attr"`
	// ScriptPath: string, optional
	ScriptPath terra.StringValue `hcl:"script_path,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type ShutdownRecoveryGroupPostActionAttributes

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

func (ShutdownRecoveryGroupPostActionAttributes) FabricLocation

func (ShutdownRecoveryGroupPostActionAttributes) FailOverDirections

func (ShutdownRecoveryGroupPostActionAttributes) FailOverTypes

func (ShutdownRecoveryGroupPostActionAttributes) InternalRef

func (ShutdownRecoveryGroupPostActionAttributes) InternalTokens

func (ShutdownRecoveryGroupPostActionAttributes) InternalWithRef

func (ShutdownRecoveryGroupPostActionAttributes) ManualActionInstruction

func (pa ShutdownRecoveryGroupPostActionAttributes) ManualActionInstruction() terra.StringValue

func (ShutdownRecoveryGroupPostActionAttributes) Name

func (ShutdownRecoveryGroupPostActionAttributes) RunbookId

func (ShutdownRecoveryGroupPostActionAttributes) ScriptPath

func (ShutdownRecoveryGroupPostActionAttributes) Type

type ShutdownRecoveryGroupPostActionState

type ShutdownRecoveryGroupPostActionState struct {
	FabricLocation          string   `json:"fabric_location"`
	FailOverDirections      []string `json:"fail_over_directions"`
	FailOverTypes           []string `json:"fail_over_types"`
	ManualActionInstruction string   `json:"manual_action_instruction"`
	Name                    string   `json:"name"`
	RunbookId               string   `json:"runbook_id"`
	ScriptPath              string   `json:"script_path"`
	Type                    string   `json:"type"`
}

type ShutdownRecoveryGroupPreAction

type ShutdownRecoveryGroupPreAction struct {
	// FabricLocation: string, optional
	FabricLocation terra.StringValue `hcl:"fabric_location,attr"`
	// FailOverDirections: set of string, required
	FailOverDirections terra.SetValue[terra.StringValue] `hcl:"fail_over_directions,attr" validate:"required"`
	// FailOverTypes: set of string, required
	FailOverTypes terra.SetValue[terra.StringValue] `hcl:"fail_over_types,attr" validate:"required"`
	// ManualActionInstruction: string, optional
	ManualActionInstruction terra.StringValue `hcl:"manual_action_instruction,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RunbookId: string, optional
	RunbookId terra.StringValue `hcl:"runbook_id,attr"`
	// ScriptPath: string, optional
	ScriptPath terra.StringValue `hcl:"script_path,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type ShutdownRecoveryGroupPreActionAttributes

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

func (ShutdownRecoveryGroupPreActionAttributes) FabricLocation

func (ShutdownRecoveryGroupPreActionAttributes) FailOverDirections

func (ShutdownRecoveryGroupPreActionAttributes) FailOverTypes

func (ShutdownRecoveryGroupPreActionAttributes) InternalRef

func (ShutdownRecoveryGroupPreActionAttributes) InternalTokens

func (ShutdownRecoveryGroupPreActionAttributes) InternalWithRef

func (ShutdownRecoveryGroupPreActionAttributes) ManualActionInstruction

func (pa ShutdownRecoveryGroupPreActionAttributes) ManualActionInstruction() terra.StringValue

func (ShutdownRecoveryGroupPreActionAttributes) Name

func (ShutdownRecoveryGroupPreActionAttributes) RunbookId

func (ShutdownRecoveryGroupPreActionAttributes) ScriptPath

func (ShutdownRecoveryGroupPreActionAttributes) Type

type ShutdownRecoveryGroupPreActionState

type ShutdownRecoveryGroupPreActionState struct {
	FabricLocation          string   `json:"fabric_location"`
	FailOverDirections      []string `json:"fail_over_directions"`
	FailOverTypes           []string `json:"fail_over_types"`
	ManualActionInstruction string   `json:"manual_action_instruction"`
	Name                    string   `json:"name"`
	RunbookId               string   `json:"runbook_id"`
	ScriptPath              string   `json:"script_path"`
	Type                    string   `json:"type"`
}

type ShutdownRecoveryGroupState

type ShutdownRecoveryGroupState struct {
	PostAction []ShutdownRecoveryGroupPostActionState `json:"post_action"`
	PreAction  []ShutdownRecoveryGroupPreActionState  `json:"pre_action"`
}

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