toNodegroupIssueCode method
Implementation
NodegroupIssueCode toNodegroupIssueCode() {
switch (this) {
case 'AutoScalingGroupNotFound':
return NodegroupIssueCode.autoScalingGroupNotFound;
case 'AutoScalingGroupInvalidConfiguration':
return NodegroupIssueCode.autoScalingGroupInvalidConfiguration;
case 'Ec2SecurityGroupNotFound':
return NodegroupIssueCode.ec2SecurityGroupNotFound;
case 'Ec2SecurityGroupDeletionFailure':
return NodegroupIssueCode.ec2SecurityGroupDeletionFailure;
case 'Ec2LaunchTemplateNotFound':
return NodegroupIssueCode.ec2LaunchTemplateNotFound;
case 'Ec2LaunchTemplateVersionMismatch':
return NodegroupIssueCode.ec2LaunchTemplateVersionMismatch;
case 'Ec2SubnetNotFound':
return NodegroupIssueCode.ec2SubnetNotFound;
case 'Ec2SubnetInvalidConfiguration':
return NodegroupIssueCode.ec2SubnetInvalidConfiguration;
case 'IamInstanceProfileNotFound':
return NodegroupIssueCode.iamInstanceProfileNotFound;
case 'IamLimitExceeded':
return NodegroupIssueCode.iamLimitExceeded;
case 'IamNodeRoleNotFound':
return NodegroupIssueCode.iamNodeRoleNotFound;
case 'NodeCreationFailure':
return NodegroupIssueCode.nodeCreationFailure;
case 'AsgInstanceLaunchFailures':
return NodegroupIssueCode.asgInstanceLaunchFailures;
case 'InstanceLimitExceeded':
return NodegroupIssueCode.instanceLimitExceeded;
case 'InsufficientFreeAddresses':
return NodegroupIssueCode.insufficientFreeAddresses;
case 'AccessDenied':
return NodegroupIssueCode.accessDenied;
case 'InternalFailure':
return NodegroupIssueCode.internalFailure;
case 'ClusterUnreachable':
return NodegroupIssueCode.clusterUnreachable;
}
throw Exception('$this is not known in enum NodegroupIssueCode');
}