Skip to content

Service

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

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkpai"
alicloudroscdkpai.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


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.

sessionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession

The synthesis session.


AddCondition

func AddCondition(condition RosCondition)

conditionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition

AddCount

func AddCount(count interface{})

countRequired

  • Type: interface{}

AddDependency

func AddDependency(resource Resource)

resourceRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource

AddResourceDesc

func AddResourceDesc(desc *string)

descRequired

  • Type: *string

ApplyRemovalPolicy

func ApplyRemovalPolicy(policy RemovalPolicy)

policyRequired

  • 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

nameRequired

  • Type: *string

SetMetadata

func SetMetadata(key *string, value interface{})

keyRequired

  • Type: *string

valueRequired

  • Type: interface{}

Static Functions

Name Description
IsConstruct Return whether the given object is a Construct.

IsConstruct

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkpai"
alicloudroscdkpai.Service_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

xRequired

  • 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: Service Request authentication token.
AttrCallerUid interface{} Attribute CallerUid: The ID of the service creator, which can be the ID of the RAM account.
AttrCpu interface{} Attribute Cpu: Number of service CPU cores.
AttrCreateTime interface{} Attribute CreateTime: Creation time of the service.
AttrCurrentVersion interface{} Attribute CurrentVersion: Current running version of the service.
AttrExtraData interface{} Attribute ExtraData: Service Extra Information.
AttrGpu interface{} Attribute Gpu: Number of service GPU cards.
AttrImage interface{} Attribute Image: Service Deployment Mirroring.
AttrInternetEndpoint interface{} Attribute InternetEndpoint: Public network Endpoint of the service.
AttrIntranetEndpoint interface{} Attribute IntranetEndpoint: The intranet Endpoint of the service.
AttrLabels interface{} Attribute Labels: Service Tag.
AttrLatestVersion interface{} Attribute LatestVersion: The latest version of the service.
AttrMemory interface{} Attribute Memory: Memory of service (MB).
AttrMessage interface{} Attribute Message: Latest information on services.
AttrNamespace interface{} Attribute Namespace: The namespace to which the service belongs.
AttrParentUid interface{} Attribute ParentUid: Primary account ID of the creator.
AttrPendingInstance interface{} Attribute PendingInstance: Number of instances where the service is not currently ready.
AttrReason interface{} Attribute Reason: Service deployment failure reason.
AttrResource interface{} Attribute Resource: The ID of the resource group to which the service belongs.
AttrResourceAlias interface{} Attribute ResourceAlias: Name of the resource group where the service resides.
AttrRole interface{} Attribute Role: Grouping Service Role.
AttrRoleAttrs interface{} Attribute RoleAttrs: Grouping Service Role Properties.
AttrRunningInstance interface{} Attribute RunningInstance: Number of instances in service running.
AttrSafetyLock interface{} Attribute SafetyLock: Service Security Lock Status.
AttrServiceConfig interface{} Attribute ServiceConfig: Service configuration information.
AttrServiceGroup interface{} Attribute ServiceGroup: Group to which the service belongs.
AttrServiceName interface{} Attribute ServiceName: Service Name.
AttrServiceUid interface{} Attribute ServiceUid: Unique Service ID.
AttrTotalInstance interface{} Attribute TotalInstance: Total number of instances required by the service.
AttrUpdateTime interface{} Attribute UpdateTime: Service Last Updated.
AttrWeight interface{} Attribute Weight: Packet Service Traffic Weight.
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: Service Request authentication token.


AttrCallerUidRequired

func AttrCallerUid() interface{}
  • Type: interface{}

Attribute CallerUid: The ID of the service creator, which can be the ID of the RAM account.


AttrCpuRequired

func AttrCpu() interface{}
  • Type: interface{}

Attribute Cpu: Number of service CPU cores.


AttrCreateTimeRequired

func AttrCreateTime() interface{}
  • Type: interface{}

Attribute CreateTime: Creation time of the service.


AttrCurrentVersionRequired

