GetInstanceTypeResult.fromMap constructor
GetInstanceTypeResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetInstanceTypeResult.fromMap(Map<String, dynamic> map) {
return GetInstanceTypeResult(
autoRecoverySupported: map['autoRecoverySupported'] as bool,
bandwidthWeightings: (map['bandwidthWeightings'] as List).cast<String>(),
bareMetal: map['bareMetal'] as bool,
bootModes: (map['bootModes'] as List).cast<String>(),
burstablePerformanceSupported: map['burstablePerformanceSupported'] as bool,
currentGeneration: map['currentGeneration'] as bool,
dedicatedHostsSupported: map['dedicatedHostsSupported'] as bool,
defaultCores: map['defaultCores'] as int,
defaultNetworkCardIndex: map['defaultNetworkCardIndex'] as int,
defaultThreadsPerCore: map['defaultThreadsPerCore'] as int,
defaultVcpus: map['defaultVcpus'] as int,
ebsEncryptionSupport: map['ebsEncryptionSupport'] as String,
ebsNvmeSupport: map['ebsNvmeSupport'] as String,
ebsOptimizedSupport: map['ebsOptimizedSupport'] as String,
ebsPerformanceBaselineBandwidth: map['ebsPerformanceBaselineBandwidth'] as int,
ebsPerformanceBaselineIops: map['ebsPerformanceBaselineIops'] as int,
ebsPerformanceBaselineThroughput: map['ebsPerformanceBaselineThroughput'] as double,
ebsPerformanceMaximumBandwidth: map['ebsPerformanceMaximumBandwidth'] as int,
ebsPerformanceMaximumIops: map['ebsPerformanceMaximumIops'] as int,
ebsPerformanceMaximumThroughput: map['ebsPerformanceMaximumThroughput'] as double,
efaMaximumInterfaces: map['efaMaximumInterfaces'] as int,
efaSupported: map['efaSupported'] as bool,
enaSrdSupported: map['enaSrdSupported'] as bool,
enaSupport: map['enaSupport'] as String,
encryptionInTransitSupported: map['encryptionInTransitSupported'] as bool,
fpgas: pulumi.Input.decodeList<GetInstanceTypeFpga>(map['fpgas']!, (value) => GetInstanceTypeFpga.fromMap((value as Map).cast<String, dynamic>())),
freeTierEligible: map['freeTierEligible'] as bool,
gpuses: pulumi.Input.decodeList<GetInstanceTypeGpus>(map['gpuses']!, (value) => GetInstanceTypeGpus.fromMap((value as Map).cast<String, dynamic>())),
hibernationSupported: map['hibernationSupported'] as bool,
hypervisor: map['hypervisor'] as String,
id: map['id'] as String,
inferenceAccelerators: pulumi.Input.decodeList<GetInstanceTypeInferenceAccelerator>(map['inferenceAccelerators']!, (value) => GetInstanceTypeInferenceAccelerator.fromMap((value as Map).cast<String, dynamic>())),
instanceDisks: pulumi.Input.decodeList<GetInstanceTypeInstanceDisk>(map['instanceDisks']!, (value) => GetInstanceTypeInstanceDisk.fromMap((value as Map).cast<String, dynamic>())),
instanceStorageSupported: map['instanceStorageSupported'] as bool,
instanceType: map['instanceType'] as String,
ipv6Supported: map['ipv6Supported'] as bool,
maximumIpv4AddressesPerInterface: map['maximumIpv4AddressesPerInterface'] as int,
maximumIpv6AddressesPerInterface: map['maximumIpv6AddressesPerInterface'] as int,
maximumNetworkCards: map['maximumNetworkCards'] as int,
maximumNetworkInterfaces: map['maximumNetworkInterfaces'] as int,
mediaAccelerators: pulumi.Input.decodeList<GetInstanceTypeMediaAccelerator>(map['mediaAccelerators']!, (value) => GetInstanceTypeMediaAccelerator.fromMap((value as Map).cast<String, dynamic>())),
memorySize: map['memorySize'] as int,
networkCards: pulumi.Input.decodeList<GetInstanceTypeNetworkCard>(map['networkCards']!, (value) => GetInstanceTypeNetworkCard.fromMap((value as Map).cast<String, dynamic>())),
networkPerformance: map['networkPerformance'] as String,
neuronDevices: pulumi.Input.decodeList<GetInstanceTypeNeuronDevice>(map['neuronDevices']!, (value) => GetInstanceTypeNeuronDevice.fromMap((value as Map).cast<String, dynamic>())),
nitroEnclavesSupport: map['nitroEnclavesSupport'] as String,
nitroTpmSupport: map['nitroTpmSupport'] as String,
nitroTpmSupportedVersions: (map['nitroTpmSupportedVersions'] as List).cast<String>(),
phcSupport: map['phcSupport'] as String,
region: map['region'] as String,
supportedArchitectures: (map['supportedArchitectures'] as List).cast<String>(),
supportedCpuFeatures: (map['supportedCpuFeatures'] as List).cast<String>(),
supportedPlacementStrategies: (map['supportedPlacementStrategies'] as List).cast<String>(),
supportedRootDeviceTypes: (map['supportedRootDeviceTypes'] as List).cast<String>(),
supportedUsagesClasses: (map['supportedUsagesClasses'] as List).cast<String>(),
supportedVirtualizationTypes: (map['supportedVirtualizationTypes'] as List).cast<String>(),
sustainedClockSpeed: map['sustainedClockSpeed'] as double,
totalFpgaMemory: map['totalFpgaMemory'] as int,
totalGpuMemory: map['totalGpuMemory'] as int,
totalInferenceMemory: map['totalInferenceMemory'] as int,
totalInstanceStorage: map['totalInstanceStorage'] as int,
totalMediaMemory: map['totalMediaMemory'] as int,
totalNeuronDeviceMemory: map['totalNeuronDeviceMemory'] as int,
validCores: (map['validCores'] as List).cast<int>(),
validThreadsPerCores: (map['validThreadsPerCores'] as List).cast<int>(),
);
}