Amazon Web Services / Cloud
Amazon SQS 消息队列 API
Amazon Simple Queue Service 的完整 23 个官方 action;保留 AWS JSON 1.0、AWS Query 兼容性、SigV4 与区域 Endpoint 规则。当前网页端尚无 AWS SigV4 与区域选择执行适配器,可使用本地 SDK/CLI 调用。
鉴权设置
先完成当前浏览器会话的凭证与授权设置,再进入请求调试。
优先由管理员启用 IAM Identity Center,并为账户和 SQS 授予最低必要权限。
在本地运行 aws configure sso 和 aws sso login,让 SDK 从默认凭证链读取短期凭证与区域。
不要把长期 Access Key 粘贴到 Hub;当前 SQS 仅支持调用方本地 SDK/CLI 直连并完成 SigV4 签名。
列出队列
列出当前区域内的队列;最多返回 1,000 项并支持分页。 官方英文详细说明: <p>Returns a list of your queues in the current region. The response includes a maximum of 1,000 results. If you specify a value for the optional <code>QueueNamePrefix</code> parameter, only queues with a name that begins with the specified value are returned.</p> <p> The <code>listQueues</code> methods supports pagination. Set parameter <code>MaxResults</code> in the request to specify the maximum number of results to be returned in the response. If you do not set <code>MaxResults</code>, the response includes a maximum of 1,000 results. If you set <code>MaxResults</code> and there are additional results to display, the response includes a value for <code>NextToken</code>. Use <code>NextToken</code> as a parameter in your next request to <code>listQueues</code> to receive the next page of results. </p> <note> <p>Cross-account permissions don't apply to this action. For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name">Grant cross-account permissions to a role and a username</a> in the <i>Amazon SQS Developer Guide</i>.</p> </note>