discontinuedPackage aws_deploy_api has been discontinued and replaced by aws_client.

toDeploymentTargetType method

DeploymentTargetType toDeploymentTargetType()

Implementation

DeploymentTargetType toDeploymentTargetType() {
  switch (this) {
    case 'InstanceTarget':
      return DeploymentTargetType.instanceTarget;
    case 'LambdaTarget':
      return DeploymentTargetType.lambdaTarget;
    case 'ECSTarget':
      return DeploymentTargetType.eCSTarget;
    case 'CloudFormationTarget':
      return DeploymentTargetType.cloudFormationTarget;
  }
  throw Exception('$this is not known in enum DeploymentTargetType');
}