Instance
This class encapsulates and extends the ROS resource type ALIYUN::Hologram::Instance
, which is used to create a Hologres instance.
Initializers
import { Instance } from '@alicloud/ros-cdk-hologram'
new Instance(scope: Construct, id: string, props: InstanceProps, enableResourcePropertyConstraint?: boolean)
Name | Type | Description |
---|---|---|
scope |
@alicloud/ros-cdk-core.Construct |
No description. |
id |
string |
No description. |
props |
InstanceProps |
No description. |
enableResourcePropertyConstraint |
boolean |
No description. |
scope
Required
- Type: @alicloud/ros-cdk-core.Construct
id
Required
- Type: string
props
Required
- Type: InstanceProps
enableResourcePropertyConstraint
Optional
- 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. |
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
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 { Instance } from '@alicloud/ros-cdk-hologram'
Instance.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. |
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. |
attrAutoRenewal |
@alicloud/ros-cdk-core.IResolvable |
Attribute AutoRenewal: Whether automatic renewal is enabled. |
attrColdStorageSize |
@alicloud/ros-cdk-core.IResolvable |
Attribute ColdStorageSize: Instance low-frequency storage space. |
attrCommodityCode |
@alicloud/ros-cdk-core.IResolvable |
Attribute CommodityCode: The commodity code. |
attrComputeNodeCount |
@alicloud/ros-cdk-core.IResolvable |
Attribute ComputeNodeCount: Number of compute nodes. |
attrCpu |
@alicloud/ros-cdk-core.IResolvable |
Attribute Cpu: Instance specifications. |
attrCreateTime |
@alicloud/ros-cdk-core.IResolvable |
Attribute CreateTime: The creation time of the resource. |
attrEnableHiveAccess |
@alicloud/ros-cdk-core.IResolvable |
Attribute EnableHiveAccess: Whether data Lake acceleration is enabled. |
attrEndpoints |
@alicloud/ros-cdk-core.IResolvable |
Attribute Endpoints: List of domain names. |
attrExpirationTime |
@alicloud/ros-cdk-core.IResolvable |
Attribute ExpirationTime: Expiration time. |
attrGatewayCount |
@alicloud/ros-cdk-core.IResolvable |
Attribute GatewayCount: Number of gateway nodes. |
attrGatewayCpu |
@alicloud/ros-cdk-core.IResolvable |
Attribute GatewayCpu: Cpu resources of the Gateway. |
attrGatewayMemory |
@alicloud/ros-cdk-core.IResolvable |
Attribute GatewayMemory: Gateway memory resources. |
attrInstanceId |
@alicloud/ros-cdk-core.IResolvable |
Attribute InstanceId: Resource attribute fields that represent the resource's primary key. |
attrInstanceName |
@alicloud/ros-cdk-core.IResolvable |
Attribute InstanceName: The name of the resource. |
attrInstanceOwner |
@alicloud/ros-cdk-core.IResolvable |
Attribute InstanceOwner: The instance owner. |
attrInstanceType |
@alicloud/ros-cdk-core.IResolvable |
Attribute InstanceType: The instance type. |
attrMemory |
@alicloud/ros-cdk-core.IResolvable |
Attribute Memory: Memory. |
attrPaymentType |
@alicloud/ros-cdk-core.IResolvable |
Attribute PaymentType: The payment type of the resource. |
attrResourceGroupId |
@alicloud/ros-cdk-core.IResolvable |
Attribute ResourceGroupId: The ID of the resource group. |
attrStorageSize |
@alicloud/ros-cdk-core.IResolvable |
Attribute StorageSize: The standard storage space of the instance. |
attrSuspendReason |
@alicloud/ros-cdk-core.IResolvable |
Attribute SuspendReason: Reason for suspension. |
attrTags |
@alicloud/ros-cdk-core.IResolvable |
Attribute Tags: Instance tag. |
attrVersion |
@alicloud/ros-cdk-core.IResolvable |
Attribute Version: The instance version. |
attrZoneId |
@alicloud/ros-cdk-core.IResolvable |
Attribute ZoneId: The zone Id. |
node
Required
public readonly node: ConstructNode;
- Type: @alicloud/ros-cdk-core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public readonly ref: string;
- Type: string
stack
Required
public readonly stack: Stack;
- Type: @alicloud/ros-cdk-core.Stack
The stack in which this resource is defined.
resource
Optional
public readonly resource: RosResource;
- Type: @alicloud/ros-cdk-core.RosResource
attrAutoRenewal
Required
public readonly attrAutoRenewal: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute AutoRenewal: Whether automatic renewal is enabled.
attrColdStorageSize
Required
public readonly attrColdStorageSize: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ColdStorageSize: Instance low-frequency storage space.
Unit: GB.
attrCommodityCode
Required
public readonly attrCommodityCode: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute CommodityCode: The commodity code.
attrComputeNodeCount
Required
public readonly attrComputeNodeCount: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ComputeNodeCount: Number of compute nodes.
attrCpu
Required
public readonly attrCpu: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Cpu: Instance specifications.
attrCreateTime
Required
public readonly attrCreateTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute CreateTime: The creation time of the resource.
attrEnableHiveAccess
Required
public readonly attrEnableHiveAccess: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute EnableHiveAccess: Whether data Lake acceleration is enabled.
attrEndpoints
Required
public readonly attrEndpoints: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Endpoints: List of domain names.
attrExpirationTime
Required
public readonly attrExpirationTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ExpirationTime: Expiration time.
attrGatewayCount
Required
public readonly attrGatewayCount: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute GatewayCount: Number of gateway nodes.
attrGatewayCpu
Required
public readonly attrGatewayCpu: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute GatewayCpu: Cpu resources of the Gateway.
attrGatewayMemory
Required
public readonly attrGatewayMemory: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute GatewayMemory: Gateway memory resources.
attrInstanceId
Required
public readonly attrInstanceId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InstanceId: Resource attribute fields that represent the resource's primary key.
attrInstanceName
Required
public readonly attrInstanceName: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InstanceName: The name of the resource.
attrInstanceOwner
Required
public readonly attrInstanceOwner: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InstanceOwner: The instance owner.
attrInstanceType
Required
public readonly attrInstanceType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InstanceType: The instance type.
attrMemory
Required
public readonly attrMemory: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Memory: Memory.
attrPaymentType
Required
public readonly attrPaymentType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PaymentType: The payment type of the resource.
attrResourceGroupId
Required
public readonly attrResourceGroupId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ResourceGroupId: The ID of the resource group.
attrStorageSize
Required
public readonly attrStorageSize: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute StorageSize: The standard storage space of the instance.
Unit: GB.
attrSuspendReason
Required
public readonly attrSuspendReason: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute SuspendReason: Reason for suspension.
attrTags
Required
public readonly attrTags: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Tags: Instance tag.
attrVersion
Required
public readonly attrVersion: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Version: The instance version.
attrZoneId
Required
public readonly attrZoneId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ZoneId: The zone Id.