All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::OOS::DeployRevision

Last Updated:Oct 17, 2025

The ALIYUN::OOS::DeployRevision type is used to create a deployment.

Syntax

{
  "Type": "ALIYUN::OOS::DeployRevision",
  "Properties": {
    "ApplicationName": String,
    "Description": String,
    "Hooks": Map,
    "Location": Map,
    "RevisionType": String
  }
}

Properties

Property

Type

Required

Update allowed

Description

Constraints

ApplicationName

String

Yes

No

The name of the application.

None

Description

String

No

No

The description of the revision.

None

Hooks

Map

No

No

The hook configuration for the deployment.

None

Location

Map

No

No

The location of the code for the deployment.

None

RevisionType

String

No

No

The type of the revision.

Valid values:

  • GitRepo

  • Oss

  • EcsImage

  • DockerImage

  • Command

Return value

Fn::GetAtt

RevisionId: The ID of the revision.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ApplicationName:
    Type: String
    Description: The name of the application.
    Required: true
  RevisionType:
    Type: String
    Description: The type of the revision.
    AllowedValues:
      - GitRepo
      - Oss
      - EcsImage
      - DockerImage
      - Command
    Required: false
Resources:
  DeployRevision:
    Type: ALIYUN::OOS::DeployRevision
    Properties:
      ApplicationName:
        Ref: ApplicationName
      RevisionType:
        Ref: RevisionType
Outputs:
  RevisionId:
    Description: The ID of the revision.
    Value:
      Fn::GetAtt:
        - DeployRevision
        - RevisionId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ApplicationName": {
      "Type": "String",
      "Description": "The name of the application.",
      "Required": true
    },
    "RevisionType": {
      "Type": "String",
      "Description": "The type of the revision.",
      "AllowedValues": [
        "GitRepo",
        "Oss",
        "EcsImage",
        "DockerImage",
        "Command"
      ],
      "Required": false
    }
  },
  "Resources": {
    "DeployRevision": {
      "Type": "ALIYUN::OOS::DeployRevision",
      "Properties": {
        "ApplicationName": {
          "Ref": "ApplicationName"
        },
        "RevisionType": {
          "Ref": "RevisionType"
        }
      }
    }
  },
  "Outputs": {
    "RevisionId": {
      "Description": "The ID of the revision.",
      "Value": {
        "Fn::GetAtt": [
          "DeployRevision",
          "RevisionId"
        ]
      }
    }
  }
}