JAPAN MAY 11 - 12, 2021

Transcription

JAPAN MAY 11 - 12, 2021 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS-46通話アプリで学ぶ Amazon SES, Amazon Pinpoint,Amazon Chime SDK内 �� 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

紹介内 陽介 (Yosuke Uchiyama) Internet Media Solutions Solutions Architectバックグラウンド Webサービスの開発/運 クライアント 〜 インフラ好きなAWSサービス Amazon Pinpoint AWS Amplify 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

�実現まとめ 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

�実現まとめ 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

�ビスを提供しているAmazon SES メール配信Amazon Pinpoint ターゲティング配信Amazon Chime SDK 声通話, ビデオ通話 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

本セッションで扱うサービスAmazon Simple EmailService (Amazon SES)メールの送信や受信を うAmazon Pinpointユーザーの 動や属性情報を分析し、メール, プッシュ通知, SMSなどにターゲティング配信を うAmazon Chime �に埋め込み、 ation Developer Services 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

�実現まとめ 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

��の通知接続先情報メールの �ードプッシュ通知ユーザーBとの Uサーバーサービス 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

�実現まとめ 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

��の通知接続先情報メールの �ードプッシュ通知ユーザーBとの Uサーバーサービス 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Chime SDK とはAmazon Chime SDK Amazon ChimeChime を制御するための SDK ではないChime ��をアプリに組み込むための SDK 声、ビデオ、画 �ングシステムとブラウザで、 �を強化 規模な RTC の運 に関する専 知識140カ国、14 の AWS リージョンでサポート 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Chime SDK �ーサイドアプリケーションでChime API を使 � う 声通話、ビデオ通話、画 �ン&サービス。 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Chime SDK と AWS SDK の役割WebRTCAmazon ChimeSDKetcAmazon Chimeメディアサービス Amazon Chime SDK で うこと 声通話、ビデオ通話の接続と制御画 ��ョン内のイベントのハンドリング などMeeting の作成などAPI CallAWS SDKAmazon ChimeAPI AWS SDK で うこと ��ンや参加者へのタグの付与など 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Chime SDK を利 した構成例REST API External Meeting IDExternal User ID Meeting IDAttendee ID Meeting ID Attendee ID 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Chime SDK for js npm で利 可能なオープンソース JavaScript SDK Windows および Mac での WebRTC Safari)およびElectron アプリのサポート デバイスコントローラー、ロガー �るエンコード/デコード ��イムイベントWeb アプリケーションJavaScript ��Amazon Chime JavaScript ufJsブラウザ 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Chime SDK React Component ponentlibrary-react npm で利 可能なオープンソース JavaScript SDKWeb アプリケーション Javascript フレームワークの React の UI コンポーネントを利 して Chime SDK を利 できるUI Component UI コンポーネントの他に、 Providers や Hooks などの React の状態管理を利 して、UI レイヤーの更新を えるAmazon Chime SDK ReactComponent t APIs(オープンソース)Amazon Chime JavaScript SDK(オープンソース)ブラウザ 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Chime SDK for iOS / oidhttps://github.com/aws/amazon-chime-sdk-ios Swift および Kotlin ベースの API Android 5.0 and iOS 10.0 ョンiOSアプリケーションKotlin APIsSwift Android SDKAmazonChime iOSSDKAndroid SDKiOS SDK 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

APIサーバー// 会議の作成const meeting (await chime.createMeeting({ClientRequestToken: uuidv4(),MediaRegion: region,ExternalMeetingId: title.substring(0, 64),}).promise());// 参加者の作成const attendee (await chime.createAttendee({MeetingId: meeting.Meeting.MeetingId,ExternalUserId: {uuidv4().substring(0, 8)}# {name} .substring(0, 64),}).promise());// ユーザー側にレスポンスreturn response(200, 'application/json', JSON.stringify({JoinInfo: {Meeting: meeting,Attendee: attendee,},}, null, 2)); 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

iOS// �ョン情報の構築let meetingSessionConfig MeetingSessionConfiguration(createMeetingResponse: currentMeetingResponse,createAttendeeResponse: currentAttendeeResponse)// セッションの開始let currentMeetingSession DefaultMeetingSession(configuration: meetingSessionConfig,logger: logger)Android// �ョン情報の構築val configuration meeting),CreateAttendeeResponse(attendee))// セッションの開始val meetingSession DefaultMeetingSession(configuration, ConsoleLogger(), applicationContext) 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

