@@ -16,7 +16,6 @@ import (
16
16
awstypes "github.com/aws/aws-sdk-go-v2/service/ec2/types"
17
17
"github.com/hashicorp/aws-sdk-go-base/v2/tfawserr"
18
18
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
19
- "github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
20
19
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
21
20
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
22
21
"github.com/hashicorp/terraform-provider-aws/internal/conns"
@@ -716,28 +715,6 @@ func modifyVPCTenancy(ctx context.Context, conn *ec2.Client, vpcID string, v str
716
715
return nil
717
716
}
718
717
719
- func findIPAMPoolAllocationsForVPC (ctx context.Context , conn * ec2.Client , poolID , vpcID string ) ([]awstypes.IpamPoolAllocation , error ) {
720
- input := & ec2.GetIpamPoolAllocationsInput {
721
- IpamPoolId : aws .String (poolID ),
722
- }
723
-
724
- output , err := findIPAMPoolAllocations (ctx , conn , input )
725
-
726
- if err != nil {
727
- return nil , err
728
- }
729
-
730
- output = tfslices .Filter (output , func (v awstypes.IpamPoolAllocation ) bool {
731
- return v .ResourceType == awstypes .IpamPoolAllocationResourceTypeVpc && aws .ToString (v .ResourceId ) == vpcID
732
- })
733
-
734
- if len (output ) == 0 {
735
- return nil , & retry.NotFoundError {}
736
- }
737
-
738
- return output , nil
739
- }
740
-
741
718
func vpcARN (ctx context.Context , c * conns.AWSClient , accountID , vpcID string ) string {
742
719
return c .RegionalARNWithAccount (ctx , names .EC2 , accountID , "vpc/" + vpcID )
743
720
}
0 commit comments