Documentation
¶
Index ¶
- func NewClient(session *session.Session, db *gorm.DB, log *zap.Logger, accountID string, ...) resource.ClientInterface
- type ByoipCidr
- type Client
- func (c *Client) ByoipCidrs(gConfig interface{}) error
- func (c *Client) CollectResource(resource string, config interface{}) error
- func (c *Client) CustomerGateways(gConfig interface{}) error
- func (c *Client) Images(gConfig interface{}) error
- func (c *Client) Instances(gConfig interface{}) error
- func (c *Client) InternetGateways(gConfig interface{}) error
- func (c *Client) NatGateways(gConfig interface{}) error
- func (c *Client) NetworkAcls(gConfig interface{}) error
- func (c *Client) RouteTables(gConfig interface{}) error
- func (c *Client) SecurityGroups(gConfig interface{}) error
- type CustomerGateway
- type CustomerGatewayTag
- type Image
- type ImageBlockDeviceMapping
- type ImageProductCode
- type ImageTag
- type Instance
- type InstanceBlockDeviceMapping
- type InstanceCapacityReservationSpecificationResponse
- type InstanceElasticGpuAssociation
- type InstanceElasticInferenceAcceleratorAssociation
- type InstanceGroupIdentifier
- type InstanceIpv6Address
- type InstanceLicenseConfiguration
- type InstanceNetworkInterface
- type InstancePrivateIpAddress
- type InstanceProductCode
- type InstanceTag
- type InternetGateway
- type InternetGatewayAttachment
- type InternetGatewayTag
- type NatGateway
- type NatGatewayAddress
- type NatGatewayTag
- type NetworkAcl
- type NetworkAclAssociation
- type NetworkAclEntry
- type NetworkAclTag
- type RouteTable
- type RouteTableAssociation
- type RouteTablePropagatingVgw
- type RouteTableRoute
- type RouteTableTag
- type SecurityGroup
- type SecurityGroupIpPermission
- type SecurityGroupIpRange
- type SecurityGroupIpv6Range
- type SecurityGroupPrefixListId
- type SecurityGroupTag
- type SecurityGroupUserIdGroupPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ByoipCidrs ¶
func (*Client) CollectResource ¶
func (*Client) CustomerGateways ¶
func (*Client) InternetGateways ¶
func (*Client) NatGateways ¶
func (*Client) NetworkAcls ¶
func (*Client) RouteTables ¶
func (*Client) SecurityGroups ¶
type CustomerGateway ¶
type CustomerGatewayTag ¶
type Image ¶
type Image struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
Architecture *string
BlockDeviceMappings []*ImageBlockDeviceMapping `gorm:"constraint:OnDelete:CASCADE;"`
CreationDate *string
Description *string
EnaSupport *bool
Hypervisor *string
ImageId *string
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
StateReason *ec2.StateReason `gorm:"embedded;embeddedPrefix:state_reason_"`
Tags []*ImageTag `gorm:"constraint:OnDelete:CASCADE;"`
UsageOperation *string
VirtualizationType *string
}
type ImageBlockDeviceMapping ¶
type ImageProductCode ¶
type Instance ¶
type Instance struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
AmiLaunchIndex *int64
Architecture *string
BlockDeviceMappings []*InstanceBlockDeviceMapping `gorm:"constraint:OnDelete:CASCADE;"`
CapacityReservationId *string
CapacityReservationSpecification *InstanceCapacityReservationSpecificationResponse `gorm:"constraint:OnDelete:CASCADE;"`
ClientToken *string
CpuOptions *ec2.CpuOptions `gorm:"embedded;embeddedPrefix:cpu_options_"`
EbsOptimized *bool
ElasticGpuAssociations []*InstanceElasticGpuAssociation `gorm:"constraint:OnDelete:CASCADE;"`
ElasticInferenceAcceleratorAssociations []*InstanceElasticInferenceAcceleratorAssociation `gorm:"constraint:OnDelete:CASCADE;"`
EnaSupport *bool
HibernationOptions *ec2.HibernationOptions `gorm:"embedded;embeddedPrefix:hibernation_options_"`
Hypervisor *string
IamInstanceProfile *ec2.IamInstanceProfile `gorm:"embedded;embeddedPrefix:iam_instance_profile_"`
ImageId *string
InstanceId *string
InstanceLifecycle *string
InstanceType *string
KernelId *string
KeyName *string
LaunchTime *time.Time
Licenses []*InstanceLicenseConfiguration `gorm:"constraint:OnDelete:CASCADE;"`
MetadataOptions *ec2.InstanceMetadataOptionsResponse `gorm:"embedded;embeddedPrefix:metadata_options_"`
Monitoring *ec2.Monitoring `gorm:"embedded;embeddedPrefix:monitoring_"`
NetworkInterfaces []*InstanceNetworkInterface `gorm:"constraint:OnDelete:CASCADE;"`
OutpostArn *string
Placement *ec2.Placement `gorm:"embedded;embeddedPrefix:placement_"`
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
State *ec2.InstanceState `gorm:"embedded;embeddedPrefix:state_"`
StateReason *ec2.StateReason `gorm:"embedded;embeddedPrefix:state_reason_"`
StateTransitionReason *string
SubnetId *string
Tags []*InstanceTag `gorm:"constraint:OnDelete:CASCADE;"`
VirtualizationType *string
VpcId *string
}
type InstanceBlockDeviceMapping ¶
type InstanceBlockDeviceMapping struct {
ID uint `gorm:"primarykey"`
InstanceID uint
DeviceName *string
Ebs *ec2.EbsInstanceBlockDevice `gorm:"embedded;embeddedPrefix:ebs_"`
}
type InstanceCapacityReservationSpecificationResponse ¶
type InstanceCapacityReservationSpecificationResponse struct {
ID uint `gorm:"primarykey"`
InstanceID uint
CapacityReservationPreference *string
CapacityReservationTarget *ec2.CapacityReservationTargetResponse `gorm:"embedded"`
}
type InstanceElasticInferenceAcceleratorAssociation ¶
type InstanceElasticInferenceAcceleratorAssociation struct {
ID uint `gorm:"primarykey"`
InstanceID uint
ElasticInferenceAcceleratorArn *string
ElasticInferenceAcceleratorAssociationId *string
ElasticInferenceAcceleratorAssociationState *string
ElasticInferenceAcceleratorAssociationTime *time.Time
}
type InstanceGroupIdentifier ¶
type InstanceIpv6Address ¶
type InstanceNetworkInterface ¶
type InstanceNetworkInterface struct {
ID uint `gorm:"primarykey"`
InstanceID uint
Association *ec2.InstanceNetworkInterfaceAssociation `gorm:"embedded;embeddedPrefix:association_"`
Attachment *ec2.InstanceNetworkInterfaceAttachment `gorm:"embedded;embeddedPrefix:attachment_"`
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
}
type InstanceProductCode ¶
type InstanceTag ¶
type InternetGateway ¶
type InternetGateway struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
Attachments []*InternetGatewayAttachment `gorm:"constraint:OnDelete:CASCADE;"`
InternetGatewayId *string
OwnerId *string
Tags []*InternetGatewayTag `gorm:"constraint:OnDelete:CASCADE;"`
}
type InternetGatewayTag ¶
type NatGateway ¶
type NatGateway struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
CreateTime *time.Time
DeleteTime *time.Time
FailureCode *string
FailureMessage *string
NatGatewayAddresses []*NatGatewayAddress `gorm:"constraint:OnDelete:CASCADE;"`
NatGatewayId *string
ProvisionedBandwidth *ec2.ProvisionedBandwidth `gorm:"embedded;embeddedPrefix:provisioned_bandwidth_"`
State *string
SubnetId *string
Tags []*NatGatewayTag `gorm:"constraint:OnDelete:CASCADE;"`
VpcId *string
}
type NatGatewayAddress ¶
type NatGatewayTag ¶
type NetworkAcl ¶
type NetworkAcl struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
Associations []*NetworkAclAssociation `gorm:"constraint:OnDelete:CASCADE;"`
Entries []*NetworkAclEntry `gorm:"constraint:OnDelete:CASCADE;"`
IsDefault *bool
NetworkAclId *string
OwnerId *string
Tags []*NetworkAclTag `gorm:"constraint:OnDelete:CASCADE;"`
VpcId *string
}
type NetworkAclAssociation ¶
type NetworkAclEntry ¶
type NetworkAclEntry struct {
ID uint `gorm:"primarykey"`
NetworkAclID uint
CidrBlock *string
Egress *bool
IcmpTypeCode *ec2.IcmpTypeCode `gorm:"embedded;embeddedPrefix:icmp_type_code_"`
Ipv6CidrBlock *string
PortRange *ec2.PortRange `gorm:"embedded;embeddedPrefix:port_range_"`
Protocol *string
RuleAction *string
RuleNumber *int64
}
type NetworkAclTag ¶
type RouteTable ¶
type RouteTable struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
Associations []*RouteTableAssociation `gorm:"constraint:OnDelete:CASCADE;"`
OwnerId *string
PropagatingVgws []*RouteTablePropagatingVgw `gorm:"constraint:OnDelete:CASCADE;"`
RouteTableId *string
Routes []*RouteTableRoute `gorm:"constraint:OnDelete:CASCADE;"`
Tags []*RouteTableTag `gorm:"constraint:OnDelete:CASCADE;"`
VpcId *string
}
type RouteTableAssociation ¶
type RouteTableRoute ¶
type RouteTableRoute struct {
ID uint `gorm:"primarykey"`
RouteTableID uint
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
}
type RouteTableTag ¶
type SecurityGroup ¶
type SecurityGroup struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
Description *string
GroupId *string
GroupName *string
IpPermissions []*SecurityGroupIpPermission `gorm:"constraint:OnDelete:CASCADE;"`
OwnerId *string
Tags []*SecurityGroupTag `gorm:"constraint:OnDelete:CASCADE;"`
VpcId *string
}
type SecurityGroupIpPermission ¶
type SecurityGroupIpPermission struct {
ID uint `gorm:"primarykey"`
SecurityGroupID uint
FromPort *int64
IpProtocol *string
IpRanges []*SecurityGroupIpRange `gorm:"constraint:OnDelete:CASCADE;"`
Ipv6Ranges []*SecurityGroupIpv6Range `gorm:"constraint:OnDelete:CASCADE;"`
PrefixListIds []*SecurityGroupPrefixListId `gorm:"constraint:OnDelete:CASCADE;"`
ToPort *int64
UserIdGroupPairs []*SecurityGroupUserIdGroupPair `gorm:"constraint:OnDelete:CASCADE;"`
}
type SecurityGroupIpRange ¶
type SecurityGroupIpv6Range ¶
type SecurityGroupTag ¶
Click to show internal directories.
Click to hide internal directories.