azurerm_network_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"`
	// MaximumCaptureDuration: number, optional
	MaximumCaptureDuration terra.NumberValue `hcl:"maximum_capture_duration,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// NetworkWatcherName: string, required
	NetworkWatcherName terra.StringValue `hcl:"network_watcher_name,attr" validate:"required"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// TargetResourceId: string, required
	TargetResourceId terra.StringValue `hcl:"target_resource_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_network_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_network_packet_capture.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (anpc *Resource) Attributes() azurermNetworkPacketCaptureAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (anpc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (anpc *Resource) State() (*azurermNetworkPacketCaptureState, bool)

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

func (*Resource) StateMust

func (anpc *Resource) StateMust() *azurermNetworkPacketCaptureState

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

func (*Resource) Type

func (anpc *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