ec2

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ByoipCidrTables = []interface{}{
	&ByoipCidr{},
}
View Source
var CustomerGatewayTables = []interface{}{
	&CustomerGateway{},
	&CustomerGatewayTag{},
}
View Source
var FlowLogsTables = []interface{}{
	&FlowLog{},
	&FlowLogTag{},
}
View Source
var ImageTables = []interface{}{
	&Image{},
	&ImageBlockDeviceMapping{},
	&ImageProductCode{},
	&ImageTag{},
}
View Source
var InternetGatewayTables = []interface{}{
	&InternetGateway{},
	&InternetGatewayAttachment{},
	&InternetGatewayTag{},
}
View Source
var NatGatewayTables = []interface{}{
	&NatGateway{},
	&NatGatewayAddress{},
	&NatGatewayTag{},
}
View Source
var NetworkAclTables = []interface{}{
	&NetworkAcl{},
	&NetworkAclAssociation{},
	&NetworkAclEntry{},
	&NetworkAclTag{},
}
View Source
var RouteTableTables = []interface{}{
	&RouteTable{},
	&RouteTableAssociation{},
	&RouteTablePropagatingVgw{},
	&RouteTableRoute{},
	&RouteTableTag{},
}
View Source
var SubnetTables = []interface{}{
	&Subnet{},
	&SubnetIpv6CidrBlockAssociation{},
	&SubnetTag{},
}
View Source
var VPCTables = []interface{}{
	&Vpc{},
	&VpcCidrBlockAssociation{},
	&VpcIpv6CidrBlockAssociation{},
	&VpcTag{},
}

Functions

func NewClient

func NewClient(awsConfig aws.Config, db *database.Database, log *zap.Logger,
	accountID string, region string) resource.ClientInterface

Types

type ByoipCidr

type ByoipCidr struct {
	ID            uint `gorm:"primarykey"`
	AccountID     string
	Region        string
	Cidr          *string
	Description   *string
	State         *string
	StatusMessage *string
	// contains filtered or unexported fields
}

func (ByoipCidr) TableName

func (ByoipCidr) TableName() string

type Client

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

func (*Client) CollectResource

func (c *Client) CollectResource(resource string, config interface{}) error

func (*Client) FlowLogs

func (c *Client) FlowLogs(gConfig interface{}) error

type CustomerGateway

type CustomerGateway struct {
	ID                uint   `gorm:"primarykey"`
	AccountID         string `neo:"unique"`
	Region            string `neo:"unique"`
	BgpAsn            *string
	CertificateArn    *string
	CustomerGatewayId *string `neo:"unique"`
	DeviceName        *string
	IpAddress         *string
	State             *string
	Tags              []*CustomerGatewayTag `gorm:"constraint:OnDelete:CASCADE;"`
	Type              *string
	// contains filtered or unexported fields
}

func (CustomerGateway) TableName

func (CustomerGateway) TableName() string

type CustomerGatewayTag

type CustomerGatewayTag struct {
	ID                uint   `gorm:"primarykey"`
	CustomerGatewayID uint   `neo:"ignore"`
	AccountID         string `gorm:"-"`
	Region            string `gorm:"-"`

	Key   *string
	Value *string
}

func (CustomerGatewayTag) TableName

func (CustomerGatewayTag) TableName() string

type FlowLog

type FlowLog struct {
	ID                       uint   `gorm:"primarykey"`
	AccountID                string `neo:"unique"`
	Region                   string `neo:"unique"`
	CreationTime             *time.Time
	DeliverLogsErrorMessage  *string
	DeliverLogsPermissionArn *string
	DeliverLogsStatus        *string
	FlowLogId                *string `neo:"unique"`
	FlowLogStatus            *string
	LogDestination           *string
	LogDestinationType       *string
	LogFormat                *string
	LogGroupName             *string
	MaxAggregationInterval   int32
	ResourceId               *string
	Tags                     []*FlowLogTag `gorm:"constraint:OnDelete:CASCADE;"`
	TrafficType              *string
	// contains filtered or unexported fields
}