��の通知接続先情報メールの �ードプッシュ通知ユーザーBとの ��サービスChime SDKサービスユーザーBChime SDK 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

�実現まとめ 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

��の通知接続先情報メールの �ードプッシュ通知ユーザーBとの ��サービスChime SDKサービスユーザーBChime SDK 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon �・属性収集可視化・分析 購 ��ーション)通知 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Pinpoint �でプロダクトやサービスの利 を促進トランザクション購 �で送付する通知の管理基盤として利 �案内を 度に送ることが可能 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

APIサーバー // 参加者の作成const attendee (await chime.createAttendee({MeetingId: meeting.Meeting.MeetingId,ExternalUserId: {uuidv4().substring(0, 8)}# {name} .substring(0, 64),}).promise());// ユーザーB へのプッシュ通知の送信const messgaes (await pinpoint.sendMessages({'Addresses': {[token]: {'ChannelType' : 'APNS'}},'MessageConfiguration': {'APNSMessage': {'Action': action,'Body': message,'Priority': priority,'SilentPush': silent,'Title': title,'TimeToLive': ttl,'Url': url,'APNSPushType’: ‘voip’}}}).promise()); 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

iOS (ユーザーB)Call Kitを使って受信するextension AppDelegate: PKPushRegistryDelegate {func pushRegistry( registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type:PKPushType) {// 通話UIを表示する// �に注意。事前にAPNs VoIP pns-voip-channel.html 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Android (ユーザーB)class PushListenerService : FirebaseMessagingService() {override fun onMessageReceived(remoteMessage: RemoteMessage) {// 通話UIを表 する// する}}着信時に全画 で通知を う場合はAndroid �ァイルで USE FULL SCREEN INTENT essageReceived �みで送信する必要があります。 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

ールの �ードプッシュ通知ユーザーBとの �AAmazon hime SDKサービスユーザーBChime SDK 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

ールの �ードプッシュ通知ユーザーBとの �AAmazon hime SDKサービスユーザーBChime SDK 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon SES とはコスト効率の �ール受信Amazon S3 バケットに �信時に AWS Lambda を使 してカスタムコードを実 �メッセージの受信時に Amazon SNS を使 � 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon SES によるメール送信以下の3つの 法 Amazon SES コンソール Amazon SES API SMTP インターフェイス 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon SES API を利 したメール送信利 途にあわせて2種類のAPIが利 可能 SendEmail API: From, To, Subject, Bodyだけを 意すればAmazon SES側でメッセージを 成して送信SendRawEmail API �で 成して送信IAM �実 できる Amazon SES �リケーションから直接メール送信を う場合 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

ダッシュボード// ユーザーA, ユーザーB へメールの送信const params {Destinations: [{Destination: {ToAddresses: [‘user a@example.com']}},{Destination: {ToAddresses: [‘user b@example.com']},}],Source: 'ses@example.com',Template: 'TEMPLATE NAME',};const result (await ses.sendBulkTemplatedEmail(params).promise()); 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

通話アプリの全体像メールAmazon ��の �ードプッシュ通知ユーザーBとの �AAmazon hime SDKサービスユーザーBChime SDK 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

通話アプリの全体像メールAmazon ��の �ードプッシュ通知ユーザーBとの �AAmazon hime SDKサービスユーザーBChime SDK 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon ージメントプラットフォーム 析 購 ��ーション)通知 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Pinpoint �つ 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Pinpoint キャンペーンStep 1: セグメントの選択Step 2: チャネルの選択Step 3: コンテンツStep 4: スケジュール 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Pinpoint キャンペーンセグメントの 集団を選択 �ザー数の確認 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

�ーBとの �AAmazon hime SDKサービスユーザーBChime SDK 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

�実現まとめ 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

�いるAmazon SES メール配信Amazon Pinpoint ターゲティング配信Amazon Chime SDK 声通話, ビデオ通話 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

参考資料Amazon -amazon-ses-2019/Amazon t/Amazon Chime mazon-chime-sdk/ 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Thank you!内 �� 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

AWS トレーニングと認定AWS クラウドをキャリアに活 ��するAWS �られているAWS � ��イドを活 する詳細はこちら https://aws.amazon.com/jp/training/ 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Amazon Chime SDK for iOS / Android Amazon Chime iOS SDK Swift および Kotlin ベースの API Android 5.0 and iOS