ROS CDK API
Import ROS CDK Library
The ROS CDK package name varies by programming language and resource type. The following examples show how to download and import the ROS CDK core package.
TypeScript
Download
npm install @alicloud/ros-cdk-core
Import
import * as ros from '@alicloud/ros-cdk-core';
JavaScript
Download
npm install @alicloud/ros-cdk-core
Import
const ros = require('@alicloud/ros-cdk-core');
Java
Download
Add the following code to the pom.xml file:
<groupId>com.aliyun</groupId>
<artifactId>ros-cdk-core</artifactId>
Run the following command:
mvn compile
Import
import com.aliyun.ros.cdk.core.*;
Python
Download
pip install ros-cdk-core
Import
import ros_cdk_core as core
C#
Download
dotnet add package AlibabaCloud.SDK.ROS.CDK.Core
Import
using AlibabaCloud.SDK.ROS.CDK.Core;
Go
Download
go get github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore
Import
import (
"github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
)
ROS CDK API references
For detailed API information, see ROS CDK References.
Each package reference includes the following topics:
-
Overview: introduces the package, including import and usage instructions for each programming language.
-
Constructs: the original resources in the package, which correspond to ROS resource properties, and Level 2 resources. Level 2 resources provide advanced API operations with default values to enhance development efficiency.
-
Classes: non-construct classes that provide features used by constructs in the module.
-
Structs: data structures that define composite values, such as resource properties.
-
Datasource: data source resources of ROS, which include the preceding topics as subtopics.