@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-25T18:29:03.597Z")
public class InstanceType
extends software.amazon.jsii.JsiiObject
This class takes a literal string, good if you already know the identifier of the type you want.
Example:
Vpc vpc; DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database") .masterUser(Login.builder() .username("myuser") // NOTE: 'admin' is reserved by DocumentDB .excludeCharacters("\"@/:") // optional, defaults to the set "\"@/" and is also used for eventually created rotations .secretName("/myapp/mydocdb/masteruser") .build()) .instanceType(InstanceType.of(InstanceClass.R5, InstanceSize.LARGE)) .vpcSubnets(SubnetSelection.builder() .subnetType(SubnetType.PUBLIC) .build()) .vpc(vpc) .build();
Modifier | Constructor and Description |
---|---|
protected |
InstanceType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
InstanceType(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
InstanceArchitecture |
getArchitecture()
The instance's CPU architecture.
|
static InstanceType |
of(InstanceClass instanceClass,
InstanceSize instanceSize)
Instance type for EC2 instances.
|
java.lang.String |
toString()
Return the instance type as a dotted string.
|
protected InstanceType(software.amazon.jsii.JsiiObjectRef objRef)
protected InstanceType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public static InstanceType of(InstanceClass instanceClass, InstanceSize instanceSize)
This class takes a combination of a class and size.
Be aware that not all combinations of class and size are available, and not all classes are available in all regions.
instanceClass
- This parameter is required.instanceSize
- This parameter is required.public java.lang.String toString()
public InstanceArchitecture getArchitecture()