

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# SetSubscriptionAttributes kebijakan pengiriman format JSON
<a name="set-sub-attributes-delivery-policy-json"></a>

Jika Anda mengirim permintaan ke `SetSubscriptionAttributes` tindakan dan mengatur `AttributeName` parameter ke nilai`DeliveryPolicy`, nilai `AttributeValue` parameter harus menjadi objek JSON yang valid. Sebagai contoh, contoh berikut menetapkan kebijakan pengiriman untuk 5 jumlah pengulangan.

```
http://sns.us-east-2.amazonaws.com/
?Action=SetSubscriptionAttributes
&SubscriptionArn=arn%3Aaws%3Asns%3Aus-east-2%3A123456789012%3AMy-Topic%3A80289ba6-0fd4-4079-afb4-ce8c8260f0ca
&AttributeName=DeliveryPolicy
&AttributeValue={"healthyRetryPolicy":{"numRetries":5}}
...
```

Gunakan format JSON berikut untuk nilai `AttributeValue` parameter.

```
{
    "healthyRetryPolicy" : {
        "minDelayTarget" :  int,
        "maxDelayTarget" : int,
        "numRetries" : int,
        "numMaxDelayRetries" : int,
        "backoffFunction" : "linear|arithmetic|geometric|exponential"
    },
    "throttlePolicy" : {
        "maxReceivesPerSecond" : int
    },
    "requestPolicy" : {
        "headerContentType" : "text/plain | application/json | application/xml"
    }
}
```

Untuk informasi selengkapnya tentang `SetSubscriptionAttribute` tindakan tersebut, buka *Referensi API Layanan Pemberitahuan Sederhana Amazon*. [SetSubscriptionAttributes](https://docs.aws.amazon.com/sns/latest/api/API_SetSubscriptionAttributes.html) Untuk informasi selengkapnya tentang header tipe konten HTTP yang didukung, lihat. [Membuat kebijakan HTTP/S pengiriman](sns-message-delivery-retries.md#creating-delivery-policy)