Service
- Implements: github.com/alibabacloud-go/ros-cdk/alicloudroscdkpai.datasource.IService
This class encapsulates and extends the ROS resource type DATASOURCE::PAI::Service.
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. |
FetchCondition | No description. |
FetchDependency | No description. |
FetchResourceDesc | 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
FetchCondition
func FetchCondition() RosCondition
FetchDependency
func FetchDependency() *[]*string
FetchResourceDesc
func FetchResourceDesc() *string
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. |
Env | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment | The environment this resource belongs to. |
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 | interface{} | Attribute AccessToken: The request token of the service. |
AttrCallerUid | interface{} | Attribute CallerUid: The user ID of the account that is used to create the service. |
AttrCpu | interface{} | Attribute Cpu: The CPU that you applied for each instance. |
AttrCreateTime | interface{} | Attribute CreateTime: The time when the service was created. |
AttrCurrentVersion | interface{} | Attribute CurrentVersion: The current version of the model. |
AttrExtraData | interface{} | Attribute ExtraData: The additional information about the service. |
AttrGpu | interface{} | Attribute Gpu: The GPU that you applied for each instance. |
AttrImage | interface{} | Attribute Image: The data image of the service. |
AttrInternetEndpoint | interface{} | Attribute InternetEndpoint: The public endpoint of the service. |
AttrIntranetEndpoint | interface{} | Attribute IntranetEndpoint: The private endpoint of the service. |
AttrLabels | interface{} | Attribute Labels: The tags of the service. |
AttrLatestVersion | interface{} | Attribute LatestVersion: The latest version of the service. |
AttrMemory | interface{} | Attribute Memory: The memory that you applied for each instance. |
AttrMessage | interface{} | Attribute Message: The summary of the service. |
AttrNamespace | interface{} | Attribute Namespace: The namespace of the service. |
AttrParentUid | interface{} | Attribute ParentUid: The user ID of the Alibaba Cloud account that is used to create the service. |
AttrPendingInstance | interface{} | Attribute PendingInstance: The number of instances for the suspended service. |
AttrReason | interface{} | Attribute Reason: The reason why the service is in the current state. |
AttrResource | interface{} | Attribute Resource: The resource group to which the service belongs. |
AttrResourceAlias | interface{} | Attribute ResourceAlias: The alias of the resource group to which the service belongs. |
AttrRole | interface{} | Attribute Role: The role of the service. |
AttrRoleAttrs | interface{} | Attribute RoleAttrs: The additional attributes of the service role. |
AttrRunningInstance | interface{} | Attribute RunningInstance: The number of instances for the running service. |
AttrSafetyLock | interface{} | Attribute SafetyLock: The security lock of the service. |
AttrServiceConfig | interface{} | Attribute ServiceConfig: The configurations of the service. |
AttrServiceGroup | interface{} | Attribute ServiceGroup: The group to which the service belongs. |
AttrServiceName | interface{} | Attribute ServiceName: The name of the service. |
AttrServiceUid | interface{} | Attribute ServiceUid: The ID of the service. |
AttrTotalInstance | interface{} | Attribute TotalInstance: The total number of instances of the service. |
AttrUpdateTime | interface{} | Attribute UpdateTime: The time when the service was updated. |
AttrWeight | interface{} | Attribute Weight: The weight of the canary release for the service. |
Props | ServiceProps | No description. |
NodeRequired
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
EnvRequired
func Env() IResourceEnvironment
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
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() interface{}
- Type: interface{}
Attribute AccessToken: The request token of the service.
AttrCallerUidRequired
func AttrCallerUid() interface{}
- Type: interface{}
Attribute CallerUid: The user ID of the account that is used to create the service.
AttrCpuRequired
func AttrCpu() interface{}
- Type: interface{}
Attribute Cpu: The CPU that you applied for each instance.
AttrCreateTimeRequired
func AttrCreateTime() interface{}
- Type: interface{}
Attribute CreateTime: The time when the service was created.
AttrCurrentVersionRequired
func AttrCurrentVersion() interface{}
- Type: interface{}
Attribute CurrentVersion: The current version of the model.
AttrExtraDataRequired
func AttrExtraData() interface{}
- Type: interface{}
Attribute ExtraData: The additional information about the service.
AttrGpuRequired
func AttrGpu() interface{}
- Type: interface{}
Attribute Gpu: The GPU that you applied for each instance.
AttrImageRequired
func AttrImage() interface{}
- Type: interface{}
Attribute Image: The data image of the service.
AttrInternetEndpointRequired
func AttrInternetEndpoint() interface{}
- Type: interface{}
Attribute InternetEndpoint: The public endpoint of the service.
AttrIntranetEndpointRequired
func AttrIntranetEndpoint() interface{}
- Type: interface{}
Attribute IntranetEndpoint: The private endpoint of the service.
AttrLabelsRequired
func AttrLabels() interface{}
- Type: interface{}
Attribute Labels: The tags of the service.
AttrLatestVersionRequired
func AttrLatestVersion() interface{}
- Type: interface{}
Attribute LatestVersion: The latest version of the service.
AttrMemoryRequired
func AttrMemory() interface{}
- Type: interface{}
Attribute Memory: The memory that you applied for each instance.
AttrMessageRequired
func AttrMessage() interface{}
- Type: interface{}
Attribute Message: The summary of the service.
AttrNamespaceRequired
func AttrNamespace() interface{}
- Type: interface{}
Attribute Namespace: The namespace of the service.
AttrParentUidRequired
func AttrParentUid() interface{}
- Type: interface{}
Attribute ParentUid: The user ID of the Alibaba Cloud account that is used to create the service.
AttrPendingInstanceRequired
func AttrPendingInstance() interface{}
- Type: interface{}
Attribute PendingInstance: The number of instances for the suspended service.
AttrReasonRequired
func AttrReason() interface{}
- Type: interface{}
Attribute Reason: The reason why the service is in the current state.
AttrResourceRequired
func AttrResource() interface{}
- Type: interface{}
Attribute Resource: The resource group to which the service belongs.
AttrResourceAliasRequired
func AttrResourceAlias() interface{}
- Type: interface{}
Attribute ResourceAlias: The alias of the resource group to which the service belongs.
AttrRoleRequired
func AttrRole() interface{}
- Type: interface{}
Attribute Role: The role of the service.
AttrRoleAttrsRequired
func AttrRoleAttrs() interface{}
- Type: interface{}
Attribute RoleAttrs: The additional attributes of the service role.
AttrRunningInstanceRequired
func AttrRunningInstance() interface{}
- Type: interface{}
Attribute RunningInstance: The number of instances for the running service.
AttrSafetyLockRequired
func AttrSafetyLock() interface{}
- Type: interface{}
Attribute SafetyLock: The security lock of the service.
AttrServiceConfigRequired
func AttrServiceConfig() interface{}
- Type: interface{}
Attribute ServiceConfig: The configurations of the service.
AttrServiceGroupRequired
func AttrServiceGroup() interface{}
- Type: interface{}
Attribute ServiceGroup: The group to which the service belongs.
AttrServiceNameRequired
func AttrServiceName() interface{}
- Type: interface{}
Attribute ServiceName: The name of the service.
AttrServiceUidRequired
func AttrServiceUid() interface{}
- Type: interface{}
Attribute ServiceUid: The ID of the service.
The value of this property is the same as the value of ServiceId.
AttrTotalInstanceRequired
func AttrTotalInstance() interface{}
- Type: interface{}
Attribute TotalInstance: The total number of instances of the service.
AttrUpdateTimeRequired
func AttrUpdateTime() interface{}
- Type: interface{}
Attribute UpdateTime: The time when the service was updated.
AttrWeightRequired
func AttrWeight() interface{}
- Type: interface{}
Attribute Weight: The weight of the canary release for the service.
PropsRequired
func Props() ServiceProps
- Type: ServiceProps