ec2

package
v0.0.0-...-c441d59 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EBSSnapshotImportStateActive     = "active"
	EBSSnapshotImportStateDeleting   = "deleting"
	EBSSnapshotImportStateDeleted    = "deleted"
	EBSSnapshotImportStateUpdating   = "updating"
	EBSSnapshotImportStateValidating = "validating"
	EBSSnapshotImportStateValidated  = "validated"
	EBSSnapshotImportStateConverting = "converting"
	EBSSnapshotImportStateCompleted  = "completed"
)

See https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#check-import-task-status

View Source
const (
	CustomerGatewayStateAvailable = "available"
	CustomerGatewayStateDeleted   = "deleted"
	CustomerGatewayStateDeleting  = "deleting"
	CustomerGatewayStatePending   = "pending"
)

See https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CustomerGateway.html#API_CustomerGateway_Contents.

View Source
const (
	LaunchTemplateVersionDefault = "$Default"
	LaunchTemplateVersionLatest  = "$Latest"
)
View Source
const (
	OutsideIPAddressTypePrivateIPv4 = "PrivateIpv4"
	OutsideIPAddressTypePublicIPv4  = "PublicIpv4"
)
View Source
const (
	ErrCodeDefaultSubnetAlreadyExistsInAvailabilityZone = "DefaultSubnetAlreadyExistsInAvailabilityZone"

	ErrCodeInvalidCarrierGatewayIDNotFound = "InvalidCarrierGatewayID.NotFound"

	ErrCodeInvalidConnectionNotification = "InvalidConnectionNotification"

	ErrCodeInvalidSpotDatafeedNotFound = "InvalidSpotDatafeed.NotFound"
)
View Source
const (
	AmazonIPv6PoolID = "Amazon"
)
View Source
const (
	DefaultDHCPOptionsID = "default"
)
View Source
const (
	DefaultSecurityGroupName = "default"
)
View Source
const (
	DefaultSnapshotImportRoleName = "vmimport"
)
View Source
const (
	// The AWS SDK constant ec2.FleetOnDemandAllocationStrategyLowestPrice is incorrect.
	FleetOnDemandAllocationStrategyLowestPrice = "lowestPrice"
)
View Source
const (
	InternetGatewayAttachmentStateAvailable = "available"
)

See https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInternetGateways.html#API_DescribeInternetGateways_Example_1_Response.

View Source
const (
	NetworkInterfaceStatusPending = "pending"
)

See https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateNetworkInterface.html#API_CreateNetworkInterface_Example_2_Response.

View Source
const (
	// The AWS SDK constant ec2.SpotAllocationStrategyLowestPrice is incorrect.
	SpotAllocationStrategyLowestPrice = "lowestPrice"
)
View Source
const (
	SriovNetSupportSimple = "simple"
)
View Source
const (
	TargetStorageTierStandard = "standard"
)

Variables

This section is empty.

Functions

func BuildAttributeFilterList

func BuildAttributeFilterList(m map[string]string) []*ec2.Filter

BuildAttributeFilterList takes a flat map of scalar attributes (most likely values extracted from a *schema.ResourceData on an EC2-querying data source) and produces a []*ec2.Filter representing an exact match for each of the given non-empty attributes.

The keys of the given attributes map are the attribute names expected by the EC2 API, which are usually either in camelcase or with dash-separated words. We conventionally map these to underscore-separated identifiers with the same words when presenting these as data source query attributes in Terraform.

It's the callers responsibility to transform any non-string values into the appropriate string serialization required by the AWS API when encoding the given filter. Any attributes given with empty string values are ignored, assuming that the user wishes to leave that attribute unconstrained while filtering.

The purpose of this function is to create values to pass in for the "Filters" attribute on most of the "Describe..." API functions in the EC2 API, to aid in the implementation of Terraform data sources that retrieve data about EC2 objects.

func BuildFiltersDataSource

func BuildFiltersDataSource(set *schema.Set) []*ec2.Filter

func CPUCredits_Values

func CPUCredits_Values() []string

func CancelSpotFleetRequestError

func CancelSpotFleetRequestError(apiObject *ec2.CancelSpotFleetRequestsErrorItem) error

func CancelSpotFleetRequestsError

func CancelSpotFleetRequestsError(apiObjects []*ec2.CancelSpotFleetRequestsErrorItem) error

func DataSourceEC2ExportClientVpnClientConfiguration

func DataSourceEC2ExportClientVpnClientConfiguration() *schema.Resource

func DataSourceFiltersSchema

func DataSourceFiltersSchema() *schema.Schema

func DeleteFleetError

func DeleteFleetError(apiObject *ec2.DeleteFleetErrorItem) error

func DeleteFleetsError

func DeleteFleetsError(apiObjects []*ec2.DeleteFleetErrorItem) error

func FindAvailabilityZone

func FindAvailabilityZone(conn *ec2.EC2, input *ec2.DescribeAvailabilityZonesInput) (*ec2.AvailabilityZone, error)

