Skip to content

Service

This class encapsulates and extends the ROS resource type ALIYUN::PAI::Service, which is used to create an Elastic Algorithm Service (EAS) service in Machine Learning Platform for AI (PAI).

Initializers

import { Service } from '@alicloud/ros-cdk-pai'
new Service(scope: Construct, id: string, props: ServiceProps, enableResourcePropertyConstraint?: boolean)
Name Type Description
scope @alicloud/ros-cdk-core.Construct No description.
id string No description.
props ServiceProps No description.
enableResourcePropertyConstraint boolean No description.

scopeRequired

  • Type: @alicloud/ros-cdk-core.Construct

idRequired

  • Type: string

propsRequired


enableResourcePropertyConstraintOptional

  • Type: boolean

Methods

Name Description
toString Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
addCondition No description.
addCount No description.
addDependency No description.
addResourceDesc No description.
applyRemovalPolicy No description.
getAtt No description.
setMetadata No description.

toString

public toString(): string

Returns a string representation of this construct.

synthesize

public synthesize(session: ISynthesisSession): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: @alicloud/ros-cdk-core.ISynthesisSession

The synthesis session.


addCondition

public addCondition(condition: RosCondition): void

conditionRequired

  • Type: @alicloud/ros-cdk-core.RosCondition

addCount

public addCount(count: number | IResolvable): void

countRequired

  • Type: number | @alicloud/ros-cdk-core.IResolvable

addDependency

public addDependency(resource: Resource): void

resourceRequired

  • Type: @alicloud/ros-cdk-core.Resource

addResourceDesc

public addResourceDesc(desc: string): void

descRequired

  • Type: string

applyRemovalPolicy

public applyRemovalPolicy(policy: RemovalPolicy): void

policyRequired

  • Type: @alicloud/ros-cdk-core.RemovalPolicy

getAtt

public getAtt(name: string): IResolvable

nameRequired

  • Type: string

setMetadata

public setMetadata(key: string, value: any): void

keyRequired

  • Type: string

valueRequired

  • Type: any

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import { Service } from '@alicloud/ros-cdk-pai'
Service.isConstruct(x: any)

Return whether the given object is a Construct.

xRequired

  • Type: any

Properties

Name Type Description
node @alicloud/ros-cdk-core.ConstructNode The construct tree node associated with this construct.
ref string No description.
stack @alicloud/ros-cdk-core.Stack The stack in which this resource is defined.
resource @alicloud/ros-cdk-core.RosResource No description.
attrAccessToken @alicloud/ros-cdk-core.IResolvable Attribute AccessToken: Service Request authentication token.
attrCallerUid @alicloud/ros-cdk-core.IResolvable Attribute CallerUid: The ID of the service creator, which can be the ID of the RAM account.
attrCpu @alicloud/ros-cdk-core.IResolvable Attribute Cpu: Number of service CPU cores.
attrCreateTime @alicloud/ros-cdk-core.IResolvable Attribute CreateTime: Creation time of the service.
attrCurrentVersion @alicloud/ros-cdk-core.IResolvable Attribute CurrentVersion: Current running version of the service.
attrExtraData @alicloud/ros-cdk-core.IResolvable Attribute ExtraData: Service Extra Information.
attrGpu @alicloud/ros-cdk-core.IResolvable Attribute Gpu: Number of service GPU cards.
attrImage @alicloud/ros-cdk-core.IResolvable Attribute Image: Service Deployment Mirroring.
attrInternetEndpoint @alicloud/ros-cdk-core.IResolvable Attribute InternetEndpoint: Public network Endpoint of the service.
attrIntranetEndpoint @alicloud/ros-cdk-core.IResolvable Attribute IntranetEndpoint: The intranet Endpoint of the service.
attrLabels @alicloud/ros-cdk-core.IResolvable Attribute Labels: Service Tag.
attrLatestVersion @alicloud/ros-cdk-core.IResolvable Attribute LatestVersion: The latest version of the service.
attrMemory @alicloud/ros-cdk-core.IResolvable Attribute Memory: Memory of service (MB).
attrMessage @alicloud/ros-cdk-core.IResolvable Attribute Message: Latest information on services.
attrNamespace @alicloud/ros-cdk-core.IResolvable Attribute Namespace: The namespace to which the service belongs.
attrParentUid @alicloud/ros-cdk-core.IResolvable Attribute ParentUid: Primary account ID of the creator.
attrPendingInstance @alicloud/ros-cdk-core.IResolvable Attribute PendingInstance: Number of instances where the service is not currently ready.
attrReason @alicloud/ros-cdk-core.IResolvable Attribute Reason: Service deployment failure reason.
attrResource @alicloud/ros-cdk-core.IResolvable Attribute Resource: The ID of the resource group to which the service belongs.
attrResourceAlias @alicloud/ros-cdk-core.IResolvable Attribute ResourceAlias: Name of the resource group where the service resides.
attrRole @alicloud/ros-cdk-core.IResolvable Attribute Role: Grouping Service Role.
attrRoleAttrs @alicloud/ros-cdk-core.IResolvable Attribute RoleAttrs: Grouping Service Role Properties.
attrRunningInstance @alicloud/ros-cdk-core.IResolvable Attribute RunningInstance: Number of instances in service running.
attrSafetyLock @alicloud/ros-cdk-core.IResolvable Attribute SafetyLock: Service Security Lock Status.
attrServiceConfig @alicloud/ros-cdk-core.IResolvable Attribute ServiceConfig: Service configuration information.
attrServiceGroup @alicloud/ros-cdk-core.IResolvable Attribute ServiceGroup: Group to which the service belongs.
attrServiceName @alicloud/ros-cdk-core.IResolvable Attribute ServiceName: Service Name.
attrServiceUid @alicloud/ros-cdk-core.IResolvable Attribute ServiceUid: Unique Service ID.
attrTotalInstance @alicloud/ros-cdk-core.IResolvable Attribute TotalInstance: Total number of instances required by the service.
attrUpdateTime @alicloud/ros-cdk-core.IResolvable Attribute UpdateTime: Service Last Updated.
attrWeight @alicloud/ros-cdk-core.IResolvable Attribute Weight: Packet Service Traffic Weight.