func (FlowLog) TableName

func (FlowLog) TableName() string

type FlowLogTag

type FlowLogTag struct {
	ID        uint `gorm:"primarykey"`
	FlowLogID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Key   *string
	Value *string
}

func (FlowLogTag) TableName

func (FlowLogTag) TableName() string

type Image

type Image struct {
	ID                  uint   `gorm:"primarykey"`
	AccountID           string `neo:"unique"`
	Region              string `neo:"unique"`
	Architecture        *string
	BlockDeviceMappings []*ImageBlockDeviceMapping `gorm:"constraint:OnDelete:CASCADE;"`
	CreationDate        *string
	Description         *string
	EnaSupport          *bool
	Hypervisor          *string
	ImageId             *string `neo:"unique"`
	ImageLocation       *string
	ImageOwnerAlias     *string
	ImageType           *string
	KernelId            *string
	Name                *string
	OwnerId             *string
	Platform            *string
	PlatformDetails     *string
	ProductCodes        []*ImageProductCode `gorm:"constraint:OnDelete:CASCADE;"`
	Public              *bool
	RamdiskId           *string
	RootDeviceName      *string
	RootDeviceType      *string
	SriovNetSupport     *string
	State               *string

	StateReasonCode    *string
	StateReasonMessage *string

	Tags               []*ImageTag `gorm:"constraint:OnDelete:CASCADE;"`
	UsageOperation     *string
	VirtualizationType *string
	// contains filtered or unexported fields
}

func (Image) TableName

func (Image) TableName() string

type ImageBlockDeviceMapping

type ImageBlockDeviceMapping struct {
	ID      uint `gorm:"primarykey"`
	ImageID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	DeviceName             *string
	EbsDeleteOnTermination *bool
	EbsEncrypted           *bool
	EbsIops                *int32
	EbsKmsKeyId            *string
	EbsSnapshotId          *string
	EbsVolumeSize          *int32
	EbsVolumeType          *string

	NoDevice    *string
	VirtualName *string
}

func (ImageBlockDeviceMapping) TableName

func (ImageBlockDeviceMapping) TableName() string

type ImageProductCode

type ImageProductCode struct {
	ID      uint `gorm:"primarykey"`
	ImageID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	ProductCodeId   *string
	ProductCodeType *string
}

func (ImageProductCode) TableName

func (ImageProductCode) TableName() string

type ImageTag

type ImageTag struct {
	ID      uint `gorm:"primarykey"`
	ImageID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Key   *string
	Value *string
}

func (ImageTag) TableName

func (ImageTag) TableName() string

type Instance

