Sets an attribute of a queue. Currently, you can set only the VisibilityTimeout attribute for a queue. See Visibility Timeout for more information.
![]() | Important |
|---|---|
Before the 2007-05-01 release introduced the |
The following table lists the special request parameters the action uses (in addition to the common request parameters listed in Common Request Parameters).
| Name | Description | Required |
|---|---|---|
| The attribute you want to set. Type: String Valid value: | Yes |
| The value of the attribute you want to set. Type: For visibility timeout, the value must be an integer from 0 to 86400 (24 hours). | Yes |
The response contains no special elements besides the common elements listed in The Structure of a Response.
The following table lists the special errors the action returns (in addition to the common errors listed in Common Errors).
| Error | Description | HTTP Status Code |
|---|---|---|
InvalidAttributeName | Unknown attribute | 400 |
The following example Query request sets the visibility timeout to 35 seconds for the specified queue.
http://queue.amazon.com/A29E9VSPHGOG23/queue2 ?Action=SetQueueAttributes &Attribute=VisibilityTimeout &Value=35 &AWSAccessKeyId=0GS7553JW74RRM612K02EXAMPLE &Version=2007-05-01 &Expires=2007-05-12T12:00:00Z &Signature=Dqlp3Sd6ljTUA9Uf6SGtEExwUQEXAMPLE=