ALIYUN::Config::DeliveryChannel は、配信チャネルを作成または更新するために使用されます。
構文
{
"Type": "ALIYUN::Config::DeliveryChannel",
"Properties": {
"Description": String,
"DeliveryChannelName": String,
"DeliveryChannelTargetArn": String,
"DeliveryChannelAssumeRoleArn": String,
"DeliveryChannelType": String,
"DeliveryChannelCondition": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
DeliveryChannelAssumeRoleArn | String | はい | はい | 配信チャネルに割り当てるロールのAlibaba Cloud Resource Name(ARN)。 | Cloud Config のサービスリンクロールを配信チャネルに割り当てる場合は、提供されている例の形式で ARN を指定し、アカウント ID を Alibaba Cloud アカウントの ID に置き換えることができます。例: "acs:ram::100931896542****:role/aliyunserviceroleforconfig"。 |
DeliveryChannelTargetArn | String | はい | はい | 配信先の ARN。 | 値の形式:
|
DeliveryChannelType | String | はい | いいえ | 配信チャネルのタイプ。 | 有効な値:
|
DeliveryChannelCondition | String | いいえ | はい | 配信チャネルにアタッチするルール。 | このプロパティは、MNS タイプの配信チャネルでのみサポートされています。 このプロパティを使用して、サブスクライブするイベントの最低リスクレベルとリソースタイプを指定できます。
|
DeliveryChannelName | String | いいえ | はい | 配信チャネルの名前。 | なし。 |
Description | String | いいえ | はい | 配信チャネルの説明。 | なし。 |
戻り値
Fn::GetAtt
DeliveryChannelId: 配信チャネルの ID。
例
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Description": {
"Type": "String",
// 配信方法の説明。
"Description": "The description of the delivery method."
},
"DeliveryChannelName": {
"Type": "String",
// 配信方法の名前。
"Description": "The name of the delivery method."
},
"DeliveryChannelTargetArn": {
"Type": "String",
// 配信先のARN。このパラメータは、配信方法を作成するときに必須です。値は、次のいずれかの形式である必要があります。
// 配信先がオブジェクトストレージサービス(OSS)バケットの場合は、acs:oss:{RegionId}:{Aliuid}:{bucketName}。
// 配信先がメッセージサービス(MNS)トピックの場合は、acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}。
// 配信先がログサービスログストアの場合は、acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}。
"Description": "The ARN of the delivery destination. This parameter is required when you create a\ndelivery method. The value must be in one of the following formats:\nacs:oss:{RegionId}:{Aliuid}:{bucketName} if your delivery destination is an Object Storage Service (OSS) bucket.\nacs:mns:{RegionId}:{Aliuid}:/topics/{topicName} if your delivery destination is a Message Service (MNS) topic.\nacs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName} if your delivery destination is a Log Service Logstore."
},
"DeliveryChannelAssumeRoleArn": {
"Type": "String",
// 配信方法がアシュームするロールのAlibaba Cloud Resource Name(ARN)。このパラメータは、配信方法を作成するときに必須です。
// 注:配信方法がCloud Configのサービスリンクロールをアシュームする場合は、提供されている例の形式でARNを指定し、アカウントIDをAlibaba CloudアカウントのIDに置き換えることができます。
"Description": "The Alibaba Cloud Resource Name (ARN) of the role to be assumed by the delivery method.\nThis parameter is required when you create a delivery method.\nNote If the delivery method assumes the service linked role for Cloud Config, you can specify\nthe ARN in the format of the provided example and replace the account ID with the\nID of your Alibaba Cloud account."
},
"DeliveryChannelType": {
"Type": "String",
// 配信方法のタイプ。このパラメータは、配信方法を作成するときに必須です。有効な値:
// OSS
// MNS
// SLS
"Description": "The type of the delivery method. This parameter is required when you create a delivery\nmethod. Valid values:\nOSS\nMNS\nSLS",
"AllowedValues": [
"MNS",
"OSS",
"SLS"
]
},
"DeliveryChannelCondition": {
"Type": "String",
// 配信方法にアタッチされたルール。このパラメータは、MNSタイプの配信方法にのみ適用されます。
// このパラメータを使用すると、サブスクライブするイベントの最低リスクレベルと、イベントをサブスクライブするリソースタイプを指定できます。
// サブスクライブするイベントの最低リスクレベルを指定するには、次の形式を使用します。{\"filterType\":\"RuleRiskLevel\",\"value\":\"1\",\"multiple\":false\}。
// valueフィールドは最低リスクレベルを示し、1、2、または3に設定できます。それぞれ、高リスクレベル、中リスクレベル、低リスクレベルを示します。
// イベントをサブスクライブするリソースタイプを指定するには、次の形式を使用します。{\"filterType\":\"ResourceType\",\"values\":[\"ACS::ACK::Cluster\",\"ACS::ActionTrail::Trail\",\"ACS::CBWP::CommonBandwidthPackage\"],\"multiple\":true\}。
// valuesフィールドはリソースタイプを示します。その値はJSON配列です。
// 例:[{\"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}]
"Description": "The rule attached to the delivery method. This parameter is applicable only to delivery\nmethods of the MNS type.\nThis parameter allows you to specify the lowest risk level for the events to subscribe\nto and the resource types for which you want to subscribe to events.\nTo specify the lowest risk level for the events to subscribe to, use the following\nformat:{\"filterType\":\"RuleRiskLevel\",\"value\":\"1\",\"multiple\":false}.\nThe value field indicates the lowest risk level and can be set to 1, 2, or 3, which\nindicates the high risk level, the medium risk level, and the low risk level, respectively.\nTo specify the resource types for which you want to subscribe to events, use the following\nformat:{\"filterType\":\"ResourceType\",\"values\":[\"ACS::ACK::Cluster\",\"ACS::ActionTrail::Trail\",\"ACS::CBWP::CommonBandwidthPackage\"],\"multiple\":true}.\nThe values field indicates the resource types. Its value is a JSON array.\nExample: [{\"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}]"
}
},
"Resources": {
"DeliveryChannel": {
"Type": "ALIYUN::Config::DeliveryChannel",
"Properties": {
"Description": {
"Ref": "Description"
},
"DeliveryChannelName": {
"Ref": "DeliveryChannelName"
},
"DeliveryChannelTargetArn": {
"Ref": "DeliveryChannelTargetArn"
},
"DeliveryChannelAssumeRoleArn": {
"Ref": "DeliveryChannelAssumeRoleArn"
},
"DeliveryChannelType": {
"Ref": "DeliveryChannelType"
},
"DeliveryChannelCondition": {
"Ref": "DeliveryChannelCondition"
}
}
}
},
"Outputs": {
"DeliveryChannelId": {
// 配信方法のID。
"Description": "The ID of the delivery method. ",
"Value": {
"Fn::GetAtt": [
"DeliveryChannel",
"DeliveryChannelId"
]
}
}
}
}YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DeliveryChannelAssumeRoleArn:
// 配信方法がアシュームするロールのAlibaba Cloud Resource Name(ARN)。
// このパラメータは、配信方法を作成するときに必須です。
// 注:配信方法がCloud Configのサービスリンクロールをアシュームする場合は、提供されている例の形式でARNを指定し、アカウントIDをAlibaba CloudアカウントのIDに置き換えることができます。
Description: 'The Alibaba Cloud Resource Name (ARN) of the role to be assumed
by the delivery method.
This parameter is required when you create a delivery method.
Note If the delivery method assumes the service linked role for Cloud Config,
you can specify
the ARN in the format of the provided example and replace the account ID with
the
ID of your Alibaba Cloud account.'
Type: String
DeliveryChannelCondition:
// 配信方法にアタッチされたルール。このパラメータは、MNSタイプの配信方法にのみ適用されます。
// このパラメータを使用すると、サブスクライブするイベントの最低リスクレベルと、イベントをサブスクライブするリソースタイプを指定できます。
// サブスクライブするイベントの最低リスクレベルを指定するには、次の形式を使用します。{"filterType":"RuleRiskLevel","value":"1","multiple":false}。
// valueフィールドは最低リスクレベルを示し、1、2、または3に設定できます。それぞれ、高リスクレベル、中リスクレベル、低リスクレベルを示します。
// イベントをサブスクライブするリソースタイプを指定するには、次の形式を使用します。{"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}。
// valuesフィールドはリソースタイプを示します。その値はJSON配列です。
// 例:[{"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}]
Description: 'The rule attached to the delivery method. This parameter is applicable
only to delivery
methods of the MNS type.
This parameter allows you to specify the lowest risk level for the events to
subscribe
to and the resource types for which you want to subscribe to events.
To specify the lowest risk level for the events to subscribe to, use the following
format:{"filterType":"RuleRiskLevel","value":"1","multiple":false}.
The value field indicates the lowest risk level and can be set to 1, 2, or 3,
which
indicates the high risk level, the medium risk level, and the low risk level,
respectively.
To specify the resource types for which you want to subscribe to events, use
the following
format:{"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}.
The values field indicates the resource types. Its value is a JSON array.
Example: [{"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}]'
Type: String
DeliveryChannelName:
// 配信方法の名前。
Description: The name of the delivery method.
Type: String
DeliveryChannelTargetArn:
// 配信先のARN。このパラメータは、配信方法を作成するときに必須です。値は、次のいずれかの形式である必要があります。
// 配信先がオブジェクトストレージサービス(OSS)バケットの場合は、acs:oss:{RegionId}:{Aliuid}:{bucketName}。
// 配信先がメッセージサービス(MNS)トピックの場合は、acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}。
// 配信先がログサービスログストアの場合は、acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}。
Description: 'The ARN of the delivery destination. This parameter is required
when you create a
delivery method. The value must be in one of the following formats:
acs:oss:{RegionId}:{Aliuid}:{bucketName} if your delivery destination is an
Object Storage Service (OSS) bucket.
acs:mns:{RegionId}:{Aliuid}:/topics/{topicName} if your delivery destination
is a Message Service (MNS) topic.
acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName} if
your delivery destination is a Log Service Logstore.'
Type: String
DeliveryChannelType:
AllowedValues:
- MNS
- OSS
- SLS
// 配信方法のタイプ。このパラメータは、配信方法を作成するときに必須です。有効な値:
// OSS
// MNS
// SLS
Description: 'The type of the delivery method. This parameter is required when
you create a delivery
method. Valid values:
OSS
MNS
SLS'
Type: String
Description:
// 配信方法の説明。
Description: The description of the delivery method.
Type: String
Resources:
DeliveryChannel:
Properties:
DeliveryChannelAssumeRoleArn:
Ref: DeliveryChannelAssumeRoleArn
DeliveryChannelCondition:
Ref: DeliveryChannelCondition
DeliveryChannelName:
Ref: DeliveryChannelName
DeliveryChannelTargetArn:
Ref: DeliveryChannelTargetArn
DeliveryChannelType:
Ref: DeliveryChannelType
Description:
Ref: Description
Type: ALIYUN::Config::DeliveryChannel
Outputs:
DeliveryChannelId:
// 配信方法のID。
Description: 'The ID of the delivery method. '
Value:
Fn::GetAtt:
- DeliveryChannel
- DeliveryChannelId