type Instance struct {
	ID                    uint   `gorm:"primarykey"`
	AccountID             string `neo:"unique"`
	Region                string `neo:"unique"`
	AmiLaunchIndex        *int32
	Architecture          *string
	BlockDeviceMappings   []*InstanceBlockDeviceMapping `gorm:"constraint:OnDelete:CASCADE;"`
	CapacityReservationId *string

	CapacityReservationPreference     *string
	CapacityReservationTargetId       *string
	CapacityReservationTargetGroupArn *string

	ClientToken *string

	CpuOptionsCoreCount      *int32
	CpuOptionsThreadsPerCore *int32

	EbsOptimized                            *bool
	ElasticGpuAssociations                  []*InstanceElasticGpuAssociation                  `gorm:"constraint:OnDelete:CASCADE;"`
	ElasticInferenceAcceleratorAssociations []*InstanceElasticInferenceAcceleratorAssociation `gorm:"constraint:OnDelete:CASCADE;"`
	EnaSupport                              *bool
	HibernationOptionsConfigured            *bool
	Hypervisor                              *string

	IamInstanceProfileArn *string
	IamInstanceProfileId  *string

	ImageId           *string
	InstanceId        *string `neo:"unique"`
	InstanceLifecycle *string
	InstanceType      *string
	KernelId          *string
	KeyName           *string
	LaunchTime        *time.Time
	Licenses          []*InstanceLicenseConfiguration `gorm:"constraint:OnDelete:CASCADE;"`

	MetadataOptionsHttpEndpoint            *string
	MetadataOptionsHttpPutResponseHopLimit *int32
	MetadataOptionsHttpTokens              *string
	MetadataOptionsState                   *string

	MonitoringState *string

	NetworkInterfaces []*InstanceNetworkInterface `gorm:"constraint:OnDelete:CASCADE;"`
	OutpostArn        *string

	PlacementAffinity             *string
	PlacementAvailabilityZone     *string
	PlacementGroupName            *string
	PlacementHostId               *string
	PlacementHostResourceGroupArn *string
	PlacementPartitionNumber      *int32
	PlacementSpreadDomain         *string
	PlacementTenancy              *string

	Platform              *string
	PrivateDnsName        *string
	PrivateIpAddress      *string
	ProductCodes          []*InstanceProductCode `gorm:"constraint:OnDelete:CASCADE;"`
	PublicDnsName         *string
	PublicIpAddress       *string
	RamdiskId             *string
	RootDeviceName        *string
	RootDeviceType        *string
	SecurityGroups        []*InstanceGroupIdentifier `gorm:"constraint:OnDelete:CASCADE;"`
	SourceDestCheck       *bool
	SpotInstanceRequestId *string
	SriovNetSupport       *string

	StateCode *int32
	StateName *string

	StateReasonCode    *string
	StateReasonMessage *string

	StateTransitionReason *string
	SubnetId              *string
	Tags                  []*InstanceTag `gorm:"constraint:OnDelete:CASCADE;"`
	VirtualizationType    *string
	VpcId                 *string
	// contains filtered or unexported fields
}

func (Instance) TableName

func (Instance) TableName() string

type InstanceBlockDeviceMapping

type InstanceBlockDeviceMapping struct {
	ID         uint `gorm:"primarykey"`
	InstanceID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	DeviceName *string

	AttachTime          *time.Time
	DeleteOnTermination *bool
	Status              *string
	VolumeId            *string
}

func (InstanceBlockDeviceMapping) TableName

func (InstanceBlockDeviceMapping) TableName() string

type InstanceElasticGpuAssociation

type InstanceElasticGpuAssociation struct {
	ID         uint `gorm:"primarykey"`
	InstanceID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	ElasticGpuAssociationId    *string
	ElasticGpuAssociationState *string
	ElasticGpuAssociationTime  *string
	ElasticGpuId               *string
}

func (InstanceElasticGpuAssociation) TableName

type InstanceElasticInferenceAcceleratorAssociation

type InstanceElasticInferenceAcceleratorAssociation struct {
	ID         uint `gorm:"primarykey"`
	InstanceID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	ElasticInferenceAcceleratorArn              *string
	ElasticInferenceAcceleratorAssociationId    *string
	ElasticInferenceAcceleratorAssociationState *string
	ElasticInferenceAcceleratorAssociationTime  *time.Time
}

func (InstanceElasticInferenceAcceleratorAssociation) TableName

type InstanceGroupIdentifier

type InstanceGroupIdentifier struct {
	ID         uint `gorm:"primarykey"`
	InstanceID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	GroupId   *string
	GroupName *string
}

func (InstanceGroupIdentifier) TableName

func (InstanceGroupIdentifier) TableName() string

type InstanceIpv6Address

type InstanceIpv6Address struct {
	ID                         uint `gorm:"primarykey"`
	InstanceNetworkInterfaceID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Ipv6Address *string
}

func (InstanceIpv6Address) TableName

func (InstanceIpv6Address) TableName() string

type InstanceLicenseConfiguration

type InstanceLicenseConfiguration struct {
	ID         uint `gorm:"primarykey"`
	InstanceID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	LicenseConfigurationArn *string
}

func (InstanceLicenseConfiguration) TableName

type InstanceNetworkInterface

