All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::MaxCompute::Package

更新时间:Dec 31, 2024

ALIYUN::MaxCompute::Package is used to create a package.

Syntax

{
  "Type": "ALIYUN::MaxCompute::Package",
  "Properties": {
    "ProjectName": String,
    "PackageName": String,
    "Acl": Map
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

ProjectName

String

Yes

No

The name of the MaxCompute project.

None.

PackageName

String

Yes

No

The name of the package in the MaxCompute project.

None.

Acl

Map

No

Yes

The access control lists (ACLs).

None.

Acl syntax

"Acl": {
  "Function": List,
  "Table": List,
  "Resource": List
}

Acl properties

Property

Type

Required

Editable

Description

Constraint

Function

List

No

Yes

The functions.

None.

Resource

List

No

Yes

The resources.

None.

Table

List

No

Yes

The tables.

None.

Function syntax

"Function": [
  {
    "Actions": List,
    "Name": String
  }
]

Function properties

Property

Type

Required

Editable

Description

Constraint

Name

String

Yes

No

The function name.

None.

Actions

List

No

No

The function operations.

Valid values:

  • Read

  • Execute

Table syntax

"Table": [
  {
    "Actions": List,
    "Name": String
  }
]

Table properties

Property

Type

Required

Editable

Description

Constraint

Name

String

Yes

No

The table name.

None.

Actions

List

No

No

The table operations.

Valid values:

  • Describe

  • Select

Resource syntax

"Resource": [
  {
    "Actions": List,
    "Name": String
  }
]

Resource properties

Property

Type

Required

Editable

Description

Constraint

Name

String

Yes

No

The resource name.

None.

Actions

List

No

No

The resource operations.

Set the value to Read.

Return values

Fn::GetAtt

  • ProjectName: the name of the MaxCompute project.

  • PackageName: the name of the package in the MaxCompute project.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ProjectName:
    Type: String
    Description:
      en: The name of the MaxCompute project.
    Required: true
  PackageName:
    Type: String
    Description:
      en: The name of the project package.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::MaxCompute::Package
    Properties:
      ProjectName:
        Ref: ProjectName
      PackageName:
        Ref: PackageName
Outputs:
  ProjectName:
    Description: The name of the MaxCompute project.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ProjectName
  PackageName:
    Description: The name of the project package.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - PackageName
 
 
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ProjectName": {
      "Type": "String",
      "Description": {
        "en": "The name of the MaxCompute project."
      },
      "Required": true
    },
    "PackageName": {
      "Type": "String",
      "Description": {
        "en": "The name of the project package."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::MaxCompute::Package",
      "Properties": {
        "ProjectName": {
          "Ref": "ProjectName"
        },
        "PackageName": {
          "Ref": "PackageName"
        }
      }
    }
  },
  "Outputs": {
    "ProjectName": {
      "Description": "The name of the MaxCompute project.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ProjectName"
        ]
      }
    },
    "PackageName": {
      "Description": "The name of the project package.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "PackageName"
        ]
      }
    }
  }
}