1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package types 4 5import ( 6 "fmt" 7 smithy "github.com/aws/smithy-go" 8) 9 10// The user is not authorized to access a resource. 11type AccessDeniedException struct { 12 Message *string 13} 14 15func (e *AccessDeniedException) Error() string { 16 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 17} 18func (e *AccessDeniedException) ErrorMessage() string { 19 if e.Message == nil { 20 return "" 21 } 22 return *e.Message 23} 24func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } 25func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 26 27// One or more parameter values are not valid. 28type InvalidParameterValuesException struct { 29 Message *string 30} 31 32func (e *InvalidParameterValuesException) Error() string { 33 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 34} 35func (e *InvalidParameterValuesException) ErrorMessage() string { 36 if e.Message == nil { 37 return "" 38 } 39 return *e.Message 40} 41func (e *InvalidParameterValuesException) ErrorCode() string { 42 return "InvalidParameterValuesException" 43} 44func (e *InvalidParameterValuesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 45 46// The state of the resource is not valid for this operation. 47type InvalidResourceStateException struct { 48 Message *string 49} 50 51func (e *InvalidResourceStateException) Error() string { 52 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 53} 54func (e *InvalidResourceStateException) ErrorMessage() string { 55 if e.Message == nil { 56 return "" 57 } 58 return *e.Message 59} 60func (e *InvalidResourceStateException) ErrorCode() string { return "InvalidResourceStateException" } 61func (e *InvalidResourceStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 62 63// The properties of this WorkSpace are currently being modified. Try again in a 64// moment. 65type OperationInProgressException struct { 66 Message *string 67} 68 69func (e *OperationInProgressException) Error() string { 70 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 71} 72func (e *OperationInProgressException) ErrorMessage() string { 73 if e.Message == nil { 74 return "" 75 } 76 return *e.Message 77} 78func (e *OperationInProgressException) ErrorCode() string { return "OperationInProgressException" } 79func (e *OperationInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 80 81// This operation is not supported. 82type OperationNotSupportedException struct { 83 Message *string 84} 85 86func (e *OperationNotSupportedException) Error() string { 87 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 88} 89func (e *OperationNotSupportedException) ErrorMessage() string { 90 if e.Message == nil { 91 return "" 92 } 93 return *e.Message 94} 95func (e *OperationNotSupportedException) ErrorCode() string { return "OperationNotSupportedException" } 96func (e *OperationNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 97 98// The specified resource already exists. 99type ResourceAlreadyExistsException struct { 100 Message *string 101} 102 103func (e *ResourceAlreadyExistsException) Error() string { 104 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 105} 106func (e *ResourceAlreadyExistsException) ErrorMessage() string { 107 if e.Message == nil { 108 return "" 109 } 110 return *e.Message 111} 112func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } 113func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 114 115// The resource is associated with a directory. 116type ResourceAssociatedException struct { 117 Message *string 118} 119 120func (e *ResourceAssociatedException) Error() string { 121 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 122} 123func (e *ResourceAssociatedException) ErrorMessage() string { 124 if e.Message == nil { 125 return "" 126 } 127 return *e.Message 128} 129func (e *ResourceAssociatedException) ErrorCode() string { return "ResourceAssociatedException" } 130func (e *ResourceAssociatedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 131 132// The resource could not be created. 133type ResourceCreationFailedException struct { 134 Message *string 135} 136 137func (e *ResourceCreationFailedException) Error() string { 138 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 139} 140func (e *ResourceCreationFailedException) ErrorMessage() string { 141 if e.Message == nil { 142 return "" 143 } 144 return *e.Message 145} 146func (e *ResourceCreationFailedException) ErrorCode() string { 147 return "ResourceCreationFailedException" 148} 149func (e *ResourceCreationFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 150 151// Your resource limits have been exceeded. 152type ResourceLimitExceededException struct { 153 Message *string 154} 155 156func (e *ResourceLimitExceededException) Error() string { 157 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 158} 159func (e *ResourceLimitExceededException) ErrorMessage() string { 160 if e.Message == nil { 161 return "" 162 } 163 return *e.Message 164} 165func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } 166func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 167 168// The resource could not be found. 169type ResourceNotFoundException struct { 170 Message *string 171 172 ResourceId *string 173} 174 175func (e *ResourceNotFoundException) Error() string { 176 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 177} 178func (e *ResourceNotFoundException) ErrorMessage() string { 179 if e.Message == nil { 180 return "" 181 } 182 return *e.Message 183} 184func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } 185func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 186 187// The specified resource is not available. 188type ResourceUnavailableException struct { 189 Message *string 190 191 ResourceId *string 192} 193 194func (e *ResourceUnavailableException) Error() string { 195 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 196} 197func (e *ResourceUnavailableException) ErrorMessage() string { 198 if e.Message == nil { 199 return "" 200 } 201 return *e.Message 202} 203func (e *ResourceUnavailableException) ErrorCode() string { return "ResourceUnavailableException" } 204func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 205 206// The configuration of this network is not supported for this operation, or your 207// network configuration conflicts with the Amazon WorkSpaces management network IP 208// range. For more information, see Configure a VPC for Amazon WorkSpaces 209// (https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html). 210type UnsupportedNetworkConfigurationException struct { 211 Message *string 212} 213 214func (e *UnsupportedNetworkConfigurationException) Error() string { 215 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 216} 217func (e *UnsupportedNetworkConfigurationException) ErrorMessage() string { 218 if e.Message == nil { 219 return "" 220 } 221 return *e.Message 222} 223func (e *UnsupportedNetworkConfigurationException) ErrorCode() string { 224 return "UnsupportedNetworkConfigurationException" 225} 226func (e *UnsupportedNetworkConfigurationException) ErrorFault() smithy.ErrorFault { 227 return smithy.FaultClient 228} 229 230// The configuration of this WorkSpace is not supported for this operation. For 231// more information, see Required Configuration and Service Components for 232// WorkSpaces 233// (https://docs.aws.amazon.com/workspaces/latest/adminguide/required-service-components.html). 234type UnsupportedWorkspaceConfigurationException struct { 235 Message *string 236} 237 238func (e *UnsupportedWorkspaceConfigurationException) Error() string { 239 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 240} 241func (e *UnsupportedWorkspaceConfigurationException) ErrorMessage() string { 242 if e.Message == nil { 243 return "" 244 } 245 return *e.Message 246} 247func (e *UnsupportedWorkspaceConfigurationException) ErrorCode() string { 248 return "UnsupportedWorkspaceConfigurationException" 249} 250func (e *UnsupportedWorkspaceConfigurationException) ErrorFault() smithy.ErrorFault { 251 return smithy.FaultClient 252} 253 254// The workspaces_DefaultRole role could not be found. If this is the first time 255// you are registering a directory, you will need to create the 256// workspaces_DefaultRole role before you can register a directory. For more 257// information, see Creating the workspaces_DefaultRole Role 258// (https://docs.aws.amazon.com/workspaces/latest/adminguide/workspaces-access-control.html#create-default-role). 259type WorkspacesDefaultRoleNotFoundException struct { 260 Message *string 261} 262 263func (e *WorkspacesDefaultRoleNotFoundException) Error() string { 264 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 265} 266func (e *WorkspacesDefaultRoleNotFoundException) ErrorMessage() string { 267 if e.Message == nil { 268 return "" 269 } 270 return *e.Message 271} 272func (e *WorkspacesDefaultRoleNotFoundException) ErrorCode() string { 273 return "WorkspacesDefaultRoleNotFoundException" 274} 275func (e *WorkspacesDefaultRoleNotFoundException) ErrorFault() smithy.ErrorFault { 276 return smithy.FaultClient 277} 278