aws_network_interface

package
v5.45.0 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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InterfaceType: string, optional
	InterfaceType terra.StringValue `hcl:"interface_type,attr"`
	// Ipv4PrefixCount: number, optional
	Ipv4PrefixCount terra.NumberValue `hcl:"ipv4_prefix_count,attr"`
	// Ipv4Prefixes: set of string, optional
	Ipv4Prefixes terra.SetValue[terra.StringValue] `hcl:"ipv4_prefixes,attr"`
	// Ipv6AddressCount: number, optional
	Ipv6AddressCount terra.NumberValue `hcl:"ipv6_address_count,attr"`
	// Ipv6AddressList: list of string, optional
	Ipv6AddressList terra.ListValue[terra.StringValue] `hcl:"ipv6_address_list,attr"`
	// Ipv6AddressListEnabled: bool, optional
	Ipv6AddressListEnabled terra.BoolValue `hcl:"ipv6_address_list_enabled,attr"`
	// Ipv6Addresses: set of string, optional
	Ipv6Addresses terra.SetValue[terra.StringValue] `hcl:"ipv6_addresses,attr"`
	// Ipv6PrefixCount: number, optional
	Ipv6PrefixCount terra.NumberValue `hcl:"ipv6_prefix_count,attr"`
	// Ipv6Prefixes: set of string, optional
	Ipv6Prefixes terra.SetValue[terra.StringValue] `hcl:"ipv6_prefixes,attr"`
	// PrivateIp: string, optional
	PrivateIp terra.StringValue `hcl:"private_ip,attr"`
	// PrivateIpList: list of string, optional
	PrivateIpList terra.ListValue[terra.StringValue] `hcl:"private_ip_list,attr"`
	// PrivateIpListEnabled: bool, optional
	PrivateIpListEnabled terra.BoolValue `hcl:"private_ip_list_enabled,attr"`
	// PrivateIps: set of string, optional
	PrivateIps terra.SetValue[terra.StringValue] `hcl:"private_ips,attr"`
	// PrivateIpsCount: number, optional
	PrivateIpsCount terra.NumberValue `hcl:"private_ips_count,attr"`
	// SecurityGroups: set of string, optional
	SecurityGroups terra.SetValue[terra.StringValue] `hcl:"security_groups,attr"`
	// SourceDestCheck: bool, optional
	SourceDestCheck terra.BoolValue `hcl:"source_dest_check,attr"`
	// SubnetId: string, required
	SubnetId terra.StringValue `hcl:"subnet_id,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// Attachment: min=0
	Attachment []Attachment `hcl:"attachment,block" validate:"min=0"`
}

Args contains the configurations for aws_network_interface.

type Attachment

type Attachment struct {
	// DeviceIndex: number, required
	DeviceIndex terra.NumberValue `hcl:"device_index,attr" validate:"required"`
	// Instance: string, required
	Instance terra.StringValue `hcl:"instance,attr" validate:"required"`
}

type AttachmentAttributes

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

func (AttachmentAttributes) AttachmentId

func (a AttachmentAttributes) AttachmentId() terra.StringValue

func (AttachmentAttributes) DeviceIndex

func (a AttachmentAttributes) DeviceIndex() terra.NumberValue

func (AttachmentAttributes) Instance

func (a AttachmentAttributes) Instance() terra.StringValue

func (AttachmentAttributes) InternalRef

func (a AttachmentAttributes) InternalRef() (terra.Reference, error)

func (AttachmentAttributes) InternalTokens

func (a AttachmentAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AttachmentAttributes) InternalWithRef

type AttachmentState

type AttachmentState struct {
	AttachmentId string  `json:"attachment_id"`
	DeviceIndex  float64 `json:"device_index"`
	Instance     string  `json:"instance"`
}

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Filter: min=0
	Filter []DataFilter `hcl:"filter,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for aws_network_interface.

type DataAssociationAttributes

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

func (DataAssociationAttributes) AllocationId

func (a DataAssociationAttributes) AllocationId() terra.StringValue

func (DataAssociationAttributes) AssociationId

func (a DataAssociationAttributes) AssociationId() terra.StringValue

func (DataAssociationAttributes) CarrierIp

func (DataAssociationAttributes) CustomerOwnedIp

func (a DataAssociationAttributes) CustomerOwnedIp() terra.StringValue

func (DataAssociationAttributes) InternalRef

func (a DataAssociationAttributes) InternalRef() (terra.Reference, error)

func (DataAssociationAttributes) InternalTokens

func (a DataAssociationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataAssociationAttributes) InternalWithRef

func (DataAssociationAttributes) IpOwnerId

func (DataAssociationAttributes) PublicDnsName

func (a DataAssociationAttributes) PublicDnsName() terra.StringValue

func (DataAssociationAttributes) PublicIp

type DataAssociationState

type DataAssociationState struct {
	AllocationId    string `json:"allocation_id"`
	AssociationId   string `json:"association_id"`
	CarrierIp       string `json:"carrier_ip"`
	CustomerOwnedIp string `json:"customer_owned_ip"`
	IpOwnerId       string `json:"ip_owner_id"`
	PublicDnsName   string `json:"public_dns_name"`
	PublicIp        string `json:"public_ip"`
}

type DataAttachmentAttributes

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

func (DataAttachmentAttributes) AttachmentId

func (a DataAttachmentAttributes) AttachmentId() terra.StringValue

func (DataAttachmentAttributes) DeviceIndex

func (a DataAttachmentAttributes) DeviceIndex() terra.NumberValue

func (DataAttachmentAttributes) InstanceId

func (DataAttachmentAttributes) InstanceOwnerId

func (a DataAttachmentAttributes) InstanceOwnerId() terra.StringValue

func (DataAttachmentAttributes) InternalRef

func (a DataAttachmentAttributes) InternalRef() (terra.Reference, error)

func (DataAttachmentAttributes) InternalTokens

func (a DataAttachmentAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataAttachmentAttributes) InternalWithRef

type DataAttachmentState

type DataAttachmentState struct {
	AttachmentId    string  `json:"attachment_id"`
	DeviceIndex     float64 `json:"device_index"`
	InstanceId      string  `json:"instance_id"`
	InstanceOwnerId string  `json:"instance_owner_id"`
}

type DataFilter

type DataFilter struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Values: list of string, required
	Values terra.ListValue[terra.StringValue] `hcl:"values,attr" validate:"required"`
}

type DataFilterAttributes

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

func (DataFilterAttributes) InternalRef

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

func (DataFilterAttributes) InternalTokens

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

func (DataFilterAttributes) InternalWithRef

func (DataFilterAttributes) Name

func (DataFilterAttributes) Values

type DataFilterState

type DataFilterState struct {
	Name   string   `json:"name"`
	Values []string `json:"values"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_network_interface.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (ani *DataSource) Attributes() dataAwsNetworkInterfaceAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (ani *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (ani *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 Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource aws_network_interface.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ani *Resource) Attributes() awsNetworkInterfaceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ani *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ani *Resource) State() (*awsNetworkInterfaceState, bool)

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

func (*Resource) StateMust

func (ani *Resource) StateMust() *awsNetworkInterfaceState

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

func (*Resource) Type

func (ani *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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