type InstanceNetworkInterface struct {
	ID         uint `gorm:"primarykey"`
	InstanceID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	AssociationCarrierIp     *string
	AssociationIpOwnerId     *string
	AssociationPublicDnsName *string
	AssociationPublicIp      *string

	AttachmentTime                *time.Time
	AttachmentId                  *string
	AttachmentDeleteOnTermination *bool
	AttachmentDeviceIndex         *int32
	AttachmentStatus              *string

	Description        *string
	InterfaceType      *string
	Ipv6Addresses      []*InstanceIpv6Address `gorm:"constraint:OnDelete:CASCADE;"`
	MacAddress         *string
	NetworkInterfaceId *string
	OwnerId            *string
	PrivateDnsName     *string
	PrivateIpAddress   *string
	PrivateIpAddresses []*InstancePrivateIpAddress `gorm:"constraint:OnDelete:CASCADE;"`
	SourceDestCheck    *bool
	Status             *string
	SubnetId           *string
	VpcId              *string
}

func (InstanceNetworkInterface) TableName

func (InstanceNetworkInterface) TableName() string

type InstancePrivateIpAddress

type InstancePrivateIpAddress struct {
	ID                         uint `gorm:"primarykey"`
	InstanceNetworkInterfaceID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	AssociationCarrierIp     *string
	AssociationIpOwnerId     *string
	AssociationPublicDnsName *string
	AssociationPublicIp      *string

	Primary          *bool
	PrivateDnsName   *string
	PrivateIpAddress *string
}

func (InstancePrivateIpAddress) TableName

func (InstancePrivateIpAddress) TableName() string

type InstanceProductCode

type InstanceProductCode struct {
	ID         uint `gorm:"primarykey"`
	InstanceID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	ProductCodeId   *string
	ProductCodeType *string
}

func (InstanceProductCode) TableName

func (InstanceProductCode) TableName() string

type InstanceTag

type InstanceTag struct {
	ID         uint `gorm:"primarykey"`
	InstanceID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Key   *string
	Value *string
}

func (InstanceTag) TableName

func (InstanceTag) TableName() string

type InternetGateway

type InternetGateway struct {
	ID                uint                         `gorm:"primarykey"`
	AccountID         string                       `neo:"unique"`
	Region            string                       `neo:"unique"`
	Attachments       []*InternetGatewayAttachment `gorm:"constraint:OnDelete:CASCADE;"`
	InternetGatewayId *string                      `neo:"unique"`
	OwnerId           *string
	Tags              []*InternetGatewayTag `gorm:"constraint:OnDelete:CASCADE;"`
	// contains filtered or unexported fields
}

func (InternetGateway) TableName

func (InternetGateway) TableName() string

type InternetGatewayAttachment

type InternetGatewayAttachment struct {
	ID                uint `gorm:"primarykey"`
	InternetGatewayID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	State *string
	VpcId *string
}

func (InternetGatewayAttachment) TableName

func (InternetGatewayAttachment) TableName() string

type InternetGatewayTag

type InternetGatewayTag struct {
	ID                uint `gorm:"primarykey"`
	InternetGatewayID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Key   *string
	Value *string
}

func (InternetGatewayTag) TableName

func (InternetGatewayTag) TableName() string

type NatGateway

type NatGateway struct {
	ID                  uint   `gorm:"primarykey"`
	AccountID           string `neo:"unique"`
	Region              string `neo:"unique"`
	CreateTime          *time.Time
	DeleteTime          *time.Time
	FailureCode         *string
	FailureMessage      *string
	NatGatewayAddresses []*NatGatewayAddress `gorm:"constraint:OnDelete:CASCADE;"`
	NatGatewayId        *string              `neo:"unique"`

	ProvisionTime          *time.Time
	Provisioned            *string
	ProvisionedRequestTime *time.Time
	ProvisionedRequested   *string
	ProvisionedStatus      *string

	State    *string
	SubnetId *string
	Tags     []*NatGatewayTag `gorm:"constraint:OnDelete:CASCADE;"`
	VpcId    *string
	// contains filtered or unexported fields
}

func (NatGateway) TableName

func (NatGateway) TableName() string

type NatGatewayAddress

