load

package
v0.0.0-...-bda4b31 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Regional = "Regional"
)
View Source
const (
	TerraformManaged = "managed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Association

type Association struct {
	AssociationID string `json:"routeTableAssociationId,omitempty"`
	RouteTableID  string `json:"routeTableId,omitempty"`
	SubnetID      string `json:"subnetId,omitempty"`
	IPOwnerID     string `json:"ipOwnerId,omitempty"`
	PublicDNSName string `json:"publicDnsName,omitempty"`
	PublicIP      string `json:"publicIp,omitempty"`
}

type Attachment

type Attachment struct {
	AttachmentID    string `json:"attachmentId"`
	InstanceOwnerID string `json:"instanceOwnerId"`
}

type Configuration

type Configuration struct {
	Associations          []Association          `json:"associations"`
	Association           Association            `json:"association"`
	NetworkInterfaceIDs   []string               `json:"networkInterfaceIds"`
	Instances             []EC2Instance          `json:"instances,omitempty"`
	Description           string                 `json:"description"`
	InterfaceType         string                 `json:"interfaceType,omitempty"`
	Attachment            Attachment             `json:"attachment,omitempty"`
	Namespace             string                 `json:"namespace,omitempty"`
	Dimensions            []Dimension            `json:"dimensions,omitempty"`
	IPPermissions         []IPPermission         `json:"ipPermissions,omitempty"`
	IPPermissionsEgress   []IPPermission         `json:"ipPermissionsEgress,omitempty"`
	Routes                []Route                `json:"routes,omitempty"`
	LaunchTemplateConfigs []LaunchTemplateConfig `json:"LaunchTemplateConfigs,omitempty"`
	Entries               []Entry                `json:"entries,omitempty"`
	Path                  string                 `json:"path,omitempty"`
	TargetGroupARNs       []string               `json:"targetGroupARNs,omitempty"`
	DBClusterIdentifier   string                 `json:"dbclusterIdentifier,omitempty"`
	LoadBalancerARN       string                 `json:"LoadBalancerARN,omitempty"`
}

type ConfigurationItem

type ConfigurationItem struct {
	ResourceType               string                     `json:"resourceType"`
	ResourceID                 string                     `json:"resourceId"`
	ResourceName               string                     `json:"resourceName"`
	ARN                        string                     `json:"ARN"`
	Region                     string                     `json:"awsRegion"` // should be limited to certain regions
	Zone                       string                     `json:"availabilityZone"`
	AccountID                  string                     `json:"awsAccountId"`            // should be limited to numeric
	Status                     string                     `json:"configurationItemStatus"` // should be limited to the limited sets of status
	Relationships              []Relationship             `json:"relationships"`
	Configuration              Configuration              `json:"configuration"`
	SupplementaryConfiguration SupplementaryConfiguration `json:"supplementaryConfiguration"`
	Tags                       map[string]string          `json:"tags"`
}

type Dimension

type Dimension struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type EC2Instance

type EC2Instance struct {
	InstanceID       string `json:"instanceId"`
	InstanceType     string `json:"instanceType"`
	AvailabilityZone string `json:"availabilityZone"`
}

type Entry

type Entry struct {
	CidrBlock  string `json:"cidrBlock"`
	Egress     bool   `json:"egress"`
	Protocol   string `json:"protocol"`
	RuleAction string `json:"ruleAction"`
	RuleNumber int64  `json:"ruleNumber"`
}

type IPPermission

type IPPermission struct {
	FromPort         int64             `json:"fromPort"`
	ToPort           int64             `json:"toPort"`
	IPProtocol       string            `json:"ipProtocol"`
	IPRanges         []string          `json:"ipRanges"`
	IPV4Ranges       []IPV4Range       `json:"ipv4Ranges"`
	IPV6Ranges       []IPV4Range       `json:"ipv6Ranges"`
	UserIDGroupPairs []UserIDGroupPair `json:"userIdGroupPairs"`
}

type IPV4Range

type IPV4Range struct {
	CIDRIP      string `json:"cidrIp"`
	Description string `json:"description,omitempty"`
}

type Instance

type Instance struct {
	SchemaVersion int
	Attributes    map[string]interface{}
	Private       string
	IndexKey      string
}

type LaunchTemplateConfig

type LaunchTemplateConfig struct {
	LaunchTemplateSpecification LaunchTemplateSpecification `json:"LaunchTemplateSpecification,omitempty"`
}

type LaunchTemplateSpecification

type LaunchTemplateSpecification struct {
	LaunchTemplateID string `json:"LaunchTemplateId,omitempty"`
	Version          string `json:"Version,omitempty"`
}

type Relationship

type Relationship struct {
	ResourceType string `json:"resourceType"`
	ResourceID   string `json:"resourceId"`
	ResourceName string `json:"resourceName"`
	Name         string `json:"name"`
}

type Resource

type Resource struct {
	Module    string
	Mode      string
	Type      string
	Name      string
	Provider  string
	Instances []Instance
}

type ResourcePair

type ResourcePair struct {
	ResourceType string `json:"resourceType"`
	ResourceID   string `json:"resourceId"`
}

type Route

type Route struct {
	DestinationCIDRBlock   string `json:"destinationCidrBlock,omitempty"`
	Origin                 string `json:"origin,omitempty"`
	State                  string `json:"state,omitempty"`
	VPCPeeringConnectionID string `json:"vpcPeeringConnectionId,omitempty"`
	GatewayID              string `json:"gatewayId,omitempty"`
	NATGatewayID           string `json:"natGatewayId,omitempty"`
}

type Snapshot

type Snapshot struct {
	FileVersion        string              `json:"fileVersion"`
	ConfigSnapShotID   string              `json:"configSnapshotId"`
	ConfigurationItems []ConfigurationItem `json:"configurationItems"`
}

type SupplementaryConfiguration

type SupplementaryConfiguration struct {
	UnsupportedResources []ResourcePair `json:"unsupportedResources,omitempty"`
}

type TerraformState

type TerraformState struct {
	Version          int
	TerraformVersion string
	Serial           int
	Lineage          string
	Outputs          map[string]interface{}
	Resources        []Resource
}

type UserIDGroupPair

type UserIDGroupPair struct {
	Description          string `json:"description"`
	GroupID              string `json:"groupId"` // this is the source security group
	UserID               string `json:"userId"`
	VPCID                string `json:"vpcId"`
	VPCPeeringConnection string `json:"vpcPeeringConnection"`
}

Jump to

Keyboard shortcuts

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