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. |
scope
Required
- Type: @alicloud/ros-cdk-core.Construct
id
Required
- Type: string
props
Required
- Type: ServiceProps
enableResourcePropertyConstraint
Optional
- 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.
- Type: @alicloud/ros-cdk-core.ISynthesisSession
The synthesis session.
addCondition
public addCondition(condition: RosCondition): void
- Type: @alicloud/ros-cdk-core.RosCondition
addCount
public addCount(count: number | IResolvable): void
- Type: number | @alicloud/ros-cdk-core.IResolvable
addDependency
public addDependency(resource: Resource): void
- Type: @alicloud/ros-cdk-core.Resource
addResourceDesc
public addResourceDesc(desc: string): void
- Type: string
applyRemovalPolicy
public applyRemovalPolicy(policy: RemovalPolicy): void
- Type: @alicloud/ros-cdk-core.RemovalPolicy
getAtt
public getAtt(name: string): IResolvable
- Type: string
setMetadata
public setMetadata(key: string, value: any): void
- Type: string
- 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.
- 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. |
node
Required
public readonly node: ConstructNode;
- Type: @alicloud/ros-cdk-core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public readonly ref: string;
- Type: string
stack
Required
public readonly stack: Stack;
- Type: @alicloud/ros-cdk-core.Stack
The stack in which this resource is defined.
resource
Optional
public readonly resource: RosResource;
- Type: @alicloud/ros-cdk-core.RosResource
attrAccessToken
Required
public readonly attrAccessToken: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute AccessToken: Service Request authentication token.
attrCallerUid
Required
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.
attrCpu
Required
public readonly attrCpu: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Cpu: Number of service CPU cores.
attrCreateTime
Required
public readonly attrCreateTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute CreateTime: Creation time of the service.
attrCurrentVersion
Required
public readonly attrCurrentVersion: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute CurrentVersion: Current running version of the service.
attrExtraData
Required
public readonly attrExtraData: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ExtraData: Service Extra Information.
attrGpu
Required
public readonly attrGpu: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Gpu: Number of service GPU cards.
attrImage
Required
public readonly attrImage: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Image: Service Deployment Mirroring.
attrInternetEndpoint
Required
public readonly attrInternetEndpoint: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InternetEndpoint: Public network Endpoint of the service.
attrIntranetEndpoint
Required
public readonly attrIntranetEndpoint: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute IntranetEndpoint: The intranet Endpoint of the service.
attrLabels
Required
public readonly attrLabels: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Labels: Service Tag.
attrLatestVersion
Required
public readonly attrLatestVersion: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute LatestVersion: The latest version of the service.
attrMemory
Required
public readonly attrMemory: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Memory: Memory of service (MB).
attrMessage
Required
public readonly attrMessage: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Message: Latest information on services.
attrNamespace
Required
public readonly attrNamespace: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Namespace: The namespace to which the service belongs.
attrParentUid
Required
public readonly attrParentUid: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ParentUid: Primary account ID of the creator.
attrPendingInstance
Required
public readonly attrPendingInstance: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PendingInstance: Number of instances where the service is not currently ready.
attrReason
Required
public readonly attrReason: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Reason: Service deployment failure reason.
attrResource
Required
public readonly attrResource: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Resource: The ID of the resource group to which the service belongs.
attrResourceAlias
Required
public readonly attrResourceAlias: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ResourceAlias: Name of the resource group where the service resides.
attrRole
Required
public readonly attrRole: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Role: Grouping Service Role.
attrRoleAttrs
Required
public readonly attrRoleAttrs: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute RoleAttrs: Grouping Service Role Properties.
attrRunningInstance
Required
public readonly attrRunningInstance: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute RunningInstance: Number of instances in service running.
attrSafetyLock
Required
public readonly attrSafetyLock: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute SafetyLock: Service Security Lock Status.
attrServiceConfig
Required
public readonly attrServiceConfig: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ServiceConfig: Service configuration information.
attrServiceGroup
Required
public readonly attrServiceGroup: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ServiceGroup: Group to which the service belongs.
attrServiceName
Required
public readonly attrServiceName: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ServiceName: Service Name.
attrServiceUid
Required
public readonly attrServiceUid: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ServiceUid: Unique Service ID.
attrTotalInstance
Required
public readonly attrTotalInstance: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute TotalInstance: Total number of instances required by the service.
attrUpdateTime
Required
public readonly attrUpdateTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute UpdateTime: Service Last Updated.
attrWeight
Required
public readonly attrWeight: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Weight: Packet Service Traffic Weight.