func FindAvailabilityZoneGroupByName

func FindAvailabilityZoneGroupByName(conn *ec2.EC2, name string) (*ec2.AvailabilityZone, error)

func FindAvailabilityZones

func FindAvailabilityZones(conn *ec2.EC2, input *ec2.DescribeAvailabilityZonesInput) ([]*ec2.AvailabilityZone, error)

func FindCOIPPool

func FindCOIPPool(conn *ec2.EC2, input *ec2.DescribeCoipPoolsInput) (*ec2.CoipPool, error)

func FindCOIPPools

func FindCOIPPools(conn *ec2.EC2, input *ec2.DescribeCoipPoolsInput) ([]*ec2.CoipPool, error)

func FindCapacityReservation

func FindCapacityReservation(conn *ec2.EC2, input *ec2.DescribeCapacityReservationsInput) (*ec2.CapacityReservation, error)

func FindCapacityReservationByID

func FindCapacityReservationByID(conn *ec2.EC2, id string) (*ec2.CapacityReservation, error)

func FindCapacityReservations

func FindCapacityReservations(conn *ec2.EC2, input *ec2.DescribeCapacityReservationsInput) ([]*ec2.CapacityReservation, error)

func FindCarrierGatewayByID

func FindCarrierGatewayByID(conn *ec2.EC2, id string) (*ec2.CarrierGateway, error)

FindCarrierGatewayByID returns the carrier gateway corresponding to the specified identifier. Returns nil and potentially an error if no carrier gateway is found.

func FindClientVPNAuthorizationRuleByThreePartKey

func FindClientVPNAuthorizationRuleByThreePartKey(conn *ec2.EC2, endpointID, targetNetworkCIDR, accessGroupID string) (*ec2.AuthorizationRule, error)

func FindClientVPNAuthorizationRules

func FindClientVPNAuthorizationRules(conn *ec2.EC2, input *ec2.DescribeClientVpnAuthorizationRulesInput) ([]*ec2.AuthorizationRule, error)

func FindClientVPNEndpoint

func FindClientVPNEndpoint(conn *ec2.EC2, input *ec2.DescribeClientVpnEndpointsInput) (*ec2.ClientVpnEndpoint, error)

func FindClientVPNEndpointByID

func FindClientVPNEndpointByID(conn *ec2.EC2, id string) (*ec2.ClientVpnEndpoint, error)

func FindClientVPNEndpointClientConnectResponseOptionsByID

func FindClientVPNEndpointClientConnectResponseOptionsByID(conn *ec2.EC2, id string) (*ec2.ClientConnectResponseOptions, error)

func FindClientVPNEndpoints

func FindClientVPNEndpoints(conn *ec2.EC2, input *ec2.DescribeClientVpnEndpointsInput) ([]*ec2.ClientVpnEndpoint, error)

func FindClientVPNNetworkAssociation

func FindClientVPNNetworkAssociation(conn *ec2.EC2, input *ec2.DescribeClientVpnTargetNetworksInput) (*ec2.TargetNetwork, error)

func FindClientVPNNetworkAssociationByIDs

func FindClientVPNNetworkAssociationByIDs(conn *ec2.EC2, associationID, endpointID string) (*ec2.TargetNetwork, error)

func FindClientVPNNetworkAssociations

func FindClientVPNNetworkAssociations(conn *ec2.EC2, input *ec2.DescribeClientVpnTargetNetworksInput) ([]*ec2.TargetNetwork, error)

func FindClientVPNRoute

func FindClientVPNRoute(conn *ec2.EC2, input *ec2.DescribeClientVpnRoutesInput) (*ec2.ClientVpnRoute, error)

func FindClientVPNRouteByThreePartKey

func FindClientVPNRouteByThreePartKey(conn *ec2.EC2, endpointID, targetSubnetID, destinationCIDR string) (*ec2.ClientVpnRoute, error)

func FindClientVPNRoutes

func FindClientVPNRoutes(conn *ec2.EC2, input *ec2.DescribeClientVpnRoutesInput) ([]*ec2.ClientVpnRoute, error)

func FindCreateSnapshotCreateVolumePermissionByTwoPartKey

func FindCreateSnapshotCreateVolumePermissionByTwoPartKey(conn *ec2.EC2, snapshotID, accountID string) (*ec2.CreateVolumePermission, error)

func FindCustomerGateway

func FindCustomerGateway(conn *ec2.EC2, input *ec2.DescribeCustomerGatewaysInput) (*ec2.CustomerGateway, error)

func FindCustomerGatewayByID

func FindCustomerGatewayByID(conn *ec2.EC2, id string) (*ec2.CustomerGateway, error)

func FindDHCPOptions

func FindDHCPOptions(conn *ec2.EC2, input *ec2.DescribeDhcpOptionsInput) (*ec2.DhcpOptions, error)

func FindDHCPOptionsByID

func FindDHCPOptionsByID(conn *ec2.EC2, id string) (*ec2.DhcpOptions, error)

func FindDHCPOptionses

