ALIYUN::PaiFeatureStore::Datasource

更新时间:
复制 MD 格式

The ALIYUN::PaiFeatureStore::Datasource resource creates a data source.

Syntax

{
  "Type": "ALIYUN::PaiFeatureStore::Datasource",
  "Properties": {
    "DatasourceName": String,
    "InstanceId": String,
    "Type": String,
    "Uri": String,
    "WorkspaceId": String,
    "Config": Map
  }
}

Properties

Parameter

Type

Required

Update allowed

Description

Constraints

DatasourceName

String

Yes

Yes

The name of the data source.

The name can be up to 63 characters long. It must start with a letter or digit and contain only letters, digits, and underscores (_).

InstanceId

String

Yes

No

The ID of the PaiFeatureStore instance.

None

Type

String

Yes

No

The type of the data source.

Valid values:

  • Hologres

  • GraphCompute

  • FeatureDB

  • MaxCompute

Uri

String

Yes

Yes

The URI of the data source.

The URI can be up to 64 characters long.

WorkspaceId

String

Yes

No

The ID of the PAI workspace.

None

Config

Map

No

Yes

The configuration for the resource.

None

Return values

Fn::GetAtt

  • Type: The type of the data source.

  • DatasourceName: The name of the data source. The name can be up to 63 characters long, must start with a letter or digit, and can contain only letters, digits, and underscores (_).

  • DatasourceId: The ID of the data source.

  • Config: The resource configuration, provided as a JSON-formatted string.

  • CreateTime: The creation time of the resource.

  • WorkspaceId: The ID of the PAI workspace. You can call the ListWorkspaces operation to obtain the ID.

  • Uri: The URI of the data source. The URI can be up to 64 characters long.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Config:
    Description:
      en: The configuration for the resource, provided as a JSON-formatted string.
    Required: false
    Type: Json
  DatasourceName:
    Description:
      en: The name of the data source. The name can be up to 63 characters long,
        must start with a letter or digit, and can contain only letters, digits,
        and underscores (_).
    Required: true
    Type: String
  InstanceId:
    Description:
      en: The ID of the PaiFeatureStore instance. You can call the ListInstances operation
        to obtain the ID.
    Required: true
    Type: String
  Type:
    AllowedValues:
      - Hologres
      - GraphCompute
      - FeatureDB
      - MaxCompute
    Description:
      en: 'The type of the data source. Valid values:

        *  Hologres

        *  GraphCompute

        *  FeatureDB

        *  MaxCompute'
    Required: true
    Type: String
  Uri:
    Description:
      en: The URI of the data source. The URI can be up to 64 characters long.
    Required: true
    Type: String
  WorkspaceId:
    Description:
      en: The ID of the PAI workspace. You can call the ListWorkspaces operation
        to obtain the ID.
    Required: true
    Type: String
Resources:
  ExtensionResource:
    Properties:
      Config:
        Ref: Config
      DatasourceName:
        Ref: DatasourceName
      InstanceId:
        Ref: InstanceId
      Type:
        Ref: Type
      Uri:
        Ref: Uri
      WorkspaceId:
        Ref: WorkspaceId
    Type: ALIYUN::PaiFeatureStore::Datasource
Outputs:
  Config:
    Description: The resource configuration, provided as a JSON-formatted string.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Config
  CreateTime:
    Description: The creation time of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
  DatasourceId:
    Description: The ID of the data source.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - DatasourceId
  DatasourceName:
    Description: The name of the data source. The name can be up to 63 characters long,
      must start with a letter or digit, and can contain only letters, digits,
      and underscores (_).
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - DatasourceName
  Type:
    Description: The type of the data source.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Type
  Uri:
    Description: The URI of the data source. The URI can be up to 64 characters long.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Uri
  WorkspaceId:
    Description: The ID of the PAI workspace. You can call the ListWorkspaces operation
      to obtain the ID.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - WorkspaceId
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Type": {
      "Type": "String",
      "Description": {
        "en": "The type of the data source. Valid values:\n*  Hologres\n*  GraphCompute\n*  FeatureDB\n*  MaxCompute"
      },
      "AllowedValues": [
        "Hologres",
        "GraphCompute",
        "FeatureDB",
        "MaxCompute"
      ],
      "Required": true
    },
    "DatasourceName": {
      "Type": "String",
      "Description": {
        "en": "The name of the data source. The name can be up to 63 characters long, must start with a letter or digit, and can contain only letters, digits, and underscores (_)."
      },
      "Required": true
    },
    "InstanceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the PaiFeatureStore instance. You can call the ListInstances operation to obtain the ID."
      },
      "Required": true
    },
    "Config": {
      "Type": "Json",
      "Description": {
        "en": "The configuration for the resource, provided as a JSON-formatted string."
      },
      "Required": false
    },
    "WorkspaceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the PAI workspace. You can call the ListWorkspaces operation to obtain the ID."
      },
      "Required": true
    },
    "Uri": {
      "Type": "String",
      "Description": {
        "en": "The URI of the data source. The URI can be up to 64 characters long."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::PaiFeatureStore::Datasource",
      "Properties": {
        "Type": {
          "Ref": "Type"
        },
        "DatasourceName": {
          "Ref": "DatasourceName"
        },
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "Config": {
          "Ref": "Config"
        },
        "WorkspaceId": {
          "Ref": "WorkspaceId"
        },
        "Uri": {
          "Ref": "Uri"
        }
      }
    }
  },
  "Outputs": {
    "Type": {
      "Description": "The type of the data source.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Type"
        ]
      }
    },
    "DatasourceName": {
      "Description": "The name of the data source. The name can be up to 63 characters long, must start with a letter or digit, and can contain only letters, digits, and underscores (_).",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "DatasourceName"
        ]
      }
    },
    "DatasourceId": {
      "Description": "The ID of the data source.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "DatasourceId"
        ]
      }
    },
    "Config": {
      "Description": "The resource configuration, provided as a JSON-formatted string.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Config"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "WorkspaceId": {
      "Description": "The ID of the PAI workspace. You can call the ListWorkspaces operation to obtain the ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "WorkspaceId"
        ]
      }
    },
    "Uri": {
      "Description": "The URI of the data source. The URI can be up to 64 characters long.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Uri"
        ]
      }
    }
  }
}