ALIYUN::ResourceManager::MultiAccountDeliveryChannel

更新时间:
复制为 MD 格式

ALIYUN::ResourceManager::MultiAccountDeliveryChannel类型用于创建跨账号资源投递渠道。

语法

{
  "Type": "ALIYUN::ResourceManager::MultiAccountDeliveryChannel",
  "Properties": {
    "DeliveryChannelDescription": String,
    "DeliveryChannelFilter": Map,
    "MultiAccountDeliveryChannelName": String,
    "MultiAccountDeliveryChannelId": String,
    "ResourceChangeDelivery": Map,
    "ResourceSnapshotDelivery": Map
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

DeliveryChannelDescription

String

投递渠道的描述。

DeliveryChannelFilter

Map

投递渠道的有效范围。

更多信息,请参考DeliveryChannelFilter属性

MultiAccountDeliveryChannelName

String

投递渠道的名称。

MultiAccountDeliveryChannelId

String

投递渠道ID。

ResourceChangeDelivery

Map

资源配置变更事件投递的配置。

更多信息,请参考ResourceChangeDelivery属性

ResourceSnapshotDelivery

Map

资源快照定时投递的配置。

更多信息,请参考ResourceSnapshotDelivery属性

ResourceChangeDelivery语法

"ResourceChangeDelivery": {
  "SlsProperties": Map,
  "TargetArn": String
}

ResourceChangeDelivery属性

属性名称

类型

必须

允许更新

描述

约束

SlsProperties

Map

SLS配置。

更多信息,请参考SlsProperties属性

TargetArn

String

目标ARN。

SlsProperties语法

"SlsProperties": {
  "OversizedDataOssTargetArn": String
}

SlsProperties属性

属性名称

类型

必须

允许更新

描述

约束

OversizedDataOssTargetArn

String

超大数据投递目标的ARN。

如果资源配置变更事件的大小超过1 MB,该事件将作为OSS对象投递。您必须输入带有resourcecenter-前缀的OSS BucketARN。

DeliveryChannelFilter语法

"DeliveryChannelFilter": {
  "ResourceTypes": List,
  "AccountScopes": List
}

DeliveryChannelFilter属性

属性名称

类型

必须

允许更新

描述

约束

AccountScopes

List

投递渠道的账号范围。

ResourceTypes

List

投递渠道的有效资源类型。

ResourceSnapshotDelivery语法

"ResourceSnapshotDelivery": {
  "DeliveryTime": String,
  "TargetArn": String
}

ResourceSnapshotDelivery属性

属性名称

类型

必须

允许更新

描述

约束

DeliveryTime

String

投递时间。

TargetArn

String

投递目标的ARN。

返回值

Fn::GetAtt

  • ResourceChangeDelivery:资源配置变更事件投递的配置。

  • DeliveryChannelDescription:投递渠道的描述。

  • MultiAccountDeliveryChannelId:投递渠道ID。

  • MultiAccountDeliveryChannelName:投递渠道的名称。

  • DeliveryChannelFilter:投递渠道的有效范围。

  • ResourceSnapshotDelivery:资源快照定时投递的配置。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DeliveryChannelFilter:
    Description:
      en: The effective scope of the delivery channel.
    Required: true
    Type: Json
    AssociationPropertyMetadata:
      Parameters:
        ResourceTypes:
          Description:
            en: The effective resource type of the delivery channel.
          Required: false
          Default: Null
          Type: Json
          AssociationProperty: List[Parameter]
          AssociationPropertyMetadata:
            Parameter:
              Type: String
              Description:
                en: The resource type.
              Default: Null
              Required: false
        AccountScopes:
          Description:
            en: The account scopes of the delivery channel.
          Required: true
          Type: Json
          AssociationProperty: List[Parameter]
          AssociationPropertyMetadata:
            Parameter:
              Type: String
              Description:
                en: |-
                  The account scope of the delivery channel. Valid values: 
                  * The ID of a resource directory. This value specifies that the resources of the management account and all members of the resource directory are delivered.
                  * The ID of the Root folder. This value specifies that the resources of all members in the Root folder and its subfolders are delivered.
                  * The ID of a folder. This value specifies that the resources of all members in the folder are delivered.
                  * The ID of a member. This value specifies that the resources of the member are delivered.
              Required: true
  MultiAccountDeliveryChannelName:
    Type: String
    Description:
      en: The name of the delivery channel.
    Required: true
  ResourceSnapshotDelivery:
    Description:
      en: The configurations for scheduled delivery of resource snapshots.
    Required: false
    Default: Null
    Type: Json
    AssociationPropertyMetadata:
      Parameters:
        TargetArn:
          Type: String
          Description:
            en: The ARN of the delivery destination.
          Default: Null
          Required: false
        DeliveryTime:
          Type: String
          Description:
            en: The delivery time.
          Default: Null
          Required: false
  DeliveryChannelDescription:
    Type: String
    Description:
      en: The description of the delivery channel.
    Required: true
  ResourceChangeDelivery:
    Description:
      en: The configurations for delivery of resource configuration change events.
    Required: false
    Default: Null
    Type: Json
    AssociationPropertyMetadata:
      Parameters:
        TargetArn:
          Type: String
          Description:
            en: Target Arn.
          Default: Null
          Required: false
        SlsProperties:
          Description:
            en: The SLS configurations.
          Required: false
          Default: Null
          Type: Json
          AssociationPropertyMetadata:
            Parameters:
              OversizedDataOssTargetArn:
                Type: String
                Description:
                  en: The ARN of the delivery destination for oversized data. If the size of a resource configuration change event exceeds 1 MB, the event is delivered as an OSS object. You must enter the ARN of an OSS bucket that has a prefix of resourcecenter-.
                Default: Null
                Required: false
  MultiAccountDeliveryChannelId:
    Type: String
    Description:
      en: Delivery Channel id.
    Default: Null
    Required: false
Resources:
  ExtensionResource:
    Type: ALIYUN::ResourceManager::MultiAccountDeliveryChannel
    Properties:
      DeliveryChannelFilter:
        Ref: DeliveryChannelFilter
      MultiAccountDeliveryChannelName:
        Ref: MultiAccountDeliveryChannelName
      ResourceSnapshotDelivery:
        Ref: ResourceSnapshotDelivery
      DeliveryChannelDescription:
        Ref: DeliveryChannelDescription
      ResourceChangeDelivery:
        Ref: ResourceChangeDelivery
      MultiAccountDeliveryChannelId:
        Ref: MultiAccountDeliveryChannelId
Outputs:
  DeliveryChannelFilter:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - DeliveryChannelFilter
    Description: The effective scope of the delivery channel.
  MultiAccountDeliveryChannelName:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - MultiAccountDeliveryChannelName
    Description: The name of the delivery channel.
  ResourceSnapshotDelivery:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ResourceSnapshotDelivery
    Description: The configurations for scheduled delivery of resource snapshots.
  DeliveryChannelDescription:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - DeliveryChannelDescription
    Description: The description of the delivery channel.
  ResourceChangeDelivery:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ResourceChangeDelivery
    Description: The configurations for delivery of resource configuration change events.
  MultiAccountDeliveryChannelId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - MultiAccountDeliveryChannelId
    Description: The delivery channel ID.
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DeliveryChannelFilter": {
      "Description": {
        "en": "The effective scope of the delivery channel."
      },
      "Required": true,
      "Type": "Json",
      "AssociationPropertyMetadata": {
        "Parameters": {
          "ResourceTypes": {
            "Description": {
              "en": "The effective resource type of the delivery channel."
            },
            "Required": false,
            "Default": null,
            "Type": "Json",
            "AssociationProperty": "List[Parameter]",
            "AssociationPropertyMetadata": {
              "Parameter": {
                "Type": "String",
                "Description": {
                  "en": "The resource type."
                },
                "Default": null,
                "Required": false
              }
            }
          },
          "AccountScopes": {
            "Description": {
              "en": "The account scopes of the delivery channel."
            },
            "Required": true,
            "Type": "Json",
            "AssociationProperty": "List[Parameter]",
            "AssociationPropertyMetadata": {
              "Parameter": {
                "Type": "String",
                "Description": {
                  "en": "The account scope of the delivery channel. Valid values: \n* The ID of a resource directory. This value specifies that the resources of the management account and all members of the resource directory are delivered.\n* The ID of the Root folder. This value specifies that the resources of all members in the Root folder and its subfolders are delivered.\n* The ID of a folder. This value specifies that the resources of all members in the folder are delivered.\n* The ID of a member. This value specifies that the resources of the member are delivered."
                },
                "Required": true
              }
            }
          }
        }
      }
    },
    "MultiAccountDeliveryChannelName": {
      "Type": "String",
      "Description": {
        "en": "The name of the delivery channel."
      },
      "Required": true
    },
    "ResourceSnapshotDelivery": {
      "Description": {
        "en": "The configurations for scheduled delivery of resource snapshots."
      },
      "Required": false,
      "Default": null,
      "Type": "Json",
      "AssociationPropertyMetadata": {
        "Parameters": {
          "TargetArn": {
            "Type": "String",
            "Description": {
              "en": "The ARN of the delivery destination."
            },
            "Default": null,
            "Required": false
          },
          "DeliveryTime": {
            "Type": "String",
            "Description": {
              "en": "The delivery time."
            },
            "Default": null,
            "Required": false
          }
        }
      }
    },
    "DeliveryChannelDescription": {
      "Type": "String",
      "Description": {
        "en": "The description of the delivery channel."
      },
      "Required": true
    },
    "ResourceChangeDelivery": {
      "Description": {
        "en": "The configurations for delivery of resource configuration change events."
      },
      "Required": false,
      "Default": null,
      "Type": "Json",
      "AssociationPropertyMetadata": {
        "Parameters": {
          "TargetArn": {
            "Type": "String",
            "Description": {
              "en": "Target Arn."
            },
            "Default": null,
            "Required": false
          },
          "SlsProperties": {
            "Description": {
              "en": "The SLS configurations."
            },
            "Required": false,
            "Default": null,
            "Type": "Json",
            "AssociationPropertyMetadata": {
              "Parameters": {
                "OversizedDataOssTargetArn": {
                  "Type": "String",
                  "Description": {
                    "en": "The ARN of the delivery destination for oversized data. If the size of a resource configuration change event exceeds 1 MB, the event is delivered as an OSS object. You must enter the ARN of an OSS bucket that has a prefix of resourcecenter-."
                  },
                  "Default": null,
                  "Required": false
                }
              }
            }
          }
        }
      }
    },
    "MultiAccountDeliveryChannelId": {
      "Type": "String",
      "Description": {
        "en": "Delivery Channel id."
      },
      "Default": null,
      "Required": false
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ResourceManager::MultiAccountDeliveryChannel",
      "Properties": {
        "DeliveryChannelFilter": {
          "Ref": "DeliveryChannelFilter"
        },
        "MultiAccountDeliveryChannelName": {
          "Ref": "MultiAccountDeliveryChannelName"
        },
        "ResourceSnapshotDelivery": {
          "Ref": "ResourceSnapshotDelivery"
        },
        "DeliveryChannelDescription": {
          "Ref": "DeliveryChannelDescription"
        },
        "ResourceChangeDelivery": {
          "Ref": "ResourceChangeDelivery"
        },
        "MultiAccountDeliveryChannelId": {
          "Ref": "MultiAccountDeliveryChannelId"
        }
      }
    }
  },
  "Outputs": {
    "DeliveryChannelFilter": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "DeliveryChannelFilter"
        ]
      },
      "Description": "The effective scope of the delivery channel."
    },
    "MultiAccountDeliveryChannelName": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "MultiAccountDeliveryChannelName"
        ]
      },
      "Description": "The name of the delivery channel."
    },
    "ResourceSnapshotDelivery": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ResourceSnapshotDelivery"
        ]
      },
      "Description": "The configurations for scheduled delivery of resource snapshots."
    },
    "DeliveryChannelDescription": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "DeliveryChannelDescription"
        ]
      },
      "Description": "The description of the delivery channel."
    },
    "ResourceChangeDelivery": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ResourceChangeDelivery"
        ]
      },
      "Description": "The configurations for delivery of resource configuration change events."
    },
    "MultiAccountDeliveryChannelId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "MultiAccountDeliveryChannelId"
        ]
      },
      "Description": "The delivery channel ID."
    }
  }
}