type NatGatewayAddress struct {
	ID           uint `gorm:"primarykey"`
	NatGatewayID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	AllocationId       *string
	NetworkInterfaceId *string
	PrivateIp          *string
	PublicIp           *string
}

func (NatGatewayAddress) TableName

func (NatGatewayAddress) TableName() string

type NatGatewayTag

type NatGatewayTag struct {
	ID           uint `gorm:"primarykey"`
	NatGatewayID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Key   *string
	Value *string
}

func (NatGatewayTag) TableName

func (NatGatewayTag) TableName() string

type NetworkAcl

type NetworkAcl struct {
	ID           uint                     `gorm:"primarykey"`
	AccountID    string                   `neo:"unique"`
	Region       string                   `neo:"unique"`
	Associations []*NetworkAclAssociation `gorm:"constraint:OnDelete:CASCADE;"`
	Entries      []*NetworkAclEntry       `gorm:"constraint:OnDelete:CASCADE;"`
	IsDefault    *bool
	NetworkAclId *string `neo:"unique"`
	OwnerId      *string
	Tags         []*NetworkAclTag `gorm:"constraint:OnDelete:CASCADE;"`
	VpcId        *string
}

func (NetworkAcl) TableName

func (NetworkAcl) TableName() string

type NetworkAclAssociation

type NetworkAclAssociation struct {
	ID           uint `gorm:"primarykey"`
	NetworkAclID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	NetworkAclAssociationId *string
	NetworkAclId            *string
	SubnetId                *string
}

func (NetworkAclAssociation) TableName

func (NetworkAclAssociation) TableName() string

type NetworkAclEntry

type NetworkAclEntry struct {
	ID           uint `gorm:"primarykey"`
	NetworkAclID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	CidrBlock *string
	Egress    *bool

	IcmpTypeCode *int32
	IcmpTypeType *int32

	Ipv6CidrBlock *string

	PortRangeFrom *int32
	PortRangeTo   *int32

	Protocol   *string
	RuleAction *string
	RuleNumber *int32
}

func (NetworkAclEntry) TableName

func (NetworkAclEntry) TableName() string

type NetworkAclTag

type NetworkAclTag struct {
	ID           uint `gorm:"primarykey"`
	NetworkAclID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Key   *string
	Value *string
}

func (NetworkAclTag) TableName

func (NetworkAclTag) TableName() string

type RouteTable

type RouteTable struct {
	ID              uint                     `gorm:"primarykey"`
	AccountID       string                   `neo:"unique"`
	Region          string                   `neo:"unique"`
	Associations    []*RouteTableAssociation `gorm:"constraint:OnDelete:CASCADE;"`
	OwnerId         *string
	PropagatingVgws []*RouteTablePropagatingVgw `gorm:"constraint:OnDelete:CASCADE;"`
	RouteTableId    *string                     `neo:"unique"`
	Routes          []*RouteTableRoute          `gorm:"constraint:OnDelete:CASCADE;"`
	Tags            []*RouteTableTag            `gorm:"constraint:OnDelete:CASCADE;"`
	VpcId           *string
}

func (RouteTable) TableName

func (RouteTable) TableName() string

type RouteTableAssociation

type RouteTableAssociation struct {
	ID           uint   `gorm:"primarykey"`
	RouteTableID uint   `neo:"ignore"`
	AccountID    string `gorm:"-" neo:"unique"`
	Region       string `gorm:"-" neo:"unique"`

	State         *string
	StatusMessage *string

	GatewayId               *string
	Main                    *bool
	RouteTableAssociationId *string `neo:"unique"`
	RouteTableId            *string
	SubnetId                *string
}

func (RouteTableAssociation) TableName

func (RouteTableAssociation) TableName() string

type RouteTablePropagatingVgw

type RouteTablePropagatingVgw struct {
	ID           uint   `gorm:"primarykey"`
	RouteTableID uint   `neo:"ignore"`
	AccountID    string `gorm:"-"`
	Region       string `gorm:"-"`

	GatewayId *string
}

func (RouteTablePropagatingVgw) TableName

func (RouteTablePropagatingVgw) TableName() string

type RouteTableRoute