func FindDHCPOptionses(conn *ec2.EC2, input *ec2.DescribeDhcpOptionsInput) ([]*ec2.DhcpOptions, error)

func FindDefaultVpc

func FindDefaultVpc(conn *ec2.EC2) (*ec2.Vpc, error)

VpcDefault looks up the Default Vpc. When not found, returns nil and potentially an API error.

func FindEBSVolume

func FindEBSVolume(conn *ec2.EC2, input *ec2.DescribeVolumesInput) (*ec2.Volume, error)

func FindEBSVolumeAttachment

func FindEBSVolumeAttachment(conn *ec2.EC2, volumeID, instanceID, deviceName string) (*ec2.VolumeAttachment, error)

func FindEBSVolumeByID

func FindEBSVolumeByID(conn *ec2.EC2, id string) (*ec2.Volume, error)

func FindEBSVolumes

func FindEBSVolumes(conn *ec2.EC2, input *ec2.DescribeVolumesInput) ([]*ec2.Volume, error)

func FindEIPs

func FindEIPs(conn *ec2.EC2, input *ec2.DescribeAddressesInput) ([]*ec2.Address, error)

func FindEgressOnlyInternetGatewayByID

func FindEgressOnlyInternetGatewayByID(conn *ec2.EC2, id string) (*ec2.EgressOnlyInternetGateway, error)

func FindFindSnapshotTierStatus

func FindFindSnapshotTierStatus(conn *ec2.EC2, input *ec2.DescribeSnapshotTierStatusInput) (*ec2.SnapshotTierStatus, error)

func FindFindSnapshotTierStatuses

func FindFindSnapshotTierStatuses(conn *ec2.EC2, input *ec2.DescribeSnapshotTierStatusInput) ([]*ec2.SnapshotTierStatus, error)

func FindFleet

func FindFleet(conn *ec2.EC2, input *ec2.DescribeFleetsInput) (*ec2.FleetData, error)

func FindFleetByID

func FindFleetByID(conn *ec2.EC2, id string) (*ec2.FleetData, error)

func FindFleets

func FindFleets(conn *ec2.EC2, input *ec2.DescribeFleetsInput) ([]*ec2.FleetData, error)

func FindFlowLogByID

func FindFlowLogByID(conn *ec2.EC2, id string) (*ec2.FlowLog, error)

func FindHost

func FindHost(conn *ec2.EC2, input *ec2.DescribeHostsInput) (*ec2.Host, error)

func FindHostByID

func FindHostByID(conn *ec2.EC2, id string) (*ec2.Host, error)

func FindHostByIDAndFilters

func FindHostByIDAndFilters(conn *ec2.EC2, id string, filters []*ec2.Filter) (*ec2.Host, error)

func FindImage

func FindImage(conn *ec2.EC2, input *ec2.DescribeImagesInput) (*ec2.Image, error)

func FindImageByID

func FindImageByID(conn *ec2.EC2, id string) (*ec2.Image, error)

func FindImageLaunchPermission

func FindImageLaunchPermission(ctx context.Context, conn *ec2.EC2, imageID, accountID, group, organizationARN, organizationalUnitARN string) (*ec2.LaunchPermission, error)

func FindImageLaunchPermissionsByID

func FindImageLaunchPermissionsByID(ctx context.Context, conn *ec2.EC2, id string) ([]*ec2.LaunchPermission, error)

func FindImportSnapshotTask

func FindImportSnapshotTask(conn *ec2.EC2, input *ec2.DescribeImportSnapshotTasksInput) (*ec2.ImportSnapshotTask, error)

func FindImportSnapshotTaskByID

func FindImportSnapshotTaskByID(conn *ec2.EC2, id string) (*ec2.ImportSnapshotTask, error)

func FindImportSnapshotTasks

func FindImportSnapshotTasks(conn *ec2.EC2, input *ec2.DescribeImportSnapshotTasksInput) ([]*ec2.ImportSnapshotTask, error)

func FindInstance

func FindInstance(conn *ec2.EC2, input *ec2.DescribeInstancesInput) (*ec2.Instance, error)

func FindInstanceByID

func FindInstanceByID(conn *ec2.EC2, id string) (*ec2.Instance, error)

func FindInstanceCreditSpecificationByID

func FindInstanceCreditSpecificationByID(conn *ec2.EC2, id string) (*ec2.InstanceCreditSpecification, error)

func FindInstanceType

func FindInstanceType(conn *ec2.EC2, input *ec2.DescribeInstanceTypesInput) (*ec2.InstanceTypeInfo, error)

func FindInstanceTypeByName

func FindInstanceTypeByName(conn *ec2.EC2, name string) (*ec2.InstanceTypeInfo, error)

func FindInstanceTypeOfferings

func FindInstanceTypeOfferings(conn *ec2.EC2, input *ec2.DescribeInstanceTypeOfferingsInput) ([]*ec2.InstanceTypeOffering, error)

func FindInstanceTypes