nodeRequired

public readonly node: ConstructNode;
  • Type: @alicloud/ros-cdk-core.ConstructNode

The construct tree node associated with this construct.


refRequired

public readonly ref: string;
  • Type: string

stackRequired

public readonly stack: Stack;
  • Type: @alicloud/ros-cdk-core.Stack

The stack in which this resource is defined.


resourceOptional

public readonly resource: RosResource;
  • Type: @alicloud/ros-cdk-core.RosResource

attrAccessTokenRequired

public readonly attrAccessToken: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute AccessToken: Service Request authentication token.


attrCallerUidRequired

public readonly attrCallerUid: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute CallerUid: The ID of the service creator, which can be the ID of the RAM account.


attrCpuRequired

public readonly attrCpu: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Cpu: Number of service CPU cores.


attrCreateTimeRequired

public readonly attrCreateTime: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute CreateTime: Creation time of the service.


attrCurrentVersionRequired

public readonly attrCurrentVersion: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute CurrentVersion: Current running version of the service.


attrExtraDataRequired

public readonly attrExtraData: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ExtraData: Service Extra Information.


attrGpuRequired

public readonly attrGpu: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Gpu: Number of service GPU cards.


attrImageRequired

public readonly attrImage: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Image: Service Deployment Mirroring.


attrInternetEndpointRequired

public readonly attrInternetEndpoint: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute InternetEndpoint: Public network Endpoint of the service.


attrIntranetEndpointRequired

public readonly attrIntranetEndpoint: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute IntranetEndpoint: The intranet Endpoint of the service.


attrLabelsRequired

public readonly attrLabels: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Labels: Service Tag.


attrLatestVersionRequired

public readonly attrLatestVersion: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute LatestVersion: The latest version of the service.


attrMemoryRequired

public readonly attrMemory: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Memory: Memory of service (MB).


attrMessageRequired

public readonly attrMessage: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Message: Latest information on services.


attrNamespaceRequired

public readonly attrNamespace: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Namespace: The namespace to which the service belongs.


attrParentUidRequired

public readonly attrParentUid: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ParentUid: Primary account ID of the creator.


attrPendingInstanceRequired

public readonly attrPendingInstance: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute PendingInstance: Number of instances where the service is not currently ready.


attrReasonRequired

public readonly attrReason: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Reason: Service deployment failure reason.


attrResourceRequired

public readonly attrResource: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Resource: The ID of the resource group to which the service belongs.


attrResourceAliasRequired

public readonly attrResourceAlias: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ResourceAlias: Name of the resource group where the service resides.


attrRoleRequired

public readonly attrRole: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Role: Grouping Service Role.


attrRoleAttrsRequired

public readonly attrRoleAttrs: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute RoleAttrs: Grouping Service Role Properties.


attrRunningInstanceRequired

public readonly attrRunningInstance: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute RunningInstance: Number of instances in service running.


attrSafetyLockRequired

public readonly attrSafetyLock: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute SafetyLock: Service Security Lock Status.


attrServiceConfigRequired

public readonly attrServiceConfig: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ServiceConfig: Service configuration information.


attrServiceGroupRequired

public readonly attrServiceGroup: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ServiceGroup: Group to which the service belongs.


attrServiceNameRequired

public readonly attrServiceName: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ServiceName: Service Name.


attrServiceUidRequired

public readonly attrServiceUid: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute ServiceUid: Unique Service ID.


attrTotalInstanceRequired

public readonly attrTotalInstance: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute TotalInstance: Total number of instances required by the service.


attrUpdateTimeRequired

public readonly attrUpdateTime: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute UpdateTime: Service Last Updated.


attrWeightRequired

public readonly attrWeight: IResolvable;
  • Type: @alicloud/ros-cdk-core.IResolvable

Attribute Weight: Packet Service Traffic Weight.