Service
This class encapsulates and extends the ROS resource type DATASOURCE::PAI::Service
.
Initializers
import { datasource } from '@alicloud/ros-cdk-pai'
new datasource.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 { datasource } from '@alicloud/ros-cdk-pai'
datasource.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: The request token of the service. |
attrCallerUid |
@alicloud/ros-cdk-core.IResolvable |
Attribute CallerUid: The user ID of the account that is used to create the service. |
attrCpu |
@alicloud/ros-cdk-core.IResolvable |
Attribute Cpu: The CPU that you applied for each instance. |
attrCreateTime |
@alicloud/ros-cdk-core.IResolvable |
Attribute CreateTime: The time when the service was created. |
attrCurrentVersion |
@alicloud/ros-cdk-core.IResolvable |
Attribute CurrentVersion: The current version of the model. |
attrExtraData |
@alicloud/ros-cdk-core.IResolvable |
Attribute ExtraData: The additional information about the service. |
attrGpu |
@alicloud/ros-cdk-core.IResolvable |
Attribute Gpu: The GPU that you applied for each instance. |
attrImage |
@alicloud/ros-cdk-core.IResolvable |
Attribute Image: The data image of the service. |
attrInternetEndpoint |
@alicloud/ros-cdk-core.IResolvable |
Attribute InternetEndpoint: The public endpoint of the service. |
attrIntranetEndpoint |
@alicloud/ros-cdk-core.IResolvable |
Attribute IntranetEndpoint: The private endpoint of the service. |
attrLabels |
@alicloud/ros-cdk-core.IResolvable |
Attribute Labels: The tags of the service. |
attrLatestVersion |
@alicloud/ros-cdk-core.IResolvable |
Attribute LatestVersion: The latest version of the service. |
attrMemory |
@alicloud/ros-cdk-core.IResolvable |
Attribute Memory: The memory that you applied for each instance. |
attrMessage |
@alicloud/ros-cdk-core.IResolvable |
Attribute Message: The summary of the service. |
attrNamespace |
@alicloud/ros-cdk-core.IResolvable |
Attribute Namespace: The namespace of the service. |
attrParentUid |
@alicloud/ros-cdk-core.IResolvable |
Attribute ParentUid: The user ID of the Alibaba Cloud account that is used to create the service. |
attrPendingInstance |
@alicloud/ros-cdk-core.IResolvable |
Attribute PendingInstance: The number of instances for the suspended service. |
attrReason |
@alicloud/ros-cdk-core.IResolvable |
Attribute Reason: The reason why the service is in the current state. |
attrResource |
@alicloud/ros-cdk-core.IResolvable |
Attribute Resource: The resource group to which the service belongs. |
attrResourceAlias |
@alicloud/ros-cdk-core.IResolvable |
Attribute ResourceAlias: The alias of the resource group to which the service belongs. |
attrRole |
@alicloud/ros-cdk-core.IResolvable |
Attribute Role: The role of the service. |
attrRoleAttrs |
@alicloud/ros-cdk-core.IResolvable |
Attribute RoleAttrs: The additional attributes of the service role. |
attrRunningInstance |
@alicloud/ros-cdk-core.IResolvable |
Attribute RunningInstance: The number of instances for the running service. |
attrSafetyLock |
@alicloud/ros-cdk-core.IResolvable |
Attribute SafetyLock: The security lock of the service. |
attrServiceConfig |
@alicloud/ros-cdk-core.IResolvable |
Attribute ServiceConfig: The configurations of the service. |
attrServiceGroup |
@alicloud/ros-cdk-core.IResolvable |
Attribute ServiceGroup: The group to which the service belongs. |
attrServiceName |
@alicloud/ros-cdk-core.IResolvable |
Attribute ServiceName: The name of the service. |
attrServiceUid |
@alicloud/ros-cdk-core.IResolvable |
Attribute ServiceUid: The ID of the service. |
attrTotalInstance |
@alicloud/ros-cdk-core.IResolvable |
Attribute TotalInstance: The total number of instances of the service. |
attrUpdateTime |
@alicloud/ros-cdk-core.IResolvable |
Attribute UpdateTime: The time when the service was updated. |
attrWeight |
@alicloud/ros-cdk-core.IResolvable |
Attribute Weight: The weight of the canary release for the service. |
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: The request token of the service.
attrCallerUid
Required
public readonly attrCallerUid: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute CallerUid: The user ID of the account that is used to create the service.
attrCpu
Required
public readonly attrCpu: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Cpu: The CPU that you applied for each instance.
attrCreateTime
Required
public readonly attrCreateTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute CreateTime: The time when the service was created.
attrCurrentVersion
Required
public readonly attrCurrentVersion: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute CurrentVersion: The current version of the model.
attrExtraData
Required
public readonly attrExtraData: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ExtraData: The additional information about the service.
attrGpu
Required
public readonly attrGpu: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Gpu: The GPU that you applied for each instance.
attrImage
Required
public readonly attrImage: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Image: The data image of the service.
attrInternetEndpoint
Required
public readonly attrInternetEndpoint: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InternetEndpoint: The public endpoint of the service.
attrIntranetEndpoint
Required
public readonly attrIntranetEndpoint: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute IntranetEndpoint: The private endpoint of the service.
attrLabels
Required
public readonly attrLabels: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Labels: The tags of the service.
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: The memory that you applied for each instance.
attrMessage
Required
public readonly attrMessage: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Message: The summary of the service.
attrNamespace
Required
public readonly attrNamespace: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Namespace: The namespace of the service.
attrParentUid
Required
public readonly attrParentUid: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ParentUid: The user ID of the Alibaba Cloud account that is used to create the service.
attrPendingInstance
Required
public readonly attrPendingInstance: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PendingInstance: The number of instances for the suspended service.
attrReason
Required
public readonly attrReason: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Reason: The reason why the service is in the current state.
attrResource
Required
public readonly attrResource: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Resource: The resource group to which the service belongs.
attrResourceAlias
Required
public readonly attrResourceAlias: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ResourceAlias: The alias of the resource group to which the service belongs.
attrRole
Required
public readonly attrRole: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Role: The role of the service.
attrRoleAttrs
Required
public readonly attrRoleAttrs: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute RoleAttrs: The additional attributes of the service role.
attrRunningInstance
Required
public readonly attrRunningInstance: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute RunningInstance: The number of instances for the running service.
attrSafetyLock
Required
public readonly attrSafetyLock: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute SafetyLock: The security lock of the service.
attrServiceConfig
Required
public readonly attrServiceConfig: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ServiceConfig: The configurations of the service.
attrServiceGroup
Required
public readonly attrServiceGroup: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ServiceGroup: The group to which the service belongs.
attrServiceName
Required
public readonly attrServiceName: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ServiceName: The name of the service.
attrServiceUid
Required
public readonly attrServiceUid: IResolvable;
- Type: @alicloud/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 readonly attrTotalInstance: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute TotalInstance: The total number of instances of the service.
attrUpdateTime
Required
public readonly attrUpdateTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute UpdateTime: The time when the service was updated.
attrWeight
Required
public readonly attrWeight: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Weight: The weight of the canary release for the service.