func FindInstanceTypes(conn *ec2.EC2, input *ec2.DescribeInstanceTypesInput) ([]*ec2.InstanceTypeInfo, error)

func FindInstances

func FindInstances(conn *ec2.EC2, input *ec2.DescribeInstancesInput) ([]*ec2.Instance, error)

func FindInternetGateway

func FindInternetGateway(conn *ec2.EC2, input *ec2.DescribeInternetGatewaysInput) (*ec2.InternetGateway, error)

func FindInternetGatewayAttachment

func FindInternetGatewayAttachment(conn *ec2.EC2, internetGatewayID, vpcID string) (*ec2.InternetGatewayAttachment, error)

func FindInternetGatewayByID

func FindInternetGatewayByID(conn *ec2.EC2, id string) (*ec2.InternetGateway, error)

func FindInternetGatewayForVPC

func FindInternetGatewayForVPC(conn *ec2.EC2, vpcID string) (*ec2.InternetGateway, error)

VpcDefault looks up the Default Vpc. When not found, returns nil and potentially an API error.

func FindInternetGateways

func FindInternetGateways(conn *ec2.EC2, input *ec2.DescribeInternetGatewaysInput) ([]*ec2.InternetGateway, error)

func FindKeyPair

func FindKeyPair(conn *ec2.EC2, input *ec2.DescribeKeyPairsInput) (*ec2.KeyPairInfo, error)

func FindKeyPairByName

func FindKeyPairByName(conn *ec2.EC2, name string) (*ec2.KeyPairInfo, error)

func FindKeyPairs

func FindKeyPairs(conn *ec2.EC2, input *ec2.DescribeKeyPairsInput) ([]*ec2.KeyPairInfo, error)

func FindLaunchTemplate

func FindLaunchTemplate(conn *ec2.EC2, input *ec2.DescribeLaunchTemplatesInput) (*ec2.LaunchTemplate, error)

func FindLaunchTemplateByID

func FindLaunchTemplateByID(conn *ec2.EC2, id string) (*ec2.LaunchTemplate, error)

func FindLaunchTemplateVersionByTwoPartKey

func FindLaunchTemplateVersionByTwoPartKey(conn *ec2.EC2, launchTemplateID, version string) (*ec2.LaunchTemplateVersion, error)

func FindLaunchTemplateVersions

func FindLaunchTemplateVersions(conn *ec2.EC2, input *ec2.DescribeLaunchTemplateVersionsInput) ([]*ec2.LaunchTemplateVersion, error)

func FindLaunchTemplates

func FindLaunchTemplates(conn *ec2.EC2, input *ec2.DescribeLaunchTemplatesInput) ([]*ec2.LaunchTemplate, error)

func FindLocalGateway

func FindLocalGateway(conn *ec2.EC2, input *ec2.DescribeLocalGatewaysInput) (*ec2.LocalGateway, error)

func FindLocalGateways

func FindLocalGateways(conn *ec2.EC2, input *ec2.DescribeLocalGatewaysInput) ([]*ec2.LocalGateway, error)

func FindMainRouteTableAssociationByID

func FindMainRouteTableAssociationByID(conn *ec2.EC2, associationID string) (*ec2.RouteTableAssociation, error)

FindMainRouteTableAssociationByID returns the main route table association corresponding to the specified identifier. Returns NotFoundError if no route table association is found.

func FindMainRouteTableAssociationByVPCID

func FindMainRouteTableAssociationByVPCID(conn *ec2.EC2, vpcID string) (*ec2.RouteTableAssociation, error)

FindMainRouteTableAssociationByVPCID returns the main route table association for the specified VPC. Returns NotFoundError if no route table association is found.

func FindMainRouteTableByVPCID

func FindMainRouteTableByVPCID(conn *ec2.EC2, vpcID string) (*ec2.RouteTable, error)

FindMainRouteTableByVPCID returns the main route table for the specified VPC. Returns NotFoundError if no route table is found.

func FindManagedPrefixListByID

func FindManagedPrefixListByID(conn *ec2.EC2, id string) (*ec2.ManagedPrefixList, error)

func FindManagedPrefixListEntriesByID

func FindManagedPrefixListEntriesByID(conn *ec2.EC2, id string) ([]*ec2.PrefixListEntry, error)

func FindManagedPrefixListEntryByIDAndCIDR

func FindManagedPrefixListEntryByIDAndCIDR(conn *ec2.EC2, id, cidr string) (*ec2.PrefixListEntry, error)

func FindNATGateway

func FindNATGateway(conn *ec2.EC2, input *ec2.DescribeNatGatewaysInput) (*ec2.NatGateway, error)

func FindNATGatewayByID

func FindNATGatewayByID(conn *ec2.EC2, id string) (*ec2.NatGateway, error)

func FindNATGateways

func FindNATGateways(conn *ec2.EC2, input *ec2.DescribeNatGatewaysInput) ([]*ec2.NatGateway, error)

func FindNetworkACL

