1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
"fmt"
smithy "github.com/aws/smithy-go"
)
// The StartWorkflowExecution API action was called without the required
// parameters set. Some workflow execution parameters, such as the decision
// taskList , must be set to start the execution. However, these parameters might
// have been set as defaults when the workflow type was registered. In this case,
// you can omit these parameters from the StartWorkflowExecution call and Amazon
// SWF uses the values defined in the workflow type. If these parameters aren't set
// and no default parameters were defined in the workflow type, this error is
// displayed.
type DefaultUndefinedFault struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DefaultUndefinedFault) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DefaultUndefinedFault) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DefaultUndefinedFault) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DefaultUndefinedFault"
}
return *e.ErrorCodeOverride
}
func (e *DefaultUndefinedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Returned if the domain already exists. You may get this fault if you are
// registering a domain that is either already registered or deprecated, or if you
// undeprecate a domain that is currently registered.
type DomainAlreadyExistsFault struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DomainAlreadyExistsFault) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DomainAlreadyExistsFault) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DomainAlreadyExistsFault) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DomainAlreadyExistsFault"
}
return *e.ErrorCodeOverride
}
func (e *DomainAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Returned when the specified domain has been deprecated.
type DomainDeprecatedFault struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *DomainDeprecatedFault) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *DomainDeprecatedFault) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *DomainDeprecatedFault) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "DomainDeprecatedFault"
}
return *e.ErrorCodeOverride
}
func (e *DomainDeprecatedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Returned by any operation if a system imposed limitation has been reached. To
// address this fault you should either clean up unused resources or increase the
// limit by contacting AWS.
type LimitExceededFault struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *LimitExceededFault) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *LimitExceededFault) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *LimitExceededFault) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "LimitExceededFault"
}
return *e.ErrorCodeOverride
}
func (e *LimitExceededFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Returned when the caller doesn't have sufficient permissions to invoke the
// action.
type OperationNotPermittedFault struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *OperationNotPermittedFault) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OperationNotPermittedFault) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OperationNotPermittedFault) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OperationNotPermittedFault"
}
return *e.ErrorCodeOverride
}
func (e *OperationNotPermittedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// You've exceeded the number of tags allowed for a domain.
type TooManyTagsFault struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *TooManyTagsFault) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *TooManyTagsFault) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *TooManyTagsFault) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "TooManyTagsFault"
}
return *e.ErrorCodeOverride
}
func (e *TooManyTagsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Returned if the type already exists in the specified domain. You may get this
// fault if you are registering a type that is either already registered or
// deprecated, or if you undeprecate a type that is currently registered.
type TypeAlreadyExistsFault struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *TypeAlreadyExistsFault) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *TypeAlreadyExistsFault) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *TypeAlreadyExistsFault) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "TypeAlreadyExistsFault"
}
return *e.ErrorCodeOverride
}
func (e *TypeAlreadyExistsFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Returned when the specified activity or workflow type was already deprecated.
type TypeDeprecatedFault struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *TypeDeprecatedFault) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *TypeDeprecatedFault) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *TypeDeprecatedFault) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "TypeDeprecatedFault"
}
return *e.ErrorCodeOverride
}
func (e *TypeDeprecatedFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Returned when the named resource cannot be found with in the scope of this
// operation (region or domain). This could happen if the named resource was never
// created or is no longer available for this operation.
type UnknownResourceFault struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *UnknownResourceFault) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *UnknownResourceFault) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *UnknownResourceFault) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "UnknownResourceFault"
}
return *e.ErrorCodeOverride
}
func (e *UnknownResourceFault) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Returned by StartWorkflowExecution when an open execution with the same
// workflowId is already running in the specified domain.
type WorkflowExecutionAlreadyStartedFault struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *WorkflowExecutionAlreadyStartedFault) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *WorkflowExecutionAlreadyStartedFault) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *WorkflowExecutionAlreadyStartedFault) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "WorkflowExecutionAlreadyStartedFault"
}
return *e.ErrorCodeOverride
}
func (e *WorkflowExecutionAlreadyStartedFault) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
|