From 48fcc73617ac7550f757546a51744a3c02533037 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Wed, 14 Jun 2023 10:21:41 +0800 Subject: [PATCH] fix function name in comment Signed-off-by: cui fliter --- internal/service/apigatewayv2/wait.go | 2 +- internal/service/ec2/vpc_dhcp_options.go | 2 +- internal/service/ec2/vpc_network_acl_association.go | 2 +- internal/service/mq/forge.go | 2 +- internal/service/networkmanager/connect_peer.go | 2 +- internal/service/opensearch/domain.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/service/apigatewayv2/wait.go b/internal/service/apigatewayv2/wait.go index 247cb328238..6ec23efe847 100644 --- a/internal/service/apigatewayv2/wait.go +++ b/internal/service/apigatewayv2/wait.go @@ -55,7 +55,7 @@ func WaitVPCLinkAvailable(ctx context.Context, conn *apigatewayv2.ApiGatewayV2, return nil, err } -// WaitVPCLinkAvailable waits for a VPC Link to return Deleted +// WaitVPCLinkDeleted waits for a VPC Link to return Deleted func WaitVPCLinkDeleted(ctx context.Context, conn *apigatewayv2.ApiGatewayV2, vpcLinkId string) (*apigatewayv2.GetVpcLinkOutput, error) { stateConf := &retry.StateChangeConf{ Pending: []string{apigatewayv2.VpcLinkStatusDeleting}, diff --git a/internal/service/ec2/vpc_dhcp_options.go b/internal/service/ec2/vpc_dhcp_options.go index f15b8a90c19..7656c993d3b 100644 --- a/internal/service/ec2/vpc_dhcp_options.go +++ b/internal/service/ec2/vpc_dhcp_options.go @@ -270,7 +270,7 @@ func (m *dhcpOptionsMap) dhcpConfigurationsToResourceData(dhcpConfigurations []* return nil } -// resourceDataToNewDhcpConfigurations returns a list of AWS API DHCP configurations from Terraform ResourceData. +// resourceDataToDHCPConfigurations returns a list of AWS API DHCP configurations from Terraform ResourceData. func (m *dhcpOptionsMap) resourceDataToDHCPConfigurations(d *schema.ResourceData) ([]*ec2.NewDhcpConfiguration, error) { var output []*ec2.NewDhcpConfiguration diff --git a/internal/service/ec2/vpc_network_acl_association.go b/internal/service/ec2/vpc_network_acl_association.go index e57b5dae842..e199078d91d 100644 --- a/internal/service/ec2/vpc_network_acl_association.go +++ b/internal/service/ec2/vpc_network_acl_association.go @@ -178,7 +178,7 @@ func networkACLAssociationDelete(ctx context.Context, conn *ec2.EC2, association return nil } -// networkACLAssociationDelete deletes the specified NACL associations for the specified subnets. +// networkACLAssociationsDelete deletes the specified NACL associations for the specified subnets. // Each subnet's current association is replaced by an association with the specified VPC's default NACL. func networkACLAssociationsDelete(ctx context.Context, conn *ec2.EC2, vpcID string, subnetIDs []interface{}) error { defaultNACL, err := FindVPCDefaultNetworkACL(ctx, conn, vpcID) diff --git a/internal/service/mq/forge.go b/internal/service/mq/forge.go index 488f821a6cd..2d7549ef39f 100644 --- a/internal/service/mq/forge.go +++ b/internal/service/mq/forge.go @@ -6,7 +6,7 @@ import ( "github.com/beevik/etree" ) -// cannonicalXML reads XML in a string and re-writes it canonically, used for +// CanonicalXML reads XML in a string and re-writes it canonically, used for // comparing XML for logical equivalency func CanonicalXML(s string) (string, error) { doc := etree.NewDocument() diff --git a/internal/service/networkmanager/connect_peer.go b/internal/service/networkmanager/connect_peer.go index 62990f6b823..f28ae987f89 100644 --- a/internal/service/networkmanager/connect_peer.go +++ b/internal/service/networkmanager/connect_peer.go @@ -439,7 +439,7 @@ func waitConnectPeerDeleted(ctx context.Context, conn *networkmanager.NetworkMan return nil, err } -// validationExceptionMessageContains returns true if the error matches all these conditions: +// validationExceptionMessage_Contains returns true if the error matches all these conditions: // - err is of type networkmanager.ValidationException // - ValidationException.Reason equals reason // - ValidationException.Message_ contains message diff --git a/internal/service/opensearch/domain.go b/internal/service/opensearch/domain.go index 951858d28ee..76fab01103e 100644 --- a/internal/service/opensearch/domain.go +++ b/internal/service/opensearch/domain.go @@ -1378,7 +1378,7 @@ func EBSVolumeTypePermitsIopsInput(volumeType string) bool { return false } -// EBSVolumeTypePermitsIopsInput returns true if the volume type supports the Throughput input +// EBSVolumeTypePermitsThroughputInput returns true if the volume type supports the Throughput input // // This check prevents a ValidationException when updating EBS volume types from a value // that supports Throughput (ex. gp3) to one that doesn't (ex. gp2).