func FindNetworkACL(conn *ec2.EC2, input *ec2.DescribeNetworkAclsInput) (*ec2.NetworkAcl, error)

func FindNetworkACLAssociationByID

func FindNetworkACLAssociationByID(conn *ec2.EC2, associationID string) (*ec2.NetworkAclAssociation, error)

func FindNetworkACLAssociationBySubnetID

func FindNetworkACLAssociationBySubnetID(conn *ec2.EC2, subnetID string) (*ec2.NetworkAclAssociation, error)

func FindNetworkACLByID

func FindNetworkACLByID(conn *ec2.EC2, id string) (*ec2.NetworkAcl, error)

func FindNetworkACLEntryByThreePartKey

func FindNetworkACLEntryByThreePartKey(conn *ec2.EC2, naclID string, egress bool, ruleNumber int) (*ec2.NetworkAclEntry, error)

func FindNetworkACLs

func FindNetworkACLs(conn *ec2.EC2, input *ec2.DescribeNetworkAclsInput) ([]*ec2.NetworkAcl, error)

func FindNetworkInsightsPath

func FindNetworkInsightsPath(conn *ec2.EC2, input *ec2.DescribeNetworkInsightsPathsInput) (*ec2.NetworkInsightsPath, error)

func FindNetworkInsightsPathByID

func FindNetworkInsightsPathByID(conn *ec2.EC2, id string) (*ec2.NetworkInsightsPath, error)

func FindNetworkInsightsPaths

func FindNetworkInsightsPaths(conn *ec2.EC2, input *ec2.DescribeNetworkInsightsPathsInput) ([]*ec2.NetworkInsightsPath, error)

func FindNetworkInterface

func FindNetworkInterface(conn *ec2.EC2, input *ec2.DescribeNetworkInterfacesInput) (*ec2.NetworkInterface, error)

func FindNetworkInterfaceAttachmentByID

func FindNetworkInterfaceAttachmentByID(conn *ec2.EC2, id string) (*ec2.NetworkInterfaceAttachment, error)

func FindNetworkInterfaceByID

func FindNetworkInterfaceByID(conn *ec2.EC2, id string) (*ec2.NetworkInterface, error)

func FindNetworkInterfaceSecurityGroup

func FindNetworkInterfaceSecurityGroup(conn *ec2.EC2, networkInterfaceID string, securityGroupID string) (*ec2.GroupIdentifier, error)

func FindNetworkInterfaces

func FindNetworkInterfaces(conn *ec2.EC2, input *ec2.DescribeNetworkInterfacesInput) ([]*ec2.NetworkInterface, error)

func FindNetworkInterfacesByAttachmentInstanceOwnerIDAndDescription

func FindNetworkInterfacesByAttachmentInstanceOwnerIDAndDescription(conn *ec2.EC2, attachmentInstanceOwnerID, description string) ([]*ec2.NetworkInterface, error)

func FindPlacementGroupByName

func FindPlacementGroupByName(conn *ec2.EC2, name string) (*ec2.PlacementGroup, error)

func FindPrefixList

func FindPrefixList(conn *ec2.EC2, input *ec2.DescribePrefixListsInput) (*ec2.PrefixList, error)

func FindPrefixListByName

func FindPrefixListByName(conn *ec2.EC2, name string) (*ec2.PrefixList, error)

func FindPrefixLists

func FindPrefixLists(conn *ec2.EC2, input *ec2.DescribePrefixListsInput) ([]*ec2.PrefixList, error)

func FindRouteByIPv4Destination

func FindRouteByIPv4Destination(conn *ec2.EC2, routeTableID, destinationCidr string) (*ec2.Route, error)

FindRouteByIPv4Destination returns the route corresponding to the specified IPv4 destination. Returns NotFoundError if no route is found.

func FindRouteByIPv6Destination

func FindRouteByIPv6Destination(conn *ec2.EC2, routeTableID, destinationIpv6Cidr string) (*ec2.Route, error)

FindRouteByIPv6Destination returns the route corresponding to the specified IPv6 destination. Returns NotFoundError if no route is found.

func FindRouteByPrefixListIDDestination

func FindRouteByPrefixListIDDestination(conn *ec2.EC2, routeTableID, prefixListID string) (*ec2.Route, error)

FindRouteByPrefixListIDDestination returns the route corresponding to the specified prefix list destination. Returns NotFoundError if no route is found.

func FindRouteTable

func FindRouteTable(conn *ec2.EC2, input *ec2.DescribeRouteTablesInput) (*ec2.RouteTable, error)

func FindRouteTableAssociationByID

func FindRouteTableAssociationByID(conn *ec2.EC2, associationID string) (*ec2.RouteTableAssociation, error)

FindRouteTableAssociationByID returns the route table association corresponding to the specified identifier. Returns NotFoundError if no route table association is found.

func FindRouteTableByID

func FindRouteTableByID(conn *ec2.EC2, routeTableID string) (*ec2.RouteTable, error)

FindRouteTableByID returns the route table corresponding to the specified identifier. Returns NotFoundError if no route table is found.

