Skip to content

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

using AlibabaCloud.SDK.ROS.CDK.Pai;
new Service(Construct Scope, string Id, ServiceProps Props, bool EnableResourcePropertyConstraint = null);
Name Type Description
Scope AlibabaCloud.SDK.ROS.CDK.Core.Construct No description.
Id string No description.
Props ServiceProps No description.
EnableResourcePropertyConstraint bool No description.

ScopeRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct

IdRequired

  • Type: string

PropsRequired


EnableResourcePropertyConstraintOptional

  • Type: bool

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

private string ToString()

Returns a string representation of this construct.

Synthesize

private 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.

SessionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession

The synthesis session.


AddCondition

private void AddCondition(RosCondition Condition)

ConditionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition

AddCount

private void AddCount(object Count)

CountRequired

  • Type: object

AddDependency

private void AddDependency(Resource Resource)

ResourceRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource

AddResourceDesc

private void AddResourceDesc(string Desc)

DescRequired

  • Type: string

ApplyRemovalPolicy

private void ApplyRemovalPolicy(RemovalPolicy Policy)

PolicyRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy

GetAtt

private IResolvable GetAtt(string Name)

NameRequired

  • Type: string

SetMetadata

private void SetMetadata(string Key, object Value)

KeyRequired

  • Type: string

ValueRequired

  • Type: object

Static Functions

Name Description
IsConstruct Return whether the given object is a Construct.

IsConstruct

using AlibabaCloud.SDK.ROS.CDK.Pai;
Service.IsConstruct(object X);

Return whether the given object is a Construct.

XRequired

  • Type: object

Properties

Name Type Description
Node AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode The construct tree node associated with this construct.
Ref string No description.
Stack AlibabaCloud.SDK.ROS.CDK.Core.Stack The stack in which this resource is defined.
Resource AlibabaCloud.SDK.ROS.CDK.Core.RosResource No description.
AttrAccessToken AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute AccessToken: Service Request authentication token.
AttrCallerUid AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute CallerUid: The ID of the service creator, which can be the ID of the RAM account.
AttrCpu AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Cpu: Number of service CPU cores.
AttrCreateTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute CreateTime: Creation time of the service.
AttrCurrentVersion AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute CurrentVersion: Current running version of the service.
AttrExtraData AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ExtraData: Service Extra Information.
AttrGpu AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Gpu: Number of service GPU cards.
AttrImage AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Image: Service Deployment Mirroring.
AttrInternetEndpoint AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute InternetEndpoint: Public network Endpoint of the service.
AttrIntranetEndpoint AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute IntranetEndpoint: The intranet Endpoint of the service.
AttrLabels AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Labels: Service Tag.
AttrLatestVersion AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute LatestVersion: The latest version of the service.
AttrMemory AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Memory: Memory of service (MB).
AttrMessage AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Message: Latest information on services.
AttrNamespace AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Namespace: The namespace to which the service belongs.
AttrParentUid AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ParentUid: Primary account ID of the creator.
AttrPendingInstance AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute PendingInstance: Number of instances where the service is not currently ready.
AttrReason AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Reason: Service deployment failure reason.
AttrResource AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Resource: The ID of the resource group to which the service belongs.
AttrResourceAlias AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ResourceAlias: Name of the resource group where the service resides.
AttrRole AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Role: Grouping Service Role.
AttrRoleAttrs AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute RoleAttrs: Grouping Service Role Properties.
AttrRunningInstance AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute RunningInstance: Number of instances in service running.
AttrSafetyLock AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute SafetyLock: Service Security Lock Status.
AttrServiceConfig AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ServiceConfig: Service configuration information.
AttrServiceGroup AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ServiceGroup: Group to which the service belongs.
AttrServiceName AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ServiceName: Service Name.
AttrServiceUid AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ServiceUid: Unique Service ID.
AttrTotalInstance AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute TotalInstance: Total number of instances required by the service.
AttrUpdateTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute UpdateTime: Service Last Updated.
AttrWeight AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Weight: Packet Service Traffic Weight.

