SesV2Client.listContacts (The request signature we calculated does not match the signature you provided)

0

When I call SesV2Client.listContacts, I always get the issue below: software.amazon.awssdk.services.sesv2.model.SesV2Exception: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. (Service: SesV2, Status Code: 403, Request ID: 3d6650d8-8f25-457a-9e25-cfc0483021d4)

I am using the right access key and secret key under my IAM user. Can someone help take a look why? Thanks.

Code is below: SesV2Client client = SesV2Client.builder() .region(Region.US_WEST_1) .build(); try { ListContactsRequest request = ListContactsRequest.builder() .contactListName("mylistname") .pageSize(pageSize) .build(); ListContactsResponse response = client.listContacts(request); } ....

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