func FindRouteTables

func FindRouteTables(conn *ec2.EC2, input *ec2.DescribeRouteTablesInput) ([]*ec2.RouteTable, error)

func FindSecurityGroup

func FindSecurityGroup(conn *ec2.EC2, input *ec2.DescribeSecurityGroupsInput) (*ec2.SecurityGroup, error)

FindSecurityGroup looks up a security group using an ec2.DescribeSecurityGroupsInput. Returns a resource.NotFoundError if not found.

func FindSecurityGroupByID

func FindSecurityGroupByID(conn *ec2.EC2, id string) (*ec2.SecurityGroup, error)

func FindSecurityGroupByNameAndVPCID

func FindSecurityGroupByNameAndVPCID(conn *ec2.EC2, name, vpcID string) (*ec2.SecurityGroup, error)

FindSecurityGroupByNameAndVPCID looks up a security group by name and VPC ID. Returns a resource.NotFoundError if not found.

func FindSecurityGroups

func FindSecurityGroups(conn *ec2.EC2, input *ec2.DescribeSecurityGroupsInput) ([]*ec2.SecurityGroup, error)

func FindSnapshot

func FindSnapshot(conn *ec2.EC2, input *ec2.DescribeSnapshotsInput) (*ec2.Snapshot, error)

func FindSnapshotByID

func FindSnapshotByID(conn *ec2.EC2, id string) (*ec2.Snapshot, error)

func FindSnapshotTierStatusBySnapshotID

func FindSnapshotTierStatusBySnapshotID(conn *ec2.EC2, id string) (*ec2.SnapshotTierStatus, error)

func FindSnapshots

func FindSnapshots(conn *ec2.EC2, input *ec2.DescribeSnapshotsInput) ([]*ec2.Snapshot, error)

func FindSpotFleetRequestByID

func FindSpotFleetRequestByID(conn *ec2.EC2, id string) (*ec2.SpotFleetRequestConfig, error)

func FindSpotFleetRequests

func FindSpotFleetRequests(conn *ec2.EC2, input *ec2.DescribeSpotFleetRequestsInput) ([]*ec2.SpotFleetRequestConfig, error)

func FindSpotInstanceRequest

func FindSpotInstanceRequest(conn *ec2.EC2, input *ec2.DescribeSpotInstanceRequestsInput) (*ec2.SpotInstanceRequest, error)

func FindSpotInstanceRequestByID

func FindSpotInstanceRequestByID(conn *ec2.EC2, id string) (*ec2.SpotInstanceRequest, error)

func FindSpotInstanceRequests

func FindSpotInstanceRequests(conn *ec2.EC2, input *ec2.DescribeSpotInstanceRequestsInput) ([]*ec2.SpotInstanceRequest, error)

func FindSubnet

func FindSubnet(conn *ec2.EC2, input *ec2.DescribeSubnetsInput) (*ec2.Subnet, error)

func FindSubnetByID

func FindSubnetByID(conn *ec2.EC2, id string) (*ec2.Subnet, error)

func FindSubnetCIDRReservationBySubnetIDAndReservationID

func FindSubnetCIDRReservationBySubnetIDAndReservationID(conn *ec2.EC2, subnetID, reservationID string) (*ec2.SubnetCidrReservation, error)

func FindSubnetIPv6CIDRBlockAssociationByID

func FindSubnetIPv6CIDRBlockAssociationByID(conn *ec2.EC2, associationID string) (*ec2.SubnetIpv6CidrBlockAssociation, error)

func FindSubnets

func FindSubnets(conn *ec2.EC2, input *ec2.DescribeSubnetsInput) ([]*ec2.Subnet, error)

func FindSubnetsForVPC

func FindSubnetsForVPC(conn *ec2.EC2, vpcID string) ([]*ec2.Subnet, error)

SubnetsForVPC looks up a the Subnets for a VPC. When not found, returns nil and potentially an API error.

func FindTransitGateway

func FindTransitGateway(conn *ec2.EC2, input *ec2.DescribeTransitGatewaysInput) (*ec2.TransitGateway, error)

func FindTransitGatewayAttachmentByID

func FindTransitGatewayAttachmentByID(conn *ec2.EC2, id string) (*ec2.TransitGatewayAttachment, error)

func FindTransitGatewayByID

func FindTransitGatewayByID(conn *ec2.EC2, id string) (*ec2.TransitGateway, error)

func FindTransitGatewayConnectByID

func FindTransitGatewayConnectByID(conn *ec2.EC2, id string) (*ec2.TransitGatewayConnect, error)

func FindTransitGatewayConnectPeerByID

func FindTransitGatewayConnectPeerByID(conn *ec2.EC2, id string) (*ec2.TransitGatewayConnectPeer, error)

func FindTransitGatewayConnects

func FindTransitGatewayConnects(conn *ec2.EC2, input *ec2.DescribeTransitGatewayConnectsInput) ([]*ec2.TransitGatewayConnect, error)

