Skip to content

Service

This class encapsulates and extends the ROS resource type DATASOURCE::PAI::Service, which is used to query the information about a service in Elastic Algorithm Service (EAS).

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: The request token of the service.
AttrCallerUid AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute CallerUid: The user ID of the account that is used to create the service.
AttrCpu AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Cpu: The CPU that you applied for each instance.
AttrCreateTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute CreateTime: The time when the service was created.
AttrCurrentVersion AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute CurrentVersion: The current version of the model.
AttrExtraData AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ExtraData: The additional information about the service.
AttrGpu AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Gpu: The GPU that you applied for each instance.
AttrImage AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Image: The data image of the service.
AttrInternetEndpoint AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute InternetEndpoint: The public endpoint of the service.
AttrIntranetEndpoint AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute IntranetEndpoint: The private endpoint of the service.
AttrLabels AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Labels: The tags of the service.
AttrLatestVersion AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute LatestVersion: The latest version of the service.
AttrMemory AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Memory: The memory that you applied for each instance.
AttrMessage AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Message: The summary of the service.
AttrNamespace AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Namespace: The namespace of the service.
AttrParentUid AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ParentUid: The user ID of the Alibaba Cloud account that is used to create the service.
AttrPendingInstance AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute PendingInstance: The number of instances for the suspended service.
AttrReason AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Reason: The reason why the service is in the current state.
AttrResource AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Resource: The resource group to which the service belongs.
AttrResourceAlias AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ResourceAlias: The alias of the resource group to which the service belongs.
AttrRole AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Role: The role of the service.
AttrRoleAttrs AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute RoleAttrs: The additional attributes of the service role.
AttrRunningInstance AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute RunningInstance: The number of instances for the running service.
AttrSafetyLock AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute SafetyLock: The security lock of the service.
AttrServiceConfig AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ServiceConfig: The configurations of the service.
AttrServiceGroup AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ServiceGroup: The group to which the service belongs.
AttrServiceName AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ServiceName: The name of the service.
AttrServiceUid AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute ServiceUid: The ID of the service.
AttrTotalInstance AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute TotalInstance: The total number of instances of the service.
AttrUpdateTime AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute UpdateTime: The time when the service was updated.
AttrWeight AlibabaCloud.SDK.ROS.CDK.Core.IResolvable Attribute Weight: The weight of the canary release for the service.

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


AttrCallerUidRequired

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

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


AttrCpuRequired

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

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


AttrCreateTimeRequired

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

Attribute CreateTime: The time when the service was created.


AttrCurrentVersionRequired

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

Attribute CurrentVersion: The current version of the model.


AttrExtraDataRequired

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

Attribute ExtraData: The additional information about the service.


AttrGpuRequired

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

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


AttrImageRequired

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

Attribute Image: The data image of the service.


AttrInternetEndpointRequired

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

Attribute InternetEndpoint: The public endpoint of the service.


AttrIntranetEndpointRequired

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

Attribute IntranetEndpoint: The private endpoint of the service.


AttrLabelsRequired

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

Attribute Labels: The tags of the service.


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


AttrMessageRequired

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

Attribute Message: The summary of the service.


AttrNamespaceRequired

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

Attribute Namespace: The namespace of the service.


AttrParentUidRequired

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

Attribute ParentUid: The user ID of the Alibaba Cloud account that is used to create the service.


AttrPendingInstanceRequired

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

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


AttrReasonRequired

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

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


AttrResourceRequired

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

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


AttrResourceAliasRequired

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

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


AttrRoleRequired

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

Attribute Role: The role of the service.


AttrRoleAttrsRequired

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

Attribute RoleAttrs: The additional attributes of the service role.


AttrRunningInstanceRequired

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

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


AttrSafetyLockRequired

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

Attribute SafetyLock: The security lock of the service.


AttrServiceConfigRequired

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

Attribute ServiceConfig: The configurations of the service.


AttrServiceGroupRequired

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

Attribute ServiceGroup: The group to which the service belongs.


AttrServiceNameRequired

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

Attribute ServiceName: The name of the service.


AttrServiceUidRequired

public IResolvable AttrServiceUid { get; }
  • Type: AlibabaCloud.SDK.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 IResolvable AttrTotalInstance { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

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


AttrUpdateTimeRequired

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

Attribute UpdateTime: The time when the service was updated.


AttrWeightRequired

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

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