Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::SLS::OssExternalStore

Última atualização: Jun 27, 2026

Cria um armazenamento externo do Object Storage Service (OSS) no Simple Log Service (SLS).

Sintaxe

{
  "Type": "ALIYUN::SLS::OssExternalStore",
  "Properties": {
    "AccessId": String,
    "AccessKey": String,
    "Bucket": String,
    "Columns": List,
    "Endpoint": String,
    "ExternalStoreName": String,
    "Objects": List,
    "Project": String,
    "StoreType": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

AccessId

String

Sim

Sim

ID da AccessKey.

Nenhuma.

AccessKey

String

Sim

Sim

Segredo da AccessKey.

Nenhuma.

Bucket

String

Sim

Sim

Nome do bucket do OSS.

Nenhuma.

Columns

List

Sim

Sim

Campos associados ao armazenamento externo.

Nenhuma.

Endpoint

String

Sim

Sim

Endpoint do OSS.

Nenhuma.

ExternalStoreName

String

Sim

Não

Nome do armazenamento externo.

Nenhuma.

Objects

List

Sim

Sim

Objetos do OSS para associar ao armazenamento externo.

Máximo: 100.

Project

String

Sim

Não

Nome do projeto do SLS.

Nenhuma.

StoreType

String

Sim

Não

Tipo de armazenamento externo.

Defina o valor como oss.

Sintaxe de Columns

"Columns": [
  {
    "Type": String,
    "Name": String
  }
]

Propriedades de Columns

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Name

String

Sim

Sim

Nome do campo.

Nenhuma.

Type

String

Sim

Sim

Tipo de dados do campo.

Valores válidos:

  • varchar

  • bigint

  • double

Valores de retorno

Fn::GetAtt

  • Project: nome do projeto do SLS.

  • ExternalStoreName: nome do armazenamento externo.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  StoreType:
    Type: String
    Description:
      en: The type of the external store. Set the value to oss.
    AllowedValues:
      - oss
    Required: true
  Project:
    Type: String
    Description:
      en: A short description of struct
    Required: true
  Endpoint:
    Type: String
    Description:
      en: The OSS endpoint.
    Required: true
  Bucket:
    Type: String
    Description:
      en: The name of the OSS bucket.
    Required: true
  AccessId:
    Type: String
    Description:
      en: The AccessKey ID.
    Required: true
  Objects:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      en: 'The associated OSS objects. Valid values of n: 1 to 100.'
    Required: true
    MinLength: 1
    MaxLength: 100
  Columns:
    AssociationPropertyMetadata:
      Parameters:
        Type:
          Type: String
          Description:
            en: The data type of the field.
          AllowedValues:
            - varchar
            - bigint
            - double
          Required: true
        Name:
          Type: String
          Description:
            en: The name of the field.
          Required: true
    AssociationProperty: List[Parameters]
    Type: Json
    Description:
      en: The associated fields.
    Required: true
  AccessKey:
    Type: String
    Description:
      en: The AccessKey secret.
    Required: true
  ExternalStoreName:
    Type: String
    Description:
      en: The name of the external store.
    Required: true
Resources:
  OssExternalStore:
    Type: ALIYUN::SLS::OssExternalStore
    Properties:
      StoreType:
        Ref: StoreType
      Project:
        Ref: Project
      Endpoint:
        Ref: Endpoint
      Bucket:
        Ref: Bucket
      AccessId:
        Ref: AccessId
      Objects:
        Ref: Objects
      Columns:
        Ref: Columns
      AccessKey:
        Ref: AccessKey
      ExternalStoreName:
        Ref: ExternalStoreName
Outputs:
  Project:
    Description: The name of the project to which the external store belongs.
    Value:
      Fn::GetAtt:
        - OssExternalStore
        - Project
  ExternalStoreName:
    Description: The name of the external store.
    Value:
      Fn::GetAtt:
        - OssExternalStore
        - ExternalStoreName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "StoreType": {
      "Type": "String",
      "Description": {
        "en": "The type of the external store. Set the value to oss."
      },
      "AllowedValues": [
        "oss"
      ],
      "Required": true
    },
    "Project": {
      "Type": "String",
      "Description": {
        "en": "A short description of struct"
      },
      "Required": true
    },
    "Endpoint": {
      "Type": "String",
      "Description": {
        "en": "The OSS endpoint."
      },
      "Required": true
    },
    "Bucket": {
      "Type": "String",
      "Description": {
        "en": "The name of the OSS bucket."
      },
      "Required": true
    },
    "AccessId": {
      "Type": "String",
      "Description": {
        "en": "The AccessKey ID."
      },
      "Required": true
    },
    "Objects": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "The associated OSS objects. Valid values of n: 1 to 100."
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 100
    },
    "Columns": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "Type": {
            "Type": "String",
            "Description": {
              "en": "The data type of the field."
            },
            "AllowedValues": [
              "varchar",
              "bigint",
              "double"
            ],
            "Required": true
          },
          "Name": {
            "Type": "String",
            "Description": {
              "en": "The name of the field."
            },
            "Required": true
          }
        }
      },
      "AssociationProperty": "List[Parameters]",
      "Type": "Json",
      "Description": {
        "en": "The associated fields."
      },
      "Required": true
    },
    "AccessKey": {
      "Type": "String",
      "Description": {
        "en": "The AccessKey secret."
      },
      "Required": true
    },
    "ExternalStoreName": {
      "Type": "String",
      "Description": {
        "en": "The name of the external store."
      },
      "Required": true
    }
  },
  "Resources": {
    "OssExternalStore": {
      "Type": "ALIYUN::SLS::OssExternalStore",
      "Properties": {
        "StoreType": {
          "Ref": "StoreType"
        },
        "Project": {
          "Ref": "Project"
        },
        "Endpoint": {
          "Ref": "Endpoint"
        },
        "Bucket": {
          "Ref": "Bucket"
        },
        "AccessId": {
          "Ref": "AccessId"
        },
        "Objects": {
          "Ref": "Objects"
        },
        "Columns": {
          "Ref": "Columns"
        },
        "AccessKey": {
          "Ref": "AccessKey"
        },
        "ExternalStoreName": {
          "Ref": "ExternalStoreName"
        }
      }
    }
  },
  "Outputs": {
    "Project": {
      "Description": "The name of the project to which the external store belongs.",
      "Value": {
        "Fn::GetAtt": [
          "OssExternalStore",
          "Project"
        ]
      }
    },
    "ExternalStoreName": {
      "Description": "The name of the external store.",
      "Value": {
        "Fn::GetAtt": [
          "OssExternalStore",
          "ExternalStoreName"
        ]
      }
    }
  }
}