Request SNS subscription confirmation again via API/SDK

0

Status quo

When an SNS subscription is still pending confirmation, you can re-send the confirmation via the management console (button: "Request confirmation").

Question

Is it possible to re-send the confirmation request via API/SDK?

Background

We offer our customers to create an SNS subscription for them to an SQS owned by our customer. Therefore, we need our customer to confirm the subscription with the message they receive in their SQS queue. However, the customer has to set up a policy first, that allows our SNS to send messages to their SQS queue (including the first confirmation request message). When the customer forgets to do this first, we would like to offer an API for them to re-send the confirmation request after they have set up the policy for their SQS correctly.

1개 답변
1

I don't see a direct API call to resent the confirmation, but you can trigger the confirmation again via the sns subscribe call. https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sns/subscribe.html

jsonc
답변함 2년 전
  • When you make sure that you re-define the subscription exactly the same way (e.g. RedrivePolicy) this works really well. Thanks for your help!

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

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

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

관련 콘텐츠