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 com.aliyun.ros.cdk.pai.Service;
Service.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.serviceConfig(IResolvable)
.serviceConfig(java.util.Map<java.lang.String, java.lang.Object>)
// .develop(java.lang.String)
// .develop(IResolvable)
// .labels(IResolvable)
// .labels(java.util.Map<java.lang.String, java.lang.Object>)
.build();
Name | Type | Description |
---|---|---|
scope |
com.aliyun.ros.cdk.core.Construct |
No description. |
id |
java.lang.String |
No description. |
enableResourcePropertyConstraint |
java.lang.Boolean |
No description. |
serviceConfig |
com.aliyun.ros.cdk.core.IResolvable OR java.util.Map |
Property serviceConfig: Service configuration information. |
develop |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property develop: Whether to enter the development mode. |
labels |
com.aliyun.ros.cdk.core.IResolvable OR java.util.Map |
Property labels: Service Tag. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
serviceConfig
Required
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map
Property serviceConfig: Service configuration information.
develop
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property develop: Whether to enter the development mode.
labels
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map
Property labels: Service Tag.
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 java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
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: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.pai.Service;
Service.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
Name | Type | Description |
---|---|---|
node |
com.aliyun.ros.cdk.core.ConstructNode |
The construct tree node associated with this construct. |
ref |
java.lang.String |
No description. |
stack |
com.aliyun.ros.cdk.core.Stack |
The stack in which this resource is defined. |
resource |
com.aliyun.ros.cdk.core.RosResource |
No description. |
attrAccessToken |
com.aliyun.ros.cdk.core.IResolvable |
Attribute AccessToken: Service Request authentication token. |
attrCallerUid |
com.aliyun.ros.cdk.core.IResolvable |
Attribute CallerUid: The ID of the service creator, which can be the ID of the RAM account. |
attrCpu |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Cpu: Number of service CPU cores. |
attrCreateTime |
com.aliyun.ros.cdk.core.IResolvable |
Attribute CreateTime: Creation time of the service. |
attrCurrentVersion |
com.aliyun.ros.cdk.core.IResolvable |
Attribute CurrentVersion: Current running version of the service. |
attrExtraData |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ExtraData: Service Extra Information. |
attrGpu |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Gpu: Number of service GPU cards. |
attrImage |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Image: Service Deployment Mirroring. |
attrInternetEndpoint |
com.aliyun.ros.cdk.core.IResolvable |
Attribute InternetEndpoint: Public network Endpoint of the service. |
attrIntranetEndpoint |
com.aliyun.ros.cdk.core.IResolvable |
Attribute IntranetEndpoint: The intranet Endpoint of the service. |
attrLabels |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Labels: Service Tag. |
attrLatestVersion |
com.aliyun.ros.cdk.core.IResolvable |
Attribute LatestVersion: The latest version of the service. |
attrMemory |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Memory: Memory of service (MB). |
attrMessage |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Message: Latest information on services. |
attrNamespace |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Namespace: The namespace to which the service belongs. |
attrParentUid |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ParentUid: Primary account ID of the creator. |
attrPendingInstance |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PendingInstance: Number of instances where the service is not currently ready. |
attrReason |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Reason: Service deployment failure reason. |
attrResource |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Resource: The ID of the resource group to which the service belongs. |
attrResourceAlias |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ResourceAlias: Name of the resource group where the service resides. |
attrRole |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Role: Grouping Service Role. |
attrRoleAttrs |
com.aliyun.ros.cdk.core.IResolvable |
Attribute RoleAttrs: Grouping Service Role Properties. |
attrRunningInstance |
com.aliyun.ros.cdk.core.IResolvable |
Attribute RunningInstance: Number of instances in service running. |
attrSafetyLock |
com.aliyun.ros.cdk.core.IResolvable |
Attribute SafetyLock: Service Security Lock Status. |
attrServiceConfig |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ServiceConfig: Service configuration information. |
attrServiceGroup |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ServiceGroup: Group to which the service belongs. |
attrServiceName |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ServiceName: Service Name. |
attrServiceUid |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ServiceUid: Unique Service ID. |
attrTotalInstance |
com.aliyun.ros.cdk.core.IResolvable |
Attribute TotalInstance: Total number of instances required by the service. |
attrUpdateTime |
com.aliyun.ros.cdk.core.IResolvable |
Attribute UpdateTime: Service Last Updated. |
attrWeight |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Weight: Packet Service Traffic Weight. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrAccessToken
Required
public IResolvable getAttrAccessToken();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute AccessToken: Service Request authentication token.
attrCallerUid
Required
public IResolvable getAttrCallerUid();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CallerUid: The ID of the service creator, which can be the ID of the RAM account.
attrCpu
Required
public IResolvable getAttrCpu();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Cpu: Number of service CPU cores.
attrCreateTime
Required
public IResolvable getAttrCreateTime();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CreateTime: Creation time of the service.
attrCurrentVersion
Required
public IResolvable getAttrCurrentVersion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CurrentVersion: Current running version of the service.
attrExtraData
Required
public IResolvable getAttrExtraData();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ExtraData: Service Extra Information.
attrGpu
Required
public IResolvable getAttrGpu();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Gpu: Number of service GPU cards.
attrImage
Required
public IResolvable getAttrImage();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Image: Service Deployment Mirroring.
attrInternetEndpoint
Required
public IResolvable getAttrInternetEndpoint();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InternetEndpoint: Public network Endpoint of the service.
attrIntranetEndpoint
Required
public IResolvable getAttrIntranetEndpoint();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute IntranetEndpoint: The intranet Endpoint of the service.
attrLabels
Required
public IResolvable getAttrLabels();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Labels: Service Tag.
attrLatestVersion
Required
public IResolvable getAttrLatestVersion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute LatestVersion: The latest version of the service.
attrMemory
Required
public IResolvable getAttrMemory();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Memory: Memory of service (MB).
attrMessage
Required
public IResolvable getAttrMessage();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Message: Latest information on services.
attrNamespace
Required
public IResolvable getAttrNamespace();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Namespace: The namespace to which the service belongs.
attrParentUid
Required
public IResolvable getAttrParentUid();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ParentUid: Primary account ID of the creator.
attrPendingInstance
Required
public IResolvable getAttrPendingInstance();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PendingInstance: Number of instances where the service is not currently ready.
attrReason
Required
public IResolvable getAttrReason();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Reason: Service deployment failure reason.
attrResource
Required
public IResolvable getAttrResource();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Resource: The ID of the resource group to which the service belongs.
attrResourceAlias
Required
public IResolvable getAttrResourceAlias();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ResourceAlias: Name of the resource group where the service resides.
attrRole
Required
public IResolvable getAttrRole();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Role: Grouping Service Role.
attrRoleAttrs
Required
public IResolvable getAttrRoleAttrs();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute RoleAttrs: Grouping Service Role Properties.
attrRunningInstance
Required
public IResolvable getAttrRunningInstance();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute RunningInstance: Number of instances in service running.
attrSafetyLock
Required
public IResolvable getAttrSafetyLock();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute SafetyLock: Service Security Lock Status.
attrServiceConfig
Required
public IResolvable getAttrServiceConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ServiceConfig: Service configuration information.
attrServiceGroup
Required
public IResolvable getAttrServiceGroup();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ServiceGroup: Group to which the service belongs.
attrServiceName
Required
public IResolvable getAttrServiceName();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ServiceName: Service Name.
attrServiceUid
Required
public IResolvable getAttrServiceUid();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ServiceUid: Unique Service ID.
attrTotalInstance
Required
public IResolvable getAttrTotalInstance();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute TotalInstance: Total number of instances required by the service.
attrUpdateTime
Required
public IResolvable getAttrUpdateTime();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute UpdateTime: Service Last Updated.
attrWeight
Required
public IResolvable getAttrWeight();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Weight: Packet Service Traffic Weight.