type RouteTableRoute struct {
	ID           uint   `gorm:"primarykey"`
	RouteTableID uint   `neo:"ignore"`
	AccountID    string `gorm:"-"`
	Region       string `gorm:"-"`

	CarrierGatewayId            *string
	DestinationCidrBlock        *string
	DestinationIpv6CidrBlock    *string
	DestinationPrefixListId     *string
	EgressOnlyInternetGatewayId *string
	GatewayId                   *string
	InstanceId                  *string
	InstanceOwnerId             *string
	LocalGatewayId              *string
	NatGatewayId                *string
	NetworkInterfaceId          *string
	Origin                      *string
	State                       *string
	TransitGatewayId            *string
	VpcPeeringConnectionId      *string
}

func (RouteTableRoute) TableName

func (RouteTableRoute) TableName() string

type RouteTableTag

type RouteTableTag struct {
	ID           uint `gorm:"primarykey"`
	RouteTableID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Key   *string
	Value *string
}

func (RouteTableTag) TableName

func (RouteTableTag) TableName() string

type SecurityGroup

type SecurityGroup struct {
	ID            uint   `gorm:"primarykey"`
	AccountID     string `neo:"unique"`
	Region        string `neo:"unique"`
	Description   *string
	GroupId       *string `neo:"unique"`
	GroupName     *string
	IpPermissions []*SecurityGroupIpPermission `gorm:"constraint:OnDelete:CASCADE;"`
	OwnerId       *string
	Tags          []*SecurityGroupTag `gorm:"constraint:OnDelete:CASCADE;"`
	VpcId         *string
}

func (SecurityGroup) TableName

func (SecurityGroup) TableName() string

type SecurityGroupIpPermission

type SecurityGroupIpPermission struct {
	ID               uint   `gorm:"primarykey"`
	SecurityGroupID  uint   `neo:"ignore"`
	AccountID        string `gorm:"-"`
	Region           string `gorm:"-"`
	FromPort         *int32
	IpProtocol       *string
	IpRanges         []*SecurityGroupIpRange      `gorm:"constraint:OnDelete:CASCADE;"`
	Ipv6Ranges       []*SecurityGroupIpv6Range    `gorm:"constraint:OnDelete:CASCADE;"`
	PrefixListIds    []*SecurityGroupPrefixListId `gorm:"constraint:OnDelete:CASCADE;"`
	ToPort           *int32
	UserIdGroupPairs []*SecurityGroupUserIdGroupPair `gorm:"constraint:OnDelete:CASCADE;"`
}

func (SecurityGroupIpPermission) TableName

func (SecurityGroupIpPermission) TableName() string

type SecurityGroupIpRange

type SecurityGroupIpRange struct {
	ID                          uint   `gorm:"primarykey"`
	SecurityGroupIpPermissionID uint   `neo:"ignore"`
	AccountID                   string `gorm:"-"`
	Region                      string `gorm:"-"`
	CidrIp                      *string
	Description                 *string
}

func (SecurityGroupIpRange) TableName

func (SecurityGroupIpRange) TableName() string

type SecurityGroupIpv6Range

type SecurityGroupIpv6Range struct {
	ID                          uint   `gorm:"primarykey"`
	SecurityGroupIpPermissionID uint   `neo:"ignore"`
	AccountID                   string `gorm:"-"`
	Region                      string `gorm:"-"`
	CidrIpv6                    *string
	Description                 *string
}

func (SecurityGroupIpv6Range) TableName

func (SecurityGroupIpv6Range) TableName() string

type SecurityGroupPrefixListId

type SecurityGroupPrefixListId struct {
	ID                          uint   `gorm:"primarykey"`
	SecurityGroupIpPermissionID uint   `neo:"ignore"`
	AccountID                   string `gorm:"-"`
	Region                      string `gorm:"-"`
	Description                 *string
	PrefixListId                *string
}

func (SecurityGroupPrefixListId) TableName

func (SecurityGroupPrefixListId) TableName() string

type SecurityGroupTag

