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. |
Scope
Required
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct
Id
Required
- Type: string
Props
Required
- Type: ServiceProps
EnableResourcePropertyConstraint
Optional
- 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.
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession
The synthesis session.
AddCondition
private void AddCondition(RosCondition Condition)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition
AddCount
private void AddCount(object Count)
- Type: object
AddDependency
private void AddDependency(Resource Resource)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource
AddResourceDesc
private void AddResourceDesc(string Desc)
- Type: string
ApplyRemovalPolicy
private void ApplyRemovalPolicy(RemovalPolicy Policy)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy
GetAtt
private IResolvable GetAtt(string Name)
- Type: string
SetMetadata
private void SetMetadata(string Key, object Value)
- Type: string
- 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.
- 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. |
Node
Required
public ConstructNode Node { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode
The construct tree node associated with this construct.
Ref
Required
public string Ref { get; }
- Type: string
Stack
Required
public Stack Stack { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack
The stack in which this resource is defined.
Resource
Optional
public RosResource Resource { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource
AttrAccessToken
Required
public IResolvable AttrAccessToken { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute AccessToken: Service Request authentication token.
AttrCallerUid
Required
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.
AttrCpu
Required
public IResolvable AttrCpu { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Cpu: Number of service CPU cores.
AttrCreateTime
Required
public IResolvable AttrCreateTime { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute CreateTime: Creation time of the service.
AttrCurrentVersion
Required
public IResolvable AttrCurrentVersion { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute CurrentVersion: Current running version of the service.
AttrExtraData
Required
public IResolvable AttrExtraData { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ExtraData: Service Extra Information.
AttrGpu
Required
public IResolvable AttrGpu { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Gpu: Number of service GPU cards.
AttrImage
Required
public IResolvable AttrImage { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Image: Service Deployment Mirroring.
AttrInternetEndpoint
Required
public IResolvable AttrInternetEndpoint { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute InternetEndpoint: Public network Endpoint of the service.
AttrIntranetEndpoint
Required
public IResolvable AttrIntranetEndpoint { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute IntranetEndpoint: The intranet Endpoint of the service.
AttrLabels
Required
public IResolvable AttrLabels { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Labels: Service Tag.
AttrLatestVersion
Required
public IResolvable AttrLatestVersion { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute LatestVersion: The latest version of the service.
AttrMemory
Required
public IResolvable AttrMemory { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Memory: Memory of service (MB).
AttrMessage
Required
public IResolvable AttrMessage { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Message: Latest information on services.
AttrNamespace
Required
public IResolvable AttrNamespace { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Namespace: The namespace to which the service belongs.
AttrParentUid
Required
public IResolvable AttrParentUid { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ParentUid: Primary account ID of the creator.
AttrPendingInstance
Required
public IResolvable AttrPendingInstance { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PendingInstance: Number of instances where the service is not currently ready.
AttrReason
Required
public IResolvable AttrReason { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Reason: Service deployment failure reason.
AttrResource
Required
public IResolvable AttrResource { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Resource: The ID of the resource group to which the service belongs.
AttrResourceAlias
Required
public IResolvable AttrResourceAlias { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ResourceAlias: Name of the resource group where the service resides.
AttrRole
Required
public IResolvable AttrRole { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Role: Grouping Service Role.
AttrRoleAttrs
Required
public IResolvable AttrRoleAttrs { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute RoleAttrs: Grouping Service Role Properties.
AttrRunningInstance
Required
public IResolvable AttrRunningInstance { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute RunningInstance: Number of instances in service running.
AttrSafetyLock
Required
public IResolvable AttrSafetyLock { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute SafetyLock: Service Security Lock Status.
AttrServiceConfig
Required
public IResolvable AttrServiceConfig { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ServiceConfig: Service configuration information.
AttrServiceGroup
Required
public IResolvable AttrServiceGroup { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ServiceGroup: Group to which the service belongs.
AttrServiceName
Required
public IResolvable AttrServiceName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ServiceName: Service Name.
AttrServiceUid
Required
public IResolvable AttrServiceUid { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ServiceUid: Unique Service ID.
AttrTotalInstance
Required
public IResolvable AttrTotalInstance { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute TotalInstance: Total number of instances required by the service.
AttrUpdateTime
Required
public IResolvable AttrUpdateTime { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute UpdateTime: Service Last Updated.
AttrWeight
Required
public IResolvable AttrWeight { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Weight: Packet Service Traffic Weight.