Documentation ¶
Index ¶
- Constants
- func BuildAttributeFilterList(attrs map[string]string) []*ec2.Filter
- func ClientVpnAuthorizationRuleCreateID(endpointID, targetNetworkCidr, accessGroupID string) string
- func ClientVpnAuthorizationRuleParseID(id string) (string, string, string, error)
- func ClientVpnNetworkAssociationCreateID(endpointID, associationID string) string
- func ClientVpnNetworkAssociationParseID(id string) (string, string, error)
- func ClientVpnRouteCreateID(endpointID, targetSubnetID, destinationCidr string) string
- func ClientVpnRouteParseID(id string) (string, string, string, error)
- func ErrCodeEquals(err error, code string) bool
- func VpnGatewayVpcAttachmentCreateID(vpnGatewayID, vpcID string) string
Constants ¶
const ( ErrCodeClientVpnEndpointIdNotFound = "InvalidClientVpnEndpointId.NotFound" ErrCodeClientVpnAuthorizationRuleNotFound = "InvalidClientVpnEndpointAuthorizationRuleNotFound" ErrCodeClientVpnAssociationIdNotFound = "InvalidClientVpnAssociationId.NotFound" ErrCodeClientVpnRouteNotFound = "InvalidClientVpnRouteNotFound" )
const ( InvalidSecurityGroupIDNotFound = "InvalidSecurityGroupID.NotFound" InvalidGroupNotFound = "InvalidGroup.NotFound" )
const ( InvalidVpnGatewayAttachmentNotFound = "InvalidVpnGatewayAttachment.NotFound" InvalidVpnGatewayIDNotFound = "InvalidVpnGatewayID.NotFound" )
Variables ¶
This section is empty.
Functions ¶
func BuildAttributeFilterList ¶
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 ClientVpnRouteCreateID ¶
func ErrCodeEquals ¶
Copied from aws-sdk-go-base Can be removed when aws-sdk-go-base v0.6+ is merged TODO:
Types ¶
This section is empty.