Command option Sample:aws iot attach-policy

Search command sample in the internet.It is the result.

Attaches a policy to the specified target.Show details from next link. https://docs.aws.amazon.com/ja_jp/cli/latest/reference/iot/attach-policy.html

aws iot attach-policy --target
    Using AWS IoT Device Management in a Retail Scenario to Process Order Requests | The Internet of Things on AWS Official Blog : http://aws.amazon.com/blogs/iot/iot-device-management-group-policy/
aws iot attach-policy \
    Thing Groups - AWS IoT : http://docs.aws.amazon.com/iot/latest/developerguide/thing-groups.html
aws iot attach-policy --policy-name
    aws-iot-device-management-workshop/AWS_IoT_Device_Management_Workshop.md at master 揃 aws-samples/aws-iot-device-management-workshop 揃 GitHub : http://github.com/aws-samples/aws-iot-device-management-workshop/blob/master/AWS_IoT_Device_Management_Workshop.md
aws iot attach-policy --policy-name AliceThermostatPolicy --target
    How to Eliminate the Need for Hardcoded AWS Credentials in Devices by Using the AWS IoT Credentials Provider | Noise : http://noise.getoto.net/2018/04/30/how-to-eliminate-the-need-for-hardcoded-aws-credentials-in-devices-by-using-the-aws-iot-credentials-provider/
aws iot attach-policy --policy-name fruit-policy --target arn:aws:iot:ap-northeast-1:xxx:cert/44969003adb95c46a537454b64a7262b0d8a7363435f36093d363e5961952a40
    AWS IoT 調査 (途中) : http://qiita.com/propella/items/da6b10f82c84be7e6996

aws のオプション一覧