Service
- Implements: IService
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
- Type: ServiceProps
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.
- 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
FetchCondition
private RosCondition FetchCondition()
FetchDependency
private string[] FetchDependency()
FetchResourceDesc
private string FetchResourceDesc()
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. |
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: Service Request authentication token. |
AttrCallerUid | object | Attribute CallerUid: The ID of the service creator, which can be the ID of the RAM account. |
AttrCpu | object | Attribute Cpu: Number of service CPU cores. |
AttrCreateTime | object | Attribute CreateTime: Creation time of the service. |
AttrCurrentVersion | object | Attribute CurrentVersion: Current running version of the service. |
AttrExtraData | object | Attribute ExtraData: Service Extra Information. |
AttrGpu | object | Attribute Gpu: Number of service GPU cards. |
AttrImage | object | Attribute Image: Service Deployment Mirroring. |
AttrInternetEndpoint | object | Attribute InternetEndpoint: Public network Endpoint of the service. |
AttrIntranetEndpoint | object | Attribute IntranetEndpoint: The intranet Endpoint of the service. |
AttrLabels | object | Attribute Labels: Service Tag. |
AttrLatestVersion | object | Attribute LatestVersion: The latest version of the service. |
AttrMemory | object | Attribute Memory: Memory of service (MB). |
AttrMessage | object | Attribute Message: Latest information on services. |
AttrNamespace | object | Attribute Namespace: The namespace to which the service belongs. |
AttrParentUid | object | Attribute ParentUid: Primary account ID of the creator. |
AttrPendingInstance | object | Attribute PendingInstance: Number of instances where the service is not currently ready. |
AttrReason | object | Attribute Reason: Service deployment failure reason. |
AttrResource | object | Attribute Resource: The ID of the resource group to which the service belongs. |
AttrResourceAlias | object | Attribute ResourceAlias: Name of the resource group where the service resides. |
AttrRole | object | Attribute Role: Grouping Service Role. |
AttrRoleAttrs | object | Attribute RoleAttrs: Grouping Service Role Properties. |
AttrRunningInstance | object | Attribute RunningInstance: Number of instances in service running. |
AttrSafetyLock | object | Attribute SafetyLock: Service Security Lock Status. |
AttrServiceConfig | object | Attribute ServiceConfig: Service configuration information. |
AttrServiceGroup | object | Attribute ServiceGroup: Group to which the service belongs. |
AttrServiceName | object | Attribute ServiceName: Service Name. |
AttrServiceUid | object | Attribute ServiceUid: Unique Service ID. |
AttrTotalInstance | object | Attribute TotalInstance: Total number of instances required by the service. |
AttrUpdateTime | object | Attribute UpdateTime: Service Last Updated. |
AttrWeight | object | Attribute Weight: Packet Service Traffic Weight. |
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: Service Request authentication token.
AttrCallerUidRequired
public object AttrCallerUid { get; }
- Type: object
Attribute CallerUid: The ID of the service creator, which can be the ID of the RAM account.
AttrCpuRequired
public object AttrCpu { get; }
- Type: object
Attribute Cpu: Number of service CPU cores.
AttrCreateTimeRequired
public object AttrCreateTime { get; }
- Type: object
Attribute CreateTime: Creation time of the service.
AttrCurrentVersionRequired
public object AttrCurrentVersion { get; }
- Type: object
Attribute CurrentVersion: Current running version of the service.
AttrExtraDataRequired
public object AttrExtraData { get; }
- Type: object
Attribute ExtraData: Service Extra Information.
AttrGpuRequired
public object AttrGpu { get; }
- Type: object
Attribute Gpu: Number of service GPU cards.
AttrImageRequired
public object AttrImage { get; }
- Type: object
Attribute Image: Service Deployment Mirroring.
AttrInternetEndpointRequired
public object AttrInternetEndpoint { get; }
- Type: object
Attribute InternetEndpoint: Public network Endpoint of the service.
AttrIntranetEndpointRequired
public object AttrIntranetEndpoint { get; }
- Type: object
Attribute IntranetEndpoint: The intranet Endpoint of the service.
AttrLabelsRequired
public object AttrLabels { get; }
- Type: object
Attribute Labels: Service Tag.
AttrLatestVersionRequired
public object AttrLatestVersion { get; }
- Type: object
Attribute LatestVersion: The latest version of the service.
AttrMemoryRequired
public object AttrMemory { get; }
- Type: object
Attribute Memory: Memory of service (MB).
AttrMessageRequired
public object AttrMessage { get; }
- Type: object
Attribute Message: Latest information on services.
AttrNamespaceRequired
public object AttrNamespace { get; }
- Type: object
Attribute Namespace: The namespace to which the service belongs.
AttrParentUidRequired
public object AttrParentUid { get; }
- Type: object
Attribute ParentUid: Primary account ID of the creator.
AttrPendingInstanceRequired
public object AttrPendingInstance { get; }
- Type: object
Attribute PendingInstance: Number of instances where the service is not currently ready.
AttrReasonRequired
public object AttrReason { get; }
- Type: object
Attribute Reason: Service deployment failure reason.
AttrResourceRequired
public object AttrResource { get; }
- Type: object
Attribute Resource: The ID of the resource group to which the service belongs.
AttrResourceAliasRequired
public object AttrResourceAlias { get; }
- Type: object
Attribute ResourceAlias: Name of the resource group where the service resides.
AttrRoleRequired
public object AttrRole { get; }
- Type: object
Attribute Role: Grouping Service Role.
AttrRoleAttrsRequired
public object AttrRoleAttrs { get; }
- Type: object
Attribute RoleAttrs: Grouping Service Role Properties.
AttrRunningInstanceRequired
public object AttrRunningInstance { get; }
- Type: object
Attribute RunningInstance: Number of instances in service running.
AttrSafetyLockRequired
public object AttrSafetyLock { get; }
- Type: object
Attribute SafetyLock: Service Security Lock Status.
AttrServiceConfigRequired
public object AttrServiceConfig { get; }
- Type: object
Attribute ServiceConfig: Service configuration information.
AttrServiceGroupRequired
public object AttrServiceGroup { get; }
- Type: object
Attribute ServiceGroup: Group to which the service belongs.
AttrServiceNameRequired
public object AttrServiceName { get; }
- Type: object
Attribute ServiceName: Service Name.
AttrServiceUidRequired
public object AttrServiceUid { get; }
- Type: object
Attribute ServiceUid: Unique Service ID.
AttrTotalInstanceRequired
public object AttrTotalInstance { get; }
- Type: object
Attribute TotalInstance: Total number of instances required by the service.
AttrUpdateTimeRequired
public object AttrUpdateTime { get; }
- Type: object
Attribute UpdateTime: Service Last Updated.
AttrWeightRequired
public object AttrWeight { get; }
- Type: object
Attribute Weight: Packet Service Traffic Weight.
PropsRequired
public ServiceProps Props { get; }
- Type: ServiceProps