UpdateConfigDeliveryChannel
Modifies a delivery channel for the current account.
Operation description
This topic provides an example to show how to change the status of the delivery channel cdc-8e45ff4e06a3a8**** to 0 (disabled). After the delivery channel is disabled, Cloud Config retains the latest delivery configuration and stops delivering resource data.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:UpdateConfigDeliveryChannel |
update |
*Delivery
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DeliveryChannelId |
string |
Yes |
The ID of the delivery channel. For more information about how to obtain the ID of a delivery channel, see ListConfigDeliveryChannels. |
cdc-8e45ff4e06a3a8**** |
| DeliveryChannelName |
string |
No |
The name of the delivery channel. |
testoss |
| DeliveryChannelTargetArn |
string |
No |
The ARN of the destination to which the delivery channel delivers data. Valid values:
|
acs:oss:cn-shanghai:100931896542****:new-bucket |
| DeliveryChannelCondition |
string |
No |
The additional rules for the delivery channel. Currently, all deliveries to Simple Message Queue (formerly MNS) and snapshot deliveries to Simple Log Service are supported.
|
[{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}] |
| OversizedDataOSSTargetArn |
string |
No |
The ARN of the OSS bucket to which oversized data is transferred when the data size exceeds the limit of the delivery channel. The format is If you do not specify this parameter, Cloud Config delivers only the summary information. Note
This parameter is supported only when the delivery channel is Simple Log Service or Simple Message Queue (formerly MNS). The delivery limit for Simple Log Service is 1 MB, and the delivery limit for Simple Message Queue (formerly MNS) is 64 KB. |
acs:oss:cn-shanghai:100931896542****:new-bucket |
| Description |
string |
No |
The description of the delivery channel. |
My OSS delivery. |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. |
1594295238-f9361358-5843-4294-8d30-b5183fac**** |
| ConfigurationSnapshot |
boolean |
No |
Specifies whether to receive scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots to OSS or Simple Log Service at 04:00:00 and 16:00:00 (UTC) every day. Valid values:
|
false |
| CompliantSnapshot |
boolean |
No |
Specifies whether to receive compliance snapshots. Cloud Config delivers resource compliance and non-compliance information to Simple Log Service. Valid values:
|
false |
| ConfigurationItemChangeNotification |
boolean |
No |
Specifies whether to receive the configuration history of resources. When the configuration of a resource changes, Cloud Config delivers the configuration history to OSS, Simple Log Service, or Simple Message Queue (formerly MNS). Valid values:
Note
This parameter is supported when the delivery channel is OSS, Simple Log Service, or Simple Message Queue (formerly MNS). |
false |
| NonCompliantNotification |
boolean |
No |
Specifies whether to receive resource non-compliance events. When a resource is evaluated as non-compliant, Cloud Config delivers the non-compliance event to Simple Log Service or Simple Message Queue (formerly MNS). Valid values:
Note
This parameter is supported only when the delivery channel is Simple Log Service or Simple Message Queue (formerly MNS). |
false |
| Status |
integer |
No |
The status of the delivery channel. Valid values:
|
0 |
| DeliverySnapshotTime |
string |
No |
The time of day when the delivery of scheduled resource snapshots starts. The time must be in the Note
When you enable the delivery of scheduled resource snapshots, you can use this parameter to customize the delivery time. If you do not specify this parameter, the delivery starts at 04:00:00 and 16:00:00 (UTC) every day by default. |
09:10Z |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
None. |
||
| RequestId |
string |
The ID of the request. |
A7A0FFF8-0B44-40C6-8BBF-3A185EFDERTHG |
| DeliveryChannelId |
string |
The ID of the delivery channel. |
cdc-8e45ff4e06a3a8**** |
Examples
Success response
JSON format
{
"RequestId": "A7A0FFF8-0B44-40C6-8BBF-3A185EFDERTHG",
"DeliveryChannelId": "cdc-8e45ff4e06a3a8****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | DeliveryChannelNotExists | The delivery channel does not exist. | The delivery channel does not exist. |
| 400 | Invalid.DeliveryChannelAssumeRoleArn.Format | The specified format of DeliveryChannelAssumeRoleArn is invalid. | The specified format of DeliveryChannelAssumeRoleArn is invalid. |
| 400 | Invalid.DeliveryChannelTargetArn.Format | The specified format of DeliveryChannelTargetArn is invalid. | The specified format of DeliveryChannelTargetArn is invalid. |
| 400 | Invalid.DeliveryChannelCondition.Format | The specified format of DeliveryChannelCondition is invalid. | The specified format of DeliveryChannelCondition is invalid. |
| 400 | MemberNotBelongToMaster | The specified member does not belong to your organization. | |
| 400 | DeliveryChannelAccountNotSupport | Cross-account delivery that is not in the RD is not supported. | Cross-account delivery that is not in the RD is not supported. |
| 400 | DeliveryChannelMnsUnreachable | The MNS topic is unreachable. | The MNS topic is unreachable. |
| 400 | DeliveryChannelOssUnreachable | The OSS bucket is unreachable. | The OSS bucket is unreachable. |
| 400 | DeliveryChannelSlsUnreachable | SLS logstore is unreachable. | |
| 404 | AccountNotExisted | Your account does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.