From 5f074ea260593ad08dfb74126ab761bad88021a5 Mon Sep 17 00:00:00 2001 From: oriAdler Date: Mon, 11 Mar 2024 14:29:27 +0200 Subject: [PATCH] OCM-6620 | feat: add `SignatureDoesNotMatch` const Add the const to handle errors returned from the AWS client in CS. --- pkg/aws/errors/errors.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/aws/errors/errors.go b/pkg/aws/errors/errors.go index 7349b57..388b813 100644 --- a/pkg/aws/errors/errors.go +++ b/pkg/aws/errors/errors.go @@ -8,8 +8,9 @@ import ( ) const ( - InvalidClientTokenID = "InvalidClientTokenId" - AccessDenied = "AccessDenied" + SignatureDoesNotMatch = "SignatureDoesNotMatch" + InvalidClientTokenID = "InvalidClientTokenId" + AccessDenied = "AccessDenied" Forbidden = "Forbidden" DryRunOperation = "DryRunOperation" UnauthorizedOperation = "UnauthorizedOperation" @@ -28,7 +29,7 @@ const ( NoSuchHostedZone = "NoSuchHostedZone" DependencyViolation = "DependencyViolation" NoSuchEntity = "NoSuchEntity" - InvalidRouteTableID = "InvalidRouteTableID.NotFound" + InvalidRouteTableID = "InvalidRouteTableID.NotFound" InvalidInternetGatewayID = "InvalidInternetGatewayID.NotFound" InvalidVpcID = "InvalidVpcID.NotFound" InvalidAllocationID = "InvalidAllocationID.NotFound" @@ -79,4 +80,3 @@ func IsDeleteConfictException(err error) bool { var deleteConflict *iamtypes.DeleteConflictException return errors.As(err, &deleteConflict) } -