NodeRequired

public ConstructNode Node { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode

The construct tree node associated with this construct.


RefRequired

public string Ref { get; }
  • Type: string

StackRequired

public Stack Stack { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack

The stack in which this resource is defined.


ResourceOptional

public RosResource Resource { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource

AttrAccessTokenRequired

public IResolvable AttrAccessToken { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute AccessToken: Service Request authentication token.


AttrCallerUidRequired

public IResolvable AttrCallerUid { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute CallerUid: The ID of the service creator, which can be the ID of the RAM account.


AttrCpuRequired

public IResolvable AttrCpu { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Cpu: Number of service CPU cores.


AttrCreateTimeRequired

public IResolvable AttrCreateTime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute CreateTime: Creation time of the service.


AttrCurrentVersionRequired

public IResolvable AttrCurrentVersion { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute CurrentVersion: Current running version of the service.


AttrExtraDataRequired

public IResolvable AttrExtraData { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ExtraData: Service Extra Information.


AttrGpuRequired

public IResolvable AttrGpu { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Gpu: Number of service GPU cards.


AttrImageRequired

public IResolvable AttrImage { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Image: Service Deployment Mirroring.


AttrInternetEndpointRequired

public IResolvable AttrInternetEndpoint { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute InternetEndpoint: Public network Endpoint of the service.


AttrIntranetEndpointRequired

public IResolvable AttrIntranetEndpoint { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute IntranetEndpoint: The intranet Endpoint of the service.


AttrLabelsRequired

public IResolvable AttrLabels { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Labels: Service Tag.


AttrLatestVersionRequired

public IResolvable AttrLatestVersion { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute LatestVersion: The latest version of the service.


AttrMemoryRequired

public IResolvable AttrMemory { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Memory: Memory of service (MB).


AttrMessageRequired

public IResolvable AttrMessage { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Message: Latest information on services.


AttrNamespaceRequired

public IResolvable AttrNamespace { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Namespace: The namespace to which the service belongs.


AttrParentUidRequired

public IResolvable AttrParentUid { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ParentUid: Primary account ID of the creator.


AttrPendingInstanceRequired

public IResolvable AttrPendingInstance { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute PendingInstance: Number of instances where the service is not currently ready.


AttrReasonRequired

public IResolvable AttrReason { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Reason: Service deployment failure reason.


AttrResourceRequired

public IResolvable AttrResource { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

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


AttrResourceAliasRequired

public IResolvable AttrResourceAlias { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ResourceAlias: Name of the resource group where the service resides.


AttrRoleRequired

public IResolvable AttrRole { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Role: Grouping Service Role.


AttrRoleAttrsRequired

public IResolvable AttrRoleAttrs { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute RoleAttrs: Grouping Service Role Properties.


AttrRunningInstanceRequired

public IResolvable AttrRunningInstance { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute RunningInstance: Number of instances in service running.


AttrSafetyLockRequired

public IResolvable AttrSafetyLock { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute SafetyLock: Service Security Lock Status.


AttrServiceConfigRequired

public IResolvable AttrServiceConfig { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ServiceConfig: Service configuration information.


AttrServiceGroupRequired

public IResolvable AttrServiceGroup { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ServiceGroup: Group to which the service belongs.


AttrServiceNameRequired

public IResolvable AttrServiceName { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ServiceName: Service Name.


AttrServiceUidRequired

public IResolvable AttrServiceUid { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ServiceUid: Unique Service ID.


AttrTotalInstanceRequired

public IResolvable AttrTotalInstance { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute TotalInstance: Total number of instances required by the service.


AttrUpdateTimeRequired

public IResolvable AttrUpdateTime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute UpdateTime: Service Last Updated.


AttrWeightRequired

public IResolvable AttrWeight { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Weight: Packet Service Traffic Weight.