Skip to content

DOCS:deviceshadow - #7

Merged
Koonosuke merged 1 commit into
mainfrom
feature/0001
Dec 4, 2025
Merged

Koonosuke merged 1 commit into
mainfrom
feature/0001

Conversation

@Koonosuke

Copy link
Copy Markdown
Collaborator

概要

DOCS:deviceshadow

その他

@github-actions

github-actions Bot commented Dec 4, 2025

Copy link
Copy Markdown

🔗 関連するNotionタスク

状態: 進行中

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @Koonosuke, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

このプルリクエストは、AWS IoT Device Shadowの概念と関連するサービス間の連携を説明する新しいドキュメントを追加します。主な変更は、デバイスからWebアプリケーションへのデータフローを示すMermaidフローチャートの導入であり、これによりシステムのアーキテクチャとDevice Shadowの機能が明確に視覚化されます。

Highlights

  • 新規ドキュメント追加: AWS IoT Device Shadowサービスに関するMermaidフローチャートを含む、新しいドキュメントファイル DOCS/devicesshadow.md が追加されました。
  • Mermaidフローチャート: デバイス、AWS IoT Core、AWS Lambda、Amazon API Gateway、Webアプリケーション間のデータフローと、Device Shadowの役割を視覚的に表現するフローチャートが導入されました。
  • セキュリティに関する注意書き: GitHubのような高セキュリティビューアではHTMLラベルの画像埋め込みが制限されるため、アイコンの色を模したスタイルのみが適用されていること、およびローカルプレビューでのアイコン埋め込み方法について説明が追加されました。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@Koonosuke
Koonosuke merged commit f701177 into main Dec 4, 2025
1 check passed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

ドキュメントの追加ありがとうございます。MermaidでAWSのアーキテクチャ図を追加されたのですね。

1点、ファイル名が devicesshadow.md となっていますが、deviceshadow.md のタイポ(typo)ではないでしょうか?ご確認いただけると幸いです。

また、図の内容について1点フィードバックがあります。現在の図では、データの流れを示す矢印の向きが、注釈で説明されているデバイス制御のシナリオと一致していないように見受けられます。これにより、読者が混乱する可能性があるため、修正案を提案させていただきました。詳細はコメントをご確認ください。

Comment thread DOCS/devicesshadow.md
Comment on lines +3 to +42
flowchart LR
%% 左:デバイス、右:Webアプリ
device["Device\nPower: OFF"]
web["Web Application"]

%% 中央:AWS Cloud
subgraph cloud["AWS Cloud"]
direction LR
shadow["Device Shadow"]
core["AWS IoT Core"]
lambda["AWS Lambda"]
apigw["Amazon API Gateway"]
end

%% 接続
device --> shadow
shadow --> core
core --> lambda
lambda --> apigw
apigw --> web

%% メモ
note right of apigw
電源をONせよ
end note

note bottom of shadow
差分を管理
desired: "Power": "ON"
reported: "Power": "OFF"
delta: "Power": "ON"
end note

%% 色付け(AWSアイコンの色に寄せる)
classDef iot fill:#E6F1FB,stroke:#2667B2,color:#0A1F44;
classDef lambda fill:#FFF4E5,stroke:#F58536,color:#3C1E00;
classDef apigw fill:#FDEDEC,stroke:#D63A2F,color:#5C0F0A;
class device,shadow,core iot;
class lambda lambda;
class apigw apigw;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

この図は、Device Shadow を用いたデバイス制御の仕組みを説明することを意図していると拝見しました。注釈にある desired, reported, delta の状態は、まさにDevice Shadowの核心的な機能を示しています。

しかし、現在の図に描かれている矢印のフロー (device --> shadow --> ... --> web) は、デバイスからWebアプリケーションへの状態報告フローのように見え、Webアプリケーションからデバイスを制御する(例:「電源をONせよ」)というシナリオとは逆向きになっています。このため、図と注釈の間に矛盾が生じており、読者が混乱する可能性があります。

Webアプリケーションからデバイスを制御するフローをより明確に表現するために、図の構成を変更することを提案します。これにより、制御コマンドの流れが直感的に理解できるようになります。

flowchart LR
    %% 左:Webアプリ、右:デバイス
    web["Web Application"]
    device["Device\nPower: OFF"]

    %% 中央:AWS Cloud
    subgraph cloud["AWS Cloud"]
        direction LR
        apigw["Amazon API Gateway"]
        lambda["AWS Lambda"]
        core["AWS IoT Core"]
        shadow["Device Shadow"]
    end

    %% 接続
    web --> apigw
    apigw --> lambda
    lambda --> core
    core --> shadow
    shadow --> device

    %% メモ
    note on web
      電源をONせよ
    end note

    note bottom of shadow
      差分を管理
      desired: "Power": "ON"
      reported: "Power": "OFF"
      delta: "Power": "ON"
    end note

    %% 色付け(AWSアイコンの色に寄せる)
    classDef iot fill:#E6F1FB,stroke:#2667B2,color:#0A1F44;
    classDef lambda fill:#FFF4E5,stroke:#F58536,color:#3C1E00;
    classDef apigw fill:#FDEDEC,stroke:#D63A2F,color:#5C0F0A;
    class device,shadow,core iot;
    class lambda lambda;
    class apigw apigw;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant