すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::SLS::OssExternalStore

最終更新日:Mar 17, 2025

ALIYUN::SLS::OssExternalStore は、Object Storage Service (OSS) 外部ストアを作成するために使用されます。

構文

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

プロパティ

プロパティ

必須

編集可能

説明

制約

AccessId

String

はい

はい

AccessKey ID。

なし。

AccessKey

String

はい

はい

AccessKey シークレット。

なし。

Bucket

String

はい

はい

OSS バケットの名前。

なし。

Columns

List

はい

はい

外部ストアに関連付けるフィールド。

なし。

Endpoint

String

はい

はい

OSS エンドポイント。

なし。

ExternalStoreName

String

はい

いいえ

外部ストアの名前。

なし。

Objects

List

はい

はい

外部ストアに関連付ける OSS オブジェクトの名前。

最大 100 個の OSS オブジェクトを関連付けることができます。

Project

String

はい

いいえ

プロジェクト名。

なし。

StoreType

String

はい

いいえ

外部ストアのタイプ。

値を oss に設定します。

Columns 構文

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

Columns プロパティ

プロパティ

必須

編集可能

説明

制約

Name

String

はい

はい

フィールド名。

なし。

Type

String

はい

はい

フィールドのデータ型。

有効な値:

  • varchar

  • bigint

  • double

戻り値

Fn::GetAtt

  • Project: プロジェクト名。

  • ExternalStoreName: 外部ストアの名前。

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  StoreType:
    Type: String
    Description:
      ja: 外部ストアのタイプ。値を oss に設定します。
    AllowedValues:
      - oss
    Required: true
  Project:
    Type: String
    Description:
      ja: 構造体の簡単な説明
    Required: true
  Endpoint:
    Type: String
    Description:
      ja: OSS エンドポイント。
    Required: true
  Bucket:
    Type: String
    Description:
      ja: OSS バケットの名前。
    Required: true
  AccessId:
    Type: String
    Description:
      ja: AccessKey ID。
    Required: true
  Objects:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      ja: '関連付けられた OSS オブジェクト。n の有効な値: 1 ~ 100。'
    Required: true
    MinLength: 1
    MaxLength: 100
  Columns:
    AssociationPropertyMetadata:
      Parameters:
        Type:
          Type: String
          Description:
            ja: フィールドのデータ型。
          AllowedValues:
            - varchar
            - bigint
            - double
          Required: true
        Name:
          Type: String
          Description:
            ja: フィールドの名前。
          Required: true
    AssociationProperty: List[Parameters]
    Type: Json
    Description:
      ja: 関連付けられたフィールド。
    Required: true
  AccessKey:
    Type: String
    Description:
      ja: AccessKey シークレット。
    Required: true
  ExternalStoreName:
    Type: String
    Description:
      ja: 外部ストアの名前。
    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: 外部ストアが属するプロジェクトの名前。
    Value:
      Fn::GetAtt:
        - OssExternalStore
        - Project
  ExternalStoreName:
    Description: 外部ストアの名前。
    Value:
      Fn::GetAtt:
        - OssExternalStore
        - ExternalStoreName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "StoreType": {
      "Type": "String",
      "Description": {
        "ja": "外部ストアのタイプ。値を oss に設定します。"
      },
      "AllowedValues": [
        "oss"
      ],
      "Required": true
    },
    "Project": {
      "Type": "String",
      "Description": {
        "ja": "構造体の簡単な説明"
      },
      "Required": true
    },
    "Endpoint": {
      "Type": "String",
      "Description": {
        "ja": "OSS エンドポイント。"
      },
      "Required": true
    },
    "Bucket": {
      "Type": "String",
      "Description": {
        "ja": "OSS バケットの名前。"
      },
      "Required": true
    },
    "AccessId": {
      "Type": "String",
      "Description": {
        "ja": "AccessKey ID。"
      },
      "Required": true
    },
    "Objects": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "ja": "関連付けられた OSS オブジェクト。 n の有効な値: 1 ~ 100。"
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 100
    },
    "Columns": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "Type": {
            "Type": "String",
            "Description": {
              "ja": "フィールドのデータ型。"
            },
            "AllowedValues": [
              "varchar",
              "bigint",
              "double"
            ],
            "Required": true
          },
          "Name": {
            "Type": "String",
            "Description": {
              "ja": "フィールドの名前。"
            },
            "Required": true
          }
        }
      },
      "AssociationProperty": "List[Parameters]",
      "Type": "Json",
      "Description": {
        "ja": "関連付けられたフィールド。"
      },
      "Required": true
    },
    "AccessKey": {
      "Type": "String",
      "Description": {
        "ja": "AccessKey シークレット。"
      },
      "Required": true
    },
    "ExternalStoreName": {
      "Type": "String",
      "Description": {
        "ja": "外部ストアの名前。"
      },
      "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": "外部ストアが属するプロジェクトの名前。",
      "Value": {
        "Fn::GetAtt": [
          "OssExternalStore",
          "Project"
        ]
      }
    },
    "ExternalStoreName": {
      "Description": "外部ストアの名前。",
      "Value": {
        "Fn::GetAtt": [
          "OssExternalStore",
          "ExternalStoreName"
        ]
      }
    }
  }
}