ec2

package
v0.0.0-...-4f69453 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrCodeClientVpnEndpointIdNotFound        = "InvalidClientVpnEndpointId.NotFound"
	ErrCodeClientVpnAuthorizationRuleNotFound = "InvalidClientVpnEndpointAuthorizationRuleNotFound"
	ErrCodeClientVpnAssociationIdNotFound     = "InvalidClientVpnAssociationId.NotFound"
	ErrCodeClientVpnRouteNotFound             = "InvalidClientVpnRouteNotFound"
)
View Source
const (
	InvalidSecurityGroupIDNotFound = "InvalidSecurityGroupID.NotFound"
	InvalidGroupNotFound           = "InvalidGroup.NotFound"
)
View Source
const (
	InvalidVpnGatewayAttachmentNotFound = "InvalidVpnGatewayAttachment.NotFound"
	InvalidVpnGatewayIDNotFound         = "InvalidVpnGatewayID.NotFound"
)

Variables

This section is empty.

Functions

func BuildAttributeFilterList

func BuildAttributeFilterList(attrs 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 ClientVpnAuthorizationRuleCreateID

func ClientVpnAuthorizationRuleCreateID(endpointID, targetNetworkCidr, accessGroupID string) string

func ClientVpnAuthorizationRuleParseID

func ClientVpnAuthorizationRuleParseID(id string) (string, string, string, error)

func ClientVpnNetworkAssociationCreateID

func ClientVpnNetworkAssociationCreateID(endpointID, associationID string) string

func ClientVpnNetworkAssociationParseID

func ClientVpnNetworkAssociationParseID(id string) (string, string, error)

func ClientVpnRouteCreateID

func ClientVpnRouteCreateID(endpointID, targetSubnetID, destinationCidr string) string

func ClientVpnRouteParseID

func ClientVpnRouteParseID(id string) (string, string, string, error)

func ErrCodeEquals

func ErrCodeEquals(err error, code string) bool

Copied from aws-sdk-go-base Can be removed when aws-sdk-go-base v0.6+ is merged TODO:

func VpnGatewayVpcAttachmentCreateID

func VpnGatewayVpcAttachmentCreateID(vpnGatewayID, vpcID string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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