Skip to content

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.

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 { datasource } from '@alicloud/ros-cdk-pai'
datasource.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: 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.

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: The request token of the service.


attrCallerUidRequired

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.


attrCpuRequired

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

Attribute Cpu: The CPU that you applied for each instance.


attrCreateTimeRequired

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

Attribute CreateTime: The time when the service was created.


attrCurrentVersionRequired

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

Attribute CurrentVersion: The current version of the model.


attrExtraDataRequired

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

Attribute ExtraData: The additional information about the service.


attrGpuRequired

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

Attribute Gpu: The GPU that you applied for each instance.


attrImageRequired

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

Attribute Image: The data image of the service.


attrInternetEndpointRequired

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

Attribute InternetEndpoint: The public endpoint of the service.


attrIntranetEndpointRequired

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

Attribute IntranetEndpoint: The private endpoint of the service.


attrLabelsRequired

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

Attribute Labels: The tags of the service.


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: The memory that you applied for each instance.


attrMessageRequired

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

Attribute Message: The summary of the service.


attrNamespaceRequired

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

Attribute Namespace: The namespace of the service.


attrParentUidRequired

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.


attrPendingInstanceRequired

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

Attribute PendingInstance: The number of instances for the suspended service.


attrReasonRequired

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

Attribute Reason: The reason why the service is in the current state.


attrResourceRequired

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

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


attrResourceAliasRequired

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

Attribute ResourceAlias: The alias of the resource group to which the service belongs.


attrRoleRequired

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

Attribute Role: The role of the service.


attrRoleAttrsRequired

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

Attribute RoleAttrs: The additional attributes of the service role.


attrRunningInstanceRequired

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

Attribute RunningInstance: The number of instances for the running service.


attrSafetyLockRequired

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

Attribute SafetyLock: The security lock of the service.


attrServiceConfigRequired

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

Attribute ServiceConfig: The configurations of the service.


attrServiceGroupRequired

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

Attribute ServiceGroup: The group to which the service belongs.


attrServiceNameRequired

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

Attribute ServiceName: The name of the service.


attrServiceUidRequired

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.


attrTotalInstanceRequired

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

Attribute TotalInstance: The total number of instances of the service.


attrUpdateTimeRequired

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

Attribute UpdateTime: The time when the service was updated.


attrWeightRequired

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

Attribute Weight: The weight of the canary release for the service.