Skip to content

Service

  • Implements: @alicloud/ros-cdk-pai.datasource.IService

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.
fetchCondition No description.
fetchDependency No description.
fetchResourceDesc 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

fetchCondition

public fetchCondition(): RosCondition

fetchDependency

public fetchDependency(): string[]

fetchResourceDesc

public fetchResourceDesc(): string

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

nodeRequired

public readonly node: ConstructNode;
  • Type: @alicloud/ros-cdk-core.ConstructNode

The construct tree node associated with this construct.


envRequired

public readonly env: IResourceEnvironment;
  • Type: @alicloud/ros-cdk-core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


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: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute AccessToken: The request token of the service.


attrCallerUidRequired

public readonly attrCallerUid: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute CallerUid: The user ID of the account that is used to create the service.


attrCpuRequired

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

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


attrCreateTimeRequired

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

Attribute CreateTime: The time when the service was created.


attrCurrentVersionRequired

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

Attribute CurrentVersion: The current version of the model.


attrExtraDataRequired

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

Attribute ExtraData: The additional information about the service.


attrGpuRequired

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

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


attrImageRequired

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

Attribute Image: The data image of the service.


attrInternetEndpointRequired

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

Attribute InternetEndpoint: The public endpoint of the service.


attrIntranetEndpointRequired

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

Attribute IntranetEndpoint: The private endpoint of the service.


attrLabelsRequired

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

Attribute Labels: The tags of the service.


attrLatestVersionRequired

public readonly attrLatestVersion: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute LatestVersion: The latest version of the service.


attrMemoryRequired

public readonly attrMemory: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute Memory: The memory that you applied for each instance.


attrMessageRequired

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

Attribute Message: The summary of the service.


attrNamespaceRequired

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

Attribute Namespace: The namespace of the service.


attrParentUidRequired

public readonly attrParentUid: string | IResolvable;
  • Type: string | @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: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


attrReasonRequired

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

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


attrResourceRequired

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

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


attrResourceAliasRequired

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

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


attrRoleRequired

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

Attribute Role: The role of the service.


attrRoleAttrsRequired

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

Attribute RoleAttrs: The additional attributes of the service role.


attrRunningInstanceRequired

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

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


attrSafetyLockRequired

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

Attribute SafetyLock: The security lock of the service.


attrServiceConfigRequired

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

Attribute ServiceConfig: The configurations of the service.


attrServiceGroupRequired

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

Attribute ServiceGroup: The group to which the service belongs.


attrServiceNameRequired

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

Attribute ServiceName: The name of the service.


attrServiceUidRequired

public readonly attrServiceUid: string | IResolvable;
  • Type: string | @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: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


attrUpdateTimeRequired

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

Attribute UpdateTime: The time when the service was updated.


attrWeightRequired

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

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


propsRequired

public readonly props: ServiceProps;