Command option Sample:aws logs put-resource-policy

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

Creates or updates a resource policy allowing other AWS services toput log events to this account, such as Amazon Route 53.Show details from next link. https://docs.aws.amazon.com/ja_jp/cli/latest/reference/logs/put-resource-policy.html

aws logs put-resource-policy --policy-name my-policy --policy-document '
    Creating and Configuring Amazon Elasticsearch Service Domains - Amazon Elasticsearch Service : http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html
aws logs put-resource-policy --policy-name my-policy --policy-document
    Amazon Elasticsearch Service - Developer Guide - [PDF Document] : http://vdocuments.mx/amazon-elasticsearch-service-developer-guide.html

aws のオプション一覧