@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:09:26.344Z") @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.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) |
|
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, jsiiStaticSet
protected 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 © 2023. All rights reserved.