Skip to content

Service

  • Implements: AlibabaCloud.SDK.ROS.CDK.Pai.datasource.IService

This class encapsulates and extends the ROS resource type DATASOURCE::PAI::Service.

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.
FetchCondition No description.
FetchDependency No description.
FetchResourceDesc 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

FetchCondition

private RosCondition FetchCondition()

FetchDependency

private string[] FetchDependency()

FetchResourceDesc

private string FetchResourceDesc()

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

NodeRequired

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

The construct tree node associated with this construct.


EnvRequired

public IResourceEnvironment Env { get; }
  • Type: AlibabaCloud.SDK.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 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 object AttrAccessToken { get; }
  • Type: object

Attribute AccessToken: The request token of the service.


AttrCallerUidRequired

public object AttrCallerUid { get; }
  • Type: object

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


AttrCpuRequired

public object AttrCpu { get; }
  • Type: object

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


AttrCreateTimeRequired

public object AttrCreateTime { get; }
  • Type: object

Attribute CreateTime: The time when the service was created.


AttrCurrentVersionRequired

public object AttrCurrentVersion { get; }
  • Type: object

Attribute CurrentVersion: The current version of the model.


AttrExtraDataRequired

public object AttrExtraData { get; }
  • Type: object

Attribute ExtraData: The additional information about the service.


AttrGpuRequired

public object AttrGpu { get; }
  • Type: object

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


AttrImageRequired

public object AttrImage { get; }
  • Type: object

Attribute Image: The data image of the service.


AttrInternetEndpointRequired

public object AttrInternetEndpoint { get; }
  • Type: object

Attribute InternetEndpoint: The public endpoint of the service.


AttrIntranetEndpointRequired

public object AttrIntranetEndpoint { get; }
  • Type: object

Attribute IntranetEndpoint: The private endpoint of the service.


AttrLabelsRequired

public object AttrLabels { get; }
  • Type: object

Attribute Labels: The tags of the service.


AttrLatestVersionRequired

public object AttrLatestVersion { get; }
  • Type: object

Attribute LatestVersion: The latest version of the service.


AttrMemoryRequired

public object AttrMemory { get; }
  • Type: object

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


AttrMessageRequired

public object AttrMessage { get; }
  • Type: object

Attribute Message: The summary of the service.


AttrNamespaceRequired

public object AttrNamespace { get; }
  • Type: object

Attribute Namespace: The namespace of the service.


AttrParentUidRequired

public object AttrParentUid { get; }
  • Type: object

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


AttrPendingInstanceRequired

public object AttrPendingInstance { get; }
  • Type: object

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


AttrReasonRequired

public object AttrReason { get; }
  • Type: object

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


AttrResourceRequired

public object AttrResource { get; }
  • Type: object

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


AttrResourceAliasRequired

public object AttrResourceAlias { get; }
  • Type: object

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


AttrRoleRequired

public object AttrRole { get; }
  • Type: object

Attribute Role: The role of the service.


AttrRoleAttrsRequired

public object AttrRoleAttrs { get; }
  • Type: object

Attribute RoleAttrs: The additional attributes of the service role.


AttrRunningInstanceRequired

public object AttrRunningInstance { get; }
  • Type: object

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


AttrSafetyLockRequired

public object AttrSafetyLock { get; }
  • Type: object

Attribute SafetyLock: The security lock of the service.


AttrServiceConfigRequired

public object AttrServiceConfig { get; }
  • Type: object

Attribute ServiceConfig: The configurations of the service.


AttrServiceGroupRequired

public object AttrServiceGroup { get; }
  • Type: object

Attribute ServiceGroup: The group to which the service belongs.


AttrServiceNameRequired

public object AttrServiceName { get; }
  • Type: object

Attribute ServiceName: The name of the service.


AttrServiceUidRequired

public object AttrServiceUid { get; }
  • Type: object

Attribute ServiceUid: The ID of the service.

The value of this property is the same as the value of ServiceId.


AttrTotalInstanceRequired

public object AttrTotalInstance { get; }
  • Type: object

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


AttrUpdateTimeRequired

public object AttrUpdateTime { get; }
  • Type: object

Attribute UpdateTime: The time when the service was updated.


AttrWeightRequired

public object AttrWeight { get; }
  • Type: object

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


PropsRequired

public ServiceProps Props { get; }