func FindTransitGatewayMulticastDomainAssociationByThreePartKey

func FindTransitGatewayMulticastDomainAssociationByThreePartKey(conn *ec2.EC2, multicastDomainID, attachmentID, subnetID string) (*ec2.TransitGatewayMulticastDomainAssociation, error)

func FindTransitGatewayMulticastDomainByID

func FindTransitGatewayMulticastDomainByID(conn *ec2.EC2, id string) (*ec2.TransitGatewayMulticastDomain, error)

func FindTransitGatewayMulticastGroupMemberByThreePartKey

func FindTransitGatewayMulticastGroupMemberByThreePartKey(conn *ec2.EC2, multicastDomainID, groupIPAddress, eniID string) (*ec2.TransitGatewayMulticastGroup, error)

func FindTransitGatewayMulticastGroupSourceByThreePartKey

func FindTransitGatewayMulticastGroupSourceByThreePartKey(conn *ec2.EC2, multicastDomainID, groupIPAddress, eniID string) (*ec2.TransitGatewayMulticastGroup, error)

func FindTransitGatewayPrefixListReferenceByTwoPartKey

func FindTransitGatewayPrefixListReferenceByTwoPartKey(conn *ec2.EC2, transitGatewayRouteTableID, prefixListID string) (*ec2.TransitGatewayPrefixListReference, error)

func FindTransitGatewayRoute

func FindTransitGatewayRoute(conn *ec2.EC2, transitGatewayRouteTableID, destination string) (*ec2.TransitGatewayRoute, error)

func FindTransitGatewayRouteTablePropagation

func FindTransitGatewayRouteTablePropagation(conn *ec2.EC2, transitGatewayRouteTableID string, transitGatewayAttachmentID string) (*ec2.TransitGatewayRouteTablePropagation, error)

func FindTransitGatewayVPCAttachmentByID

func FindTransitGatewayVPCAttachmentByID(conn *ec2.EC2, id string) (*ec2.TransitGatewayVpcAttachment, error)

func FindTransitGateways

func FindTransitGateways(conn *ec2.EC2, input *ec2.DescribeTransitGatewaysInput) ([]*ec2.TransitGateway, error)

func FindVPC

func FindVPC(conn *ec2.EC2, input *ec2.DescribeVpcsInput) (*ec2.Vpc, error)

func FindVPCAttribute

func FindVPCAttribute(conn *ec2.EC2, vpcID string, attribute string) (bool, error)

func FindVPCByID

func FindVPCByID(conn *ec2.EC2, id string) (*ec2.Vpc, error)

func FindVPCCIDRBlockAssociationByID

func FindVPCCIDRBlockAssociationByID(conn *ec2.EC2, id string) (*ec2.VpcCidrBlockAssociation, *ec2.Vpc, error)

func FindVPCClassicLinkDNSSupported

func FindVPCClassicLinkDNSSupported(conn *ec2.EC2, vpcID string) (bool, error)

func FindVPCClassicLinkEnabled

func FindVPCClassicLinkEnabled(conn *ec2.EC2, vpcID string) (bool, error)

func FindVPCDHCPOptionsAssociation

func FindVPCDHCPOptionsAssociation(conn *ec2.EC2, vpcID string, dhcpOptionsID string) error

func FindVPCDefaultNetworkACL

func FindVPCDefaultNetworkACL(conn *ec2.EC2, id string) (*ec2.NetworkAcl, error)

func FindVPCDefaultSecurityGroup

func FindVPCDefaultSecurityGroup(conn *ec2.EC2, id string) (*ec2.SecurityGroup, error)

func FindVPCEndpoint

func FindVPCEndpoint(conn *ec2.EC2, input *ec2.DescribeVpcEndpointsInput) (*ec2.VpcEndpoint, error)

func FindVPCEndpointByID

func FindVPCEndpointByID(conn *ec2.EC2, id string) (*ec2.VpcEndpoint, error)

func FindVPCEndpointConnectionByServiceIDAndVPCEndpointID

func FindVPCEndpointConnectionByServiceIDAndVPCEndpointID(conn *ec2.EC2, serviceID, vpcEndpointID string) (*ec2.VpcEndpointConnection, error)

func FindVPCEndpointRouteTableAssociationExists

func FindVPCEndpointRouteTableAssociationExists(conn *ec2.EC2, vpcEndpointID string, routeTableID string) error

FindVPCEndpointRouteTableAssociationExists returns NotFoundError if no association for the specified VPC endpoint and route table IDs is found.

func FindVPCEndpointSecurityGroupAssociationExists

func FindVPCEndpointSecurityGroupAssociationExists(conn *ec2.EC2, vpcEndpointID, securityGroupID string) error

FindVPCEndpointSecurityGroupAssociationExists returns NotFoundError if no association for the specified VPC endpoint and security group IDs is found.

func FindVPCEndpointServiceConfigurationByID

func FindVPCEndpointServiceConfigurationByID(conn *ec2.EC2, id string) (*ec2.ServiceConfiguration, error)

