ServiceInstance
- Implements: @alicloud/ros-cdk-computenest.datasource.IServiceInstance
This class encapsulates and extends the ROS resource type DATASOURCE::ComputeNest::ServiceInstance.
Initializers
import { datasource } from '@alicloud/ros-cdk-computenest'
new datasource.ServiceInstance(scope: Construct, id: string, props: ServiceInstanceProps, enableResourcePropertyConstraint?: boolean)
| Name | Type | Description |
|---|---|---|
scope | @alicloud/ros-cdk-core.Construct | No description. |
id | string | No description. |
props | ServiceInstanceProps | No description. |
enableResourcePropertyConstraint | boolean | No description. |
scopeRequired
- Type: @alicloud/ros-cdk-core.Construct
idRequired
- Type: string
propsRequired
- Type: ServiceInstanceProps
enableResourcePropertyConstraintOptional
- Type: boolean
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
public toString(): string
Returns a string representation of this construct.
synthesize
public synthesize(session: ISynthesisSession): void
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: @alicloud/ros-cdk-core.ISynthesisSession
The synthesis session.
addCondition
public addCondition(condition: RosCondition): void
- Type: @alicloud/ros-cdk-core.RosCondition
addCount
public addCount(count: number | IResolvable): void
- Type: number | @alicloud/ros-cdk-core.IResolvable
addDependency
public addDependency(resource: Resource): void
- Type: @alicloud/ros-cdk-core.Resource
addResourceDesc
public addResourceDesc(desc: string): void
- Type: string
applyRemovalPolicy
public applyRemovalPolicy(policy: RemovalPolicy): void
- Type: @alicloud/ros-cdk-core.RemovalPolicy
fetchCondition
public fetchCondition(): RosCondition
fetchDependency
public fetchDependency(): string[]
fetchResourceDesc
public fetchResourceDesc(): string
getAtt
public getAtt(name: string): IResolvable
- Type: string
setMetadata
public setMetadata(key: string, value: any): void
- Type: string
- Type: any
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import { datasource } from '@alicloud/ros-cdk-computenest'
datasource.ServiceInstance.isConstruct(x: any)
Return whether the given object is a Construct.
- Type: any
Properties
| Name | Type | Description |
|---|---|---|
node | @alicloud/ros-cdk-core.ConstructNode | The construct tree node associated with this construct. |
env | @alicloud/ros-cdk-core.IResourceEnvironment | The environment this resource belongs to. |
ref | string | No description. |
stack | @alicloud/ros-cdk-core.Stack | The stack in which this resource is defined. |
resource | @alicloud/ros-cdk-core.RosResource | No description. |
attrComponents | string | @alicloud/ros-cdk-core.IResolvable | Attribute Components: Cloud Marketplace additional billing items. |
attrCreateTime | string | @alicloud/ros-cdk-core.IResolvable | Attribute CreateTime: The time when the serviceInstance was created. |
attrEnableInstanceOps | string | @alicloud/ros-cdk-core.IResolvable | Attribute EnableInstanceOps: Indicates whether the service instance supports the operation feature. |
attrEnableUserPrometheus | string | @alicloud/ros-cdk-core.IResolvable | Attribute EnableUserPrometheus: Whether to enable Prometheus monitoring. |
attrIsOperated | string | @alicloud/ros-cdk-core.IResolvable | Attribute IsOperated: Indicates whether the hosted O&M feature is enabled for the service instance. |
attrLicenseEndTime | string | @alicloud/ros-cdk-core.IResolvable | Attribute LicenseEndTime: The expiration time of licence. |
attrMarketInstanceId | string | @alicloud/ros-cdk-core.IResolvable | Attribute MarketInstanceId: The ID of the cloud marketplace instance. |
attrNetworkConfig | string | @alicloud/ros-cdk-core.IResolvable | Attribute NetworkConfig: The network configurations. |
attrOutputs | string | @alicloud/ros-cdk-core.IResolvable | Attribute Outputs: The outputs returned from creating the service instance. |
attrParameters | string | @alicloud/ros-cdk-core.IResolvable | Attribute Parameters: The parameters configured for the service instance. |
attrPredefinedParameterName | string | @alicloud/ros-cdk-core.IResolvable | Attribute PredefinedParameterName: The name of the package . |
attrProgress | string | @alicloud/ros-cdk-core.IResolvable | Attribute Progress: The deployment progress of the service instance. |
attrResourceGroupId | string | @alicloud/ros-cdk-core.IResolvable | Attribute ResourceGroupId: The resource group ID. |
attrService | string | @alicloud/ros-cdk-core.IResolvable | Attribute Service: The information about the service to which the service instance belongs. |
attrServiceInstanceId | string | @alicloud/ros-cdk-core.IResolvable | Attribute ServiceInstanceId: The ID of the service instance. |
attrServiceInstanceName | string | @alicloud/ros-cdk-core.IResolvable | Attribute ServiceInstanceName: The name of the resource. |
attrServiceType | string | @alicloud/ros-cdk-core.IResolvable | Attribute ServiceType: The type of the service. |
attrSource | string | @alicloud/ros-cdk-core.IResolvable | Attribute Source: The source of the service instance. |
attrStatusDetail | string | @alicloud/ros-cdk-core.IResolvable | Attribute StatusDetail: The description of the deployment state of the service instance. |
attrSupplierUid | string | @alicloud/ros-cdk-core.IResolvable | Attribute SupplierUid: The Alibaba Cloud account ID of the service provider. |
attrTags | string | @alicloud/ros-cdk-core.IResolvable | Attribute Tags: The tags of the service instance. |
attrTemplateName | string | @alicloud/ros-cdk-core.IResolvable | Attribute TemplateName: The name of the template. |
attrUpdateTime | string | @alicloud/ros-cdk-core.IResolvable | Attribute UpdateTime: The time when the serviceInstance was last updated. |
attrUserId | string | @alicloud/ros-cdk-core.IResolvable | Attribute UserId: The AliUid of the user. |
props | ServiceInstanceProps | No description. |
nodeRequired
public readonly node: ConstructNode;
- Type: @alicloud/ros-cdk-core.ConstructNode
The construct tree node associated with this construct.
envRequired
public readonly env: IResourceEnvironment;
- Type: @alicloud/ros-cdk-core.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
public readonly ref: string;
- Type: string
stackRequired
public readonly stack: Stack;
- Type: @alicloud/ros-cdk-core.Stack
The stack in which this resource is defined.
resourceOptional
public readonly resource: RosResource;
- Type: @alicloud/ros-cdk-core.RosResource
attrComponentsRequired
public readonly attrComponents: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Components: Cloud Marketplace additional billing items.
attrCreateTimeRequired
public readonly attrCreateTime: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute CreateTime: The time when the serviceInstance was created.
attrEnableInstanceOpsRequired
public readonly attrEnableInstanceOps: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute EnableInstanceOps: Indicates whether the service instance supports the operation feature.
attrEnableUserPrometheusRequired
public readonly attrEnableUserPrometheus: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute EnableUserPrometheus: Whether to enable Prometheus monitoring.
attrIsOperatedRequired
public readonly attrIsOperated: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute IsOperated: Indicates whether the hosted O&M feature is enabled for the service instance.
attrLicenseEndTimeRequired
public readonly attrLicenseEndTime: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute LicenseEndTime: The expiration time of licence.
attrMarketInstanceIdRequired
public readonly attrMarketInstanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute MarketInstanceId: The ID of the cloud marketplace instance.
attrNetworkConfigRequired
public readonly attrNetworkConfig: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute NetworkConfig: The network configurations.
attrOutputsRequired
public readonly attrOutputs: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Outputs: The outputs returned from creating the service instance.
attrParametersRequired
public readonly attrParameters: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Parameters: The parameters configured for the service instance.
attrPredefinedParameterNameRequired
public readonly attrPredefinedParameterName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute PredefinedParameterName: The name of the package .
attrProgressRequired
public readonly attrProgress: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Progress: The deployment progress of the service instance.
Unit: percentage.
attrResourceGroupIdRequired
public readonly attrResourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ResourceGroupId: The resource group ID.
attrServiceRequired
public readonly attrService: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Service: The information about the service to which the service instance belongs.
attrServiceInstanceIdRequired
public readonly attrServiceInstanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ServiceInstanceId: The ID of the service instance.
attrServiceInstanceNameRequired
public readonly attrServiceInstanceName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ServiceInstanceName: The name of the resource.
attrServiceTypeRequired
public readonly attrServiceType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ServiceType: The type of the service.
attrSourceRequired
public readonly attrSource: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Source: The source of the service instance.
attrStatusDetailRequired
public readonly attrStatusDetail: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute StatusDetail: The description of the deployment state of the service instance.
attrSupplierUidRequired
public readonly attrSupplierUid: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute SupplierUid: The Alibaba Cloud account ID of the service provider.
attrTagsRequired
public readonly attrTags: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Tags: The tags of the service instance.
attrTemplateNameRequired
public readonly attrTemplateName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute TemplateName: The name of the template.
attrUpdateTimeRequired
public readonly attrUpdateTime: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute UpdateTime: The time when the serviceInstance was last updated.
attrUserIdRequired
public readonly attrUserId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute UserId: The AliUid of the user.
propsRequired
public readonly props: ServiceInstanceProps;
- Type: ServiceInstanceProps