This operation modifies a delivery channel for the current account.
Operation description
This topic provides an example of how to change the status of the delivery channel cdc-8e45ff4e06a3a8**** to 0 (disabled). After you disable the delivery channel, Cloud Config retains the most recent 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 Alibaba Cloud Resource Name (ARN) of the delivery destination. Valid values:
|
acs:oss:cn-shanghai:100931896542****:new-bucket |
| DeliveryChannelCondition |
string |
No |
The rule that is attached to the delivery channel. This parameter is applicable to all deliveries to MNS and snapshot deliveries to SLS.
|
[{"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 the data is delivered when the size of the data exceeds the limit of the delivery channel. The value is in the format of If you do not specify this parameter, Cloud Config delivers only the summary of the data. Note
This parameter is available only for delivery channels of the SLS and MNS types. The maximum size of data that can be delivered to SLS is 1 MB. The maximum size of data that can be delivered to 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 |
A client token. It 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 |
1594295238-f9361358-5843-4294-8d30-b5183fac**** |
| ConfigurationSnapshot |
boolean |
No |
Specifies whether to deliver scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots to OSS and Simple Message Queue (formerly MNS) at
|
false |
| CompliantSnapshot |
boolean |
No |
Specifies whether to deliver resource compliance snapshots. Cloud Config delivers resource compliance and non-compliance information to SLS. Valid values:
|
false |
| ConfigurationItemChangeNotification |
boolean |
No |
Specifies whether to deliver the resource configuration history. Cloud Config delivers the resource configuration history to OSS, SLS, or Simple Message Queue (formerly MNS) when the configuration of a resource changes. Valid values:
Note
This parameter is available for delivery channels of the OSS, SLS, and MNS types. |
false |
| NonCompliantNotification |
boolean |
No |
Specifies whether to deliver resource non-compliance events. Cloud Config delivers resource non-compliance events to SLS or Simple Message Queue (formerly MNS) when a resource is evaluated as non-compliant. Valid values:
Note
This parameter is available only for delivery channels of the SLS and MNS types. |
false |
| Status |
integer |
No |
The status of the delivery channel. Valid values:
|
0 |
| DeliverySnapshotTime |
string |
No |
The time at which the scheduled resource snapshot is delivered every day. The value is in the Note
If you enable scheduled resource snapshot delivery, you can use this parameter to specify a delivery time. If you do not specify this parameter, Cloud Config delivers the scheduled resource snapshots at |
09:10Z |
For more information about common request parameters, see Common parameters.
Response elements
|
Parameter |
Type |
Description |
Example |
|
object |
None. |
||
| RequestId |
string |
The request ID. |
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. | |
| 400 | Invalid.DeliveryChannelAssumeRoleArn.Format | The specified format of DeliveryChannelAssumeRoleArn is invalid. | |
| 400 | Invalid.DeliveryChannelTargetArn.Format | The specified format of DeliveryChannelTargetArn is invalid. | |
| 400 | Invalid.DeliveryChannelCondition.Format | 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. | |
| 400 | DeliveryChannelMnsUnreachable | The MNS topic is unreachable. | |
| 400 | DeliveryChannelOssUnreachable | 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.