package
0.0.0-20240423105938-c441d598810c
Repository: https://github.com/cloudposse/terraform-provider-awsutils.git
Documentation: pkg.go.dev

# Functions

Base64Encode encodes data if the input isn't already encoded using base64.StdEncoding.EncodeToString.
CanonicalCIDRBlock returns the canonical representation of a CIDR block.
CIDRBlocksEqual returns whether or not two CIDR blocks are equal: - Both CIDR blocks parse to an IP address and network - The string representation of the IP addresses are equal - The string representation of the networks are equal This function is especially useful for IPv6 CIDR blocks which have multiple valid representations.
DiffStringMaps returns the set of keys and values that must be created, the set of keys and values that must be destroyed, and the set of keys and values that are unchanged.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SetTagsDiff sets the new plan difference with the result of merging resource tags on to those defined at the provider-level; returns an error if unsuccessful or if the resource tags are identical to those configured at the provider-level to avoid non-empty plans after resource READ operations as resource and provider-level tags will be indistinguishable when returned from an AWS API.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SuppressEquivalentTypeStringBoolean provides custom difference suppression for TypeString booleans Some arguments require three values: true, false, and "" (unspecified), but confusing behavior exists when converting bare true/false values with state.
SuppressMissingOptionalConfigurationBlock handles configuration block attributes in the following scenario: * The resource schema includes an optional configuration block with defaults * The API response includes those defaults to refresh into the Terraform state * The operator's configuration omits the optional configuration block.
No description provided by the author
No description provided by the author
ValidateIPv4CIDRBlock validates that the specified CIDR block is valid: - The CIDR block parses to an IP address and network - The IP address is an IPv4 address - The CIDR block is the CIDR block for the network.
ValidateIPv6CIDRBlock validates that the specified CIDR block is valid: - The CIDR block parses to an IP address and network - The IP address is an IPv6 address - The CIDR block is the CIDR block for the network.
ValidCIDRNetworkAddress ensures that the string value is a valid CIDR that represents a network address - it adds an error otherwise.
No description provided by the author
ValidIPv4CIDRNetworkAddress ensures that the string value is a valid IPv4 CIDR that represents a network address - it adds an error otherwise.
ValidIPv6CIDRNetworkAddress ensures that the string value is a valid IPv6 CIDR that represents a network address - it adds an error otherwise.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidTypeStringNullableBoolean provides custom error messaging for TypeString booleans Some arguments require three values: true, false, and "" (unspecified).
ValidTypeStringNullableFloat provides custom error messaging for TypeString floats Some arguments require a floating point value or an unspecified, empty field.
ValidUTCTimestamp validates a string in UTC Format required by APIs including: https://docs.aws.amazon.com/iot/latest/apireference/API_CloudwatchMetricAction.html https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RestoreDBInstanceToPointInTime.html.

# Constants

No description provided by the author

# Variables

No description provided by the author

# Interfaces

ResourceDiffer exposes the interface for accessing changes in a resource Implementations: * schema.ResourceData * schema.ResourceDiff FIXME: can be removed if https://github.com/hashicorp/terraform-plugin-sdk/pull/626/files is merged.