toExportableAutoScalingGroupField method
Implementation
ExportableAutoScalingGroupField toExportableAutoScalingGroupField() {
switch (this) {
case 'AccountId':
return ExportableAutoScalingGroupField.accountId;
case 'AutoScalingGroupArn':
return ExportableAutoScalingGroupField.autoScalingGroupArn;
case 'AutoScalingGroupName':
return ExportableAutoScalingGroupField.autoScalingGroupName;
case 'Finding':
return ExportableAutoScalingGroupField.finding;
case 'UtilizationMetricsCpuMaximum':
return ExportableAutoScalingGroupField.utilizationMetricsCpuMaximum;
case 'UtilizationMetricsMemoryMaximum':
return ExportableAutoScalingGroupField.utilizationMetricsMemoryMaximum;
case 'UtilizationMetricsEbsReadOpsPerSecondMaximum':
return ExportableAutoScalingGroupField
.utilizationMetricsEbsReadOpsPerSecondMaximum;
case 'UtilizationMetricsEbsWriteOpsPerSecondMaximum':
return ExportableAutoScalingGroupField
.utilizationMetricsEbsWriteOpsPerSecondMaximum;
case 'UtilizationMetricsEbsReadBytesPerSecondMaximum':
return ExportableAutoScalingGroupField
.utilizationMetricsEbsReadBytesPerSecondMaximum;
case 'UtilizationMetricsEbsWriteBytesPerSecondMaximum':
return ExportableAutoScalingGroupField
.utilizationMetricsEbsWriteBytesPerSecondMaximum;
case 'LookbackPeriodInDays':
return ExportableAutoScalingGroupField.lookbackPeriodInDays;
case 'CurrentConfigurationInstanceType':
return ExportableAutoScalingGroupField.currentConfigurationInstanceType;
case 'CurrentConfigurationDesiredCapacity':
return ExportableAutoScalingGroupField
.currentConfigurationDesiredCapacity;
case 'CurrentConfigurationMinSize':
return ExportableAutoScalingGroupField.currentConfigurationMinSize;
case 'CurrentConfigurationMaxSize':
return ExportableAutoScalingGroupField.currentConfigurationMaxSize;
case 'CurrentOnDemandPrice':
return ExportableAutoScalingGroupField.currentOnDemandPrice;
case 'CurrentStandardOneYearNoUpfrontReservedPrice':
return ExportableAutoScalingGroupField
.currentStandardOneYearNoUpfrontReservedPrice;
case 'CurrentStandardThreeYearNoUpfrontReservedPrice':
return ExportableAutoScalingGroupField
.currentStandardThreeYearNoUpfrontReservedPrice;
case 'CurrentVCpus':
return ExportableAutoScalingGroupField.currentVCpus;
case 'CurrentMemory':
return ExportableAutoScalingGroupField.currentMemory;
case 'CurrentStorage':
return ExportableAutoScalingGroupField.currentStorage;
case 'CurrentNetwork':
return ExportableAutoScalingGroupField.currentNetwork;
case 'RecommendationOptionsConfigurationInstanceType':
return ExportableAutoScalingGroupField
.recommendationOptionsConfigurationInstanceType;
case 'RecommendationOptionsConfigurationDesiredCapacity':
return ExportableAutoScalingGroupField
.recommendationOptionsConfigurationDesiredCapacity;
case 'RecommendationOptionsConfigurationMinSize':
return ExportableAutoScalingGroupField
.recommendationOptionsConfigurationMinSize;
case 'RecommendationOptionsConfigurationMaxSize':
return ExportableAutoScalingGroupField
.recommendationOptionsConfigurationMaxSize;
case 'RecommendationOptionsProjectedUtilizationMetricsCpuMaximum':
return ExportableAutoScalingGroupField
.recommendationOptionsProjectedUtilizationMetricsCpuMaximum;
case 'RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum':
return ExportableAutoScalingGroupField
.recommendationOptionsProjectedUtilizationMetricsMemoryMaximum;
case 'RecommendationOptionsPerformanceRisk':
return ExportableAutoScalingGroupField
.recommendationOptionsPerformanceRisk;
case 'RecommendationOptionsOnDemandPrice':
return ExportableAutoScalingGroupField
.recommendationOptionsOnDemandPrice;
case 'RecommendationOptionsStandardOneYearNoUpfrontReservedPrice':
return ExportableAutoScalingGroupField
.recommendationOptionsStandardOneYearNoUpfrontReservedPrice;
case 'RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice':
return ExportableAutoScalingGroupField
.recommendationOptionsStandardThreeYearNoUpfrontReservedPrice;
case 'RecommendationOptionsVcpus':
return ExportableAutoScalingGroupField.recommendationOptionsVcpus;
case 'RecommendationOptionsMemory':
return ExportableAutoScalingGroupField.recommendationOptionsMemory;
case 'RecommendationOptionsStorage':
return ExportableAutoScalingGroupField.recommendationOptionsStorage;
case 'RecommendationOptionsNetwork':
return ExportableAutoScalingGroupField.recommendationOptionsNetwork;
case 'LastRefreshTimestamp':
return ExportableAutoScalingGroupField.lastRefreshTimestamp;
}
throw Exception(
'$this is not known in enum ExportableAutoScalingGroupField');
}