new InstanceBase(scope: Construct, id: string, props?: ResourceProps)
|env||The environment this resource belongs to.|
|instance||The Id of the instance.|
|node||The construct tree node associated with this construct.|
|service||The Cloudmap service to which the instance is registered.|
|stack||The stack in which this resource is defined.|
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.
The Id of the instance.
The construct tree node associated with this construct.
The Cloudmap service to which the instance is registered.
The stack in which this resource is defined.
|to||Returns a string representation of this construct.|
|protected unique||Generate a unique instance Id that is safe to pass to CloudMap.|
public toString(): string
Returns a string representation of this construct.
protected uniqueInstanceId(): string
Generate a unique instance Id that is safe to pass to CloudMap.