@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.461Z") @Stability(value=Stable) 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.MEMORY5, 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) |
|
InstanceType(String instanceTypeIdentifier) |
| 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.
|
String |
toString()
Return the instance type as a dotted string.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected InstanceType(software.amazon.jsii.JsiiObjectRef objRef)
protected InstanceType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public InstanceType(@NotNull
String instanceTypeIdentifier)
instanceTypeIdentifier - This parameter is required.@Stability(value=Stable) @NotNull public static InstanceType of(@NotNull InstanceClass instanceClass, @NotNull 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.@Stability(value=Stable) @NotNull public String toString()
@Stability(value=Stable) @NotNull public InstanceArchitecture getArchitecture()
Copyright © 2022. All rights reserved.