全部产品
Search
文档中心

资源编排:ALIYUN::OOS::ServiceSettings

更新时间:Dec 05, 2024

ALIYUN::OOS::ServiceSettings类型用于设置服务配置。

语法

{
  "Type": "ALIYUN::OOS::ServiceSettings",
  "Properties": {
    "DeliverySlsEnabled": Boolean,
    "DeliveryOssKeyPrefix": String,
    "DeliveryOssBucketName": String,
    "DeliveryOssEnabled": Boolean,
    "DeliverySlsProjectName": String,
    "RdcEnterpriseId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

DeliverySlsEnabled

Boolean

是否开启向 SLS 投递模板执行记录功能。

默认为 false

DeliveryOssKeyPrefix

String

OSS 存储空间目录。

DeliveryOssBucketName

String

OSS 存储空间名称。

DeliveryOssEnabled

Boolean

是否开启了向 OSS 投递模板执行记录功能。

默认为 false

DeliverySlsProjectName

String

SLS 的项目名称。

RdcEnterpriseId

String

云效企业 ID。

返回值

Fn::GetAtt

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RdcEnterpriseId:
    Type: String
    Description:
      en: Enterprise ID.
    Required: false
  DeliverySlsProjectName:
    Type: String
    Description:
      en: SLS project name.
    Required: false
Resources:
  ServiceSettings:
    Type: ALIYUN::OOS::ServiceSettings
    Properties:
      RdcEnterpriseId:
        Ref: RdcEnterpriseId
      DeliverySlsProjectName:
        Ref: DeliverySlsProjectName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RdcEnterpriseId": {
      "Type": "String",
      "Description": {
        "en": "Enterprise ID."
      },
      "Required": false
    },
    "DeliverySlsProjectName": {
      "Type": "String",
      "Description": {
        "en": "SLS project name."
      },
      "Required": false
    }
  },
  "Resources": {
    "ServiceSettings": {
      "Type": "ALIYUN::OOS::ServiceSettings",
      "Properties": {
        "RdcEnterpriseId": {
          "Ref": "RdcEnterpriseId"
        },
        "DeliverySlsProjectName": {
          "Ref": "DeliverySlsProjectName"
        }
      }
    }
  }
}