func AttrCurrentVersion() interface{}
  • Type: interface{}

Attribute CurrentVersion: Current running version of the service.


AttrExtraDataRequired

func AttrExtraData() interface{}
  • Type: interface{}

Attribute ExtraData: Service Extra Information.


AttrGpuRequired

func AttrGpu() interface{}
  • Type: interface{}

Attribute Gpu: Number of service GPU cards.


AttrImageRequired

func AttrImage() interface{}
  • Type: interface{}

Attribute Image: Service Deployment Mirroring.


AttrInternetEndpointRequired

func AttrInternetEndpoint() interface{}
  • Type: interface{}

Attribute InternetEndpoint: Public network Endpoint of the service.


AttrIntranetEndpointRequired

func AttrIntranetEndpoint() interface{}
  • Type: interface{}

Attribute IntranetEndpoint: The intranet Endpoint of the service.


AttrLabelsRequired

func AttrLabels() interface{}
  • Type: interface{}

Attribute Labels: Service Tag.


AttrLatestVersionRequired

func AttrLatestVersion() interface{}
  • Type: interface{}

Attribute LatestVersion: The latest version of the service.


AttrMemoryRequired

func AttrMemory() interface{}
  • Type: interface{}

Attribute Memory: Memory of service (MB).


AttrMessageRequired

func AttrMessage() interface{}
  • Type: interface{}

Attribute Message: Latest information on services.


AttrNamespaceRequired

func AttrNamespace() interface{}
  • Type: interface{}

Attribute Namespace: The namespace to which the service belongs.


AttrParentUidRequired

func AttrParentUid() interface{}
  • Type: interface{}

Attribute ParentUid: Primary account ID of the creator.


AttrPendingInstanceRequired

func AttrPendingInstance() interface{}
  • Type: interface{}

Attribute PendingInstance: Number of instances where the service is not currently ready.


AttrReasonRequired

func AttrReason() interface{}
  • Type: interface{}

Attribute Reason: Service deployment failure reason.


AttrResourceRequired

func AttrResource() interface{}
  • Type: interface{}

Attribute Resource: The ID of the resource group to which the service belongs.


AttrResourceAliasRequired

func AttrResourceAlias() interface{}
  • Type: interface{}

Attribute ResourceAlias: Name of the resource group where the service resides.


AttrRoleRequired

func AttrRole() interface{}
  • Type: interface{}

Attribute Role: Grouping Service Role.


AttrRoleAttrsRequired

func AttrRoleAttrs() interface{}
  • Type: interface{}

Attribute RoleAttrs: Grouping Service Role Properties.


AttrRunningInstanceRequired

func AttrRunningInstance() interface{}
  • Type: interface{}

Attribute RunningInstance: Number of instances in service running.


AttrSafetyLockRequired

func AttrSafetyLock() interface{}
  • Type: interface{}

Attribute SafetyLock: Service Security Lock Status.


AttrServiceConfigRequired

func AttrServiceConfig() interface{}
  • Type: interface{}

Attribute ServiceConfig: Service configuration information.


AttrServiceGroupRequired

func AttrServiceGroup() interface{}
  • Type: interface{}

Attribute ServiceGroup: Group to which the service belongs.


AttrServiceNameRequired

func AttrServiceName() interface{}
  • Type: interface{}

Attribute ServiceName: Service Name.


AttrServiceUidRequired

func AttrServiceUid() interface{}
  • Type: interface{}

Attribute ServiceUid: Unique Service ID.


AttrTotalInstanceRequired

func AttrTotalInstance() interface{}
  • Type: interface{}

Attribute TotalInstance: Total number of instances required by the service.


AttrUpdateTimeRequired

func AttrUpdateTime() interface{}
  • Type: interface{}

Attribute UpdateTime: Service Last Updated.


AttrWeightRequired

func AttrWeight() interface{}
  • Type: interface{}

Attribute Weight: Packet Service Traffic Weight.


PropsRequired

func Props() ServiceProps