type SecurityGroupTag struct {
	ID              uint   `gorm:"primarykey"`
	SecurityGroupID uint   `neo:"ignore"`
	AccountID       string `gorm:"-"`
	Region          string `gorm:"-"`
	Key             *string
	Value           *string
}

func (SecurityGroupTag) TableName

func (SecurityGroupTag) TableName() string

type SecurityGroupUserIdGroupPair

type SecurityGroupUserIdGroupPair struct {
	ID                          uint   `gorm:"primarykey"`
	SecurityGroupIpPermissionID uint   `neo:"ignore"`
	AccountID                   string `gorm:"-"`
	Region                      string `gorm:"-"`
	Description                 *string
	GroupId                     *string
	GroupName                   *string
	PeeringStatus               *string
	UserId                      *string
	VpcId                       *string
	VpcPeeringConnectionId      *string
}

func (SecurityGroupUserIdGroupPair) TableName

type Subnet

type Subnet struct {
	ID                          uint   `gorm:"primarykey"`
	AccountID                   string `neo:"unique"`
	Region                      string `neo:"unique"`
	AssignIpv6AddressOnCreation *bool
	AvailabilityZone            *string
	AvailabilityZoneId          *string
	AvailableIpAddressCount     *int32
	CidrBlock                   *string
	CustomerOwnedIpv4Pool       *string
	DefaultForAz                *bool
	Ipv6CidrBlockAssociationSet []*SubnetIpv6CidrBlockAssociation `gorm:"constraint:OnDelete:CASCADE;"`
	MapCustomerOwnedIpOnLaunch  *bool
	MapPublicIpOnLaunch         *bool
	OutpostArn                  *string
	OwnerId                     *string
	State                       *string
	SubnetArn                   *string
	SubnetId                    *string      `neo:"unique"`
	Tags                        []*SubnetTag `gorm:"constraint:OnDelete:CASCADE;"`
	VpcId                       *string
}

func (Subnet) TableName

func (Subnet) TableName() string

type SubnetIpv6CidrBlockAssociation

type SubnetIpv6CidrBlockAssociation struct {
	ID       uint `gorm:"primarykey"`
	SubnetID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	AssociationId *string
	Ipv6CidrBlock *string
	State         *string
	StatusMessage *string
}

func (SubnetIpv6CidrBlockAssociation) TableName

type SubnetTag

