azurerm_virtual_machine_packet_capture

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"`
	// MaximumBytesPerPacket: number, optional
	MaximumBytesPerPacket terra.NumberValue `hcl:"maximum_bytes_per_packet,attr"`
	// MaximumBytesPerSession: number, optional
	MaximumBytesPerSession terra.NumberValue `hcl:"maximum_bytes_per_session,attr"`
	// MaximumCaptureDurationInSeconds: number, optional
	MaximumCaptureDurationInSeconds terra.NumberValue `hcl:"maximum_capture_duration_in_seconds,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// NetworkWatcherId: string, required
	NetworkWatcherId terra.StringValue `hcl:"network_watcher_id,attr" validate:"required"`
	// VirtualMachineId: string, required
	VirtualMachineId terra.StringValue `hcl:"virtual_machine_id,attr" validate:"required"`
	// Filter: min=0
	Filter []Filter `hcl:"filter,block" validate:"min=0"`
	// StorageLocation: required
	StorageLocation *StorageLocation `hcl:"storage_location,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_virtual_machine_packet_capture.

type Filter

type Filter struct {
	// LocalIpAddress: string, optional
	LocalIpAddress terra.StringValue `hcl:"local_ip_address,attr"`
	// LocalPort: string, optional
	LocalPort terra.StringValue `hcl:"local_port,attr"`
	// Protocol: string, required
	Protocol terra.StringValue `hcl:"protocol,attr" validate:"required"`
	// RemoteIpAddress: string, optional
	RemoteIpAddress terra.StringValue `hcl:"remote_ip_address,attr"`
	// RemotePort: string, optional
	RemotePort terra.StringValue `hcl:"remote_port,attr"`
}

type FilterAttributes

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

func (FilterAttributes) InternalRef

func (f FilterAttributes) InternalRef() (terra.Reference, error)

func (FilterAttributes) InternalTokens

func (f FilterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FilterAttributes) InternalWithRef

func (f FilterAttributes) InternalWithRef(ref terra.Reference) FilterAttributes

func (FilterAttributes) LocalIpAddress

func (f FilterAttributes) LocalIpAddress() terra.StringValue

func (FilterAttributes) LocalPort

func (f FilterAttributes) LocalPort() terra.StringValue

func (FilterAttributes) Protocol

func (f FilterAttributes) Protocol() terra.StringValue

func (FilterAttributes) RemoteIpAddress

func (f FilterAttributes) RemoteIpAddress() terra.StringValue

func (FilterAttributes) RemotePort

func (f FilterAttributes) RemotePort() terra.StringValue

type FilterState

type FilterState struct {
	LocalIpAddress  string `json:"local_ip_address"`
	LocalPort       string `json:"local_port"`
	Protocol        string `json:"protocol"`
	RemoteIpAddress string `json:"remote_ip_address"`
	RemotePort      string `json:"remote_port"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (avmpc *Resource) Attributes() azurermVirtualMachinePacketCaptureAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (avmpc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (avmpc *Resource) State() (*azurermVirtualMachinePacketCaptureState, bool)

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

func (*Resource) StateMust

func (avmpc *Resource) StateMust() *azurermVirtualMachinePacketCaptureState

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

func (*Resource) Type

func (avmpc *Resource) Type() string

Type returns the Terraform object type for Resource.

type StorageLocation

type StorageLocation struct {
	// FilePath: string, optional
	FilePath terra.StringValue `hcl:"file_path,attr"`
	// StorageAccountId: string, optional
	StorageAccountId terra.StringValue `hcl:"storage_account_id,attr"`
}

type StorageLocationAttributes

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

func (StorageLocationAttributes) FilePath

func (StorageLocationAttributes) InternalRef

func (sl StorageLocationAttributes) InternalRef() (terra.Reference, error)

func (StorageLocationAttributes) InternalTokens

func (sl StorageLocationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StorageLocationAttributes) InternalWithRef

func (StorageLocationAttributes) StorageAccountId

func (sl StorageLocationAttributes) StorageAccountId() terra.StringValue

func (StorageLocationAttributes) StoragePath

func (sl StorageLocationAttributes) StoragePath() terra.StringValue

type StorageLocationState

type StorageLocationState struct {
	FilePath         string `json:"file_path"`
	StorageAccountId string `json:"storage_account_id"`
	StoragePath      string `json:"storage_path"`
}

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"`
}

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

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
}

Jump to

Keyboard shortcuts

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