Documentation
¶
Index ¶
- func NewClient(session *session.Session, awsConfig *aws.Config, db *gorm.DB, log *zap.Logger, ...) resource.ClientInterface
- type ByoipCidr
- type Client
- type CustomerGateway
- type CustomerGatewayTag
- type FlowLog
- type FlowLogTag
- 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
- type Subnet
- type SubnetIpv6CidrBlockAssociation
- type SubnetTag
- type Vpc
- type VpcCidrBlockAssociation
- type VpcIpv6CidrBlockAssociation
- type VpcPeeringConnection
- type VpcPeeringConnectionAccepterCidrBlock
- type VpcPeeringConnectionAccepterIpv6CidrBlock
- type VpcPeeringConnectionRequesterCidrBlock
- type VpcPeeringConnectionRequesterIpv6CidrBlock
- type VpcPeeringConnectionTag
- type VpcTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CollectResource ¶
type CustomerGateway ¶
type CustomerGatewayTag ¶
type FlowLog ¶ added in v0.3.2
type FlowLog struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
CreationTime *time.Time
DeliverLogsErrorMessage *string
DeliverLogsPermissionArn *string
DeliverLogsStatus *string
FlowLogId *string
FlowLogStatus *string
LogDestination *string
LogDestinationType *string
LogFormat *string
LogGroupName *string
MaxAggregationInterval *int64
ResourceId *string
Tags []*FlowLogTag `gorm:"constraint:OnDelete:CASCADE;"`
TrafficType *string
}
type FlowLogTag ¶ added in v0.3.2
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 ¶
type Subnet ¶
type Subnet struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
AssignIpv6AddressOnCreation *bool
AvailabilityZone *string
AvailabilityZoneId *string
AvailableIpAddressCount *int64
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
Tags []*SubnetTag `gorm:"constraint:OnDelete:CASCADE;"`
VpcId *string
}
type Vpc ¶
type Vpc struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
CidrBlock *string
CidrBlockAssociationSet []*VpcCidrBlockAssociation `gorm:"constraint:OnDelete:CASCADE;"`
DhcpOptionsId *string
InstanceTenancy *string
Ipv6CidrBlockAssociationSet []*VpcIpv6CidrBlockAssociation `gorm:"constraint:OnDelete:CASCADE;"`
IsDefault *bool
OwnerId *string
State *string
Tags []*VpcTag `gorm:"constraint:OnDelete:CASCADE;"`
VpcId *string
}
type VpcCidrBlockAssociation ¶
type VpcPeeringConnection ¶ added in v0.3.3
type VpcPeeringConnection struct {
ID uint `gorm:"primarykey"`
AccountID string
Region string
AccepterCidrBlock *string
AccepterCidrBlockSet []*VpcPeeringConnectionAccepterCidrBlock `gorm:"constraint:OnDelete:CASCADE;"`
AccepterIpv6CidrBlockSet []*VpcPeeringConnectionAccepterIpv6CidrBlock `gorm:"constraint:OnDelete:CASCADE;"`
AccepterOwnerId *string
AccepterOptions *ec2.VpcPeeringConnectionOptionsDescription `gorm:"embedded;embeddedPrefix:accepter_option_"`
AccepterRegion *string
AccepterVpcId *string
ExpirationTime *time.Time
RequesterCidrBlock *string
RequesterCidrBlockSet []*VpcPeeringConnectionRequesterCidrBlock `gorm:"constraint:OnDelete:CASCADE;"`
RequesterIpv6CidrBlockSet []*VpcPeeringConnectionRequesterIpv6CidrBlock `gorm:"constraint:OnDelete:CASCADE;"`
RequesterOwnerId *string
RequesterOptions *ec2.VpcPeeringConnectionOptionsDescription `gorm:"embedded;embeddedPrefix:requester_option_"`
RequesterRegion *string
RequesterVpcId *string
Status *ec2.VpcPeeringConnectionStateReason `gorm:"embedded;embeddedPrefix:status_"`
Tags []*VpcPeeringConnectionTag `gorm:"constraint:OnDelete:CASCADE;"`
VpcPeeringConnectionId *string
}
type VpcPeeringConnectionAccepterCidrBlock ¶ added in v0.3.3
type VpcPeeringConnectionAccepterIpv6CidrBlock ¶ added in v0.3.3
type VpcPeeringConnectionRequesterCidrBlock ¶ added in v0.3.3
type VpcPeeringConnectionRequesterIpv6CidrBlock ¶ added in v0.3.3
type VpcPeeringConnectionTag ¶ added in v0.3.3
Click to show internal directories.
Click to hide internal directories.