type SubnetTag struct {
	ID        uint   `gorm:"primarykey"`
	SubnetID  uint   `neo:"ignore"`
	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`
	Key       *string
	Value     *string
}

func (SubnetTag) TableName

func (SubnetTag) TableName() string

type Vpc

type Vpc struct {
	ID                        uint   `gorm:"primarykey"`
	AccountID                 string `neo:"unique"`
	Region                    string `neo:"unique"`
	CidrBlock                 *string
	CidrBlockAssociations     []*VpcCidrBlockAssociation `gorm:"constraint:OnDelete:CASCADE;"`
	DhcpOptionsId             *string
	InstanceTenancy           *string
	Ipv6CidrBlockAssociations []*VpcIpv6CidrBlockAssociation `gorm:"constraint:OnDelete:CASCADE;"`
	IsDefault                 *bool
	OwnerId                   *string
	State                     *string
	Tags                      []*VpcTag `gorm:"constraint:OnDelete:CASCADE;"`
	VpcId                     *string   `neo:"unique"`
	// contains filtered or unexported fields
}

func (Vpc) TableName

func (Vpc) TableName() string

type VpcCidrBlockAssociation

type VpcCidrBlockAssociation struct {
	ID    uint `gorm:"primarykey"`
	VpcID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	AssociationId *string
	CidrBlock     *string

	State         *string
	StatusMessage *string
}

func (VpcCidrBlockAssociation) TableName

func (VpcCidrBlockAssociation) TableName() string

type VpcIpv6CidrBlockAssociation

type VpcIpv6CidrBlockAssociation struct {
	ID    uint `gorm:"primarykey"`
	VpcID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	AssociationId *string
	Ipv6CidrBlock *string

	State         *string
	StatusMessage *string

	Ipv6Pool           *string
	NetworkBorderGroup *string
}

func (VpcIpv6CidrBlockAssociation) TableName

func (VpcIpv6CidrBlockAssociation) TableName() string

type VpcPeeringConnection

type VpcPeeringConnection struct {
	ID        uint   `gorm:"primarykey"`
	AccountID string `neo:"unique"`
	Region    string `neo:"unique"`

	AccCidrBlock        *string
	AccCidrBlockSet     []*VpcPeeringConnectionAccCidrBlock     `gorm:"constraint:OnDelete:CASCADE;"`
	AccIpv6CidrBlockSet []*VpcPeeringConnectionAccIpv6CidrBlock `gorm:"constraint:OnDelete:CASCADE;"`
	AccOwnerId          *string

	AccOptAllowDnsResolutionFromRemoteVpc            *bool
	AccOptAllowEgressFromLocalClassicLinkToRemoteVpc *bool
	AccOptAllowEgressFromLocalVpcToRemoteClassicLink *bool

	AccRegion *string
	AccVpcId  *string

	ExpirationTime *time.Time

	ReqCidrBlock        *string
	ReqCidrBlockSet     []*VpcPeeringConnectionReqCidrBlock     `gorm:"constraint:OnDelete:CASCADE;"`
	ReqIpv6CidrBlockSet []*VpcPeeringConnectionReqIpv6CidrBlock `gorm:"constraint:OnDelete:CASCADE;"`
	ReqOwnerId          *string

	ReqOptAllowDnsResolutionFromRemoteVpc            *bool
	ReqOptAllowEgressFromLocalClassicLinkToRemoteVpc *bool
	ReqOptAllowEgressFromLocalVpcToRemoteClassicLink *bool

	ReqRegion *string
	ReqVpcId  *string

	StatusCode    *string
	StatusMessage *string

	Tags                   []*VpcPeeringConnectionTag `gorm:"constraint:OnDelete:CASCADE;"`
	VpcPeeringConnectionId *string                    `neo:"unique"`
}

func (VpcPeeringConnection) TableName

func (VpcPeeringConnection) TableName() string

type VpcPeeringConnectionAccCidrBlock

type VpcPeeringConnectionAccCidrBlock struct {
	ID                     uint `gorm:"primarykey"`
	VpcPeeringConnectionID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	CidrBlock *string
}

func (VpcPeeringConnectionAccCidrBlock) TableName

type VpcPeeringConnectionAccIpv6CidrBlock

type VpcPeeringConnectionAccIpv6CidrBlock struct {
	ID                     uint `gorm:"primarykey"`
	VpcPeeringConnectionID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Ipv6CidrBlock *string
}

func (VpcPeeringConnectionAccIpv6CidrBlock) TableName

type VpcPeeringConnectionReqCidrBlock

type VpcPeeringConnectionReqCidrBlock struct {
	ID                     uint `gorm:"primarykey"`
	VpcPeeringConnectionID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	CidrBlock *string
}

func (VpcPeeringConnectionReqCidrBlock) TableName

type VpcPeeringConnectionReqIpv6CidrBlock

type VpcPeeringConnectionReqIpv6CidrBlock struct {
	ID                     uint `gorm:"primarykey"`
	VpcPeeringConnectionID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Ipv6CidrBlock *string
}

func (VpcPeeringConnectionReqIpv6CidrBlock) TableName

type VpcPeeringConnectionTag

type VpcPeeringConnectionTag struct {
	ID                     uint `gorm:"primarykey"`
	VpcPeeringConnectionID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Key   *string
	Value *string
}

func (VpcPeeringConnectionTag) TableName

func (VpcPeeringConnectionTag) TableName() string

type VpcTag

type VpcTag struct {
	ID    uint `gorm:"primarykey"`
	VpcID uint `neo:"ignore"`

	AccountID string `gorm:"-"`
	Region    string `gorm:"-"`

	Key   *string
	Value *string
}

func (VpcTag) TableName

func (VpcTag) TableName() string

Jump to

Keyboard shortcuts

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