func FindVPCEndpointServiceConfigurationByServiceName

func FindVPCEndpointServiceConfigurationByServiceName(conn *ec2.EC2, name string) (*ec2.ServiceConfiguration, error)

func FindVPCEndpointServicePermissionExists

func FindVPCEndpointServicePermissionExists(conn *ec2.EC2, serviceID, principalARN string) error

func FindVPCEndpointServicePermissions

func FindVPCEndpointServicePermissions(conn *ec2.EC2, input *ec2.DescribeVpcEndpointServicePermissionsInput) ([]*ec2.AllowedPrincipal, error)

func FindVPCEndpointServicePermissionsByID

func FindVPCEndpointServicePermissionsByID(conn *ec2.EC2, id string) ([]*ec2.AllowedPrincipal, error)

func FindVPCEndpointSubnetAssociationExists

func FindVPCEndpointSubnetAssociationExists(conn *ec2.EC2, vpcEndpointID string, subnetID string) error

FindVPCEndpointSubnetAssociationExists returns NotFoundError if no association for the specified VPC endpoint and subnet IDs is found.

func FindVPCEndpoints

func FindVPCEndpoints(conn *ec2.EC2, input *ec2.DescribeVpcEndpointsInput) ([]*ec2.VpcEndpoint, error)

func FindVPCIPv6CIDRBlockAssociationByID

func FindVPCIPv6CIDRBlockAssociationByID(conn *ec2.EC2, id string) (*ec2.VpcIpv6CidrBlockAssociation, *ec2.Vpc, error)

func FindVPCMainRouteTable

func FindVPCMainRouteTable(conn *ec2.EC2, id string) (*ec2.RouteTable, error)

func FindVPCPeeringConnectionByID

func FindVPCPeeringConnectionByID(conn *ec2.EC2, id string) (*ec2.VpcPeeringConnection, error)

func FindVPCPeeringConnections

func FindVPCPeeringConnections(conn *ec2.EC2, input *ec2.DescribeVpcPeeringConnectionsInput) ([]*ec2.VpcPeeringConnection, error)

func FindVPCs

func FindVPCs(conn *ec2.EC2, input *ec2.DescribeVpcsInput) ([]*ec2.Vpc, error)

func FindVPNConnection

func FindVPNConnection(conn *ec2.EC2, input *ec2.DescribeVpnConnectionsInput) (*ec2.VpnConnection, error)

func FindVPNConnectionByID

func FindVPNConnectionByID(conn *ec2.EC2, id string) (*ec2.VpnConnection, error)

func FindVPNConnectionRouteByVPNConnectionIDAndCIDR

func FindVPNConnectionRouteByVPNConnectionIDAndCIDR(conn *ec2.EC2, vpnConnectionID, cidrBlock string) (*ec2.VpnStaticRoute, error)

func FindVPNGateway

func FindVPNGateway(conn *ec2.EC2, input *ec2.DescribeVpnGatewaysInput) (*ec2.VpnGateway, error)

func FindVPNGatewayByID

func FindVPNGatewayByID(conn *ec2.EC2, id string) (*ec2.VpnGateway, error)

func FindVPNGatewayRoutePropagationExists

func FindVPNGatewayRoutePropagationExists(conn *ec2.EC2, routeTableID, gatewayID string) error

FindVPNGatewayRoutePropagationExists returns NotFoundError if no route propagation for the specified VPN gateway is found.

func FindVPNGatewayVPCAttachment

func FindVPNGatewayVPCAttachment(conn *ec2.EC2, vpnGatewayID, vpcID string) (*ec2.VpcAttachment, error)

func FindVolumeModification

func FindVolumeModification(conn *ec2.EC2, input *ec2.DescribeVolumesModificationsInput) (*ec2.VolumeModification, error)

func FindVolumeModificationByID

func FindVolumeModificationByID(conn *ec2.EC2, id string) (*ec2.VolumeModification, error)

func FindVolumeModifications

func FindVolumeModifications(conn *ec2.EC2, input *ec2.DescribeVolumesModificationsInput) ([]*ec2.VolumeModification, error)

func FleetOnDemandAllocationStrategy_Values

func FleetOnDemandAllocationStrategy_Values() []string

func NewFilter

func NewFilter(name string, values []string) *ec2.Filter

func ResourceDefaultVpcDeletion

func ResourceDefaultVpcDeletion() *schema.Resource

func SpotAllocationStrategy_Values

func SpotAllocationStrategy_Values() []string

func UnsuccessfulItemError

func UnsuccessfulItemError(apiObject *ec2.UnsuccessfulItemError) error

func UnsuccessfulItemsError

func UnsuccessfulItemsError(apiObjects []*ec2.UnsuccessfulItem) error

Types

type RouteFinder

type RouteFinder func(*ec2.EC2, string, string) (*ec2.Route, error)

RouteFinder returns the route corresponding to the specified destination. Returns NotFoundError if no route is found.

Jump to

Keyboard shortcuts

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