1
00:00:00,330 --> 00:00:04,380
In this video we are going to publish message to topic on Amazon.

2
00:00:04,380 --> 00:00:10,830
Since using the PlayStation console in order to receive a message published to the topic, we have to

3
00:00:10,830 --> 00:00:12,870
subscribe an end point to the topic.

4
00:00:12,870 --> 00:00:17,670
So when we subscribe an endpoint to the topic, the endpoint begins to receive message publish to the

5
00:00:17,670 --> 00:00:18,810
associated topic.

6
00:00:18,960 --> 00:00:23,580
So in the last video, if you remember that we have created a subscription to our topic, which is the

7
00:00:23,580 --> 00:00:30,060
email, and we expect that if we send a message to our topic, this will be consumed from our email

8
00:00:30,060 --> 00:00:30,840
provider.

9
00:00:30,840 --> 00:00:35,250
So let's publish a message to the topic using the main console.

10
00:00:35,280 --> 00:00:37,440
Please open the management console.

11
00:00:37,470 --> 00:00:43,350
Go to the topic that we have created and after open the topic page, you can see in here there is a

12
00:00:43,350 --> 00:00:44,790
publish message button.

13
00:00:44,790 --> 00:00:48,240
But before that I would like to show you one important thing.

14
00:00:48,240 --> 00:00:53,730
If you scroll down after the open the topic and come to subscription page, you can see the list of

15
00:00:53,730 --> 00:01:00,120
the subscriptions as you remember that in the last video we have added and this topic with our email

16
00:01:00,120 --> 00:01:00,720
address.

17
00:01:00,720 --> 00:01:03,450
But this status is pending confirmation.

18
00:01:03,450 --> 00:01:10,920
So that means we have to confirm this subscription to the topic and after that we can receive the message

19
00:01:10,920 --> 00:01:13,320
from the publishers due to this topic.

20
00:01:13,320 --> 00:01:20,040
So for that purpose, open the our type mail and open the mail that you can see a notification from

21
00:01:20,040 --> 00:01:23,790
the subscription confirmation and open this mail.

22
00:01:23,790 --> 00:01:27,150
And after that, click the confirm subscription button.

23
00:01:27,600 --> 00:01:31,980
So after confirming the subscription, you can see the message in here.

24
00:01:31,980 --> 00:01:33,360
Subscription is confirmed.

25
00:01:33,360 --> 00:01:39,540
And if you come back to our topic and refresh our page, you can see that our subscription is ready

26
00:01:39,540 --> 00:01:41,310
to get received message.

27
00:01:41,310 --> 00:01:46,050
So now we can publish message to this topic that received from the our email address.

28
00:01:46,050 --> 00:01:51,720
If you come to the topic and click the publish message, you can see the configurations of the published

29
00:01:51,720 --> 00:01:52,950
message to this topic.

30
00:01:52,950 --> 00:01:59,250
So we basically give the subject as a hello and if you scroll down we can see the message button.

31
00:01:59,250 --> 00:02:02,190
You can give the raw message body in here.

32
00:02:02,220 --> 00:02:07,860
If you click this custom payload, you can see the example payload to the different services that consume

33
00:02:07,860 --> 00:02:08,850
from this topic.

34
00:02:08,850 --> 00:02:14,670
But since we are basic email subscriber, we can give the email.

35
00:02:15,950 --> 00:02:17,450
Subscriber message.

36
00:02:21,320 --> 00:02:22,030
Two topic.

37
00:02:23,820 --> 00:02:27,160
I have provided a random string message to our email address.

38
00:02:27,180 --> 00:02:33,060
If you scroll down, I'm not going to give any of it, but you can set some of the type of the attributes

39
00:02:33,060 --> 00:02:34,760
one publishing message.

40
00:02:34,770 --> 00:02:40,950
So if you click the publish message, you can see that the message published to our topic, which is

41
00:02:40,950 --> 00:02:45,410
the my topic successfully, you can see the message ID and the request ID.

42
00:02:45,420 --> 00:02:53,550
So now we are going to wait for the receiving this message from our subscribers, which is our end point

43
00:02:53,580 --> 00:02:54,810
of the email address.

44
00:02:55,200 --> 00:03:02,070
After I have tried a several time and send and publish message to our topic, I have successfully managed

45
00:03:02,070 --> 00:03:05,160
to get email from the alias.

46
00:03:05,190 --> 00:03:10,920
As you can set, the subject is hello test and if you open this message, the message, the mail comes

47
00:03:10,920 --> 00:03:15,330
from the Amazon and you can see the details about our topic and so on.

48
00:03:15,420 --> 00:03:22,980
So as you can see that we have successfully subscribed and publish message to our topic in the next

49
00:03:22,980 --> 00:03:27,190
video, we are going to delete our subscriptions and delete our topic from the.
