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. |
scopeRequired
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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. |
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. |
NodeRequired
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
RefRequired
func Ref() *string
- Type: *string
StackRequired
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this resource is defined.
ResourceOptional
func Resource() RosResource
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource
AttrAccessTokenRequired
func AttrAccessToken() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute AccessToken: The request token of the service.
AttrCallerUidRequired
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.
AttrCpuRequired
func AttrCpu() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Cpu: The CPU that you applied for each instance.
AttrCreateTimeRequired
func AttrCreateTime() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute CreateTime: The time when the service was created.
AttrCurrentVersionRequired
func AttrCurrentVersion() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute CurrentVersion: The current version of the model.
AttrExtraDataRequired
func AttrExtraData() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ExtraData: The additional information about the service.
AttrGpuRequired
func AttrGpu() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Gpu: The GPU that you applied for each instance.
AttrImageRequired
func AttrImage() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Image: The data image of the service.
AttrInternetEndpointRequired
func AttrInternetEndpoint() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute InternetEndpoint: The public endpoint of the service.
AttrIntranetEndpointRequired
func AttrIntranetEndpoint() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute IntranetEndpoint: The private endpoint of the service.
AttrLabelsRequired
func AttrLabels() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Labels: The tags of the service.
AttrLatestVersionRequired
func AttrLatestVersion() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute LatestVersion: The latest version of the service.
AttrMemoryRequired
func AttrMemory() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Memory: The memory that you applied for each instance.
AttrMessageRequired
func AttrMessage() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Message: The summary of the service.
AttrNamespaceRequired
func AttrNamespace() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Namespace: The namespace of the service.
AttrParentUidRequired
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.
AttrPendingInstanceRequired
func AttrPendingInstance() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute PendingInstance: The number of instances for the suspended service.
AttrReasonRequired
func AttrReason() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Reason: The reason why the service is in the current state.
AttrResourceRequired
func AttrResource() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Resource: The resource group to which the service belongs.
AttrResourceAliasRequired
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.
AttrRoleRequired
func AttrRole() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Role: The role of the service.
AttrRoleAttrsRequired
func AttrRoleAttrs() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute RoleAttrs: The additional attributes of the service role.
AttrRunningInstanceRequired
func AttrRunningInstance() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute RunningInstance: The number of instances for the running service.
AttrSafetyLockRequired
func AttrSafetyLock() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute SafetyLock: The security lock of the service.
AttrServiceConfigRequired
func AttrServiceConfig() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ServiceConfig: The configurations of the service.
AttrServiceGroupRequired
func AttrServiceGroup() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ServiceGroup: The group to which the service belongs.
AttrServiceNameRequired
func AttrServiceName() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ServiceName: The name of the service.
AttrServiceUidRequired
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.
AttrTotalInstanceRequired
func AttrTotalInstance() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute TotalInstance: The total number of instances of the service.
AttrUpdateTimeRequired
func AttrUpdateTime() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute UpdateTime: The time when the service was updated.
AttrWeightRequired
func AttrWeight() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Weight: The weight of the canary release for the service.