Service
This class encapsulates and extends the ROS resource type DATASOURCE::PAI::Service
.
Initializers
import com.aliyun.ros.cdk.pai.datasource.Service;
Service.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.serviceName(java.lang.String)
.serviceName(IResolvable)
// .refreshOptions(java.lang.String)
// .refreshOptions(IResolvable)
.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. |
serviceName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property serviceName: The name of the service. |
refreshOptions |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
serviceName
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property serviceName: The name of the service.
refreshOptions
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
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.datasource.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: The request token of the service. |
attrCallerUid |
com.aliyun.ros.cdk.core.IResolvable |
Attribute CallerUid: The user ID of the account that is used to create the service. |
attrCpu |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Cpu: The CPU that you applied for each instance. |
attrCreateTime |
com.aliyun.ros.cdk.core.IResolvable |
Attribute CreateTime: The time when the service was created. |
attrCurrentVersion |
com.aliyun.ros.cdk.core.IResolvable |
Attribute CurrentVersion: The current version of the model. |
attrExtraData |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ExtraData: The additional information about the service. |
attrGpu |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Gpu: The GPU that you applied for each instance. |
attrImage |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Image: The data image of the service. |
attrInternetEndpoint |
com.aliyun.ros.cdk.core.IResolvable |
Attribute InternetEndpoint: The public endpoint of the service. |
attrIntranetEndpoint |
com.aliyun.ros.cdk.core.IResolvable |
Attribute IntranetEndpoint: The private endpoint of the service. |
attrLabels |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Labels: The tags of the service. |
attrLatestVersion |
com.aliyun.ros.cdk.core.IResolvable |
Attribute LatestVersion: The latest version of the service. |
attrMemory |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Memory: The memory that you applied for each instance. |
attrMessage |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Message: The summary of the service. |
attrNamespace |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Namespace: The namespace of the service. |
attrParentUid |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ParentUid: The user ID of the Alibaba Cloud account that is used to create the service. |
attrPendingInstance |
com.aliyun.ros.cdk.core.IResolvable |
Attribute PendingInstance: The number of instances for the suspended service. |
attrReason |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Reason: The reason why the service is in the current state. |
attrResource |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Resource: The resource group to which the service belongs. |
attrResourceAlias |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ResourceAlias: The alias of the resource group to which the service belongs. |
attrRole |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Role: The role of the service. |
attrRoleAttrs |
com.aliyun.ros.cdk.core.IResolvable |
Attribute RoleAttrs: The additional attributes of the service role. |
attrRunningInstance |
com.aliyun.ros.cdk.core.IResolvable |
Attribute RunningInstance: The number of instances for the running service. |
attrSafetyLock |
com.aliyun.ros.cdk.core.IResolvable |
Attribute SafetyLock: The security lock of the service. |
attrServiceConfig |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ServiceConfig: The configurations of the service. |
attrServiceGroup |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ServiceGroup: The group to which the service belongs. |
attrServiceName |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ServiceName: The name of the service. |
attrServiceUid |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ServiceUid: The ID of the service. |
attrTotalInstance |
com.aliyun.ros.cdk.core.IResolvable |
Attribute TotalInstance: The total number of instances of the service. |
attrUpdateTime |
com.aliyun.ros.cdk.core.IResolvable |
Attribute UpdateTime: The time when the service was updated. |
attrWeight |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Weight: The weight of the canary release for the service. |
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: The request token of the service.
attrCallerUid
Required
public IResolvable getAttrCallerUid();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CallerUid: The user ID of the account that is used to create the service.
attrCpu
Required
public IResolvable getAttrCpu();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Cpu: The CPU that you applied for each instance.
attrCreateTime
Required
public IResolvable getAttrCreateTime();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CreateTime: The time when the service was created.
attrCurrentVersion
Required
public IResolvable getAttrCurrentVersion();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CurrentVersion: The current version of the model.
attrExtraData
Required
public IResolvable getAttrExtraData();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ExtraData: The additional information about the service.
attrGpu
Required
public IResolvable getAttrGpu();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Gpu: The GPU that you applied for each instance.
attrImage
Required
public IResolvable getAttrImage();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Image: The data image of the service.
attrInternetEndpoint
Required
public IResolvable getAttrInternetEndpoint();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InternetEndpoint: The public endpoint of the service.
attrIntranetEndpoint
Required
public IResolvable getAttrIntranetEndpoint();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute IntranetEndpoint: The private endpoint of the service.
attrLabels
Required
public IResolvable getAttrLabels();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Labels: The tags of the service.
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: The memory that you applied for each instance.
attrMessage
Required
public IResolvable getAttrMessage();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Message: The summary of the service.
attrNamespace
Required
public IResolvable getAttrNamespace();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Namespace: The namespace of the service.
attrParentUid
Required
public IResolvable getAttrParentUid();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ParentUid: The user ID of the Alibaba Cloud account that is used to create the service.
attrPendingInstance
Required
public IResolvable getAttrPendingInstance();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute PendingInstance: The number of instances for the suspended service.
attrReason
Required
public IResolvable getAttrReason();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Reason: The reason why the service is in the current state.
attrResource
Required
public IResolvable getAttrResource();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Resource: The resource group to which the service belongs.
attrResourceAlias
Required
public IResolvable getAttrResourceAlias();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ResourceAlias: The alias of the resource group to which the service belongs.
attrRole
Required
public IResolvable getAttrRole();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Role: The role of the service.
attrRoleAttrs
Required
public IResolvable getAttrRoleAttrs();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute RoleAttrs: The additional attributes of the service role.
attrRunningInstance
Required
public IResolvable getAttrRunningInstance();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute RunningInstance: The number of instances for the running service.
attrSafetyLock
Required
public IResolvable getAttrSafetyLock();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute SafetyLock: The security lock of the service.
attrServiceConfig
Required
public IResolvable getAttrServiceConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ServiceConfig: The configurations of the service.
attrServiceGroup
Required
public IResolvable getAttrServiceGroup();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ServiceGroup: The group to which the service belongs.
attrServiceName
Required
public IResolvable getAttrServiceName();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ServiceName: The name of the service.
attrServiceUid
Required
public IResolvable getAttrServiceUid();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ServiceUid: The ID of the service.
The value of this property is the same as the value of ServiceId.
attrTotalInstance
Required
public IResolvable getAttrTotalInstance();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute TotalInstance: The total number of instances of the service.
attrUpdateTime
Required
public IResolvable getAttrUpdateTime();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute UpdateTime: The time when the service was updated.
attrWeight
Required
public IResolvable getAttrWeight();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Weight: The weight of the canary release for the service.