commonMain.aws.sdk.kotlin.services.codedeploy.model.ErrorCode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codedeploy-jvm Show documentation
Show all versions of codedeploy-jvm Show documentation
The AWS SDK for Kotlin client for CodeDeploy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codedeploy.model
import kotlin.collections.List
public sealed class ErrorCode {
public abstract val value: kotlin.String
public object AgentIssue : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "AGENT_ISSUE"
override fun toString(): kotlin.String = "AgentIssue"
}
public object AlarmActive : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "ALARM_ACTIVE"
override fun toString(): kotlin.String = "AlarmActive"
}
public object ApplicationMissing : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "APPLICATION_MISSING"
override fun toString(): kotlin.String = "ApplicationMissing"
}
public object AutoscalingValidationError : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "AUTOSCALING_VALIDATION_ERROR"
override fun toString(): kotlin.String = "AutoscalingValidationError"
}
public object AutoScalingConfiguration : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "AUTO_SCALING_CONFIGURATION"
override fun toString(): kotlin.String = "AutoScalingConfiguration"
}
public object AutoScalingIamRolePermissions : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "AUTO_SCALING_IAM_ROLE_PERMISSIONS"
override fun toString(): kotlin.String = "AutoScalingIamRolePermissions"
}
public object CloudformationStackFailure : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "CLOUDFORMATION_STACK_FAILURE"
override fun toString(): kotlin.String = "CloudformationStackFailure"
}
public object CodedeployResourceCannotBeFound : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND"
override fun toString(): kotlin.String = "CodedeployResourceCannotBeFound"
}
public object CustomerApplicationUnhealthy : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "CUSTOMER_APPLICATION_UNHEALTHY"
override fun toString(): kotlin.String = "CustomerApplicationUnhealthy"
}
public object DeploymentGroupMissing : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "DEPLOYMENT_GROUP_MISSING"
override fun toString(): kotlin.String = "DeploymentGroupMissing"
}
public object EcsUpdateError : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "ECS_UPDATE_ERROR"
override fun toString(): kotlin.String = "EcsUpdateError"
}
public object ElasticLoadBalancingInvalid : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "ELASTIC_LOAD_BALANCING_INVALID"
override fun toString(): kotlin.String = "ElasticLoadBalancingInvalid"
}
public object ElbInvalidInstance : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "ELB_INVALID_INSTANCE"
override fun toString(): kotlin.String = "ElbInvalidInstance"
}
public object HealthConstraints : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "HEALTH_CONSTRAINTS"
override fun toString(): kotlin.String = "HealthConstraints"
}
public object HealthConstraintsInvalid : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "HEALTH_CONSTRAINTS_INVALID"
override fun toString(): kotlin.String = "HealthConstraintsInvalid"
}
public object HookExecutionFailure : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "HOOK_EXECUTION_FAILURE"
override fun toString(): kotlin.String = "HookExecutionFailure"
}
public object IamRoleMissing : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "IAM_ROLE_MISSING"
override fun toString(): kotlin.String = "IamRoleMissing"
}
public object IamRolePermissions : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "IAM_ROLE_PERMISSIONS"
override fun toString(): kotlin.String = "IamRolePermissions"
}
public object InternalError : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "INTERNAL_ERROR"
override fun toString(): kotlin.String = "InternalError"
}
public object InvalidEcsService : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "INVALID_ECS_SERVICE"
override fun toString(): kotlin.String = "InvalidEcsService"
}
public object InvalidLambdaConfiguration : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "INVALID_LAMBDA_CONFIGURATION"
override fun toString(): kotlin.String = "InvalidLambdaConfiguration"
}
public object InvalidLambdaFunction : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "INVALID_LAMBDA_FUNCTION"
override fun toString(): kotlin.String = "InvalidLambdaFunction"
}
public object InvalidRevision : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "INVALID_REVISION"
override fun toString(): kotlin.String = "InvalidRevision"
}
public object ManualStop : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "MANUAL_STOP"
override fun toString(): kotlin.String = "ManualStop"
}
public object MissingBlueGreenDeploymentConfiguration : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION"
override fun toString(): kotlin.String = "MissingBlueGreenDeploymentConfiguration"
}
public object MissingElbInformation : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "MISSING_ELB_INFORMATION"
override fun toString(): kotlin.String = "MissingElbInformation"
}
public object MissingGithubToken : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "MISSING_GITHUB_TOKEN"
override fun toString(): kotlin.String = "MissingGithubToken"
}
public object NoEc2Subscription : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "NO_EC2_SUBSCRIPTION"
override fun toString(): kotlin.String = "NoEc2Subscription"
}
public object NoInstances : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "NO_INSTANCES"
override fun toString(): kotlin.String = "NoInstances"
}
public object OverMaxInstances : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "OVER_MAX_INSTANCES"
override fun toString(): kotlin.String = "OverMaxInstances"
}
public object ResourceLimitExceeded : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "RESOURCE_LIMIT_EXCEEDED"
override fun toString(): kotlin.String = "ResourceLimitExceeded"
}
public object RevisionMissing : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "REVISION_MISSING"
override fun toString(): kotlin.String = "RevisionMissing"
}
public object Throttled : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "THROTTLED"
override fun toString(): kotlin.String = "Throttled"
}
public object Timeout : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override val value: kotlin.String = "TIMEOUT"
override fun toString(): kotlin.String = "Timeout"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.codedeploy.model.ErrorCode() {
override fun toString(): kotlin.String = "SdkUnknown($value)"
}
public companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.codedeploy.model.ErrorCode = when (value) {
"AGENT_ISSUE" -> AgentIssue
"ALARM_ACTIVE" -> AlarmActive
"APPLICATION_MISSING" -> ApplicationMissing
"AUTOSCALING_VALIDATION_ERROR" -> AutoscalingValidationError
"AUTO_SCALING_CONFIGURATION" -> AutoScalingConfiguration
"AUTO_SCALING_IAM_ROLE_PERMISSIONS" -> AutoScalingIamRolePermissions
"CLOUDFORMATION_STACK_FAILURE" -> CloudformationStackFailure
"CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND" -> CodedeployResourceCannotBeFound
"CUSTOMER_APPLICATION_UNHEALTHY" -> CustomerApplicationUnhealthy
"DEPLOYMENT_GROUP_MISSING" -> DeploymentGroupMissing
"ECS_UPDATE_ERROR" -> EcsUpdateError
"ELASTIC_LOAD_BALANCING_INVALID" -> ElasticLoadBalancingInvalid
"ELB_INVALID_INSTANCE" -> ElbInvalidInstance
"HEALTH_CONSTRAINTS" -> HealthConstraints
"HEALTH_CONSTRAINTS_INVALID" -> HealthConstraintsInvalid
"HOOK_EXECUTION_FAILURE" -> HookExecutionFailure
"IAM_ROLE_MISSING" -> IamRoleMissing
"IAM_ROLE_PERMISSIONS" -> IamRolePermissions
"INTERNAL_ERROR" -> InternalError
"INVALID_ECS_SERVICE" -> InvalidEcsService
"INVALID_LAMBDA_CONFIGURATION" -> InvalidLambdaConfiguration
"INVALID_LAMBDA_FUNCTION" -> InvalidLambdaFunction
"INVALID_REVISION" -> InvalidRevision
"MANUAL_STOP" -> ManualStop
"MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION" -> MissingBlueGreenDeploymentConfiguration
"MISSING_ELB_INFORMATION" -> MissingElbInformation
"MISSING_GITHUB_TOKEN" -> MissingGithubToken
"NO_EC2_SUBSCRIPTION" -> NoEc2Subscription
"NO_INSTANCES" -> NoInstances
"OVER_MAX_INSTANCES" -> OverMaxInstances
"RESOURCE_LIMIT_EXCEEDED" -> ResourceLimitExceeded
"REVISION_MISSING" -> RevisionMissing
"THROTTLED" -> Throttled
"TIMEOUT" -> Timeout
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
AgentIssue,
AlarmActive,
ApplicationMissing,
AutoscalingValidationError,
AutoScalingConfiguration,
AutoScalingIamRolePermissions,
CloudformationStackFailure,
CodedeployResourceCannotBeFound,
CustomerApplicationUnhealthy,
DeploymentGroupMissing,
EcsUpdateError,
ElasticLoadBalancingInvalid,
ElbInvalidInstance,
HealthConstraints,
HealthConstraintsInvalid,
HookExecutionFailure,
IamRoleMissing,
IamRolePermissions,
InternalError,
InvalidEcsService,
InvalidLambdaConfiguration,
InvalidLambdaFunction,
InvalidRevision,
ManualStop,
MissingBlueGreenDeploymentConfiguration,
MissingElbInformation,
MissingGithubToken,
NoEc2Subscription,
NoInstances,
OverMaxInstances,
ResourceLimitExceeded,
RevisionMissing,
Throttled,
Timeout,
)
}
}