08.04.2020 Aufrufe

sqs-dg-2009-02-01

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

Amazon Simple Queue Service Developer Guide

Example AWS IAM Policies for Amazon SQS

Example 2: Allow developers to write messages to a shared test queue

In this example, we create a group for developers and attach a policy that lets the group use the Amazon

SQS SendMessage action, but only with the AWS Account's queue named CompanyTestQueue.

{

}

"Statement":[{

"Effect":"Allow",

"Action":"sqs:SendMessage",

"Resource":"arn:aws:sqs:*:123456789012:CompanyTestQueue"

}

]

Example 3: Allow managers to get the general size of queues

In this example, we create a group for managers and attach a policy that lets the group use the Amazon

SQS GetQueueAttributes action with all of the AWS Account's queues.

{

}

"Statement":[{

"Effect":"Allow",

"Action":"sqs:GetQueueAttributes",

"Resource":"*"

}

]

API Version 2009-02-01

69

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!