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
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkpai/datasource"
datasource.NewService(scope Construct, id *string, props ServiceProps, enableResourcePropertyConstraint *bool) Service
Name | Type | Description |
---|---|---|
scope |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct |
No description. |
id |
*string |
No description. |
props |
ServiceProps |
No description. |
enableResourcePropertyConstraint |
*bool |
No description. |
scope
Required
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
func ToString() *string
Returns a string representation of this construct.
Synthesize
func Synthesize(session ISynthesisSession)
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: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession
The synthesis session.
AddCondition
func AddCondition(condition RosCondition)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition
AddCount
func AddCount(count interface{})
- Type: interface{}
AddDependency
func AddDependency(resource Resource)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource
AddResourceDesc
func AddResourceDesc(desc *string)
- Type: *string
ApplyRemovalPolicy
func ApplyRemovalPolicy(policy RemovalPolicy)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy
GetAtt
func GetAtt(name *string) IResolvable
- Type: *string
SetMetadata
func SetMetadata(key *string, value interface{})
- Type: *string
- Type: interface{}
Static Functions
Name | Description |
---|---|
IsConstruct |
Return whether the given object is a Construct. |
IsConstruct
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkpai/datasource"
datasource.Service_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode |
The construct tree node associated with this construct. |
Ref |
*string |
No description. |
Stack |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack |
The stack in which this resource is defined. |
Resource |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource |
No description. |
AttrAccessToken |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute AccessToken: The request token of the service. |
AttrCallerUid |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute CallerUid: The user ID of the account that is used to create the service. |
AttrCpu |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Cpu: The CPU that you applied for each instance. |
AttrCreateTime |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute CreateTime: The time when the service was created. |
AttrCurrentVersion |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute CurrentVersion: The current version of the model. |
AttrExtraData |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ExtraData: The additional information about the service. |
AttrGpu |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Gpu: The GPU that you applied for each instance. |
AttrImage |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Image: The data image of the service. |
AttrInternetEndpoint |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute InternetEndpoint: The public endpoint of the service. |
AttrIntranetEndpoint |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute IntranetEndpoint: The private endpoint of the service. |
AttrLabels |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Labels: The tags of the service. |
AttrLatestVersion |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute LatestVersion: The latest version of the service. |
AttrMemory |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Memory: The memory that you applied for each instance. |
AttrMessage |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Message: The summary of the service. |
AttrNamespace |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Namespace: The namespace of the service. |
AttrParentUid |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ParentUid: The user ID of the Alibaba Cloud account that is used to create the service. |
AttrPendingInstance |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute PendingInstance: The number of instances for the suspended service. |
AttrReason |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Reason: The reason why the service is in the current state. |
AttrResource |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Resource: The resource group to which the service belongs. |
AttrResourceAlias |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ResourceAlias: The alias of the resource group to which the service belongs. |
AttrRole |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Role: The role of the service. |
AttrRoleAttrs |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute RoleAttrs: The additional attributes of the service role. |
AttrRunningInstance |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute RunningInstance: The number of instances for the running service. |
AttrSafetyLock |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute SafetyLock: The security lock of the service. |
AttrServiceConfig |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ServiceConfig: The configurations of the service. |
AttrServiceGroup |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ServiceGroup: The group to which the service belongs. |
AttrServiceName |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ServiceName: The name of the service. |
AttrServiceUid |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ServiceUid: The ID of the service. |
AttrTotalInstance |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute TotalInstance: The total number of instances of the service. |
AttrUpdateTime |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute UpdateTime: The time when the service was updated. |
AttrWeight |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Weight: The weight of the canary release for the service. |
Node
Required
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
Ref
Required
func Ref() *string
- Type: *string
Stack
Required
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this resource is defined.
Resource
Optional
func Resource() RosResource
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource
AttrAccessToken
Required
func AttrAccessToken() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute AccessToken: The request token of the service.
AttrCallerUid
Required
func AttrCallerUid() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute CallerUid: The user ID of the account that is used to create the service.
AttrCpu
Required
func AttrCpu() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Cpu: The CPU that you applied for each instance.
AttrCreateTime
Required
func AttrCreateTime() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute CreateTime: The time when the service was created.
AttrCurrentVersion
Required
func AttrCurrentVersion() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute CurrentVersion: The current version of the model.
AttrExtraData
Required
func AttrExtraData() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ExtraData: The additional information about the service.
AttrGpu
Required
func AttrGpu() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Gpu: The GPU that you applied for each instance.
AttrImage
Required
func AttrImage() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Image: The data image of the service.
AttrInternetEndpoint
Required
func AttrInternetEndpoint() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute InternetEndpoint: The public endpoint of the service.
AttrIntranetEndpoint
Required
func AttrIntranetEndpoint() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute IntranetEndpoint: The private endpoint of the service.
AttrLabels
Required
func AttrLabels() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Labels: The tags of the service.
AttrLatestVersion
Required
func AttrLatestVersion() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute LatestVersion: The latest version of the service.
AttrMemory
Required
func AttrMemory() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Memory: The memory that you applied for each instance.
AttrMessage
Required
func AttrMessage() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Message: The summary of the service.
AttrNamespace
Required
func AttrNamespace() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Namespace: The namespace of the service.
AttrParentUid
Required
func AttrParentUid() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ParentUid: The user ID of the Alibaba Cloud account that is used to create the service.
AttrPendingInstance
Required
func AttrPendingInstance() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute PendingInstance: The number of instances for the suspended service.
AttrReason
Required
func AttrReason() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Reason: The reason why the service is in the current state.
AttrResource
Required
func AttrResource() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Resource: The resource group to which the service belongs.
AttrResourceAlias
Required
func AttrResourceAlias() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ResourceAlias: The alias of the resource group to which the service belongs.
AttrRole
Required
func AttrRole() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Role: The role of the service.
AttrRoleAttrs
Required
func AttrRoleAttrs() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute RoleAttrs: The additional attributes of the service role.
AttrRunningInstance
Required
func AttrRunningInstance() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute RunningInstance: The number of instances for the running service.
AttrSafetyLock
Required
func AttrSafetyLock() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute SafetyLock: The security lock of the service.
AttrServiceConfig
Required
func AttrServiceConfig() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ServiceConfig: The configurations of the service.
AttrServiceGroup
Required
func AttrServiceGroup() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ServiceGroup: The group to which the service belongs.
AttrServiceName
Required
func AttrServiceName() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ServiceName: The name of the service.
AttrServiceUid
Required
func AttrServiceUid() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ServiceUid: The ID of the service.
The value of this property is the same as the value of ServiceId.
AttrTotalInstance
Required
func AttrTotalInstance() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute TotalInstance: The total number of instances of the service.
AttrUpdateTime
Required
func AttrUpdateTime() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute UpdateTime: The time when the service was updated.
AttrWeight
Required
func AttrWeight() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Weight: The weight of the canary release for the service.