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